var/cache/dev/twig/5d/5d96dc739aaf4dbce79865928e3d88e3.php line 317

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* base.html.twig */
  15. class __TwigTemplate_1c8753c7eaa02c06c398bb9782f6153f extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'title' => [$this'block_title'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'body' => [$this'block_body'],
  29.             'addJs' => [$this'block_addJs'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         // line 1
  40.         yield "<!DOCTYPE html>
  41. <html>
  42.     <head>
  43.         <meta charset=\"UTF-8\">
  44.         <title>";
  45.         // line 5
  46.         yield from $this->unwrap()->yieldBlock('title'$context$blocks);
  47.         yield "</title>
  48.         <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>\">
  49.         ";
  50.         // line 8
  51.         yield "        ";
  52.         yield from $this->unwrap()->yieldBlock('stylesheets'$context$blocks);
  53.         // line 11
  54.         yield "
  55.         ";
  56.         // line 12
  57.         yield from $this->unwrap()->yieldBlock('javascripts'$context$blocks);
  58.         // line 15
  59.         yield "
  60.         <link href=\"/js/vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\" type=\"text/css\">
  61.         <link
  62.             href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
  63.             rel=\"stylesheet\">
  64.         <link href=\"/css/attributes.css\" rel=\"stylesheet\">
  65.         <link href=\"/css/styles.css\" rel=\"stylesheet\">
  66.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
  67.         <link href=\"/js/vendor/toastify/toastify.min.css\" rel=\"stylesheet\">
  68.         <!-- Custom styles for this template-->
  69.         <link href=\"/css/sb-admin-2.css\" rel=\"stylesheet\">
  70.         ";
  71.         // line 28
  72.         yield "        <link href=\"/js/vendor/datatables/dataTables.bootstrap4.min.css\" rel=\"stylesheet\">
  73.         <script src=\"/js/vendor/jquery/jquery.min.js\"></script>
  74. ";
  75.         // line 31
  76.         yield "        <script src=\"/js/vendor/toastify/toastify-js.js\"></script>
  77.         <link href=\"/css/overrides.css\" rel=\"stylesheet\">
  78.         <script src=\"/js/library/Utils.js\"></script>
  79.         <script>
  80.             ";
  81.         // line 37
  82.         yield from         $this->loadTemplate("/js/library/StringUtils.js""base.html.twig"37)->unwrap()->yield($context);
  83.         // line 38
  84.         yield "        </script>
  85.         <script src=\"/js/library/event_dispatcher/event_dispatcher.js\"></script>
  86.         <script>
  87.             ";
  88.         // line 41
  89.         yield from         $this->loadTemplate("/js/library/gallery_carousel/gallery_carousel.js.twig""base.html.twig"41)->unwrap()->yield($context);
  90.         // line 42
  91.         yield "        </script>
  92.         <script>
  93.             ";
  94.         // line 44
  95.         yield from         $this->loadTemplate("/js/library/month_range_slider/month_range_slider.js.twig""base.html.twig"44)->unwrap()->yield($context);
  96.         // line 45
  97.         yield "        </script>
  98.         <script src=\"/js/library/url_builder/url_builder.js\"></script>
  99.         <script>
  100.             ";
  101.         // line 48
  102.         yield from         $this->loadTemplate("/js/library/dropdown/dropdown.js.twig""base.html.twig"48)->unwrap()->yield($context);
  103.         // line 49
  104.         yield "        </script>
  105.         <script>
  106.             ";
  107.         // line 51
  108.         yield from         $this->loadTemplate("/js/library/dropdown_with_textarea/dropdown_with_textarea.js.twig""base.html.twig"51)->unwrap()->yield($context);
  109.         // line 52
  110.         yield "        </script>
  111.         <script>
  112.             ";
  113.         // line 54
  114.         yield from         $this->loadTemplate("/js/library/dropdown_with_input_filter/dropdown_with_input_filter.js.twig""base.html.twig"54)->unwrap()->yield($context);
  115.         // line 55
  116.         yield "        </script>
  117.         <script>
  118.             ";
  119.         // line 57
  120.         yield from         $this->loadTemplate("/js/library/month_range_slider_dropdown/month_range_slider_dropdown.js.twig""base.html.twig"57)->unwrap()->yield($context);
  121.         // line 58
  122.         yield "        </script>
  123.         <script src=\"/js/library/dropdown/file_dropdown.js\"></script>
  124.         <script src=\"/js/library/Dom.js\"></script>
  125.         <script src=\"/js/vendor/moment.js\"></script>
  126.         <script src=\"/js/vendor/daterangepicker.js\"></script>
  127.         <script src=\"/js/vendor/datepicker.js\"></script>
  128.         <link href=\"/css/daterangepicker.css\" rel=\"stylesheet\">
  129.         <script>
  130.             ";
  131.         // line 67
  132.         yield from         $this->loadTemplate("/js/library/daterangepicker-custom/daterangepicker-custom.js.twig""base.html.twig"67)->unwrap()->yield($context);
  133.         // line 68
  134.         yield "        </script>
  135.         <script>
  136.             ";
  137.         // line 70
  138.         yield from         $this->loadTemplate("/js/library/date_range_picker_with_button/date_range_picker_with_button.js.twig""base.html.twig"70)->unwrap()->yield($context);
  139.         // line 71
  140.         yield "        </script>
  141.         <script>
  142.             ";
  143.         // line 74
  144.         yield from         $this->loadTemplate("/js/library/DomDispatcher/DomDispatcher.js.twig""base.html.twig"74)->unwrap()->yield($context);
  145.         // line 75
  146.         yield "        </script>
  147.         <script>
  148.             ";
  149.         // line 78
  150.         yield from         $this->loadTemplate("/js/library/init_bearer/init_bearer.js.twig""base.html.twig"78)->unwrap()->yield($context);
  151.         // line 79
  152.         yield "            const initBearer = new InitBearer();
  153.             const INIT_BEARERS = {
  154.                 GLOBAL_DOM_DISPATCHER: \"initBearer.globalDomDispatcher\",
  155.                 GLOBAL_USER_SETTINGS_MODIFIER: \"initBearer.globalUserSettingsModifier\",
  156.                 GLOBAL_USER_SETTINGS_FORM_SAVER: \"initBearer.globalUserSettingsFormSaver\",
  157.                 GLOBAL_CALENDAR_EVENTS_SELECTOR_COMPONENT: \"initBearer.globalCalendarEventsSelectorComponent\",
  158.             };
  159.         </script>
  160.         <script>
  161.             ";
  162.         // line 89
  163.         yield from         $this->loadTemplate("/js/library/entity_collection/entity_collection.js.twig""base.html.twig"89)->unwrap()->yield($context);
  164.         // line 90
  165.         yield "        </script>
  166.         <script src=\"/js/vendor/jquery-easing/jquery.easing.min.js\"></script>
  167.         ";
  168.         // line 94
  169.         yield "
  170.         ";
  171.         // line 96
  172.         yield "        <script src=\"/js/vendor/bootstrap/js/4.6.0/bootstrap.bundle.min.js\"></script>
  173.         <script src=\"/js/vendor/datatables/jquery.dataTables.min.js\"></script>
  174.         <script src=\"/js/vendor/datatables/dataTables.bootstrap4.min.js\"></script>
  175.         <script src=\"/js/library/data_table/data_table_extensions.js\"></script>
  176.         <script>
  177.             ";
  178.         // line 102
  179.         yield from         $this->loadTemplate("/js/library/data_table/custom_data_table.js""base.html.twig"102)->unwrap()->yield($context);
  180.         // line 103
  181.         yield "        </script>
  182.         <script>
  183.             ";
  184.         // line 106
  185.         yield from         $this->loadTemplate("/js/library/symfony_form_data_builder/symfony_form_data_builder.js.twig""base.html.twig"106)->unwrap()->yield($context);
  186.         // line 107
  187.         yield "        </script>
  188.         <script>
  189.             ";
  190.         // line 110
  191.         yield from         $this->loadTemplate("/js/library/json_object_to_components_data_binder/json_object_to_components_data_binder.js.twig""base.html.twig"110)->unwrap()->yield($context);
  192.         // line 111
  193.         yield "        </script>
  194.         <script>
  195.             ";
  196.         // line 114
  197.         yield from         $this->loadTemplate("/js/library/json_form_saver/json_form_saver.js.twig""base.html.twig"114)->unwrap()->yield($context);
  198.         // line 115
  199.         yield "        </script>
  200.         <style>
  201.             .svg-ship {
  202.                 max-width: 70px;
  203.                 fill: white;
  204.                 /* transform: scaleX(-1); */
  205.                 height: 50px;
  206.             }
  207.         </style>
  208.     </head>
  209.     ";
  210.         // line 127
  211.         $context["bodyClass"] = ((        $this->unwrap()->hasBlock("bodyClass"$context$blocks)) ? (        $this->unwrap()->renderBlock("bodyClass"$context$blocks)) : (null));
  212.         // line 128
  213.         yield "    ";
  214.         $context["bodyAttrs"] = ((        $this->unwrap()->hasBlock("bodyAttrs"$context$blocks)) ? (        $this->unwrap()->renderBlock("bodyAttrs"$context$blocks)) : (null));
  215.         // line 129
  216.         yield "
  217.     <body";
  218.         // line 130
  219.         yield (((isset($context["bodyClass"]) || array_key_exists("bodyClass"$context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.'130$this->source); })())) ? (((" class=\"" . (isset($context["bodyClass"]) || array_key_exists("bodyClass"$context) ? $context["bodyClass"] : (function () { throw new RuntimeError('Variable "bodyClass" does not exist.'130$this->source); })())) . "\"")) : (""));
  220.         yield (((isset($context["bodyAttrs"]) || array_key_exists("bodyAttrs"$context) ? $context["bodyAttrs"] : (function () { throw new RuntimeError('Variable "bodyAttrs" does not exist.'130$this->source); })())) ? ((" " . (isset($context["bodyAttrs"]) || array_key_exists("bodyAttrs"$context) ? $context["bodyAttrs"] : (function () { throw new RuntimeError('Variable "bodyAttrs" does not exist.'130$this->source); })()))) : (""));
  221.         yield ">
  222.         <!-- Logout Modal-->
  223.         <div class=\"modal fade\" id=\"logoutModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"
  224.             aria-hidden=\"true\">
  225.             <div class=\"modal-dialog\" role=\"document\">
  226.                 <div class=\"modal-content\">
  227.                     <div class=\"modal-header\">
  228.                         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Выйти сейчас?</h5>
  229.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  230.                             <span aria-hidden=\"true\">×</span>
  231.                         </button>
  232.                     </div>
  233.                     <div class=\"modal-body\">Вы выйдете автоматически через 3 часа.</div>
  234.                     <div class=\"modal-footer\">
  235.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">Отмена</button>
  236.                         <a class=\"btn btn-primary\" href=\"";
  237.         // line 145
  238.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
  239.         yield "\">Выйти</a>
  240.                     </div>
  241.                 </div>
  242.             </div>
  243.         </div>
  244.         <!-- Window Modal-->
  245.         <div class=\"modal fade\" id=\"windowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"windowModalLabel\"
  246.             aria-hidden=\"true\">
  247.             <div class=\"modal-dialog\" role=\"document\"
  248.                  style=\"max-width: 700px !important;\"
  249.             >
  250.                 <div class=\"modal-content\">
  251.                     <div class=\"modal-header\">
  252.                         <h5 class=\"modal-title\" id=\"windowModalLabel\">Question?</h5>
  253.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  254.                             <span aria-hidden=\"true\">×</span>
  255.                         </button>
  256.                     </div>
  257.                     <div class=\"modal-body\">Modal body</div>
  258.                     <div class=\"modal-footer\">
  259.                         <button class=\"btn btn-primary\">Yes</button>
  260.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">No</button>
  261.                     </div>
  262.                 </div>
  263.             </div>
  264.         </div>
  265.         ";
  266.         // line 173
  267.         if ($this->extensions['App\Twig\AppExtension']->getUser()) {
  268.             // line 174
  269.             yield "            ";
  270.             $context["reviewerSettings"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerSettingsService"]) || array_key_exists("reviewerSettingsService"$context) ? $context["reviewerSettingsService"] : (function () { throw new RuntimeError('Variable "reviewerSettingsService" does not exist.'174$this->source); })()), "getCurrentReviewerSettings", [], "method"falsefalsefalse174);
  271.             // line 175
  272.             yield "            ";
  273.             $context["reviewerSettingsForm"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerSettingsService"]) || array_key_exists("reviewerSettingsService"$context) ? $context["reviewerSettingsService"] : (function () { throw new RuntimeError('Variable "reviewerSettingsService" does not exist.'175$this->source); })()), "getCurrentReviewerSettingsForm", [], "method"falsefalsefalse175), "createView", [], "method"falsefalsefalse175);
  274.             // line 176
  275.             yield "            ";
  276.             $context["reviewerSettingsJsonStr"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerSettingsService"]) || array_key_exists("reviewerSettingsService"$context) ? $context["reviewerSettingsService"] : (function () { throw new RuntimeError('Variable "reviewerSettingsService" does not exist.'176$this->source); })()), "getCurrentReviewerSettingsJsonStr", [], "method"falsefalsefalse176);
  277.             // line 177
  278.             yield "
  279.             ";
  280.             // line 178
  281.             $context["reviewerTipSettings"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'178$this->source); })()), "getCurrentReviewerTipSettings", [], "method"falsefalsefalse178);
  282.             // line 179
  283.             yield "            ";
  284.             $context["reviewerTipSettingsForm"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'179$this->source); })()), "getCurrentReviewerSettingsForm", [], "method"falsefalsefalse179), "createView", [], "method"falsefalsefalse179);
  285.             // line 180
  286.             yield "            ";
  287.             $context["reviewerTipSettingsJsonStr"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'180$this->source); })()), "getCurrentReviewerTipSettingsStr", [], "method"falsefalsefalse180);
  288.             // line 181
  289.             yield "
  290.             ";
  291.             // line 182
  292.             $context["userTipSettings"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'182$this->source); })()), "getCurrentUserTipSettings", [], "method"falsefalsefalse182);
  293.             // line 183
  294.             yield "            ";
  295.             $context["userTipSettingsForm"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'183$this->source); })()), "getCurrentUserTipSettingsForm", [], "method"falsefalsefalse183), "createView", [], "method"falsefalsefalse183);
  296.             // line 184
  297.             yield "            ";
  298.             $context["userTipSettingsJsonStr"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["tipSettingsService"]) || array_key_exists("tipSettingsService"$context) ? $context["tipSettingsService"] : (function () { throw new RuntimeError('Variable "tipSettingsService" does not exist.'184$this->source); })()), "getCurrentUserTipSettingsStr", [], "method"falsefalsefalse184);
  299.             // line 185
  300.             yield "
  301.             ";
  302.             // line 186
  303.             $context["userSettings"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["userSettingsService"]) || array_key_exists("userSettingsService"$context) ? $context["userSettingsService"] : (function () { throw new RuntimeError('Variable "userSettingsService" does not exist.'186$this->source); })()), "getCurrentUserSettings", [], "method"falsefalsefalse186);
  304.             // line 187
  305.             yield "            ";
  306.             $context["userSettingsForm"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["userSettingsService"]) || array_key_exists("userSettingsService"$context) ? $context["userSettingsService"] : (function () { throw new RuntimeError('Variable "userSettingsService" does not exist.'187$this->source); })()), "getCurrentUserSettingsForm", [], "method"falsefalsefalse187), "createView", [], "method"falsefalsefalse187);
  307.             // line 188
  308.             yield "            ";
  309.             $context["userSettingsJsonStr"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["userSettingsService"]) || array_key_exists("userSettingsService"$context) ? $context["userSettingsService"] : (function () { throw new RuntimeError('Variable "userSettingsService" does not exist.'188$this->source); })()), "getCurrentUserSettingsJsonStr", [], "method"falsefalsefalse188);
  310.             // line 189
  311.             yield "        ";
  312.         }
  313.         // line 190
  314.         yield "
  315.         ";
  316.         // line 191
  317.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  318.         // line 192
  319.         yield "
  320.         ";
  321.         // line 193
  322.         if ((array_key_exists("userSettings"$context) && CoreExtension::getAttribute($this->env$this->source, (isset($context["userSettings"]) || array_key_exists("userSettings"$context) ? $context["userSettings"] : (function () { throw new RuntimeError('Variable "userSettings" does not exist.'193$this->source); })()), "id", [], "any"falsefalsefalse193))) {
  323.             // line 194
  324.             yield "            <script>
  325.                 /** @type {JsonObjectToComponentsDataBinder|null} */
  326.                 let userSettingsModifier = null;
  327.                 let userSettings = null;
  328.                 /** @type {JsonFormSaver|null} */
  329.                 let userSettingsFormSaver = null;
  330.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  331.                     /** @type {DomDispatcher} */
  332.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  333.                     userSettings = ";
  334.             // line 205
  335.             yield (isset($context["userSettingsJsonStr"]) || array_key_exists("userSettingsJsonStr"$context) ? $context["userSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "userSettingsJsonStr" does not exist.'205$this->source); })());
  336.             yield ";
  337.                     console.log(userSettings)
  338.                     let userSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"user_settings\");
  339.                     userSettingsModifier = new JsonObjectToComponentsDataBinder(userSettings, {
  340.                         domDispatcherListenGroups: [\"userSettingsModifier\"],
  341.                         domDispatcher: domDispatcher
  342.                     });
  343.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_MODIFIER, userSettingsModifier);
  344.                     let userSettingsSaverOptions = {
  345.                         saveOnChanges: true,
  346.                         jsonObject: userSettings,
  347.                         componentsDataBinder: userSettingsModifier,
  348.                         symfonyFormDataBuilder: userSettingsFormDataBuilder,
  349.                         url: \"";
  350.             // line 221
  351.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_settings_edit_ajax", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["userSettings"]) || array_key_exists("userSettings"$context) ? $context["userSettings"] : (function () { throw new RuntimeError('Variable "userSettings" does not exist.'221$this->source); })()), "id", [], "any"falsefalsefalse221)]), "html"nulltrue);
  352.             yield "\",
  353.                         csrfToken: ";
  354.             // line 222
  355.             yield json_encode(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["userSettingsForm"]) || array_key_exists("userSettingsForm"$context) ? $context["userSettingsForm"] : (function () { throw new RuntimeError('Variable "userSettingsForm" does not exist.'222$this->source); })()), "_token", [], "any"falsefalsefalse222), "vars", [], "any"falsefalsefalse222), "value", [], "any"falsefalsefalse222));
  356.             yield ",
  357.                     };
  358.                     userSettingsFormSaver = new JsonFormSaver(userSettingsSaverOptions);
  359.                     userSettingsFormSaver.init();
  360.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
  361.                 });
  362.             </script>
  363.         ";
  364.         }
  365.         // line 231
  366.         yield "
  367. ";
  368.         // line 233
  369.         yield "        ";
  370.         if ((array_key_exists("reviewerTipSettings"$context) && CoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerTipSettings"]) || array_key_exists("reviewerTipSettings"$context) ? $context["reviewerTipSettings"] : (function () { throw new RuntimeError('Variable "reviewerTipSettings" does not exist.'233$this->source); })()), "id", [], "any"falsefalsefalse233))) {
  371.             // line 234
  372.             yield "            <script>
  373.                 let reviewerTipSettings = null;
  374.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  375.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  376.                     reviewerTipSettings = ";
  377.             // line 239
  378.             yield (isset($context["reviewerTipSettingsJsonStr"]) || array_key_exists("reviewerTipSettingsJsonStr"$context) ? $context["reviewerTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "reviewerTipSettingsJsonStr" does not exist.'239$this->source); })());
  379.             yield ";
  380.                     let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  381.                     let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
  382.                         domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
  383.                         domDispatcher: domDispatcher
  384.                     });
  385.                     reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
  386.                         {invert: true});
  387.                     let reviewerTipSettingsSaverOptions = {
  388.                         saveOnChanges: true,
  389.                         jsonObject: reviewerTipSettings,
  390.                         componentsDataBinder: reviewerTipSettingsModifier,
  391.                         symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
  392.                         url: \"";
  393.             // line 254
  394.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("moderator_tip_settings_edit", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerTipSettings"]) || array_key_exists("reviewerTipSettings"$context) ? $context["reviewerTipSettings"] : (function () { throw new RuntimeError('Variable "reviewerTipSettings" does not exist.'254$this->source); })()), "id", [], "any"falsefalsefalse254)]), "html"nulltrue);
  395.             yield "\",
  396.                         csrfToken: ";
  397.             // line 255
  398.             yield json_encode(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["reviewerTipSettingsForm"]) || array_key_exists("reviewerTipSettingsForm"$context) ? $context["reviewerTipSettingsForm"] : (function () { throw new RuntimeError('Variable "reviewerTipSettingsForm" does not exist.'255$this->source); })()), "_token", [], "any"falsefalsefalse255), "vars", [], "any"falsefalsefalse255), "value", [], "any"falsefalsefalse255));
  399.             yield ",
  400.                     };
  401.                     let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
  402.                     reviewerTipSettingsFormSaver.init();
  403.                 });
  404.             </script>
  405.         ";
  406.         }
  407.         // line 262
  408.         yield "
  409. ";
  410.         // line 264
  411.         yield "        ";
  412.         if ((array_key_exists("userTipSettings"$context) && CoreExtension::getAttribute($this->env$this->source, (isset($context["userTipSettings"]) || array_key_exists("userTipSettings"$context) ? $context["userTipSettings"] : (function () { throw new RuntimeError('Variable "userTipSettings" does not exist.'264$this->source); })()), "id", [], "any"falsefalsefalse264))) {
  413.             // line 265
  414.             yield "            <script>
  415.                 let userTipSettings = null;
  416.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  417.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  418.                     userTipSettings = ";
  419.             // line 270
  420.             yield (isset($context["userTipSettingsJsonStr"]) || array_key_exists("userTipSettingsJsonStr"$context) ? $context["userTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "userTipSettingsJsonStr" does not exist.'270$this->source); })());
  421.             yield ";
  422.                     let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  423.                     let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
  424.                         domDispatcherListenGroups: [\"userTipSettingsModifier\"],
  425.                         domDispatcher: domDispatcher
  426.                     });
  427.                     userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
  428.                         {invert: true});
  429.                     let userTipSettingsSaverOptions = {
  430.                         saveOnChanges: true,
  431.                         jsonObject: userTipSettings,
  432.                         componentsDataBinder: userTipSettingsModifier,
  433.                         symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
  434.                         url: \"";
  435.             // line 285
  436.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("moderator_tip_settings_edit", ["id" => CoreExtension::getAttribute($this->env$this->source, (isset($context["userTipSettings"]) || array_key_exists("userTipSettings"$context) ? $context["userTipSettings"] : (function () { throw new RuntimeError('Variable "userTipSettings" does not exist.'285$this->source); })()), "id", [], "any"falsefalsefalse285)]), "html"nulltrue);
  437.             yield "\",
  438.                         csrfToken: ";
  439.             // line 286
  440.             yield json_encode(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["userTipSettingsForm"]) || array_key_exists("userTipSettingsForm"$context) ? $context["userTipSettingsForm"] : (function () { throw new RuntimeError('Variable "userTipSettingsForm" does not exist.'286$this->source); })()), "_token", [], "any"falsefalsefalse286), "vars", [], "any"falsefalsefalse286), "value", [], "any"falsefalsefalse286));
  441.             yield ",
  442.                     };
  443.                     let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
  444.                     userTipSettingsFormSaver.init();
  445.                 });
  446.             </script>
  447.         ";
  448.         }
  449.         // line 293
  450.         yield "
  451.         <script>
  452.             const API_COMPARE_DATA_URL = \"";
  453.         // line 295
  454.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_compare_data");
  455.         yield "\";
  456.         </script>
  457.         ";
  458.         // line 297
  459.         yield from $this->unwrap()->yieldBlock('addJs'$context$blocks);
  460.         // line 298
  461.         yield "
  462.         <!-- Core plugin JavaScript-->
  463.         <!-- Custom scripts for all pages-->
  464.         <script src=\"/js/vendor/sb-admin-2.min.js\"></script>
  465.         <script>
  466.             ";
  467.         // line 307
  468.         yield from         $this->loadTemplate("/js/app.js.twig""base.html.twig"307)->unwrap()->yield($context);
  469.         // line 308
  470.         yield "        </script>
  471.     </body>
  472. </html>
  473. ";
  474.         
  475.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  476.         
  477.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  478.         return; yield '';
  479.     }
  480.     // line 5
  481.     public function block_title($context, array $blocks = [])
  482.     {
  483.         $macros $this->macros;
  484.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  485.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  486.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  487.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  488.         
  489.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  490.         
  491.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  492.         return; yield '';
  493.     }
  494.     // line 8
  495.     public function block_stylesheets($context, array $blocks = [])
  496.     {
  497.         $macros $this->macros;
  498.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  499.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  500.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  501.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  502.         // line 9
  503.         yield "            ";
  504.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_link_tags')->getCallable()("app"), "html"nulltrue);
  505.         yield "
  506.         ";
  507.         
  508.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  509.         
  510.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  511.         return; yield '';
  512.     }
  513.     // line 12
  514.     public function block_javascripts($context, array $blocks = [])
  515.     {
  516.         $macros $this->macros;
  517.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  518.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  519.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  520.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  521.         // line 13
  522.         yield "            ";
  523.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_script_tags')->getCallable()("app"), "html"nulltrue);
  524.         yield "
  525.         ";
  526.         
  527.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  528.         
  529.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  530.         return; yield '';
  531.     }
  532.     // line 191
  533.     public function block_body($context, array $blocks = [])
  534.     {
  535.         $macros $this->macros;
  536.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  537.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  538.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  539.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  540.         
  541.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  542.         
  543.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  544.         return; yield '';
  545.     }
  546.     // line 297
  547.     public function block_addJs($context, array $blocks = [])
  548.     {
  549.         $macros $this->macros;
  550.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  551.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  552.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  553.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  554.         
  555.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  556.         
  557.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  558.         return; yield '';
  559.     }
  560.     /**
  561.      * @codeCoverageIgnore
  562.      */
  563.     public function getTemplateName()
  564.     {
  565.         return "base.html.twig";
  566.     }
  567.     /**
  568.      * @codeCoverageIgnore
  569.      */
  570.     public function isTraitable()
  571.     {
  572.         return false;
  573.     }
  574.     /**
  575.      * @codeCoverageIgnore
  576.      */
  577.     public function getDebugInfo()
  578.     {
  579.         return array (  611 => 297,  592 => 191,  578 => 13,  568 => 12,  554 => 9,  544 => 8,  525 => 5,  511 => 308,  509 => 307,  498 => 298,  496 => 297,  491 => 295,  487 => 293,  477 => 286,  473 => 285,  455 => 270,  448 => 265,  445 => 264,  442 => 262,  432 => 255,  428 => 254,  410 => 239,  403 => 234,  400 => 233,  397 => 231,  385 => 222,  381 => 221,  362 => 205,  349 => 194,  347 => 193,  344 => 192,  342 => 191,  339 => 190,  336 => 189,  333 => 188,  330 => 187,  328 => 186,  325 => 185,  322 => 184,  319 => 183,  317 => 182,  314 => 181,  311 => 180,  308 => 179,  306 => 178,  303 => 177,  300 => 176,  297 => 175,  294 => 174,  292 => 173,  261 => 145,  242 => 130,  239 => 129,  236 => 128,  234 => 127,  220 => 115,  218 => 114,  213 => 111,  211 => 110,  206 => 107,  204 => 106,  199 => 103,  197 => 102,  189 => 96,  186 => 94,  181 => 90,  179 => 89,  167 => 79,  165 => 78,  160 => 75,  158 => 74,  153 => 71,  151 => 70,  147 => 68,  145 => 67,  134 => 58,  132 => 57,  128 => 55,  126 => 54,  122 => 52,  120 => 51,  116 => 49,  114 => 48,  109 => 45,  107 => 44,  103 => 42,  101 => 41,  96 => 38,  94 => 37,  86 => 31,  82 => 28,  68 => 15,  66 => 12,  63 => 11,  60 => 8,  55 => 5,  49 => 1,);
  580.     }
  581.     public function getSourceContext()
  582.     {
  583.         return new Source("<!DOCTYPE html>
  584. <html>
  585.     <head>
  586.         <meta charset=\"UTF-8\">
  587.         <title>{% block title %}{% endblock %}</title>
  588.         <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>\">
  589.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  590.         {% block stylesheets %}
  591.             {{ encore_entry_link_tags('app') }}
  592.         {% endblock %}
  593.         {% block javascripts %}
  594.             {{ encore_entry_script_tags('app') }}
  595.         {% endblock %}
  596.         <link href=\"/js/vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\" type=\"text/css\">
  597.         <link
  598.             href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
  599.             rel=\"stylesheet\">
  600.         <link href=\"/css/attributes.css\" rel=\"stylesheet\">
  601.         <link href=\"/css/styles.css\" rel=\"stylesheet\">
  602.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
  603.         <link href=\"/js/vendor/toastify/toastify.min.css\" rel=\"stylesheet\">
  604.         <!-- Custom styles for this template-->
  605.         <link href=\"/css/sb-admin-2.css\" rel=\"stylesheet\">
  606.         {# <link href=\"/css/sb-admin-2.min.css\" rel=\"stylesheet\"> #}
  607.         <link href=\"/js/vendor/datatables/dataTables.bootstrap4.min.css\" rel=\"stylesheet\">
  608.         <script src=\"/js/vendor/jquery/jquery.min.js\"></script>
  609. {#        <script src=\"/js/vendor/jquery-3.4.1.min.js\"></script>#}
  610.         <script src=\"/js/vendor/toastify/toastify-js.js\"></script>
  611.         <link href=\"/css/overrides.css\" rel=\"stylesheet\">
  612.         <script src=\"/js/library/Utils.js\"></script>
  613.         <script>
  614.             {% include '/js/library/StringUtils.js' %}
  615.         </script>
  616.         <script src=\"/js/library/event_dispatcher/event_dispatcher.js\"></script>
  617.         <script>
  618.             {% include '/js/library/gallery_carousel/gallery_carousel.js.twig' %}
  619.         </script>
  620.         <script>
  621.             {% include '/js/library/month_range_slider/month_range_slider.js.twig' %}
  622.         </script>
  623.         <script src=\"/js/library/url_builder/url_builder.js\"></script>
  624.         <script>
  625.             {% include '/js/library/dropdown/dropdown.js.twig' %}
  626.         </script>
  627.         <script>
  628.             {% include '/js/library/dropdown_with_textarea/dropdown_with_textarea.js.twig' %}
  629.         </script>
  630.         <script>
  631.             {% include '/js/library/dropdown_with_input_filter/dropdown_with_input_filter.js.twig' %}
  632.         </script>
  633.         <script>
  634.             {% include '/js/library/month_range_slider_dropdown/month_range_slider_dropdown.js.twig' %}
  635.         </script>
  636.         <script src=\"/js/library/dropdown/file_dropdown.js\"></script>
  637.         <script src=\"/js/library/Dom.js\"></script>
  638.         <script src=\"/js/vendor/moment.js\"></script>
  639.         <script src=\"/js/vendor/daterangepicker.js\"></script>
  640.         <script src=\"/js/vendor/datepicker.js\"></script>
  641.         <link href=\"/css/daterangepicker.css\" rel=\"stylesheet\">
  642.         <script>
  643.             {% include '/js/library/daterangepicker-custom/daterangepicker-custom.js.twig' %}
  644.         </script>
  645.         <script>
  646.             {% include '/js/library/date_range_picker_with_button/date_range_picker_with_button.js.twig' %}
  647.         </script>
  648.         <script>
  649.             {% include '/js/library/DomDispatcher/DomDispatcher.js.twig' %}
  650.         </script>
  651.         <script>
  652.             {% include '/js/library/init_bearer/init_bearer.js.twig' %}
  653.             const initBearer = new InitBearer();
  654.             const INIT_BEARERS = {
  655.                 GLOBAL_DOM_DISPATCHER: \"initBearer.globalDomDispatcher\",
  656.                 GLOBAL_USER_SETTINGS_MODIFIER: \"initBearer.globalUserSettingsModifier\",
  657.                 GLOBAL_USER_SETTINGS_FORM_SAVER: \"initBearer.globalUserSettingsFormSaver\",
  658.                 GLOBAL_CALENDAR_EVENTS_SELECTOR_COMPONENT: \"initBearer.globalCalendarEventsSelectorComponent\",
  659.             };
  660.         </script>
  661.         <script>
  662.             {% include '/js/library/entity_collection/entity_collection.js.twig' %}
  663.         </script>
  664.         <script src=\"/js/vendor/jquery-easing/jquery.easing.min.js\"></script>
  665.         {# <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js\"></script> #}
  666.         {# <script src=\"/js/vendor/bootstrap/js/5.3.0/bootstrap.bundle.min.js\"></script> #}
  667.         <script src=\"/js/vendor/bootstrap/js/4.6.0/bootstrap.bundle.min.js\"></script>
  668.         <script src=\"/js/vendor/datatables/jquery.dataTables.min.js\"></script>
  669.         <script src=\"/js/vendor/datatables/dataTables.bootstrap4.min.js\"></script>
  670.         <script src=\"/js/library/data_table/data_table_extensions.js\"></script>
  671.         <script>
  672.             {% include '/js/library/data_table/custom_data_table.js' %}
  673.         </script>
  674.         <script>
  675.             {% include '/js/library/symfony_form_data_builder/symfony_form_data_builder.js.twig' %}
  676.         </script>
  677.         <script>
  678.             {% include '/js/library/json_object_to_components_data_binder/json_object_to_components_data_binder.js.twig' %}
  679.         </script>
  680.         <script>
  681.             {% include '/js/library/json_form_saver/json_form_saver.js.twig' %}
  682.         </script>
  683.         <style>
  684.             .svg-ship {
  685.                 max-width: 70px;
  686.                 fill: white;
  687.                 /* transform: scaleX(-1); */
  688.                 height: 50px;
  689.             }
  690.         </style>
  691.     </head>
  692.     {% set bodyClass = block('bodyClass') is defined ? block('bodyClass') : null %}
  693.     {% set bodyAttrs = block('bodyAttrs') is defined ? block('bodyAttrs') : null %}
  694.     <body{{ bodyClass ? (' class=\"' ~ bodyClass ~ '\"')|raw }}{{ bodyAttrs ? (' ' ~ bodyAttrs)|raw }}>
  695.         <!-- Logout Modal-->
  696.         <div class=\"modal fade\" id=\"logoutModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"
  697.             aria-hidden=\"true\">
  698.             <div class=\"modal-dialog\" role=\"document\">
  699.                 <div class=\"modal-content\">
  700.                     <div class=\"modal-header\">
  701.                         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Выйти сейчас?</h5>
  702.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  703.                             <span aria-hidden=\"true\">×</span>
  704.                         </button>
  705.                     </div>
  706.                     <div class=\"modal-body\">Вы выйдете автоматически через 3 часа.</div>
  707.                     <div class=\"modal-footer\">
  708.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">Отмена</button>
  709.                         <a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">Выйти</a>
  710.                     </div>
  711.                 </div>
  712.             </div>
  713.         </div>
  714.         <!-- Window Modal-->
  715.         <div class=\"modal fade\" id=\"windowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"windowModalLabel\"
  716.             aria-hidden=\"true\">
  717.             <div class=\"modal-dialog\" role=\"document\"
  718.                  style=\"max-width: 700px !important;\"
  719.             >
  720.                 <div class=\"modal-content\">
  721.                     <div class=\"modal-header\">
  722.                         <h5 class=\"modal-title\" id=\"windowModalLabel\">Question?</h5>
  723.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  724.                             <span aria-hidden=\"true\">×</span>
  725.                         </button>
  726.                     </div>
  727.                     <div class=\"modal-body\">Modal body</div>
  728.                     <div class=\"modal-footer\">
  729.                         <button class=\"btn btn-primary\">Yes</button>
  730.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">No</button>
  731.                     </div>
  732.                 </div>
  733.             </div>
  734.         </div>
  735.         {% if getUser() %}
  736.             {% set reviewerSettings = reviewerSettingsService.getCurrentReviewerSettings() %}
  737.             {% set reviewerSettingsForm = reviewerSettingsService.getCurrentReviewerSettingsForm().createView() %}
  738.             {% set reviewerSettingsJsonStr = reviewerSettingsService.getCurrentReviewerSettingsJsonStr() %}
  739.             {% set reviewerTipSettings = tipSettingsService.getCurrentReviewerTipSettings() %}
  740.             {% set reviewerTipSettingsForm = tipSettingsService.getCurrentReviewerSettingsForm().createView() %}
  741.             {% set reviewerTipSettingsJsonStr = tipSettingsService.getCurrentReviewerTipSettingsStr() %}
  742.             {% set userTipSettings = tipSettingsService.getCurrentUserTipSettings() %}
  743.             {% set userTipSettingsForm = tipSettingsService.getCurrentUserTipSettingsForm().createView() %}
  744.             {% set userTipSettingsJsonStr = tipSettingsService.getCurrentUserTipSettingsStr() %}
  745.             {% set userSettings = userSettingsService.getCurrentUserSettings() %}
  746.             {% set userSettingsForm = userSettingsService.getCurrentUserSettingsForm().createView() %}
  747.             {% set userSettingsJsonStr = userSettingsService.getCurrentUserSettingsJsonStr() %}
  748.         {% endif %}
  749.         {% block body %}{% endblock %}
  750.         {% if userSettings is defined and userSettings.id %}
  751.             <script>
  752.                 /** @type {JsonObjectToComponentsDataBinder|null} */
  753.                 let userSettingsModifier = null;
  754.                 let userSettings = null;
  755.                 /** @type {JsonFormSaver|null} */
  756.                 let userSettingsFormSaver = null;
  757.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  758.                     /** @type {DomDispatcher} */
  759.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  760.                     userSettings = {{ userSettingsJsonStr|raw }};
  761.                     console.log(userSettings)
  762.                     let userSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"user_settings\");
  763.                     userSettingsModifier = new JsonObjectToComponentsDataBinder(userSettings, {
  764.                         domDispatcherListenGroups: [\"userSettingsModifier\"],
  765.                         domDispatcher: domDispatcher
  766.                     });
  767.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_MODIFIER, userSettingsModifier);
  768.                     let userSettingsSaverOptions = {
  769.                         saveOnChanges: true,
  770.                         jsonObject: userSettings,
  771.                         componentsDataBinder: userSettingsModifier,
  772.                         symfonyFormDataBuilder: userSettingsFormDataBuilder,
  773.                         url: \"{{ path('user_settings_edit_ajax', { id: userSettings.id }) }}\",
  774.                         csrfToken: {{ userSettingsForm._token.vars.value|json_encode|raw }},
  775.                     };
  776.                     userSettingsFormSaver = new JsonFormSaver(userSettingsSaverOptions);
  777.                     userSettingsFormSaver.init();
  778.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
  779.                 });
  780.             </script>
  781.         {% endif %}
  782. {#        tipSettings:#}
  783.         {% if reviewerTipSettings is defined and reviewerTipSettings.id %}
  784.             <script>
  785.                 let reviewerTipSettings = null;
  786.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  787.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  788.                     reviewerTipSettings = {{ reviewerTipSettingsJsonStr|raw }};
  789.                     let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  790.                     let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
  791.                         domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
  792.                         domDispatcher: domDispatcher
  793.                     });
  794.                     reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
  795.                         {invert: true});
  796.                     let reviewerTipSettingsSaverOptions = {
  797.                         saveOnChanges: true,
  798.                         jsonObject: reviewerTipSettings,
  799.                         componentsDataBinder: reviewerTipSettingsModifier,
  800.                         symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
  801.                         url: \"{{ path('moderator_tip_settings_edit', { id: reviewerTipSettings.id }) }}\",
  802.                         csrfToken: {{ reviewerTipSettingsForm._token.vars.value|json_encode|raw }},
  803.                     };
  804.                     let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
  805.                     reviewerTipSettingsFormSaver.init();
  806.                 });
  807.             </script>
  808.         {% endif %}
  809. {#        userTipSettings:#}
  810.         {% if userTipSettings is defined and userTipSettings.id %}
  811.             <script>
  812.                 let userTipSettings = null;
  813.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  814.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  815.                     userTipSettings = {{ userTipSettingsJsonStr|raw }};
  816.                     let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  817.                     let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
  818.                         domDispatcherListenGroups: [\"userTipSettingsModifier\"],
  819.                         domDispatcher: domDispatcher
  820.                     });
  821.                     userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
  822.                         {invert: true});
  823.                     let userTipSettingsSaverOptions = {
  824.                         saveOnChanges: true,
  825.                         jsonObject: userTipSettings,
  826.                         componentsDataBinder: userTipSettingsModifier,
  827.                         symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
  828.                         url: \"{{ path('moderator_tip_settings_edit', { id: userTipSettings.id }) }}\",
  829.                         csrfToken: {{ userTipSettingsForm._token.vars.value|json_encode|raw }},
  830.                     };
  831.                     let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
  832.                     userTipSettingsFormSaver.init();
  833.                 });
  834.             </script>
  835.         {% endif %}
  836.         <script>
  837.             const API_COMPARE_DATA_URL = \"{{ path('api_compare_data') }}\";
  838.         </script>
  839.         {% block addJs %}{% endblock %}
  840.         <!-- Core plugin JavaScript-->
  841.         <!-- Custom scripts for all pages-->
  842.         <script src=\"/js/vendor/sb-admin-2.min.js\"></script>
  843.         <script>
  844.             {% include '/js/app.js.twig' %}
  845.         </script>
  846.     </body>
  847. </html>
  848. ""base.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/base.html.twig");
  849.     }
  850. }