<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @templates/Mobile/vignette.html.twig */
class __TwigTemplate_1f4da741449fe1fc34016721cd75a2b7c2e94d0b8d2479d9a91a4c91b8b02f10 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'cnair_partner' => [$this, 'block_cnair_partner'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@templates/Mobile/Shop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Mobile/vignette.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Mobile/vignette.html.twig"));
$this->parent = $this->loadTemplate("@templates/Mobile/Shop/layout.html.twig", "@templates/Mobile/vignette.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 4
echo " <head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta http-equiv=\"Content-Language\" content=\"ro\">
<meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
";
// line 9
$this->displayBlock('title', $context, $blocks);
// line 10
echo " ";
$this->displayBlock('metatags', $context, $blocks);
// line 14
echo " <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
";
// line 17
$this->displayBlock('stylesheets', $context, $blocks);
// line 25
echo "
";
// line 26
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.head"]);
echo "
";
// line 28
$this->displayBlock('javascripts', $context, $blocks);
// line 65
echo " </head>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " <title>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html", null, true);
echo " | Roviniete.ro</title> ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 11
echo " <meta name=\"description\" content=\"";
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.', 11, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_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.', 11, $this->source); })()), "content", [], "any", false, false, false, 11), "html", null, true);
}
echo "\">
<meta name=\"keywords\" content=\"";
// line 12
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.', 12, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_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.', 12, $this->source); })()), "content", [], "any", false, false, false, 12), "html", null, true);
}
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 18
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/homepage.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bootstrap.min.css"), "html", null, true);
echo "\">
";
// line 20
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("bootstrap-fix", null, "bootstrapTheme");
echo "
<link rel=\"stylesheet\" href=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/vignette_shop.v1.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bs-stepper.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/leftmenu.v1.css"), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 28
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 29
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/sentry-bundle.min.js"), "html", null, true);
echo "\"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: \"";
// line 33
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.', 33, $this->source); })()), "html", null, true);
echo "\",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
let roadAssistanceValidFrom = null;
MESSAGE_INVALID_REGISTRATION_PLATE = '";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html", null, true);
echo "';
MESSAGE_INVALID_VIN = '";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_vin"), "html", null, true);
echo "'
</script>
<script src=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/bs-stepper.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery-ui.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/popper.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/leftmenu.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/fosjsrouting/js/router.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/moment.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.validate.min.js"), "html", null, true);
echo "\"></script>
";
// line 52
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vignette");
echo "
<script src=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','";
// line 62
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.', 62, $this->source); })()), "html", null, true);
echo "');</script>
<!-- End Google Tag Manager -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 69
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 70
echo " <div id=\"loadingDiv\" class=\"loading d-none\">
<div class=\"card w-50\">
<div class=\"card-body bg-loading-card\">
<img src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/spinner.gif"), "html", null, true);
echo "\"
style=\"width: 50px; pointer-events: none\"/>
<h5>Se verifica datele</h5>
</div>
</div>
</div>
<div class=\"d-inline-flex mx-3\">
<a href=\"";
// line 80
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section text-primary\" style=\"font-size: 0.8em;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html", null, true);
echo "</a>
<div class=\"divider\"> /</div>
<small class=\"section active\">";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignettes"), "html", null, true);
echo "</small>
</div>
<div id=\"isMobileComponent\" class=\"d-none\"></div>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
// line 86
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.', 86, $this->source); })()), "html", null, true);
echo "\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
// line 89
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.', 89, $this->source); })()), "vignetteStatus", [], "any", false, false, false, 89)) {
// line 90
echo " <h1 class=\"mt-4 mx-3\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html", null, true);
echo "</h1>
";
// line 91
$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.', 91, $this->source); })()), "calculateSmsPrice", [], "any", false, false, false, 91);
// line 92
echo " ";
$context["oldValues"] = twig_get_attribute($this->env, $this->source, twig_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.', 92, $this->source); })()), "request", [], "any", false, false, false, 92), "request", [], "any", false, false, false, 92);
// line 93
echo " <div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.warning"), "html", null, true);
echo "</h2>
</div>
<p>
<h5 class=\"text-center text-primary vignette-already-bought d-none\">
";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_available_for_choosen_date"), "html", null, true);
echo "
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 112
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.error"), "html", null, true);
echo "</h2>
</div>
<p>
<h5 class=\"text-center text-primary\">
";
// line 116
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_category_error"), "html", null, true);
echo "
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
</div>
<div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
";
// line 125
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.no_special_characters_allowed"), "html", null, true);
echo "
</div>
";
// line 127
$this->loadTemplate("@templates/Mobile/Checkout/_modal_payment_not_available.html.twig", "@templates/Mobile/vignette.html.twig", 127)->display($context);
// line 128
echo " ";
$this->loadTemplate("@templates/AdminCustom/Layout/loading.html.twig", "@templates/Mobile/vignette.html.twig", 128)->display(twig_array_merge($context, ["showLoading" => true]));
// line 129
echo " <div class=\"row mx-1 my-3\">
</div>
<form id=\"vignetteForm\" method=\"POST\">
<input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
<input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"";
// line 135
echo twig_escape_filter($this->env, 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.', 135, $this->source); })()), "extraOptionsStatus", [], "any", false, false, false, 135), "html", null, true);
echo "\">
<div class=\"mb-5\">
<div class=\"main-container mx-2 mt-2\">
<div id=\"accordion\">
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingOne\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button id=\"btnStep1\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step1Collapse\" aria-expanded=\"true\" aria-controls=\"step1Collapse\" disabled>
<div class=\"row align-items-center mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep1\" src=\"";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_primary.png"), "html", null, true);
echo "\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep1\" class=\"text-primary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_one"), "html", null, true);
echo "</span>
<span id=\"step1CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_one_indication"), "html", null, true);
echo "</span></a>
</div>
<div id=\"step1EditIcon\" class=\"d-none\" style=\"margin-left: auto; order: 2;\" >
<img src=\"";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep1\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step1Collapse\" class=\"collapse show\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\" >
<div class=\"card-body\">
<div class=\"mt-0\">
";
// line 169
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["vignetteCategories"]) || array_key_exists("vignetteCategories", $context) ? $context["vignetteCategories"] : (function () { throw new RuntimeError('Variable "vignetteCategories" does not exist.', 169, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 170
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 170) % 2) != 0)) {
// line 171
echo " <div class=\"d-flex justify-content-between\">
";
}
// line 173
echo " <label type=\"button\" for=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 173))), "html", null, true);
echo "\" class=\"btn ";
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.', 173, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 173) && (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.', 173, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 173) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 173)))) {
echo " btn-vignette-selected ";
} else {
echo " btn-vignette-unselected ";
}
echo " w-100 mr-1 webkit-none\" style=\"min-height: 50px\">
<div class=\"d-flex justify-content-between align-items-center\">
<input type=\"radio\" name=\"category\" id=\"";
// line 175
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 175))), "html", null, true);
echo "\" data-error-message=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_category_selected"), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 175), "html", null, true);
echo "\"
data-category=\"
";
// line 177
if ((twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 177) == (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.', 177, $this->source); })()))) {
// line 178
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 179
$context["category"], "id", [], "any", false, false, false, 179) == (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.', 179, $this->source); })()))) {
// line 180
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 181
$context["category"], "id", [], "any", false, false, false, 181) == (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.', 181, $this->source); })()))) {
// line 182
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 183
$context["category"], "id", [], "any", false, false, false, 183) == (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.', 183, $this->source); })()))) {
// line 184
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 185
$context["category"], "id", [], "any", false, false, false, 185) == (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.', 185, $this->source); })()))) {
// line 186
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 187
$context["category"], "id", [], "any", false, false, false, 187) == (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.', 187, $this->source); })()))) {
// line 188
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 189
$context["category"], "id", [], "any", false, false, false, 189) == (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.', 189, $this->source); })()))) {
// line 190
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 191
$context["category"], "id", [], "any", false, false, false, 191) == (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.', 191, $this->source); })()))) {
// line 192
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_name"), "html", null, true);
echo "
";
}
// line 194
echo " \"
";
// line 195
if (((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 195, $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.', 195, $this->source); })()), "roVignetteCategory", [], "any", false, false, false, 195))) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["vehicle"] ?? null), "roVignetteCategory", [], "any", false, true, false, 195), "id", [], "any", true, true, false, 195)) && (twig_get_attribute($this->env, $this->source, 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.', 195, $this->source); })()), "roVignetteCategory", [], "any", false, false, false, 195), "id", [], "any", false, false, false, 195) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 195)))) {
echo " checked
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 196
(isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 196, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 196) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 196))) {
echo " checked ";
}
echo " hidden>
<img ";
// line 198
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.', 198, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 198) && (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.', 198, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 198) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 198)))) {
echo " src=\"";
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->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 198))))) . "_white") . ".png"), "html", null, true);
echo "\" ";
} else {
echo "src=\"";
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->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 198))))) . ".png"), "html", null, true);
echo "\"";
}
echo " style=\"width: 46px;\"/>
<a id=\"vehicleType-";
// line 199
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 199))), "html", null, true);
echo "\" class=\"font-weight-bold ";
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.', 199, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 199) && (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.', 199, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 199) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 199)))) {
echo " text-white";
}
echo "\" style=\"color: #343a40;\" >
";
// line 200
if ((twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 200) == (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.', 200, $this->source); })()))) {
// line 201
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 202
$context["category"], "id", [], "any", false, false, false, 202) == (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.', 202, $this->source); })()))) {
// line 203
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 204
$context["category"], "id", [], "any", false, false, false, 204) == (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.', 204, $this->source); })()))) {
// line 205
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 206
$context["category"], "id", [], "any", false, false, false, 206) == (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.', 206, $this->source); })()))) {
// line 207
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 208
$context["category"], "id", [], "any", false, false, false, 208) == (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.', 208, $this->source); })()))) {
// line 209
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 210
$context["category"], "id", [], "any", false, false, false, 210) == (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.', 210, $this->source); })()))) {
// line 211
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 212
$context["category"], "id", [], "any", false, false, false, 212) == (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.', 212, $this->source); })()))) {
// line 213
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 214
$context["category"], "id", [], "any", false, false, false, 214) == (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.', 214, $this->source); })()))) {
// line 215
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_short_code"), "html", null, true);
echo "
";
}
// line 217
echo " </a>
</div>
</label>
";
// line 220
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 220) % 2) == 0)) {
// line 221
echo " </div>
";
}
// line 223
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 224
echo " </div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingTwo\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep2\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step2Collapse\" aria-expanded=\"false\" aria-controls=\"step2Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep2\" src=\"";
// line 239
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_grey.png"), "html", null, true);
echo "\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep2\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">";
// line 241
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_two"), "html", null, true);
echo "</span>
<span id=\"step2CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">";
// line 242
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_two_indication"), "html", null, true);
echo "</span>
</a>
</div>
<div id=\"step2EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"";
// line 246
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep2\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step2Collapse\" class=\"collapse\" aria-labelledby=\"headingTwo\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\"";
// line 262
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.', 262, $this->source); })()), "get", [0 => "validFrom"], "method", false, false, false, 262)) {
echo " value = ";
echo twig_escape_filter($this->env, 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.', 262, $this->source); })()), "get", [0 => "validFrom"], "method", false, false, false, 262), "html", null, true);
echo "
";
} elseif ( !(null === // line 263
(isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom", $context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.', 263, $this->source); })()))) {
echo " data-value=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom", $context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.', 263, $this->source); })()), "m/d/Y"), "html", null, true);
echo "\"
";
}
// line 264
echo ">
<div id=\"datepicker\" data-error-message = '";
// line 265
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_date_selected"), "html", null, true);
echo "'></div>
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingThree\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep3\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step3Collapse\" aria-expanded=\"false\" aria-controls=\"step3Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep3\" src=\"";
// line 280
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_grey.png"), "html", null, true);
echo "\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep3\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">";
// line 282
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_three"), "html", null, true);
echo "</span>
<span id=\"step3CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">";
// line 283
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_three_indication"), "html", null, true);
echo "</span>
</a>
</div>
<div id=\"step3EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"";
// line 287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep3\" style=\"display: none\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step3Collapse\" class=\"collapse\" aria-labelledby=\"headingThree\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-between availability-wrapper\" data-error-message=\"";
// line 301
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_availability_selected"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 webkit-none\" style=\"display: none; min-height: 65px\" data-value=\"";
// line 302
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html", null, true);
echo "\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" hidden ";
// line 304
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.', 304, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 304) == 1)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv1Day\" class=\"";
// line 305
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.', 305, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 305) == 1)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html", null, true);
echo "</h2>
<a id=\"txtAv1DayPrice\" class=\" ";
// line 306
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.', 306, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 306) == 1)) {
echo " text-white ";
}
echo " txtAvailabilityPrice\">17.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"";
// line 311
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html", null, true);
echo "\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" hidden ";
// line 313
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.', 313, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 313) == 2)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv7Days\" class=\"";
// line 314
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.', 314, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 314) == 2)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice ";
// line 315
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.', 315, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 315) == 2)) {
echo " text-white ";
}
echo " \">17.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"";
// line 318
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html", null, true);
echo "\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" hidden ";
// line 320
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", [0 => "availability"], "method", false, false, false, 320) == 6)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv10Days\" class=\"";
// line 321
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.', 321, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 321) == 6)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice ";
// line 322
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.', 322, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 322) == 6)) {
echo " text-white ";
}
echo " \">17.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
// line 325
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html", null, true);
echo "\" style=\"min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" hidden ";
// line 327
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", [0 => "availability"], "method", false, false, false, 327) == 3)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv30Days\" class=\"";
// line 328
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.', 328, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 328) == 3)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice ";
// line 329
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.', 329, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 329) == 3)) {
echo " text-white ";
}
echo " \">33.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"";
// line 334
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html", null, true);
echo "\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" hidden ";
// line 336
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.', 336, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 336) == 4)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv90Days\" class=\"";
// line 337
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.', 337, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 337) == 4)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice ";
// line 338
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.', 338, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 338) == 4)) {
echo " text-white ";
}
echo " \">117.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html", null, true);
echo "\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" hidden ";
// line 343
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", [0 => "availability"], "method", false, false, false, 343) == 7)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv60Days\" class=\"";
// line 344
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.', 344, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 344) == 7)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice ";
// line 345
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.', 345, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 345) == 7)) {
echo " text-white ";
}
echo " \">117.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
// line 348
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html", null, true);
echo "\" style=\"min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" hidden ";
// line 350
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", [0 => "availability"], "method", false, false, false, 350) == 5)) {
echo " checked ";
}
echo ">
<h2 id=\"txtAv1Year\" class=\"";
// line 351
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.', 351, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 351) == 5)) {
echo " text-white ";
} else {
echo " text-primary ";
}
echo " txtAvailability\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html", null, true);
echo "</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice ";
// line 352
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.', 352, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 352) == 5)) {
echo " text-white ";
}
echo " \">333.60 LEI</a>
</div>
</label>
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingFour\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep4\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step4Collapse\" aria-expanded=\"false\" aria-controls=\"step4Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep4\" src=\"";
// line 369
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_grey.png"), "html", null, true);
echo "\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep4\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">";
// line 371
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_four"), "html", null, true);
echo "</span>
<span style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">";
// line 372
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.step_four_indication"), "html", null, true);
echo "</span>
</a>
</div>
<div id=\"step4EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"";
// line 376
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step4Collapse\" class=\"collapse\" aria-labelledby=\"headingFour\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\" d-flex align-items-center\" >
<div class=\"mr-2\">
<label for=\"carCountry\" id=\"carCountryLabel\" class=\"lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">";
// line 389
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html", null, true);
echo "</label>
<select id=\"carCountry\" name=\"carCountry\"
data-style=\"btn-grey border-0 selectpicker-custom shadow-none prometo-font\" data-live-search=\"true\"
title=\"";
// line 392
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html", null, true);
echo "*\" class=\"form-control input-custom input-custom-grey selectpicker\"
required>
<option id=\"countryCodeOption\" value=\"\">";
// line 394
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html", null, true);
echo "</option>
";
// line 395
$context['_parent'] = $context;
$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.', 395, $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.', 395, $this->source); })()), "name", [], "any", false, false, false, 395) > 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.', 395, $this->source); })()), "name", [], "any", false, false, false, 395)); }));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 396
echo " <option id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 396), "html", null, true);
echo "\" data-content=\"<span class='text-dark'>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "name", [], "any", false, false, false, 396), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 396), "html", null, true);
echo "</span>\"
value=\"";
// line 397
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 397), "html", null, true);
echo "\" ";
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.', 397, $this->source); })()), "get", [0 => "carCountry"], "method", false, false, false, 397) && (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.', 397, $this->source); })()), "get", [0 => "carCountry"], "method", false, false, false, 397) == twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 397)))) {
echo " selected ";
}
// line 398
echo " >";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "name", [], "any", false, false, false, 398), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 398), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 400
echo " </select>
</div>
<div class=\"flex-grow-1\">
<label for=\"registrationPlate\" id=\"registrationPlateLabel\" class=\"lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">";
// line 403
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "</label>
<input id=\"registrationPlate\" name=\"registrationPlate\" data-warning-message=\"";
// line 404
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.warning.characters_not_allowed"), "html", null, true);
echo "\"
data-error-message=\"";
// line 405
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_plate"), "html", null, true);
echo "\" type=\"text\" class=\"form-control input-custom input-custom-grey\"
placeholder=\"";
// line 406
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "\" maxlength=\"10\" required
oninvalid=\"this.setCustomValidity('";
// line 407
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_fill_this_field"), "html", null, true);
echo "')\"
oninput=\"setCustomValidity('')\"
";
// line 409
if ((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 409, $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.', 409, $this->source); })()), "registrationPlate", [], "any", false, false, false, 409))) && twig_get_attribute($this->env, $this->source, ($context["vehicle"] ?? null), "registrationPlate", [], "any", true, true, false, 409))) {
// line 410
echo " value=\"";
echo twig_escape_filter($this->env, 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.', 410, $this->source); })()), "registrationPlate", [], "any", false, false, false, 410), "html", null, true);
echo "\"
";
} elseif (twig_get_attribute($this->env, $this->source, // line 411
(isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 411, $this->source); })()), "get", [0 => "registrationPlate"], "method", false, false, false, 411)) {
// line 412
echo " value=\"";
echo twig_escape_filter($this->env, 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.', 412, $this->source); })()), "get", [0 => "registrationPlate"], "method", false, false, false, 412), "html", null, true);
echo "\"
";
}
// line 413
echo " required> </div>
<div id=\"registrationPlateCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"";
// line 415
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_validation_check.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
</div>
</div>
<div class=\"d-flex align-items-center my-2\">
<div class=\"flex-grow-1\">
<div id=\"vinBlock\" class=\"d-none\">
<label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">";
// line 422
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html", null, true);
echo ")</label>
<input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 100% !important;\"
class=\"form-control input-custom input-custom-grey\" placeholder=\"";
// line 424
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html", null, true);
echo ")\">
</div>
</div>
<div id=\"vinCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"";
// line 428
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_validation_check.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"finalizeOrder\">
";
// line 438
if (((twig_get_attribute($this->env, $this->source, twig_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.', 438, $this->source); })()), "request", [], "any", false, false, false, 438), "locale", [], "any", false, false, false, 438) == "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.', 438, $this->source); })()), "vignetteSmsStatus", [], "any", false, false, false, 438))) {
// line 439
echo " <div class=\"vignette-alert-container px-2 py-3\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"";
// line 442
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.', 442, $this->source); })()), "html", null, true);
echo "\"
";
// line 443
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.', 443, $this->source); })()), "get", [0 => "vignetteAlert"], "method", false, false, false, 443)) {
echo " checked ";
}
echo ">
<label for=\"vignetteAlert\" class=\"custom-control-label\">
<h4 class=\"text-dark font-weight-bolder\" style=\"letter-spacing: 0.01em;\">";
// line 445
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.sms_alert"), "html", null, true);
echo "</h4>
</label>
</div>
<div>
<h4 class=\"font-weight-bolder\"> ";
// line 449
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.', 449, $this->source); })()), "html", null, true);
echo " Lei (";
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.', 449, $this->source); })()), "html", null, true);
echo " Eur)</h4>
</div>
</div>
<div>
<a>";
// line 453
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.alert_description"), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 457
echo " <div id=\"app\" class=\"my-2\">
";
// line 458
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.', 458, $this->source); })()), "roadAssistanceStatus", [], "any", false, false, false, 458) && 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.', 458, $this->source); })()), "vignetteRoadAssistanceStatus", [], "any", false, false, false, 458))) {
// line 459
echo " <road-assistance :price=\"";
echo twig_escape_filter($this->env, twig_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.', 459, $this->source); })()), "retrieveDefaultPrice", [], "any", false, false, false, 459), "html", null, true);
echo "\" :terms-and-conditions-route=\"'";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "terms-and-conditions-road-assistance"]);
echo "'\" v-bind:is-mobile=\"true\"></road-assistance>
";
}
// line 461
echo " </div>
<div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
<label for=\"email_allowed\" class=\"custom-control-label\">
<h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">";
// line 467
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.cnair_alert"), "html", null, true);
echo "</h5>
</label>
</div>
</div>
</div>
<div class=\"row my-3 btn-wrapper\" style=\"height: 45px; margin: 5px;\">
<button id=\"btnSubmitVignette\" name=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-submit btn-primary w-100 h-100\">
<a>";
// line 474
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.next_step"), "html", null, true);
echo "</a>
</button>
</div>
</div>
</div>
</form>
<style>
.text-primary {
color: #E95A31;
}
.selectpicker-custom {
height: 50px !important;
border-bottom: 1px solid #878C96 !important;
}
.input-custom {
width: 100% !important;
}
.webkit-none {
-webkit-appearance: none !important;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
.modal-backdrop {
opacity: 50% !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
background-color: #e95a31 !important;
}
.b-calendar-grid-body {
margin-left: .5rem!important;
margin-right: .5rem!important;
}
.b-calendar-grid-weekdays {
border: none !important;
}
.loading {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
z-index: 999;
position: fixed;
background-color: rgba(0,0,0,0.7);
opacity: 100%;
width: 100%;
height: 100%;
}
</style>
";
} else {
// line 536
echo " <div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>";
// line 538
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.disabled_temporary"), "html", null, true);
echo "</h2>
</div>
<div class=\"card-body\">
<a href=\"";
// line 541
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.back_to_store"), "html", null, true);
echo "</a>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 549
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 550
echo " ";
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.', 550, $this->source); })()), "vignetteStatus", [], "any", false, false, false, 550)) {
// line 551
echo " <script>
const route = \"";
// line 552
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage"), "js"), "html", null, true);
echo "\";
const roadAssistanceTranslations = '";
// line 553
echo json_encode((isset($context["roadAssistanceTranslations"]) || array_key_exists("roadAssistanceTranslations", $context) ? $context["roadAssistanceTranslations"] : (function () { throw new RuntimeError('Variable "roadAssistanceTranslations" does not exist.', 553, $this->source); })()));
echo "';
</script>
";
// line 555
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vue");
echo "
";
// line 556
$context["oldValues"] = twig_get_attribute($this->env, $this->source, twig_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.', 556, $this->source); })()), "request", [], "any", false, false, false, 556), "request", [], "any", false, false, false, 556);
// line 557
echo " <script type=\"text/javascript\">
\$(document).ready(function () {
\$(window).bind(\"load\", function () {
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: false,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
\$('select[name=carCountry]').val('RO').change();
let selectPicker = \$('.selectpicker');
if (selectPicker.length > 0 && typeof selectPicker.selectpicker === 'function') {
selectPicker.selectpicker('refresh');
}
let btn = \$('[data-id=\"' + 'carCountry' + '\"]');
btn.addClass('selectpicker-custom-selected');
btn.removeClass('selectpicker-custom');
}
},
error: function (data) {
}
});
}
});
})
var one_day = '";
// line 591
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day")), "html", null, true);
echo "';
var seven_days = '";
// line 592
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days")), "html", null, true);
echo "';
var ten_days = '";
// line 593
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days")), "html", null, true);
echo "';
var thirty_days = '";
// line 594
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days")), "html", null, true);
echo "';
var sixty_days = '";
// line 595
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days")), "html", null, true);
echo "';
var ninety_days = '";
// line 596
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days")), "html", null, true);
echo "';
var twelve_months = '";
// line 597
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months")), "html", null, true);
echo "';
var locale = '";
// line 598
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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.', 598, $this->source); })()), "request", [], "any", false, false, false, 598), "getLocale", [], "method", false, false, false, 598), "html", null, true);
echo "';
</script>
";
}
// line 601
echo "
";
// line 602
$this->displayBlock('cnair_partner', $context, $blocks);
// line 616
echo "
";
// line 617
if (((isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette", $context)) && (twig_length_filter($this->env, (isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette", $context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.', 617, $this->source); })())) > 0))) {
// line 618
echo " <div class=\"row my-3 align-items-center text-center\">
";
// line 619
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette", $context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.', 619, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["block"]) {
// line 620
echo " <div class=\"col-12 col-sm-12 col-md-6 col-lg-4 mb-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
// line 621
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" aria-expanded=\"false\" aria-controls=\"collapse";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["block"], "name", [], "any", false, false, false, 621), "html", null, true);
echo "</button>
<div class=\"collapse\" id=\"collapse";
// line 622
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<div class=\"card card-body border\">";
// line 623
echo twig_get_attribute($this->env, $this->source, $context["block"], "content", [], "any", false, false, false, 623);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 627
echo " </div>
";
}
// line 629
echo "
";
// line 630
if (((isset($context["accordionBlocksAboutHuVignette"]) || array_key_exists("accordionBlocksAboutHuVignette", $context)) && (twig_length_filter($this->env, (isset($context["accordionBlocksAboutHuVignette"]) || array_key_exists("accordionBlocksAboutHuVignette", $context) ? $context["accordionBlocksAboutHuVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutHuVignette" does not exist.', 630, $this->source); })())) > 0))) {
// line 631
echo " <div class=\"row my-3 align-items-center text-center\">
";
// line 632
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["accordionBlocksAboutHuVignette"]) || array_key_exists("accordionBlocksAboutHuVignette", $context) ? $context["accordionBlocksAboutHuVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutHuVignette" does not exist.', 632, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["block"]) {
// line 633
echo " <div class=\"col-12 col-sm-12 col-md-6 col-lg-4 mb-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
// line 634
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" aria-expanded=\"false\" aria-controls=\"collapse";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["block"], "name", [], "any", false, false, false, 634), "html", null, true);
echo "</button>
<div class=\"collapse\" id=\"collapse";
// line 635
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<div class=\"card card-body border\">";
// line 636
echo twig_get_attribute($this->env, $this->source, $context["block"], "content", [], "any", false, false, false, 636);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 640
echo " </div>
";
}
// line 642
echo "
";
// line 643
$this->loadTemplate("@templates/Front/Shop/v2/_footer.html.twig", "@templates/Mobile/vignette.html.twig", 643)->display($context);
// line 644
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 602
public function block_cnair_partner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cnair_partner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "cnair_partner"));
// line 603
echo " <div class=\"mx-5\">
<div class=\"text-center align-items-center\">
<div class=\"ui circular label bg-white\">
<img src=\"";
// line 606
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_trust_cnair_bw.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
<div class=\"ui circular label bg-white\">
<img src=\"";
// line 609
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_trust_stema_bw.png"), "html", null, true);
echo "\" style=\"width: 20px\"/>
</div>
<br/>
<small>";
// line 612
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.cnair_authorized_long"), "html", null, true);
echo "</small>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@templates/Mobile/vignette.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1600 => 612, 1594 => 609, 1588 => 606, 1583 => 603, 1573 => 602, 1562 => 644, 1560 => 643, 1557 => 642, 1553 => 640, 1543 => 636, 1539 => 635, 1531 => 634, 1528 => 633, 1524 => 632, 1521 => 631, 1519 => 630, 1516 => 629, 1512 => 627, 1502 => 623, 1498 => 622, 1490 => 621, 1487 => 620, 1483 => 619, 1480 => 618, 1478 => 617, 1475 => 616, 1473 => 602, 1470 => 601, 1464 => 598, 1460 => 597, 1456 => 596, 1452 => 595, 1448 => 594, 1444 => 593, 1440 => 592, 1436 => 591, 1400 => 557, 1398 => 556, 1394 => 555, 1389 => 553, 1385 => 552, 1382 => 551, 1379 => 550, 1369 => 549, 1352 => 541, 1346 => 538, 1342 => 536, 1277 => 474, 1267 => 467, 1259 => 461, 1251 => 459, 1249 => 458, 1246 => 457, 1239 => 453, 1230 => 449, 1223 => 445, 1216 => 443, 1212 => 442, 1207 => 439, 1205 => 438, 1192 => 428, 1183 => 424, 1176 => 422, 1166 => 415, 1162 => 413, 1156 => 412, 1154 => 411, 1149 => 410, 1147 => 409, 1142 => 407, 1138 => 406, 1134 => 405, 1130 => 404, 1126 => 403, 1121 => 400, 1110 => 398, 1104 => 397, 1095 => 396, 1091 => 395, 1087 => 394, 1082 => 392, 1076 => 389, 1060 => 376, 1053 => 372, 1049 => 371, 1044 => 369, 1022 => 352, 1012 => 351, 1006 => 350, 1001 => 348, 993 => 345, 983 => 344, 977 => 343, 972 => 341, 964 => 338, 954 => 337, 948 => 336, 943 => 334, 933 => 329, 923 => 328, 917 => 327, 912 => 325, 904 => 322, 894 => 321, 888 => 320, 883 => 318, 875 => 315, 865 => 314, 859 => 313, 854 => 311, 844 => 306, 834 => 305, 828 => 304, 823 => 302, 819 => 301, 802 => 287, 795 => 283, 791 => 282, 786 => 280, 768 => 265, 765 => 264, 758 => 263, 752 => 262, 733 => 246, 726 => 242, 722 => 241, 717 => 239, 700 => 224, 686 => 223, 682 => 221, 680 => 220, 675 => 217, 669 => 215, 667 => 214, 662 => 213, 660 => 212, 655 => 211, 653 => 210, 648 => 209, 646 => 208, 641 => 207, 639 => 206, 634 => 205, 632 => 204, 627 => 203, 625 => 202, 620 => 201, 618 => 200, 610 => 199, 598 => 198, 591 => 196, 587 => 195, 584 => 194, 578 => 192, 576 => 191, 571 => 190, 569 => 189, 564 => 188, 562 => 187, 557 => 186, 555 => 185, 550 => 184, 548 => 183, 543 => 182, 541 => 181, 536 => 180, 534 => 179, 529 => 178, 527 => 177, 518 => 175, 506 => 173, 502 => 171, 499 => 170, 482 => 169, 463 => 153, 457 => 150, 453 => 149, 448 => 147, 433 => 135, 425 => 129, 422 => 128, 420 => 127, 415 => 125, 403 => 116, 396 => 112, 380 => 99, 373 => 95, 369 => 93, 366 => 92, 364 => 91, 359 => 90, 357 => 89, 351 => 86, 344 => 82, 337 => 80, 327 => 73, 322 => 70, 312 => 69, 299 => 62, 287 => 53, 283 => 52, 279 => 51, 275 => 50, 271 => 49, 267 => 48, 263 => 47, 259 => 46, 255 => 45, 251 => 44, 247 => 43, 242 => 41, 238 => 40, 228 => 33, 220 => 29, 210 => 28, 198 => 23, 194 => 22, 190 => 21, 186 => 20, 182 => 19, 177 => 18, 167 => 17, 153 => 12, 146 => 11, 136 => 10, 115 => 9, 104 => 65, 102 => 28, 97 => 26, 94 => 25, 92 => 17, 87 => 14, 84 => 10, 82 => 9, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@templates/Mobile/Shop/layout.html.twig' %}
{% block head %}
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta http-equiv=\"Content-Language\" content=\"ro\">
<meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
{% block title %} <title>{{ 'app.ui.calculator_vignette_price'|trans }} | Roviniete.ro</title> {% endblock %}
{% block metatags %}
<meta name=\"description\" content=\"{% if vignetteDescriptionForSeo|length > 0 %}{{ vignetteDescriptionForSeo.content }}{% endif %}\">
<meta name=\"keywords\" content=\"{% if vignetteKeywordsForSeo|length > 0 %}{{ vignetteKeywordsForSeo.content }}{% endif %}\"/>
{% endblock %}
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/homepage.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bootstrap.min.css') }}\">
{{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/vignette_shop.v1.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bs-stepper.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/leftmenu.v1.css') }}\">
{% endblock %}
{{ sonata_block_render_event('sylius.shop.layout.head') }}
{% block javascripts %}
<script src=\"{{ asset('assets/shop/js/sentry-bundle.min.js') }}\"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: \"{{ sentry_dsn }}\",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
let roadAssistanceValidFrom = null;
MESSAGE_INVALID_REGISTRATION_PLATE = '{{ 'app.ui.invalid_registration_plate'|trans }}';
MESSAGE_INVALID_VIN = '{{ 'app.ui.invalid_vin'|trans }}'
</script>
<script src=\"{{ asset('assets/shop/js/jquery.min.js') }}\"></script>
<script src=\"{{ asset('/assets/shop/js/bs-stepper.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/jquery-ui.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/popper.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/bootstrap.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/leftmenu.js') }}\"></script>
<script src=\"{{ asset('/bundles/fosjsrouting/js/router.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/moment.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/jquery.validate.min.js') }}\"></script>
{{ encore_entry_script_tags('vignette') }}
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ gtm_code }}');</script>
<!-- End Google Tag Manager -->
{% endblock %}
</head>
{% endblock %}
{% block content %}
<div id=\"loadingDiv\" class=\"loading d-none\">
<div class=\"card w-50\">
<div class=\"card-body bg-loading-card\">
<img src=\"{{ asset('assets/shop/images/spinner.gif') }}\"
style=\"width: 50px; pointer-events: none\"/>
<h5>Se verifica datele</h5>
</div>
</div>
</div>
<div class=\"d-inline-flex mx-3\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section text-primary\" style=\"font-size: 0.8em;\">{{ 'sylius.ui.home'|trans }}</a>
<div class=\"divider\"> /</div>
<small class=\"section active\">{{ 'app.ui.vignettes'|trans }}</small>
</div>
<div id=\"isMobileComponent\" class=\"d-none\"></div>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id={{ gtm_code }}\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% if lastProductStatus.vignetteStatus %}
<h1 class=\"mt-4 mx-3\">{{ 'app.ui.calculator_vignette_price'|trans}}</h1>
{% set smsPrice = sms_price_ron.calculateSmsPrice %}
{% set oldValues = app.request.request %}
<div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>{{ 'sylius.ui.warning'|trans }}</h2>
</div>
<p>
<h5 class=\"text-center text-primary vignette-already-bought d-none\">
{{ 'app.ui.vignette_available_for_choosen_date'|trans }}
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>{{ 'app.ui.error'|trans }}</h2>
</div>
<p>
<h5 class=\"text-center text-primary\">
{{ 'app.ui.vignette_category_error'|trans }}
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
</div>
<div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
{{ 'app.ui.no_special_characters_allowed'|trans }}
</div>
{% include '@templates/Mobile/Checkout/_modal_payment_not_available.html.twig' %}
{% include '@templates/AdminCustom/Layout/loading.html.twig' with {showLoading: true} %}
<div class=\"row mx-1 my-3\">
</div>
<form id=\"vignetteForm\" method=\"POST\">
<input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
<input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"{{ lastProductStatus.extraOptionsStatus }}\">
<div class=\"mb-5\">
<div class=\"main-container mx-2 mt-2\">
<div id=\"accordion\">
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingOne\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button id=\"btnStep1\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step1Collapse\" aria-expanded=\"true\" aria-controls=\"step1Collapse\" disabled>
<div class=\"row align-items-center mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep1\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_primary.png')}}\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep1\" class=\"text-primary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">{{'app.ui.step_one'|trans}}</span>
<span id=\"step1CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">{{ 'app.ui.step_one_indication'|trans }}</span></a>
</div>
<div id=\"step1EditIcon\" class=\"d-none\" style=\"margin-left: auto; order: 2;\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep1\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step1Collapse\" class=\"collapse show\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\" >
<div class=\"card-body\">
<div class=\"mt-0\">
{% for category in vignetteCategories%}
{% if loop.index % 2 != 0 %}
<div class=\"d-flex justify-content-between\">
{% endif %}
<label type=\"button\" for=\"{{ category.code|first|lower }}\" class=\"btn {% if oldValues.get('category') and oldValues.get('category') == category.id %} btn-vignette-selected {% else %} btn-vignette-unselected {% endif %} w-100 mr-1 webkit-none\" style=\"min-height: 50px\">
<div class=\"d-flex justify-content-between align-items-center\">
<input type=\"radio\" name=\"category\" id=\"{{ category.code|first|lower }}\" data-error-message=\"{{'app.errors.no_category_selected'|trans }}\" value=\"{{ category.id }}\"
data-category=\"
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_name'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_name'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_name'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_name'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_name'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_name'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_name'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_name'|trans }}
{% endif %}
\"
{% if vehicle is not null and vehicle.roVignetteCategory is not null and vehicle.roVignetteCategory.id is defined and vehicle.roVignetteCategory.id == category.id %} checked
{% elseif oldValues.get('category') == category.id %} checked {% endif %} hidden>
<img {% if oldValues.get('category') and oldValues.get('category') == category.id %} src=\"{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '_white' ~ '.png')}}\" {% else %}src=\"{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '.png')}}\"{% endif %} style=\"width: 46px;\"/>
<a id=\"vehicleType-{{category.code|first|lower}}\" class=\"font-weight-bold {% if oldValues.get('category') and oldValues.get('category') == category.id %} text-white{% endif %}\" style=\"color: #343a40;\" >
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_short_code'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_short_code'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_short_code'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_short_code'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_short_code'|trans }}
{% endif %}
</a>
</div>
</label>
{% if loop.index % 2 == 0 %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingTwo\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep2\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step2Collapse\" aria-expanded=\"false\" aria-controls=\"step2Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep2\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep2\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">{{'app.ui.step_two'|trans}}</span>
<span id=\"step2CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">{{ 'app.ui.step_two_indication'|trans }}</span>
</a>
</div>
<div id=\"step2EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep2\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step2Collapse\" class=\"collapse\" aria-labelledby=\"headingTwo\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\"{% if oldValues.get('validFrom') %} value = {{oldValues.get('validFrom') }}
{% elseif oldValidFrom is not null %} data-value=\"{{ oldValidFrom|date(\"m/d/Y\") }}\"
{% endif %}>
<div id=\"datepicker\" data-error-message = '{{'app.errors.no_date_selected'|trans }}'></div>
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingThree\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep3\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step3Collapse\" aria-expanded=\"false\" aria-controls=\"step3Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep3\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep3\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">{{'app.ui.step_three'|trans}}</span>
<span id=\"step3CollapsedTxt\" style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">{{ 'app.ui.step_three_indication'|trans }}</span>
</a>
</div>
<div id=\"step3EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}\" style=\"width: 20px\"/>
</div>
</div>
<div class=\"text-left\" style=\"margin-left: 27px\">
<a id=\"txtSelectionStep3\" style=\"display: none\"></a>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step3Collapse\" class=\"collapse\" aria-labelledby=\"headingThree\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-between availability-wrapper\" data-error-message=\"{{'app.errors.no_availability_selected'|trans }}\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 webkit-none\" style=\"display: none; min-height: 65px\" data-value=\"{{ 'app.ui.1_day'|trans }}\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" hidden {% if oldValues.get('availability') == 1 %} checked {% endif %}>
<h2 id=\"txtAv1Day\" class=\"{% if oldValues.get('availability') == 1 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.1_day'|trans }}</h2>
<a id=\"txtAv1DayPrice\" class=\" {% if oldValues.get('availability') == 1 %} text-white {% endif %} txtAvailabilityPrice\">17.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"{{ 'app.ui.7_days'|trans }}\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" hidden {% if oldValues.get('availability') == 2 %} checked {% endif %}>
<h2 id=\"txtAv7Days\" class=\"{% if oldValues.get('availability') == 2 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.7_days'|trans }}</h2>
<a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 2 %} text-white {% endif %} \">17.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"{{ 'app.ui.10_days'|trans }}\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" hidden {% if oldValues.get('availability') == 6 %} checked {% endif %}>
<h2 id=\"txtAv10Days\" class=\"{% if oldValues.get('availability') == 6 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.10_days'|trans }}</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 6 %} text-white {% endif %} \">17.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.30_days'|trans }}\" style=\"min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" hidden {% if oldValues.get('availability') == 3 %} checked {% endif %}>
<h2 id=\"txtAv30Days\" class=\"{% if oldValues.get('availability') == 3 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.30_days'|trans }}</h2>
<a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 3 %} text-white {% endif %} \">33.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"{{ 'app.ui.90_days'|trans }}\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" hidden {% if oldValues.get('availability') == 4 %} checked {% endif %}>
<h2 id=\"txtAv90Days\" class=\"{% if oldValues.get('availability') == 4 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.90_days'|trans }}</h2>
<a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 4 %} text-white {% endif %} \">117.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-2 webkit-none\" data-value=\"{{ 'app.ui.60_days'|trans }}\" style=\"display: none; min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" hidden {% if oldValues.get('availability') == 7 %} checked {% endif %}>
<h2 id=\"txtAv60Days\" class=\"{% if oldValues.get('availability') == 7 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.60_days'|trans }}</h2>
<a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 7 %} text-white {% endif %} \">117.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.12_months'|trans }}\" style=\"min-height: 65px\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" hidden {% if oldValues.get('availability') == 5 %} checked {% endif %}>
<h2 id=\"txtAv1Year\" class=\"{% if oldValues.get('availability') == 5 %} text-white {% else %} text-primary {% endif %} txtAvailability\">{{ 'app.ui.12_months'|trans }}</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice {% if oldValues.get('availability') == 5 %} text-white {% endif %} \">333.60 LEI</a>
</div>
</label>
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingFour\" class=\"pb-2\">
<h5 class=\"mb-0\">
<button disabled id=\"btnStep4\" style=\"font-size: 0.8em;\" class=\" w-100 no-button text-dark font-weight-bolder ml-3\" type=\"button\" data-toggle=\"collapse\" data-target=\"#step4Collapse\" aria-expanded=\"false\" aria-controls=\"step4Collapse\">
<div class=\"row align-items-start mt-2 mr-2\">
<div class=\"col-12 mt-1\">
<div class=\"d-flex justify-content-between align-items-center\">
<div>
<img id=\"imgStep4\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}\" style=\"width: 18px; position: relative; top: -2px; margin-right: 10px;\"/>
<a id=\"txtStep4\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">{{'app.ui.step_four'|trans}}</span>
<span style=\"font-size: 1.3em; font-weight: 400; margin-left: 20px;\">{{ 'app.ui.step_four_indication'|trans }}</span>
</a>
</div>
<div id=\"step4EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png')}}\" style=\"width: 20px\"/>
</div>
</div>
</div>
</div>
</button>
</h5>
</div>
<div id=\"step4Collapse\" class=\"collapse\" aria-labelledby=\"headingFour\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\" d-flex align-items-center\" >
<div class=\"mr-2\">
<label for=\"carCountry\" id=\"carCountryLabel\" class=\"lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">{{ 'app.ui.country_code'|trans}}</label>
<select id=\"carCountry\" name=\"carCountry\"
data-style=\"btn-grey border-0 selectpicker-custom shadow-none prometo-font\" data-live-search=\"true\"
title=\"{{ 'app.ui.country_code'|trans }}*\" class=\"form-control input-custom input-custom-grey selectpicker\"
required>
<option id=\"countryCodeOption\" value=\"\">{{'app.ui.country_code'|trans}}</option>
{% for country in countries|sort((a, b) => a.name > b.name) %}
<option id=\"{{ country.code }}\" data-content=\"<span class='text-dark'>{{ country.name }} - {{ country.code }}</span>\"
value=\"{{ country.code }}\" {% if oldValues.get('carCountry') and oldValues.get('carCountry') == country.code %} selected {% endif %}
>{{ country.name }} - {{ country.code }}</option>
{% endfor %}
</select>
</div>
<div class=\"flex-grow-1\">
<label for=\"registrationPlate\" id=\"registrationPlateLabel\" class=\"lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">{{'app.ui.registration_plate'|trans}}</label>
<input id=\"registrationPlate\" name=\"registrationPlate\" data-warning-message=\"{{ 'app.warning.characters_not_allowed'|trans }}\"
data-error-message=\"{{'app.errors.no_plate'|trans }}\" type=\"text\" class=\"form-control input-custom input-custom-grey\"
placeholder=\"{{'app.ui.registration_plate'|trans}}\" maxlength=\"10\" required
oninvalid=\"this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')\"
oninput=\"setCustomValidity('')\"
{% if vehicle is not null and vehicle.registrationPlate is not null and vehicle.registrationPlate is defined %}
value=\"{{ vehicle.registrationPlate }}\"
{% elseif oldValues.get('registrationPlate') %}
value=\"{{ oldValues.get('registrationPlate') }}\"
{% endif %} required> </div>
<div id=\"registrationPlateCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_validation_check.png')}}\" style=\"width: 30px\"/>
</div>
</div>
<div class=\"d-flex align-items-center my-2\">
<div class=\"flex-grow-1\">
<div id=\"vinBlock\" class=\"d-none\">
<label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 100% !important;\">{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})</label>
<input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 100% !important;\"
class=\"form-control input-custom input-custom-grey\" placeholder=\"{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})\">
</div>
</div>
<div id=\"vinCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"{{ asset('assets/shop/images/icons/ic_validation_check.png')}}\" style=\"width: 30px\"/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"finalizeOrder\">
{% if app.request.locale == 'ro' and lastProductStatus.vignetteSmsStatus %}
<div class=\"vignette-alert-container px-2 py-3\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"{{ smsPrice }}\"
{% if oldValues.get('vignetteAlert') %} checked {% endif %}>
<label for=\"vignetteAlert\" class=\"custom-control-label\">
<h4 class=\"text-dark font-weight-bolder\" style=\"letter-spacing: 0.01em;\">{{'app.ui.sms_alert'|trans}}</h4>
</label>
</div>
<div>
<h4 class=\"font-weight-bolder\"> {{ smsPrice }} Lei ({{ sms_price_eur }} Eur)</h4>
</div>
</div>
<div>
<a>{{'app.ui.alert_description'|trans}}</a>
</div>
</div>
{% endif %}
<div id=\"app\" class=\"my-2\">
{% if lastProductStatus.roadAssistanceStatus and lastProductStatus.vignetteRoadAssistanceStatus %}
<road-assistance :price=\"{{ road_assistance_service.retrieveDefaultPrice }}\" :terms-and-conditions-route=\"'{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'terms-and-conditions-road-assistance'}) }}'\" v-bind:is-mobile=\"true\"></road-assistance>
{% endif %}
</div>
<div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
<label for=\"email_allowed\" class=\"custom-control-label\">
<h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">{{'app.ui.cnair_alert'|trans}}</h5>
</label>
</div>
</div>
</div>
<div class=\"row my-3 btn-wrapper\" style=\"height: 45px; margin: 5px;\">
<button id=\"btnSubmitVignette\" name=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-submit btn-primary w-100 h-100\">
<a>{{'app.ui.next_step'|trans}}</a>
</button>
</div>
</div>
</div>
</form>
<style>
.text-primary {
color: #E95A31;
}
.selectpicker-custom {
height: 50px !important;
border-bottom: 1px solid #878C96 !important;
}
.input-custom {
width: 100% !important;
}
.webkit-none {
-webkit-appearance: none !important;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
.modal-backdrop {
opacity: 50% !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
background-color: #e95a31 !important;
}
.b-calendar-grid-body {
margin-left: .5rem!important;
margin-right: .5rem!important;
}
.b-calendar-grid-weekdays {
border: none !important;
}
.loading {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
z-index: 999;
position: fixed;
background-color: rgba(0,0,0,0.7);
opacity: 100%;
width: 100%;
height: 100%;
}
</style>
{% else %}
<div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>{{ 'app.ui.disabled_temporary'|trans }}</h2>
</div>
<div class=\"card-body\">
<a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.back_to_store'|trans }}</a>
</div>
</div>
{% endif %}
{% endblock %}
{% block footer %}
{% if lastProductStatus.vignetteStatus %}
<script>
const route = \"{{ path('sylius_shop_homepage')|escape('js') }}\";
const roadAssistanceTranslations = '{{ roadAssistanceTranslations|json_encode|raw }}';
</script>
{{ encore_entry_script_tags('vue') }}
{% set oldValues = app.request.request %}
<script type=\"text/javascript\">
\$(document).ready(function () {
\$(window).bind(\"load\", function () {
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: false,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
\$('select[name=carCountry]').val('RO').change();
let selectPicker = \$('.selectpicker');
if (selectPicker.length > 0 && typeof selectPicker.selectpicker === 'function') {
selectPicker.selectpicker('refresh');
}
let btn = \$('[data-id=\"' + 'carCountry' + '\"]');
btn.addClass('selectpicker-custom-selected');
btn.removeClass('selectpicker-custom');
}
},
error: function (data) {
}
});
}
});
})
var one_day = '{{ 'app.ui.1_day'|trans|lower }}';
var seven_days = '{{ 'app.ui.7_days'|trans|lower }}';
var ten_days = '{{ 'app.ui.10_days'|trans|lower }}';
var thirty_days = '{{ 'app.ui.30_days'|trans|lower }}';
var sixty_days = '{{ 'app.ui.60_days'|trans|lower }}';
var ninety_days = '{{ 'app.ui.90_days'|trans|lower }}';
var twelve_months = '{{ 'app.ui.12_months'|trans|lower }}';
var locale = '{{ app.request.getLocale() }}';
</script>
{% endif %}
{% block cnair_partner %}
<div class=\"mx-5\">
<div class=\"text-center align-items-center\">
<div class=\"ui circular label bg-white\">
<img src=\"{{ asset('assets/shop/images/icons/ic_trust_cnair_bw.png') }}\" style=\"width: 20px\"/>
</div>
<div class=\"ui circular label bg-white\">
<img src=\"{{ asset('assets/shop/images/icons/ic_trust_stema_bw.png') }}\" style=\"width: 20px\"/>
</div>
<br/>
<small>{{ 'app.ui.cnair_authorized_long'|trans }}</small>
</div>
</div>
{% endblock %}
{% if accordionBlocksAboutVignette is defined and accordionBlocksAboutVignette|length > 0 %}
<div class=\"row my-3 align-items-center text-center\">
{% for key, block in accordionBlocksAboutVignette %}
<div class=\"col-12 col-sm-12 col-md-6 col-lg-4 mb-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse{{ key }}\" aria-expanded=\"false\" aria-controls=\"collapse{{ key }}\">{{ block.name }}</button>
<div class=\"collapse\" id=\"collapse{{ key }}\">
<div class=\"card card-body border\">{{ block.content|raw }}</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% if accordionBlocksAboutHuVignette is defined and accordionBlocksAboutHuVignette|length > 0 %}
<div class=\"row my-3 align-items-center text-center\">
{% for key, block in accordionBlocksAboutHuVignette %}
<div class=\"col-12 col-sm-12 col-md-6 col-lg-4 mb-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse{{ key }}\" aria-expanded=\"false\" aria-controls=\"collapse{{ key }}\">{{ block.name }}</button>
<div class=\"collapse\" id=\"collapse{{ key }}\">
<div class=\"card card-body border\">{{ block.content|raw }}</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% include '@templates/Front/Shop/v2/_footer.html.twig' %}
{% endblock %}
", "@templates/Mobile/vignette.html.twig", "/vhosts/newrca.roviniete.ro/templates/Mobile/vignette.html.twig");
}
}