var/cache/dev/twig/71/71ba315bcd24303aab3737e45ffe1b75ef2f13100347b3dc52a68f04dcd3b230.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @templates/Front/vignette.html.twig */
  14. class __TwigTemplate_d62f277031f1d5530de0e4200389f2aa8d48bfc58e77cb813348acf14722dc55 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'head' => [$this'block_head'],
  24.             'title' => [$this'block_title'],
  25.             'metatags' => [$this'block_metatags'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'header' => [$this'block_header'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "@templates/Front/Shop/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Front/vignette.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Front/vignette.html.twig"));
  44.         $this->parent $this->loadTemplate("@templates/Front/Shop/layout.html.twig""@templates/Front/vignette.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 3
  52.     public function block_head($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  59.         // line 4
  60.         echo "    <head>
  61.         ";
  62.         // line 5
  63.         $this->displayBlock('title'$context$blocks);
  64.         // line 6
  65.         echo "
  66.         ";
  67.         // line 7
  68.         $this->displayBlock('metatags'$context$blocks);
  69.         // line 10
  70.         echo "        <meta charset=\"utf-8\">
  71.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  72.         <meta http-equiv=\"Content-Language\" content=\"ro\">
  73.         <meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
  74.         <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  75.         <meta name=\"keywords\" content=\"";
  76.         // line 15
  77.         if ((twig_length_filter($this->env, (isset($context["vignetteKeywordsForSeo"]) || array_key_exists("vignetteKeywordsForSeo"$context) ? $context["vignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "vignetteKeywordsForSeo" does not exist.'15$this->source); })())) > 0)) {
  78.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vignetteKeywordsForSeo"]) || array_key_exists("vignetteKeywordsForSeo"$context) ? $context["vignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "vignetteKeywordsForSeo" does not exist.'15$this->source); })()), "content", [], "any"falsefalsefalse15), "html"nulltrue);
  79.         }
  80.         echo "\"/>
  81.         ";
  82.         // line 17
  83.         $this->displayBlock('stylesheets'$context$blocks);
  84.         // line 24
  85.         echo "
  86.         ";
  87.         // line 25
  88.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.head"]);
  89.         echo "
  90.         ";
  91.         // line 26
  92.         $this->displayBlock('javascripts'$context$blocks);
  93.         // line 64
  94.         echo "    </head>
  95. ";
  96.         
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  98.         
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  100.     }
  101.     // line 5
  102.     public function block_title($context, array $blocks = [])
  103.     {
  104.         $macros $this->macros;
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  109.         echo " <title>";
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html"nulltrue);
  111.         echo " | Roviniete.ro</title> ";
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.         
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  116.     }
  117.     // line 7
  118.     public function block_metatags($context, array $blocks = [])
  119.     {
  120.         $macros $this->macros;
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  125.         // line 8
  126.         echo "            <meta name=\"description\" content=\"";
  127.         if ((twig_length_filter($this->env, (isset($context["vignetteDescriptionForSeo"]) || array_key_exists("vignetteDescriptionForSeo"$context) ? $context["vignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "vignetteDescriptionForSeo" does not exist.'8$this->source); })())) > 0)) {
  128.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vignetteDescriptionForSeo"]) || array_key_exists("vignetteDescriptionForSeo"$context) ? $context["vignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "vignetteDescriptionForSeo" does not exist.'8$this->source); })()), "content", [], "any"falsefalsefalse8), "html"nulltrue);
  129.         }
  130.         echo "\"/>
  131.         ";
  132.         
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.         
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  136.     }
  137.     // line 17
  138.     public function block_stylesheets($context, array $blocks = [])
  139.     {
  140.         $macros $this->macros;
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  142.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  144.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  145.         // line 18
  146.         echo "            <link rel=\"stylesheet\" href=\"";
  147.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/homepage.css"), "html"nulltrue);
  148.         echo "\">
  149.             <link rel=\"stylesheet\" href=\"";
  150.         // line 19
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bootstrap.min.css"), "html"nulltrue);
  152.         echo "\">
  153.             ";
  154.         // line 20
  155.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("bootstrap-fix"null"bootstrapTheme");
  156.         echo "
  157.             <link rel=\"stylesheet\" href=\"";
  158.         // line 21
  159.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/vignette_shop.v1.css"), "html"nulltrue);
  160.         echo "\">
  161.             <link rel=\"stylesheet\" href=\"";
  162.         // line 22
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bs-stepper.css"), "html"nulltrue);
  164.         echo "\">
  165.         ";
  166.         
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  168.         
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  170.     }
  171.     // line 26
  172.     public function block_javascripts($context, array $blocks = [])
  173.     {
  174.         $macros $this->macros;
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  179.         // line 27
  180.         echo "            <script src=\"";
  181.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/sentry-bundle.min.js"), "html"nulltrue);
  182.         echo "\"></script>
  183.             <script>
  184.                  if (typeof Sentry !== 'undefined') {
  185.                     Sentry.init({
  186.                         dsn: \"";
  187.         // line 31
  188.         echo twig_escape_filter($this->env, (isset($context["sentry_dsn"]) || array_key_exists("sentry_dsn"$context) ? $context["sentry_dsn"] : (function () { throw new RuntimeError('Variable "sentry_dsn" does not exist.'31$this->source); })()), "html"nulltrue);
  189.         echo "\",
  190.                         integrations: [new Sentry.Integrations.TryCatch({
  191.                             eventTarget: false,
  192.                         })]
  193.                     });
  194.                 }
  195.                 MESSAGE_INVALID_REGISTRATION_PLATE = '";
  196.         // line 37
  197.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html"nulltrue);
  198.         echo "';
  199.                 MESSAGE_INVALID_VIN = '";
  200.         // line 38
  201.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_vin"), "html"nulltrue);
  202.         echo "'
  203.                 let roadAssistanceValidFrom = null;
  204.             </script>
  205.             <script src=\"";
  206.         // line 41
  207.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.min.js"), "html"nulltrue);
  208.         echo "\"></script>
  209.             <script src=\"";
  210.         // line 42
  211.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/bs-stepper.js"), "html"nulltrue);
  212.         echo "\"></script>
  213.             <script src=\"";
  214.         // line 43
  215.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery-ui.min.js"), "html"nulltrue);
  216.         echo "\"></script>
  217.             <script src=\"";
  218.         // line 44
  219.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/popper.min.js"), "html"nulltrue);
  220.         echo "\"></script>
  221.             <script src=\"";
  222.         // line 45
  223.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/bootstrap.min.js"), "html"nulltrue);
  224.         echo "\"></script>
  225.             <script src=\"";
  226.         // line 46
  227.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/moment.min.js"), "html"nulltrue);
  228.         echo "\"></script>
  229.             <script src=\"";
  230.         // line 47
  231.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.validate.min.js"), "html"nulltrue);
  232.         echo "\"></script>
  233.             ";
  234.         // line 48
  235.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vignette");
  236.         echo "
  237.             <script src=\"";
  238.         // line 49
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/leftmenu.js"), "html"nulltrue);
  240.         echo "\"></script>
  241.             <script src=\"";
  242.         // line 50
  243.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/fosjsrouting/js/router.js"), "html"nulltrue);
  244.         echo "\"></script>
  245.             <script src=\"";
  246.         // line 51
  247.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/_bootstrap_select.min.js"), "html"nulltrue);
  248.         echo "\"></script>
  249.             <script src=\"";
  250.         // line 52
  251.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  252.         echo "\"></script>
  253.             <script>
  254.                 dataLayer = [];
  255.             </script>
  256.             <!-- Google Tag Manager -->
  257.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  258.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  259.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  260.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  261.                 })(window,document,'script','dataLayer','";
  262.         // line 61
  263.         echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'61$this->source); })()), "html"nulltrue);
  264.         echo "');</script>
  265.             <!-- End Google Tag Manager -->
  266.         ";
  267.         
  268.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  269.         
  270.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  271.     }
  272.     // line 67
  273.     public function block_header($context, array $blocks = [])
  274.     {
  275.         $macros $this->macros;
  276.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  277.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  278.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  279.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  280.         // line 68
  281.         echo "    <!-- Google Tag Manager (noscript) -->
  282.     <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
  283.         // line 69
  284.         echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'69$this->source); })()), "html"nulltrue);
  285.         echo "\"
  286.                       height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  287.     <!-- End Google Tag Manager (noscript) -->
  288.     ";
  289.         // line 72
  290.         $this->loadTemplate("@templates/AdminCustom/Layout/loading.html.twig""@templates/Front/vignette.html.twig"72)->display(twig_array_merge($context, ["showLoading" => true]));
  291.         // line 73
  292.         echo "    <div class=\"custom-container\">
  293.         <div style=\"max-width: 100%\">
  294.             <div class=\"bg-white\">
  295.                 <header>
  296.                     ";
  297.         // line 77
  298.         $this->loadTemplate("@templates/Front/Shop/v2/_header.html.twig""@templates/Front/vignette.html.twig"77)->display($context);
  299.         // line 78
  300.         echo "
  301.                     ";
  302.         // line 79
  303.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_header"]);
  304.         echo "
  305.                 </header>
  306.             </div>
  307.         </div>
  308.     </div>
  309. ";
  310.         
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  312.         
  313.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  314.     }
  315.     // line 86
  316.     public function block_content($context, array $blocks = [])
  317.     {
  318.         $macros $this->macros;
  319.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  320.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  321.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  323.         // line 87
  324.         echo "    <div id=\"loadingDiv\" class=\"loading d-none\">
  325.         <div class=\"card w-50\">
  326.             <div class=\"card-body bg-loading-card\">
  327.                 <img src=\"";
  328.         // line 90
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/spinner.gif"), "html"nulltrue);
  330.         echo "\"
  331.                      style=\"width: 50px; pointer-events: none\"/>
  332.                 <h5>Se verifica datele</h5>
  333.             </div>
  334.         </div>
  335.     </div>
  336.     <div class=\"d-inline-flex mx-3\">
  337.         <a href=\"";
  338.         // line 97
  339.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  340.         echo "\" class=\"section text-primary\" style=\"font-size: 0.8em;\">";
  341.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  342.         echo "</a>
  343.         <div class=\"divider\"> /</div>
  344.         <small class=\"section active\">";
  345.         // line 99
  346.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignettes"), "html"nulltrue);
  347.         echo "</small>
  348.     </div>
  349.     ";
  350.         // line 101
  351.         if (twig_get_attribute($this->env$this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus"$context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.'101$this->source); })()), "vignetteStatus", [], "any"falsefalsefalse101)) {
  352.             // line 102
  353.             echo "        <h2 class=\"mx-3\">";
  354.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html"nulltrue);
  355.             echo "</h2>
  356.         ";
  357.             // line 103
  358.             $context["smsPrice"] = twig_get_attribute($this->env$this->source, (isset($context["sms_price_ron"]) || array_key_exists("sms_price_ron"$context) ? $context["sms_price_ron"] : (function () { throw new RuntimeError('Variable "sms_price_ron" does not exist.'103$this->source); })()), "calculateSmsPrice", [], "any"falsefalsefalse103);
  359.             // line 104
  360.             echo "        <script type=\"text/javascript\">
  361.             var one_day = '";
  362.             // line 105
  363.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day")), "html"nulltrue);
  364.             echo "';
  365.             var seven_days = '";
  366.             // line 106
  367.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days")), "html"nulltrue);
  368.             echo "';
  369.             var ten_days = '";
  370.             // line 107
  371.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days")), "html"nulltrue);
  372.             echo "';
  373.             var thirty_days = '";
  374.             // line 108
  375.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days")), "html"nulltrue);
  376.             echo "';
  377.             var sixty_days = '";
  378.             // line 109
  379.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days")), "html"nulltrue);
  380.             echo "';
  381.             var ninety_days = '";
  382.             // line 110
  383.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days")), "html"nulltrue);
  384.             echo "';
  385.             var twelve_months = '";
  386.             // line 111
  387.             echo twig_escape_filter($this->envtwig_lower_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months")), "html"nulltrue);
  388.             echo "';
  389.             var locale = '";
  390.             // line 112
  391.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'112$this->source); })()), "request", [], "any"falsefalsefalse112), "getLocale", [], "method"falsefalsefalse112), "html"nulltrue);
  392.             echo "';
  393.         </script>
  394.         ";
  395.             // line 114
  396.             $context["oldValues"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'114$this->source); })()), "request", [], "any"falsefalsefalse114), "request", [], "any"falsefalsefalse114);
  397.             // line 115
  398.             echo "
  399.         <div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
  400.             <div class=\"header text-center\">
  401.                 <h2>";
  402.             // line 118
  403.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.warning"), "html"nulltrue);
  404.             echo "</h2>
  405.             </div>
  406.             <p>
  407.             <h5 class=\"text-center text-primary vignette-already-bought d-none\">
  408.                 ";
  409.             // line 122
  410.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_available_for_choosen_date"), "html"nulltrue);
  411.             echo "
  412.             </h5>
  413.             <h5 class=\"special-error\">
  414.             </h5>
  415.             <a class=\"text-center\">
  416.             </a>
  417.             </p>
  418.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  419.                 <span aria-hidden=\"true\">&times;</span>
  420.             </button>
  421.         </div>
  422.         <div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
  423.             <div class=\"header text-center\">
  424.                 <h2>";
  425.             // line 135
  426.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.error"), "html"nulltrue);
  427.             echo "</h2>
  428.             </div>
  429.             <p>
  430.             <h5 class=\"text-center text-primary\">
  431.                 ";
  432.             // line 139
  433.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_category_error"), "html"nulltrue);
  434.             echo "
  435.             </h5>
  436.             <h5 class=\"special-error\">
  437.             </h5>
  438.             <a class=\"text-center\">
  439.             </a>
  440.             </p>
  441.         </div>
  442.         <div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
  443.             ";
  444.             // line 148
  445.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.no_special_characters_allowed"), "html"nulltrue);
  446.             echo "
  447.         </div>
  448.         <div style=\"margin-bottom: 100px;\">
  449.             <div id=\"stepperForm\" class=\"bs-stepper linear\">
  450.                 <div class=\"row\" style=\"padding: 0 20px 20px;\">
  451.                     <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  452.                         <div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
  453.                             <div class=\"card-body d-flex justify-content-between align-items-center\">
  454.                                 <div class=\"d-inline-flex justify-content-center align-items-center\">
  455.                                     <img src=\"";
  456.             // line 157
  457.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_dark.png"), "html"nulltrue);
  458.             echo "\" style=\"width: 30px\"/>
  459.                                     <h3>
  460.                                         <a class=\"font-weight-bolder text-primary\">";
  461.             // line 159
  462.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_details"), "html"nulltrue);
  463.             echo ":</a>
  464.                                         <a class=\"font-weight-bolder text-dark\">";
  465.             // line 160
  466.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category"), "html"nulltrue);
  467.             echo " - </a>
  468.                                         <a id=\"categoryTitleText\">-</a>;
  469.                                         <a class=\"font-weight-bolder text-dark\">";
  470.             // line 162
  471.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.valid_from"), "html"nulltrue);
  472.             echo " - </a>
  473.                                         <a id=\"availabilityTitleText\">-</a>
  474.                                     </h3>
  475.                                 </div>
  476.                                 <div id=\"editVignetteStep1\">
  477.                                     <img src=\"";
  478.             // line 167
  479.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html"nulltrue);
  480.             echo "\" style=\"width: 30px\"/>
  481.                                 </div>
  482.                             </div>
  483.                         </div>
  484.                     </div>
  485.                 </div>
  486.                 <div class=\"bs-stepper-header d-none\" role=\"tablist\">
  487.                     <div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
  488.                         <button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
  489.                             <span class=\"bs-stepper-circle\"><a>1</a></span>
  490.                             <small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">";
  491.             // line 177
  492.             echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_details")), "html"nulltrue);
  493.             echo "</small>
  494.                         </button>
  495.                     </div>
  496.                     <div class=\"bs-stepper-line\"></div>
  497.                     <div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
  498.                         <button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
  499.                             <span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
  500.                             <small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">";
  501.             // line 184
  502.             echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.car_data")), "html"nulltrue);
  503.             echo " </small>
  504.                         </button>
  505.                     </div>
  506.                     <div class=\"bs-stepper-line\"></div>
  507.                 </div>
  508.                 <div class=\"bs-stepper-content\">
  509.                     <form id=\"vignetteForm\" method=\"POST\">
  510.                         <input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
  511.                         <input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
  512.                         <input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"";
  513.             // line 193
  514.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus"$context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.'193$this->source); })()), "extraOptionsStatus", [], "any"falsefalsefalse193), "html"nulltrue);
  515.             echo "\">
  516.                         <div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
  517.                             <div class=\"row my-3\">
  518.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  519.                                     <div class=\"card vignette-card shadow\">
  520.                                         <div class=\"card-body\">
  521.                                             <div class=\"row\">
  522.                                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
  523.                                                     <h3 id=\"selectedCategoryText\" class=\"mb-2 font-weight-bolder\">";
  524.             // line 201
  525.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_type"), "html"nulltrue);
  526.             echo "</h3>
  527.                                                     ";
  528.             // line 202
  529.             $context['_parent'] = $context;
  530.             $context['_seq'] = twig_ensure_traversable((isset($context["vignetteCategories"]) || array_key_exists("vignetteCategories"$context) ? $context["vignetteCategories"] : (function () { throw new RuntimeError('Variable "vignetteCategories" does not exist.'202$this->source); })()));
  531.             $context['loop'] = [
  532.               'parent' => $context['_parent'],
  533.               'index0' => 0,
  534.               'index'  => 1,
  535.               'first'  => true,
  536.             ];
  537.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  538.                 $length count($context['_seq']);
  539.                 $context['loop']['revindex0'] = $length 1;
  540.                 $context['loop']['revindex'] = $length;
  541.                 $context['loop']['length'] = $length;
  542.                 $context['loop']['last'] = === $length;
  543.             }
  544.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  545.                 // line 203
  546.                 echo "                                                        ";
  547.                 if (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse203) % 2) != 0)) {
  548.                     // line 204
  549.                     echo "                                                            <div class=\"d-flex justify-content-center my-2\">
  550.                                                         ";
  551.                 }
  552.                 // line 206
  553.                 echo "                                                        <label type=\"button\" for=\"";
  554.                 echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->source$context["category"], "code", [], "any"falsefalsefalse206))), "html"nulltrue);
  555.                 echo "\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\">
  556.                                                             <input type=\"radio\" name=\"category\" data-error-message=\"";
  557.                 // line 207
  558.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_category_selected"), "html"nulltrue);
  559.                 echo "\" id=\"";
  560.                 echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->source$context["category"], "code", [], "any"falsefalsefalse207))), "html"nulltrue);
  561.                 echo "\" value=\"";
  562.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse207), "html"nulltrue);
  563.                 echo "\" data-category=\"
  564.                                                             ";
  565.                 // line 208
  566.                 if ((twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse208) == (isset($context["category_rovignette_a_id"]) || array_key_exists("category_rovignette_a_id"$context) ? $context["category_rovignette_a_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_a_id" does not exist.'208$this->source); })()))) {
  567.                     // line 209
  568.                     echo "                                                                ";
  569.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_name"), "html"nulltrue);
  570.                     echo "
  571.                                                             ";
  572.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 210
  573. $context["category"], "id", [], "any"falsefalsefalse210) == (isset($context["category_rovignette_b_id"]) || array_key_exists("category_rovignette_b_id"$context) ? $context["category_rovignette_b_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_b_id" does not exist.'210$this->source); })()))) {
  574.                     // line 211
  575.                     echo "                                                                ";
  576.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_name"), "html"nulltrue);
  577.                     echo "
  578.                                                             ";
  579.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 212
  580. $context["category"], "id", [], "any"falsefalsefalse212) == (isset($context["category_rovignette_c_id"]) || array_key_exists("category_rovignette_c_id"$context) ? $context["category_rovignette_c_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_c_id" does not exist.'212$this->source); })()))) {
  581.                     // line 213
  582.                     echo "                                                                ";
  583.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_name");
  584.                     echo "
  585.                                                             ";
  586.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 214
  587. $context["category"], "id", [], "any"falsefalsefalse214) == (isset($context["category_rovignette_d_id"]) || array_key_exists("category_rovignette_d_id"$context) ? $context["category_rovignette_d_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_d_id" does not exist.'214$this->source); })()))) {
  588.                     // line 215
  589.                     echo "                                                                ";
  590.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_name"), "html"nulltrue);
  591.                     echo "
  592.                                                             ";
  593.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 216
  594. $context["category"], "id", [], "any"falsefalsefalse216) == (isset($context["category_rovignette_e_id"]) || array_key_exists("category_rovignette_e_id"$context) ? $context["category_rovignette_e_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_e_id" does not exist.'216$this->source); })()))) {
  595.                     // line 217
  596.                     echo "                                                                ";
  597.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_name");
  598.                     echo "
  599.                                                             ";
  600.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 218
  601. $context["category"], "id", [], "any"falsefalsefalse218) == (isset($context["category_rovignette_f_id"]) || array_key_exists("category_rovignette_f_id"$context) ? $context["category_rovignette_f_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_f_id" does not exist.'218$this->source); })()))) {
  602.                     // line 219
  603.                     echo "                                                                ";
  604.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_name");
  605.                     echo "
  606.                                                             ";
  607.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 220
  608. $context["category"], "id", [], "any"falsefalsefalse220) == (isset($context["category_rovignette_g_id"]) || array_key_exists("category_rovignette_g_id"$context) ? $context["category_rovignette_g_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_g_id" does not exist.'220$this->source); })()))) {
  609.                     // line 221
  610.                     echo "                                                                ";
  611.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_name"), "html"nulltrue);
  612.                     echo "
  613.                                                             ";
  614.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 222
  615. $context["category"], "id", [], "any"falsefalsefalse222) == (isset($context["category_rovignette_h_id"]) || array_key_exists("category_rovignette_h_id"$context) ? $context["category_rovignette_h_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_h_id" does not exist.'222$this->source); })()))) {
  616.                     // line 223
  617.                     echo "                                                                ";
  618.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_name"), "html"nulltrue);
  619.                     echo "
  620.                                                             ";
  621.                 }
  622.                 // line 225
  623.                 echo "                                                               \" ";
  624.                 if (((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'225$this->source); })())) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'225$this->source); })()), "roVignetteCategory", [], "any"falsefalsefalse225))) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["vehicle"] ?? null), "roVignetteCategory", [], "any"falsetruefalse225), "id", [], "any"truetruefalse225)) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'225$this->source); })()), "roVignetteCategory", [], "any"falsefalsefalse225), "id", [], "any"falsefalsefalse225) == twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse225)))) {
  625.                     echo " checked
  626.                                                                 ";
  627.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 226
  628. (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'226$this->source); })()), "get", [=> "category"], "method"falsefalsefalse226) == twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse226))) {
  629.                     echo " checked ";
  630.                 }
  631.                 echo " hidden>
  632.                                                             <img src=\"";
  633.                 // line 227
  634.                 echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("assets/shop/images/icons/ic_rovinieta_categ_" twig_lower_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->source$context["category"], "code", [], "any"falsefalsefalse227))))) . ".png"), "html"nulltrue);
  635.                 echo "\" style=\"width: 46px\"/> <br/>
  636.                                                             <a class=\"text-dark\" id=\"vehicleType-";
  637.                 // line 228
  638.                 echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_first($this->envtwig_get_attribute($this->env$this->source$context["category"], "code", [], "any"falsefalsefalse228))), "html"nulltrue);
  639.                 echo "\">
  640.                                                                 ";
  641.                 // line 229
  642.                 if ((twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse229) == (isset($context["category_rovignette_a_id"]) || array_key_exists("category_rovignette_a_id"$context) ? $context["category_rovignette_a_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_a_id" does not exist.'229$this->source); })()))) {
  643.                     // line 230
  644.                     echo "                                                                    ";
  645.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_short_code"), "html"nulltrue);
  646.                     echo "
  647.                                                                 ";
  648.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 231
  649. $context["category"], "id", [], "any"falsefalsefalse231) == (isset($context["category_rovignette_b_id"]) || array_key_exists("category_rovignette_b_id"$context) ? $context["category_rovignette_b_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_b_id" does not exist.'231$this->source); })()))) {
  650.                     // line 232
  651.                     echo "                                                                    ";
  652.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_short_code"), "html"nulltrue);
  653.                     echo "
  654.                                                                 ";
  655.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 233
  656. $context["category"], "id", [], "any"falsefalsefalse233) == (isset($context["category_rovignette_c_id"]) || array_key_exists("category_rovignette_c_id"$context) ? $context["category_rovignette_c_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_c_id" does not exist.'233$this->source); })()))) {
  657.                     // line 234
  658.                     echo "                                                                    ";
  659.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_short_code");
  660.                     echo "
  661.                                                                 ";
  662.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 235
  663. $context["category"], "id", [], "any"falsefalsefalse235) == (isset($context["category_rovignette_d_id"]) || array_key_exists("category_rovignette_d_id"$context) ? $context["category_rovignette_d_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_d_id" does not exist.'235$this->source); })()))) {
  664.                     // line 236
  665.                     echo "                                                                    ";
  666.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_short_code"), "html"nulltrue);
  667.                     echo "
  668.                                                                 ";
  669.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 237
  670. $context["category"], "id", [], "any"falsefalsefalse237) == (isset($context["category_rovignette_e_id"]) || array_key_exists("category_rovignette_e_id"$context) ? $context["category_rovignette_e_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_e_id" does not exist.'237$this->source); })()))) {
  671.                     // line 238
  672.                     echo "                                                                    ";
  673.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_short_code");
  674.                     echo "
  675.                                                                 ";
  676.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 239
  677. $context["category"], "id", [], "any"falsefalsefalse239) == (isset($context["category_rovignette_f_id"]) || array_key_exists("category_rovignette_f_id"$context) ? $context["category_rovignette_f_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_f_id" does not exist.'239$this->source); })()))) {
  678.                     // line 240
  679.                     echo "                                                                    ";
  680.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_short_code");
  681.                     echo "
  682.                                                                 ";
  683.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 241
  684. $context["category"], "id", [], "any"falsefalsefalse241) == (isset($context["category_rovignette_g_id"]) || array_key_exists("category_rovignette_g_id"$context) ? $context["category_rovignette_g_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_g_id" does not exist.'241$this->source); })()))) {
  685.                     // line 242
  686.                     echo "                                                                    ";
  687.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_short_code"), "html"nulltrue);
  688.                     echo "
  689.                                                                 ";
  690.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 243
  691. $context["category"], "id", [], "any"falsefalsefalse243) == (isset($context["category_rovignette_h_id"]) || array_key_exists("category_rovignette_h_id"$context) ? $context["category_rovignette_h_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_h_id" does not exist.'243$this->source); })()))) {
  692.                     // line 244
  693.                     echo "                                                                    ";
  694.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_short_code"), "html"nulltrue);
  695.                     echo "
  696.                                                                 ";
  697.                 }
  698.                 // line 246
  699.                 echo "                                                            </a>
  700.                                                         </label>
  701.                                                         ";
  702.                 // line 248
  703.                 if (((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse248) % 2) == 0)) {
  704.                     // line 249
  705.                     echo "                                                            </div>
  706.                                                         ";
  707.                 }
  708.                 // line 251
  709.                 echo "                                                    ";
  710.                 ++$context['loop']['index0'];
  711.                 ++$context['loop']['index'];
  712.                 $context['loop']['first'] = false;
  713.                 if (isset($context['loop']['length'])) {
  714.                     --$context['loop']['revindex0'];
  715.                     --$context['loop']['revindex'];
  716.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  717.                 }
  718.             }
  719.             $_parent $context['_parent'];
  720.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  721.             $context array_intersect_key($context$_parent) + $_parent;
  722.             // line 252
  723.             echo "                                                </div>
  724.                                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
  725.                                                     <h3 class=\"font-weight-bolder mb-2\">";
  726.             // line 254
  727.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_start_date"), "html"nulltrue);
  728.             echo "</h3>
  729.                                                     <div class=\"d-flex justify-content-center align-items-center\">
  730.                                                         <input type=\"hidden\" id=\"validFrom\" name=\"validFrom\" ";
  731.             // line 256
  732.             if (twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'256$this->source); })()), "get", [=> "validFrom"], "method"falsefalsefalse256)) {
  733.                 echo " data-value=\"";
  734.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'256$this->source); })()), "get", [=> "validFrom"], "method"falsefalsefalse256), "html"nulltrue);
  735.                 echo "\"
  736.                                                             ";
  737.             } elseif ( !(null ===             // line 257
  738. (isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom"$context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.'257$this->source); })()))) {
  739.                 echo " data-value=\"";
  740.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env, (isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom"$context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.'257$this->source); })()), "m/d/Y"), "html"nulltrue);
  741.                 echo "\"
  742.                                                             ";
  743.             }
  744.             // line 258
  745.             echo ">
  746.                                                         <div data-error-message = '";
  747.             // line 259
  748.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_date_selected"), "html"nulltrue);
  749.             echo "' id=\"datepicker\"></div>
  750.                                                     </div>
  751.                                                     <div class=\"d-flex justify-content-center mt-3\">
  752.                                                         <div class=\"d-flex\">
  753.                                                             <div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
  754.                                                             <div>
  755.                                                                 <a class=\"ml-2 text-dark\">";
  756.             // line 265
  757.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.current_date"), "html"nulltrue);
  758.             echo ":</a> <br/>
  759.                                                                 <h5 class=\"ml-2 text-dark\">";
  760.             // line 266
  761.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""d/m/Y"), "html"nulltrue);
  762.             echo "</h5>
  763.                                                             </div>
  764.                                                         </div>
  765.                                                         <div id=\"divStartDatePicker\">
  766.                                                             <div class=\"d-flex ml-4\">
  767.                                                                 <div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
  768.                                                                 <div>
  769.                                                                     <a class=\"ml-2 text-dark\">";
  770.             // line 273
  771.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.start_date"), "html"nulltrue);
  772.             echo ":</a> <br/>
  773.                                                                     <h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
  774.                                                                 </div>
  775.                                                             </div>
  776.                                                         </div>
  777.                                                     </div>
  778.                                                 </div>
  779.                                                 <div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
  780.                                                     ";
  781.             // line 281
  782.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.info_payment_not_available");
  783.             echo "
  784.                                                 </div>
  785.                                             </div>
  786.                                         </div>
  787.                                     </div>
  788.                                 </div>
  789.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
  790.                                     <div class=\"btn-wrapper\">
  791.                                         <div class=\"first-step error-messages\">
  792.                                         </div>
  793.                                         <button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
  794.                                             <a>";
  795.             // line 293
  796.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.next_step"), "html"nulltrue);
  797.             echo "</a>
  798.                                         </button>
  799.                                     </div>
  800.                                 </div>
  801.                             </div>
  802.                         </div>
  803.                         <div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
  804.                             <div class=\"row my-3\">
  805.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  806.                                     <div class=\"card vignette-card shadow\">
  807.                                         <div class=\"card-body\">
  808.                                             <div class=\"row\">
  809.                                                 <div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 availability-wrapper\" data-error-message=\"";
  810.             // line 305
  811.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_availability_selected"), "html"nulltrue);
  812.             echo "\">
  813.                                                     <h3 class=\"mb-3 font-weight-bolder\">";
  814.             // line 306
  815.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.choose_validity"), "html"nulltrue);
  816.             echo "</h3>
  817.                                                     <div class=\"d-flex justify-content-between\">
  818.                                                         <label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 mt-2 webkit-none\" style=\"display: none\" data-value=\"";
  819.             // line 309
  820.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html"nulltrue);
  821.             echo "\" data-title=\"front\">
  822.                                                             <div class=\"mx-2 my-2\">
  823.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" ";
  824.             // line 311
  825.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'311$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse311) == 1)) {
  826.                 echo " checked ";
  827.             }
  828.             echo " hidden>
  829.                                                                 <h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">";
  830.             // line 312
  831.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html"nulltrue);
  832.             echo "</h2>
  833.                                                                 <a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  834.                                                             </div>
  835.                                                         </label>
  836.                                                     </div>
  837.                                                     <div class=\"d-flex justify-content-between mt-3 mb-3\">
  838.                                                         <label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
  839.             // line 318
  840.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html"nulltrue);
  841.             echo "\" data-title=\"front\">
  842.                                                             <div class=\"mx-2 my-2\">
  843.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" ";
  844.             // line 320
  845.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'320$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse320) == 2)) {
  846.                 echo " checked ";
  847.             }
  848.             echo " hidden required>
  849.                                                                 <h2 id=\"txtAv7Days\" class=\"text-primary txtAvailability\">";
  850.             // line 321
  851.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html"nulltrue);
  852.             echo "</h2>
  853.                                                                 <a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  854.                                                             </div>
  855.                                                         </label>
  856.                                                         <label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
  857.             // line 325
  858.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html"nulltrue);
  859.             echo "\" data-title=\"front\">
  860.                                                             <div class=\"mx-2 my-2\">
  861.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" ";
  862.             // line 327
  863.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'327$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse327) == 6)) {
  864.                 echo " checked ";
  865.             }
  866.             echo " hidden required>
  867.                                                                 <h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">";
  868.             // line 328
  869.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html"nulltrue);
  870.             echo "</h2>
  871.                                                                 <a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  872.                                                             </div>
  873.                                                         </label>
  874.                                                         <label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
  875.             // line 332
  876.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html"nulltrue);
  877.             echo "\" data-title=\"front\">
  878.                                                             <div class=\"mx-2 my-2\">
  879.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" ";
  880.             // line 334
  881.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'334$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse334) == 3)) {
  882.                 echo " checked ";
  883.             }
  884.             echo " hidden>
  885.                                                                 <h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">";
  886.             // line 335
  887.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html"nulltrue);
  888.             echo "</h2>
  889.                                                                 <a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice text-dark\">33.60 LEI</a>
  890.                                                             </div>
  891.                                                         </label>
  892.                                                     </div>
  893.                                                     <div class=\"d-flex justify-content-between\">
  894.                                                         <label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
  895.             // line 341
  896.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html"nulltrue);
  897.             echo "\" data-title=\"front\">
  898.                                                             <div class=\"mx-2 my-2\">
  899.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" ";
  900.             // line 343
  901.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'343$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse343) == 4)) {
  902.                 echo " checked ";
  903.             }
  904.             echo " hidden>
  905.                                                                 <h2 id=\"txtAv90Days\" class=\"text-primary txtAvailability\">";
  906.             // line 344
  907.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html"nulltrue);
  908.             echo "</h2>
  909.                                                                 <a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
  910.                                                             </div>
  911.                                                         </label>
  912.                                                         <label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
  913.             // line 348
  914.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html"nulltrue);
  915.             echo "\" data-title=\"front\">
  916.                                                             <div class=\"mx-2 my-2\">
  917.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" ";
  918.             // line 350
  919.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'350$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse350) == 7)) {
  920.                 echo " checked ";
  921.             }
  922.             echo " hidden>
  923.                                                                 <h2 id=\"txtAv60Days\" class=\"text-primary txtAvailability\">";
  924.             // line 351
  925.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html"nulltrue);
  926.             echo "</h2>
  927.                                                                 <a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
  928.                                                             </div>
  929.                                                         </label>
  930.                                                         <label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
  931.             // line 355
  932.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html"nulltrue);
  933.             echo "\" data-title=\"front\">
  934.                                                             <div class=\"mx-2 my-2\">
  935.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" ";
  936.             // line 357
  937.             if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'357$this->source); })()), "get", [=> "availability"], "method"falsefalsefalse357) == 5)) {
  938.                 echo " checked ";
  939.             }
  940.             echo " hidden>
  941.                                                                 <h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">";
  942.             // line 358
  943.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html"nulltrue);
  944.             echo "</h2>
  945.                                                                 <a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\">333.60 LEI</a>
  946.                                                             </div>
  947.                                                         </label>
  948.                                                     </div>
  949.                                                 </div>
  950.                                                 <div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
  951.                                                     <h3 class=\"mb-3 font-weight-bolder\">";
  952.             // line 365
  953.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_data"), "html"nulltrue);
  954.             echo "</h3>
  955.                                                     <div class=\"row mt-3 d-flex align-items-end\">
  956.                                                         <div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
  957.                                                             <label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  958.             // line 368
  959.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html"nulltrue);
  960.             echo "</label>
  961.                                                             <select id=\"carCountry\" name=\"carCountry\" class=\"form-control input-custom input-custom-grey\" required>
  962.                                                                 <option value=\"\">";
  963.             // line 370
  964.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html"nulltrue);
  965.             echo "</option>
  966.                                                                 ";
  967.             // line 371
  968.             $context['_parent'] = $context;
  969.             $context['_seq'] = twig_ensure_traversable(twig_sort_filter((isset($context["countries"]) || array_key_exists("countries"$context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.'371$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'371$this->source); })()), "name", [], "any"falsefalsefalse371) > twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'371$this->source); })()), "name", [], "any"falsefalsefalse371)); }));
  970.             foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  971.                 // line 372
  972.                 echo "                                                                    <option id=\"";
  973.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["country"], "code", [], "any"falsefalsefalse372), "html"nulltrue);
  974.                 echo "\" value=\"";
  975.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["country"], "code", [], "any"falsefalsefalse372), "html"nulltrue);
  976.                 echo "\" ";
  977.                 if ((twig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'372$this->source); })()), "get", [=> "carCountry"], "method"falsefalsefalse372) == twig_get_attribute($this->env$this->source$context["country"], "code", [], "any"falsefalsefalse372))) {
  978.                     echo " selected ";
  979.                 }
  980.                 echo ">";
  981.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["country"], "name", [], "any"falsefalsefalse372), "html"nulltrue);
  982.                 echo "</option>
  983.                                                                 ";
  984.             }
  985.             $_parent $context['_parent'];
  986.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  987.             $context array_intersect_key($context$_parent) + $_parent;
  988.             // line 374
  989.             echo "                                                            </select>
  990.                                                         </div>
  991.                                                         <div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
  992.                                                             <label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  993.             // line 377
  994.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html"nulltrue);
  995.             echo "</label>
  996.                                                             <input id=\"registrationPlate\" data-warning-message=\"";
  997.             // line 378
  998.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.warning.characters_not_allowed"), "html"nulltrue);
  999.             echo "\" data-error-message=\"";
  1000.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_plate"), "html"nulltrue);
  1001.             echo "\" name=\"registrationPlate\"
  1002.                                                                    maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey
  1003.                                                             \" placeholder=\"";
  1004.             // line 380
  1005.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html"nulltrue);
  1006.             echo "\" oninvalid=\"this.setCustomValidity('";
  1007.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_fill_this_field"), "html"nulltrue);
  1008.             echo "')\"
  1009.                                                                    oninput=\"setCustomValidity('')\"
  1010.                                                                     ";
  1011.             // line 382
  1012.             if ((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'382$this->source); })())) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'382$this->source); })()), "registrationPlate", [], "any"falsefalsefalse382))) && twig_get_attribute($this->env$this->source, ($context["vehicle"] ?? null), "registrationPlate", [], "any"truetruefalse382))) {
  1013.                 // line 383
  1014.                 echo "                                                                        value=\"";
  1015.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["vehicle"]) || array_key_exists("vehicle"$context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.'383$this->source); })()), "registrationPlate", [], "any"falsefalsefalse383), "html"nulltrue);
  1016.                 echo "\"
  1017.                                                                     ";
  1018.             } elseif (twig_get_attribute($this->env$this->source,             // line 384
  1019. (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'384$this->source); })()), "get", [=> "registrationPlate"], "method"falsefalsefalse384)) {
  1020.                 // line 385
  1021.                 echo "                                                                        value=\"";
  1022.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["oldValues"]) || array_key_exists("oldValues"$context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.'385$this->source); })()), "get", [=> "registrationPlate"], "method"falsefalsefalse385), "html"nulltrue);
  1023.                 echo "\"
  1024.                                                                     ";
  1025.             }
  1026.             // line 386
  1027.             echo " required>
  1028.                                                             <div data-error-message = '";
  1029.             // line 387
  1030.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html"nulltrue);
  1031.             echo "' id=\"registrationPlateError\"></div>
  1032.                                                         </div>
  1033.                                                     </div>
  1034.                                                     <div class=\"row mt-2\">
  1035.                                                         <div class=\"col-12\">
  1036.                                                             <div id=\"vinBlock\" class=\"d-none\">
  1037.                                                                 <label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 98.5% !important;\">";
  1038.             // line 394
  1039.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html"nulltrue);
  1040.             echo " (";
  1041.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html"nulltrue);
  1042.             echo ")</label>
  1043.                                                                 <input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 98.5% !important;\"
  1044.                                                                        class=\"form-control input-custom input-custom-grey\" placeholder=\"";
  1045.             // line 396
  1046.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html"nulltrue);
  1047.             echo " (";
  1048.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html"nulltrue);
  1049.             echo ")\">
  1050.                                                             </div>
  1051.                                                         </div>
  1052.                                                     </div>
  1053.                                                     ";
  1054.             // line 400
  1055.             if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'400$this->source); })()), "request", [], "any"falsefalsefalse400), "locale", [], "any"falsefalsefalse400) == "ro") && twig_get_attribute($this->env$this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus"$context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.'400$this->source); })()), "vignetteSmsStatus", [], "any"falsefalsefalse400))) {
  1056.                 // line 401
  1057.                 echo "                                                        <div class=\"row mt-2\">
  1058.                                                             <div class=\"col-12\">
  1059.                                                                 <div id=\"divAlertSms\" class=\"vignette-alert-container px-2 py-3\">
  1060.                                                                     <div class=\"d-flex justify-content-between align-items-center-center\">
  1061.                                                                         <div class=\"custom-control custom-checkbox\">
  1062.                                                                             <input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"";
  1063.                 // line 406
  1064.                 echo twig_escape_filter($this->env, (isset($context["smsPrice"]) || array_key_exists("smsPrice"$context) ? $context["smsPrice"] : (function () { throw new RuntimeError('Variable "smsPrice" does not exist.'406$this->source); })()), "html"nulltrue);
  1065.                 echo "\">
  1066.                                                                             <label for=\"vignetteAlert\" class=\"custom-control-label\">
  1067.                                                                                 <h4 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">";
  1068.                 // line 408
  1069.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.sms_alert"), "html"nulltrue);
  1070.                 echo "</h4>
  1071.                                                                             </label>
  1072.                                                                         </div>
  1073.                                                                         <div>
  1074.                                                                             <h4>";
  1075.                 // line 412
  1076.                 echo twig_escape_filter($this->env, (isset($context["smsPrice"]) || array_key_exists("smsPrice"$context) ? $context["smsPrice"] : (function () { throw new RuntimeError('Variable "smsPrice" does not exist.'412$this->source); })()), "html"nulltrue);
  1077.                 echo " Lei (";
  1078.                 echo twig_escape_filter($this->env, (isset($context["sms_price_eur"]) || array_key_exists("sms_price_eur"$context) ? $context["sms_price_eur"] : (function () { throw new RuntimeError('Variable "sms_price_eur" does not exist.'412$this->source); })()), "html"nulltrue);
  1079.                 echo " Eur)</h4>
  1080.                                                                         </div>
  1081.                                                                     </div>
  1082.                                                                     <div>
  1083.                                                                         <a>";
  1084.                 // line 416
  1085.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.alert_description"), "html"nulltrue);
  1086.                 echo "</a>
  1087.                                                                     </div>
  1088.                                                                 </div>
  1089.                                                             </div>
  1090.                                                         </div>
  1091.                                                     ";
  1092.             }
  1093.             // line 422
  1094.             echo "                                                    <div id=\"app\">
  1095.                                                         ";
  1096.             // line 423
  1097.             if ((twig_get_attribute($this->env$this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus"$context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.'423$this->source); })()), "roadAssistanceStatus", [], "any"falsefalsefalse423) && twig_get_attribute($this->env$this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus"$context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.'423$this->source); })()), "vignetteRoadAssistanceStatus", [], "any"falsefalsefalse423))) {
  1098.                 // line 424
  1099.                 echo "                                                            <road-assistance
  1100.                                                                     :price=\"";
  1101.                 // line 425
  1102.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["road_assistance_service"]) || array_key_exists("road_assistance_service"$context) ? $context["road_assistance_service"] : (function () { throw new RuntimeError('Variable "road_assistance_service" does not exist.'425$this->source); })()), "retrieveDefaultPrice", [], "any"falsefalsefalse425), "html"nulltrue);
  1103.                 echo "\"
  1104.                                                                     :terms-and-conditions-route=\"'";
  1105.                 // line 426
  1106.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "terms-and-conditions-road-assistance"]);
  1107.                 echo "'\"
  1108.                                                                     v-bind:is-mobile=\"false\"></road-assistance>
  1109.                                                         ";
  1110.             }
  1111.             // line 429
  1112.             echo "                                                    </div>
  1113.                                                         <div class=\"row mt-2\">
  1114.                                                             <div class=\"col-12\">
  1115.                                                                 <div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
  1116.                                                                     <div class=\"d-flex justify-content-between align-items-center-center\">
  1117.                                                                         <div class=\"custom-control custom-checkbox\">
  1118.                                                                             <input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
  1119.                                                                             <label for=\"email_allowed\" class=\"custom-control-label\">
  1120.                                                                                 <h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">";
  1121.             // line 437
  1122.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.cnair_alert"), "html"nulltrue);
  1123.             echo "</h5>
  1124.                                                                             </label>
  1125.                                                                         </div>
  1126.                                                                     </div>
  1127.                                                                     <div id=\"divEmail\" class=\"d-none\">
  1128.                                                                         <input id=\"email\" name=\"email\" type=\"text\" class=\"form-control input-custom input-custom-grey required\" >
  1129.                                                                     </div>
  1130.                                                                 </div>
  1131.                                                             </div>
  1132.                                                         </div>
  1133.                                                 </div>
  1134.                                             </div>
  1135.                                         </div>
  1136.                                     </div>
  1137.                                 </div>
  1138.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
  1139.                                     <div>
  1140.                                         <div class=\"second-step error-messages\">
  1141.                                         </div>
  1142.                                         <div class=\"btn-wrapper\">
  1143.                                             <button id=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>";
  1144.             // line 458
  1145.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.buy_now"), "html"nulltrue);
  1146.             echo "</a></button>
  1147.                                         </div>
  1148.                                     </div>
  1149.                                 </div>
  1150.                             </div>
  1151.                         </div>
  1152.                     </form>
  1153.                 </div>
  1154.                 <div class=\"bs-stepper-content\">
  1155.                     <div class=\"row my-3\">
  1156.                         ";
  1157.             // line 469
  1158.             if ((twig_length_filter($this->env, (isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette"$context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.'469$this->source); })())) > 0)) {
  1159.                 // line 470
  1160.                 echo "                            ";
  1161.                 $context['_parent'] = $context;
  1162.                 $context['_seq'] = twig_ensure_traversable((isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette"$context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.'470$this->source); })()));
  1163.                 foreach ($context['_seq'] as $context["key"] => $context["block"]) {
  1164.                     // line 471
  1165.                     echo "                                <div class=\"col-12 col-sm-6 col-md-6 col-lg-3 col-xl-3 my-3\">
  1166.                                     <button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
  1167.                     // line 472
  1168.                     echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1169.                     echo "\" aria-expanded=\"false\" aria-controls=\"collapse";
  1170.                     echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1171.                     echo "\">";
  1172.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["block"], "name", [], "any"falsefalsefalse472), "html"nulltrue);
  1173.                     echo "</button>
  1174.                                     <div class=\"collapse\" id=\"collapse";
  1175.                     // line 473
  1176.                     echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1177.                     echo "\">
  1178.                                         <div class=\"card card-body border\">";
  1179.                     // line 474
  1180.                     echo twig_get_attribute($this->env$this->source$context["block"], "content", [], "any"falsefalsefalse474);
  1181.                     echo "</div>
  1182.                                     </div>
  1183.                                 </div>
  1184.                             ";
  1185.                 }
  1186.                 $_parent $context['_parent'];
  1187.                 unset($context['_seq'], $context['_iterated'], $context['key'], $context['block'], $context['_parent'], $context['loop']);
  1188.                 $context array_intersect_key($context$_parent) + $_parent;
  1189.                 // line 478
  1190.                 echo "                        ";
  1191.             }
  1192.             // line 479
  1193.             echo "                    </div>
  1194.                 </div>
  1195.             </div>
  1196.         </div>
  1197.         <script>
  1198.             \$(document).ready(function () {
  1199.                 let locale = getLocale();
  1200.                 function getLocale() {
  1201.                     let url = Routing.generate('app_shop_get_locale');
  1202.                     \$.ajax({
  1203.                         url: url,
  1204.                         type: 'GET',
  1205.                         async: false,
  1206.                         dataType: 'json',
  1207.                         success: function (locale) {
  1208.                             if (locale == 'ro_RO' || locale == 'ro') {
  1209.                                 \$('[name=\"carCountry\"] option').filter(function() {
  1210.                                     return (\$(this).val() == 'RO');
  1211.                                 }).prop('selected', true).change();
  1212.                             }
  1213.                         },
  1214.                         error: function (data) {
  1215.                         }
  1216.                     });
  1217.                 }
  1218.             })
  1219.             var stepper = new Stepper(\$('.bs-stepper')[0]);
  1220.         </script>
  1221.         <script>
  1222.             const route = \"";
  1223.             // line 511
  1224.             echo twig_escape_filter($this->envtwig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage"), "js"), "html"nulltrue);
  1225.             echo "\";
  1226.             const roadAssistanceTranslations = '";
  1227.             // line 512
  1228.             echo json_encode((isset($context["roadAssistanceTranslations"]) || array_key_exists("roadAssistanceTranslations"$context) ? $context["roadAssistanceTranslations"] : (function () { throw new RuntimeError('Variable "roadAssistanceTranslations" does not exist.'512$this->source); })()));
  1229.             echo "';
  1230.         </script>
  1231.         ";
  1232.             // line 515
  1233.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vue");
  1234.             echo "
  1235.         <style>
  1236.             .text-primary {
  1237.                 color: #E95A31;
  1238.             }
  1239.             .webkit-none {
  1240.                 -webkit-appearance: none !important;
  1241.             }
  1242.             .ui-state-highlight, .ui-widget-content .ui-state-highlight {
  1243.                 background: none !important;
  1244.                 color: #454545 !important;
  1245.                 border: none !important;
  1246.             }
  1247.             .modal-backdrop {
  1248.                 opacity: 50% !important;
  1249.             }
  1250.             .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
  1251.                 background-color: #e95a31 !important;
  1252.             }
  1253.             .b-calendar-grid-body {
  1254.                 margin-left: .5rem!important;
  1255.                 margin-right: .5rem!important;
  1256.             }
  1257.             .b-calendar-grid-weekdays {
  1258.                 border: none !important;
  1259.             }
  1260.             .loading {
  1261.                 display: flex;
  1262.                 flex-direction: column;
  1263.                 justify-content: center;
  1264.                 align-items: center;
  1265.                 text-align: center;
  1266.                 min-height: 100vh;
  1267.                 z-index: 999;
  1268.                 position: fixed;
  1269.                 background-color: rgba(0,0,0,0.7);
  1270.                 opacity: 100%;
  1271.                 width: 100%;
  1272.                 height: 100%;
  1273.             }
  1274.         </style>
  1275.     ";
  1276.         } else {
  1277.             // line 562
  1278.             echo "        <div class=\"card text-center my-3\">
  1279.             <div class=\"card-header\">
  1280.                 <h2>";
  1281.             // line 564
  1282.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.disabled_temporary"), "html"nulltrue);
  1283.             echo "</h2>
  1284.             </div>
  1285.             <div class=\"card-body\">
  1286.                 <a href=\"";
  1287.             // line 567
  1288.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  1289.             echo "\">";
  1290.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.back_to_store"), "html"nulltrue);
  1291.             echo "</a>
  1292.             </div>
  1293.         </div>
  1294.     ";
  1295.         }
  1296.         
  1297.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1298.         
  1299.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1300.     }
  1301.     public function getTemplateName()
  1302.     {
  1303.         return "@templates/Front/vignette.html.twig";
  1304.     }
  1305.     public function isTraitable()
  1306.     {
  1307.         return false;
  1308.     }
  1309.     public function getDebugInfo()
  1310.     {
  1311.         return array (  1347 => 567,  1341 => 564,  1337 => 562,  1287 => 515,  1281 => 512,  1277 => 511,  1243 => 479,  1240 => 478,  1230 => 474,  1226 => 473,  1218 => 472,  1215 => 471,  1210 => 470,  1208 => 469,  1194 => 458,  1170 => 437,  1160 => 429,  1154 => 426,  1150 => 425,  1147 => 424,  1145 => 423,  1142 => 422,  1133 => 416,  1124 => 412,  1117 => 408,  1112 => 406,  1105 => 401,  1103 => 400,  1094 => 396,  1087 => 394,  1077 => 387,  1074 => 386,  1068 => 385,  1066 => 384,  1061 => 383,  1059 => 382,  1052 => 380,  1045 => 378,  1041 => 377,  1036 => 374,  1019 => 372,  1015 => 371,  1011 => 370,  1006 => 368,  1000 => 365,  990 => 358,  984 => 357,  979 => 355,  972 => 351,  966 => 350,  961 => 348,  954 => 344,  948 => 343,  943 => 341,  934 => 335,  928 => 334,  923 => 332,  916 => 328,  910 => 327,  905 => 325,  898 => 321,  892 => 320,  887 => 318,  878 => 312,  872 => 311,  867 => 309,  861 => 306,  857 => 305,  842 => 293,  827 => 281,  816 => 273,  806 => 266,  802 => 265,  793 => 259,  790 => 258,  783 => 257,  777 => 256,  772 => 254,  768 => 252,  754 => 251,  750 => 249,  748 => 248,  744 => 246,  738 => 244,  736 => 243,  731 => 242,  729 => 241,  724 => 240,  722 => 239,  717 => 238,  715 => 237,  710 => 236,  708 => 235,  703 => 234,  701 => 233,  696 => 232,  694 => 231,  689 => 230,  687 => 229,  683 => 228,  679 => 227,  673 => 226,  668 => 225,  662 => 223,  660 => 222,  655 => 221,  653 => 220,  648 => 219,  646 => 218,  641 => 217,  639 => 216,  634 => 215,  632 => 214,  627 => 213,  625 => 212,  620 => 211,  618 => 210,  613 => 209,  611 => 208,  603 => 207,  598 => 206,  594 => 204,  591 => 203,  574 => 202,  570 => 201,  559 => 193,  547 => 184,  537 => 177,  524 => 167,  516 => 162,  511 => 160,  507 => 159,  502 => 157,  490 => 148,  478 => 139,  471 => 135,  455 => 122,  448 => 118,  443 => 115,  441 => 114,  436 => 112,  432 => 111,  428 => 110,  424 => 109,  420 => 108,  416 => 107,  412 => 106,  408 => 105,  405 => 104,  403 => 103,  398 => 102,  396 => 101,  391 => 99,  384 => 97,  374 => 90,  369 => 87,  359 => 86,  343 => 79,  340 => 78,  338 => 77,  332 => 73,  330 => 72,  324 => 69,  321 => 68,  311 => 67,  298 => 61,  286 => 52,  282 => 51,  278 => 50,  274 => 49,  270 => 48,  266 => 47,  262 => 46,  258 => 45,  254 => 44,  250 => 43,  246 => 42,  242 => 41,  236 => 38,  232 => 37,  223 => 31,  215 => 27,  205 => 26,  193 => 22,  189 => 21,  185 => 20,  181 => 19,  176 => 18,  166 => 17,  151 => 8,  141 => 7,  120 => 5,  109 => 64,  107 => 26,  103 => 25,  100 => 24,  98 => 17,  91 => 15,  84 => 10,  82 => 7,  79 => 6,  77 => 5,  74 => 4,  64 => 3,  41 => 1,);
  1312.     }
  1313.     public function getSourceContext()
  1314.     {
  1315.         return new Source("{% extends '@templates/Front/Shop/layout.html.twig' %}
  1316. {% block head %}
  1317.     <head>
  1318.         {% block title %} <title>{{ 'app.ui.calculator_vignette_price'|trans }} | Roviniete.ro</title> {% endblock %}
  1319.         {% block metatags %}
  1320.             <meta name=\"description\" content=\"{% if vignetteDescriptionForSeo|length > 0 %}{{ vignetteDescriptionForSeo.content }}{% endif %}\"/>
  1321.         {% endblock %}
  1322.         <meta charset=\"utf-8\">
  1323.         <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  1324.         <meta http-equiv=\"Content-Language\" content=\"ro\">
  1325.         <meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
  1326.         <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
  1327.         <meta name=\"keywords\" content=\"{% if vignetteKeywordsForSeo|length > 0 %}{{ vignetteKeywordsForSeo.content }}{% endif %}\"/>
  1328.         {% block stylesheets %}
  1329.             <link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/homepage.css') }}\">
  1330.             <link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bootstrap.min.css') }}\">
  1331.             {{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
  1332.             <link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/vignette_shop.v1.css') }}\">
  1333.             <link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bs-stepper.css') }}\">
  1334.         {% endblock %}
  1335.         {{ sonata_block_render_event('sylius.shop.layout.head') }}
  1336.         {% block javascripts %}
  1337.             <script src=\"{{ asset('assets/shop/js/sentry-bundle.min.js') }}\"></script>
  1338.             <script>
  1339.                  if (typeof Sentry !== 'undefined') {
  1340.                     Sentry.init({
  1341.                         dsn: \"{{ sentry_dsn }}\",
  1342.                         integrations: [new Sentry.Integrations.TryCatch({
  1343.                             eventTarget: false,
  1344.                         })]
  1345.                     });
  1346.                 }
  1347.                 MESSAGE_INVALID_REGISTRATION_PLATE = '{{ 'app.ui.invalid_registration_plate'|trans }}';
  1348.                 MESSAGE_INVALID_VIN = '{{ 'app.ui.invalid_vin'|trans }}'
  1349.                 let roadAssistanceValidFrom = null;
  1350.             </script>
  1351.             <script src=\"{{ asset('assets/shop/js/jquery.min.js') }}\"></script>
  1352.             <script src=\"{{ asset('/assets/shop/js/bs-stepper.js') }}\"></script>
  1353.             <script src=\"{{ asset('assets/shop/js/jquery-ui.min.js') }}\"></script>
  1354.             <script src=\"{{ asset('assets/shop/js/popper.min.js') }}\"></script>
  1355.             <script src=\"{{ asset('assets/shop/js/bootstrap.min.js') }}\"></script>
  1356.             <script src=\"{{ asset('assets/shop/js/moment.min.js') }}\"></script>
  1357.             <script src=\"{{ asset('assets/shop/js/jquery.validate.min.js') }}\"></script>
  1358.             {{ encore_entry_script_tags('vignette') }}
  1359.             <script src=\"{{ asset('assets/shop/js/leftmenu.js') }}\"></script>
  1360.             <script src=\"{{ asset('/bundles/fosjsrouting/js/router.js') }}\"></script>
  1361.             <script src=\"{{ asset('/assets/shop/js/_bootstrap_select.min.js') }}\"></script>
  1362.             <script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
  1363.             <script>
  1364.                 dataLayer = [];
  1365.             </script>
  1366.             <!-- Google Tag Manager -->
  1367.             <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  1368.                         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  1369.                     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  1370.                     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  1371.                 })(window,document,'script','dataLayer','{{ gtm_code }}');</script>
  1372.             <!-- End Google Tag Manager -->
  1373.         {% endblock %}
  1374.     </head>
  1375. {% endblock %}
  1376. {% block header %}
  1377.     <!-- Google Tag Manager (noscript) -->
  1378.     <noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id={{ gtm_code }}\"
  1379.                       height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  1380.     <!-- End Google Tag Manager (noscript) -->
  1381.     {% include '@templates/AdminCustom/Layout/loading.html.twig' with {showLoading: true} %}
  1382.     <div class=\"custom-container\">
  1383.         <div style=\"max-width: 100%\">
  1384.             <div class=\"bg-white\">
  1385.                 <header>
  1386.                     {% include '@templates/Front/Shop/v2/_header.html.twig' %}
  1387.                     {{ sonata_block_render_event('sylius.shop.layout.after_header') }}
  1388.                 </header>
  1389.             </div>
  1390.         </div>
  1391.     </div>
  1392. {% endblock %}
  1393. {% block content %}
  1394.     <div id=\"loadingDiv\" class=\"loading d-none\">
  1395.         <div class=\"card w-50\">
  1396.             <div class=\"card-body bg-loading-card\">
  1397.                 <img src=\"{{ asset('assets/shop/images/spinner.gif') }}\"
  1398.                      style=\"width: 50px; pointer-events: none\"/>
  1399.                 <h5>Se verifica datele</h5>
  1400.             </div>
  1401.         </div>
  1402.     </div>
  1403.     <div class=\"d-inline-flex mx-3\">
  1404.         <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section text-primary\" style=\"font-size: 0.8em;\">{{ 'sylius.ui.home'|trans }}</a>
  1405.         <div class=\"divider\"> /</div>
  1406.         <small class=\"section active\">{{ 'app.ui.vignettes'|trans }}</small>
  1407.     </div>
  1408.     {% if lastProductStatus.vignetteStatus %}
  1409.         <h2 class=\"mx-3\">{{ 'app.ui.calculator_vignette_price'|trans}}</h2>
  1410.         {% set smsPrice = sms_price_ron.calculateSmsPrice %}
  1411.         <script type=\"text/javascript\">
  1412.             var one_day = '{{ 'app.ui.1_day'|trans|lower }}';
  1413.             var seven_days = '{{ 'app.ui.7_days'|trans|lower }}';
  1414.             var ten_days = '{{ 'app.ui.10_days'|trans|lower }}';
  1415.             var thirty_days = '{{ 'app.ui.30_days'|trans|lower }}';
  1416.             var sixty_days = '{{ 'app.ui.60_days'|trans|lower }}';
  1417.             var ninety_days = '{{ 'app.ui.90_days'|trans|lower }}';
  1418.             var twelve_months = '{{ 'app.ui.12_months'|trans|lower }}';
  1419.             var locale = '{{ app.request.getLocale() }}';
  1420.         </script>
  1421.         {% set oldValues = app.request.request %}
  1422.         <div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
  1423.             <div class=\"header text-center\">
  1424.                 <h2>{{ 'sylius.ui.warning'|trans }}</h2>
  1425.             </div>
  1426.             <p>
  1427.             <h5 class=\"text-center text-primary vignette-already-bought d-none\">
  1428.                 {{ 'app.ui.vignette_available_for_choosen_date'|trans }}
  1429.             </h5>
  1430.             <h5 class=\"special-error\">
  1431.             </h5>
  1432.             <a class=\"text-center\">
  1433.             </a>
  1434.             </p>
  1435.             <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
  1436.                 <span aria-hidden=\"true\">&times;</span>
  1437.             </button>
  1438.         </div>
  1439.         <div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
  1440.             <div class=\"header text-center\">
  1441.                 <h2>{{ 'app.ui.error'|trans }}</h2>
  1442.             </div>
  1443.             <p>
  1444.             <h5 class=\"text-center text-primary\">
  1445.                 {{ 'app.ui.vignette_category_error'|trans }}
  1446.             </h5>
  1447.             <h5 class=\"special-error\">
  1448.             </h5>
  1449.             <a class=\"text-center\">
  1450.             </a>
  1451.             </p>
  1452.         </div>
  1453.         <div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
  1454.             {{ 'app.ui.no_special_characters_allowed'|trans }}
  1455.         </div>
  1456.         <div style=\"margin-bottom: 100px;\">
  1457.             <div id=\"stepperForm\" class=\"bs-stepper linear\">
  1458.                 <div class=\"row\" style=\"padding: 0 20px 20px;\">
  1459.                     <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  1460.                         <div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
  1461.                             <div class=\"card-body d-flex justify-content-between align-items-center\">
  1462.                                 <div class=\"d-inline-flex justify-content-center align-items-center\">
  1463.                                     <img src=\"{{ asset('assets/shop/images/icons/ic_check_small_dark.png') }}\" style=\"width: 30px\"/>
  1464.                                     <h3>
  1465.                                         <a class=\"font-weight-bolder text-primary\">{{ 'app.ui.vignette_details'|trans }}:</a>
  1466.                                         <a class=\"font-weight-bolder text-dark\">{{ 'app.ui.category'|trans }} - </a>
  1467.                                         <a id=\"categoryTitleText\">-</a>;
  1468.                                         <a class=\"font-weight-bolder text-dark\">{{ 'app.ui.valid_from'|trans }} - </a>
  1469.                                         <a id=\"availabilityTitleText\">-</a>
  1470.                                     </h3>
  1471.                                 </div>
  1472.                                 <div id=\"editVignetteStep1\">
  1473.                                     <img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png') }}\" style=\"width: 30px\"/>
  1474.                                 </div>
  1475.                             </div>
  1476.                         </div>
  1477.                     </div>
  1478.                 </div>
  1479.                 <div class=\"bs-stepper-header d-none\" role=\"tablist\">
  1480.                     <div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
  1481.                         <button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
  1482.                             <span class=\"bs-stepper-circle\"><a>1</a></span>
  1483.                             <small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">{{'app.ui.vignette_details'|trans|upper}}</small>
  1484.                         </button>
  1485.                     </div>
  1486.                     <div class=\"bs-stepper-line\"></div>
  1487.                     <div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
  1488.                         <button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
  1489.                             <span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
  1490.                             <small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">{{'app.ui.car_data'|trans|upper}} </small>
  1491.                         </button>
  1492.                     </div>
  1493.                     <div class=\"bs-stepper-line\"></div>
  1494.                 </div>
  1495.                 <div class=\"bs-stepper-content\">
  1496.                     <form id=\"vignetteForm\" method=\"POST\">
  1497.                         <input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
  1498.                         <input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
  1499.                         <input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"{{ lastProductStatus.extraOptionsStatus }}\">
  1500.                         <div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
  1501.                             <div class=\"row my-3\">
  1502.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  1503.                                     <div class=\"card vignette-card shadow\">
  1504.                                         <div class=\"card-body\">
  1505.                                             <div class=\"row\">
  1506.                                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
  1507.                                                     <h3 id=\"selectedCategoryText\" class=\"mb-2 font-weight-bolder\">{{'app.ui.select_car_type'|trans}}</h3>
  1508.                                                     {% for category in vignetteCategories %}
  1509.                                                         {% if loop.index % 2 != 0 %}
  1510.                                                             <div class=\"d-flex justify-content-center my-2\">
  1511.                                                         {% endif %}
  1512.                                                         <label type=\"button\" for=\"{{ category.code|first|lower }}\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\">
  1513.                                                             <input type=\"radio\" name=\"category\" data-error-message=\"{{'app.errors.no_category_selected'|trans }}\" id=\"{{ category.code|first|lower }}\" value=\"{{ category.id }}\" data-category=\"
  1514.                                                             {% if category.id == category_rovignette_a_id%}
  1515.                                                                 {{ 'app.ui.category_rovignette_a_name'|trans }}
  1516.                                                             {% elseif category.id == category_rovignette_b_id %}
  1517.                                                                 {{ 'app.ui.category_rovignette_b_name'|trans }}
  1518.                                                             {% elseif category.id == category_rovignette_c_id %}
  1519.                                                                 {{ 'app.ui.category_rovignette_c_name'|trans|raw }}
  1520.                                                             {% elseif category.id == category_rovignette_d_id %}
  1521.                                                                 {{ 'app.ui.category_rovignette_d_name'|trans }}
  1522.                                                             {% elseif category.id == category_rovignette_e_id %}
  1523.                                                                 {{ 'app.ui.category_rovignette_e_name'|trans|raw }}
  1524.                                                             {% elseif category.id == category_rovignette_f_id %}
  1525.                                                                 {{ 'app.ui.category_rovignette_f_name'|trans|raw }}
  1526.                                                             {% elseif category.id == category_rovignette_g_id %}
  1527.                                                                 {{ 'app.ui.category_rovignette_g_name'|trans }}
  1528.                                                             {% elseif category.id == category_rovignette_h_id %}
  1529.                                                                 {{ 'app.ui.category_rovignette_h_name'|trans }}
  1530.                                                             {% endif %}
  1531.                                                                \" {% if vehicle is not null and vehicle.roVignetteCategory is not null and vehicle.roVignetteCategory.id is defined  and vehicle.roVignetteCategory.id == category.id %} checked
  1532.                                                                 {% elseif oldValues.get('category') == category.id %} checked {% endif %} hidden>
  1533.                                                             <img src=\"{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '.png')}}\" style=\"width: 46px\"/> <br/>
  1534.                                                             <a class=\"text-dark\" id=\"vehicleType-{{category.code|first|lower}}\">
  1535.                                                                 {% if category.id == category_rovignette_a_id%}
  1536.                                                                     {{ 'app.ui.category_rovignette_a_short_code'|trans }}
  1537.                                                                 {% elseif category.id == category_rovignette_b_id %}
  1538.                                                                     {{ 'app.ui.category_rovignette_b_short_code'|trans }}
  1539.                                                                 {% elseif category.id == category_rovignette_c_id %}
  1540.                                                                     {{ 'app.ui.category_rovignette_c_short_code'|trans|raw }}
  1541.                                                                 {% elseif category.id == category_rovignette_d_id %}
  1542.                                                                     {{ 'app.ui.category_rovignette_d_short_code'|trans }}
  1543.                                                                 {% elseif category.id == category_rovignette_e_id %}
  1544.                                                                     {{ 'app.ui.category_rovignette_e_short_code'|trans|raw }}
  1545.                                                                 {% elseif category.id == category_rovignette_f_id %}
  1546.                                                                     {{ 'app.ui.category_rovignette_f_short_code'|trans|raw }}
  1547.                                                                 {% elseif category.id == category_rovignette_g_id %}
  1548.                                                                     {{ 'app.ui.category_rovignette_g_short_code'|trans }}
  1549.                                                                 {% elseif category.id == category_rovignette_h_id %}
  1550.                                                                     {{ 'app.ui.category_rovignette_h_short_code'|trans }}
  1551.                                                                 {% endif %}
  1552.                                                             </a>
  1553.                                                         </label>
  1554.                                                         {% if loop.index % 2 == 0 %}
  1555.                                                             </div>
  1556.                                                         {% endif %}
  1557.                                                     {% endfor %}
  1558.                                                 </div>
  1559.                                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
  1560.                                                     <h3 class=\"font-weight-bolder mb-2\">{{ 'app.ui.select_start_date'|trans}}</h3>
  1561.                                                     <div class=\"d-flex justify-content-center align-items-center\">
  1562.                                                         <input type=\"hidden\" id=\"validFrom\" name=\"validFrom\" {% if oldValues.get('validFrom') %} data-value=\"{{ oldValues.get('validFrom')}}\"
  1563.                                                             {% elseif oldValidFrom is not null %} data-value=\"{{ oldValidFrom|date(\"m/d/Y\") }}\"
  1564.                                                             {% endif %}>
  1565.                                                         <div data-error-message = '{{'app.errors.no_date_selected'|trans }}' id=\"datepicker\"></div>
  1566.                                                     </div>
  1567.                                                     <div class=\"d-flex justify-content-center mt-3\">
  1568.                                                         <div class=\"d-flex\">
  1569.                                                             <div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
  1570.                                                             <div>
  1571.                                                                 <a class=\"ml-2 text-dark\">{{'app.ui.current_date'|trans}}:</a> <br/>
  1572.                                                                 <h5 class=\"ml-2 text-dark\">{{ \"now\"|date(\"d/m/Y\") }}</h5>
  1573.                                                             </div>
  1574.                                                         </div>
  1575.                                                         <div id=\"divStartDatePicker\">
  1576.                                                             <div class=\"d-flex ml-4\">
  1577.                                                                 <div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
  1578.                                                                 <div>
  1579.                                                                     <a class=\"ml-2 text-dark\">{{'app.ui.start_date'|trans}}:</a> <br/>
  1580.                                                                     <h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
  1581.                                                                 </div>
  1582.                                                             </div>
  1583.                                                         </div>
  1584.                                                     </div>
  1585.                                                 </div>
  1586.                                                 <div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
  1587.                                                     {{ 'app.ui.info_payment_not_available'|trans|raw }}
  1588.                                                 </div>
  1589.                                             </div>
  1590.                                         </div>
  1591.                                     </div>
  1592.                                 </div>
  1593.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
  1594.                                     <div class=\"btn-wrapper\">
  1595.                                         <div class=\"first-step error-messages\">
  1596.                                         </div>
  1597.                                         <button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
  1598.                                             <a>{{'app.ui.next_step'|trans}}</a>
  1599.                                         </button>
  1600.                                     </div>
  1601.                                 </div>
  1602.                             </div>
  1603.                         </div>
  1604.                         <div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
  1605.                             <div class=\"row my-3\">
  1606.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
  1607.                                     <div class=\"card vignette-card shadow\">
  1608.                                         <div class=\"card-body\">
  1609.                                             <div class=\"row\">
  1610.                                                 <div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 availability-wrapper\" data-error-message=\"{{'app.errors.no_availability_selected'|trans }}\">
  1611.                                                     <h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.choose_validity'|trans}}</h3>
  1612.                                                     <div class=\"d-flex justify-content-between\">
  1613.                                                         <label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 mt-2 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.1_day'|trans }}\" data-title=\"front\">
  1614.                                                             <div class=\"mx-2 my-2\">
  1615.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" {% if oldValues.get('availability') == 1 %} checked {% endif %} hidden>
  1616.                                                                 <h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">{{ 'app.ui.1_day'|trans }}</h2>
  1617.                                                                 <a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  1618.                                                             </div>
  1619.                                                         </label>
  1620.                                                     </div>
  1621.                                                     <div class=\"d-flex justify-content-between mt-3 mb-3\">
  1622.                                                         <label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.7_days'|trans }}\" data-title=\"front\">
  1623.                                                             <div class=\"mx-2 my-2\">
  1624.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" {% if oldValues.get('availability') == 2 %} checked {% endif %} hidden required>
  1625.                                                                 <h2 id=\"txtAv7Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.7_days'|trans }}</h2>
  1626.                                                                 <a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  1627.                                                             </div>
  1628.                                                         </label>
  1629.                                                         <label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.10_days'|trans }}\" data-title=\"front\">
  1630.                                                             <div class=\"mx-2 my-2\">
  1631.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" {% if oldValues.get('availability') == 6 %} checked {% endif %} hidden required>
  1632.                                                                 <h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.10_days'|trans }}</h2>
  1633.                                                                 <a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
  1634.                                                             </div>
  1635.                                                         </label>
  1636.                                                         <label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.30_days'|trans }}\" data-title=\"front\">
  1637.                                                             <div class=\"mx-2 my-2\">
  1638.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" {% if oldValues.get('availability') == 3 %} checked {% endif %} hidden>
  1639.                                                                 <h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.30_days'|trans }}</h2>
  1640.                                                                 <a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice text-dark\">33.60 LEI</a>
  1641.                                                             </div>
  1642.                                                         </label>
  1643.                                                     </div>
  1644.                                                     <div class=\"d-flex justify-content-between\">
  1645.                                                         <label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.90_days'|trans }}\" data-title=\"front\">
  1646.                                                             <div class=\"mx-2 my-2\">
  1647.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" {% if oldValues.get('availability') == 4 %} checked {% endif %} hidden>
  1648.                                                                 <h2 id=\"txtAv90Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.90_days'|trans }}</h2>
  1649.                                                                 <a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
  1650.                                                             </div>
  1651.                                                         </label>
  1652.                                                         <label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.60_days'|trans }}\" data-title=\"front\">
  1653.                                                             <div class=\"mx-2 my-2\">
  1654.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" {% if oldValues.get('availability') == 7 %} checked {% endif %} hidden>
  1655.                                                                 <h2 id=\"txtAv60Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.60_days'|trans }}</h2>
  1656.                                                                 <a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
  1657.                                                             </div>
  1658.                                                         </label>
  1659.                                                         <label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.12_months'|trans }}\" data-title=\"front\">
  1660.                                                             <div class=\"mx-2 my-2\">
  1661.                                                                 <input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" {% if oldValues.get('availability') == 5 %} checked {% endif %} hidden>
  1662.                                                                 <h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">{{ 'app.ui.12_months'|trans }}</h2>
  1663.                                                                 <a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\">333.60 LEI</a>
  1664.                                                             </div>
  1665.                                                         </label>
  1666.                                                     </div>
  1667.                                                 </div>
  1668.                                                 <div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
  1669.                                                     <h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.select_car_data'|trans}}</h3>
  1670.                                                     <div class=\"row mt-3 d-flex align-items-end\">
  1671.                                                         <div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
  1672.                                                             <label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.country_code'|trans}}</label>
  1673.                                                             <select id=\"carCountry\" name=\"carCountry\" class=\"form-control input-custom input-custom-grey\" required>
  1674.                                                                 <option value=\"\">{{ 'app.ui.country'|trans}}</option>
  1675.                                                                 {% for country in countries|sort((a, b) => a.name > b.name) %}
  1676.                                                                     <option id=\"{{ country.code }}\" value=\"{{ country.code }}\" {% if oldValues.get('carCountry') == country.code %} selected {% endif %}>{{ country.name }}</option>
  1677.                                                                 {% endfor %}
  1678.                                                             </select>
  1679.                                                         </div>
  1680.                                                         <div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
  1681.                                                             <label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{'app.ui.registration_plate'|trans}}</label>
  1682.                                                             <input id=\"registrationPlate\" data-warning-message=\"{{ 'app.warning.characters_not_allowed'|trans }}\" data-error-message=\"{{'app.errors.no_plate'|trans }}\" name=\"registrationPlate\"
  1683.                                                                    maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey
  1684.                                                             \" placeholder=\"{{'app.ui.registration_plate'|trans}}\" oninvalid=\"this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')\"
  1685.                                                                    oninput=\"setCustomValidity('')\"
  1686.                                                                     {% if vehicle is not null and vehicle.registrationPlate is not null and vehicle.registrationPlate is defined %}
  1687.                                                                         value=\"{{ vehicle.registrationPlate }}\"
  1688.                                                                     {% elseif oldValues.get('registrationPlate') %}
  1689.                                                                         value=\"{{ oldValues.get('registrationPlate') }}\"
  1690.                                                                     {% endif %} required>
  1691.                                                             <div data-error-message = '{{ 'app.ui.invalid_registration_plate'|trans }}' id=\"registrationPlateError\"></div>
  1692.                                                         </div>
  1693.                                                     </div>
  1694.                                                     <div class=\"row mt-2\">
  1695.                                                         <div class=\"col-12\">
  1696.                                                             <div id=\"vinBlock\" class=\"d-none\">
  1697.                                                                 <label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 98.5% !important;\">{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})</label>
  1698.                                                                 <input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 98.5% !important;\"
  1699.                                                                        class=\"form-control input-custom input-custom-grey\" placeholder=\"{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})\">
  1700.                                                             </div>
  1701.                                                         </div>
  1702.                                                     </div>
  1703.                                                     {% if app.request.locale == 'ro' and lastProductStatus.vignetteSmsStatus %}
  1704.                                                         <div class=\"row mt-2\">
  1705.                                                             <div class=\"col-12\">
  1706.                                                                 <div id=\"divAlertSms\" class=\"vignette-alert-container px-2 py-3\">
  1707.                                                                     <div class=\"d-flex justify-content-between align-items-center-center\">
  1708.                                                                         <div class=\"custom-control custom-checkbox\">
  1709.                                                                             <input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"{{ smsPrice }}\">
  1710.                                                                             <label for=\"vignetteAlert\" class=\"custom-control-label\">
  1711.                                                                                 <h4 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">{{'app.ui.sms_alert'|trans}}</h4>
  1712.                                                                             </label>
  1713.                                                                         </div>
  1714.                                                                         <div>
  1715.                                                                             <h4>{{ smsPrice }} Lei ({{ sms_price_eur }} Eur)</h4>
  1716.                                                                         </div>
  1717.                                                                     </div>
  1718.                                                                     <div>
  1719.                                                                         <a>{{'app.ui.alert_description'|trans}}</a>
  1720.                                                                     </div>
  1721.                                                                 </div>
  1722.                                                             </div>
  1723.                                                         </div>
  1724.                                                     {% endif %}
  1725.                                                     <div id=\"app\">
  1726.                                                         {% if lastProductStatus.roadAssistanceStatus and lastProductStatus.vignetteRoadAssistanceStatus %}
  1727.                                                             <road-assistance
  1728.                                                                     :price=\"{{ road_assistance_service.retrieveDefaultPrice }}\"
  1729.                                                                     :terms-and-conditions-route=\"'{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'terms-and-conditions-road-assistance'}) }}'\"
  1730.                                                                     v-bind:is-mobile=\"false\"></road-assistance>
  1731.                                                         {% endif %}
  1732.                                                     </div>
  1733.                                                         <div class=\"row mt-2\">
  1734.                                                             <div class=\"col-12\">
  1735.                                                                 <div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
  1736.                                                                     <div class=\"d-flex justify-content-between align-items-center-center\">
  1737.                                                                         <div class=\"custom-control custom-checkbox\">
  1738.                                                                             <input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
  1739.                                                                             <label for=\"email_allowed\" class=\"custom-control-label\">
  1740.                                                                                 <h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">{{'app.ui.cnair_alert'|trans}}</h5>
  1741.                                                                             </label>
  1742.                                                                         </div>
  1743.                                                                     </div>
  1744.                                                                     <div id=\"divEmail\" class=\"d-none\">
  1745.                                                                         <input id=\"email\" name=\"email\" type=\"text\" class=\"form-control input-custom input-custom-grey required\" >
  1746.                                                                     </div>
  1747.                                                                 </div>
  1748.                                                             </div>
  1749.                                                         </div>
  1750.                                                 </div>
  1751.                                             </div>
  1752.                                         </div>
  1753.                                     </div>
  1754.                                 </div>
  1755.                                 <div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
  1756.                                     <div>
  1757.                                         <div class=\"second-step error-messages\">
  1758.                                         </div>
  1759.                                         <div class=\"btn-wrapper\">
  1760.                                             <button id=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>{{'app.ui.buy_now'|trans}}</a></button>
  1761.                                         </div>
  1762.                                     </div>
  1763.                                 </div>
  1764.                             </div>
  1765.                         </div>
  1766.                     </form>
  1767.                 </div>
  1768.                 <div class=\"bs-stepper-content\">
  1769.                     <div class=\"row my-3\">
  1770.                         {% if accordionBlocksAboutVignette|length > 0 %}
  1771.                             {% for key, block in accordionBlocksAboutVignette %}
  1772.                                 <div class=\"col-12 col-sm-6 col-md-6 col-lg-3 col-xl-3 my-3\">
  1773.                                     <button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse{{ key }}\" aria-expanded=\"false\" aria-controls=\"collapse{{ key }}\">{{ block.name }}</button>
  1774.                                     <div class=\"collapse\" id=\"collapse{{ key }}\">
  1775.                                         <div class=\"card card-body border\">{{ block.content|raw }}</div>
  1776.                                     </div>
  1777.                                 </div>
  1778.                             {% endfor %}
  1779.                         {% endif %}
  1780.                     </div>
  1781.                 </div>
  1782.             </div>
  1783.         </div>
  1784.         <script>
  1785.             \$(document).ready(function () {
  1786.                 let locale = getLocale();
  1787.                 function getLocale() {
  1788.                     let url = Routing.generate('app_shop_get_locale');
  1789.                     \$.ajax({
  1790.                         url: url,
  1791.                         type: 'GET',
  1792.                         async: false,
  1793.                         dataType: 'json',
  1794.                         success: function (locale) {
  1795.                             if (locale == 'ro_RO' || locale == 'ro') {
  1796.                                 \$('[name=\"carCountry\"] option').filter(function() {
  1797.                                     return (\$(this).val() == 'RO');
  1798.                                 }).prop('selected', true).change();
  1799.                             }
  1800.                         },
  1801.                         error: function (data) {
  1802.                         }
  1803.                     });
  1804.                 }
  1805.             })
  1806.             var stepper = new Stepper(\$('.bs-stepper')[0]);
  1807.         </script>
  1808.         <script>
  1809.             const route = \"{{ path('sylius_shop_homepage')|escape('js') }}\";
  1810.             const roadAssistanceTranslations = '{{ roadAssistanceTranslations|json_encode|raw }}';
  1811.         </script>
  1812.         {{ encore_entry_script_tags('vue') }}
  1813.         <style>
  1814.             .text-primary {
  1815.                 color: #E95A31;
  1816.             }
  1817.             .webkit-none {
  1818.                 -webkit-appearance: none !important;
  1819.             }
  1820.             .ui-state-highlight, .ui-widget-content .ui-state-highlight {
  1821.                 background: none !important;
  1822.                 color: #454545 !important;
  1823.                 border: none !important;
  1824.             }
  1825.             .modal-backdrop {
  1826.                 opacity: 50% !important;
  1827.             }
  1828.             .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
  1829.                 background-color: #e95a31 !important;
  1830.             }
  1831.             .b-calendar-grid-body {
  1832.                 margin-left: .5rem!important;
  1833.                 margin-right: .5rem!important;
  1834.             }
  1835.             .b-calendar-grid-weekdays {
  1836.                 border: none !important;
  1837.             }
  1838.             .loading {
  1839.                 display: flex;
  1840.                 flex-direction: column;
  1841.                 justify-content: center;
  1842.                 align-items: center;
  1843.                 text-align: center;
  1844.                 min-height: 100vh;
  1845.                 z-index: 999;
  1846.                 position: fixed;
  1847.                 background-color: rgba(0,0,0,0.7);
  1848.                 opacity: 100%;
  1849.                 width: 100%;
  1850.                 height: 100%;
  1851.             }
  1852.         </style>
  1853.     {% else %}
  1854.         <div class=\"card text-center my-3\">
  1855.             <div class=\"card-header\">
  1856.                 <h2>{{ 'app.ui.disabled_temporary'|trans }}</h2>
  1857.             </div>
  1858.             <div class=\"card-body\">
  1859.                 <a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.back_to_store'|trans }}</a>
  1860.             </div>
  1861.         </div>
  1862.     {% endif %}
  1863. {% endblock %}
  1864. ""@templates/Front/vignette.html.twig""/vhosts/test/templates/Front/vignette.html.twig");
  1865.     }
  1866. }