<?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;
/* @DcSite/Toyota/base.html.twig */
class __TwigTemplate_583f213e5c4af9bab06fa19a969c49b4 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->blocks = [
'head' => [$this, 'block_head'],
'seo' => [$this, 'block_seo'],
'socialPreview' => [$this, 'block_socialPreview'],
'body' => [$this, 'block_body'],
'content' => [$this, 'block_content'],
'css' => [$this, 'block_css'],
'coreBottomJs' => [$this, 'block_coreBottomJs'],
'pageJS' => [$this, 'block_pageJS'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@Core/DCSite/core-dc-template.html.twig";
}
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", "@DcSite/Toyota/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@DcSite/Toyota/base.html.twig"));
// line 2
$context["policyUrl"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("toyota_personal_data_policy");
// line 1
$this->parent = $this->load("@Core/DCSite/core-dc-template.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
/**
* @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 6
yield " <link rel=\"icon\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/favicon.ico"), "html", null, true);
yield "\" type=\"image/x-icon\"/>
<link rel=\"apple-touch-icon\" sizes=\"76x76\"
href=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/apple-touch-icon.png"), "html", null, true);
yield "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\"
href=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/favicon-32x32.png"), "html", null, true);
yield "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\"
href=\"";
// line 12
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/favicon-16x16.png"), "html", null, true);
yield "\">
<link rel=\"manifest\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/site.webmanifest"), "html", null, true);
yield "\">
<link rel=\"mask-icon\" href=\"";
// line 14
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/dcsite/img/toyota/favicon/safari-pinned-tab.svg"), "html", null, true);
yield "\" color=\"#da2728\">
<meta name=\"msapplication-TileColor\" content=\"#da2728\">
<meta name=\"theme-color\" content=\"#da2728\">
<meta name=\"dmca-site-verification\" content=\"MlgvM0V5b2lmbitDN1N5bHNqUmwrZz090\">
<meta name=\"facebook-domain-verification\" content=\"oiuuib78vzte2vdu28uxq9f5zycn0g\">
<meta name=\"google-site-verification\" content=\"gboUNadhhEyBztnrR7iBIU5BZf_sUV0rIuRsXq2bcH8\">
<meta name=\"google-site-verification\" content=\"XF69SDZL3figV8805mrNn-kE45qtxSP7CCEKliOYE1A\">
<link href=\"https://stats.g.doubleclick.net\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.facebook.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://connect.facebook.net\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google-analytics.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://maps.gstatic.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://accounts.google.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://maps.googleapis.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google.com.ua\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google.com\" rel=\"preconnect\" crossorigin>
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/";
// line 33
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.', 33, $this->source); })()), "html", null, true);
yield "/dcsite/toyota/fonts/ToyotaType-Regular.woff2\">
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/";
// line 35
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.', 35, $this->source); })()), "html", null, true);
yield "/dcsite/toyota/fonts/ToyotaType-Book.woff2\">
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/";
// line 37
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.', 37, $this->source); })()), "html", null, true);
yield "/dcsite/toyota/fonts/ToyotaType-Semibold.woff2\">
";
// line 39
yield from $this->unwrap()->yieldBlock('seo', $context, $blocks);
// line 43
yield " ";
yield from $this->load("@DcSite/Toyota/preloader-css.html.twig", 43)->unwrap()->yield($context);
// line 44
yield "
";
// line 45
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.', 45, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 46
yield " ";
yield from $this->load("@DcSite/Modules/google-tag-manager.html.twig", 46)->unwrap()->yield(CoreExtension::merge($context, ["domain" => 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.', 46, $this->source); })()), "domain", [], "any", false, false, false, 46), "gtmIdCode" => "GTM-N4CWV9G"]));
// line 47
yield " ";
}
// line 48
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_seo(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", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 40
yield " <title>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("base.seo.title", [], "dc_toyota"), "html", null, true);
yield "</title>
<meta name=\"description\" content=\"";
// line 41
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("base.seo.description", [], "dc_toyota"), "html", null, true);
yield "\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 51
/**
* @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 54
/**
* @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"));
// line 55
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.', 55, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 56
yield " <!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-N4CWV9G\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
}
// line 61
yield " <div class=\"h-100\">
<div class=\"scroll__model__line\">
";
// line 63
yield from $this->load("@DcSite/Toyota/header.html.twig", 63)->unwrap()->yield($context);
// line 64
yield "
";
// line 65
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 67
yield "
";
// line 68
yield from $this->load("@DcSite/Toyota/leads.html.twig", 68)->unwrap()->yield($context);
// line 69
yield " ";
yield from $this->load("@DcSite/Toyota/footer-new.html.twig", 69)->unwrap()->yield($context);
// line 70
yield " ";
yield from $this->load("@DcSite/Modules/callback/widget.html.twig", 70)->unwrap()->yield($context);
// line 71
yield " ";
yield from $this->load("@DcSite/Modules/feedback-popup.html.twig", 71)->unwrap()->yield($context);
// line 72
yield "
</div>
</div>
";
// line 76
yield from $this->unwrap()->yieldBlock('css', $context, $blocks);
// line 78
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 65
/**
* @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 66
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 76
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_css(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", "css"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 77
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 81
/**
* @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 82
yield " <script>
app.onCustomEvent('coreCssLoaded', function () {
\$('#preloader').hide();
});
app.onCustomEvent('appInit', function () {
app.leadForms.setSuccessTitle(\"";
// line 87
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("forms.success.title", [], "dc_toyota"), "html", null, true);
yield "\");
app.leadForms.setSuccessButtonHref(null);
app.leadForms.setButtonText(\"";
// line 89
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 "\");
";
// line 91
yield " app.leadForms.setSuccessText(\"";
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 "\");
app.loadCss('";
// line 92
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/dcsite/css/toyota/style.css"), "html", null, true);
yield "');
app.loadCss('";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/dcsite/css/toyota/modules/lead-magnets.css"), "html", null, true);
yield "');
app.loadCss('";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/dcsite/css/modules/callback/timer-call.css"), "html", null, true);
yield "');
\$('.dropdown-menu').on('click', function (e) {
if (\$(this).hasClass('dropdown-menu-open')) {
e.stopPropagation();
}
});
\$(window).scroll(function () {
\$('#mainMenu').toggleClass('scroll_class-menu', \$(this).scrollTop() > 50);
});
var menuisInit = false;
\$(\"#dropCars\").click(function () {
\$(\"#carMenu\").toggleClass('m-close');
if (!menuisInit) {
menuisInit = true;
\$('#mainCarMenu img').each(function (index, element) {
if (element.getAttribute('menu-data-src')) {
element.setAttribute('src', element.getAttribute('menu-data-src'));
element.style.visibility = 'visible';
}
});
}
});
";
// line 122
yield " ";
// line 123
yield " ";
// line 124
yield " ";
// line 125
yield " ";
// line 126
yield "
app.loadJs('/bundles/dcsite/js/modules/callback/callback-vue.js', function () {
callbackRequest({
initUrl: '";
// line 129
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_init");
yield "',
createUrl: '";
// line 130
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_create_request");
yield "',
getStateUrl: '";
// line 131
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("callback_widget_get_state");
yield "',
privacyUrl: '";
// line 132
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["privacyUrl"]) || array_key_exists("privacyUrl", $context) ? $context["privacyUrl"] : (function () { throw new RuntimeError('Variable "privacyUrl" does not exist.', 132, $this->source); })()), "html", null, true);
yield "',
callBackMinute: '";
// line 133
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("callback_widget.title", [], "dc_base");
yield "',
callBackWorkingHours: '";
// line 134
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 "',
});
});
\$('.js-scroll-link').click(function (e) {
e.preventDefault();
var blockId = \$(this).attr('href');
\$('html, body').stop().animate({
scrollTop: \$(blockId).offset().top - 50
}, 750);
});
});
setTimeout(function () {
let script = document.createElement('script');
script.src = '";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("https://images.dmca.com/Badges/DMCABadgeHelper.min.js"), "html", null, true);
yield "';
script.async = true;
document.body.appendChild(script);
}, 1000);
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"WebSite\",
\"name\": \"";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 161, $this->source); })()), "brand", [], "any", false, false, false, 161), "name", [], "any", false, false, false, 161), "html", null, true);
yield "\",
\"url\": \"";
// line 162
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.', 162, $this->source); })()), "request", [], "any", false, false, false, 162), "uri", [], "any", false, false, false, 162), "html", null, true);
yield "\"
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"AutoDealer\",
\"name\": \"";
// line 171
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 171, $this->source); })()), "brand", [], "any", false, false, false, 171), "name", [], "any", false, false, false, 171), "html", null, true);
yield "\",
\"image\": \"https://toyota-ua.com/bundles/dcsite/img/toyota/logo-toyota.png\",
\"url\": \"";
// line 173
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.', 173, $this->source); })()), "request", [], "any", false, false, false, 173), "uri", [], "any", false, false, false, 173), "html", null, true);
yield "\",
\"telephone\": \"";
// line 174
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.', 174, $this->source); })()), "phone", [], "any", false, false, false, 174), "html", null, true);
yield "\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \" ";
// line 177
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.', 177, $this->source); })()), "addressUa", [], "any", false, false, false, 177), "html", null, true);
yield "\",
\"addressLocality\": \"Київ\"
},
\"sameAs\": [
\"";
// line 181
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.', 181, $this->source); })()), "linkFacebook", [], "any", false, false, false, 181), "html", null, true);
yield "\",
\"";
// line 182
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.', 182, $this->source); })()), "linkInstagram", [], "any", false, false, false, 182), "html", null, true);
yield "\",
\"";
// line 183
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.', 183, $this->source); })()), "linkYoutube", [], "any", false, false, false, 183), "html", null, true);
yield "\"
]
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Organization\",
\"url\": \"";
// line 194
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.', 194, $this->source); })()), "request", [], "any", false, false, false, 194), "uri", [], "any", false, false, false, 194), "html", null, true);
yield "\",
\"logo\": \"https://toyota-ua.com/bundles/dcsite/img/toyota/logo-toyota.png\"
}
</script>
";
// line 199
yield from $this->unwrap()->yieldBlock('pageJS', $context, $blocks);
// line 202
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 199
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_pageJS(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", "pageJS"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageJS"));
// line 200
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@DcSite/Toyota/base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 577 => 200, 564 => 199, 552 => 202, 550 => 199, 542 => 194, 528 => 183, 524 => 182, 520 => 181, 513 => 177, 507 => 174, 503 => 173, 498 => 171, 486 => 162, 482 => 161, 468 => 150, 449 => 134, 445 => 133, 441 => 132, 437 => 131, 433 => 130, 429 => 129, 424 => 126, 422 => 125, 420 => 124, 418 => 123, 416 => 122, 386 => 94, 382 => 93, 378 => 92, 373 => 91, 369 => 89, 364 => 87, 357 => 82, 344 => 81, 333 => 77, 320 => 76, 309 => 66, 296 => 65, 284 => 78, 282 => 76, 276 => 72, 273 => 71, 270 => 70, 267 => 69, 265 => 68, 262 => 67, 260 => 65, 257 => 64, 255 => 63, 251 => 61, 244 => 56, 241 => 55, 228 => 54, 206 => 51, 193 => 41, 188 => 40, 175 => 39, 163 => 48, 160 => 47, 157 => 46, 155 => 45, 152 => 44, 149 => 43, 147 => 39, 142 => 37, 137 => 35, 132 => 33, 110 => 14, 106 => 13, 102 => 12, 97 => 10, 92 => 8, 86 => 6, 73 => 5, 62 => 1, 60 => 2, 47 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@Core/DCSite/core-dc-template.html.twig' %}
{% set policyUrl = path('toyota_personal_data_policy') %}
{% block head %}
<link rel=\"icon\" href=\"{{ asset('bundles/dcsite/img/toyota/favicon/favicon.ico') }}\" type=\"image/x-icon\"/>
<link rel=\"apple-touch-icon\" sizes=\"76x76\"
href=\"{{ asset('bundles/dcsite/img/toyota/favicon/apple-touch-icon.png') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\"
href=\"{{ asset('bundles/dcsite/img/toyota/favicon/favicon-32x32.png') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\"
href=\"{{ asset('bundles/dcsite/img/toyota/favicon/favicon-16x16.png') }}\">
<link rel=\"manifest\" href=\"{{ asset('bundles/dcsite/img/toyota/favicon/site.webmanifest') }}\">
<link rel=\"mask-icon\" href=\"{{ asset('bundles/dcsite/img/toyota/favicon/safari-pinned-tab.svg') }}\" color=\"#da2728\">
<meta name=\"msapplication-TileColor\" content=\"#da2728\">
<meta name=\"theme-color\" content=\"#da2728\">
<meta name=\"dmca-site-verification\" content=\"MlgvM0V5b2lmbitDN1N5bHNqUmwrZz090\">
<meta name=\"facebook-domain-verification\" content=\"oiuuib78vzte2vdu28uxq9f5zycn0g\">
<meta name=\"google-site-verification\" content=\"gboUNadhhEyBztnrR7iBIU5BZf_sUV0rIuRsXq2bcH8\">
<meta name=\"google-site-verification\" content=\"XF69SDZL3figV8805mrNn-kE45qtxSP7CCEKliOYE1A\">
<link href=\"https://stats.g.doubleclick.net\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.facebook.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://connect.facebook.net\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google-analytics.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://maps.gstatic.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://accounts.google.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://maps.googleapis.com\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google.com.ua\" rel=\"preconnect\" crossorigin>
<link href=\"https://www.google.com\" rel=\"preconnect\" crossorigin>
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/{{ MODE }}/dcsite/toyota/fonts/ToyotaType-Regular.woff2\">
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/{{ MODE }}/dcsite/toyota/fonts/ToyotaType-Book.woff2\">
<link rel=\"preload\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"
href=\"/dist/{{ MODE }}/dcsite/toyota/fonts/ToyotaType-Semibold.woff2\">
{% block seo %}
<title>{{ 'base.seo.title'|trans({}, 'dc_toyota') }}</title>
<meta name=\"description\" content=\"{{ 'base.seo.description'|trans({}, 'dc_toyota') }}\"/>
{% endblock seo %}
{% include '@DcSite/Toyota/preloader-css.html.twig' %}
{% if INCLUDE_ANALYTICS %}
{% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-N4CWV9G' } %}
{% endif %}
{% endblock head %}
{% block socialPreview %}
{% endblock socialPreview %}
{% block body %}
{% if INCLUDE_ANALYTICS %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-N4CWV9G\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
<div class=\"h-100\">
<div class=\"scroll__model__line\">
{% include '@DcSite/Toyota/header.html.twig' %}
{% block content %}
{% endblock content %}
{% include '@DcSite/Toyota/leads.html.twig' %}
{% include '@DcSite/Toyota/footer-new.html.twig' %}
{% include '@DcSite/Modules/callback/widget.html.twig' %}
{% include '@DcSite/Modules/feedback-popup.html.twig' %}
</div>
</div>
{% block css %}
{% endblock %}
{% endblock body %}
{% block coreBottomJs %}
<script>
app.onCustomEvent('coreCssLoaded', function () {
\$('#preloader').hide();
});
app.onCustomEvent('appInit', function () {
app.leadForms.setSuccessTitle(\"{{ 'forms.success.title'|trans({},'dc_toyota') }}\");
app.leadForms.setSuccessButtonHref(null);
app.leadForms.setButtonText(\"{{ 'pages.base.ok'|trans({}, 'dc_base') }}\");
{#app.leadForms.setSuccessText(\"{{ 'forms.success.message'|trans({'%url%': url('toyota_about_contacts') },'dc_toyota')|raw }}\");#}
app.leadForms.setSuccessText(\"{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}\");
app.loadCss('{{ asset('/bundles/dcsite/css/toyota/style.css') }}');
app.loadCss('{{ asset('/bundles/dcsite/css/toyota/modules/lead-magnets.css') }}');
app.loadCss('{{ asset('/bundles/dcsite/css/modules/callback/timer-call.css') }}');
\$('.dropdown-menu').on('click', function (e) {
if (\$(this).hasClass('dropdown-menu-open')) {
e.stopPropagation();
}
});
\$(window).scroll(function () {
\$('#mainMenu').toggleClass('scroll_class-menu', \$(this).scrollTop() > 50);
});
var menuisInit = false;
\$(\"#dropCars\").click(function () {
\$(\"#carMenu\").toggleClass('m-close');
if (!menuisInit) {
menuisInit = true;
\$('#mainCarMenu img').each(function (index, element) {
if (element.getAttribute('menu-data-src')) {
element.setAttribute('src', element.getAttribute('menu-data-src'));
element.style.visibility = 'visible';
}
});
}
});
{#app.loadJs('{{ asset('bundles/my/js/cookies-warning.js') }}', function () {#}
{# initCookiesWarning({#}
{# policyUrl: \"{{ privacyUrl }}\",#}
{# });#}
{#});#}
app.loadJs('/bundles/dcsite/js/modules/callback/callback-vue.js', function () {
callbackRequest({
initUrl: '{{ path('callback_widget_init') }}',
createUrl: '{{ path('callback_widget_create_request') }}',
getStateUrl: '{{ path('callback_widget_get_state') }}',
privacyUrl: '{{ privacyUrl }}',
callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}',
});
});
\$('.js-scroll-link').click(function (e) {
e.preventDefault();
var blockId = \$(this).attr('href');
\$('html, body').stop().animate({
scrollTop: \$(blockId).offset().top - 50
}, 750);
});
});
setTimeout(function () {
let script = document.createElement('script');
script.src = '{{ asset('https://images.dmca.com/Badges/DMCABadgeHelper.min.js') }}';
script.async = true;
document.body.appendChild(script);
}, 1000);
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org/\",
\"@type\": \"WebSite\",
\"name\": \"{{ dealer.brand.name }}\",
\"url\": \"{{ app.request.uri }}\"
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"AutoDealer\",
\"name\": \"{{ dealer.brand.name }}\",
\"image\": \"https://toyota-ua.com/bundles/dcsite/img/toyota/logo-toyota.png\",
\"url\": \"{{ app.request.uri }}\",
\"telephone\": \"{{ dealer.phone }}\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \" {{ dealer.addressUa }}\",
\"addressLocality\": \"Київ\"
},
\"sameAs\": [
\"{{ dealer.linkFacebook }}\",
\"{{ dealer.linkInstagram }}\",
\"{{ dealer.linkYoutube }}\"
]
}
</script>
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"Organization\",
\"url\": \"{{ app.request.uri }}\",
\"logo\": \"https://toyota-ua.com/bundles/dcsite/img/toyota/logo-toyota.png\"
}
</script>
{% block pageJS %}
{% endblock pageJS %}
{% endblock coreBottomJs %}
", "@DcSite/Toyota/base.html.twig", "/var/www/vidi.ua/releases/251030-0548d202/src/DcSiteBundle/Resources/views/Toyota/base.html.twig");
}
}