<?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/HuVignette/hu-vignette.html.twig */
class __TwigTemplate_1f8eafbb3c3b8d6cf8d115852ab179287588ddae62d1da14c51bc8e82e7a7748 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/HuVignette/hu-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/HuVignette/hu-vignette.html.twig"));
$this->parent = $this->loadTemplate("@templates/Mobile/Shop/layout.html.twig", "@templates/Mobile/HuVignette/hu-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>
";
// line 5
$this->displayBlock('title', $context, $blocks);
// line 6
echo " ";
$this->displayBlock('metatags', $context, $blocks);
// line 9
echo " <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\">
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<meta name=\"keywords\" content=\"";
// line 14
if ((twig_length_filter($this->env, (isset($context["huVignetteKeywordsForSeo"]) || array_key_exists("huVignetteKeywordsForSeo", $context) ? $context["huVignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "huVignetteKeywordsForSeo" does not exist.', 14, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["huVignetteKeywordsForSeo"]) || array_key_exists("huVignetteKeywordsForSeo", $context) ? $context["huVignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "huVignetteKeywordsForSeo" does not exist.', 14, $this->source); })()), "content", [], "any", false, false, false, 14), "html", null, true);
}
echo "\">
";
// line 16
$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 27
$this->displayBlock('javascripts', $context, $blocks);
// line 60
echo " </head>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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.hu_vignette.calculator_hu_vignette"), "html", null, true);
echo " | roviniete.ro</title> ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
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 7
echo " <meta name=\"description\" content=\"";
if ((twig_length_filter($this->env, (isset($context["huVignetteDescriptionForSeo"]) || array_key_exists("huVignetteDescriptionForSeo", $context) ? $context["huVignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "huVignetteDescriptionForSeo" does not exist.', 7, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["huVignetteDescriptionForSeo"]) || array_key_exists("huVignetteDescriptionForSeo", $context) ? $context["huVignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "huVignetteDescriptionForSeo" does not exist.', 7, $this->source); })()), "content", [], "any", false, false, false, 7), "html", null, true);
}
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
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 17
echo " <link rel=\"stylesheet\" href=\"/assets/shop/css/homepage.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bootstrap.min.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/vignette_shop.v1.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bs-stepper.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/leftmenu.v2.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bootstrap_select.css\">
";
// line 23
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("bootstrap-fix", null, "bootstrapTheme");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 27
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 28
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 32
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.', 32, $this->source); })()), "html", null, true);
echo "\",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
</script>
<script src=\"";
// line 39
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 40
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 41
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 42
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 43
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 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/_bootstrap_select.min.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/leftmenu.js"), "html", null, true);
echo "\"></script>
";
// line 46
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("hu-vignette");
echo "
<script src=\"";
// line 47
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>
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 56
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.', 56, $this->source); })()), "html", null, true);
echo "');</script>
<!-- End Google Tag Manager -->
<script src=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 64
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 65
echo " <!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
// line 66
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.', 66, $this->source); })()), "html", null, true);
echo "\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
// line 69
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.', 69, $this->source); })()), "huVignetteStatus", [], "any", false, false, false, 69) || (isset($context["isAdmin"]) || array_key_exists("isAdmin", $context) ? $context["isAdmin"] : (function () { throw new RuntimeError('Variable "isAdmin" does not exist.', 69, $this->source); })()))) {
// line 70
echo " <div id=\"loadingAvailabilitiesDiv\" class=\"loading\">
<div class=\"card w-50\" style=\"background-color: #F1F2F3\">
<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>";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.retrieve_prices_for_category"), "html", null, true);
echo "</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.hu_vignette.hu_vignette"), "html", null, true);
echo "</small>
</div>
<h1 class=\"mt-4 mx-3\">";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.calculator_hu_vignette"), "html", null, true);
echo "</h1>
";
// line 85
$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.', 85, $this->source); })()), "calculateSmsPrice", [], "any", false, false, false, 85);
// line 86
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.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "request", [], "any", false, false, false, 86);
// line 87
echo " <div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 89
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 vignette-already-bought d-none\">
";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.hu_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 106
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 110
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 119
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 121
$this->loadTemplate("@templates/Mobile/Checkout/_modal_payment_not_available.html.twig", "@templates/Mobile/HuVignette/hu-vignette.html.twig", 121)->display($context);
// line 122
echo " <div class=\"row mx-1 my-3\">
</div>
<form id=\"huVignetteForm\" data-is-mobile=\"1\" method=\"POST\">
<input type=\"hidden\" value=\"1\" name=\"isHuVignette\" />
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"";
// line 127
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.', 127, $this->source); })()), "extraOptionsStatus", [], "any", false, false, false, 127), "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\">
<div class=\"d-flex justify-content-between\">
<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-left w-100\">
<div class=\"step-wrapper\">
<img id=\"imgStep1\" class=\"float-left\" src=\"";
// line 140
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; margin-right: 10px;display:inline-block;float:left\"/>
<a id=\"txtStep1\" class=\"text-primary\">
<span class=\"float-left\" style=\"float:left;font-size: 1.5em; font-weight: 500;\">";
// line 142
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 143
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 147
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>
<div>
<img class=\"show-info-btn\" data-for=\"category\" src=\"";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/info.png"), "html", null, true);
echo "\" style=\"width: 30px;height: 30px;\"/>
</div>
</div>
</h5>
</div>
<div id=\"step1Collapse\" class=\"collapse show\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\" >
<div class=\"card-body\">
<div class=\"mt-0\">
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 167, $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 168
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 168) % 2) != 0)) {
// line 169
echo " <div class=\"d-flex justify-content-between ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 169) == twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 169, $this->source); })())))) {
echo " w-50 ";
}
echo "\">
";
}
// line 171
echo " <label type=\"button\" for=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 171)), "html", null, true);
echo "\" class=\"btn btn-vignette-unselected w-100 mr-1 webkit-none\" style=\"min-height: 60px !important;\">
<div class=\"d-flex justify-content-between align-items-center\">
<input type=\"radio\" name=\"category\" data-error-message=\"";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_category_selected"), "html", null, true);
echo "\" id=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 173)), "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, 173), "html", null, true);
echo "\"
data-category=\"";
// line 174
if ((twig_get_attribute($this->env, $this->source, $context["category"], "wsId", [], "any", false, false, false, 174) == (isset($context["category_hu_vignette_d1m_id"]) || array_key_exists("category_hu_vignette_d1m_id", $context) ? $context["category_hu_vignette_d1m_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d1m_id" does not exist.', 174, $this->source); })()))) {
// line 175
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d1m_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 176
$context["category"], "wsId", [], "any", false, false, false, 176) == (isset($context["category_hu_vignette_d1_id"]) || array_key_exists("category_hu_vignette_d1_id", $context) ? $context["category_hu_vignette_d1_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d1_id" does not exist.', 176, $this->source); })()))) {
// line 177
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d1_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 178
$context["category"], "wsId", [], "any", false, false, false, 178) == (isset($context["category_hu_vignette_d2_id"]) || array_key_exists("category_hu_vignette_d2_id", $context) ? $context["category_hu_vignette_d2_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d2_id" does not exist.', 178, $this->source); })()))) {
// line 179
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d2_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 180
$context["category"], "wsId", [], "any", false, false, false, 180) == (isset($context["category_hu_vignette_b2_id"]) || array_key_exists("category_hu_vignette_b2_id", $context) ? $context["category_hu_vignette_b2_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_b2_id" does not exist.', 180, $this->source); })()))) {
// line 181
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_b2_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 182
$context["category"], "wsId", [], "any", false, false, false, 182) == (isset($context["category_hu_vignette_u_id"]) || array_key_exists("category_hu_vignette_u_id", $context) ? $context["category_hu_vignette_u_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_u_id" does not exist.', 182, $this->source); })()))) {
// line 183
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_u_name");
echo "
";
}
// line 184
echo "\" hidden>
<img src=\"";
// line 186
echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("assets/shop/images/icons/hu_" . twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 186)))) . "_orange.png"), "html", null, true);
echo "\" style=\"height: 46px\"/>
<a id=\"vehicleType-";
// line 187
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 187)), "html", null, true);
echo "\" class=\"font-weight-bold\" style=\"color: #343a40;\" >
";
// line 188
if ((twig_get_attribute($this->env, $this->source, $context["category"], "wsId", [], "any", false, false, false, 188) == (isset($context["category_hu_vignette_d1m_id"]) || array_key_exists("category_hu_vignette_d1m_id", $context) ? $context["category_hu_vignette_d1m_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d1m_id" does not exist.', 188, $this->source); })()))) {
// line 189
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d1m_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 190
$context["category"], "wsId", [], "any", false, false, false, 190) == (isset($context["category_hu_vignette_d1_id"]) || array_key_exists("category_hu_vignette_d1_id", $context) ? $context["category_hu_vignette_d1_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d1_id" does not exist.', 190, $this->source); })()))) {
// line 191
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d1_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 192
$context["category"], "wsId", [], "any", false, false, false, 192) == (isset($context["category_hu_vignette_d2_id"]) || array_key_exists("category_hu_vignette_d2_id", $context) ? $context["category_hu_vignette_d2_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_d2_id" does not exist.', 192, $this->source); })()))) {
// line 193
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_d2_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 194
$context["category"], "wsId", [], "any", false, false, false, 194) == (isset($context["category_hu_vignette_b2_id"]) || array_key_exists("category_hu_vignette_b2_id", $context) ? $context["category_hu_vignette_b2_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_b2_id" does not exist.', 194, $this->source); })()))) {
// line 195
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_b2_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 196
$context["category"], "wsId", [], "any", false, false, false, 196) == (isset($context["category_hu_vignette_u_id"]) || array_key_exists("category_hu_vignette_u_id", $context) ? $context["category_hu_vignette_u_id"] : (function () { throw new RuntimeError('Variable "category_hu_vignette_u_id" does not exist.', 196, $this->source); })()))) {
// line 197
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_u_short_code");
echo "
";
}
// line 199
echo " </a>
</div>
</label>
";
// line 202
if ((((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 202) % 2) == 0) || (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 202) == twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 202, $this->source); })()))))) {
// line 203
echo " </div>
";
}
// line 205
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 206
echo " </div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingTwo\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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 w-100\">
<div>
<img id=\"imgStep2\" class=\"float-left\" src=\"";
// line 219
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; margin-right: 10px;\"/>
<a id=\"txtStep2\" class=\"text-secondary\">
<span class='float-left' style=\"font-size: 1.5em; font-weight: 500;\">";
// line 221
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 222
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_type"), "html", null, true);
echo "</span>
</a>
</div>
<div id=\"step2EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"";
// line 226
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>
<div>
<img class=\"show-info-btn\" data-for=\"availability\" src=\"";
// line 237
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/info.png"), "html", null, true);
echo "\" style=\"width: 30px;height: 30px;\"/>
</div>
</div>
</h5>
</div>
<div id=\"step2Collapse\" class=\"collapse availability-wrapper\" data-error-message=\"";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_availability_selected"), "html", null, true);
echo "\" aria-labelledby=\"headingTwo\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"";
// line 246
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_a_category_first"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"";
// line 247
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.1_day"), "html", null, true);
echo "\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"31\" data-value=\"";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.1_day"), "html", null, true);
echo "\" hidden disabled>
<h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">";
// line 250
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.1_day"), "html", null, true);
echo "</h2>
<a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"";
// line 255
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_a_category_first"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv10Days\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"";
// line 256
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.10_days"), "html", null, true);
echo "\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"1\" data-value=\"";
// line 258
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.10_days"), "html", null, true);
echo "\" hidden disabled>
<h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.10_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"";
// line 266
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_a_category_first"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv30Days\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"";
// line 267
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html", null, true);
echo "\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"2\" data-value=\"";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.30_days"), "html", null, true);
echo "\" hidden disabled>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">";
// line 270
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 text-dark\"></a>
</div>
</label>
</div>
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"";
// line 275
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_a_category_first"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv12Months\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"";
// line 276
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months");
echo "\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"3\" data-value=\"";
// line 278
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months");
echo "\" hidden disabled>
<h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">";
// line 279
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months");
echo "</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"";
// line 286
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_a_category_first"), "html", null, true);
echo "\">
<label type=\"button\" id=\"lblAv12County\" for=\"av_12_county\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"";
// line 287
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county");
echo "\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12_county\" value=\"4\" data-value=\"";
// line 289
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county");
echo "\" hidden disabled>
<h2 id=\"txtAv12County\" class=\"text-primary txtAvailability\">";
// line 290
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county");
echo "</h2>
<a id=\"txtAv12CountyPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div id=\"selectCountiesDiv\" class=\"d-none\">
<label for=\"counties\">";
// line 297
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.select_counties"), "html", null, true);
echo "</label> <br/>
<select id=\"counties\" class=\"selectpicker w-100\" name=\"counties[]\" data-style=\"btn-light h-35-px\"
multiple data-live-search=\"true\" data-done-button=\"true\" data-actions-box=\"true\" data-live-search-style=\"startsWith\"
title=\"";
// line 300
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.please_select_at_least_one"), "html", null, true);
echo "\">
</select>
</div>
<h6 class=\"text-center mt-3\">";
// line 303
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.price_without_tax"), "html", null, true);
echo "</h6>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingThree\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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 316
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;top:-2px; position: relative; margin-right: 10px;\"/>
<a id=\"txtStep3\" class=\"text-secondary\">
<span style=\"font-size: 1.5em; font-weight: 500;\">";
// line 318
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 319
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_start_date"), "html", null, true);
echo "</span>
</a>
</div>
<div id=\"step3EditIcon\" class=\"d-none\" style=\" margin-left: auto; order: 2;\" >
<img src=\"";
// line 323
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>
<div style=\"display: none\">
<button data-toggle=\"tooltip\" class=\"tooltip-button\" data-placement=\"top\" data-original-title=\"";
// line 333
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_description"), "html", null, true);
echo "\">
<img src=\"";
// line 334
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/info.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
</button>
</div>
</div>
</h5>
</div>
<div id=\"step3Collapse\" class=\"collapse\" aria-labelledby=\"headingThree\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\">
<div id=\"datepicker\" data-error-message = '";
// line 345
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=\"headingFour\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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 361
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 363
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 364
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 368
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>
<div style=\"display: none\">
<button data-toggle=\"tooltip\" class=\"tooltip-button\" data-placement=\"top\" data-original-title=\"";
// line 375
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_description"), "html", null, true);
echo "\">
<img src=\"";
// line 376
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/info.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
</button>
</div>
</div>
</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 387
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 restrict-height\" data-live-search=\"true\"
title=\"";
// line 390
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 392
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html", null, true);
echo "</option>
";
// line 393
$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.', 393, $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.', 393, $this->source); })()), "name", [], "any", false, false, false, 393) > 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.', 393, $this->source); })()), "name", [], "any", false, false, false, 393)); }));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 394
echo " <option 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, 394), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 394), "html", null, true);
echo "</span>\"
value=\"";
// line 395
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 395), "html", null, true);
echo "\"
>";
// line 396
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 "</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 398
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 401
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\" data-warning-message=\"";
// line 402
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=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_plate"), "html", null, true);
echo "\" name=\"registrationPlate\"
maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey\"
placeholder=\"";
// line 404
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "\" required>
</div>
<div id=\"registrationPlateCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"";
// line 407
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=\"date-disclaimer mb-1\">
";
// line 412
echo " <b>Calendar Huvinieta</b> - calendarul se bazează pe ora Ungariei
";
// line 414
echo " </div>
<div class=\"date-disclaimer\">
";
// line 417
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.date_disclaimer");
echo "
";
// line 419
echo " </div>
<div class=\"d-flex align-items-center my-2\">
<div class=\"flex-grow-1\">
<div id=\"vinBlock\">
</div>
</div>
<div id=\"vinCheckIcon\" class=\"ml-2 invisible\" >
<img src=\"";
// line 427
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 453
echo " <div class=\"row my-3\" style=\"height: 45px; margin: 5px;\">
<button id=\"btnSubmitVignette\" name=\"btnSubmitVignette\" type=\"submit\" class=\"submit-button btn btn-submit btn-primary w-100 h-100\">
<a>";
// line 455
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>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"info-text category\">
";
// line 465
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_description");
echo "
";
// line 467
echo " </div>
</div>
<div class=\"col-12\">
<div class=\"info-text availability\">
";
// line 473
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_description");
echo "
";
// line 475
echo " </div>
</div>
</div>
<div class=\"bs-stepper\">
</div>
<style>
.date-disclaimer {
border: 1px solid;
padding: 5px;
margin-top: 10px;
}
.step-wrapper {
display: inline-block;
}
#imgStep1 span {
float:left;
}
button.tooltip-button {
cursor: pointer;
border: none;
background-color: transparent;
padding: 0;
}
button.tooltip-button:focus {outline:0;}
.selectpicker-custom {
height: 50px !important;
border-bottom: 1px solid #878C96 !important;
}
.input-custom {
width: 100% !important;
}
.webkit-none {
-webkit-appearance: none !important;
}
.tooltip-inner {
max-width: 350px; /* set this to your maximum fitting width */
width: inherit; /* will take up least amount of space */
}
.restrict-height {
height: 25px !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%;
}
.availability-box {
max-width: 130px;
}
.dropdown-menu.show {
max-width: 100%;
}
.datepicker-disabled .ui-datepicker-next {
display: none;
}
.datepicker-disabled .ui-state-default {
color: lightgray;
cursor: default;
}
.show-info-btn {
cursor: pointer;
}
.info-text {
display: block;
border: 1px solid lightgray;
padding: 20px;
width: 100%;
background: white;
border-radius: 20px;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
</style>
";
} else {
// line 574
echo " <div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>";
// line 576
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 579
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 587
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 588
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.', 588, $this->source); })()), "huVignetteStatus", [], "any", false, false, false, 588) || (isset($context["isAdmin"]) || array_key_exists("isAdmin", $context) ? $context["isAdmin"] : (function () { throw new RuntimeError('Variable "isAdmin" does not exist.', 588, $this->source); })()))) {
// line 589
echo " <script type=\"text/javascript\">
\$(document).ready(function () {
\$('.selectpicker').selectpicker({
'selectAllText': '";
// line 592
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_all"), "html", null, true);
echo "',
'deselectAllText': '";
// line 593
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.deselect_all"), "html", null, true);
echo "',
'doneButtonText': '";
// line 594
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.close"), "html", null, true);
echo "',
});
\$('.show-info-btn').click(function() {
const element = \$('.info-text.'+\$(this).data('for'));
element.toggleClass('d-none');
if (!element.hasClass('d-none')) {
\$(\"html, body\").animate({ scrollTop: \$(document).height() }, 1000);
}
});
\$('body').on('keyup', '.bs-searchbox input', function() {
const options = optionsStartsWith(\$(this).val(), \$('#carCountry').find('option'));
\$(\"#carCountry\").empty().append(options);
\$(\"#carCountry\").selectpicker('refresh');
});
function optionsStartsWith(input, data) {
const first = [];
const others = [];
for (var i = 0; i < data.length; i++) {
console.log(data[i].text.toLowerCase());
console.log(input);
if (startsWith(data[i].text.toLowerCase(), input.toLowerCase())) {
first.push(data[i]);
} else {
others.push(data[i]);
}
}
return first.concat(others);
}
function startsWith(str, word) {
return str.indexOf(word) === 0;
}
\$('[data-toggle=\"tooltip\"]').tooltip({
html:true,
trigger: 'focus'
});
\$(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();
\$('.selectpicker').selectpicker('refresh');
let btn = \$('[data-id=\"' + 'carCountry' + '\"]');
btn.addClass('selectpicker-custom-selected');
btn.removeClass('selectpicker-custom');
} else if (locale == 'hu') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'HU');
}).prop('selected', true).change();
}
},
error: function (data) {
}
});
}
});
})
var stepper = new Stepper(\$('.bs-stepper')[0]);
var one_day = '";
// line 667
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.1_day")), "html", null, true);
echo "';
var ten_days = '";
// line 668
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.10_days")), "html", null, true);
echo "';
var thirty_days = '";
// line 669
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.30_days")), "html", null, true);
echo "';
var twelve_months = '";
// line 670
echo twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months"));
echo "';
var twelve_months_county = '";
// line 671
echo twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county"));
echo "';
var locale = '";
// line 672
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.', 672, $this->source); })()), "request", [], "any", false, false, false, 672), "getLocale", [], "method", false, false, false, 672), "html", null, true);
echo "';
var isOneYearHuVignetteAvailableThisYear = ";
// line 673
echo (((isset($context["isOneYearHuVignetteAvailableThisYear"]) || array_key_exists("isOneYearHuVignetteAvailableThisYear", $context) ? $context["isOneYearHuVignetteAvailableThisYear"] : (function () { throw new RuntimeError('Variable "isOneYearHuVignetteAvailableThisYear" does not exist.', 673, $this->source); })())) ? ("true") : ("false"));
echo ";
</script>
";
}
// line 676
echo "
";
// line 677
$this->displayBlock('cnair_partner', $context, $blocks);
// line 693
echo "
";
// line 694
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.', 694, $this->source); })())) > 0))) {
// line 695
echo " <div class=\"row my-3 align-items-center text-center\">
";
// line 696
$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.', 696, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["block"]) {
// line 697
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 698
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, 698), "html", null, true);
echo "</button>
<div class=\"collapse\" id=\"collapse";
// line 699
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<div class=\"card card-body border\">";
// line 700
echo twig_get_attribute($this->env, $this->source, $context["block"], "content", [], "any", false, false, false, 700);
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 704
echo " </div>
";
}
// line 706
echo "
";
// line 707
$this->loadTemplate("@templates/Front/Shop/v2/_footer.html.twig", "@templates/Mobile/HuVignette/hu-vignette.html.twig", 707)->display($context);
// line 708
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 677
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 678
echo " <div class=\"mx-5\">
<div class=\"text-center align-items-center\">
<div class=\"ui circular label bg-white\">
<img src=\"";
// line 681
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 684
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 688
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/HuVignette/hu-vignette.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1409 => 688, 1402 => 684, 1396 => 681, 1391 => 678, 1381 => 677, 1370 => 708, 1368 => 707, 1365 => 706, 1361 => 704, 1351 => 700, 1347 => 699, 1339 => 698, 1336 => 697, 1332 => 696, 1329 => 695, 1327 => 694, 1324 => 693, 1322 => 677, 1319 => 676, 1313 => 673, 1309 => 672, 1305 => 671, 1301 => 670, 1297 => 669, 1293 => 668, 1289 => 667, 1213 => 594, 1209 => 593, 1205 => 592, 1200 => 589, 1197 => 588, 1187 => 587, 1170 => 579, 1164 => 576, 1160 => 574, 1059 => 475, 1054 => 473, 1047 => 467, 1042 => 465, 1030 => 455, 1026 => 453, 1013 => 427, 1003 => 419, 998 => 417, 994 => 414, 991 => 412, 984 => 407, 978 => 404, 971 => 402, 967 => 401, 962 => 398, 952 => 396, 948 => 395, 941 => 394, 937 => 393, 933 => 392, 928 => 390, 922 => 387, 908 => 376, 904 => 375, 894 => 368, 887 => 364, 883 => 363, 878 => 361, 859 => 345, 845 => 334, 841 => 333, 828 => 323, 821 => 319, 817 => 318, 812 => 316, 796 => 303, 790 => 300, 784 => 297, 774 => 290, 770 => 289, 765 => 287, 761 => 286, 751 => 279, 747 => 278, 742 => 276, 738 => 275, 730 => 270, 726 => 269, 721 => 267, 717 => 266, 707 => 259, 703 => 258, 698 => 256, 694 => 255, 686 => 250, 682 => 249, 677 => 247, 673 => 246, 667 => 243, 658 => 237, 644 => 226, 637 => 222, 633 => 221, 628 => 219, 613 => 206, 599 => 205, 595 => 203, 593 => 202, 588 => 199, 582 => 197, 580 => 196, 575 => 195, 573 => 194, 568 => 193, 566 => 192, 561 => 191, 559 => 190, 554 => 189, 552 => 188, 548 => 187, 544 => 186, 540 => 184, 534 => 183, 532 => 182, 527 => 181, 525 => 180, 520 => 179, 518 => 178, 513 => 177, 511 => 176, 506 => 175, 504 => 174, 496 => 173, 490 => 171, 482 => 169, 479 => 168, 462 => 167, 450 => 158, 436 => 147, 429 => 143, 425 => 142, 420 => 140, 404 => 127, 397 => 122, 395 => 121, 390 => 119, 378 => 110, 371 => 106, 355 => 93, 348 => 89, 344 => 87, 341 => 86, 339 => 85, 335 => 84, 330 => 82, 323 => 80, 315 => 75, 310 => 73, 305 => 70, 303 => 69, 297 => 66, 294 => 65, 284 => 64, 272 => 58, 267 => 56, 255 => 47, 251 => 46, 247 => 45, 243 => 44, 239 => 43, 235 => 42, 231 => 41, 227 => 40, 223 => 39, 213 => 32, 205 => 28, 195 => 27, 183 => 23, 175 => 17, 165 => 16, 150 => 7, 140 => 6, 119 => 5, 108 => 60, 106 => 27, 102 => 26, 99 => 25, 97 => 16, 90 => 14, 83 => 9, 80 => 6, 78 => 5, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@templates/Mobile/Shop/layout.html.twig' %}
{% block head %}
<head>
{% block title %} <title>{{ 'app.hu_vignette.calculator_hu_vignette'|trans }} | roviniete.ro</title> {% endblock %}
{% block metatags %}
<meta name=\"description\" content=\"{% if huVignetteDescriptionForSeo|length > 0 %}{{ huVignetteDescriptionForSeo.content }}{% endif %}\"/>
{% endblock %}
<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\">
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<meta name=\"keywords\" content=\"{% if huVignetteKeywordsForSeo|length > 0 %}{{ huVignetteKeywordsForSeo.content }}{% endif %}\">
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"/assets/shop/css/homepage.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bootstrap.min.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/vignette_shop.v1.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bs-stepper.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/leftmenu.v2.css\">
<link rel=\"stylesheet\" href=\"/assets/shop/css/bootstrap_select.css\">
{{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
{% 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,
})]
});
}
</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/_bootstrap_select.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/leftmenu.js') }}\"></script>
{{ encore_entry_script_tags('hu-vignette') }}
<script src=\"{{ asset('/bundles/fosjsrouting/js/router.js') }}\"></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 -->
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
{% endblock %}
</head>
{% endblock %}
{% block content %}
<!-- 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.huVignetteStatus or isAdmin %}
<div id=\"loadingAvailabilitiesDiv\" class=\"loading\">
<div class=\"card w-50\" style=\"background-color: #F1F2F3\">
<div class=\"card-body bg-loading-card\">
<img src=\"{{ asset('assets/shop/images/spinner.gif') }}\"
style=\"width: 50px; pointer-events: none\"/>
<h5>{{ 'app.hu_vignette.retrieve_prices_for_category'|trans }}</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.hu_vignette.hu_vignette'|trans }}</small>
</div>
<h1 class=\"mt-4 mx-3\">{{ 'app.hu_vignette.calculator_hu_vignette'|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>{{ 'app.ui.error'|trans }}</h2>
</div>
<p>
<h5 class=\"text-center text-primary vignette-already-bought d-none\">
{{ 'app.hu_vignette.hu_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' %}
<div class=\"row mx-1 my-3\">
</div>
<form id=\"huVignetteForm\" data-is-mobile=\"1\" method=\"POST\">
<input type=\"hidden\" value=\"1\" name=\"isHuVignette\" />
<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\">
<div class=\"d-flex justify-content-between\">
<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-left w-100\">
<div class=\"step-wrapper\">
<img id=\"imgStep1\" class=\"float-left\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_primary.png')}}\" style=\"width: 18px; position: relative; margin-right: 10px;display:inline-block;float:left\"/>
<a id=\"txtStep1\" class=\"text-primary\">
<span class=\"float-left\" style=\"float:left;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>
<div>
<img class=\"show-info-btn\" data-for=\"category\" src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px;height: 30px;\"/>
</div>
</div>
</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 categories %}
{% if loop.index % 2 != 0 %}
<div class=\"d-flex justify-content-between {% if loop.index == categories|length %} w-50 {% endif %}\">
{% endif %}
<label type=\"button\" for=\"{{ category.code|lower }}\" class=\"btn btn-vignette-unselected w-100 mr-1 webkit-none\" style=\"min-height: 60px !important;\">
<div class=\"d-flex justify-content-between align-items-center\">
<input type=\"radio\" name=\"category\" data-error-message=\"{{'app.errors.no_category_selected'|trans }}\" id=\"{{ category.code|lower }}\" value=\"{{ category.id }}\"
data-category=\"{% if category.wsId == category_hu_vignette_d1m_id %}
{{ 'app.hu_vignette.category_d1m_name'|trans }}
{% elseif category.wsId == category_hu_vignette_d1_id %}
{{ 'app.hu_vignette.category_d1_name'|trans }}
{% elseif category.wsId == category_hu_vignette_d2_id %}
{{ 'app.hu_vignette.category_d2_name'|trans|raw }}
{% elseif category.wsId == category_hu_vignette_b2_id %}
{{ 'app.hu_vignette.category_b2_name'|trans }}
{% elseif category.wsId == category_hu_vignette_u_id %}
{{ 'app.hu_vignette.category_u_name'|trans|raw }}
{% endif %}\" hidden>
<img src=\"{{ (asset('assets/shop/images/icons/hu_' ~ category.code|lower) ~ '_orange.png')}}\" style=\"height: 46px\"/>
<a id=\"vehicleType-{{category.code|lower}}\" class=\"font-weight-bold\" style=\"color: #343a40;\" >
{% if category.wsId == category_hu_vignette_d1m_id %}
{{ 'app.hu_vignette.category_d1m_short_code'|trans }}
{% elseif category.wsId == category_hu_vignette_d1_id %}
{{ 'app.hu_vignette.category_d1_short_code'|trans }}
{% elseif category.wsId == category_hu_vignette_d2_id %}
{{ 'app.hu_vignette.category_d2_short_code'|trans|raw }}
{% elseif category.wsId == category_hu_vignette_b2_id %}
{{ 'app.hu_vignette.category_b2_short_code'|trans }}
{% elseif category.wsId == category_hu_vignette_u_id %}
{{ 'app.hu_vignette.category_u_short_code'|trans|raw }}
{% endif %}
</a>
</div>
</label>
{% if loop.index % 2 == 0 or loop.index == categories|length %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingTwo\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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 w-100\">
<div>
<img id=\"imgStep2\" class=\"float-left\" src=\"{{ asset('assets/shop/images/icons/ic_check_small_grey.png')}}\" style=\"width: 18px; position: relative; margin-right: 10px;\"/>
<a id=\"txtStep2\" class=\"text-secondary\">
<span class='float-left' 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.hu_vignette.availability_type'|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>
<div>
<img class=\"show-info-btn\" data-for=\"availability\" src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px;height: 30px;\"/>
</div>
</div>
</h5>
</div>
<div id=\"step2Collapse\" class=\"collapse availability-wrapper\" data-error-message=\"{{'app.errors.no_availability_selected'|trans }}\" aria-labelledby=\"headingTwo\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"{{ 'app.hu_vignette.please_select_a_category_first'|trans }}\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"{{ 'app.hu_vignette.1_day'|trans }}\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"31\" data-value=\"{{ 'app.hu_vignette.1_day'|trans }}\" hidden disabled>
<h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">{{ 'app.hu_vignette.1_day'|trans }}</h2>
<a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"{{ 'app.hu_vignette.please_select_a_category_first'|trans }}\">
<label type=\"button\" id=\"lblAv10Days\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"{{ 'app.hu_vignette.10_days'|trans }}\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"1\" data-value=\"{{ 'app.hu_vignette.10_days'|trans }}\" hidden disabled>
<h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">{{ 'app.hu_vignette.10_days'|trans }}</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"{{ 'app.hu_vignette.please_select_a_category_first'|trans }}\">
<label type=\"button\" id=\"lblAv30Days\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"{{ 'app.ui.30_days'|trans }}\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"2\" data-value=\"{{ 'app.hu_vignette.30_days'|trans }}\" hidden disabled>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.30_days'|trans }}</h2>
<a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"{{ 'app.hu_vignette.please_select_a_category_first'|trans }}\">
<label type=\"button\" id=\"lblAv12Months\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"{{ 'app.ui.12_months'|trans|raw }}\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"3\" data-value=\"{{ 'app.hu_vignette.12_months'|trans|raw }}\" hidden disabled>
<h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">{{ 'app.ui.12_months'|trans|raw }}</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div class=\"d-flex justify-content-between my-2\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability\" title=\"{{ 'app.hu_vignette.please_select_a_category_first'|trans }}\">
<label type=\"button\" id=\"lblAv12County\" for=\"av_12_county\" class=\"btn btn-vignette-unselected w-100 webkit-none d-flex align-items-center justify-content-center\" data-value=\"{{ 'app.hu_vignette.12_months_county'|trans|raw }}\" data-title=\"mobile\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12_county\" value=\"4\" data-value=\"{{ 'app.hu_vignette.12_months_county'|trans|raw }}\" hidden disabled>
<h2 id=\"txtAv12County\" class=\"text-primary txtAvailability\">{{ 'app.hu_vignette.12_months_county'|trans|raw }}</h2>
<a id=\"txtAv12CountyPrice\" class=\"txtAvailabilityPrice text-dark\"></a>
</div>
</label>
</div>
</div>
<div id=\"selectCountiesDiv\" class=\"d-none\">
<label for=\"counties\">{{ 'app.hu_vignette.select_counties'|trans }}</label> <br/>
<select id=\"counties\" class=\"selectpicker w-100\" name=\"counties[]\" data-style=\"btn-light h-35-px\"
multiple data-live-search=\"true\" data-done-button=\"true\" data-actions-box=\"true\" data-live-search-style=\"startsWith\"
title=\"{{ 'app.hu_vignette.please_select_at_least_one'|trans }}\">
</select>
</div>
<h6 class=\"text-center mt-3\">{{ 'app.hu_vignette.price_without_tax'|trans }}</h6>
</div>
</div>
</div>
<div class=\"card mb-3 shadow-sm\">
<div id=\"headingThree\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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;top:-2px; position: relative; 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.select_start_date'|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>
<div style=\"display: none\">
<button data-toggle=\"tooltip\" class=\"tooltip-button\" data-placement=\"top\" data-original-title=\"{{ 'app.hu_vignette.availability_description'|raw|trans }}\">
<img src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px\"/>
</button>
</div>
</div>
</h5>
</div>
<div id=\"step3Collapse\" class=\"collapse\" aria-labelledby=\"headingThree\" data-parent=\"#accordion\">
<div class=\"card-body\">
<div class=\"d-flex justify-content-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\">
<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=\"headingFour\" class=\"pb-2\">
<h5 class=\"mb-0\">
<div class=\"d-flex justify-content-between\">
<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>
<div style=\"display: none\">
<button data-toggle=\"tooltip\" class=\"tooltip-button\" data-placement=\"top\" data-original-title=\"{{ 'app.hu_vignette.availability_description'|raw|trans }}\">
<img src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px\"/>
</button>
</div>
</div>
</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 restrict-height\" 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 data-content=\"<span class='text-dark'>{{ country.name }} - {{ country.code }}</span>\"
value=\"{{ country.code }}\"
>{{ 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\" data-warning-message=\"{{ 'app.warning.characters_not_allowed'|trans }}\" data-error-message=\"{{'app.errors.no_plate'|trans }}\" name=\"registrationPlate\"
maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey\"
placeholder=\"{{'app.ui.registration_plate'|trans}}\" 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=\"date-disclaimer mb-1\">
{% autoescape false %}
<b>Calendar Huvinieta</b> - calendarul se bazează pe ora Ungariei
{% endautoescape %}
</div>
<div class=\"date-disclaimer\">
{% autoescape false %}
{{'app.ui.date_disclaimer'|trans}}
{% endautoescape %}
</div>
<div class=\"d-flex align-items-center my-2\">
<div class=\"flex-grow-1\">
<div id=\"vinBlock\">
</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\">
{# <div id=\"smsAlert\" 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\">
<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>#}
<div class=\"row my-3\" style=\"height: 45px; margin: 5px;\">
<button id=\"btnSubmitVignette\" name=\"btnSubmitVignette\" type=\"submit\" class=\"submit-button btn btn-submit btn-primary w-100 h-100\">
<a>{{'app.ui.next_step'|trans}}</a>
</button>
</div>
</div>
</div>
</form>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"info-text category\">
{% autoescape false %}
{{ 'app.hu_vignette.category_description'|raw|trans }}
{% endautoescape %}
</div>
</div>
<div class=\"col-12\">
<div class=\"info-text availability\">
{% autoescape false %}
{{ 'app.hu_vignette.availability_description'|raw|trans }}
{% endautoescape %}
</div>
</div>
</div>
<div class=\"bs-stepper\">
</div>
<style>
.date-disclaimer {
border: 1px solid;
padding: 5px;
margin-top: 10px;
}
.step-wrapper {
display: inline-block;
}
#imgStep1 span {
float:left;
}
button.tooltip-button {
cursor: pointer;
border: none;
background-color: transparent;
padding: 0;
}
button.tooltip-button:focus {outline:0;}
.selectpicker-custom {
height: 50px !important;
border-bottom: 1px solid #878C96 !important;
}
.input-custom {
width: 100% !important;
}
.webkit-none {
-webkit-appearance: none !important;
}
.tooltip-inner {
max-width: 350px; /* set this to your maximum fitting width */
width: inherit; /* will take up least amount of space */
}
.restrict-height {
height: 25px !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%;
}
.availability-box {
max-width: 130px;
}
.dropdown-menu.show {
max-width: 100%;
}
.datepicker-disabled .ui-datepicker-next {
display: none;
}
.datepicker-disabled .ui-state-default {
color: lightgray;
cursor: default;
}
.show-info-btn {
cursor: pointer;
}
.info-text {
display: block;
border: 1px solid lightgray;
padding: 20px;
width: 100%;
background: white;
border-radius: 20px;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
</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.huVignetteStatus or isAdmin %}
<script type=\"text/javascript\">
\$(document).ready(function () {
\$('.selectpicker').selectpicker({
'selectAllText': '{{ 'app.ui.select_all'|trans }}',
'deselectAllText': '{{ 'app.ui.deselect_all'|trans }}',
'doneButtonText': '{{ 'app.ui.close'|trans }}',
});
\$('.show-info-btn').click(function() {
const element = \$('.info-text.'+\$(this).data('for'));
element.toggleClass('d-none');
if (!element.hasClass('d-none')) {
\$(\"html, body\").animate({ scrollTop: \$(document).height() }, 1000);
}
});
\$('body').on('keyup', '.bs-searchbox input', function() {
const options = optionsStartsWith(\$(this).val(), \$('#carCountry').find('option'));
\$(\"#carCountry\").empty().append(options);
\$(\"#carCountry\").selectpicker('refresh');
});
function optionsStartsWith(input, data) {
const first = [];
const others = [];
for (var i = 0; i < data.length; i++) {
console.log(data[i].text.toLowerCase());
console.log(input);
if (startsWith(data[i].text.toLowerCase(), input.toLowerCase())) {
first.push(data[i]);
} else {
others.push(data[i]);
}
}
return first.concat(others);
}
function startsWith(str, word) {
return str.indexOf(word) === 0;
}
\$('[data-toggle=\"tooltip\"]').tooltip({
html:true,
trigger: 'focus'
});
\$(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();
\$('.selectpicker').selectpicker('refresh');
let btn = \$('[data-id=\"' + 'carCountry' + '\"]');
btn.addClass('selectpicker-custom-selected');
btn.removeClass('selectpicker-custom');
} else if (locale == 'hu') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'HU');
}).prop('selected', true).change();
}
},
error: function (data) {
}
});
}
});
})
var stepper = new Stepper(\$('.bs-stepper')[0]);
var one_day = '{{ 'app.hu_vignette.1_day'|trans|lower }}';
var ten_days = '{{ 'app.hu_vignette.10_days'|trans|lower }}';
var thirty_days = '{{ 'app.hu_vignette.30_days'|trans|lower }}';
var twelve_months = '{{ 'app.hu_vignette.12_months'|trans|lower|raw }}';
var twelve_months_county = '{{ 'app.hu_vignette.12_months_county'|trans|lower|raw }}';
var locale = '{{ app.request.getLocale() }}';
var isOneYearHuVignetteAvailableThisYear = {{ isOneYearHuVignetteAvailableThisYear ? 'true' : 'false' }};
</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 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/HuVignette/hu-vignette.html.twig", "/vhosts/newrca.roviniete.ro/templates/Mobile/HuVignette/hu-vignette.html.twig");
}
}