<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* base.html.twig */
class __TwigTemplate_1c8753c7eaa02c06c398bb9782f6153f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'addJs' => [$this, 'block_addJs'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>";
// line 5
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
<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>\">
";
// line 8
yield " ";
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 11
yield "
";
// line 12
yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
// line 15
yield "
<link href=\"/js/vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\" type=\"text/css\">
<link
href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
rel=\"stylesheet\">
<link href=\"/css/attributes.css\" rel=\"stylesheet\">
<link href=\"/css/styles.css\" rel=\"stylesheet\">
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
<link href=\"/js/vendor/toastify/toastify.min.css\" rel=\"stylesheet\">
<!-- Custom styles for this template-->
<link href=\"/css/sb-admin-2.css\" rel=\"stylesheet\">
";
// line 28
yield " <link href=\"/js/vendor/datatables/dataTables.bootstrap4.min.css\" rel=\"stylesheet\">
<script src=\"/js/vendor/jquery/jquery.min.js\"></script>
";
// line 31
yield " <script src=\"/js/vendor/toastify/toastify-js.js\"></script>
<link href=\"/css/overrides.css\" rel=\"stylesheet\">
<script src=\"/js/library/Utils.js\"></script>
<script>
";
// line 37
yield from $this->loadTemplate("/js/library/StringUtils.js", "base.html.twig", 37)->unwrap()->yield($context);
// line 38
yield " </script>
<script src=\"/js/library/event_dispatcher/event_dispatcher.js\"></script>
<script>
";
// line 41
yield from $this->loadTemplate("/js/library/gallery_carousel/gallery_carousel.js.twig", "base.html.twig", 41)->unwrap()->yield($context);
// line 42
yield " </script>
<script>
";
// line 44
yield from $this->loadTemplate("/js/library/month_range_slider/month_range_slider.js.twig", "base.html.twig", 44)->unwrap()->yield($context);
// line 45
yield " </script>
<script src=\"/js/library/url_builder/url_builder.js\"></script>
<script>
";
// line 48
yield from $this->loadTemplate("/js/library/dropdown/dropdown.js.twig", "base.html.twig", 48)->unwrap()->yield($context);
// line 49
yield " </script>
<script>
";
// line 51
yield from $this->loadTemplate("/js/library/dropdown_with_textarea/dropdown_with_textarea.js.twig", "base.html.twig", 51)->unwrap()->yield($context);
// line 52
yield " </script>
<script>
";
// line 54
yield from $this->loadTemplate("/js/library/dropdown_with_input_filter/dropdown_with_input_filter.js.twig", "base.html.twig", 54)->unwrap()->yield($context);
// line 55
yield " </script>
<script>
";
// line 57
yield from $this->loadTemplate("/js/library/month_range_slider_dropdown/month_range_slider_dropdown.js.twig", "base.html.twig", 57)->unwrap()->yield($context);
// line 58
yield " </script>
<script src=\"/js/library/dropdown/file_dropdown.js\"></script>
<script src=\"/js/library/Dom.js\"></script>
<script src=\"/js/vendor/moment.js\"></script>
<script src=\"/js/vendor/daterangepicker.js\"></script>
<script src=\"/js/vendor/datepicker.js\"></script>
<link href=\"/css/daterangepicker.css\" rel=\"stylesheet\">
<script>
";
// line 67
yield from $this->loadTemplate("/js/library/daterangepicker-custom/daterangepicker-custom.js.twig", "base.html.twig", 67)->unwrap()->yield($context);
// line 68
yield " </script>
<script>
";
// line 70
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);
// line 71
yield " </script>
<script>
";
// line 74
yield from $this->loadTemplate("/js/library/DomDispatcher/DomDispatcher.js.twig", "base.html.twig", 74)->unwrap()->yield($context);
// line 75
yield " </script>
<script>
";
// line 78
yield from $this->loadTemplate("/js/library/init_bearer/init_bearer.js.twig", "base.html.twig", 78)->unwrap()->yield($context);
// line 79
yield " const initBearer = new InitBearer();
const INIT_BEARERS = {
GLOBAL_DOM_DISPATCHER: \"initBearer.globalDomDispatcher\",
GLOBAL_USER_SETTINGS_MODIFIER: \"initBearer.globalUserSettingsModifier\",
GLOBAL_USER_SETTINGS_FORM_SAVER: \"initBearer.globalUserSettingsFormSaver\",
GLOBAL_CALENDAR_EVENTS_SELECTOR_COMPONENT: \"initBearer.globalCalendarEventsSelectorComponent\",
};
</script>
<script>
";
// line 89
yield from $this->loadTemplate("/js/library/entity_collection/entity_collection.js.twig", "base.html.twig", 89)->unwrap()->yield($context);
// line 90
yield " </script>
<script src=\"/js/vendor/jquery-easing/jquery.easing.min.js\"></script>
";
// line 94
yield "
";
// line 96
yield " <script src=\"/js/vendor/bootstrap/js/4.6.0/bootstrap.bundle.min.js\"></script>
<script src=\"/js/vendor/datatables/jquery.dataTables.min.js\"></script>
<script src=\"/js/vendor/datatables/dataTables.bootstrap4.min.js\"></script>
<script src=\"/js/library/data_table/data_table_extensions.js\"></script>
<script>
";
// line 102
yield from $this->loadTemplate("/js/library/data_table/custom_data_table.js", "base.html.twig", 102)->unwrap()->yield($context);
// line 103
yield " </script>
<script>
";
// line 106
yield from $this->loadTemplate("/js/library/symfony_form_data_builder/symfony_form_data_builder.js.twig", "base.html.twig", 106)->unwrap()->yield($context);
// line 107
yield " </script>
<script>
";
// line 110
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);
// line 111
yield " </script>
<script>
";
// line 114
yield from $this->loadTemplate("/js/library/json_form_saver/json_form_saver.js.twig", "base.html.twig", 114)->unwrap()->yield($context);
// line 115
yield " </script>
<style>
.svg-ship {
max-width: 70px;
fill: white;
/* transform: scaleX(-1); */
height: 50px;
}
</style>
</head>
";
// line 127
$context["bodyClass"] = (( $this->unwrap()->hasBlock("bodyClass", $context, $blocks)) ? ( $this->unwrap()->renderBlock("bodyClass", $context, $blocks)) : (null));
// line 128
yield " ";
$context["bodyAttrs"] = (( $this->unwrap()->hasBlock("bodyAttrs", $context, $blocks)) ? ( $this->unwrap()->renderBlock("bodyAttrs", $context, $blocks)) : (null));
// line 129
yield "
<body";
// line 130
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); })())) . "\"")) : (""));
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); })()))) : (""));
yield ">
<!-- Logout Modal-->
<div class=\"modal fade\" id=\"logoutModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Выйти сейчас?</h5>
<button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">Вы выйдете автоматически через 3 часа.</div>
<div class=\"modal-footer\">
<button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">Отмена</button>
<a class=\"btn btn-primary\" href=\"";
// line 145
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
yield "\">Выйти</a>
</div>
</div>
</div>
</div>
<!-- Window Modal-->
<div class=\"modal fade\" id=\"windowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"windowModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\"
style=\"max-width: 700px !important;\"
>
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"windowModalLabel\">Question?</h5>
<button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">Modal body</div>
<div class=\"modal-footer\">
<button class=\"btn btn-primary\">Yes</button>
<button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">No</button>
</div>
</div>
</div>
</div>
";
// line 173
if ($this->extensions['App\Twig\AppExtension']->getUser()) {
// line 174
yield " ";
$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", false, false, false, 174);
// line 175
yield " ";
$context["reviewerSettingsForm"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 175, $this->source); })()), "getCurrentReviewerSettingsForm", [], "method", false, false, false, 175), "createView", [], "method", false, false, false, 175);
// line 176
yield " ";
$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", false, false, false, 176);
// line 177
yield "
";
// line 178
$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", false, false, false, 178);
// line 179
yield " ";
$context["reviewerTipSettingsForm"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 179, $this->source); })()), "getCurrentReviewerSettingsForm", [], "method", false, false, false, 179), "createView", [], "method", false, false, false, 179);
// line 180
yield " ";
$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", false, false, false, 180);
// line 181
yield "
";
// line 182
$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", false, false, false, 182);
// line 183
yield " ";
$context["userTipSettingsForm"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 183, $this->source); })()), "getCurrentUserTipSettingsForm", [], "method", false, false, false, 183), "createView", [], "method", false, false, false, 183);
// line 184
yield " ";
$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", false, false, false, 184);
// line 185
yield "
";
// line 186
$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", false, false, false, 186);
// line 187
yield " ";
$context["userSettingsForm"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 187, $this->source); })()), "getCurrentUserSettingsForm", [], "method", false, false, false, 187), "createView", [], "method", false, false, false, 187);
// line 188
yield " ";
$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", false, false, false, 188);
// line 189
yield " ";
}
// line 190
yield "
";
// line 191
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 192
yield "
";
// line 193
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", false, false, false, 193))) {
// line 194
yield " <script>
/** @type {JsonObjectToComponentsDataBinder|null} */
let userSettingsModifier = null;
let userSettings = null;
/** @type {JsonFormSaver|null} */
let userSettingsFormSaver = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
/** @type {DomDispatcher} */
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
userSettings = ";
// line 205
yield (isset($context["userSettingsJsonStr"]) || array_key_exists("userSettingsJsonStr", $context) ? $context["userSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "userSettingsJsonStr" does not exist.', 205, $this->source); })());
yield ";
console.log(userSettings)
let userSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"user_settings\");
userSettingsModifier = new JsonObjectToComponentsDataBinder(userSettings, {
domDispatcherListenGroups: [\"userSettingsModifier\"],
domDispatcher: domDispatcher
});
initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_MODIFIER, userSettingsModifier);
let userSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: userSettings,
componentsDataBinder: userSettingsModifier,
symfonyFormDataBuilder: userSettingsFormDataBuilder,
url: \"";
// line 221
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", false, false, false, 221)]), "html", null, true);
yield "\",
csrfToken: ";
// line 222
yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 222), "vars", [], "any", false, false, false, 222), "value", [], "any", false, false, false, 222));
yield ",
};
userSettingsFormSaver = new JsonFormSaver(userSettingsSaverOptions);
userSettingsFormSaver.init();
initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
});
</script>
";
}
// line 231
yield "
";
// line 233
yield " ";
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", false, false, false, 233))) {
// line 234
yield " <script>
let reviewerTipSettings = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
reviewerTipSettings = ";
// line 239
yield (isset($context["reviewerTipSettingsJsonStr"]) || array_key_exists("reviewerTipSettingsJsonStr", $context) ? $context["reviewerTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "reviewerTipSettingsJsonStr" does not exist.', 239, $this->source); })());
yield ";
let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
domDispatcher: domDispatcher
});
reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
{invert: true});
let reviewerTipSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: reviewerTipSettings,
componentsDataBinder: reviewerTipSettingsModifier,
symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
url: \"";
// line 254
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", false, false, false, 254)]), "html", null, true);
yield "\",
csrfToken: ";
// line 255
yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 255), "vars", [], "any", false, false, false, 255), "value", [], "any", false, false, false, 255));
yield ",
};
let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
reviewerTipSettingsFormSaver.init();
});
</script>
";
}
// line 262
yield "
";
// line 264
yield " ";
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", false, false, false, 264))) {
// line 265
yield " <script>
let userTipSettings = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
userTipSettings = ";
// line 270
yield (isset($context["userTipSettingsJsonStr"]) || array_key_exists("userTipSettingsJsonStr", $context) ? $context["userTipSettingsJsonStr"] : (function () { throw new RuntimeError('Variable "userTipSettingsJsonStr" does not exist.', 270, $this->source); })());
yield ";
let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
domDispatcherListenGroups: [\"userTipSettingsModifier\"],
domDispatcher: domDispatcher
});
userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
{invert: true});
let userTipSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: userTipSettings,
componentsDataBinder: userTipSettingsModifier,
symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
url: \"";
// line 285
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", false, false, false, 285)]), "html", null, true);
yield "\",
csrfToken: ";
// line 286
yield json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 286), "vars", [], "any", false, false, false, 286), "value", [], "any", false, false, false, 286));
yield ",
};
let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
userTipSettingsFormSaver.init();
});
</script>
";
}
// line 293
yield "
<script>
const API_COMPARE_DATA_URL = \"";
// line 295
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_compare_data");
yield "\";
</script>
";
// line 297
yield from $this->unwrap()->yieldBlock('addJs', $context, $blocks);
// line 298
yield "
<!-- Core plugin JavaScript-->
<!-- Custom scripts for all pages-->
<script src=\"/js/vendor/sb-admin-2.min.js\"></script>
<script>
";
// line 307
yield from $this->loadTemplate("/js/app.js.twig", "base.html.twig", 307)->unwrap()->yield($context);
// line 308
yield " </script>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_link_tags')->getCallable()("app"), "html", null, true);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 13
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('encore_entry_script_tags')->getCallable()("app"), "html", null, true);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 191
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 297
public function block_addJs($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "addJs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "addJs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<title>{% block title %}{% endblock %}</title>
<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>\">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
<link href=\"/js/vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\" type=\"text/css\">
<link
href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
rel=\"stylesheet\">
<link href=\"/css/attributes.css\" rel=\"stylesheet\">
<link href=\"/css/styles.css\" rel=\"stylesheet\">
<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN\" crossorigin=\"anonymous\">
<link href=\"/js/vendor/toastify/toastify.min.css\" rel=\"stylesheet\">
<!-- Custom styles for this template-->
<link href=\"/css/sb-admin-2.css\" rel=\"stylesheet\">
{# <link href=\"/css/sb-admin-2.min.css\" rel=\"stylesheet\"> #}
<link href=\"/js/vendor/datatables/dataTables.bootstrap4.min.css\" rel=\"stylesheet\">
<script src=\"/js/vendor/jquery/jquery.min.js\"></script>
{# <script src=\"/js/vendor/jquery-3.4.1.min.js\"></script>#}
<script src=\"/js/vendor/toastify/toastify-js.js\"></script>
<link href=\"/css/overrides.css\" rel=\"stylesheet\">
<script src=\"/js/library/Utils.js\"></script>
<script>
{% include '/js/library/StringUtils.js' %}
</script>
<script src=\"/js/library/event_dispatcher/event_dispatcher.js\"></script>
<script>
{% include '/js/library/gallery_carousel/gallery_carousel.js.twig' %}
</script>
<script>
{% include '/js/library/month_range_slider/month_range_slider.js.twig' %}
</script>
<script src=\"/js/library/url_builder/url_builder.js\"></script>
<script>
{% include '/js/library/dropdown/dropdown.js.twig' %}
</script>
<script>
{% include '/js/library/dropdown_with_textarea/dropdown_with_textarea.js.twig' %}
</script>
<script>
{% include '/js/library/dropdown_with_input_filter/dropdown_with_input_filter.js.twig' %}
</script>
<script>
{% include '/js/library/month_range_slider_dropdown/month_range_slider_dropdown.js.twig' %}
</script>
<script src=\"/js/library/dropdown/file_dropdown.js\"></script>
<script src=\"/js/library/Dom.js\"></script>
<script src=\"/js/vendor/moment.js\"></script>
<script src=\"/js/vendor/daterangepicker.js\"></script>
<script src=\"/js/vendor/datepicker.js\"></script>
<link href=\"/css/daterangepicker.css\" rel=\"stylesheet\">
<script>
{% include '/js/library/daterangepicker-custom/daterangepicker-custom.js.twig' %}
</script>
<script>
{% include '/js/library/date_range_picker_with_button/date_range_picker_with_button.js.twig' %}
</script>
<script>
{% include '/js/library/DomDispatcher/DomDispatcher.js.twig' %}
</script>
<script>
{% include '/js/library/init_bearer/init_bearer.js.twig' %}
const initBearer = new InitBearer();
const INIT_BEARERS = {
GLOBAL_DOM_DISPATCHER: \"initBearer.globalDomDispatcher\",
GLOBAL_USER_SETTINGS_MODIFIER: \"initBearer.globalUserSettingsModifier\",
GLOBAL_USER_SETTINGS_FORM_SAVER: \"initBearer.globalUserSettingsFormSaver\",
GLOBAL_CALENDAR_EVENTS_SELECTOR_COMPONENT: \"initBearer.globalCalendarEventsSelectorComponent\",
};
</script>
<script>
{% include '/js/library/entity_collection/entity_collection.js.twig' %}
</script>
<script src=\"/js/vendor/jquery-easing/jquery.easing.min.js\"></script>
{# <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js\"></script> #}
{# <script src=\"/js/vendor/bootstrap/js/5.3.0/bootstrap.bundle.min.js\"></script> #}
<script src=\"/js/vendor/bootstrap/js/4.6.0/bootstrap.bundle.min.js\"></script>
<script src=\"/js/vendor/datatables/jquery.dataTables.min.js\"></script>
<script src=\"/js/vendor/datatables/dataTables.bootstrap4.min.js\"></script>
<script src=\"/js/library/data_table/data_table_extensions.js\"></script>
<script>
{% include '/js/library/data_table/custom_data_table.js' %}
</script>
<script>
{% include '/js/library/symfony_form_data_builder/symfony_form_data_builder.js.twig' %}
</script>
<script>
{% include '/js/library/json_object_to_components_data_binder/json_object_to_components_data_binder.js.twig' %}
</script>
<script>
{% include '/js/library/json_form_saver/json_form_saver.js.twig' %}
</script>
<style>
.svg-ship {
max-width: 70px;
fill: white;
/* transform: scaleX(-1); */
height: 50px;
}
</style>
</head>
{% set bodyClass = block('bodyClass') is defined ? block('bodyClass') : null %}
{% set bodyAttrs = block('bodyAttrs') is defined ? block('bodyAttrs') : null %}
<body{{ bodyClass ? (' class=\"' ~ bodyClass ~ '\"')|raw }}{{ bodyAttrs ? (' ' ~ bodyAttrs)|raw }}>
<!-- Logout Modal-->
<div class=\"modal fade\" id=\"logoutModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Выйти сейчас?</h5>
<button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">Вы выйдете автоматически через 3 часа.</div>
<div class=\"modal-footer\">
<button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">Отмена</button>
<a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">Выйти</a>
</div>
</div>
</div>
</div>
<!-- Window Modal-->
<div class=\"modal fade\" id=\"windowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"windowModalLabel\"
aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\"
style=\"max-width: 700px !important;\"
>
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"windowModalLabel\">Question?</h5>
<button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">Modal body</div>
<div class=\"modal-footer\">
<button class=\"btn btn-primary\">Yes</button>
<button class=\"btn btn-secondary\" type=\"button\" data-dismiss=\"modal\">No</button>
</div>
</div>
</div>
</div>
{% if getUser() %}
{% set reviewerSettings = reviewerSettingsService.getCurrentReviewerSettings() %}
{% set reviewerSettingsForm = reviewerSettingsService.getCurrentReviewerSettingsForm().createView() %}
{% set reviewerSettingsJsonStr = reviewerSettingsService.getCurrentReviewerSettingsJsonStr() %}
{% set reviewerTipSettings = tipSettingsService.getCurrentReviewerTipSettings() %}
{% set reviewerTipSettingsForm = tipSettingsService.getCurrentReviewerSettingsForm().createView() %}
{% set reviewerTipSettingsJsonStr = tipSettingsService.getCurrentReviewerTipSettingsStr() %}
{% set userTipSettings = tipSettingsService.getCurrentUserTipSettings() %}
{% set userTipSettingsForm = tipSettingsService.getCurrentUserTipSettingsForm().createView() %}
{% set userTipSettingsJsonStr = tipSettingsService.getCurrentUserTipSettingsStr() %}
{% set userSettings = userSettingsService.getCurrentUserSettings() %}
{% set userSettingsForm = userSettingsService.getCurrentUserSettingsForm().createView() %}
{% set userSettingsJsonStr = userSettingsService.getCurrentUserSettingsJsonStr() %}
{% endif %}
{% block body %}{% endblock %}
{% if userSettings is defined and userSettings.id %}
<script>
/** @type {JsonObjectToComponentsDataBinder|null} */
let userSettingsModifier = null;
let userSettings = null;
/** @type {JsonFormSaver|null} */
let userSettingsFormSaver = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
/** @type {DomDispatcher} */
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
userSettings = {{ userSettingsJsonStr|raw }};
console.log(userSettings)
let userSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"user_settings\");
userSettingsModifier = new JsonObjectToComponentsDataBinder(userSettings, {
domDispatcherListenGroups: [\"userSettingsModifier\"],
domDispatcher: domDispatcher
});
initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_MODIFIER, userSettingsModifier);
let userSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: userSettings,
componentsDataBinder: userSettingsModifier,
symfonyFormDataBuilder: userSettingsFormDataBuilder,
url: \"{{ path('user_settings_edit_ajax', { id: userSettings.id }) }}\",
csrfToken: {{ userSettingsForm._token.vars.value|json_encode|raw }},
};
userSettingsFormSaver = new JsonFormSaver(userSettingsSaverOptions);
userSettingsFormSaver.init();
initBearer.set(INIT_BEARERS.GLOBAL_USER_SETTINGS_FORM_SAVER, userSettingsModifier);
});
</script>
{% endif %}
{# tipSettings:#}
{% if reviewerTipSettings is defined and reviewerTipSettings.id %}
<script>
let reviewerTipSettings = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
reviewerTipSettings = {{ reviewerTipSettingsJsonStr|raw }};
let reviewerTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
let reviewerTipSettingsModifier = new JsonObjectToComponentsDataBinder(reviewerTipSettings, {
domDispatcherListenGroups: [\"reviewerTipSettingsModifier\"],
domDispatcher: domDispatcher
});
reviewerTipSettingsModifier.setComponentBindOptions(\"showReviewerRecommendationsTip\",
{invert: true});
let reviewerTipSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: reviewerTipSettings,
componentsDataBinder: reviewerTipSettingsModifier,
symfonyFormDataBuilder: reviewerTipSettingsFormDataBuilder,
url: \"{{ path('moderator_tip_settings_edit', { id: reviewerTipSettings.id }) }}\",
csrfToken: {{ reviewerTipSettingsForm._token.vars.value|json_encode|raw }},
};
let reviewerTipSettingsFormSaver = new JsonFormSaver(reviewerTipSettingsSaverOptions);
reviewerTipSettingsFormSaver.init();
});
</script>
{% endif %}
{# userTipSettings:#}
{% if userTipSettings is defined and userTipSettings.id %}
<script>
let userTipSettings = null;
initBearer.wait([INIT_BEARERS.GLOBAL_DOM_DISPATCHER]).then(() => {
const domDispatcher = initBearer.get(INIT_BEARERS.GLOBAL_DOM_DISPATCHER);
userTipSettings = {{ userTipSettingsJsonStr|raw }};
let userTipSettingsFormDataBuilder = new SymfonyFormDataBuilder(\"tip_settings\");
let userTipSettingsModifier = new JsonObjectToComponentsDataBinder(userTipSettings, {
domDispatcherListenGroups: [\"userTipSettingsModifier\"],
domDispatcher: domDispatcher
});
userTipSettingsModifier.setComponentBindOptions(\"showCalendarEventsPeriodTip\",
{invert: true});
let userTipSettingsSaverOptions = {
saveOnChanges: true,
jsonObject: userTipSettings,
componentsDataBinder: userTipSettingsModifier,
symfonyFormDataBuilder: userTipSettingsFormDataBuilder,
url: \"{{ path('moderator_tip_settings_edit', { id: userTipSettings.id }) }}\",
csrfToken: {{ userTipSettingsForm._token.vars.value|json_encode|raw }},
};
let userTipSettingsFormSaver = new JsonFormSaver(userTipSettingsSaverOptions);
userTipSettingsFormSaver.init();
});
</script>
{% endif %}
<script>
const API_COMPARE_DATA_URL = \"{{ path('api_compare_data') }}\";
</script>
{% block addJs %}{% endblock %}
<!-- Core plugin JavaScript-->
<!-- Custom scripts for all pages-->
<script src=\"/js/vendor/sb-admin-2.min.js\"></script>
<script>
{% include '/js/app.js.twig' %}
</script>
</body>
</html>
", "base.html.twig", "/home/sariato/www/dev.centr.sariato.ru/templates/base.html.twig");
}
}