<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @Portal/template.html.twig */
class __TwigTemplate_7d65e691d68c02a08b845e98ba12f18b extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'canonical' => [$this, 'block_canonical'],
'head' => [$this, 'block_head'],
'ogtagStatic' => [$this, 'block_ogtagStatic'],
'ogtagDynamic' => [$this, 'block_ogtagDynamic'],
'socialPreview' => [$this, 'block_socialPreview'],
'content' => [$this, 'block_content'],
'script' => [$this, 'block_script'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "@Portal/template.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Portal/template.html.twig"));
// line 2
$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));
// line 3
yield "<!DOCTYPE html>
<html lang=\"";
// line 4
if ((CoreExtension::getAttribute($this->env, $this->source, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4) == "ua")) {
yield "uk-ua";
} else {
yield "ru-ua";
}
yield "\">
<head>
";
// line 6
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", false, false, false, 6) == "dev")) {
// line 7
yield " <meta name=\"robots\" content=\"noindex, nofollow\">
<meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
";
}
// line 10
yield "
<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0\">
<meta name=\"google-site-verification\" content=\"VQNmMzLlDoUUKSHDh_Bno6EG39hJYE9s0beA96Dk_vM\">
<meta name=\"facebook-domain-verification\" content=\"zepah08oy5mc696rqnli2tv1jvovt1\">
<meta charset=\"utf-8\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.ico\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/icon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/icon-16x16.png\">
<link rel=\"manifest\" href=\"/manifest.json\">
<link rel=\"mask-icon\" href=\"/safari-pinned-tab.svg\" color=\"#5bbad5\">
<meta name=\"theme-color\" content=\"#ffffff\">
<meta name=\"google-site-verification\" content=\"ZnHsXhGdFYfiT15Ky8MUnybMBxinpxLLyl1YX0gInAs\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/";
// line 24
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", null, true);
yield "/portal/css/portal";
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") : (""));
yield ".css?";
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", null, true);
yield "\">
";
// line 26
yield from $this->unwrap()->yieldBlock('canonical', $context, $blocks);
// line 29
yield "
";
// line 30
yield from $this->unwrap()->yieldBlock('head', $context, $blocks);
// line 32
yield "
";
// line 33
yield from $this->unwrap()->yieldBlock('ogtagStatic', $context, $blocks);
// line 36
yield " ";
yield from $this->unwrap()->yieldBlock('ogtagDynamic', $context, $blocks);
// line 38
yield " ";
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)) {
// line 39
yield " <noscript>
<img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id=2565496603726688&ev=PageView&noscript=1\" alt=\"facebook\">
</noscript>
";
// line 43
yield from $this->load("@DcSite/Modules/google-tag-manager.html.twig", 43)->unwrap()->yield(CoreExtension::merge($context, ["domain" => "vidi.ua", "gtmIdCode" => "GTM-TK6DGWW"]));
// line 44
yield " ";
}
// line 45
yield "</head>
<body>
";
// line 48
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)) {
// line 49
yield "<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
}
// line 54
yield from $this->unwrap()->yieldBlock('socialPreview', $context, $blocks);
// line 56
yield "
<div class=\"wrapper\">
";
// line 60
yield " ";
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); })())]));
// line 61
yield "
";
// line 63
yield from $this->load("@Portal/new-header.html.twig", 63)->unwrap()->yield($context);
// line 64
yield "
<main class=\"main\">
";
// line 66
yield from $this->load("@Core/Core/preloader.html.twig", 66)->unwrap()->yield($context);
// line 67
yield " ";
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 69
yield " </main>
";
// line 71
yield from $this->load("@Portal/Modules/callback-vidi.html.twig", 71)->unwrap()->yield($context);
// line 72
yield " ";
yield from $this->load("@Portal/footer.html.twig", 72)->unwrap()->yield($context);
// line 73
yield " ";
yield from $this->load("@Portal/header-canvas-left.html.twig", 73)->unwrap()->yield($context);
// line 74
yield " ";
yield from $this->load("@Portal/arrow-top-new.html.twig", 74)->unwrap()->yield($context);
// line 75
yield " ";
yield from $this->load("@DcSite/Modules/callback/widget.html.twig", 75)->unwrap()->yield($context);
// line 76
yield " ";
yield from $this->load("@DcSite/Modules/sps-popup.html.twig", 76)->unwrap()->yield($context);
// line 77
yield " ";
yield from $this->load("@My/Modules/cookies-warning.html.twig", 77)->unwrap()->yield(CoreExtension::merge($context, ["noCookiesCSS" => true]));
// line 78
yield " ";
yield from $this->load("@My/Modules/auth.html.twig", 78)->unwrap()->yield($context);
// line 79
yield " ";
yield from $this->load("@DcSite/Modules/vidiCoreMessageWrapper.html.twig", 79)->unwrap()->yield($context);
// line 80
yield "</div>
<iframe style=\"display: none\" src=\"";
// line 82
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_ios_cross_domain_auth");
yield "\"></iframe>
";
// line 84
$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")));
// line 85
yield "<script>
window.INCLUDE_ANALYTICS = ";
// line 86
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"));
yield ";
</script>
<script src=\"/dist/";
// line 88
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", null, true);
yield "/portal/js/portal";
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") : (""));
yield ".js?";
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", null, true);
yield "\"></script>
<script>
window.dataLayer = window.dataLayer || [];
window.app = {
options: {
version: '";
// line 93
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", null, true);
yield "',
locale: '";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 94, $this->source); })()), "request", [], "any", false, false, false, 94), "locale", [], "any", false, false, false, 94), "html", null, true);
yield "'
},
user: {
id: ";
// line 97
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", false, false, false, 97)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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", false, false, false, 97), "id", [], "any", false, false, false, 97), "html", null, true);
yield " ";
} else {
yield "null";
}
yield ",
name: ";
// line 98
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", false, false, false, 98)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " '";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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", false, false, false, 98), "fullName", [], "any", false, false, false, 98), "html", null, true);
yield "' ";
} else {
yield "null";
}
// line 99
yield " }
};
\$(() => {
window.core.modules.initCookies({
policyUrl: \"";
// line 104
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
yield "\",
site: 'VIDI.UA',
});
window.core.modules.initAuthRegistration({
locale: \"";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 108, $this->source); })()), "request", [], "any", false, false, false, 108), "locale", [], "any", false, false, false, 108), "html", null, true);
yield "\",
fbAuthUrl: \"";
// line 109
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_fb_user");
yield "\",
googleAuthUrl: \"";
// line 110
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_google_user");
yield "\",
registerConfoirmUrl: \"";
// line 111
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_confirm");
yield "\",
profileUrl: '";
// line 112
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", null, true);
yield "',
getCodeUrl: \"";
// line 113
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_get_code");
yield "\",
resendCodeUrl: \"";
// line 114
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_resend_reg_code");
yield "\",
loginCodeUrl: \"";
// line 115
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "\",
messageRegisterSuccessTitle: \"";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.register.success_title", [], "core"), "html", null, true);
yield "\",
messageRegisterSuccessText: \"";
// line 117
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.register.success_text", [], "core"), "html", null, true);
yield "\",
messageLoginErrorPassword: \"";
// line 118
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_password", [], "core"), "html", null, true);
yield "\",
messageLoginErrorEmail: \"";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_email", [], "core"), "html", null, true);
yield "\"
});
window.core.modules.initAuthChangePhone({
locale: \"";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 122, $this->source); })()), "request", [], "any", false, false, false, 122), "locale", [], "any", false, false, false, 122), "html", null, true);
yield "\",
messageLoginErrorEmail: \"";
// line 123
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.login.error_email", [], "core"), "html", null, true);
yield "\",
getCodeChangePhoneUrl: \"";
// line 124
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_get_code");
yield "\",
setNewPhoneUrl: \"";
// line 125
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_set_phone");
yield "\",
loginCodeUrl: \"";
// line 126
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "\",
confirmNewPhoneUrl: \"";
// line 127
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_confirm_new_phone");
yield "\",
profileUrl: \"";
// line 128
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car");
yield "\"
});
window.app.message = window.core.modules.initMessage({
templateUrl: \"";
// line 132
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_message_load_template");
yield "\",
text: {
btnCancel: \"";
// line 134
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.cancel", [], "core"), "html", null, true);
yield "\"
}
});
window.app.http = window.core.modules.initHttp({
requestErrorText: \"";
// line 138
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.http.server_error", [], "core"), "html", null, true);
yield "\"
});
window.Track = window.core.modules.initTrack();
window.app.preLoader = window.core.modules.initPreloader({
templateUrl: \"";
// line 142
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_preloader_load_template");
yield "\"
});
window.app.leadForms = window.core.modules.initLeadForms({
captchaUrl: '";
// line 145
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_capthcha_init");
yield "',
text: {
successTitle: '";
// line 147
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modules.sps_form_title", [], "dc_base"), "html", null, true);
yield "',
successText: '";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modules.sps_form_subtitle", [], "dc_base"), "html", null, true);
yield "',
buttonText: '";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.base.ok", [], "dc_base"), "html", null, true);
yield "'
},
href: {
buttonSuccess: null,
},
});
window.app.Favorit = window.core.modules.initFavorite({
addUrl: \"";
// line 156
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_add_favl");
yield "\",
removeUrl: \"";
// line 157
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_remove_favl");
yield "\"
});
window.app.Compare = window.core.modules.initCompare();
const portal = window.portal.portal || window.portal.portalBS5;
portal.init();
portal.initViDiCallback({
createCallbackUrl: '";
// line 164
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_create_request");
yield "',
getDepartmentUrl: '";
// line 165
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_department_vidi");
yield "',
getCallbackStateUrl: '";
// line 166
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_get_state");
yield "',
privacyUrl: '";
// line 167
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_privacy_policy");
yield "',
callBackMinute: '";
// line 168
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("callback_widget.title", [], "dc_base");
yield "',
callBackWorkingHours: '";
// line 169
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("callback_widget.working_hours", [], "dc_base"), "html", null, true);
yield "'
});
});
</script>
";
// line 175
yield "<script>
document.addEventListener(\"DOMContentLoaded\", function() {
const charityBar = document.querySelector('.charity_die');
const closeBtn = document.querySelector('.charity_btn_close');
const sessionKey = 'charityBarHidden';
if (sessionStorage.getItem(sessionKey)) {
charityBar.classList.add('charity_die_hiden');
} else {
charityBar.classList.remove('charity_die_hiden');
}
closeBtn.addEventListener('click', function() {
charityBar.classList.add('charity_die_hiden');
sessionStorage.setItem(sessionKey, 'charity_die_hiden');
});
});
</script>
";
// line 194
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)) {
// line 195
yield " <noscript>
<iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\" height=\"0\" width=\"0\" style=\"display:none\"></iframe>
</noscript>
";
}
// line 199
yield "
";
// line 200
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", false, false, false, 200)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 201
yield "<script type=\"text/javascript\">
window.dataLayer.push({'user_id': ";
// line 202
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 202, $this->source); })()), "user", [], "any", false, false, false, 202), "id", [], "any", false, false, false, 202), "html", null, true);
yield "});
</script>
";
}
// line 205
yield "
";
// line 206
yield from $this->unwrap()->yieldBlock('script', $context, $blocks);
// line 208
yield "</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 26
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_canonical(array $context, array $blocks = []): iterable
{
$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", "canonical"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonical"));
// line 27
yield " ";
yield from $this->load("@DcSite/Modules/canonical.html.twig", 27)->unwrap()->yield($context);
// line 28
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 30
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_head(array $context, array $blocks = []): iterable
{
$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", "head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 31
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 33
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_ogtagStatic(array $context, array $blocks = []): iterable
{
$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", "ogtagStatic"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtagStatic"));
// line 34
yield " ";
yield from $this->load("@DcSite/Modules/og-tag.html.twig", 34)->unwrap()->yield($context);
// line 35
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 36
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_ogtagDynamic(array $context, array $blocks = []): iterable
{
$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", "ogtagDynamic"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtagDynamic"));
// line 37
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 54
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_socialPreview(array $context, array $blocks = []): iterable
{
$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", "socialPreview"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "socialPreview"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 67
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 68
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 206
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_script(array $context, array $blocks = []): iterable
{
$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", "script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Portal/template.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{# Some pages use Bootstrap 5 #}
{% set isBS5 = bs5|default(false) %}
<!DOCTYPE html>
<html lang=\"{% if app.request.locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}\">
<head>
{% if app.environment == 'dev' %}
<meta name=\"robots\" content=\"noindex, nofollow\">
<meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
{% endif %}
<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0\">
<meta name=\"google-site-verification\" content=\"VQNmMzLlDoUUKSHDh_Bno6EG39hJYE9s0beA96Dk_vM\">
<meta name=\"facebook-domain-verification\" content=\"zepah08oy5mc696rqnli2tv1jvovt1\">
<meta charset=\"utf-8\">
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-touch-icon.ico\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/icon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/icon-16x16.png\">
<link rel=\"manifest\" href=\"/manifest.json\">
<link rel=\"mask-icon\" href=\"/safari-pinned-tab.svg\" color=\"#5bbad5\">
<meta name=\"theme-color\" content=\"#ffffff\">
<meta name=\"google-site-verification\" content=\"ZnHsXhGdFYfiT15Ky8MUnybMBxinpxLLyl1YX0gInAs\">
<link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/{{ MODE }}/portal/css/portal{{ isBS5 ? 'BS5' : '' }}.css?{{ VERSION }}\">
{% block canonical %}
{% include '@DcSite/Modules/canonical.html.twig' %}
{% endblock canonical %}
{% block head %}
{% endblock head %}
{% block ogtagStatic %}
{% include '@DcSite/Modules/og-tag.html.twig' %}
{% endblock ogtagStatic %}
{% block ogtagDynamic %}
{% endblock ogtagDynamic %}
{% if INCLUDE_ANALYTICS %}
<noscript>
<img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id=2565496603726688&ev=PageView&noscript=1\" alt=\"facebook\">
</noscript>
{% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': 'vidi.ua', 'gtmIdCode': 'GTM-TK6DGWW' } %}
{% endif %}
</head>
<body>
{% if INCLUDE_ANALYTICS %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
{% block socialPreview %}
{% endblock socialPreview %}
<div class=\"wrapper\">
{# Плашка Анонс бар #}
{% include '@Portal/header-top-bar.html.twig' with {'announcementBar' : announcementBar} %}
{% include '@Portal/new-header.html.twig' %}
<main class=\"main\">
{% include '@Core/Core/preloader.html.twig' %}
{% block content %}
{% endblock content %}
</main>
{% include '@Portal/Modules/callback-vidi.html.twig' %}
{% include '@Portal/footer.html.twig' %}
{% include '@Portal/header-canvas-left.html.twig' %}
{% include '@Portal/arrow-top-new.html.twig' %}
{% include '@DcSite/Modules/callback/widget.html.twig' %}
{% include '@DcSite/Modules/sps-popup.html.twig' %}
{% include '@My/Modules/cookies-warning.html.twig' with { 'noCookiesCSS': true } %}
{% include '@My/Modules/auth.html.twig' %}
{% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
</div>
<iframe style=\"display: none\" src=\"{{ path('my_ios_cross_domain_auth') }}\"></iframe>
{% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
<script>
window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
</script>
<script src=\"/dist/{{ MODE }}/portal/js/portal{{ isBS5 ? 'BS5' : '' }}.js?{{ VERSION }}\"></script>
<script>
window.dataLayer = window.dataLayer || [];
window.app = {
options: {
version: '{{ VERSION }}',
locale: '{{ app.request.locale }}'
},
user: {
id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
}
};
\$(() => {
window.core.modules.initCookies({
policyUrl: \"{{ path('portal_privacy_policy') }}\",
site: 'VIDI.UA',
});
window.core.modules.initAuthRegistration({
locale: \"{{ app.request.locale }}\",
fbAuthUrl: \"{{ path('my_auth_fb_user') }}\",
googleAuthUrl: \"{{ path('my_auth_google_user') }}\",
registerConfoirmUrl: \"{{ path('my_register_confirm') }}\",
profileUrl: '{{ urlResult }}',
getCodeUrl: \"{{ path('my_register_get_code') }}\",
resendCodeUrl: \"{{ path('my_register_resend_reg_code') }}\",
loginCodeUrl: \"{{ path('core_register_code_login') }}\",
messageRegisterSuccessTitle: \"{{ 'app.message.register.success_title'|trans({},'core') }}\",
messageRegisterSuccessText: \"{{ 'app.message.register.success_text'|trans({},'core') }}\",
messageLoginErrorPassword: \"{{ 'app.message.login.error_password'|trans({}, 'core') }}\",
messageLoginErrorEmail: \"{{ 'app.message.login.error_email'|trans({}, 'core') }}\"
});
window.core.modules.initAuthChangePhone({
locale: \"{{ app.request.locale }}\",
messageLoginErrorEmail: \"{{ 'app.message.login.error_email'|trans({}, 'core') }}\",
getCodeChangePhoneUrl: \"{{ path('my_change_phone_get_code') }}\",
setNewPhoneUrl: \"{{ path('my_change_phone_set_phone') }}\",
loginCodeUrl: \"{{ path('core_register_code_login') }}\",
confirmNewPhoneUrl: \"{{ path('my_confirm_new_phone') }}\",
profileUrl: \"{{ path('my_about_car') }}\"
});
window.app.message = window.core.modules.initMessage({
templateUrl: \"{{ path('core_message_load_template') }}\",
text: {
btnCancel: \"{{ 'app.message.cancel'|trans({},'core') }}\"
}
});
window.app.http = window.core.modules.initHttp({
requestErrorText: \"{{ 'app.http.server_error'|trans({},'core') }}\"
});
window.Track = window.core.modules.initTrack();
window.app.preLoader = window.core.modules.initPreloader({
templateUrl: \"{{ path('core_preloader_load_template') }}\"
});
window.app.leadForms = window.core.modules.initLeadForms({
captchaUrl: '{{ path('base_capthcha_init') }}',
text: {
successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
},
href: {
buttonSuccess: null,
},
});
window.app.Favorit = window.core.modules.initFavorite({
addUrl: \"{{ path('portal_add_favl') }}\",
removeUrl: \"{{ path('portal_remove_favl') }}\"
});
window.app.Compare = window.core.modules.initCompare();
const portal = window.portal.portal || window.portal.portalBS5;
portal.init();
portal.initViDiCallback({
createCallbackUrl: '{{ path('callback_widget_create_request') }}',
getDepartmentUrl: '{{ path('callback_widget_department_vidi') }}',
getCallbackStateUrl: '{{ path('callback_widget_get_state') }}',
privacyUrl: '{{ path('portal_privacy_policy') }}',
callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
});
});
</script>
{# Плашка Анонс бар #}
<script>
document.addEventListener(\"DOMContentLoaded\", function() {
const charityBar = document.querySelector('.charity_die');
const closeBtn = document.querySelector('.charity_btn_close');
const sessionKey = 'charityBarHidden';
if (sessionStorage.getItem(sessionKey)) {
charityBar.classList.add('charity_die_hiden');
} else {
charityBar.classList.remove('charity_die_hiden');
}
closeBtn.addEventListener('click', function() {
charityBar.classList.add('charity_die_hiden');
sessionStorage.setItem(sessionKey, 'charity_die_hiden');
});
});
</script>
{% if INCLUDE_ANALYTICS %}
<noscript>
<iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-TK6DGWW\" height=\"0\" width=\"0\" style=\"display:none\"></iframe>
</noscript>
{% endif %}
{% if app.user %}
<script type=\"text/javascript\">
window.dataLayer.push({'user_id': {{ app.user.id }}});
</script>
{% endif %}
{% block script %}
{% endblock script %}
</body>
</html>
", "@Portal/template.html.twig", "/var/www/vidi.ua/releases/251027-872b0c76/src/PortalBundle/Resources/views/template.html.twig");
}
}