<?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;
/* @Core/DCSite/core-dc-template.html.twig */
class __TwigTemplate_62bd1affd9a72d924a5a14c7887c018a 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 = [
'gtm' => [$this, 'block_gtm'],
'robots' => [$this, 'block_robots'],
'head' => [$this, 'block_head'],
'ogtagStatic' => [$this, 'block_ogtagStatic'],
'ogtagDynamicImage' => [$this, 'block_ogtagDynamicImage'],
'ogtagDynamic' => [$this, 'block_ogtagDynamic'],
'canonical' => [$this, 'block_canonical'],
'bodyGtm' => [$this, 'block_bodyGtm'],
'socialPreview' => [$this, 'block_socialPreview'],
'body' => [$this, 'block_body'],
'coreMessage' => [$this, 'block_coreMessage'],
'initJsApp' => [$this, 'block_initJsApp'],
'coreBottomJs' => [$this, 'block_coreBottomJs'],
];
}
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", "@Core/DCSite/core-dc-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", "@Core/DCSite/core-dc-template.html.twig"));
// line 1
yield "<!DOCTYPE html>
";
// line 2
if (CoreExtension::inFilter(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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "locale", [], "any", false, false, false, 2), "ua")) {
// line 3
yield "<html lang=\"uk\" prefix=\"og: https://ogp.me/ns#\">
";
} else {
// line 5
yield "<html lang=\"ru\" prefix=\"og: https://ogp.me/ns#\">
";
}
// line 7
yield "<head>
";
// line 8
yield from $this->unwrap()->yieldBlock('gtm', $context, $blocks);
// line 10
yield "
<link rel=\"preload\" as=\"style\" href=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/preloader.css"), "html", null, true);
yield "\">
<link rel=\"preload\" as=\"style\" href=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/bootstrap_build/bootstrap.css"), "html", null, true);
yield "\">
<link rel=\"stylesheet\" media=\"print\" onload=\"this.media='all'\" as=\"style\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/core.css"), "html", null, true);
yield "\">
<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
";
// line 16
yield from $this->unwrap()->yieldBlock('robots', $context, $blocks);
// line 24
yield "
<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\">
";
// line 27
if (array_key_exists("dealer", $context)) {
// line 28
yield " <link rel=\"alternate\" type=\"application/rss+xml\" title=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 28, $this->source); })()), "name", [], "any", false, false, false, 28), "html", null, true);
yield "\" href=\"https://";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 28, $this->source); })()), "domain", [], "any", false, false, false, 28), "html", null, true);
yield "/rss/\"/>
";
}
// line 30
yield " ";
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('ogtagDynamicImage', $context, $blocks);
// line 39
yield " ";
yield from $this->unwrap()->yieldBlock('ogtagDynamic', $context, $blocks);
// line 41
yield "
";
// line 42
yield from $this->unwrap()->yieldBlock('canonical', $context, $blocks);
// line 69
yield "
";
// line 70
yield from $this->load("@DcSite/Modules/pixel-code.html.twig", 70)->unwrap()->yield($context);
// line 71
yield "</head>
<body class=\"dealer\">
";
// line 74
yield from $this->unwrap()->yieldBlock('bodyGtm', $context, $blocks);
// line 76
yield "<div id=\"preloader\">
<div id=\"fountainG\">
<div id=\"fountainG_1\" class=\"fountainG\"></div>
<div id=\"fountainG_2\" class=\"fountainG\"></div>
<div id=\"fountainG_3\" class=\"fountainG\"></div>
<div id=\"fountainG_4\" class=\"fountainG\"></div>
<div id=\"fountainG_5\" class=\"fountainG\"></div>
<div id=\"fountainG_6\" class=\"fountainG\"></div>
<div id=\"fountainG_7\" class=\"fountainG\"></div>
<div id=\"fountainG_8\" class=\"fountainG\"></div>
</div>
</div>
";
// line 88
if ((is_string($_v0 = !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.', 88, $this->source); })()), "request", [], "any", false, false, false, 88), "host", [], "any", false, false, false, 88)) && is_string($_v1 = "loyalty.") && str_starts_with($_v0, $_v1))) {
// line 89
yield "<iframe style=\"display: none\" src=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_ios_cross_domain_auth");
yield "\"></iframe>
";
}
// line 91
yield from $this->unwrap()->yieldBlock('socialPreview', $context, $blocks);
// line 93
yield "
";
// line 94
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 96
yield from $this->load("@My/Modules/auth.html.twig", 96)->unwrap()->yield($context);
// line 97
yield from $this->unwrap()->yieldBlock('coreMessage', $context, $blocks);
// line 100
yield "
";
// line 101
yield from $this->unwrap()->yieldBlock('initJsApp', $context, $blocks);
// line 340
yield "
<script>
function isLoyaltySubdomain() {
return window.location.hostname.startsWith('loyalty.');
}
app.onCustomEvent('appInit', function () {
app.onCustomEvent('coreAuthInit', function () {
Auth.setOnLogoinCallback(function (user, token = null, url = null) {
if (url) {
window.location.href = url;
} else {
window.location.reload();
}
});
});
window.addEventListener(\"message\", function (e) {
if(e.data.dataType != 'crossAuth') {
return false;
}
if (isLoyaltySubdomain() || !e.isTrusted) {
return false;
}
// if(app.user.id && !e.data.token) {
// \$.ajax({
// url: '/logout-user',
// method: 'GET',
// xhrFields: {
// withCredentials: true
// },
// success: function (response) {
// window.location.reload();
// }
// });
// }
if (app.user.id) {
return false;
}
\$.ajax({
url: '";
// line 382
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_cross_domain_auth")), "html", null, true);
yield "',
method: 'POST',
data: {token: e.data.token, rnew: 1},
xhrFields: {
withCredentials: true
},
success: function (response) {
if (response.success) {
window.location.reload();
}
}
});
});
});
</script>
";
// line 398
yield from $this->unwrap()->yieldBlock('coreBottomJs', $context, $blocks);
// line 406
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.', 406, $this->source); })()), "user", [], "any", false, false, false, 406)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 407
yield " <script type=\"text/javascript\">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({'user_id': ";
// line 409
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.', 409, $this->source); })()), "user", [], "any", false, false, false, 409), "id", [], "any", false, false, false, 409), "html", null, true);
yield "});
</script>
";
}
// line 412
if (((array_key_exists("helpCrunch", $context) && array_key_exists("dealer", $context)) && (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 412, $this->source); })()), "id", [], "any", false, false, false, 412) != 16) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 412, $this->source); })()), "id", [], "any", false, false, false, 412) != 27)) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 412, $this->source); })()), "id", [], "any", false, false, false, 412) != 8)))) {
// line 413
yield "<script type=\"text/javascript\">
window.helpcrunchSettings = {
organization: '";
// line 415
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["helpCrunch"]) || array_key_exists("helpCrunch", $context) ? $context["helpCrunch"] : (function () { throw new RuntimeError('Variable "helpCrunch" does not exist.', 415, $this->source); })()), "organization", [], "array", false, false, false, 415), "html", null, true);
yield "',
appId: '";
// line 416
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["helpCrunch"]) || array_key_exists("helpCrunch", $context) ? $context["helpCrunch"] : (function () { throw new RuntimeError('Variable "helpCrunch" does not exist.', 416, $this->source); })()), "appId", [], "array", false, false, false, 416), "html", null, true);
yield "',
};
</script>
<script type=\"text/javascript\">
(function(w,d){var hS=w.helpcrunchSettings;if(!hS||!hS.organization){return;}var widgetSrc='https://'+hS.organization+'.widget.helpcrunch.com/';w.HelpCrunch=function(){w.HelpCrunch.q.push(arguments)};w.HelpCrunch.q=[];function r(){if (d.querySelector('script[src=\"' + widgetSrc + '\"')) { return; }var s=d.createElement('script');s.async=1;s.type='text/javascript';s.src=widgetSrc;(d.body||d.head).appendChild(s);}if(d.readyState === 'complete'||hS.loadImmediately){r();} else if(w.attachEvent){w.attachEvent('onload',r)}else{w.addEventListener('load',r,false)}})(window, document)
</script>
";
}
// line 424
yield "</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_gtm(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", "gtm"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "gtm"));
// line 9
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 16
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_robots(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", "robots"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "robots"));
// line 17
yield " ";
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.', 17, $this->source); })()), "environment", [], "any", false, false, false, 17) == "dev")) {
// line 18
yield " <meta name=\"robots\" content=\"noindex, nofollow\">
<meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
";
} elseif ((($tmp = CoreExtension::getAttribute($this->env, $this->source, // line 20
(isset($context["seoMeta"]) || array_key_exists("seoMeta", $context) ? $context["seoMeta"] : (function () { throw new RuntimeError('Variable "seoMeta" does not exist.', 20, $this->source); })()), "robots", [], "any", false, false, false, 20)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 21
yield " <meta name=\"robots\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["seoMeta"]) || array_key_exists("seoMeta", $context) ? $context["seoMeta"] : (function () { throw new RuntimeError('Variable "seoMeta" does not exist.', 21, $this->source); })()), "robots", [], "any", false, false, false, 21), "html", null, true);
yield "\">
";
}
// line 23
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_ogtagDynamicImage(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", "ogtagDynamicImage"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogtagDynamicImage"));
// line 37
yield " ";
if (((array_key_exists("dealer", $context) && CoreExtension::getAttribute($this->env, $this->source, ($context["dealer"] ?? null), "brand", [], "any", true, true, false, 37)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["dealer"] ?? null), "brand", [], "any", false, true, false, 37), "logo", [], "any", true, true, false, 37))) {
yield "<meta property=\"og:image\" content=\"";
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.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "httpHost", [], "any", false, false, false, 37), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->path(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 37, $this->source); })()), "brand", [], "any", false, false, false, 37), "logo", [], "any", false, false, false, 37), "reference"), "html", null, true);
yield "\">";
} else {
yield "<meta property=\"og:image\" content=\"/bundles/portal/img/front/logo.jpg\" />";
}
// line 38
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 39
/**
* @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 40
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 42
/**
* @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 43
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 43), "attributes", [], "any", false, true, false, 43), "get", ["_route_params"], "method", false, true, false, 43), "_locale", [], "array", true, true, false, 43)) {
// line 44
yield " ";
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.', 44, $this->source); })()), "request", [], "any", false, false, false, 44), "host", [], "any", false, false, false, 44) != "vidi.ua")) {
// line 45
yield " <link rel=\"canonical\"
href=\"";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(CoreExtension::getAttribute($this->env, $this->source, 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.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "attributes", [], "any", false, false, false, 46), "get", ["_route"], "method", false, false, false, 46), CoreExtension::getAttribute($this->env, $this->source, 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.', 46, $this->source); })()), "request", [], "any", false, false, false, 46), "attributes", [], "any", false, false, false, 46), "get", ["_route_params"], "method", false, false, false, 46)), "html", null, true);
yield "\"/>
";
} else {
// line 48
yield " <link rel=\"canonical\" href=\"";
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.', 48, $this->source); })()), "request", [], "any", false, false, false, 48), "uri", [], "any", false, false, false, 48), "html", null, true);
yield "\"/>
";
}
// line 50
yield " ";
if ((($tmp = 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.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "get", ["variation"], "method", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 51
yield "
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["allowed_locales"]) || array_key_exists("allowed_locales", $context) ? $context["allowed_locales"] : (function () { throw new RuntimeError('Variable "allowed_locales" does not exist.', 52, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 53
yield " <link rel=\"alternate\" hreflang=\"";
if (($context["locale"] == "ua")) {
yield "uk-ua";
} else {
yield "ru-ua";
}
yield "\"
href=\"";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, 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.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "attributes", [], "any", false, false, false, 54), "get", ["_route"], "method", false, false, false, 54), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "attributes", [], "any", false, false, false, 54), "get", ["_route_params"], "method", false, false, false, 54), ["_locale" => $context["locale"], "variation" => 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.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "get", ["variation"], "method", false, false, false, 54)]))), "html", null, true);
yield "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
yield " <link rel=\"alternate\" hreflang=\"x-default\"
href=\"";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, 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.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "attributes", [], "any", false, false, false, 57), "get", ["_route"], "method", false, false, false, 57), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "attributes", [], "any", false, false, false, 57), "get", ["_route_params"], "method", false, false, false, 57), ["_locale" => "ua", "variation" => 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.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "get", ["variation"], "method", false, false, false, 57)]))), "html", null, true);
yield "\"/>
";
} else {
// line 59
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["allowed_locales"]) || array_key_exists("allowed_locales", $context) ? $context["allowed_locales"] : (function () { throw new RuntimeError('Variable "allowed_locales" does not exist.', 59, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
// line 60
yield " <link rel=\"alternate\" hreflang=\"";
if (($context["locale"] == "ua")) {
yield "uk-ua";
} else {
yield "ru-ua";
}
yield "\"
href=\"";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, 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.', 61, $this->source); })()), "request", [], "any", false, false, false, 61), "attributes", [], "any", false, false, false, 61), "get", ["_route"], "method", false, false, false, 61), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 61, $this->source); })()), "request", [], "any", false, false, false, 61), "attributes", [], "any", false, false, false, 61), "get", ["_route_params"], "method", false, false, false, 61), ["_locale" => $context["locale"]]))), "html", null, true);
yield "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
yield " <link rel=\"alternate\" hreflang=\"x-default\"
href=\"";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, 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.', 64, $this->source); })()), "request", [], "any", false, false, false, 64), "attributes", [], "any", false, false, false, 64), "get", ["_route"], "method", false, false, false, 64), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, 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.', 64, $this->source); })()), "request", [], "any", false, false, false, 64), "attributes", [], "any", false, false, false, 64), "get", ["_route_params"], "method", false, false, false, 64), ["_locale" => "ua"]))), "html", null, true);
yield "\"/>
";
}
// line 66
yield "
";
}
// line 68
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 74
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_bodyGtm(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", "bodyGtm"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyGtm"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 91
/**
* @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 94
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 97
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_coreMessage(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", "coreMessage"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "coreMessage"));
// line 98
yield " <div id=\"vidiCoreMessageWrapper\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 101
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_initJsApp(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", "initJsApp"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "initJsApp"));
// line 102
yield " ";
$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.', 102, $this->source); })()))) ? ((isset($context["backLoginUrl"]) || array_key_exists("backLoginUrl", $context) ? $context["backLoginUrl"] : (function () { throw new RuntimeError('Variable "backLoginUrl" does not exist.', 102, $this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car")));
// line 103
yield " ";
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.', 103, $this->source); })()), "environment", [], "any", false, false, false, 103) != "dev")) {
// line 104
yield " <script src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/js/core.js"), "html", null, true);
yield "\"></script>
<script type=\"text/javascript\">
window.app = new ViDiApp({
version: '";
// line 107
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetVersion($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/core.js")), "html", null, true);
yield "',
message: {
templateUrl: '";
// line 109
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_message_load_template");
yield "',
text: {
btnCancel: '";
// line 111
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.cancel", [], "core"), "html", null, true);
yield "',
}
},
http: {
requestErrorText: '";
// line 115
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 "',
},
preLoader: {
templateUrl: '";
// line 118
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_preloader_load_template");
yield "',
preLoaderCss: '";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/preloader.css"), "html", null, true);
yield "',
},
authOptions: {
checkUrl: '";
// line 122
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_cross_domain_auth")), "html", null, true);
yield "',
loginUrl: '";
// line 123
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_cross_domain_auth");
yield "',
},
leadForms: {
captchaUrl: '";
// line 126
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_capthcha_init");
yield "',
text: {
successTitle: '";
// line 128
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 129
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 130
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,
},
},
favoriteOptions: {
addUrl: '";
// line 137
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_add_favl");
yield "',
removeUrl: '";
// line 138
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_remove_favl");
yield "',
},
user: {
id: ";
// line 141
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.', 141, $this->source); })()), "user", [], "any", false, false, false, 141)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
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.', 141, $this->source); })()), "user", [], "any", false, false, false, 141), "id", [], "any", false, false, false, 141), "html", null, true);
} else {
yield "false";
}
yield ",
name: ";
// line 142
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.', 142, $this->source); })()), "user", [], "any", false, false, false, 142)) && $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.', 142, $this->source); })()), "user", [], "any", false, false, false, 142), "fullName", [], "any", false, false, false, 142), "html", null, true);
yield "'";
} else {
yield "null";
}
yield ",
},
requiredJs: [
{
path: '";
// line 146
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/jquery-2.2.4.slim.min.js"), "html", null, true);
yield "',
},
{
path: '";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/bootstrap/popper.min.js"), "html", null, true);
yield "',
},
{
//path: '";
// line 152
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/vue/vue.min.js"), "html", null, true);
yield "',
path: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.js',
},
],
coreJs: [
{
path: '";
// line 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/track.js"), "html", null, true);
yield "',
},
{
path: '";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/message.js"), "html", null, true);
yield "',
onLoadEvent: 'messageLoad',
},
{
path: '";
// line 165
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/http.js"), "html", null, true);
yield "',
onLoadEvent: 'httpLoad',
},
{
path: '";
// line 169
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/preloader.js"), "html", null, true);
yield "',
onLoadEvent: 'preLoaderLoad',
},
{
path: '";
// line 173
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/lead-form.js"), "html", null, true);
yield "',
onLoadEvent: 'leadFormsLoad',
},
{
path: '";
// line 177
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/favorit.js"), "html", null, true);
yield "',
onLoadEvent: 'favoritLoad',
},
{
path: '";
// line 181
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/compare.js"), "html", null, true);
yield "',
onLoadEvent: 'compareLoad',
},
{
path: '";
// line 185
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/lazy-init.js"), "html", null, true);
yield "',
onLoadEvent: 'lazyInitLoad',
},
{
path: '";
// line 189
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/bootstrap/bootstrap.min.js"), "html", null, true);
yield "',
},
{
path: '";
// line 192
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/mask.js"), "html", null, true);
yield "',
},
],
coreCss: [
'";
// line 196
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/bootstrap_build/bootstrap.css"), "html", null, true);
yield "',
'";
// line 197
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/core.css"), "html", null, true);
yield "',
'";
// line 198
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/modules/core-modal/core-modal.css"), "html", null, true);
yield "',
'";
// line 199
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/modules/core-modal/modal-fw.css"), "html", null, true);
yield "',
'";
// line 200
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/lead-form.css"), "html", null, true);
yield "',
],
});
app.onCustomEvent('appInit', function () {
app.loadJs('";
// line 204
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/register.js"), "html", null, true);
yield "', function () {
initAuthRegistration({
locale: '";
// line 206
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.', 206, $this->source); })()), "request", [], "any", false, false, false, 206), "locale", [], "any", false, false, false, 206), "html", null, true);
yield "',
fbAuthUrl: '";
// line 207
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_fb_user");
yield "',
googleAuthUrl: '";
// line 208
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_google_user");
yield "',
registerConfoirmUrl: '";
// line 209
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_confirm");
yield "',
profileUrl: '";
// line 210
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.', 210, $this->source); })()), "html", null, true);
yield "',
getCodeUrl: '";
// line 211
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_get_code");
yield "',
resendCodeUrl: '";
// line 212
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_resend_reg_code");
yield "',
loginCodeUrl: '";
// line 213
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "',
refererUrl: ";
// line 214
yield ((array_key_exists("refererUrl", $context)) ? (json_encode((isset($context["refererUrl"]) || array_key_exists("refererUrl", $context) ? $context["refererUrl"] : (function () { throw new RuntimeError('Variable "refererUrl" does not exist.', 214, $this->source); })()))) : ("null"));
yield ",
messageRegisterSuccessTitle: '";
// line 215
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 216
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 217
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 218
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 "'
});
});
app.loadJs('";
// line 221
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/recovery.js"), "html", null, true);
yield "', function () {
initAuthRecovery({
locale: '";
// line 223
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.', 223, $this->source); })()), "request", [], "any", false, false, false, 223), "locale", [], "any", false, false, false, 223), "html", null, true);
yield "',
getCodeRecoveryUrl: '";
// line 224
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_get_code");
yield "',
recoveryConfirmCodeUrl: '";
// line 225
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_confirm_code");
yield "',
recoverySetPasswordUrl: '";
// line 226
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_set_password");
yield "',
messageRecoverySuccessTitle: '";
// line 227
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.recovery.success_title", [], "core"), "html", null, true);
yield "',
messageRecoverySuccessText: '";
// line 228
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.recovery.success_text", [], "core"), "html", null, true);
yield "',
messageLoginErrorPassword: '";
// line 229
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 230
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 "',
profileUrl: '";
// line 231
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car");
yield "',
});
});
app.loadJs('";
// line 234
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/change-phone.js"), "html", null, true);
yield "', function () {
initAuthChangePhone({
locale: '";
// line 236
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.', 236, $this->source); })()), "request", [], "any", false, false, false, 236), "locale", [], "any", false, false, false, 236), "html", null, true);
yield "',
messageLoginErrorEmail: '";
// line 237
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 238
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_get_code");
yield "',
setNewPhoneUrl: '";
// line 239
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_set_phone");
yield "',
loginCodeUrl: '";
// line 240
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "',
confirmNewPhoneUrl: \"";
// line 241
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_confirm_new_phone");
yield "\",
profileUrl: '";
// line 242
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car");
yield "',
});
});
});
</script>
";
} else {
// line 248
yield " <script src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/core/js/prod.core.js"), "html", null, true);
yield "\"></script>
<script type=\"text/javascript\">
window.app = new ViDiApp({
version: '";
// line 251
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetVersion($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/prod.core.js")), "html", null, true);
yield "',
message: {
templateUrl: '";
// line 253
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_message_load_template");
yield "',
text: {
btnCancel: '";
// line 255
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.cancel", [], "core"), "html", null, true);
yield "',
}
},
http: {
requestErrorText: '";
// line 259
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 "',
},
preLoader: {
templateUrl: '";
// line 262
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_preloader_load_template");
yield "',
preLoaderCss: '";
// line 263
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/preloader.css"), "html", null, true);
yield "',
},
authOptions: {
checkUrl: '";
// line 266
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_cross_domain_auth")), "html", null, true);
yield "',
loginUrl: '";
// line 267
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_cross_domain_auth");
yield "',
},
leadForms: {
captchaUrl: '";
// line 270
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_capthcha_init");
yield "',
text: {
successTitle: '";
// line 272
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 273
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 "',
},
href: {
buttonSuccess: null,
},
},
favoriteOptions: {
addUrl: '";
// line 280
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_add_favl");
yield "',
removeUrl: '";
// line 281
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_remove_favl");
yield "',
},
user: {
id: ";
// line 284
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.', 284, $this->source); })()), "user", [], "any", false, false, false, 284)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
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.', 284, $this->source); })()), "user", [], "any", false, false, false, 284), "id", [], "any", false, false, false, 284), "html", null, true);
} else {
yield "false";
}
yield ",
name: ";
// line 285
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.', 285, $this->source); })()), "user", [], "any", false, false, false, 285)) && $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.', 285, $this->source); })()), "user", [], "any", false, false, false, 285), "fullName", [], "any", false, false, false, 285), "html", null, true);
yield "'";
} else {
yield "null";
}
yield ",
},
requiredJs: [
{
path: '";
// line 289
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/js/prod.cor.min.js"), "html", null, true);
yield "',
},
],
coreCss: [
'";
// line 293
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/core.prod.css"), "html", null, true);
yield "',
'";
// line 294
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/lead-form.css"), "html", null, true);
yield "',
],
});
app.onCustomEvent('appInit', function () {
app.loadJs('";
// line 298
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/register.js"), "html", null, true);
yield "', function () {
initAuthRegistration({
locale: '";
// line 300
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.', 300, $this->source); })()), "request", [], "any", false, false, false, 300), "locale", [], "any", false, false, false, 300), "html", null, true);
yield "',
fbAuthUrl: '";
// line 301
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_fb_user");
yield "',
googleAuthUrl: '";
// line 302
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_auth_google_user");
yield "',
registerConfoirmUrl: '";
// line 303
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_confirm");
yield "',
profileUrl: '";
// line 304
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.', 304, $this->source); })()), "html", null, true);
yield "',
getCodeUrl: '";
// line 305
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_get_code");
yield "',
resendCodeUrl: '";
// line 306
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_register_resend_reg_code");
yield "',
loginCodeUrl: '";
// line 307
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "',
loginCodeUrlA: '";
// line 308
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("core_register_code_login");
yield "',
refererUrl: ";
// line 309
yield ((array_key_exists("refererUrl", $context)) ? (json_encode((isset($context["refererUrl"]) || array_key_exists("refererUrl", $context) ? $context["refererUrl"] : (function () { throw new RuntimeError('Variable "refererUrl" does not exist.', 309, $this->source); })()))) : ("null"));
yield ",
messageRegisterSuccessTitle: '";
// line 310
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 311
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 "',
messageLoginErrorEmail: '";
// line 312
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 "'
});
});
app.loadJs('";
// line 315
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/recovery.js"), "html", null, true);
yield "', function () {
initAuthRecovery({
locale: '";
// line 317
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.', 317, $this->source); })()), "request", [], "any", false, false, false, 317), "locale", [], "any", false, false, false, 317), "html", null, true);
yield "',
getCodeRecoveryUrl: '";
// line 318
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_get_code");
yield "',
recoveryConfirmCodeUrl: '";
// line 319
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_confirm_code");
yield "',
recoverySetPasswordUrl: '";
// line 320
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_recovery_set_password");
yield "',
messageRecoverySuccessTitle: '";
// line 321
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.recovery.success_title", [], "core"), "html", null, true);
yield "',
messageRecoverySuccessText: '";
// line 322
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.message.recovery.success_text", [], "core"), "html", null, true);
yield "',
messageLoginErrorPassword: '";
// line 323
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 324
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 "',
profileUrl: '";
// line 325
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_about_car");
yield "',
});
});
app.loadJs('";
// line 328
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/my/js/change-phone.js"), "html", null, true);
yield "', function () {
initAuthChangePhone({
locale: '";
// line 330
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.', 330, $this->source); })()), "request", [], "any", false, false, false, 330), "locale", [], "any", false, false, false, 330), "html", null, true);
yield "',
messageLoginErrorEmail: '";
// line 331
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 332
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_get_code");
yield "',
setNewPhoneUrl: '";
// line 333
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("my_change_phone_set_phone");
yield "',
});
});
});
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 398
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_coreBottomJs(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", "coreBottomJs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "coreBottomJs"));
// line 399
yield " <script>
app.onCustomEvent('appInit', function () {
app.loadCss('";
// line 401
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/modules/core-modal/core-modal.css"), "html", null, true);
yield "');
app.loadCss('";
// line 402
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/core/css/modules/core-modal/modal-fw.css"), "html", null, true);
yield "');
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Core/DCSite/core-dc-template.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1320 => 402, 1316 => 401, 1312 => 399, 1299 => 398, 1281 => 333, 1277 => 332, 1273 => 331, 1269 => 330, 1264 => 328, 1258 => 325, 1254 => 324, 1250 => 323, 1246 => 322, 1242 => 321, 1238 => 320, 1234 => 319, 1230 => 318, 1226 => 317, 1221 => 315, 1215 => 312, 1211 => 311, 1207 => 310, 1203 => 309, 1199 => 308, 1195 => 307, 1191 => 306, 1187 => 305, 1183 => 304, 1179 => 303, 1175 => 302, 1171 => 301, 1167 => 300, 1162 => 298, 1155 => 294, 1151 => 293, 1144 => 289, 1131 => 285, 1123 => 284, 1117 => 281, 1113 => 280, 1103 => 273, 1099 => 272, 1094 => 270, 1088 => 267, 1084 => 266, 1078 => 263, 1074 => 262, 1068 => 259, 1061 => 255, 1056 => 253, 1051 => 251, 1044 => 248, 1035 => 242, 1031 => 241, 1027 => 240, 1023 => 239, 1019 => 238, 1015 => 237, 1011 => 236, 1006 => 234, 1000 => 231, 996 => 230, 992 => 229, 988 => 228, 984 => 227, 980 => 226, 976 => 225, 972 => 224, 968 => 223, 963 => 221, 957 => 218, 953 => 217, 949 => 216, 945 => 215, 941 => 214, 937 => 213, 933 => 212, 929 => 211, 925 => 210, 921 => 209, 917 => 208, 913 => 207, 909 => 206, 904 => 204, 897 => 200, 893 => 199, 889 => 198, 885 => 197, 881 => 196, 874 => 192, 868 => 189, 861 => 185, 854 => 181, 847 => 177, 840 => 173, 833 => 169, 826 => 165, 819 => 161, 813 => 158, 804 => 152, 798 => 149, 792 => 146, 779 => 142, 771 => 141, 765 => 138, 761 => 137, 751 => 130, 747 => 129, 743 => 128, 738 => 126, 732 => 123, 728 => 122, 722 => 119, 718 => 118, 712 => 115, 705 => 111, 700 => 109, 695 => 107, 688 => 104, 685 => 103, 682 => 102, 669 => 101, 657 => 98, 644 => 97, 622 => 94, 600 => 91, 578 => 74, 567 => 68, 563 => 66, 558 => 64, 555 => 63, 547 => 61, 538 => 60, 533 => 59, 528 => 57, 525 => 56, 517 => 54, 508 => 53, 504 => 52, 501 => 51, 498 => 50, 492 => 48, 487 => 46, 484 => 45, 481 => 44, 478 => 43, 465 => 42, 454 => 40, 441 => 39, 430 => 38, 420 => 37, 407 => 36, 396 => 35, 393 => 34, 380 => 33, 369 => 31, 356 => 30, 345 => 23, 339 => 21, 337 => 20, 333 => 18, 330 => 17, 317 => 16, 306 => 9, 293 => 8, 280 => 424, 269 => 416, 265 => 415, 261 => 413, 259 => 412, 253 => 409, 249 => 407, 247 => 406, 245 => 398, 226 => 382, 182 => 340, 180 => 101, 177 => 100, 175 => 97, 173 => 96, 171 => 94, 168 => 93, 166 => 91, 160 => 89, 158 => 88, 144 => 76, 142 => 74, 137 => 71, 135 => 70, 132 => 69, 130 => 42, 127 => 41, 124 => 39, 121 => 36, 119 => 33, 116 => 32, 113 => 30, 105 => 28, 103 => 27, 98 => 24, 96 => 16, 90 => 13, 86 => 12, 82 => 11, 79 => 10, 77 => 8, 74 => 7, 70 => 5, 66 => 3, 64 => 2, 61 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
{% if app.request.locale in('ua') %}
<html lang=\"uk\" prefix=\"og: https://ogp.me/ns#\">
{% else %}
<html lang=\"ru\" prefix=\"og: https://ogp.me/ns#\">
{% endif %}
<head>
{% block gtm %}
{% endblock gtm %}
<link rel=\"preload\" as=\"style\" href=\"{{ asset('/bundles/core/css/preloader.css') }}\">
<link rel=\"preload\" as=\"style\" href=\"{{ asset('/bundles/core/css/bootstrap_build/bootstrap.css') }}\">
<link rel=\"stylesheet\" media=\"print\" onload=\"this.media='all'\" as=\"style\" href=\"{{ asset('/bundles/core/css/core.css') }}\">
<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">
{% block robots %}
{% if app.environment == 'dev' %}
<meta name=\"robots\" content=\"noindex, nofollow\">
<meta name=\"google-site-verification\" content=\"FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus\" />
{% elseif seoMeta.robots %}
<meta name=\"robots\" content=\"{{ seoMeta.robots }}\">
{% endif %}
{% endblock robots %}
<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\">
{% if dealer is defined %}
<link rel=\"alternate\" type=\"application/rss+xml\" title=\"{{ dealer.name }}\" href=\"https://{{ dealer.domain }}/rss/\"/>
{% endif %}
{% block head %}
{% endblock head %}
{% block ogtagStatic %}
{% include '@DcSite/Modules/og-tag.html.twig' %}
{% endblock ogtagStatic %}
{% block ogtagDynamicImage %}
{% if dealer is defined and dealer.brand is defined and dealer.brand.logo is defined %}<meta property=\"og:image\" content=\"{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}\">{% else %}<meta property=\"og:image\" content=\"/bundles/portal/img/front/logo.jpg\" />{% endif %}
{% endblock ogtagDynamicImage %}
{% block ogtagDynamic %}
{% endblock ogtagDynamic %}
{% block canonical %}
{% if app.request.attributes.get('_route_params')['_locale'] is defined %}
{% if app.request.host != 'vidi.ua' %}
<link rel=\"canonical\"
href=\"{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}\"/>
{% else %}
<link rel=\"canonical\" href=\"{{ app.request.uri }}\"/>
{% endif %}
{% if app.request.get('variation') %}
{% for locale in allowed_locales %}
<link rel=\"alternate\" hreflang=\"{% if locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}\"
href=\"{{ absolute_url(path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'_locale': locale, 'variation': app.request.get('variation')}))) }}\"/>
{% endfor %}
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"{{ absolute_url(path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'_locale': 'ua', 'variation': app.request.get('variation')}))) }}\"/>
{% else %}
{% for locale in allowed_locales %}
<link rel=\"alternate\" hreflang=\"{% if locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}\"
href=\"{{ absolute_url(path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'_locale': locale}))) }}\"/>
{% endfor %}
<link rel=\"alternate\" hreflang=\"x-default\"
href=\"{{ absolute_url(path(app.request.attributes.get('_route'),app.request.attributes.get('_route_params')|merge({'_locale': 'ua'}))) }}\"/>
{% endif %}
{% endif %}
{% endblock canonical %}
{% include '@DcSite/Modules/pixel-code.html.twig' %}
</head>
<body class=\"dealer\">
{% block bodyGtm %}
{% endblock bodyGtm %}
<div id=\"preloader\">
<div id=\"fountainG\">
<div id=\"fountainG_1\" class=\"fountainG\"></div>
<div id=\"fountainG_2\" class=\"fountainG\"></div>
<div id=\"fountainG_3\" class=\"fountainG\"></div>
<div id=\"fountainG_4\" class=\"fountainG\"></div>
<div id=\"fountainG_5\" class=\"fountainG\"></div>
<div id=\"fountainG_6\" class=\"fountainG\"></div>
<div id=\"fountainG_7\" class=\"fountainG\"></div>
<div id=\"fountainG_8\" class=\"fountainG\"></div>
</div>
</div>
{% if not app.request.host starts with 'loyalty.' %}
<iframe style=\"display: none\" src=\"{{ path('my_ios_cross_domain_auth') }}\"></iframe>
{% endif %}
{% block socialPreview %}
{% endblock socialPreview %}
{% block body %}
{% endblock body %}
{% include '@My/Modules/auth.html.twig' %}
{% block coreMessage %}
<div id=\"vidiCoreMessageWrapper\"></div>
{% endblock coreMessage %}
{% block initJsApp %}
{% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
{% if app.environment != 'dev' %}
<script src=\"{{ asset('bundles/core/js/core.js') }}\"></script>
<script type=\"text/javascript\">
window.app = new ViDiApp({
version: '{{ asset_version(asset('/bundles/core/js/core.js')) }}',
message: {
templateUrl: '{{ path('core_message_load_template') }}',
text: {
btnCancel: '{{ 'app.message.cancel'|trans({},'core') }}',
}
},
http: {
requestErrorText: '{{ 'app.http.server_error'|trans({},'core') }}',
},
preLoader: {
templateUrl: '{{ path('core_preloader_load_template') }}',
preLoaderCss: '{{ asset('/bundles/core/css/preloader.css') }}',
},
authOptions: {
checkUrl: '{{ absolute_url(path('my_cross_domain_auth')) }}',
loginUrl: '{{ path('core_cross_domain_auth') }}',
},
leadForms: {
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,
},
},
favoriteOptions: {
addUrl: '{{ path('portal_add_favl') }}',
removeUrl: '{{ path('portal_remove_favl') }}',
},
user: {
id: {% if app.user %}{{ app.user.id }}{% else %}false{% endif %},
name: {% if app.user %}'{{ app.user.fullName }}'{% else %}null{% endif %},
},
requiredJs: [
{
path: '{{ asset('/bundles/core/js/jquery-2.2.4.slim.min.js') }}',
},
{
path: '{{ asset('/bundles/core/js/bootstrap/popper.min.js') }}',
},
{
//path: '{{ asset('/bundles/core/js/vue/vue.min.js') }}',
path: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.js',
},
],
coreJs: [
{
path: '{{ asset('/bundles/core/js/track.js') }}',
},
{
path: '{{ asset('/bundles/core/js/message.js') }}',
onLoadEvent: 'messageLoad',
},
{
path: '{{ asset('/bundles/core/js/http.js') }}',
onLoadEvent: 'httpLoad',
},
{
path: '{{ asset('/bundles/core/js/preloader.js') }}',
onLoadEvent: 'preLoaderLoad',
},
{
path: '{{ asset('/bundles/core/js/lead-form.js') }}',
onLoadEvent: 'leadFormsLoad',
},
{
path: '{{ asset('/bundles/core/js/favorit.js') }}',
onLoadEvent: 'favoritLoad',
},
{
path: '{{ asset('/bundles/core/js/compare.js') }}',
onLoadEvent: 'compareLoad',
},
{
path: '{{ asset('/bundles/core/js/lazy-init.js') }}',
onLoadEvent: 'lazyInitLoad',
},
{
path: '{{ asset('/bundles/core/js/bootstrap/bootstrap.min.js') }}',
},
{
path: '{{ asset('/bundles/core/js/mask.js') }}',
},
],
coreCss: [
'{{ asset('/bundles/core/css/bootstrap_build/bootstrap.css') }}',
'{{ asset('/bundles/core/css/core.css') }}',
'{{ asset('/bundles/core/css/modules/core-modal/core-modal.css') }}',
'{{ asset('/bundles/core/css/modules/core-modal/modal-fw.css') }}',
'{{ asset('/bundles/core/css/lead-form.css') }}',
],
});
app.onCustomEvent('appInit', function () {
app.loadJs('{{ asset('bundles/my/js/register.js') }}', function () {
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') }}',
refererUrl: {{ refererUrl is defined ? refererUrl|json_encode|raw : 'null' }},
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') }}'
});
});
app.loadJs('{{ asset('bundles/my/js/recovery.js') }}', function () {
initAuthRecovery({
locale: '{{ app.request.locale }}',
getCodeRecoveryUrl: '{{ path('my_recovery_get_code') }}',
recoveryConfirmCodeUrl: '{{ path('my_recovery_confirm_code') }}',
recoverySetPasswordUrl: '{{ path('my_recovery_set_password') }}',
messageRecoverySuccessTitle: '{{ 'app.message.recovery.success_title'|trans({}, 'core') }}',
messageRecoverySuccessText: '{{ 'app.message.recovery.success_text'|trans({}, 'core') }}',
messageLoginErrorPassword: '{{ 'app.message.login.error_password'|trans({}, 'core') }}',
messageLoginErrorEmail: '{{ 'app.message.login.error_email'|trans({}, 'core') }}',
profileUrl: '{{ path('my_about_car') }}',
});
});
app.loadJs('{{ asset('bundles/my/js/change-phone.js') }}', function () {
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') }}',
});
});
});
</script>
{% else %}
<script src=\"{{ asset('bundles/core/js/prod.core.js') }}\"></script>
<script type=\"text/javascript\">
window.app = new ViDiApp({
version: '{{ asset_version(asset('/bundles/core/js/prod.core.js')) }}',
message: {
templateUrl: '{{ path('core_message_load_template') }}',
text: {
btnCancel: '{{ 'app.message.cancel'|trans({},'core') }}',
}
},
http: {
requestErrorText: '{{ 'app.http.server_error'|trans({},'core') }}',
},
preLoader: {
templateUrl: '{{ path('core_preloader_load_template') }}',
preLoaderCss: '{{ asset('/bundles/core/css/preloader.css') }}',
},
authOptions: {
checkUrl: '{{ absolute_url(path('my_cross_domain_auth')) }}',
loginUrl: '{{ path('core_cross_domain_auth') }}',
},
leadForms: {
captchaUrl: '{{ path('base_capthcha_init') }}',
text: {
successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
},
href: {
buttonSuccess: null,
},
},
favoriteOptions: {
addUrl: '{{ path('portal_add_favl') }}',
removeUrl: '{{ path('portal_remove_favl') }}',
},
user: {
id: {% if app.user %}{{ app.user.id }}{% else %}false{% endif %},
name: {% if app.user %}'{{ app.user.fullName }}'{% else %}null{% endif %},
},
requiredJs: [
{
path: '{{ asset('/bundles/core/js/prod.cor.min.js') }}',
},
],
coreCss: [
'{{ asset('/bundles/core/css/core.prod.css') }}',
'{{ asset('/bundles/core/css/lead-form.css') }}',
],
});
app.onCustomEvent('appInit', function () {
app.loadJs('{{ asset('bundles/my/js/register.js') }}', function () {
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') }}',
loginCodeUrlA: '{{ path('core_register_code_login') }}',
refererUrl: {{ refererUrl is defined ? refererUrl|json_encode|raw : 'null' }},
messageRegisterSuccessTitle: '{{ 'app.message.register.success_title'|trans({},'core') }}',
messageRegisterSuccessText: '{{ 'app.message.register.success_text'|trans({},'core') }}',
messageLoginErrorEmail: '{{ 'app.message.login.error_email'|trans({}, 'core') }}'
});
});
app.loadJs('{{ asset('bundles/my/js/recovery.js') }}', function () {
initAuthRecovery({
locale: '{{ app.request.locale }}',
getCodeRecoveryUrl: '{{ path('my_recovery_get_code') }}',
recoveryConfirmCodeUrl: '{{ path('my_recovery_confirm_code') }}',
recoverySetPasswordUrl: '{{ path('my_recovery_set_password') }}',
messageRecoverySuccessTitle: '{{ 'app.message.recovery.success_title'|trans({}, 'core') }}',
messageRecoverySuccessText: '{{ 'app.message.recovery.success_text'|trans({}, 'core') }}',
messageLoginErrorPassword: '{{ 'app.message.login.error_password'|trans({}, 'core') }}',
messageLoginErrorEmail: '{{ 'app.message.login.error_email'|trans({}, 'core') }}',
profileUrl: '{{ path('my_about_car') }}',
});
});
app.loadJs('{{ asset('bundles/my/js/change-phone.js') }}', function () {
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') }}',
});
});
});
</script>
{% endif %}
{% endblock initJsApp %}
<script>
function isLoyaltySubdomain() {
return window.location.hostname.startsWith('loyalty.');
}
app.onCustomEvent('appInit', function () {
app.onCustomEvent('coreAuthInit', function () {
Auth.setOnLogoinCallback(function (user, token = null, url = null) {
if (url) {
window.location.href = url;
} else {
window.location.reload();
}
});
});
window.addEventListener(\"message\", function (e) {
if(e.data.dataType != 'crossAuth') {
return false;
}
if (isLoyaltySubdomain() || !e.isTrusted) {
return false;
}
// if(app.user.id && !e.data.token) {
// \$.ajax({
// url: '/logout-user',
// method: 'GET',
// xhrFields: {
// withCredentials: true
// },
// success: function (response) {
// window.location.reload();
// }
// });
// }
if (app.user.id) {
return false;
}
\$.ajax({
url: '{{ absolute_url(path('core_cross_domain_auth')) }}',
method: 'POST',
data: {token: e.data.token, rnew: 1},
xhrFields: {
withCredentials: true
},
success: function (response) {
if (response.success) {
window.location.reload();
}
}
});
});
});
</script>
{% block coreBottomJs %}
<script>
app.onCustomEvent('appInit', function () {
app.loadCss('{{ asset('/bundles/core/css/modules/core-modal/core-modal.css') }}');
app.loadCss('{{ asset('/bundles/core/css/modules/core-modal/modal-fw.css') }}');
});
</script>
{% endblock coreBottomJs %}
{% if app.user %}
<script type=\"text/javascript\">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({'user_id': {{ app.user.id }}});
</script>
{% endif %}
{% if helpCrunch is defined and dealer is defined and (dealer.id != 16 and dealer.id != 27 and dealer.id != 8) %}
<script type=\"text/javascript\">
window.helpcrunchSettings = {
organization: '{{ helpCrunch['organization'] }}',
appId: '{{ helpCrunch['appId'] }}',
};
</script>
<script type=\"text/javascript\">
(function(w,d){var hS=w.helpcrunchSettings;if(!hS||!hS.organization){return;}var widgetSrc='https://'+hS.organization+'.widget.helpcrunch.com/';w.HelpCrunch=function(){w.HelpCrunch.q.push(arguments)};w.HelpCrunch.q=[];function r(){if (d.querySelector('script[src=\"' + widgetSrc + '\"')) { return; }var s=d.createElement('script');s.async=1;s.type='text/javascript';s.src=widgetSrc;(d.body||d.head).appendChild(s);}if(d.readyState === 'complete'||hS.loadImmediately){r();} else if(w.attachEvent){w.attachEvent('onload',r)}else{w.addEventListener('load',r,false)}})(window, document)
</script>
{% endif %}
</body>
</html>
", "@Core/DCSite/core-dc-template.html.twig", "/var/www/vidi.ua/releases/251023-65bd7d10/src/CoreBundle/Resources/views/DCSite/core-dc-template.html.twig");
}
}