<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* @UVDeskAutomation/Workflow/createWorkflow.html.twig */
class __TwigTemplate_d097e9430d1bffcd8e9c5e58a7fd1100 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'internalcss' => [$this, 'block_internalcss'],
            'pageContent' => [$this, 'block_pageContent'],
            'footer' => [$this, 'block_footer'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@UVDeskCoreFramework/Templates/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->loadTemplate("@UVDeskCoreFramework/Templates/layout.html.twig", "@UVDeskAutomation/Workflow/createWorkflow.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        yield "    ";
        if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 4), "get", ["id"], "method", false, false, false, 4)) {
            // line 5
            yield "        ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Workflow"), "html", null, true);
            yield "
    ";
        } else {
            // line 7
            yield "        ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Workflow"), "html", null, true);
            yield "
    ";
        }
        yield from [];
    }

    // line 11
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_internalcss(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 12
        yield "    @media(max-width: 767px) {
        #company-workflow > .steps {
            display: none;
        }
    }

    @media(max-width: 579px) {
        #company-workflow > h3 {
            margin-right: 80px;
        }

        #company-workflow > h3 > a {
            position: absolute;
            top: 0px;
            right: 10px;
        }
    }

    .has-error button.btn {
        border-color: #cc5965;
    }
";
        yield from [];
    }

    // line 35
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_pageContent(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 36
        yield "    <style>
        .workflow-conditions-body .workflow-condition:first-child .uv-workflow-hr-plank {
            display: none;
        }
        .grammarly-fix-message-container {
\t\t\toverflow: visible !important;
\t\t}
\t\t.grammarly-fix-message {
\t\t\tmax-width: 120%;
\t\t}
        .textarea-fix-action {
            max-width: 500px !important;
        }
    </style>
    <!-- Inner Section -->
    <div class=\"uv-inner-section\">
        ";
        // line 53
        yield "\t\t";
        $context["asideTemplate"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\Dashboard\\AsideTemplate";
        // line 54
        yield "\t\t";
        $context["asideSidebarReference"] = "Webkul\\UVDesk\\CoreFrameworkBundle\\UIComponents\\Dashboard\\Panel\\Sidebars\\Productivity";
        // line 55
        yield "
\t\t";
        // line 56
        yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["uvdesk_extensibles"] ?? null), "getRegisteredComponent", [($context["asideTemplate"] ?? null)], "method", false, false, false, 56), "renderSidebar", [($context["asideSidebarReference"] ?? null)], "method", false, false, false, 56);
        yield "
        
        <!-- View -->
        <div class=\"uv-view ";
        // line 59
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 59), "cookies", [], "any", false, false, false, 59) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 59), "cookies", [], "any", false, false, false, 59), "get", ["uv-asideView"], "method", false, false, false, 59))) {
            yield "uv-aside-view";
        }
        yield "\">
            <!-- Form -->
            ";
        // line 61
        if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 61), "get", ["id"], "method", false, false, false, 61))) {
            // line 62
            yield "                <h1>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit Workflow"), "html", null, true);
            yield "</h1>
                <form class=\"workflow-form\" name=\"form-workflow\" method=\"POST\" action=\"";
            // line 63
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("workflows_editaction", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 63), "get", ["id"], "method", false, false, false, 63)]), "html", null, true);
            yield "\">
            ";
        } else {
            // line 65
            yield "                <h1>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("New Workflow"), "html", null, true);
            yield "</h1>
                <form class=\"workflow-form\" name=\"form-workflow\" method=\"POST\" action=\"";
            // line 66
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("workflows_addaction");
            yield "\">
            ";
        }
        // line 68
        yield "                <!-- Workflow Description Section -->
                <div class=\"uv-element-block\">
                    <label class=\"uv-field-label\">";
        // line 70
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name"), "html", null, true);
        yield "</label>
                    <div class=\"uv-field-block\">
                        <input name=\"name\" class=\"uv-field\" type=\"text\" value=\"";
        // line 72
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "name", [], "any", true, true, false, 72)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "name", [], "any", false, false, false, 72), "html", null, true)) : (yield ""));
        yield "\">
                        <p class=\"uv-field-message\">";
        // line 73
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "name", [], "any", true, true, false, 73)) {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "name", [], "any", false, false, false, 73), "html", null, true);
        }
        yield "</p>
                    </div>
                </div>

                    ";
        // line 78
        yield "                <div class=\"uv-element-block\">
                    <label class=\"uv-field-label\">";
        // line 79
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("WF Tag"), "html", null, true);
        yield "</label>
                    <div class=\"uv-field-block\">
                        <input
                            name=\"wf_tag\"
                            class=\"uv-field\"
                            type=\"text\"
                            value=\"";
        // line 85
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "wf_tag", [], "any", true, true, false, 85)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "wf_tag", [], "any", false, false, false, 85), "html", null, true)) : (yield ""));
        yield "\"
                        >
                        <p class=\"uv-field-message\">
                            ";
        // line 88
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "wf_tag", [], "any", true, true, false, 88)) {
            // line 89
            yield "                                ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "wf_tag", [], "any", false, false, false, 89), "html", null, true);
            yield "
                            ";
        }
        // line 91
        yield "                        </p>
                    </div>
                </div>



                <div class=\"uv-element-block\">
                    <label class=\"uv-field-label\">";
        // line 98
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Priority"), "html", null, true);
        yield "</label>
                    <div class=\"uv-field-block\">
                        <input 
                            name=\"priority\"
                            class=\"uv-field\"
                            type=\"number\"
                            pattern=\"[0-9]*\"
                            step=\"1\"
                            value=\"";
        // line 106
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "priority", [], "any", true, true, false, 106)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "priority", [], "any", false, false, false, 106), "html", null, true)) : (yield ""));
        yield "\">
                        <p class=\"uv-field-message\">
                            ";
        // line 108
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "priority", [], "any", true, true, false, 108)) {
            // line 109
            yield "                                ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "priority", [], "any", false, false, false, 109), "html", null, true);
            yield "
                            ";
        }
        // line 111
        yield "                        </p>
                    </div>
                </div>



                <div class=\"uv-element-block\">
                    <label class=\"uv-field-label\">";
        // line 118
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Description"), "html", null, true);
        yield "</label>
                    <div class=\"uv-field-block grammarly-fix-message-container\">
                        <textarea name=\"description\" class=\"uv-field grammarly-fix-message\">";
        // line 120
        ((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "description", [], "any", true, true, false, 120)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "description", [], "any", false, false, false, 120), "html", null, true)) : (yield ""));
        yield "</textarea>
                        <p class=\"uv-field-message\">";
        // line 121
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "description", [], "any", true, true, false, 121)) {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["error"] ?? null), "description", [], "any", false, false, false, 121), "html", null, true);
        }
        yield "</p>
                    </div>
                </div>

                <div class=\"uv-element-block\">
                    <label class=\"uv-field-label\">";
        // line 126
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Workflow Status"), "html", null, true);
        yield "</label>
                    <div class=\"uv-element-block\">
                        <label>
                            <div class=\"uv-checkbox\">
                                <input name=\"status\" type=\"checkbox\" ";
        // line 130
        yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "status", [], "any", true, true, false, 130) && (CoreExtension::getAttribute($this->env, $this->source, ($context["formData"] ?? null), "status", [], "any", false, false, false, 130) == "on"))) ? ("checked") : (""));
        yield ">
                                <span class=\"uv-checkbox-view\"></span>
                            </div>
                            <span class=\"uv-checkbox-label\">";
        // line 133
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Workflow is Active"), "html", null, true);
        yield "</span>
                        </label>
                    </div>
                </div>

                <div class=\"uv-hr\"></div>
                <!-- // Workflow Description Section -->


                <!-- Workflow Events Section -->
                <div id=\"events\" class=\"uv-field-workflow\">
                    <label class=\"uv-field-label\">";
        // line 144
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events"), "html", null, true);
        yield "</label>
                    <span class=\"uv-field-info\">";
        // line 145
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An event automatically triggers to check conditions and perform a respective pre-defined set of actions"), "html", null, true);
        yield "</span>

                    <div class=\"workflow-event-body\"></div>
                    <div class=\"uv-workflow-buttons\">
                        <a class=\"uv-btn-tag btn-add\" href=\"#\">
                            <span class=\"uv-icon-add-dark\"></span> ";
        // line 150
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add More"), "html", null, true);
        yield "
                        </a>
                    </div>
                </div>

                <div class=\"uv-hr\"></div>
                <!-- // Workflow Events Section -->

                <!-- Workflow Conditions Section -->
                <div id=\"conditions\" class=\"uv-field-workflow\" >
                    <label class=\"uv-field-label\">";
        // line 160
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Conditions"), "html", null, true);
        yield "</label>
                    <span class=\"uv-field-info\">";
        // line 161
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Conditions are set of rules which checks for specific scenarios and are triggered on specific occasions"), "html", null, true);
        yield "</span>

                    <div class=\"workflow-conditions-body\"></div>
                    <div class=\"uv-workflow-buttons\">
                        <a class=\"uv-btn-tag btn-or\" href=\"#\">
                            <span class=\"uv-icon-add-dark\"></span> ";
        // line 166
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("OR"), "html", null, true);
        yield "
                        </a>
                        <a class=\"uv-btn-tag btn-and\" href=\"#\">
                            <span class=\"uv-icon-add-dark\"></span> ";
        // line 169
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("AND"), "html", null, true);
        yield "
                        </a>
                    </div>
                </div>
                <!-- // Workflow Conditions Section -->
                <div class=\"uv-hr\"></div>
                


                <!-- Workflow Actions Section -->
                <div id=\"actions\" class=\"uv-element-block uv-field-workflow\">
                    <label class=\"uv-field-label\">";
        // line 180
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Actions"), "html", null, true);
        yield "</label>
                    <span class=\"uv-field-info\">";
        // line 181
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An action not only reduces the workload but also makes it quite easier for ticket automation"), "html", null, true);
        yield "</span>

                    <div class=\"workflow-action-body\"></div>
                    <div class=\"uv-workflow-buttons\">
                        <a class=\"uv-btn-tag btn-add\" href=\"#\">
                            <span class=\"uv-icon-add-dark\"></span> ";
        // line 186
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add More"), "html", null, true);
        yield "
                        </a>
                    </div>
                </div>
                <!-- // Workflow Actions Section -->

                <!-- CTA -->
                ";
        // line 194
        yield "                <button type=\"submit\" name=\"submit\" class=\"uv-btn\" href=\"#\">";
        if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 194), "get", ["id"], "method", false, false, false, 194))) {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save Workflow"), "html", null, true);
        } else {
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Workflow"), "html", null, true);
        }
        yield "</button>
                <!-- // CTA -->
            </form>
            <!-- Form -->
        </div>
        <!-- // View -->
    </div>
    <!-- // Inner Section -->
