var/cache/dev/twig/18/1897e7c8aadab0be1c2862e117840fbc.php line 45

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. use Twig\TemplateWrapper;
  15. /* @Portal/template.html.twig */
  16. class __TwigTemplate_7d65e691d68c02a08b845e98ba12f18b extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.             'canonical' => [$this'block_canonical'],
  30.             'head' => [$this'block_head'],
  31.             'ogtagStatic' => [$this'block_ogtagStatic'],
  32.             'ogtagDynamic' => [$this'block_ogtagDynamic'],
  33.             'socialPreview' => [$this'block_socialPreview'],
  34.             'content' => [$this'block_content'],
  35.             'script' => [$this'block_script'],
  36.         ];
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/template.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/template.html.twig"));
  45.         // line 2
  46.         $context["isBS5"] = ((array_key_exists("bs5"$context)) ? (Twig\Extension\CoreExtension::default((isset($context["bs5"]) || array_key_exists("bs5"$context) ? $context["bs5"] : (function () { throw new RuntimeError('Variable "bs5" does not exist.'2$this->source); })()), false)) : (false));
  47.         // line 3
  48.         yield "<!DOCTYPE html>
  49. <html lang=\"";
  50.         // line 4
  51.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "locale", [], "any"falsefalsefalse4) == "ua")) {
  52.             yield "uk-ua";
  53.         } else {
  54.             yield "ru-ua";
  55.         }
  56.         yield "\">
  57. <head>
  58.     ";
  59.         // line 6
  60.         if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "environment", [], "any"falsefalsefalse6) == "dev")) {
  61.             // line 7
  62.             yield "        <meta name=\"robots\" content=\"noindex, nofollow\">
  63.         <meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
  64.     ";
  65.         }
  66.         // line 10
  67.         yield "
  68.     <link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
  69.     <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
  70.     <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0\">
  71.     <meta name=\"google-site-verification\" content=\"VQNmMzLlDoUUKSHDh_Bno6EG39hJYE9s0beA96Dk_vM\">
  72.     <meta name=\"facebook-domain-verification\" content=\"zepah08oy5mc696rqnli2tv1jvovt1\">
  73.     <meta charset=\"utf-8\">
  74.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.ico\">
  75.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/icon-32x32.png\">
  76.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/icon-16x16.png\">
  77.     <link rel=\"manifest\" href=\"/manifest.json\">
  78.     <link rel=\"mask-icon\" href=\"/safari-pinned-tab.svg\" color=\"#5bbad5\">
  79.     <meta name=\"theme-color\" content=\"#ffffff\">
  80.     <meta name=\"google-site-verification\" content=\"ZnHsXhGdFYfiT15Ky8MUnybMBxinpxLLyl1YX0gInAs\">
  81.     <link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/";
  82.         // line 24
  83.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["MODE"]) || array_key_exists("MODE"$context) ? $context["MODE"] : (function () { throw new RuntimeError('Variable "MODE" does not exist.'24$this->source); })()), "html"nulltrue);
  84.         yield "/portal/css/portal";
  85.         yield (((($tmp = (isset($context["isBS5"]) || array_key_exists("isBS5"$context) ? $context["isBS5"] : (function () { throw new RuntimeError('Variable "isBS5" does not exist.'24$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("BS5") : (""));
  86.         yield ".css?";
  87.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION"$context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.'24$this->source); })()), "html"nulltrue);
  88.         yield "\">
  89.     ";
  90.         // line 26
  91.         yield from $this->unwrap()->yieldBlock('canonical'$context$blocks);
  92.         // line 29
  93.         yield "
  94.     ";
  95.         // line 30
  96.         yield from $this->unwrap()->yieldBlock('head'$context$blocks);
  97.         // line 32
  98.         yield "
  99.     ";
  100.         // line 33
  101.         yield from $this->unwrap()->yieldBlock('ogtagStatic'$context$blocks);
  102.         // line 36
  103.         yield "    ";
  104.         yield from $this->unwrap()->yieldBlock('ogtagDynamic'$context$blocks);
  105.         // line 38
  106.         yield "    ";
  107.         if ((($tmp = (isset($context["INCLUDE_ANALYTICS"]) || array_key_exists("INCLUDE_ANALYTICS"$context) ? $context["INCLUDE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "INCLUDE_ANALYTICS" does not exist.'38$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  108.             // line 39
  109.             yield "        <noscript>
  110.             <img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id=2565496603726688&ev=PageView&noscript=1\" alt=\"facebook\">
  111.         </noscript>
  112.         ";
  113.             // line 43
  114.             yield from $this->load("@DcSite/Modules/google-tag-manager.html.twig"43)->unwrap()->yield(CoreExtension::merge($context, ["domain" => "vidi.ua""gtmIdCode" => "GTM-TK6DGWW"]));
  115.             // line 44
  116.             yield "    ";
  117.         }
  118.         // line 45
  119.         yield "</head>
  120. <body>
  121. ";
  122.         // line 48
  123.         if ((($tmp = (isset($context["INCLUDE_ANALYTICS"]) || array_key_exists("INCLUDE_ANALYTICS"$context) ? $context["INCLUDE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "INCLUDE_ANALYTICS" does not exist.'48$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  124.             // line 49
  125.             yield "<!-- Google Tag Manager (noscript) -->
  126. <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\"
  127.                   height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  128. <!-- End Google Tag Manager (noscript) -->
  129. ";
  130.         }
  131.         // line 54
  132.         yield from $this->unwrap()->yieldBlock('socialPreview'$context$blocks);
  133.         // line 56
  134.         yield "
  135. <div class=\"wrapper\">
  136.     ";
  137.         // line 60
  138.         yield "    ";
  139.         yield from $this->load("@Portal/header-top-bar.html.twig"60)->unwrap()->yield(CoreExtension::merge($context, ["announcementBar" => (isset($context["announcementBar"]) || array_key_exists("announcementBar"$context) ? $context["announcementBar"] : (function () { throw new RuntimeError('Variable "announcementBar" does not exist.'60$this->source); })())]));
  140.         // line 61
  141.         yield "
  142.     ";
  143.         // line 63
  144.         yield from $this->load("@Portal/new-header.html.twig"63)->unwrap()->yield($context);
  145.         // line 64
  146.         yield "
  147.     <main class=\"main\">
  148.         ";
  149.         // line 66
  150.         yield from $this->load("@Core/Core/preloader.html.twig"66)->unwrap()->yield($context);
  151.         // line 67
  152.         yield "        ";
  153.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  154.         // line 69
  155.         yield "    </main>
  156.     ";
  157.         // line 71
  158.         yield from $this->load("@Portal/Modules/callback-vidi.html.twig"71)->unwrap()->yield($context);
  159.         // line 72
  160.         yield "    ";
  161.         yield from $this->load("@Portal/footer.html.twig"72)->unwrap()->yield($context);
  162.         // line 73
  163.         yield "    ";
  164.         yield from $this->load("@Portal/header-canvas-left.html.twig"73)->unwrap()->yield($context);
  165.         // line 74
  166.         yield "    ";
  167.         yield from $this->load("@Portal/arrow-top-new.html.twig"74)->unwrap()->yield($context);
  168.         // line 75
  169.         yield "    ";
  170.         yield from $this->load("@DcSite/Modules/callback/widget.html.twig"75)->unwrap()->yield($context);
  171.         // line 76
  172.         yield "    ";
  173.         yield from $this->load("@DcSite/Modules/sps-popup.html.twig"76)->unwrap()->yield($context);
  174.         // line 77
  175.         yield "    ";
  176.         yield from $this->load("@My/Modules/cookies-warning.html.twig"77)->unwrap()->yield(CoreExtension::merge($context, ["noCookiesCSS" => true]));
  177.         // line 78
  178.         yield "    ";
  179.         yield from $this->load("@My/Modules/auth.html.twig"78)->unwrap()->yield($context);
  180.         // line 79
  181.         yield "    ";
  182.         yield from $this->load("@DcSite/Modules/vidiCoreMessageWrapper.html.twig"79)->unwrap()->yield($context);
  183.         // line 80
  184.         yield "</div>
  185. <iframe style=\"display: none\" src=\"";
  186.         // line 82
  187.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_ios_cross_domain_auth");
  188.         yield "\"></iframe>
  189. ";
  190.         // line 84
  191.         $context["urlResult"] = (((array_key_exists("backLoginUrl"$context) && (isset($context["backLoginUrl"]) || array_key_exists("backLoginUrl"$context) ? $context["backLoginUrl"] : (function () { throw new RuntimeError('Variable "backLoginUrl" does not exist.'84$this->source); })()))) ? ((isset($context["backLoginUrl"]) || array_key_exists("backLoginUrl"$context) ? $context["backLoginUrl"] : (function () { throw new RuntimeError('Variable "backLoginUrl" does not exist.'84$this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car")));
  192.         // line 85
  193.         yield "<script>
  194.     window.INCLUDE_ANALYTICS = ";
  195.         // line 86
  196.         yield (((($tmp = (isset($context["INCLUDE_ANALYTICS"]) || array_key_exists("INCLUDE_ANALYTICS"$context) ? $context["INCLUDE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "INCLUDE_ANALYTICS" does not exist.'86$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("true") : ("false"));
  197.         yield ";
  198. </script>
  199. <script src=\"/dist/";
  200.         // line 88
  201.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["MODE"]) || array_key_exists("MODE"$context) ? $context["MODE"] : (function () { throw new RuntimeError('Variable "MODE" does not exist.'88$this->source); })()), "html"nulltrue);
  202.         yield "/portal/js/portal";
  203.         yield (((($tmp = (isset($context["isBS5"]) || array_key_exists("isBS5"$context) ? $context["isBS5"] : (function () { throw new RuntimeError('Variable "isBS5" does not exist.'88$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("BS5") : (""));
  204.         yield ".js?";
  205.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION"$context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.'88$this->source); })()), "html"nulltrue);
  206.         yield "\"></script>
  207. <script>
  208.     window.dataLayer = window.dataLayer || [];
  209.     window.app = {
  210.         options: {
  211.             version: '";
  212.         // line 93
  213.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION"$context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.'93$this->source); })()), "html"nulltrue);
  214.         yield "',
  215.             locale: '";
  216.         // line 94
  217.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'94$this->source); })()), "request", [], "any"falsefalsefalse94), "locale", [], "any"falsefalsefalse94), "html"nulltrue);
  218.         yield "'
  219.         },
  220.         user: {
  221.             id: ";
  222.         // line 97
  223.         if ((($tmp CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'97$this->source); })()), "user", [], "any"falsefalsefalse97)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  224.             yield " ";
  225.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'97$this->source); })()), "user", [], "any"falsefalsefalse97), "id", [], "any"falsefalsefalse97), "html"nulltrue);
  226.             yield " ";
  227.         } else {
  228.             yield "null";
  229.         }
  230.         yield ",
  231.             name: ";
  232.         // line 98
  233.         if ((($tmp CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'98$this->source); })()), "user", [], "any"falsefalsefalse98)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  234.             yield " '";
  235.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'98$this->source); })()), "user", [], "any"falsefalsefalse98), "fullName", [], "any"falsefalsefalse98), "html"nulltrue);
  236.             yield "' ";
  237.         } else {
  238.             yield "null";
  239.         }
  240.         // line 99
  241.         yield "        }
  242.     };
  243.     \$(() => {
  244.         window.core.modules.initCookies({
  245.             policyUrl: \"";
  246.         // line 104
  247.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
  248.         yield "\",
  249.             site: 'VIDI.UA',
  250.         });
  251.         window.core.modules.initAuthRegistration({
  252.             locale: \"";
  253.         // line 108
  254.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'108$this->source); })()), "request", [], "any"falsefalsefalse108), "locale", [], "any"falsefalsefalse108), "html"nulltrue);
  255.         yield "\",
  256.             fbAuthUrl: \"";
  257.         // line 109
  258.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_fb_user");
  259.         yield "\",
  260.             googleAuthUrl: \"";
  261.         // line 110
  262.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_google_user");
  263.         yield "\",
  264.             registerConfoirmUrl: \"";
  265.         // line 111
  266.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_confirm");
  267.         yield "\",
  268.             profileUrl: '";
  269.         // line 112
  270.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["urlResult"]) || array_key_exists("urlResult"$context) ? $context["urlResult"] : (function () { throw new RuntimeError('Variable "urlResult" does not exist.'112$this->source); })()), "html"nulltrue);
  271.         yield "',
  272.             getCodeUrl: \"";
  273.         // line 113
  274.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_get_code");
  275.         yield "\",
  276.             resendCodeUrl: \"";
  277.         // line 114
  278.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_resend_reg_code");
  279.         yield "\",
  280.             loginCodeUrl: \"";
  281.         // line 115
  282.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
  283.         yield "\",
  284.             messageRegisterSuccessTitle: \"";
  285.         // line 116
  286.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.register.success_title", [], "core"), "html"nulltrue);
  287.         yield "\",
  288.             messageRegisterSuccessText: \"";
  289.         // line 117
  290.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.register.success_text", [], "core"), "html"nulltrue);
  291.         yield "\",
  292.             messageLoginErrorPassword: \"";
  293.         // line 118
  294.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_password", [], "core"), "html"nulltrue);
  295.         yield "\",
  296.             messageLoginErrorEmail: \"";
  297.         // line 119
  298.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_email", [], "core"), "html"nulltrue);
  299.         yield "\"
  300.         });
  301.         window.core.modules.initAuthChangePhone({
  302.             locale: \"";
  303.         // line 122
  304.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'122$this->source); })()), "request", [], "any"falsefalsefalse122), "locale", [], "any"falsefalsefalse122), "html"nulltrue);
  305.         yield "\",
  306.             messageLoginErrorEmail: \"";
  307.         // line 123
  308.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_email", [], "core"), "html"nulltrue);
  309.         yield "\",
  310.             getCodeChangePhoneUrl: \"";
  311.         // line 124
  312.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_get_code");
  313.         yield "\",
  314.             setNewPhoneUrl: \"";
  315.         // line 125
  316.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_set_phone");
  317.         yield "\",
  318.             loginCodeUrl: \"";
  319.         // line 126
  320.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
  321.         yield "\",
  322.             confirmNewPhoneUrl: \"";
  323.         // line 127
  324.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_confirm_new_phone");
  325.         yield "\",
  326.             profileUrl: \"";
  327.         // line 128
  328.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car");
  329.         yield "\"
  330.         });
  331.         window.app.message = window.core.modules.initMessage({
  332.             templateUrl: \"";
  333.         // line 132
  334.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_message_load_template");
  335.         yield "\",
  336.             text: {
  337.                 btnCancel: \"";
  338.         // line 134
  339.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.cancel", [], "core"), "html"nulltrue);
  340.         yield "\"
  341.             }
  342.         });
  343.         window.app.http = window.core.modules.initHttp({
  344.             requestErrorText: \"";
  345.         // line 138
  346.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.http.server_error", [], "core"), "html"nulltrue);
  347.         yield "\"
  348.         });
  349.         window.Track = window.core.modules.initTrack();
  350.         window.app.preLoader = window.core.modules.initPreloader({
  351.             templateUrl: \"";
  352.         // line 142
  353.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_preloader_load_template");
  354.         yield "\"
  355.         });
  356.         window.app.leadForms = window.core.modules.initLeadForms({
  357.             captchaUrl: '";
  358.         // line 145
  359.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_capthcha_init");
  360.         yield "',
  361.             text: {
  362.                 successTitle: '";
  363.         // line 147
  364.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modules.sps_form_title", [], "dc_base"), "html"nulltrue);
  365.         yield "',
  366.                 successText: '";
  367.         // line 148
  368.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modules.sps_form_subtitle", [], "dc_base"), "html"nulltrue);
  369.         yield "',
  370.                 buttonText: '";
  371.         // line 149
  372.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.base.ok", [], "dc_base"), "html"nulltrue);
  373.         yield "'
  374.             },
  375.             href: {
  376.                 buttonSuccess: null,
  377.             },
  378.         });
  379.         window.app.Favorit = window.core.modules.initFavorite({
  380.             addUrl: \"";
  381.         // line 156
  382.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_add_favl");
  383.         yield "\",
  384.             removeUrl: \"";
  385.         // line 157
  386.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_remove_favl");
  387.         yield "\"
  388.         });
  389.         window.app.Compare = window.core.modules.initCompare();
  390.         const portal = window.portal.portal || window.portal.portalBS5;
  391.         portal.init();
  392.         portal.initViDiCallback({
  393.             createCallbackUrl: '";
  394.         // line 164
  395.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_create_request");
  396.         yield "',
  397.             getDepartmentUrl: '";
  398.         // line 165
  399.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_department_vidi");
  400.         yield "',
  401.             getCallbackStateUrl: '";
  402.         // line 166
  403.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_get_state");
  404.         yield "',
  405.             privacyUrl: '";
  406.         // line 167
  407.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
  408.         yield "',
  409.             callBackMinute: '";
  410.         // line 168
  411.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("callback_widget.title", [], "dc_base");
  412.         yield "',
  413.             callBackWorkingHours: '";
  414.         // line 169
  415.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("callback_widget.working_hours", [], "dc_base"), "html"nulltrue);
  416.         yield "'
  417.         });
  418.     });
  419. </script>
  420.  ";
  421.         // line 175
  422.         yield "<script>
  423.     document.addEventListener(\"DOMContentLoaded\", function() {
  424.         const charityBar = document.querySelector('.charity_die');
  425.         const closeBtn = document.querySelector('.charity_btn_close');
  426.         const sessionKey = 'charityBarHidden';
  427.         if (sessionStorage.getItem(sessionKey)) {
  428.             charityBar.classList.add('charity_die_hiden');
  429.         } else {
  430.             charityBar.classList.remove('charity_die_hiden');
  431.         }
  432.         closeBtn.addEventListener('click', function() {
  433.             charityBar.classList.add('charity_die_hiden');
  434.             sessionStorage.setItem(sessionKey, 'charity_die_hiden');
  435.         });
  436.     });
  437. </script>
  438. ";
  439.         // line 194
  440.         if ((($tmp = (isset($context["INCLUDE_ANALYTICS"]) || array_key_exists("INCLUDE_ANALYTICS"$context) ? $context["INCLUDE_ANALYTICS"] : (function () { throw new RuntimeError('Variable "INCLUDE_ANALYTICS" does not exist.'194$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  441.             // line 195
  442.             yield "    <noscript>
  443.         <iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\" height=\"0\" width=\"0\" style=\"display:none\"></iframe>
  444.     </noscript>
  445. ";
  446.         }
  447.         // line 199
  448.         yield "
  449. ";
  450.         // line 200
  451.         if ((($tmp CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'200$this->source); })()), "user", [], "any"falsefalsefalse200)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  452.             // line 201
  453.             yield "<script type=\"text/javascript\">
  454.     window.dataLayer.push({'user_id': ";
  455.             // line 202
  456.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'202$this->source); })()), "user", [], "any"falsefalsefalse202), "id", [], "any"falsefalsefalse202), "html"nulltrue);
  457.             yield "});
  458. </script>
  459. ";
  460.         }
  461.         // line 205
  462.         yield "
  463. ";
  464.         // line 206
  465.         yield from $this->unwrap()->yieldBlock('script'$context$blocks);
  466.         // line 208
  467.         yield "</body>
  468. </html>
  469. ";
  470.         
  471.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  472.         
  473.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  474.         yield from [];
  475.     }
  476.     // line 26
  477.     /**
  478.      * @return iterable<null|scalar|\Stringable>
  479.      */
  480.     public function block_canonical(array $context, array $blocks = []): iterable
  481.     {
  482.         $macros $this->macros;
  483.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  484.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  485.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  486.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""canonical"));
  487.         // line 27
  488.         yield "        ";
  489.         yield from $this->load("@DcSite/Modules/canonical.html.twig"27)->unwrap()->yield($context);
  490.         // line 28
  491.         yield "    ";
  492.         
  493.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  494.         
  495.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  496.         yield from [];
  497.     }
  498.     // line 30
  499.     /**
  500.      * @return iterable<null|scalar|\Stringable>
  501.      */
  502.     public function block_head(array $context, array $blocks = []): iterable
  503.     {
  504.         $macros $this->macros;
  505.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  506.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  507.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  508.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  509.         // line 31
  510.         yield "    ";
  511.         
  512.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  513.         
  514.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  515.         yield from [];
  516.     }
  517.     // line 33
  518.     /**
  519.      * @return iterable<null|scalar|\Stringable>
  520.      */
  521.     public function block_ogtagStatic(array $context, array $blocks = []): iterable
  522.     {
  523.         $macros $this->macros;
  524.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  525.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagStatic"));
  526.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  527.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagStatic"));
  528.         // line 34
  529.         yield "        ";
  530.         yield from $this->load("@DcSite/Modules/og-tag.html.twig"34)->unwrap()->yield($context);
  531.         // line 35
  532.         yield "    ";
  533.         
  534.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  535.         
  536.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  537.         yield from [];
  538.     }
  539.     // line 36
  540.     /**
  541.      * @return iterable<null|scalar|\Stringable>
  542.      */
  543.     public function block_ogtagDynamic(array $context, array $blocks = []): iterable
  544.     {
  545.         $macros $this->macros;
  546.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  547.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  548.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  549.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtagDynamic"));
  550.         // line 37
  551.         yield "    ";
  552.         
  553.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  554.         
  555.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  556.         yield from [];
  557.     }
  558.     // line 54
  559.     /**
  560.      * @return iterable<null|scalar|\Stringable>
  561.      */
  562.     public function block_socialPreview(array $context, array $blocks = []): iterable
  563.     {
  564.         $macros $this->macros;
  565.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  566.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""socialPreview"));
  567.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  568.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""socialPreview"));
  569.         
  570.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  571.         
  572.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  573.         yield from [];
  574.     }
  575.     // line 67
  576.     /**
  577.      * @return iterable<null|scalar|\Stringable>
  578.      */
  579.     public function block_content(array $context, array $blocks = []): iterable
  580.     {
  581.         $macros $this->macros;
  582.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  583.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  584.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  585.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  586.         // line 68
  587.         yield "        ";
  588.         
  589.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  590.         
  591.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  592.         yield from [];
  593.     }
  594.     // line 206
  595.     /**
  596.      * @return iterable<null|scalar|\Stringable>
  597.      */
  598.     public function block_script(array $context, array $blocks = []): iterable
  599.     {
  600.         $macros $this->macros;
  601.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  602.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  603.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  604.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  605.         
  606.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  607.         
  608.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  609.         yield from [];
  610.     }
  611.     /**
  612.      * @codeCoverageIgnore
  613.      */
  614.     public function getTemplateName(): string
  615.     {
  616.         return "@Portal/template.html.twig";
  617.     }
  618.     /**
  619.      * @codeCoverageIgnore
  620.      */
  621.     public function isTraitable(): bool
  622.     {
  623.         return false;
  624.     }
  625.     /**
  626.      * @codeCoverageIgnore
  627.      */
  628.     public function getDebugInfo(): array
  629.     {
  630.         return array (  652 => 206,  641 => 68,  628 => 67,  606 => 54,  595 => 37,  582 => 36,  571 => 35,  568 => 34,  555 => 33,  544 => 31,  531 => 30,  520 => 28,  517 => 27,  504 => 26,  491 => 208,  489 => 206,  486 => 205,  480 => 202,  477 => 201,  475 => 200,  472 => 199,  466 => 195,  464 => 194,  443 => 175,  435 => 169,  431 => 168,  427 => 167,  423 => 166,  419 => 165,  415 => 164,  405 => 157,  401 => 156,  391 => 149,  387 => 148,  383 => 147,  378 => 145,  372 => 142,  365 => 138,  358 => 134,  353 => 132,  346 => 128,  342 => 127,  338 => 126,  334 => 125,  330 => 124,  326 => 123,  322 => 122,  316 => 119,  312 => 118,  308 => 117,  304 => 116,  300 => 115,  296 => 114,  292 => 113,  288 => 112,  284 => 111,  280 => 110,  276 => 109,  272 => 108,  265 => 104,  258 => 99,  250 => 98,  240 => 97,  234 => 94,  230 => 93,  218 => 88,  213 => 86,  210 => 85,  208 => 84,  203 => 82,  199 => 80,  196 => 79,  193 => 78,  190 => 77,  187 => 76,  184 => 75,  181 => 74,  178 => 73,  175 => 72,  173 => 71,  169 => 69,  166 => 67,  164 => 66,  160 => 64,  158 => 63,  154 => 61,  151 => 60,  146 => 56,  144 => 54,  137 => 49,  135 => 48,  130 => 45,  127 => 44,  125 => 43,  119 => 39,  116 => 38,  113 => 36,  111 => 33,  108 => 32,  106 => 30,  103 => 29,  101 => 26,  92 => 24,  76 => 10,  71 => 7,  69 => 6,  60 => 4,  57 => 3,  55 => 2,);
  631.     }
  632.     public function getSourceContext(): Source
  633.     {
  634.         return new Source("{# Some pages use Bootstrap 5 #}
  635. {% set isBS5 = bs5|default(false) %}
  636. <!DOCTYPE html>
  637. <html lang=\"{% if app.request.locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}\">
  638. <head>
  639.     {% if app.environment == 'dev' %}
  640.         <meta name=\"robots\" content=\"noindex, nofollow\">
  641.         <meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
  642.     {% endif %}
  643.     <link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
  644.     <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
  645.     <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0\">
  646.     <meta name=\"google-site-verification\" content=\"VQNmMzLlDoUUKSHDh_Bno6EG39hJYE9s0beA96Dk_vM\">
  647.     <meta name=\"facebook-domain-verification\" content=\"zepah08oy5mc696rqnli2tv1jvovt1\">
  648.     <meta charset=\"utf-8\">
  649.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.ico\">
  650.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/icon-32x32.png\">
  651.     <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/icon-16x16.png\">
  652.     <link rel=\"manifest\" href=\"/manifest.json\">
  653.     <link rel=\"mask-icon\" href=\"/safari-pinned-tab.svg\" color=\"#5bbad5\">
  654.     <meta name=\"theme-color\" content=\"#ffffff\">
  655.     <meta name=\"google-site-verification\" content=\"ZnHsXhGdFYfiT15Ky8MUnybMBxinpxLLyl1YX0gInAs\">
  656.     <link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/{{ MODE }}/portal/css/portal{{ isBS5 ? 'BS5' : '' }}.css?{{ VERSION }}\">
  657.     {% block canonical %}
  658.         {% include '@DcSite/Modules/canonical.html.twig' %}
  659.     {% endblock canonical %}
  660.     {% block head %}
  661.     {% endblock head %}
  662.     {% block ogtagStatic %}
  663.         {% include '@DcSite/Modules/og-tag.html.twig' %}
  664.     {% endblock ogtagStatic %}
  665.     {% block ogtagDynamic %}
  666.     {% endblock ogtagDynamic %}
  667.     {% if INCLUDE_ANALYTICS %}
  668.         <noscript>
  669.             <img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id=2565496603726688&ev=PageView&noscript=1\" alt=\"facebook\">
  670.         </noscript>
  671.         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': 'vidi.ua', 'gtmIdCode': 'GTM-TK6DGWW' } %}
  672.     {% endif %}
  673. </head>
  674. <body>
  675. {% if INCLUDE_ANALYTICS %}
  676. <!-- Google Tag Manager (noscript) -->
  677. <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\"
  678.                   height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  679. <!-- End Google Tag Manager (noscript) -->
  680. {% endif %}
  681. {% block socialPreview %}
  682. {% endblock socialPreview %}
  683. <div class=\"wrapper\">
  684.     {# Плашка Анонс бар #}
  685.     {% include '@Portal/header-top-bar.html.twig' with {'announcementBar' : announcementBar} %}
  686.     {% include '@Portal/new-header.html.twig' %}
  687.     <main class=\"main\">
  688.         {% include '@Core/Core/preloader.html.twig' %}
  689.         {% block content %}
  690.         {% endblock content %}
  691.     </main>
  692.     {% include '@Portal/Modules/callback-vidi.html.twig' %}
  693.     {% include '@Portal/footer.html.twig' %}
  694.     {% include '@Portal/header-canvas-left.html.twig' %}
  695.     {% include '@Portal/arrow-top-new.html.twig' %}
  696.     {% include '@DcSite/Modules/callback/widget.html.twig' %}
  697.     {% include '@DcSite/Modules/sps-popup.html.twig' %}
  698.     {% include '@My/Modules/cookies-warning.html.twig' with { 'noCookiesCSS': true } %}
  699.     {% include '@My/Modules/auth.html.twig' %}
  700.     {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
  701. </div>
  702. <iframe style=\"display: none\" src=\"{{ path('my_ios_cross_domain_auth') }}\"></iframe>
  703. {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
  704. <script>
  705.     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
  706. </script>
  707. <script src=\"/dist/{{ MODE }}/portal/js/portal{{ isBS5 ? 'BS5' : '' }}.js?{{ VERSION }}\"></script>
  708. <script>
  709.     window.dataLayer = window.dataLayer || [];
  710.     window.app = {
  711.         options: {
  712.             version: '{{ VERSION }}',
  713.             locale: '{{ app.request.locale }}'
  714.         },
  715.         user: {
  716.             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
  717.             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
  718.         }
  719.     };
  720.     \$(() => {
  721.         window.core.modules.initCookies({
  722.             policyUrl: \"{{ path('portal_privacy_policy') }}\",
  723.             site: 'VIDI.UA',
  724.         });
  725.         window.core.modules.initAuthRegistration({
  726.             locale: \"{{ app.request.locale }}\",
  727.             fbAuthUrl: \"{{ path('my_auth_fb_user') }}\",
  728.             googleAuthUrl: \"{{ path('my_auth_google_user') }}\",
  729.             registerConfoirmUrl: \"{{ path('my_register_confirm') }}\",
  730.             profileUrl: '{{ urlResult }}',
  731.             getCodeUrl: \"{{ path('my_register_get_code') }}\",
  732.             resendCodeUrl: \"{{ path('my_register_resend_reg_code') }}\",
  733.             loginCodeUrl: \"{{ path('core_register_code_login') }}\",
  734.             messageRegisterSuccessTitle: \"{{ 'app.message.register.success_title'|trans({},'core') }}\",
  735.             messageRegisterSuccessText: \"{{ 'app.message.register.success_text'|trans({},'core') }}\",
  736.             messageLoginErrorPassword: \"{{ 'app.message.login.error_password'|trans({}, 'core') }}\",
  737.             messageLoginErrorEmail: \"{{ 'app.message.login.error_email'|trans({}, 'core') }}\"
  738.         });
  739.         window.core.modules.initAuthChangePhone({
  740.             locale: \"{{ app.request.locale }}\",
  741.             messageLoginErrorEmail: \"{{ 'app.message.login.error_email'|trans({}, 'core') }}\",
  742.             getCodeChangePhoneUrl: \"{{ path('my_change_phone_get_code') }}\",
  743.             setNewPhoneUrl: \"{{ path('my_change_phone_set_phone') }}\",
  744.             loginCodeUrl: \"{{ path('core_register_code_login') }}\",
  745.             confirmNewPhoneUrl: \"{{ path('my_confirm_new_phone') }}\",
  746.             profileUrl: \"{{ path('my_about_car') }}\"
  747.         });
  748.         window.app.message = window.core.modules.initMessage({
  749.             templateUrl: \"{{ path('core_message_load_template') }}\",
  750.             text: {
  751.                 btnCancel: \"{{ 'app.message.cancel'|trans({},'core') }}\"
  752.             }
  753.         });
  754.         window.app.http = window.core.modules.initHttp({
  755.             requestErrorText: \"{{ 'app.http.server_error'|trans({},'core') }}\"
  756.         });
  757.         window.Track = window.core.modules.initTrack();
  758.         window.app.preLoader = window.core.modules.initPreloader({
  759.             templateUrl: \"{{ path('core_preloader_load_template') }}\"
  760.         });
  761.         window.app.leadForms = window.core.modules.initLeadForms({
  762.             captchaUrl: '{{ path('base_capthcha_init') }}',
  763.             text: {
  764.                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
  765.                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
  766.                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
  767.             },
  768.             href: {
  769.                 buttonSuccess: null,
  770.             },
  771.         });
  772.         window.app.Favorit = window.core.modules.initFavorite({
  773.             addUrl: \"{{ path('portal_add_favl') }}\",
  774.             removeUrl: \"{{ path('portal_remove_favl') }}\"
  775.         });
  776.         window.app.Compare = window.core.modules.initCompare();
  777.         const portal = window.portal.portal || window.portal.portalBS5;
  778.         portal.init();
  779.         portal.initViDiCallback({
  780.             createCallbackUrl: '{{ path('callback_widget_create_request') }}',
  781.             getDepartmentUrl: '{{ path('callback_widget_department_vidi') }}',
  782.             getCallbackStateUrl: '{{ path('callback_widget_get_state') }}',
  783.             privacyUrl: '{{ path('portal_privacy_policy') }}',
  784.             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
  785.             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
  786.         });
  787.     });
  788. </script>
  789.  {# Плашка Анонс бар #}
  790. <script>
  791.     document.addEventListener(\"DOMContentLoaded\", function() {
  792.         const charityBar = document.querySelector('.charity_die');
  793.         const closeBtn = document.querySelector('.charity_btn_close');
  794.         const sessionKey = 'charityBarHidden';
  795.         if (sessionStorage.getItem(sessionKey)) {
  796.             charityBar.classList.add('charity_die_hiden');
  797.         } else {
  798.             charityBar.classList.remove('charity_die_hiden');
  799.         }
  800.         closeBtn.addEventListener('click', function() {
  801.             charityBar.classList.add('charity_die_hiden');
  802.             sessionStorage.setItem(sessionKey, 'charity_die_hiden');
  803.         });
  804.     });
  805. </script>
  806. {% if INCLUDE_ANALYTICS %}
  807.     <noscript>
  808.         <iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\" height=\"0\" width=\"0\" style=\"display:none\"></iframe>
  809.     </noscript>
  810. {% endif %}
  811. {% if app.user %}
  812. <script type=\"text/javascript\">
  813.     window.dataLayer.push({'user_id': {{ app.user.id }}});
  814. </script>
  815. {% endif %}
  816. {% block script %}
  817. {% endblock script %}
  818. </body>
  819. </html>
  820. ""@Portal/template.html.twig""/var/www/vidi.ua/releases/251023-65bd7d10/src/PortalBundle/Resources/views/template.html.twig");
  821.     }
  822. }