var/cache/dev/twig/3a/3ae63c1d24fc1e81a3799c7d687ac56c.php line 73

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @Portal/Catalog/index.html.twig */
  16. class __TwigTemplate_232afd5234e371ed4d64fc7fa7ea3d34 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.             'script' => [$this'block_script'],
  30.             'schema_catalog_product' => [$this'block_schema_catalog_product'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 2
  36.         return "@Portal/template.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Catalog/index.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Portal/Catalog/index.html.twig"));
  45.         // line 1
  46.         $context["bs5"] = true;
  47.         // line 3
  48.         $context["routePrefix"] = (((($tmp CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse3), "get", ["credit"], "method"falsefalsefalse3)) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("portal_finance_credit_") : ("portal_new_"));
  49.         // line 2
  50.         $this->parent $this->load("@Portal/template.html.twig"2);
  51.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 5
  58.     /**
  59.      * @return iterable<null|scalar|\Stringable>
  60.      */
  61.     public function block_content(array $context, array $blocks = []): iterable
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  68.         // line 6
  69.         yield "    ";
  70.         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)) {
  71.             // line 7
  72.             yield "        ";
  73.             yield from $this->load("@Portal/Catalog/catalog-credit.html.twig"7)->unwrap()->yield($context);
  74.             // line 8
  75.             yield "    ";
  76.         } else {
  77.             // line 9
  78.             yield "        ";
  79.             yield from $this->load("@Portal/Catalog/catalog-main.html.twig"9)->unwrap()->yield($context);
  80.             // line 10
  81.             yield "    ";
  82.         }
  83.         // line 11
  84.         yield "
  85.     ";
  86.         // line 13
  87.         yield "    <div class=\"modal fade modal__step__custom\" id=\"order-car\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"orderCarLabel\" aria-hidden=\"true\">
  88.         <div class=\"modal-dialog modal__step__custom__dialog modal-dialog-centered\" role=\"document\">
  89.             <div class=\"modal-content modal__step__custom__content modal__step__custom-btn\">
  90.                 <div class=\"modal-header modal__step__custom__header\">
  91.                     <p class=\"modal-title modal__step__custom__title\" id=\"orderCarLabel\">";
  92.         // line 17
  93.         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"nulltrue);
  94.         yield "</p>
  95.                     <button type=\"button\" class=\"close modal__step__custom__close\" data-dismiss=\"modal\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  96.                         <span aria-hidden=\"true\">&times;</span>
  97.                     </button>
  98.                 </div>
  99.                 ";
  100.         // line 22
  101.         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")]]);
  102.         yield "
  103.                 <div class=\"modal-body modal__step__custom__body\">
  104.                     <p class=\"modal__step__custom__text\">";
  105.         // line 24
  106.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("card_car.modal.contact_phone", [], "portal_base"), "html"nulltrue);
  107.         yield "</p>
  108.                     <div class=\"modal__step__custom__input mb-3\">
  109.                         ";
  110.         // line 26
  111.         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"falsefalsefalse26), 'row');
  112.         yield "
  113.                     </div>
  114.                     <div class=\"modal__step__custom__input mb-5\">
  115.                         ";
  116.         // line 29
  117.         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"falsefalsefalse29), 'row');
  118.         yield "
  119.                     </div>
  120.                     <div class=\"col-md-12\">
  121.                         <div class=\"form-group checkbox style-b js-form-privacy\">
  122.                             <label class=\"checkboxes__item-privacy\">
  123.                                 <input type=\"checkbox\" name=\"";
  124.         // line 34
  125.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "vars", [], "any"falsefalsefalse34), "full_name", [], "any"falsefalsefalse34), "html"nulltrue);
  126.         yield "\" value=\"";
  127.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "vars", [], "any"falsefalsefalse34), "value", [], "any"falsefalsefalse34), "html"nulltrue);
  128.         yield "\" id=\"";
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse34), "vars", [], "any"falsefalsefalse34), "id", [], "any"falsefalsefalse34), "html"nulltrue);
  130.         yield "\"/>
  131.                                 <div id=\"check_privacy\" class=\"checkbox__checkmark form-control\"></div>
  132.                                 <div class=\"checkbox__body\">";
  133.         // line 36
  134.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("multi_consultation.step_3.confirm", [], "dc_base"), "html"nulltrue);
  135.         yield " <a href=\"";
  136.         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"nulltrue);
  137.         yield "\" target=\"_blank\">";
  138.         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"nulltrue);
  139.         yield "</a></div>
  140.                             </label>
  141.                         </div>
  142.                     </div>
  143.                 </div>
  144.                 <div class=\"d-none\">
  145.                     ";
  146.         // line 42
  147.         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');
  148.         yield "
  149.                 </div>
  150.                 <div class=\"modal-footer modal__step__custom__footer mt-0\">
  151.                     <button type=\"submit\" class=\"modal__step__custom__btn\">";
  152.         // line 45
  153.         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"nulltrue);
  154.         yield "</button>
  155.                 </div>
  156.                 ";
  157.         // line 47
  158.         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');
  159.         yield "
  160.             </div>
  161.         </div>
  162.     </div>
  163.     ";
  164.         // line 52
  165.         yield "
  166. ";
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.         yield from [];
  172.     }
  173.     // line 55
  174.     /**
  175.      * @return iterable<null|scalar|\Stringable>
  176.      */
  177.     public function block_script(array $context, array $blocks = []): iterable
  178.     {
  179.         $macros $this->macros;
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  184.         // line 56
  185.         yield "    <script src=\"/dist/";
  186.         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"nulltrue);
  187.         yield "/portal/js/portalCarCatalog.js?";
  188.         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"nulltrue);
  189.         yield "\"></script>
  190.     <script type=\"text/javascript\">
  191.         \$(() => {
  192.             window.portal.portalCarCatalog.initCatalogFilters({
  193.                 initUrl: '";
  194.         // line 60
  195.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_init_filters");
  196.         yield "',
  197.                 buildTypeUrl: '";
  198.         // line 61
  199.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_build_url");
  200.         yield "',
  201.                 buildUrl: '";
  202.         // line 62
  203.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_search_build_url");
  204.         yield "',
  205.                 getDealersFromFilter: '";
  206.         // line 63
  207.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_get_dealers_by_filter");
  208.         yield "',
  209.                 getDealersFromSelectedFilter: '";
  210.         // line 64
  211.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("portal_new_catalog_get_dealers_by_selected_filter");
  212.         yield "',
  213.                 carUrl: '";
  214.         // line 65
  215.         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"nulltrue);
  216.         yield "',
  217.                 params: ";
  218.         // line 66
  219.         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); })()));
  220.         yield ",
  221.                 searchParams: ";
  222.         // line 67
  223.         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); })()));
  224.         yield ",
  225.                 searchFilters: ";
  226.         // line 68
  227.         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); })()));
  228.         yield ",
  229.                 count: '";
  230.         // line 69
  231.         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"nulltrue);
  232.         yield "',
  233.                 seoLinks: ";
  234.         // line 70
  235.         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); })()));
  236.         yield "
  237.             });
  238.             ";
  239.         // line 73
  240.         $context['_parent'] = $context;
  241.         $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); })()));
  242.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  243.             // line 74
  244.             yield "            ";
  245.             if (CoreExtension::getAttribute($this->env$this->source$context["item"], "brand", [], "any"truetruefalse74)) {
  246.                 // line 75
  247.                 yield "            // brand
  248.             new Swiper(\".selection__catalog__car-slider\", {
  249.                 slidesPerView: 7,
  250.                 allowTouchMove: false,
  251.                 navigation: {
  252.                     nextEl: \".swiper-button-next\",
  253.                     prevEl: \".swiper-button-prev\",
  254.                 },
  255.                 breakpoints: {
  256.                     1400: {
  257.                         slidesPerView: 7,
  258.                         loop: true,
  259.                         allowTouchMove: true,
  260.                     },
  261.                     1200: {
  262.                         slidesPerView: 6,
  263.                         loop: true,
  264.                         allowTouchMove: true,
  265.                     },
  266.                     991: {
  267.                         slidesPerView: 5,
  268.                         loop: true,
  269.                         allowTouchMove: true,
  270.                     },
  271.                     768: {
  272.                         init: false,
  273.                     },
  274.                 },
  275.             });
  276.             ";
  277.             } elseif (CoreExtension::getAttribute($this->env$this->source,             // line 108
  278. $context["item"], "model", [], "any"truetruefalse108)) {
  279.                 // line 109
  280.                 yield "            // model
  281.             new Swiper(\".selection__catalog__car-slider\", {
  282.                 slidesPerView: 5,
  283.                 allowTouchMove: false,
  284.                 navigation: {
  285.                     nextEl: \".swiper-button-next\",
  286.                     prevEl: \".swiper-button-prev\",
  287.                 },
  288.                 breakpoints: {
  289.                     1400: {
  290.                         slidesPerView: 7,
  291.                         loop: true,
  292.                         allowTouchMove: true,
  293.                     },
  294.                     1200: {
  295.                         slidesPerView: 6,
  296.                         loop: true,
  297.                         allowTouchMove: true,
  298.                     },
  299.                     991: {
  300.                         slidesPerView: 5,
  301.                         loop: true,
  302.                         allowTouchMove: true,
  303.                     },
  304.                     768: {
  305.                         init: false,
  306.                     },
  307.                 },
  308.             });
  309.             ";
  310.             } else {
  311.                 // line 143
  312.                 yield "            // bodyType
  313.             new Swiper(\".selection__catalog__car-slider\", {
  314.                 slidesPerView: 8,
  315.                 allowTouchMove: false,
  316.                 navigation: {
  317.                     nextEl: \".swiper-button-next\",
  318.                     prevEl: \".swiper-button-prev\",
  319.                 },
  320.                 breakpoints: {
  321.                     1400: {
  322.                         slidesPerView: 7,
  323.                         loop: true,
  324.                         allowTouchMove: true,
  325.                     },
  326.                     1200: {
  327.                         slidesPerView: 6,
  328.                         loop: true,
  329.                         allowTouchMove: true,
  330.                     },
  331.                     991: {
  332.                         slidesPerView: 5,
  333.                         loop: true,
  334.                         allowTouchMove: true,
  335.                     },
  336.                     768: {
  337.                         init: false,
  338.                     },
  339.                 },
  340.             });
  341.             ";
  342.             }
  343.             // line 176
  344.             yield "            ";
  345.         }
  346.         $_parent $context['_parent'];
  347.         unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  348.         $context array_intersect_key($context$_parent) + $_parent;
  349.         // line 177
  350.         yield "        });
  351.     </script>
  352.     ";
  353.         // line 179
  354.         yield from $this->unwrap()->yieldBlock('schema_catalog_product'$context$blocks);
  355.         
  356.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  357.         
  358.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  359.         yield from [];
  360.     }
  361.     /**
  362.      * @return iterable<null|scalar|\Stringable>
  363.      */
  364.     public function block_schema_catalog_product(array $context, array $blocks = []): iterable
  365.     {
  366.         $macros $this->macros;
  367.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  368.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""schema_catalog_product"));
  369.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  370.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""schema_catalog_product"));
  371.         // line 180
  372.         yield "    ";
  373.         
  374.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  375.         
  376.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  377.         yield from [];
  378.     }
  379.     /**
  380.      * @codeCoverageIgnore
  381.      */
  382.     public function getTemplateName(): string
  383.     {
  384.         return "@Portal/Catalog/index.html.twig";
  385.     }
  386.     /**
  387.      * @codeCoverageIgnore
  388.      */
  389.     public function isTraitable(): bool
  390.     {
  391.         return false;
  392.     }
  393.     /**
  394.      * @codeCoverageIgnore
  395.      */
  396.     public function getDebugInfo(): array
  397.     {
  398.         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,);
  399.     }
  400.     public function getSourceContext(): Source
  401.     {
  402.         return new Source("{% set bs5 = true %}
  403. {% extends '@Portal/template.html.twig' %}
  404. {% set routePrefix = app.request.get('credit') ? 'portal_finance_credit_' : 'portal_new_' %}
  405. {% block content %}
  406.     {% if hasCredit %}
  407.         {% include '@Portal/Catalog/catalog-credit.html.twig' %}
  408.     {% else %}
  409.         {% include '@Portal/Catalog/catalog-main.html.twig' %}
  410.     {% endif %}
  411.     {#    Модальне вікно банера     #}
  412.     <div class=\"modal fade modal__step__custom\" id=\"order-car\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"orderCarLabel\" aria-hidden=\"true\">
  413.         <div class=\"modal-dialog modal__step__custom__dialog modal-dialog-centered\" role=\"document\">
  414.             <div class=\"modal-content modal__step__custom__content modal__step__custom-btn\">
  415.                 <div class=\"modal-header modal__step__custom__header\">
  416.                     <p class=\"modal-title modal__step__custom__title\" id=\"orderCarLabel\">{{ 'card_car.modal.we_are_happy'|trans({}, 'portal_base') }}</p>
  417.                     <button type=\"button\" class=\"close modal__step__custom__close\" data-dismiss=\"modal\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  418.                         <span aria-hidden=\"true\">&times;</span>
  419.                     </button>
  420.                 </div>
  421.                 {{ form_start(OrderCallForm, {attr: {class: 'forms-sm lead-form pop-up', 'data-parent': 'order-car', 'data-thank-popup': 'show', action: path( 'portal_callback_form' )} }) }}
  422.                 <div class=\"modal-body modal__step__custom__body\">
  423.                     <p class=\"modal__step__custom__text\">{{ 'card_car.modal.contact_phone'|trans({}, 'portal_base') }}</p>
  424.                     <div class=\"modal__step__custom__input mb-3\">
  425.                         {{ form_row(OrderCallForm.name) }}
  426.                     </div>
  427.                     <div class=\"modal__step__custom__input mb-5\">
  428.                         {{ form_row(OrderCallForm.phone) }}
  429.                     </div>
  430.                     <div class=\"col-md-12\">
  431.                         <div class=\"form-group checkbox style-b js-form-privacy\">
  432.                             <label class=\"checkboxes__item-privacy\">
  433.                                 <input type=\"checkbox\" name=\"{{ OrderCallForm.privacy.vars.full_name }}\" value=\"{{ OrderCallForm.privacy.vars.value }}\" id=\"{{ OrderCallForm.privacy.vars.id }}\"/>
  434.                                 <div id=\"check_privacy\" class=\"checkbox__checkmark form-control\"></div>
  435.                                 <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>
  436.                             </label>
  437.                         </div>
  438.                     </div>
  439.                 </div>
  440.                 <div class=\"d-none\">
  441.                     {{ form_rest(OrderCallForm) }}
  442.                 </div>
  443.                 <div class=\"modal-footer modal__step__custom__footer mt-0\">
  444.                     <button type=\"submit\" class=\"modal__step__custom__btn\">{{ 'card_car.modal.waiting_for_call'|trans({}, 'portal_base') }}</button>
  445.                 </div>
  446.                 {{ form_end(OrderCallForm) }}
  447.             </div>
  448.         </div>
  449.     </div>
  450.     {#    Модальне вікно банера     #}
  451. {% endblock %}
  452. {% block script %}
  453.     <script src=\"/dist/{{ MODE }}/portal/js/portalCarCatalog.js?{{ VERSION }}\"></script>
  454.     <script type=\"text/javascript\">
  455.         \$(() => {
  456.             window.portal.portalCarCatalog.initCatalogFilters({
  457.                 initUrl: '{{ path('portal_new_catalog_init_filters') }}',
  458.                 buildTypeUrl: '{{ path('portal_new_catalog_build_url') }}',
  459.                 buildUrl: '{{ path('portal_new_catalog_search_build_url') }}',
  460.                 getDealersFromFilter: '{{ path('portal_new_catalog_get_dealers_by_filter') }}',
  461.                 getDealersFromSelectedFilter: '{{ path('portal_new_catalog_get_dealers_by_selected_filter') }}',
  462.                 carUrl: '{{ path(routePrefix ~ 'catalog', {state: state, type: type}) }}',
  463.                 params: {{ baseParams|json_encode|raw }},
  464.                 searchParams: {{ searchParams|json_encode|raw }},
  465.                 searchFilters: {{ filters|json_encode|raw }},
  466.                 count: '{{ count }}',
  467.                 seoLinks: {{ seoLinks|json_encode|raw }}
  468.             });
  469.             {% for item in catalogNav %}
  470.             {% if item.brand is defined %}
  471.             // brand
  472.             new Swiper(\".selection__catalog__car-slider\", {
  473.                 slidesPerView: 7,
  474.                 allowTouchMove: false,
  475.                 navigation: {
  476.                     nextEl: \".swiper-button-next\",
  477.                     prevEl: \".swiper-button-prev\",
  478.                 },
  479.                 breakpoints: {
  480.                     1400: {
  481.                         slidesPerView: 7,
  482.                         loop: true,
  483.                         allowTouchMove: true,
  484.                     },
  485.                     1200: {
  486.                         slidesPerView: 6,
  487.                         loop: true,
  488.                         allowTouchMove: true,
  489.                     },
  490.                     991: {
  491.                         slidesPerView: 5,
  492.                         loop: true,
  493.                         allowTouchMove: true,
  494.                     },
  495.                     768: {
  496.                         init: false,
  497.                     },
  498.                 },
  499.             });
  500.             {% elseif item.model is defined %}
  501.             // model
  502.             new Swiper(\".selection__catalog__car-slider\", {
  503.                 slidesPerView: 5,
  504.                 allowTouchMove: false,
  505.                 navigation: {
  506.                     nextEl: \".swiper-button-next\",
  507.                     prevEl: \".swiper-button-prev\",
  508.                 },
  509.                 breakpoints: {
  510.                     1400: {
  511.                         slidesPerView: 7,
  512.                         loop: true,
  513.                         allowTouchMove: true,
  514.                     },
  515.                     1200: {
  516.                         slidesPerView: 6,
  517.                         loop: true,
  518.                         allowTouchMove: true,
  519.                     },
  520.                     991: {
  521.                         slidesPerView: 5,
  522.                         loop: true,
  523.                         allowTouchMove: true,
  524.                     },
  525.                     768: {
  526.                         init: false,
  527.                     },
  528.                 },
  529.             });
  530.             {% else %}
  531.             // bodyType
  532.             new Swiper(\".selection__catalog__car-slider\", {
  533.                 slidesPerView: 8,
  534.                 allowTouchMove: false,
  535.                 navigation: {
  536.                     nextEl: \".swiper-button-next\",
  537.                     prevEl: \".swiper-button-prev\",
  538.                 },
  539.                 breakpoints: {
  540.                     1400: {
  541.                         slidesPerView: 7,
  542.                         loop: true,
  543.                         allowTouchMove: true,
  544.                     },
  545.                     1200: {
  546.                         slidesPerView: 6,
  547.                         loop: true,
  548.                         allowTouchMove: true,
  549.                     },
  550.                     991: {
  551.                         slidesPerView: 5,
  552.                         loop: true,
  553.                         allowTouchMove: true,
  554.                     },
  555.                     768: {
  556.                         init: false,
  557.                     },
  558.                 },
  559.             });
  560.             {% endif %}
  561.             {% endfor %}
  562.         });
  563.     </script>
  564.     {% block schema_catalog_product %}
  565.     {% endblock %}
  566. {% endblock %}
  567. ""@Portal/Catalog/index.html.twig""/var/www/vidi.ua/releases/251023-65bd7d10/src/PortalBundle/Resources/views/Catalog/index.html.twig");
  568.     }
  569. }