";
        yield from [];
    }

    // line 204
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_footer(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 205
        yield "    ";
        yield from $this->yieldParentBlock("footer", $context, $blocks);
        yield "

    <script type=\"text/javascript\">
        _.extend(Backbone.Validation.patterns, {
          stringPattern: /[a-z0-9]/i,
        });

        _.extend(Backbone.Validation.callbacks, {
            valid : function (view, attr, selector) {
                \$('[name=\"'+attr+'\"]').closest('.uv-field-block').find('.uv-field-message').html('').fadeOut(0);
            },
            invalid : function (view, attr, error, selector) {
                \$('[name=\"'+attr+'\"]').closest('.uv-field-block').find('.uv-field-message').html(error).fadeIn(0);
            }
        });

        if(typeof(sB) == 'undefined'){
          var sB = {};
        }

        sB.WorkflowCollection = Backbone.Collection.extend({
            baseUrl: \"";
        // line 226
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_service_call");
        yield "\",
            fetchResult: function(dataMatch) {
            this.url = this.baseUrl;
            return this.fetch({ 'data' : {
                'service': 'email.service',
                'call': 'getEmailPlaceHolders',
                'options': { 'match': dataMatch },
            }});
        }});
        sB.workflowCollection = new sB.WorkflowCollection();

        sB.WorkflowModel = Backbone.Model.extend({
            validation: {
                name: {
                    required: true,
                    pattern: 'stringPattern',
                    msg: \"";
        // line 242
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please enter a valid name."), "html", null, true);
        yield "\"
                },
            },
            validateSelect: function(value, attr, computedState) {
                var currentSelectValue = \$('select[name=\"'+ attr + '\"]').find(':selected').length;
                if (!value) {
                    return \"";
        // line 248
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please select a value."), "html", null, true);
        yield "\";
                }
            },
            validateSelectMultiple: function(value, attr, computedState) {
                var currentSelectValue = \$('[name=\"'+ attr + '\"]').length;
                if (!value) {
                    return \"";
        // line 254
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please select a value."), "html", null, true);
        yield "\";
                }
            },
            validateSelectText: function(value, attr, computedState) {
                if (!value) {
                    return \"";
        // line 259
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please add a value."), "html", null, true);
        yield "\";
                }
            }
        });

        sB.WorkflowView = Backbone.View.extend({
            el: '.uv-view',
            initialize: function() {
                this.model = new sB.WorkflowModel();
                Backbone.Validation.bind(this);
            },
            events: {
                'submit form[name=\"form-workflow\"]': 'processWorkflow',
            },
            processWorkflow: function(e) {
                var disabledCollection = this.\$el.find('form').find('[disabled]');
                if (\$(disabledCollection).length > 0) {
                    \$.each(\$(disabledCollection), function(index, nodeElement) {
                        \$(nodeElement).removeAttr('disabled');
                    });
                }

                this.model.set(this.\$el.find('form').serializeObject());

                var self = this;
                filterArray = ['name'];
                // Populate Filter Array - Events and Actions are required fields

                // Event
                this.\$('.wfEvents').each(function(key, value) {
                    filterArray.push(\$(value).attr('name'));
                    self.model.validation[\$(value).attr('name')] = 'validateSelect';
                });
                this.\$('.wfEventTriggers').each(function(key, value) {
                    filterArray.push(\$(value).attr('name'));
                    self.model.validation[\$(value).attr('name')] = 'validateSelect';
                });

                // Conditions
                if (\$(\"[name='events[0][event]']\").val() == 'ticket' || \$(\"[name='events[0][event]']\").val() == 'task') {
                    this.\$('.wfCondition').each(function(key, value) {
                        filterArray.push(\$(value).attr('name'));
                        self.model.validation[\$(value).attr('name')] = 'validateSelect';
                    });
                    this.\$('.wfConditionMatch').each(function(key, value) {
                        filterArray.push(\$(value).attr('name'));
                        self.model.validation[\$(value).attr('name')] = 'validateSelect';
                    });
                    this.\$('.wfConditionValue').each(function(key, value) {
                        if (\$(this).attr('name') == undefined) {
                            return;
                        }
                        filterArray.push(\$(value).attr('name'));
                        self.model.validation[\$(value).attr('name')] = 'validateSelectText';
                    });
                }

                // Actions
                this.\$('.wfAction').each(function(key, value) {
                    filterArray.push(\$(value).attr('name'));
                    self.model.validation[\$(value).attr('name')] = 'validateSelect';
                });
                this.\$('.wfActionMultiple').each(function(key, value) {
                    filterArray.push(\$(value).attr('name'));
                    self.model.validation[\$(value).attr('name')] = 'validateSelectMultiple';
                });
                this.\$('.wfActionValue').each(function(key, value) {
                    if (\$(this).attr('name') == undefined) {
                        return;
                    }

                    filterArray.push(\$(value).attr('name'));
                    self.model.validation[\$(value).attr('name')] = 'validateSelectText';
                });

                if (this.validateData(filterArray)) {
                    return true;
                } else {
                    e.preventDefault();
                    if (\$(disabledCollection).length > 0) {
                        \$.each(\$(disabledCollection), function(index, nodeElement) {
                            \$(nodeElement).attr('disabled', 'disabled');
                        });
                    }
                }
            },
            validateData: function(filterArray) {
                return this.model.isValid(filterArray);
            },
            updateActive: function(e){
                this.\$('div.step-info').each(function() {
                    \$(this).addClass('active');
                    if (\$(this).attr('data-href') == self.\$(e.target).attr('href'))
                        return false;
                });
            }
        });
        sB.workflowView = new sB.WorkflowView();

        \$.fn.serializeObject = function () {
            \"use strict\";
            var a = {}, b = function (b, c) {
                var d = a[c.name];
                \"undefined\" != typeof d && d !== null ? \$.isArray(d) ? d.push(c.value) : a[c.name] = [d, c.value] : a[c.name] = c.value
            };
            return \$.each(this.serializeArray(), b), a
        };
    </script>

    ";
        // line 368
        yield Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskAutomation//Workflow//events.html.twig");
        yield "
    ";
        // line 369
        yield Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskAutomation//Workflow//conditions.html.twig");
        yield "
    ";
        // line 370
        yield Twig\Extension\CoreExtension::include($this->env, $context, "@UVDeskAutomation//Workflow//actions.html.twig");
        yield "

";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@UVDeskAutomation/Workflow/createWorkflow.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  612 => 370,  608 => 369,  604 => 368,  492 => 259,  484 => 254,  475 => 248,  466 => 242,  447 => 226,  422 => 205,  415 => 204,  396 => 194,  386 => 186,  378 => 181,  374 => 180,  360 => 169,  354 => 166,  346 => 161,  342 => 160,  329 => 150,  321 => 145,  317 => 144,  303 => 133,  297 => 130,  290 => 126,  280 => 121,  276 => 120,  271 => 118,  262 => 111,  256 => 109,  254 => 108,  249 => 106,  238 => 98,  229 => 91,  223 => 89,  221 => 88,  215 => 85,  206 => 79,  203 => 78,  194 => 73,  190 => 72,  185 => 70,  181 => 68,  176 => 66,  171 => 65,  166 => 63,  161 => 62,  159 => 61,  152 => 59,  146 => 56,  143 => 55,  140 => 54,  137 => 53,  119 => 36,  112 => 35,  86 => 12,  79 => 11,  70 => 7,  64 => 5,  61 => 4,  54 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "@UVDeskAutomation/Workflow/createWorkflow.html.twig", "/home/bmdranzo/public_html/vendor/uvdesk/automation-bundle/Resources/views/Workflow/createWorkflow.html.twig");
    }
}
