<?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/Nissan/Car/cars-in-stock-card.html.twig */
class __TwigTemplate_0b37eede40ee62c0e1fff72b5cf6ffd7 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'],
'ogtagDynamicImage' => [$this, 'block_ogtagDynamicImage'],
'ogtagDynamic' => [$this, 'block_ogtagDynamic'],
'socialPreview' => [$this, 'block_socialPreview'],
'content' => [$this, 'block_content'],
'script' => [$this, 'block_script'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@DcSite/Nissan/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/Nissan/Car/cars-in-stock-card.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/Nissan/Car/cars-in-stock-card.html.twig"));
$this->parent = $this->load("@DcSite/Nissan/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 3
/**
* @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 4
yield "\t<title>
\t\t";
// line 5
if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 5, $this->source); })()), "seoTitle", [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.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "locale", [], "any", false, false, false, 5)], "method", false, false, false, 5))) {
// line 6
yield "\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 6, $this->source); })()), "seoTitle", [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.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6)], "method", false, false, false, 6), "html", null, true);
yield "
\t\t";
} else {
// line 8
yield "\t\t\t";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("car.car_in_stock.seo.title", ["%car%" => CoreExtension::getAttribute($this->env, $this->source, // line 9
(isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 9, $this->source); })()), "fullName", [], "any", false, false, false, 9), "%year%" => CoreExtension::getAttribute($this->env, $this->source, // line 10
(isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 10, $this->source); })()), "year", [], "any", false, false, false, 10), "%transmission%" => CoreExtension::getAttribute($this->env, $this->source, // line 11
(isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 11, $this->source); })()), "transmissionTypeName", [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.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "locale", [], "any", false, false, false, 11)], "method", false, false, false, 11), "%fuel%" => CoreExtension::getAttribute($this->env, $this->source, // line 12
(isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 12, $this->source); })()), "fuelTypeName", [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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "locale", [], "any", false, false, false, 12)], "method", false, false, false, 12), "%dealer%" => CoreExtension::getAttribute($this->env, $this->source, // line 13
(isset($context["dealer"]) || array_key_exists("dealer", $context) ? $context["dealer"] : (function () { throw new RuntimeError('Variable "dealer" does not exist.', 13, $this->source); })()), "nameByLocale", [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.', 13, $this->source); })()), "request", [], "any", false, false, false, 13), "locale", [], "any", false, false, false, 13)], "method", false, false, false, 13), "%volume%" => CoreExtension::getAttribute($this->env, $this->source, // line 14
(isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 14, $this->source); })()), "getEngineVolume", [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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "locale", [], "any", false, false, false, 14)], "method", false, false, false, 14)], "dc_base");
// line 15
yield "
\t\t";
}
// line 17
yield "\t</title>
\t<meta name=\"description\" content=\"";
// line 19
if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "seoDescription", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "seoDescription", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19), "html", null, true);
yield " ";
} else {
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("car.car_in_stock.seo.description", ["%brand%" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "model", [], "any", false, false, false, 19), "brand", [], "any", false, false, false, 19), "%car%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "fullName", [], "any", false, false, false, 19), "%year%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "year", [], "any", false, false, false, 19), "%transmission%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "transmissionTypeName", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19), "%fuel%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "fuelTypeName", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19), "%dealer%" => 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.', 19, $this->source); })()), "nameByLocale", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19), "%volume%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 19, $this->source); })()), "getEngineVolume", [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.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "locale", [], "any", false, false, false, 19)], "method", false, false, false, 19)], "dc_base");
yield " ";
}
yield "\"/>
\t";
// line 21
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 21, $this->source); })()), "seoKeywords", [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.', 21, $this->source); })()), "request", [], "any", false, false, false, 21), "locale", [], "any", false, false, false, 21)], "method", false, false, false, 21)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 22
yield "\t\t<meta name=\"keywords\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 22, $this->source); })()), "seoKeywords", [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.', 22, $this->source); })()), "request", [], "any", false, false, false, 22), "locale", [], "any", false, false, false, 22)], "method", false, false, false, 22), "html", null, true);
yield "\"/>
\t";
}
// line 24
yield "\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["MODE"]) || array_key_exists("MODE", $context) ? $context["MODE"] : (function () { throw new RuntimeError('Variable "MODE" does not exist.', 24, $this->source); })()), "html", null, true);
yield "/dcsite/nissan/css/nissanInStockCard.css?";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION", $context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.', 24, $this->source); })()), "html", null, true);
yield "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 29
/**
* @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 30
yield "\t<meta property=\"og:image\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['DcSiteBundle\Twig\TwigDcExtension']->mediaURL(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 30, $this->source); })()), "preview", [], "any", false, false, false, 30), "small_in_stock")), "html", null, true);
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_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 34
yield "\t<meta property=\"og:title\" content=\"";
if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "seoTitle", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "seoTitle", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34), "html", null, true);
yield " ";
} else {
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("car.car_in_stock.seo.title", ["%car%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "fullName", [], "any", false, false, false, 34), "%year%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "year", [], "any", false, false, false, 34), "%transmission%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "transmissionTypeName", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34), "%fuel%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "fuelTypeName", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34), "%dealer%" => 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.', 34, $this->source); })()), "nameByLocale", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34), "%volume%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 34, $this->source); })()), "getEngineVolume", [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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "locale", [], "any", false, false, false, 34)], "method", false, false, false, 34)], "dc_base");
yield " ";
}
yield "\"/>
\t<meta property=\"og:description\" content=\"";
// line 35
if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "seoDescription", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35))) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "seoDescription", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35), "html", null, true);
yield " ";
} else {
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("car.car_in_stock.seo.description", ["%brand%" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "model", [], "any", false, false, false, 35), "brand", [], "any", false, false, false, 35), "%car%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "fullName", [], "any", false, false, false, 35), "%year%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "year", [], "any", false, false, false, 35), "%transmission%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "transmissionTypeName", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35), "%fuel%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "fuelTypeName", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35), "%dealer%" => 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.', 35, $this->source); })()), "nameByLocale", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35), "%volume%" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 35, $this->source); })()), "getEngineVolume", [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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "locale", [], "any", false, false, false, 35)], "method", false, false, false, 35)], "dc_base");
yield " ";
}
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_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"));
// line 40
yield "\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['DcSiteBundle\Twig\TwigDcExtension']->mediaURL(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 40, $this->source); })()), "preview", [], "any", false, false, false, 40), "small_in_stock")), "html", null, true);
yield "\" class=\"d-none\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 43
/**
* @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 44
yield "
\t<div style=\"display: none\" class=\"breadcrumbs__shadow\">
\t\t<section class=\"breadcrumbs__new\">
\t\t\t<div class=\"container\">
\t\t\t\t<ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
\t\t\t\t\t<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
\t\t\t\t\t\t<a itemprop=\"item\" href=\"";
// line 50
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nissan_homepage");
yield "\">
\t\t\t\t\t\t\t<span class=\"breadcrumbs__link\" itemprop=\"name\">NISSAN</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<meta itemprop=\"position\" content=\"1\"/>
\t\t\t\t\t</li>
\t\t\t\t\t<div class=\"arrow-bcs\">
\t\t\t\t\t\t❯</div>
\t\t\t\t\t<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
\t\t\t\t\t\t<a itemprop=\"item\" href=\"";
// line 59
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nissan_car_stock");
yield "\">
\t\t\t\t\t\t\t<span class=\"breadcrumbs__link\" itemprop=\"name\">";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 60, $this->source); })()), "fullName", [], "any", false, false, false, 60), "html", null, true);
yield "</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<meta itemprop=\"position\" content=\"2\"/>
\t\t\t\t\t</li>
\t\t\t\t</ol>
\t\t\t</div>
\t\t</section>
\t</div>
\t<section class=\"title-breadcrumbs\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-12 col-lg-12\">
\t\t\t\t\t<div class=\"vidi_breadcrumbs\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<a href=\"";
// line 75
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nissan_homepage");
yield "\">
\t\t\t\t\t\t\t\t<span>";
// line 76
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.breadcrumbs.main", [], "dc_nissan"), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span class=\"bc_sep\">
\t\t\t\t\t\t\t→
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<a href=\"";
// line 83
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nissan_car_stock");
yield "\">
\t\t\t\t\t\t\t\t<span>";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("pages.base.in_stock", [], "dc_base"), "html", null, true);
yield "</span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span class=\"bc_sep\">
\t\t\t\t\t\t\t→
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<span class=\"last-breadcrumbs\">";
// line 91
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 91, $this->source); })()), "fullName", [], "any", false, false, false, 91), "html", null, true);
yield "</span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t";
// line 100
yield from $this->load("@DcSite/Modules/car-in-stock/index.html.twig", 100)->unwrap()->yield(CoreExtension::merge($context, ["tdPath" => "nissan_service_consultation", "newCreditCalc" => true]));
// line 101
yield "
\t";
// line 102
yield from $this->load("@DcSite/Modules/buy-instock-car-popup.html.twig", 102)->unwrap()->yield(CoreExtension::merge($context, ["actPath" => "form_buy_in_stock", "model" => (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 102, $this->source); })())]));
// line 103
yield "
\t";
// line 105
yield from $this->load("@DcSite/Modules/call-me-popup.html.twig", 105)->unwrap()->yield(CoreExtension::merge($context, ["route" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form_call_me", ["formType" => 4])]));
// line 108
yield "
\t";
// line 109
yield from $this->load("@DcSite/Modules/sps-popup-credit.html.twig", 109)->unwrap()->yield(CoreExtension::merge($context, ["homePage" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nissan_homepage")]));
// line 110
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 114
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_script(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "script"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "script"));
// line 115
yield " <script src=\"/dist/";
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.', 115, $this->source); })()), "html", null, true);
yield "/dcsite/nissan/js/nissanInStockCard.js?";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["VERSION"]) || array_key_exists("VERSION", $context) ? $context["VERSION"] : (function () { throw new RuntimeError('Variable "VERSION" does not exist.', 115, $this->source); })()), "html", null, true);
yield "\"></script>
<script type=\"application/ld+json\">
";
// line 118
yield (isset($context["structuredCarData"]) || array_key_exists("structuredCarData", $context) ? $context["structuredCarData"] : (function () { throw new RuntimeError('Variable "structuredCarData" does not exist.', 118, $this->source); })());
yield "
</script>
<script>
\$(() => {
window.initCredit({
cretidTpl: '";
// line 123
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_load_tpl");
yield "',
initUrl: '";
// line 124
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_init");
yield "',
brandUrl: '";
// line 125
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_load_brands");
yield "',
byDealerUrl: '";
// line 126
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_init_by_dealer");
yield "',
programsUrl: '";
// line 127
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_programs");
yield "',
saveUrl: '";
// line 128
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_save");
yield "',
privacyUrl: '";
// line 129
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.', 129, $this->source); })()), "html", null, true);
yield "',
disableCarChange: true,
dealer: ";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 131, $this->source); })()), "vehicle", [], "any", false, false, false, 131), "dealer", [], "any", false, false, false, 131), "id", [], "any", false, false, false, 131), "html", null, true);
yield ",
carId: ";
// line 132
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 132, $this->source); })()), "vehicle", [], "any", false, false, false, 132), "id", [], "any", false, false, false, 132), "html", null, true);
yield ",
variationId: ";
// line 133
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 133, $this->source); })()), "vehicleItemId", [], "any", false, false, false, 133), "html", null, true);
yield "
});
window.initTradeIn({
initUrl: '";
// line 136
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_ti_init");
yield "',
dealer: ";
// line 137
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 137, $this->source); })()), "vehicle", [], "any", false, false, false, 137), "dealer", [], "any", false, false, false, 137), "id", [], "any", false, false, false, 137), "html", null, true);
yield ",
carId: ";
// line 138
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 138, $this->source); })()), "vehicle", [], "any", false, false, false, 138), "id", [], "any", false, false, false, 138), "html", null, true);
yield ",
variationId: ";
// line 139
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 139, $this->source); })()), "vehicleItemId", [], "any", false, false, false, 139), "html", null, true);
yield ",
agreementUrl: '";
// line 140
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.', 140, $this->source); })()), "html", null, true);
yield "',
});
window.initCasco({
initUrl : '";
// line 143
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_casco_init");
yield "',
initByDealerUrl : '";
// line 144
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_casco_init_by_dealer");
yield "',
optionsUrl : '";
// line 145
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_casco_options");
yield "',
formUrl : '";
// line 146
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_casco_save_form");
yield "',
privacyUrl: '";
// line 147
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.', 147, $this->source); })()), "html", null, true);
yield "',
dealer: ";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 148, $this->source); })()), "vehicle", [], "any", false, false, false, 148), "dealer", [], "any", false, false, false, 148), "id", [], "any", false, false, false, 148), "html", null, true);
yield ",
carId: ";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 149, $this->source); })()), "vehicle", [], "any", false, false, false, 149), "id", [], "any", false, false, false, 149), "html", null, true);
yield ",
variationId: ";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 150, $this->source); })()), "vehicleItemId", [], "any", false, false, false, 150), "html", null, true);
yield ",
disableCarChange: true
});
const obj = new dcsite.nissanInStockCard.CreditInStock();
obj.initCreditCalcInStock({
getVehicleBrandUrl: '";
// line 157
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_find_brand");
yield "',
getVehicleModelUrl: '";
// line 158
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_find_model");
yield "',
getVehicleEquipmentUrl: '";
// line 159
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_find_equipment");
yield "',
getVehicleVariationUrl: '";
// line 160
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_find_variation");
yield "',
getVehicleUrl: '";
// line 161
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_get_vehicle");
yield "',
initCreditCalcUrl: '";
// line 162
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_finance_credit_init");
yield "',
initTradeInUrl: '";
// line 163
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_ti_init");
yield "',
agreementUrl: '";
// line 164
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("automarket_personal_data_agreement");
yield "',
loadListDocumentUrl: '";
// line 165
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_load_documents");
yield "',
schedulePaymentUrl: '";
// line 166
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_load_schedule_credit_pdf");
yield "',
getVehiclesByWalletUrl: '";
// line 167
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_finance_credit_by_price");
yield "',
getVehiclesWithMinPriceUrl: '";
// line 168
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_finance_credit_by_price_min");
yield "',
getCrmUUIDUrl: '";
// line 169
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_finance_crm_lead_by_uuid");
yield "',
getCrmDataUrl: '";
// line 170
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_finance_crm_create_lead");
yield "',
sendLeadUrl: '";
// line 171
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dc_credit_save");
yield "',
ks: '";
// line 172
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalog.k_s", [], "portal_base"), "html", null, true);
yield "',
enginePower: '";
// line 173
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cars.engine", [], "portal_base"), "html", null, true);
yield "',
translate_month: '";
// line 174
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.credit_month_short", [], "portal_base"), "html", null, true);
yield "',
translate_under: '";
// line 175
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.credit_under", [], "portal_base"), "html", null, true);
yield "',
translate_first_payment: '";
// line 176
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.first_give", [], "portal_base"), "html", null, true);
yield "',
translate_uah: ' грн',
translate_not_enough_money: '";
// line 178
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.not_enough_money", [], "portal_base"), "html", null, true);
yield "',
translate_not_estimate_vehicle: '";
// line 179
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.not_estimate_vehicle", [], "portal_base"), "html", null, true);
yield "',
translate_min_first_payment_for_car: '";
// line 180
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.min_first_payment_for_car", [], "portal_base"), "html", null, true);
yield "',
translate_estimate_vehicle_more_1: '";
// line 181
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.translate_estimate_vehicle_more_1", [], "portal_base"), "html", null, true);
yield "',
translate_estimate_vehicle_more_2: '";
// line 182
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.translate_estimate_vehicle_more_2", [], "portal_base"), "html", null, true);
yield "',
translate_unfortunately_not_enough: '";
// line 183
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.unfortunately_not_enough", [], "portal_base"), "html", null, true);
yield "',
translate_price_of_your_car: '";
// line 184
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.price_of_your_car", [], "portal_base"), "html", null, true);
yield "',
translate_min: '";
// line 185
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.min", [], "portal_base"), "html", null, true);
yield "',
translate_min_first_payment: '";
// line 186
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.min_first_payment", [], "portal_base"), "html", null, true);
yield "',
translate_min_month_payment: '";
// line 187
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.min_month_payment", [], "portal_base"), "html", null, true);
yield "',
translate_month_term_credit: '";
// line 188
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.month_term_credit", [], "portal_base"), "html", null, true);
yield "',
continue_first_least: '";
// line 189
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.continue_first_least", [], "portal_base"), "html", null, true);
yield "',
translate_term_months: '";
// line 190
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.term_months", [], "portal_base"), "html", null, true);
yield "',
translate_term_months_short: '";
// line 191
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.term_months_short", [], "portal_base"), "html", null, true);
yield "',
translate_price_from: '";
// line 192
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("finance.credit.price_from", [], "portal_base"), "html", null, true);
yield "',
privacyUrl: '";
// line 193
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.', 193, $this->source); })()), "html", null, true);
yield "',
name: '";
// line 194
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 194), "name", [], "any", true, true, false, 194)) ? (Twig\Extension\CoreExtension::default(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); })()), "user", [], "any", false, false, false, 194), "name", [], "any", false, false, false, 194), null)) : (null)), "html", null, true);
yield "',
phone: '";
// line 195
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 195), "phone", [], "any", true, true, false, 195)) ? (Twig\Extension\CoreExtension::default(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.', 195, $this->source); })()), "user", [], "any", false, false, false, 195), "phone", [], "any", false, false, false, 195), null)) : (null)), "html", null, true);
yield "',
unsetUsedTypeVehicle: true,
unsetFlow2: true,
newCarUrl: 'nissan_card_car',
usedCarUrl: '',
brand_id: ";
// line 200
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 200, $this->source); })()), "brand", [], "any", false, false, false, 200), "id", [], "any", false, false, false, 200), "html", null, true);
yield ",
dealer_id: ";
// line 201
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 201, $this->source); })()), "dealer", [], "any", false, false, false, 201), "id", [], "any", false, false, false, 201), "html", null, true);
yield ",
model_id: ";
// line 202
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 202, $this->source); })()), "model", [], "any", false, false, false, 202), "id", [], "any", false, false, false, 202), "html", null, true);
yield ",
inStockId: ";
// line 203
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 203, $this->source); })()), "id", [], "any", false, false, false, 203), "html", null, true);
yield ",
vehicleItemId: ";
// line 204
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 204, $this->source); })()), "vehicleItemId", [], "any", false, false, false, 204), "html", null, true);
yield ",
vehicleId: '";
// line 205
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["model"]) || array_key_exists("model", $context) ? $context["model"] : (function () { throw new RuntimeError('Variable "model" does not exist.', 205, $this->source); })()), "vehicle", [], "any", false, false, false, 205), "id", [], "any", false, false, false, 205), "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 "@DcSite/Nissan/Car/cars-in-stock-card.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 685 => 205, 681 => 204, 677 => 203, 673 => 202, 669 => 201, 665 => 200, 657 => 195, 653 => 194, 649 => 193, 645 => 192, 641 => 191, 637 => 190, 633 => 189, 629 => 188, 625 => 187, 621 => 186, 617 => 185, 613 => 184, 609 => 183, 605 => 182, 601 => 181, 597 => 180, 593 => 179, 589 => 178, 584 => 176, 580 => 175, 576 => 174, 572 => 173, 568 => 172, 564 => 171, 560 => 170, 556 => 169, 552 => 168, 548 => 167, 544 => 166, 540 => 165, 536 => 164, 532 => 163, 528 => 162, 524 => 161, 520 => 160, 516 => 159, 512 => 158, 508 => 157, 498 => 150, 494 => 149, 490 => 148, 486 => 147, 482 => 146, 478 => 145, 474 => 144, 470 => 143, 464 => 140, 460 => 139, 456 => 138, 452 => 137, 448 => 136, 442 => 133, 438 => 132, 434 => 131, 429 => 129, 425 => 128, 421 => 127, 417 => 126, 413 => 125, 409 => 124, 405 => 123, 397 => 118, 388 => 115, 375 => 114, 363 => 110, 361 => 109, 358 => 108, 356 => 105, 352 => 103, 350 => 102, 347 => 101, 345 => 100, 333 => 91, 323 => 84, 319 => 83, 309 => 76, 305 => 75, 287 => 60, 283 => 59, 271 => 50, 263 => 44, 250 => 43, 236 => 40, 223 => 39, 201 => 35, 188 => 34, 175 => 33, 161 => 30, 148 => 29, 130 => 24, 124 => 22, 122 => 21, 109 => 19, 105 => 17, 101 => 15, 99 => 14, 98 => 13, 97 => 12, 96 => 11, 95 => 10, 94 => 9, 92 => 8, 86 => 6, 84 => 5, 81 => 4, 68 => 3, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends '@DcSite/Nissan/template.html.twig' %}
{% block head %}
\t<title>
\t\t{% if model.seoTitle(app.request.locale) is empty %}
\t\t\t{{ model.seoTitle(app.request.locale) }}
\t\t{% else %}
\t\t\t{{ 'car.car_in_stock.seo.title'|trans({
'%car%' : model.fullName,
'%year%' : model.year,
'%transmission%' : model.transmissionTypeName(app.request.locale),
'%fuel%' : model.fuelTypeName(app.request.locale),
'%dealer%' : dealer.nameByLocale(app.request.locale),
'%volume%' : model.getEngineVolume(app.request.locale)
}, 'dc_base')|raw }}
\t\t{% endif %}
\t</title>
\t<meta name=\"description\" content=\"{% if model.seoDescription(app.request.locale) is empty %} {{ model.seoDescription(app.request.locale) }} {% else %} {{ 'car.car_in_stock.seo.description'|trans({ '%brand%' : model.model.brand, '%car%' : model.fullName, '%year%' : model.year, '%transmission%' : model.transmissionTypeName(app.request.locale), '%fuel%' : model.fuelTypeName(app.request.locale), '%dealer%' : dealer.nameByLocale(app.request.locale), '%volume%' : model.getEngineVolume(app.request.locale) }, 'dc_base')|raw }} {% endif %}\"/>
\t{% if model.seoKeywords(app.request.locale) %}
\t\t<meta name=\"keywords\" content=\"{{ model.seoKeywords(app.request.locale) }}\"/>
\t{% endif %}
\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/dist/{{ MODE }}/dcsite/nissan/css/nissanInStockCard.css?{{ VERSION }}\">
{% endblock %}
{% block ogtagDynamicImage %}
\t<meta property=\"og:image\" content=\"{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}\"/>
{% endblock %}
{% block ogtagDynamic %}
\t<meta property=\"og:title\" content=\"{% if model.seoTitle(app.request.locale) is empty %} {{ model.seoTitle(app.request.locale) }} {% else %} {{ 'car.car_in_stock.seo.title'|trans({ '%car%' : model.fullName, '%year%' : model.year, '%transmission%' : model.transmissionTypeName(app.request.locale), '%fuel%' : model.fuelTypeName(app.request.locale), '%dealer%' : dealer.nameByLocale(app.request.locale), '%volume%' : model.getEngineVolume(app.request.locale) }, 'dc_base')|raw }} {% endif %}\"/>
\t<meta property=\"og:description\" content=\"{% if model.seoDescription(app.request.locale) is empty %} {{ model.seoDescription(app.request.locale) }} {% else %} {{ 'car.car_in_stock.seo.description'|trans({ '%brand%' : model.model.brand, '%car%' : model.fullName, '%year%' : model.year, '%transmission%' : model.transmissionTypeName(app.request.locale), '%fuel%' : model.fuelTypeName(app.request.locale), '%dealer%' : dealer.nameByLocale(app.request.locale), '%volume%' : model.getEngineVolume(app.request.locale) }, 'dc_base')|raw }} {% endif %}\"/>
{% endblock %}
{% block socialPreview %}
\t<img src=\"{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}\" class=\"d-none\">
{% endblock %}
{% block content %}
\t<div style=\"display: none\" class=\"breadcrumbs__shadow\">
\t\t<section class=\"breadcrumbs__new\">
\t\t\t<div class=\"container\">
\t\t\t\t<ol class=\"global_breadcrumbs__new\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
\t\t\t\t\t<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
\t\t\t\t\t\t<a itemprop=\"item\" href=\"{{ path('nissan_homepage') }}\">
\t\t\t\t\t\t\t<span class=\"breadcrumbs__link\" itemprop=\"name\">NISSAN</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<meta itemprop=\"position\" content=\"1\"/>
\t\t\t\t\t</li>
\t\t\t\t\t<div class=\"arrow-bcs\">
\t\t\t\t\t\t❯</div>
\t\t\t\t\t<li class=\"marker__none\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
\t\t\t\t\t\t<a itemprop=\"item\" href=\"{{ path('nissan_car_stock') }}\">
\t\t\t\t\t\t\t<span class=\"breadcrumbs__link\" itemprop=\"name\">{{ model.fullName }}</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<meta itemprop=\"position\" content=\"2\"/>
\t\t\t\t\t</li>
\t\t\t\t</ol>
\t\t\t</div>
\t\t</section>
\t</div>
\t<section class=\"title-breadcrumbs\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-12 col-lg-12\">
\t\t\t\t\t<div class=\"vidi_breadcrumbs\">
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<a href=\"{{ path('nissan_homepage') }}\">
\t\t\t\t\t\t\t\t<span>{{ 'pages.breadcrumbs.main'|trans({},'dc_nissan') }}</span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span class=\"bc_sep\">
\t\t\t\t\t\t\t→
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<a href=\"{{ path('nissan_car_stock') }}\">
\t\t\t\t\t\t\t\t<span>{{ 'pages.base.in_stock'|trans({},'dc_base') }}</span>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span class=\"bc_sep\">
\t\t\t\t\t\t\t→
\t\t\t\t\t\t</span>
\t\t\t\t\t\t<span>
\t\t\t\t\t\t\t<span class=\"last-breadcrumbs\">{{ model.fullName }}</span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t{% include '@DcSite/Modules/car-in-stock/index.html.twig' with {tdPath: 'nissan_service_consultation', newCreditCalc: true} %}
\t{% include '@DcSite/Modules/buy-instock-car-popup.html.twig' with {actPath: 'form_buy_in_stock', model: model} %}
\t{% include '@DcSite/Modules/call-me-popup.html.twig' with {
'route': path('form_call_me', {'formType': 4}),
} %}
\t{% include '@DcSite/Modules/sps-popup-credit.html.twig' with {'homePage' : path('nissan_homepage') } %}
{% endblock %}
{% block script %}
<script src=\"/dist/{{ MODE }}/dcsite/nissan/js/nissanInStockCard.js?{{ VERSION }}\"></script>
<script type=\"application/ld+json\">
{{ structuredCarData|raw }}
</script>
<script>
\$(() => {
window.initCredit({
cretidTpl: '{{ path('dc_credit_load_tpl') }}',
initUrl: '{{ path('dc_credit_init') }}',
brandUrl: '{{ path('dc_credit_load_brands') }}',
byDealerUrl: '{{ path('dc_credit_init_by_dealer') }}',
programsUrl: '{{ path('dc_credit_programs') }}',
saveUrl: '{{ path('dc_credit_save') }}',
privacyUrl: '{{ privacyUrl }}',
disableCarChange: true,
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }}
});
window.initTradeIn({
initUrl: '{{ path('dc_ti_init') }}',
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }},
agreementUrl: '{{ privacyUrl }}',
});
window.initCasco({
initUrl : '{{ path('base_casco_init') }}',
initByDealerUrl : '{{ path('base_casco_init_by_dealer') }}',
optionsUrl : '{{ path('base_casco_options') }}',
formUrl : '{{ path('base_casco_save_form') }}',
privacyUrl: '{{ privacyUrl }}',
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }},
disableCarChange: true
});
const obj = new dcsite.nissanInStockCard.CreditInStock();
obj.initCreditCalcInStock({
getVehicleBrandUrl: '{{ path('dc_credit_find_brand') }}',
getVehicleModelUrl: '{{ path('dc_credit_find_model') }}',
getVehicleEquipmentUrl: '{{ path('dc_credit_find_equipment') }}',
getVehicleVariationUrl: '{{ path('dc_credit_find_variation') }}',
getVehicleUrl: '{{ path('dc_credit_get_vehicle') }}',
initCreditCalcUrl: '{{ path('dc_finance_credit_init') }}',
initTradeInUrl: '{{ path('dc_ti_init') }}',
agreementUrl: '{{ path('automarket_personal_data_agreement') }}',
loadListDocumentUrl: '{{ path('dc_credit_load_documents') }}',
schedulePaymentUrl: '{{ path('dc_credit_load_schedule_credit_pdf') }}',
getVehiclesByWalletUrl: '{{ path('dc_finance_credit_by_price') }}',
getVehiclesWithMinPriceUrl: '{{ path('dc_finance_credit_by_price_min') }}',
getCrmUUIDUrl: '{{ path('dc_finance_crm_lead_by_uuid') }}',
getCrmDataUrl: '{{ path('dc_finance_crm_create_lead') }}',
sendLeadUrl: '{{ path('dc_credit_save') }}',
ks: '{{ 'catalog.k_s'|trans({}, 'portal_base') }}',
enginePower: '{{ 'cars.engine'|trans({}, 'portal_base') }}',
translate_month: '{{ 'finance.credit.credit_month_short'|trans({}, 'portal_base') }}',
translate_under: '{{ 'finance.credit.credit_under'|trans({}, 'portal_base') }}',
translate_first_payment: '{{ 'form.first_give'|trans({}, 'portal_base') }}',
translate_uah: ' грн',
translate_not_enough_money: '{{ 'finance.credit.not_enough_money'|trans({}, 'portal_base') }}',
translate_not_estimate_vehicle: '{{ 'finance.credit.not_estimate_vehicle'|trans({}, 'portal_base') }}',
translate_min_first_payment_for_car: '{{ 'finance.credit.min_first_payment_for_car'|trans({}, 'portal_base') }}',
translate_estimate_vehicle_more_1: '{{ 'finance.credit.translate_estimate_vehicle_more_1'|trans({}, 'portal_base') }}',
translate_estimate_vehicle_more_2: '{{ 'finance.credit.translate_estimate_vehicle_more_2'|trans({}, 'portal_base') }}',
translate_unfortunately_not_enough: '{{ 'finance.credit.unfortunately_not_enough'|trans({}, 'portal_base') }}',
translate_price_of_your_car: '{{ 'finance.credit.price_of_your_car'|trans({}, 'portal_base') }}',
translate_min: '{{ 'finance.credit.min'|trans({}, 'portal_base') }}',
translate_min_first_payment: '{{ 'finance.credit.min_first_payment'|trans({}, 'portal_base') }}',
translate_min_month_payment: '{{ 'finance.credit.min_month_payment'|trans({}, 'portal_base') }}',
translate_month_term_credit: '{{ 'finance.credit.month_term_credit'|trans({}, 'portal_base') }}',
continue_first_least: '{{ 'finance.credit.continue_first_least'|trans({}, 'portal_base') }}',
translate_term_months: '{{ 'finance.credit.term_months'|trans({}, 'portal_base') }}',
translate_term_months_short: '{{ 'finance.credit.term_months_short'|trans({}, 'portal_base') }}',
translate_price_from: '{{ 'finance.credit.price_from'|trans({}, 'portal_base') }}',
privacyUrl: '{{ privacyUrl }}',
name: '{{ app.user.name | default(null) }}',
phone: '{{ app.user.phone | default(null) }}',
unsetUsedTypeVehicle: true,
unsetFlow2: true,
newCarUrl: 'nissan_card_car',
usedCarUrl: '',
brand_id: {{model.brand.id }},
dealer_id: {{model.dealer.id}},
model_id: {{ model.model.id }},
inStockId: {{ model.id }},
vehicleItemId: {{ model.vehicleItemId }},
vehicleId: '{{ model.vehicle.id }}'
});
});
</script>
{% endblock %}
", "@DcSite/Nissan/Car/cars-in-stock-card.html.twig", "/var/www/vidi.ua/releases/251023-65bd7d10/src/DcSiteBundle/Resources/views/Nissan/Car/cars-in-stock-card.html.twig");
}
}