<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @Portal/Catalog/index.html.twig */
class __TwigTemplate_232afd5234e371ed4d64fc7fa7ea3d34 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 = [
'content' => [$this, 'block_content'],
'script' => [$this, 'block_script'],
'schema_catalog_product' => [$this, 'block_schema_catalog_product'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 2
return "@Portal/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", "@Portal/Catalog/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Portal/Catalog/index.html.twig"));
// line 1
$context["bs5"] = true;
// line 3
$context["routePrefix"] = (((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", ["credit"], "method", false, false, false, 3)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("portal_finance_credit_") : ("portal_new_"));
// line 2
$this->parent = $this->load("@Portal/template.html.twig", 2);
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_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 6
yield " ";
if ((($tmp = (isset($context["hasCredit"]) || array_key_exists("hasCredit", $context) ? $context["hasCredit"] : (function () { throw new RuntimeError('Variable "hasCredit" does not exist.', 6, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 7
yield " ";
yield from $this->load("@Portal/Catalog/catalog-credit.html.twig", 7)->unwrap()->yield($context);
// line 8
yield " ";
} else {
// line 9
yield " ";
yield from $this->load("@Portal/Catalog/catalog-main.html.twig", 9)->unwrap()->yield($context);
// line 10
yield " ";
}
// line 11
yield "
";
// line 13
yield " <div class=\"modal fade modal__step__custom\" id=\"order-car\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"orderCarLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal__step__custom__dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content modal__step__custom__content modal__step__custom-btn\">
<div class=\"modal-header modal__step__custom__header\">
<p class=\"modal-title modal__step__custom__title\" id=\"orderCarLabel\">";
// line 17
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("card_car.modal.we_are_happy", [], "portal_base"), "html", null, true);
yield "</p>
<button type=\"button\" class=\"close modal__step__custom__close\" data-dismiss=\"modal\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
";
// line 22
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 22, $this->source); })()), 'form_start', ["attr" => ["class" => "forms-sm lead-form pop-up", "data-parent" => "order-car", "data-thank-popup" => "show", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_callback_form")]]);
yield "
<div class=\"modal-body modal__step__custom__body\">
<p class=\"modal__step__custom__text\">";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("card_car.modal.contact_phone", [], "portal_base"), "html", null, true);
yield "</p>
<div class=\"modal__step__custom__input mb-3\">
";
// line 26
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 26, $this->source); })()), "name", [], "any", false, false, false, 26), 'row');
yield "
</div>
<div class=\"modal__step__custom__input mb-5\">
";
// line 29
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 29, $this->source); })()), "phone", [], "any", false, false, false, 29), 'row');
yield "
</div>
<div class=\"col-md-12\">
<div class=\"form-group checkbox style-b js-form-privacy\">
<label class=\"checkboxes__item-privacy\">
<input type=\"checkbox\" name=\"";
// line 34
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["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 34, $this->source); })()), "privacy", [], "any", false, false, false, 34), "vars", [], "any", false, false, false, 34), "full_name", [], "any", false, false, false, 34), "html", null, true);
yield "\" value=\"";
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["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 34, $this->source); })()), "privacy", [], "any", false, false, false, 34), "vars", [], "any", false, false, false, 34), "value", [], "any", false, false, false, 34), "html", null, true);
yield "\" id=\"";
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["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 34, $this->source); })()), "privacy", [], "any", false, false, false, 34), "vars", [], "any", false, false, false, 34), "id", [], "any", false, false, false, 34), "html", null, true);
yield "\"/>
<div id=\"check_privacy\" class=\"checkbox__checkmark form-control\"></div>
<div class=\"checkbox__body\">";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("multi_consultation.step_3.confirm", [], "dc_base"), "html", null, true);
yield " <a href=\"";
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.', 36, $this->source); })()), "html", null, true);
yield "\" target=\"_blank\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("modal_online_service.learn_about_deal", [], "portal_base"), "html", null, true);
yield "</a></div>
</label>
</div>
</div>
</div>
<div class=\"d-none\">
";
// line 42
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 42, $this->source); })()), 'rest');
yield "
</div>
<div class=\"modal-footer modal__step__custom__footer mt-0\">
<button type=\"submit\" class=\"modal__step__custom__btn\">";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("card_car.modal.waiting_for_call", [], "portal_base"), "html", null, true);
yield "</button>
</div>
";
// line 47
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["OrderCallForm"]) || array_key_exists("OrderCallForm", $context) ? $context["OrderCallForm"] : (function () { throw new RuntimeError('Variable "OrderCallForm" does not exist.', 47, $this->source); })()), 'form_end');
yield "
</div>
</div>
</div>
";
// line 52
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 55
/**
* @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 56
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.', 56, $this->source); })()), "html", null, true);
yield "/portal/js/portalCarCatalog.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.', 56, $this->source); })()), "html", null, true);
yield "\"></script>
<script type=\"text/javascript\">
\$(() => {
window.portal.portalCarCatalog.initCatalogFilters({
initUrl: '";
// line 60
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_init_filters");
yield "',
buildTypeUrl: '";
// line 61
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_build_url");
yield "',
buildUrl: '";
// line 62
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_search_build_url");
yield "',
getDealersFromFilter: '";
// line 63
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_get_dealers_by_filter");
yield "',
getDealersFromSelectedFilter: '";
// line 64
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_get_dealers_by_selected_filter");
yield "',
carUrl: '";
// line 65
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(((isset($context["routePrefix"]) || array_key_exists("routePrefix", $context) ? $context["routePrefix"] : (function () { throw new RuntimeError('Variable "routePrefix" does not exist.', 65, $this->source); })()) . "catalog"), ["state" => (isset($context["state"]) || array_key_exists("state", $context) ? $context["state"] : (function () { throw new RuntimeError('Variable "state" does not exist.', 65, $this->source); })()), "type" => (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 65, $this->source); })())]), "html", null, true);
yield "',
params: ";
// line 66
yield json_encode((isset($context["baseParams"]) || array_key_exists("baseParams", $context) ? $context["baseParams"] : (function () { throw new RuntimeError('Variable "baseParams" does not exist.', 66, $this->source); })()));
yield ",
searchParams: ";
// line 67
yield json_encode((isset($context["searchParams"]) || array_key_exists("searchParams", $context) ? $context["searchParams"] : (function () { throw new RuntimeError('Variable "searchParams" does not exist.', 67, $this->source); })()));
yield ",
searchFilters: ";
// line 68
yield json_encode((isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 68, $this->source); })()));
yield ",
count: '";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 69, $this->source); })()), "html", null, true);
yield "',
seoLinks: ";
// line 70
yield json_encode((isset($context["seoLinks"]) || array_key_exists("seoLinks", $context) ? $context["seoLinks"] : (function () { throw new RuntimeError('Variable "seoLinks" does not exist.', 70, $this->source); })()));
yield "
});
";
// line 73
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["catalogNav"]) || array_key_exists("catalogNav", $context) ? $context["catalogNav"] : (function () { throw new RuntimeError('Variable "catalogNav" does not exist.', 73, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 74
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "brand", [], "any", true, true, false, 74)) {
// line 75
yield " // brand
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 7,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
";
} elseif (CoreExtension::getAttribute($this->env, $this->source, // line 108
$context["item"], "model", [], "any", true, true, false, 108)) {
// line 109
yield " // model
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 5,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
";
} else {
// line 143
yield " // bodyType
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 8,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
";
}
// line 176
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 177
yield " });
</script>
";
// line 179
yield from $this->unwrap()->yieldBlock('schema_catalog_product', $context, $blocks);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_schema_catalog_product(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", "schema_catalog_product"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "schema_catalog_product"));
// line 180
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Portal/Catalog/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 408 => 180, 385 => 179, 381 => 177, 375 => 176, 340 => 143, 304 => 109, 302 => 108, 267 => 75, 264 => 74, 260 => 73, 254 => 70, 250 => 69, 246 => 68, 242 => 67, 238 => 66, 234 => 65, 230 => 64, 226 => 63, 222 => 62, 218 => 61, 214 => 60, 204 => 56, 191 => 55, 179 => 52, 172 => 47, 167 => 45, 161 => 42, 148 => 36, 139 => 34, 131 => 29, 125 => 26, 120 => 24, 115 => 22, 107 => 17, 101 => 13, 98 => 11, 95 => 10, 92 => 9, 89 => 8, 86 => 7, 83 => 6, 70 => 5, 59 => 2, 57 => 3, 55 => 1, 42 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{% set bs5 = true %}
{% extends '@Portal/template.html.twig' %}
{% set routePrefix = app.request.get('credit') ? 'portal_finance_credit_' : 'portal_new_' %}
{% block content %}
{% if hasCredit %}
{% include '@Portal/Catalog/catalog-credit.html.twig' %}
{% else %}
{% include '@Portal/Catalog/catalog-main.html.twig' %}
{% endif %}
{# Модальне вікно банера #}
<div class=\"modal fade modal__step__custom\" id=\"order-car\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"orderCarLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal__step__custom__dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content modal__step__custom__content modal__step__custom-btn\">
<div class=\"modal-header modal__step__custom__header\">
<p class=\"modal-title modal__step__custom__title\" id=\"orderCarLabel\">{{ 'card_car.modal.we_are_happy'|trans({}, 'portal_base') }}</p>
<button type=\"button\" class=\"close modal__step__custom__close\" data-dismiss=\"modal\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
{{ form_start(OrderCallForm, {attr: {class: 'forms-sm lead-form pop-up', 'data-parent': 'order-car', 'data-thank-popup': 'show', action: path( 'portal_callback_form' )} }) }}
<div class=\"modal-body modal__step__custom__body\">
<p class=\"modal__step__custom__text\">{{ 'card_car.modal.contact_phone'|trans({}, 'portal_base') }}</p>
<div class=\"modal__step__custom__input mb-3\">
{{ form_row(OrderCallForm.name) }}
</div>
<div class=\"modal__step__custom__input mb-5\">
{{ form_row(OrderCallForm.phone) }}
</div>
<div class=\"col-md-12\">
<div class=\"form-group checkbox style-b js-form-privacy\">
<label class=\"checkboxes__item-privacy\">
<input type=\"checkbox\" name=\"{{ OrderCallForm.privacy.vars.full_name }}\" value=\"{{ OrderCallForm.privacy.vars.value }}\" id=\"{{ OrderCallForm.privacy.vars.id }}\"/>
<div id=\"check_privacy\" class=\"checkbox__checkmark form-control\"></div>
<div class=\"checkbox__body\">{{ 'multi_consultation.step_3.confirm'|trans({}, 'dc_base') }} <a href=\"{{ privacyUrl }}\" target=\"_blank\">{{ 'modal_online_service.learn_about_deal'|trans({}, 'portal_base') }}</a></div>
</label>
</div>
</div>
</div>
<div class=\"d-none\">
{{ form_rest(OrderCallForm) }}
</div>
<div class=\"modal-footer modal__step__custom__footer mt-0\">
<button type=\"submit\" class=\"modal__step__custom__btn\">{{ 'card_car.modal.waiting_for_call'|trans({}, 'portal_base') }}</button>
</div>
{{ form_end(OrderCallForm) }}
</div>
</div>
</div>
{# Модальне вікно банера #}
{% endblock %}
{% block script %}
<script src=\"/dist/{{ MODE }}/portal/js/portalCarCatalog.js?{{ VERSION }}\"></script>
<script type=\"text/javascript\">
\$(() => {
window.portal.portalCarCatalog.initCatalogFilters({
initUrl: '{{ path('portal_new_catalog_init_filters') }}',
buildTypeUrl: '{{ path('portal_new_catalog_build_url') }}',
buildUrl: '{{ path('portal_new_catalog_search_build_url') }}',
getDealersFromFilter: '{{ path('portal_new_catalog_get_dealers_by_filter') }}',
getDealersFromSelectedFilter: '{{ path('portal_new_catalog_get_dealers_by_selected_filter') }}',
carUrl: '{{ path(routePrefix ~ 'catalog', {state: state, type: type}) }}',
params: {{ baseParams|json_encode|raw }},
searchParams: {{ searchParams|json_encode|raw }},
searchFilters: {{ filters|json_encode|raw }},
count: '{{ count }}',
seoLinks: {{ seoLinks|json_encode|raw }}
});
{% for item in catalogNav %}
{% if item.brand is defined %}
// brand
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 7,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
{% elseif item.model is defined %}
// model
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 5,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
{% else %}
// bodyType
new Swiper(\".selection__catalog__car-slider\", {
slidesPerView: 8,
allowTouchMove: false,
navigation: {
nextEl: \".swiper-button-next\",
prevEl: \".swiper-button-prev\",
},
breakpoints: {
1400: {
slidesPerView: 7,
loop: true,
allowTouchMove: true,
},
1200: {
slidesPerView: 6,
loop: true,
allowTouchMove: true,
},
991: {
slidesPerView: 5,
loop: true,
allowTouchMove: true,
},
768: {
init: false,
},
},
});
{% endif %}
{% endfor %}
});
</script>
{% block schema_catalog_product %}
{% endblock %}
{% endblock %}
", "@Portal/Catalog/index.html.twig", "/var/www/vidi.ua/releases/251027-872b0c76/src/PortalBundle/Resources/views/Catalog/index.html.twig");
}
}