var/cache/dev/twig/c5/c505dabff3391b1b798ce2ece1f8855f.php line 39

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_850aca646d4da9f8df82966602162387 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", ["user_settings_edit_ajax"], "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.                     userSettingsFormSaver.eventDispatcher.on(userSettingsFormSaver.EVENTS.ON_SAVE_ERROR, () => {
  361.                         showToast(\"Ошибка при обновлении настроек.<br>Попробуйте обновить\"
  362.                             + \" страницу и совершить действие повторно.\", TOAST_TYPE.ERROR);
  363.                     });
  364.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
  365.                 });
  366.             </script>
  367.         ";
  368.         }
  369.         // line 235
  370.         yield "
  371. ";
  372.         // line 237
  373.         yield "        ";
  374.         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.'237$this->source); })()), "id", [], "any"falsefalsefalse237))) {
  375.             // line 238
  376.             yield "            <script>
  377.                 let reviewerTipSettings = null;
  378.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  379.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  380.                     reviewerTipSettings = ";
  381.             // line 243
  382.             yield (isset($context["reviewerTipSettingsJsonStr"]) || array_key_exists("reviewerTipSettingsJsonStr"$context) ? $context["reviewerTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "reviewerTipSettingsJsonStr" does not exist.'243$this->source); })());
  383.             yield ";
  384.                     let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  385.                     let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
  386.                         domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
  387.                         domDispatcher: domDispatcher
  388.                     });
  389.                     reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
  390.                         {invert: true});
  391.                     let reviewerTipSettingsSaverOptions = {
  392.                         saveOnChanges: true,
  393.                         jsonObject: reviewerTipSettings,
  394.                         componentsDataBinder: reviewerTipSettingsModifier,
  395.                         symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
  396.                         url: \"";
  397.             // line 258
  398.             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.'258$this->source); })()), "id", [], "any"falsefalsefalse258)]), "html"nulltrue);
  399.             yield "\",
  400.                         csrfToken: ";
  401.             // line 259
  402.             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.'259$this->source); })()), "_token", [], "any"falsefalsefalse259), "vars", [], "any"falsefalsefalse259), "value", [], "any"falsefalsefalse259));
  403.             yield ",
  404.                     };
  405.                     let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
  406.                     reviewerTipSettingsFormSaver.init();
  407.                 });
  408.             </script>
  409.         ";
  410.         }
  411.         // line 266
  412.         yield "
  413. ";
  414.         // line 268
  415.         yield "        ";
  416.         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.'268$this->source); })()), "id", [], "any"falsefalsefalse268))) {
  417.             // line 269
  418.             yield "            <script>
  419.                 let userTipSettings = null;
  420.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  421.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  422.                     userTipSettings = ";
  423.             // line 274
  424.             yield (isset($context["userTipSettingsJsonStr"]) || array_key_exists("userTipSettingsJsonStr"$context) ? $context["userTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "userTipSettingsJsonStr" does not exist.'274$this->source); })());
  425.             yield ";
  426.                     let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  427.                     let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
  428.                         domDispatcherListenGroups: [\"userTipSettingsModifier\"],
  429.                         domDispatcher: domDispatcher
  430.                     });
  431.                     userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
  432.                         {invert: true});
  433.                     let userTipSettingsSaverOptions = {
  434.                         saveOnChanges: true,
  435.                         jsonObject: userTipSettings,
  436.                         componentsDataBinder: userTipSettingsModifier,
  437.                         symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
  438.                         url: \"";
  439.             // line 289
  440.             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.'289$this->source); })()), "id", [], "any"falsefalsefalse289)]), "html"nulltrue);
  441.             yield "\",
  442.                         csrfToken: ";
  443.             // line 290
  444.             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.'290$this->source); })()), "_token", [], "any"falsefalsefalse290), "vars", [], "any"falsefalsefalse290), "value", [], "any"falsefalsefalse290));
  445.             yield ",
  446.                     };
  447.                     let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
  448.                     userTipSettingsFormSaver.init();
  449.                 });
  450.             </script>
  451.         ";
  452.         }
  453.         // line 297
  454.         yield "
  455.         <script>
  456.             const API_COMPARE_DATA_URL = \"";
  457.         // line 299
  458.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_compare_data");
  459.         yield "\";
  460.         </script>
  461.         ";
  462.         // line 301
  463.         yield from $this->unwrap()->yieldBlock('addJs'$context$blocks);
  464.         // line 302
  465.         yield "
  466.         <!-- Core plugin JavaScript-->
  467.         <!-- Custom scripts for all pages-->
  468.         <script src=\"/js/vendor/sb-admin-2.min.js\"></script>
  469.         <script>
  470.             ";
  471.         // line 311
  472.         yield from         $this->loadTemplate("/js/app.js.twig""base.html.twig"311)->unwrap()->yield($context);
  473.         // line 312
  474.         yield "        </script>
  475.     </body>
  476. </html>
  477. ";
  478.         
  479.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  480.         
  481.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  482.         return; yield '';
  483.     }
  484.     // line 5
  485.     public function block_title($context, array $blocks = [])
  486.     {
  487.         $macros $this->macros;
  488.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  489.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  490.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  491.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  492.         
  493.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  494.         
  495.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  496.         return; yield '';
  497.     }
  498.     // line 8
  499.     public function block_stylesheets($context, array $blocks = [])
  500.     {
  501.         $macros $this->macros;
  502.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  503.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  504.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  505.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  506.         // line 9
  507.         yield "            ";
  508.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_link_tags')->getCallable()("app"), "html"nulltrue);
  509.         yield "
  510.         ";
  511.         
  512.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  513.         
  514.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  515.         return; yield '';
  516.     }
  517.     // line 12
  518.     public function block_javascripts($context, array $blocks = [])
  519.     {
  520.         $macros $this->macros;
  521.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  522.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  523.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  524.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  525.         // line 13
  526.         yield "            ";
  527.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_script_tags')->getCallable()("app"), "html"nulltrue);
  528.         yield "
  529.         ";
  530.         
  531.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  532.         
  533.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  534.         return; yield '';
  535.     }
  536.     // line 191
  537.     public function block_body($context, array $blocks = [])
  538.     {
  539.         $macros $this->macros;
  540.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  541.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  542.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  543.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  544.         
  545.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  546.         
  547.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  548.         return; yield '';
  549.     }
  550.     // line 301
  551.     public function block_addJs($context, array $blocks = [])
  552.     {
  553.         $macros $this->macros;
  554.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  555.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  556.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  557.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addJs"));
  558.         
  559.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  560.         
  561.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  562.         return; yield '';
  563.     }
  564.     /**
  565.      * @codeCoverageIgnore
  566.      */
  567.     public function getTemplateName()
  568.     {
  569.         return "base.html.twig";
  570.     }
  571.     /**
  572.      * @codeCoverageIgnore
  573.      */
  574.     public function isTraitable()
  575.     {
  576.         return false;
  577.     }
  578.     /**
  579.      * @codeCoverageIgnore
  580.      */
  581.     public function getDebugInfo()
  582.     {
  583.         return array (  615 => 301,  596 => 191,  582 => 13,  572 => 12,  558 => 9,  548 => 8,  529 => 5,  515 => 312,  513 => 311,  502 => 302,  500 => 301,  495 => 299,  491 => 297,  481 => 290,  477 => 289,  459 => 274,  452 => 269,  449 => 268,  446 => 266,  436 => 259,  432 => 258,  414 => 243,  407 => 238,  404 => 237,  401 => 235,  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,);
  584.     }
  585.     public function getSourceContext()
  586.     {
  587.         return new Source("<!DOCTYPE html>
  588. <html>
  589.     <head>
  590.         <meta charset=\"UTF-8\">
  591.         <title>{% block title %}{% endblock %}</title>
  592.         <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>\">
  593.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  594.         {% block stylesheets %}
  595.             {{ encore_entry_link_tags('app') }}
  596.         {% endblock %}
  597.         {% block javascripts %}
  598.             {{ encore_entry_script_tags('app') }}
  599.         {% endblock %}
  600.         <link href=\"/js/vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\" type=\"text/css\">
  601.         <link
  602.             href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
  603.             rel=\"stylesheet\">
  604.         <link href=\"/css/attributes.css\" rel=\"stylesheet\">
  605.         <link href=\"/css/styles.css\" rel=\"stylesheet\">
  606.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
  607.         <link href=\"/js/vendor/toastify/toastify.min.css\" rel=\"stylesheet\">
  608.         <!-- Custom styles for this template-->
  609.         <link href=\"/css/sb-admin-2.css\" rel=\"stylesheet\">
  610.         {# <link href=\"/css/sb-admin-2.min.css\" rel=\"stylesheet\"> #}
  611.         <link href=\"/js/vendor/datatables/dataTables.bootstrap4.min.css\" rel=\"stylesheet\">
  612.         <script src=\"/js/vendor/jquery/jquery.min.js\"></script>
  613. {#        <script src=\"/js/vendor/jquery-3.4.1.min.js\"></script>#}
  614.         <script src=\"/js/vendor/toastify/toastify-js.js\"></script>
  615.         <link href=\"/css/overrides.css\" rel=\"stylesheet\">
  616.         <script src=\"/js/library/Utils.js\"></script>
  617.         <script>
  618.             {% include '/js/library/StringUtils.js' %}
  619.         </script>
  620.         <script src=\"/js/library/event_dispatcher/event_dispatcher.js\"></script>
  621.         <script>
  622.             {% include '/js/library/gallery_carousel/gallery_carousel.js.twig' %}
  623.         </script>
  624.         <script>
  625.             {% include '/js/library/month_range_slider/month_range_slider.js.twig' %}
  626.         </script>
  627.         <script src=\"/js/library/url_builder/url_builder.js\"></script>
  628.         <script>
  629.             {% include '/js/library/dropdown/dropdown.js.twig' %}
  630.         </script>
  631.         <script>
  632.             {% include '/js/library/dropdown_with_textarea/dropdown_with_textarea.js.twig' %}
  633.         </script>
  634.         <script>
  635.             {% include '/js/library/dropdown_with_input_filter/dropdown_with_input_filter.js.twig' %}
  636.         </script>
  637.         <script>
  638.             {% include '/js/library/month_range_slider_dropdown/month_range_slider_dropdown.js.twig' %}
  639.         </script>
  640.         <script src=\"/js/library/dropdown/file_dropdown.js\"></script>
  641.         <script src=\"/js/library/Dom.js\"></script>
  642.         <script src=\"/js/vendor/moment.js\"></script>
  643.         <script src=\"/js/vendor/daterangepicker.js\"></script>
  644.         <script src=\"/js/vendor/datepicker.js\"></script>
  645.         <link href=\"/css/daterangepicker.css\" rel=\"stylesheet\">
  646.         <script>
  647.             {% include '/js/library/daterangepicker-custom/daterangepicker-custom.js.twig' %}
  648.         </script>
  649.         <script>
  650.             {% include '/js/library/date_range_picker_with_button/date_range_picker_with_button.js.twig' %}
  651.         </script>
  652.         <script>
  653.             {% include '/js/library/DomDispatcher/DomDispatcher.js.twig' %}
  654.         </script>
  655.         <script>
  656.             {% include '/js/library/init_bearer/init_bearer.js.twig' %}
  657.             const initBearer = new InitBearer();
  658.             const INIT_BEARERS = {
  659.                 GLOBAL_DOM_DISPATCHER: \"initBearer.globalDomDispatcher\",
  660.                 GLOBAL_USER_SETTINGS_MODIFIER: \"initBearer.globalUserSettingsModifier\",
  661.                 GLOBAL_USER_SETTINGS_FORM_SAVER: \"initBearer.globalUserSettingsFormSaver\",
  662.                 GLOBAL_CALENDAR_EVENTS_SELECTOR_COMPONENT: \"initBearer.globalCalendarEventsSelectorComponent\",
  663.             };
  664.         </script>
  665.         <script>
  666.             {% include '/js/library/entity_collection/entity_collection.js.twig' %}
  667.         </script>
  668.         <script src=\"/js/vendor/jquery-easing/jquery.easing.min.js\"></script>
  669.         {# <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js\"></script> #}
  670.         {# <script src=\"/js/vendor/bootstrap/js/5.3.0/bootstrap.bundle.min.js\"></script> #}
  671.         <script src=\"/js/vendor/bootstrap/js/4.6.0/bootstrap.bundle.min.js\"></script>
  672.         <script src=\"/js/vendor/datatables/jquery.dataTables.min.js\"></script>
  673.         <script src=\"/js/vendor/datatables/dataTables.bootstrap4.min.js\"></script>
  674.         <script src=\"/js/library/data_table/data_table_extensions.js\"></script>
  675.         <script>
  676.             {% include '/js/library/data_table/custom_data_table.js' %}
  677.         </script>
  678.         <script>
  679.             {% include '/js/library/symfony_form_data_builder/symfony_form_data_builder.js.twig' %}
  680.         </script>
  681.         <script>
  682.             {% include '/js/library/json_object_to_components_data_binder/json_object_to_components_data_binder.js.twig' %}
  683.         </script>
  684.         <script>
  685.             {% include '/js/library/json_form_saver/json_form_saver.js.twig' %}
  686.         </script>
  687.         <style>
  688.             .svg-ship {
  689.                 max-width: 70px;
  690.                 fill: white;
  691.                 /* transform: scaleX(-1); */
  692.                 height: 50px;
  693.             }
  694.         </style>
  695.     </head>
  696.     {% set bodyClass = block('bodyClass') is defined ? block('bodyClass') : null %}
  697.     {% set bodyAttrs = block('bodyAttrs') is defined ? block('bodyAttrs') : null %}
  698.     <body{{ bodyClass ? (' class=\"' ~ bodyClass ~ '\"')|raw }}{{ bodyAttrs ? (' ' ~ bodyAttrs)|raw }}>
  699.         <!-- Logout Modal-->
  700.         <div class=\"modal fade\" id=\"logoutModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"
  701.             aria-hidden=\"true\">
  702.             <div class=\"modal-dialog\" role=\"document\">
  703.                 <div class=\"modal-content\">
  704.                     <div class=\"modal-header\">
  705.                         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Выйти сейчас?</h5>
  706.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  707.                             <span aria-hidden=\"true\">×</span>
  708.                         </button>
  709.                     </div>
  710.                     <div class=\"modal-body\">Вы выйдете автоматически через 3 часа.</div>
  711.                     <div class=\"modal-footer\">
  712.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">Отмена</button>
  713.                         <a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">Выйти</a>
  714.                     </div>
  715.                 </div>
  716.             </div>
  717.         </div>
  718.         <!-- Window Modal-->
  719.         <div class=\"modal fade\" id=\"windowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"windowModalLabel\"
  720.             aria-hidden=\"true\">
  721.             <div class=\"modal-dialog\" role=\"document\"
  722.                  style=\"max-width: 700px !important;\"
  723.             >
  724.                 <div class=\"modal-content\">
  725.                     <div class=\"modal-header\">
  726.                         <h5 class=\"modal-title\" id=\"windowModalLabel\">Question?</h5>
  727.                         <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
  728.                             <span aria-hidden=\"true\">×</span>
  729.                         </button>
  730.                     </div>
  731.                     <div class=\"modal-body\">Modal body</div>
  732.                     <div class=\"modal-footer\">
  733.                         <button class=\"btn btn-primary\">Yes</button>
  734.                         <button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">No</button>
  735.                     </div>
  736.                 </div>
  737.             </div>
  738.         </div>
  739.         {% if getUser() %}
  740.             {% set reviewerSettings = reviewerSettingsService.getCurrentReviewerSettings() %}
  741.             {% set reviewerSettingsForm = reviewerSettingsService.getCurrentReviewerSettingsForm().createView() %}
  742.             {% set reviewerSettingsJsonStr = reviewerSettingsService.getCurrentReviewerSettingsJsonStr() %}
  743.             {% set reviewerTipSettings = tipSettingsService.getCurrentReviewerTipSettings() %}
  744.             {% set reviewerTipSettingsForm = tipSettingsService.getCurrentReviewerSettingsForm().createView() %}
  745.             {% set reviewerTipSettingsJsonStr = tipSettingsService.getCurrentReviewerTipSettingsStr() %}
  746.             {% set userTipSettings = tipSettingsService.getCurrentUserTipSettings() %}
  747.             {% set userTipSettingsForm = tipSettingsService.getCurrentUserTipSettingsForm().createView() %}
  748.             {% set userTipSettingsJsonStr = tipSettingsService.getCurrentUserTipSettingsStr() %}
  749.             {% set userSettings = userSettingsService.getCurrentUserSettings() %}
  750.             {% set userSettingsForm = userSettingsService.getCurrentUserSettingsForm().createView() %}
  751.             {% set userSettingsJsonStr = userSettingsService.getCurrentUserSettingsJsonStr('user_settings_edit_ajax') %}
  752.         {% endif %}
  753.         {% block body %}{% endblock %}
  754.         {% if userSettings is defined and userSettings.id %}
  755.             <script>
  756.                 /** @type {JsonObjectToComponentsDataBinder|null} */
  757.                 let userSettingsModifier = null;
  758.                 let userSettings = null;
  759.                 /** @type {JsonFormSaver|null} */
  760.                 let userSettingsFormSaver = null;
  761.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  762.                     /** @type {DomDispatcher} */
  763.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  764.                     userSettings = {{ userSettingsJsonStr|raw }};
  765.                     console.log(userSettings)
  766.                     let userSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"user_settings\");
  767.                     userSettingsModifier = new JsonObjectToComponentsDataBinder(userSettings, {
  768.                         domDispatcherListenGroups: [\"userSettingsModifier\"],
  769.                         domDispatcher: domDispatcher
  770.                     });
  771.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_MODIFIER, userSettingsModifier);
  772.                     let userSettingsSaverOptions = {
  773.                         saveOnChanges: true,
  774.                         jsonObject: userSettings,
  775.                         componentsDataBinder: userSettingsModifier,
  776.                         symfonyFormDataBuilder: userSettingsFormDataBuilder,
  777.                         url: \"{{ path('user_settings_edit_ajax', { id: userSettings.id }) }}\",
  778.                         csrfToken: {{ userSettingsForm._token.vars.value|json_encode|raw }},
  779.                     };
  780.                     userSettingsFormSaver = new JsonFormSaver(userSettingsSaverOptions);
  781.                     userSettingsFormSaver.init();
  782.                     userSettingsFormSaver.eventDispatcher.on(userSettingsFormSaver.EVENTS.ON_SAVE_ERROR, () => {
  783.                         showToast(\"Ошибка при обновлении настроек.<br>Попробуйте обновить\"
  784.                             + \" страницу и совершить действие повторно.\", TOAST_TYPE.ERROR);
  785.                     });
  786.                     initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
  787.                 });
  788.             </script>
  789.         {% endif %}
  790. {#        tipSettings:#}
  791.         {% if reviewerTipSettings is defined and reviewerTipSettings.id %}
  792.             <script>
  793.                 let reviewerTipSettings = null;
  794.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  795.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  796.                     reviewerTipSettings = {{ reviewerTipSettingsJsonStr|raw }};
  797.                     let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  798.                     let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
  799.                         domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
  800.                         domDispatcher: domDispatcher
  801.                     });
  802.                     reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
  803.                         {invert: true});
  804.                     let reviewerTipSettingsSaverOptions = {
  805.                         saveOnChanges: true,
  806.                         jsonObject: reviewerTipSettings,
  807.                         componentsDataBinder: reviewerTipSettingsModifier,
  808.                         symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
  809.                         url: \"{{ path('moderator_tip_settings_edit', { id: reviewerTipSettings.id }) }}\",
  810.                         csrfToken: {{ reviewerTipSettingsForm._token.vars.value|json_encode|raw }},
  811.                     };
  812.                     let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
  813.                     reviewerTipSettingsFormSaver.init();
  814.                 });
  815.             </script>
  816.         {% endif %}
  817. {#        userTipSettings:#}
  818.         {% if userTipSettings is defined and userTipSettings.id %}
  819.             <script>
  820.                 let userTipSettings = null;
  821.                 initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
  822.                     const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
  823.                     userTipSettings = {{ userTipSettingsJsonStr|raw }};
  824.                     let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
  825.                     let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
  826.                         domDispatcherListenGroups: [\"userTipSettingsModifier\"],
  827.                         domDispatcher: domDispatcher
  828.                     });
  829.                     userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
  830.                         {invert: true});
  831.                     let userTipSettingsSaverOptions = {
  832.                         saveOnChanges: true,
  833.                         jsonObject: userTipSettings,
  834.                         componentsDataBinder: userTipSettingsModifier,
  835.                         symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
  836.                         url: \"{{ path('moderator_tip_settings_edit', { id: userTipSettings.id }) }}\",
  837.                         csrfToken: {{ userTipSettingsForm._token.vars.value|json_encode|raw }},
  838.                     };
  839.                     let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
  840.                     userTipSettingsFormSaver.init();
  841.                 });
  842.             </script>
  843.         {% endif %}
  844.         <script>
  845.             const API_COMPARE_DATA_URL = \"{{ path('api_compare_data') }}\";
  846.         </script>
  847.         {% block addJs %}{% endblock %}
  848.         <!-- Core plugin JavaScript-->
  849.         <!-- Custom scripts for all pages-->
  850.         <script src=\"/js/vendor/sb-admin-2.min.js\"></script>
  851.         <script>
  852.             {% include '/js/app.js.twig' %}
  853.         </script>
  854.     </body>
  855. </html>
  856. ""base.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/base.html.twig");
  857.     }
  858. }