<?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/Front/HuVignette/hu-vignette.html.twig */
class __TwigTemplate_fb81d41868e0f3ab364df211bf2c6dfa5d6ee0a9bdac193e0ee8abe3a10f7821 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'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@templates/Front/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/Front/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/Front/HuVignette/hu-vignette.html.twig"));
$this->parent = $this->loadTemplate("@templates/Front/Shop/layout.html.twig", "@templates/Front/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 "
";
// line 7
$this->displayBlock('metatags', $context, $blocks);
// line 10
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 15
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.', 15, $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.', 15, $this->source); })()), "content", [], "any", false, false, false, 15), "html", null, true);
}
echo "\">
";
// line 17
$this->displayBlock('stylesheets', $context, $blocks);
// line 25
echo "
";
// line 26
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.head"]);
echo "
";
// line 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 7
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 8
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.', 8, $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.', 8, $this->source); })()), "content", [], "any", false, false, false, 8), "html", null, true);
}
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 18
echo " <link rel=\"stylesheet\" href=\"/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/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=\"/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','";
// 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 63
public function block_header($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", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 64
echo " <!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
// line 65
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.', 65, $this->source); })()), "html", null, true);
echo "\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id=\"loadingAvailabilitiesDiv\" class=\"loading\">
<div class=\"card w-50\" style=\"background-color: #F1F2F3\">
<div class=\"card-body bg-loading-card\">
<img src=\"";
// line 71
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 73
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=\"custom-container\">
<div style=\"max-width: 100%\">
<div class=\"bg-white\">
<header>
";
// line 81
$this->loadTemplate("@templates/Front/Shop/v2/_header.html.twig", "@templates/Front/HuVignette/hu-vignette.html.twig", 81)->display($context);
// line 82
echo "
";
// line 83
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_header"]);
echo "
</header>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 91
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 92
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.', 92, $this->source); })()), "huVignetteStatus", [], "any", false, false, false, 92) || (isset($context["isAdmin"]) || array_key_exists("isAdmin", $context) ? $context["isAdmin"] : (function () { throw new RuntimeError('Variable "isAdmin" does not exist.', 92, $this->source); })()))) {
// line 93
echo " <script type=\"text/javascript\">
var one_day = '";
// line 94
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 95
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 96
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 97
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 98
echo twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county"));
echo "';
var locale = '";
// line 99
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.', 99, $this->source); })()), "request", [], "any", false, false, false, 99), "getLocale", [], "method", false, false, false, 99), "html", null, true);
echo "';
var isOneYearHuVignetteAvailableThisYear = ";
// line 100
echo (((isset($context["isOneYearHuVignetteAvailableThisYear"]) || array_key_exists("isOneYearHuVignetteAvailableThisYear", $context) ? $context["isOneYearHuVignetteAvailableThisYear"] : (function () { throw new RuntimeError('Variable "isOneYearHuVignetteAvailableThisYear" does not exist.', 100, $this->source); })())) ? ("true") : ("false"));
echo ";
</script>
<div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 104
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 108
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 121
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 125
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 134
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>
<div class=\"d-inline-flex mx-3\">
<a href=\"";
// line 137
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 139
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>
<div>
<h1 class=\"mx-3\">";
// line 142
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>
<div>
<div id=\"stepperForm\" class=\"bs-stepper linear\">
<div class=\"row\" style=\"padding: 0 20px 20px;\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<div class=\"d-inline-flex justify-content-center align-items-center\">
<img src=\"";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_dark.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
<h3>
<a class=\"font-weight-bolder text-primary\">";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.hu_vignette_details"), "html", null, true);
echo ":</a>
<a class=\"font-weight-bolder text-dark\">";
// line 153
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category"), "html", null, true);
echo " - </a>
<a id=\"categoryTitleText\">-</a>;
<a class=\"font-weight-bolder text-dark\">";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_type"), "html", null, true);
echo " - </a>
<a id=\"availabilityTitleText\">-</a>
</h3>
</div>
<div id=\"editVignetteStep1\">
<img src=\"";
// line 160
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: 30px\"/>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-header d-none\" role=\"tablist\">
<div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
<span class=\"bs-stepper-circle\"><a>1</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">";
// line 170
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.hu_vignette_details")), "html", null, true);
echo "</small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
<div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
<span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">";
// line 177
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.car_data")), "html", null, true);
echo " </small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
</div>
<div class=\"bs-stepper-content\">
<form id=\"huVignetteForm\" method=\"POST\">
<input type=\"hidden\" value=\"1\" name=\"isHuVignette\" />
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"";
// line 185
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.', 185, $this->source); })()), "extraOptionsStatus", [], "any", false, false, false, 185), "html", null, true);
echo "\">
<div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
<div class=\"d-flex justify-content-between align-items-start\">
<h3 id=\"selectedCategoryText\" class=\"mb-3 font-weight-bolder\">";
// line 194
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_type"), "html", null, true);
echo "</h3>
<img class='show-info-btn' data-for=\"category\" src=\"";
// line 195
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\"/>
</div>
";
// line 197
$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.', 197, $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 198
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 198) % 2) != 0)) {
// line 199
echo " <div class=\"d-flex justify-content-center my-2 ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 199) == twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 199, $this->source); })())))) {
echo " w-50 ";
}
echo "\">
";
}
// line 201
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, 201)), "html", null, true);
echo "\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\" style=\"height: 75px !important;\">
<input type=\"radio\" name=\"category\" data-error-message=\"";
// line 202
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, 202)), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "wsId", [], "any", false, false, false, 202), "html", null, true);
echo "\"
data-category=\"";
// line 203
if ((twig_get_attribute($this->env, $this->source, $context["category"], "wsId", [], "any", false, false, false, 203) == (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.', 203, $this->source); })()))) {
// line 204
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 205
$context["category"], "wsId", [], "any", false, false, false, 205) == (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.', 205, $this->source); })()))) {
// line 206
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 207
$context["category"], "wsId", [], "any", false, false, false, 207) == (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.', 207, $this->source); })()))) {
// line 208
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 209
$context["category"], "wsId", [], "any", false, false, false, 209) == (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.', 209, $this->source); })()))) {
// line 210
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 211
$context["category"], "wsId", [], "any", false, false, false, 211) == (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.', 211, $this->source); })()))) {
// line 212
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_u_name");
echo "
";
}
// line 213
echo "\"
hidden>
<div class=\"d-flex justify-content-between align-items-center mt-2\">
<h5 class=\"text-dark font-weight-bolder\" id=\"vehicleType-";
// line 216
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 216))), "html", null, true);
echo "\">
";
// line 217
if ((twig_get_attribute($this->env, $this->source, $context["category"], "wsId", [], "any", false, false, false, 217) == (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.', 217, $this->source); })()))) {
// line 218
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 219
$context["category"], "wsId", [], "any", false, false, false, 219) == (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.', 219, $this->source); })()))) {
// line 220
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 221
$context["category"], "wsId", [], "any", false, false, false, 221) == (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.', 221, $this->source); })()))) {
// line 222
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 223
$context["category"], "wsId", [], "any", false, false, false, 223) == (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.', 223, $this->source); })()))) {
// line 224
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 225
$context["category"], "wsId", [], "any", false, false, false, 225) == (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.', 225, $this->source); })()))) {
// line 226
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_u_short_code");
echo "
";
}
// line 228
echo " </h5>
<img class=\"ml-auto\" src=\"";
// line 229
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, 229)))) . "_orange.png"), "html", null, true);
echo "\" style=\"height: 46px\"/>
</div>
</label>
";
// line 232
if ((((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 232) % 2) == 0) || (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 232) == twig_length_filter($this->env, (isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 232, $this->source); })()))))) {
// line 233
echo " </div>
";
}
// line 235
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 236
echo " <div class=\"d-flex justify-content-center\">
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
<div class=\"d-flex justify-content-between\">
<h3 class=\"mb-3 font-weight-bolder\">";
// line 243
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.choose_validity"), "html", null, true);
echo "</h3>
<img class=\"show-info-btn\" data-for=\"availability\" src=\"";
// line 244
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 class=\"d-flex justify-content-between my-2 availability-wrapper\" data-error-message=\"";
// line 246
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_availability_selected"), "html", null, true);
echo "\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability hover-tooltip\" title=\"";
// line 247
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 248
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=\"front\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"31\" data-value=\"";
// 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 "\" hidden disabled>
<h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">";
// line 251
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 hover-tooltip\" title=\"";
// line 256
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 257
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=\"front\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"1\" data-value=\"";
// 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 "\" hidden disabled>
<h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">";
// line 260
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 hover-tooltip\" title=\"";
// line 268
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 269
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.30_days");
echo "\" data-title=\"front\" style=\"min-height: 145px !important;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"2\" data-value=\"";
// line 271
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.30_days");
echo "\" hidden disabled>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">";
// line 272
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.30_days");
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 hover-tooltip\" title=\"";
// line 277
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 278
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months");
echo "\" data-title=\"front\" style=\"min-height: 145px;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"3\" data-value=\"";
// line 280
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 281
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.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 hover-tooltip\" title=\"";
// line 289
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 290
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.12_months_county");
echo "\" data-title=\"front\" style=\"min-height: 145px;\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12_county\" value=\"4\" data-value=\"";
// line 292
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 293
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 301
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 304
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=\"mt-2\">";
// line 307
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>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div class=\"btn-wrapper\">
<button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
<a>";
// line 316
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>
</div>
<div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\">
<h3 class=\"font-weight-bolder mb-2 text-center\">";
// line 329
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_start_date"), "html", null, true);
echo "</h3>
<div class=\"d-flex justify-content-center align-items-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\">
<div id=\"datepicker\" data-error-message = '";
// line 332
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 class=\"d-flex justify-content-center mt-3\">
<div class=\"d-flex\">
<div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">";
// line 338
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.current_date"), "html", null, true);
echo ":</a> <br/>
<h5 class=\"ml-2 text-dark\">";
// line 339
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "d/m/Y"), "html", null, true);
echo "</h5>
</div>
</div>
<div id=\"divStartDatePicker\">
<div class=\"d-flex ml-4\">
<div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">";
// line 346
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.start_date"), "html", null, true);
echo ":</a> <br/>
<h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
</div>
</div>
</div>
</div>
<div class=\"date-disclaimer\">
";
// line 354
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.date_disclaimer");
echo "
";
// line 356
echo " </div>
</div>
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
<h3 class=\"mb-3 font-weight-bolder\">";
// line 359
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_data"), "html", null, true);
echo "</h3>
<div class=\"row mt-3 d-flex align-items-end\">
<div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
<label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 362
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\" class=\"form-control input-custom input-custom-grey\" required>
<option value=\"\">";
// line 364
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html", null, true);
echo "</option>
";
// line 365
$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.', 365, $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.', 365, $this->source); })()), "name", [], "any", false, false, false, 365) > 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.', 365, $this->source); })()), "name", [], "any", false, false, false, 365)); }));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 366
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 366), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "name", [], "any", false, false, false, 366), "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 368
echo " </select>
</div>
<div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
<label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 371
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 372
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 373
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "\" oninvalid=\"this.setCustomValidity('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_fill_this_field"), "html", null, true);
echo "')\"
oninput=\"setCustomValidity('')\"
required>
</div>
<div data-error-message = '";
// line 377
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html", null, true);
echo "' id=\"registrationPlateError\"></div>
</div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"vinBlock\">
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
";
// line 390
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.info_payment_not_available");
echo "
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div>
<button type=\"button\" class=\"btn btn-grey btn-add-to-cart w-100 mb-3\" style=\"height: 40px\">
<a class=\"submit-button\">";
// line 397
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.add_to_cart"), "html", null, true);
echo "</a>
</button>
<button id=\"btnSubmitVignette\" type=\"submit\" class=\"submit-button btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>";
// line 399
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.buy_now"), "html", null, true);
echo "</a></button>
</div>
</div>
</div>
</div>
</form>
<div class=\"row\">
<div class=\"col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5\">
<div class=\"info-text category\">
";
// line 409
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.category_description");
echo "
";
// line 411
echo " </div>
<div class=\"card my-3\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<img src=\"";
// line 414
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/hungary/nemzeti.png"), "html", null, true);
echo "\" style=\"max-width: 50px\"/>
<h6 class=\"font-weight-normal\">";
// line 415
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.national_payment_distributor"), "html", null, true);
echo "</h6>
</div>
</div>
</div>
<div class=\"col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5\">
<div class=\"info-text availability\">
";
// line 423
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.hu_vignette.availability_description");
echo "
";
// line 425
echo " </div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-content\">
<div class=\"row my-3\">
";
// line 435
if ((twig_length_filter($this->env, (isset($context["accordionBlocksAboutHuVignette"]) || array_key_exists("accordionBlocksAboutHuVignette", $context) ? $context["accordionBlocksAboutHuVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutHuVignette" does not exist.', 435, $this->source); })())) > 0)) {
// line 436
echo " ";
$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.', 436, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["block"]) {
// line 437
echo " <div class=\"col-3 my-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
// line 438
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, 438), "html", null, true);
echo "</button>
<div class=\"collapse\" id=\"collapse";
// line 439
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<div class=\"card card-body border\">";
// line 440
echo twig_get_attribute($this->env, $this->source, $context["block"], "content", [], "any", false, false, false, 440);
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 444
echo " ";
}
// line 445
echo " </div>
</div>
<script>
\$(document).ready(function () {
\$('.selectpicker').selectpicker({
'selectAllText': '";
// line 451
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_all"), "html", null, true);
echo "',
'deselectAllText': '";
// line 452
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.deselect_all"), "html", null, true);
echo "',
'doneButtonText': '";
// line 453
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() {
\$('.info-text.'+\$(this).data('for')).toggleClass('d-none');
});
\$('[data-toggle=\"tooltip\"]').not('.hover-tooltip').tooltip({
html:true,
trigger: 'hover click focus'
});
\$('.hover-tooltip').tooltip({
html:true,
trigger: 'hover'
});
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: true,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
} 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]);
</script>
<style>
.date-disclaimer {
border: 1px solid;
padding: 5px;
}
.show-info-btn {
cursor: pointer;
}
.info-text {
display: block;
border: 1px solid lightgray;
padding: 20px;
width: 100%;
background: white;
border-radius: 20px;
}
.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 */
}
.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%;
}
.h-35-px {
height: 35px !important;
}
.datepicker-disabled .ui-datepicker-next {
display: none;
}
.datepicker-disabled .ui-state-default {
color: lightgray;
cursor: default;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
</style>
";
} else {
// line 556
echo " <div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>";
// line 558
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 561
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 567
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 568
echo " ";
$this->loadTemplate("@templates/Front/Shop/v2/_footer.html.twig", "@templates/Front/HuVignette/hu-vignette.html.twig", 568)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@templates/Front/HuVignette/hu-vignette.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1245 => 568, 1235 => 567, 1218 => 561, 1212 => 558, 1208 => 556, 1102 => 453, 1098 => 452, 1094 => 451, 1086 => 445, 1083 => 444, 1073 => 440, 1069 => 439, 1061 => 438, 1058 => 437, 1053 => 436, 1051 => 435, 1039 => 425, 1034 => 423, 1024 => 415, 1020 => 414, 1015 => 411, 1010 => 409, 998 => 399, 993 => 397, 983 => 390, 967 => 377, 958 => 373, 952 => 372, 948 => 371, 943 => 368, 932 => 366, 928 => 365, 924 => 364, 919 => 362, 913 => 359, 908 => 356, 903 => 354, 893 => 346, 883 => 339, 879 => 338, 870 => 332, 864 => 329, 848 => 316, 836 => 307, 830 => 304, 824 => 301, 813 => 293, 809 => 292, 804 => 290, 800 => 289, 789 => 281, 785 => 280, 780 => 278, 776 => 277, 768 => 272, 764 => 271, 759 => 269, 755 => 268, 744 => 260, 740 => 259, 735 => 257, 731 => 256, 723 => 251, 719 => 250, 714 => 248, 710 => 247, 706 => 246, 701 => 244, 697 => 243, 688 => 236, 674 => 235, 670 => 233, 668 => 232, 662 => 229, 659 => 228, 653 => 226, 651 => 225, 646 => 224, 644 => 223, 639 => 222, 637 => 221, 632 => 220, 630 => 219, 625 => 218, 623 => 217, 619 => 216, 614 => 213, 608 => 212, 606 => 211, 601 => 210, 599 => 209, 594 => 208, 592 => 207, 587 => 206, 585 => 205, 580 => 204, 578 => 203, 570 => 202, 565 => 201, 557 => 199, 554 => 198, 537 => 197, 532 => 195, 528 => 194, 516 => 185, 505 => 177, 495 => 170, 482 => 160, 474 => 155, 469 => 153, 465 => 152, 460 => 150, 449 => 142, 443 => 139, 436 => 137, 430 => 134, 418 => 125, 411 => 121, 395 => 108, 388 => 104, 381 => 100, 377 => 99, 373 => 98, 369 => 97, 365 => 96, 361 => 95, 357 => 94, 354 => 93, 351 => 92, 341 => 91, 325 => 83, 322 => 82, 320 => 81, 309 => 73, 304 => 71, 295 => 65, 292 => 64, 282 => 63, 270 => 58, 265 => 56, 252 => 46, 248 => 45, 244 => 44, 240 => 43, 236 => 42, 232 => 41, 228 => 40, 224 => 39, 214 => 32, 206 => 28, 196 => 27, 184 => 23, 177 => 18, 167 => 17, 152 => 8, 142 => 7, 121 => 5, 110 => 60, 108 => 27, 104 => 26, 101 => 25, 99 => 17, 92 => 15, 85 => 10, 83 => 7, 80 => 6, 78 => 5, 75 => 4, 65 => 3, 42 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@templates/Front/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/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=\"/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 header %}
<!-- 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) -->
<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=\"custom-container\">
<div style=\"max-width: 100%\">
<div class=\"bg-white\">
<header>
{% include '@templates/Front/Shop/v2/_header.html.twig' %}
{{ sonata_block_render_event('sylius.shop.layout.after_header') }}
</header>
</div>
</div>
</div>
{% endblock %}
{% block content %}
{% if lastProductStatus.huVignetteStatus or isAdmin %}
<script type=\"text/javascript\">
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>
<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>
<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>
<div>
<h1 class=\"mx-3\">{{ 'app.hu_vignette.calculator_hu_vignette'|trans }}</h1>
<div>
<div id=\"stepperForm\" class=\"bs-stepper linear\">
<div class=\"row\" style=\"padding: 0 20px 20px;\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<div class=\"d-inline-flex justify-content-center align-items-center\">
<img src=\"{{ asset('assets/shop/images/icons/ic_check_small_dark.png') }}\" style=\"width: 30px\"/>
<h3>
<a class=\"font-weight-bolder text-primary\">{{ 'app.hu_vignette.hu_vignette_details'|trans }}:</a>
<a class=\"font-weight-bolder text-dark\">{{ 'app.ui.category'|trans }} - </a>
<a id=\"categoryTitleText\">-</a>;
<a class=\"font-weight-bolder text-dark\">{{ 'app.hu_vignette.availability_type'|trans }} - </a>
<a id=\"availabilityTitleText\">-</a>
</h3>
</div>
<div id=\"editVignetteStep1\">
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png') }}\" style=\"width: 30px\"/>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-header d-none\" role=\"tablist\">
<div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
<span class=\"bs-stepper-circle\"><a>1</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">{{'app.hu_vignette.hu_vignette_details'|trans|upper}}</small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
<div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
<span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">{{'app.ui.car_data'|trans|upper}} </small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
</div>
<div class=\"bs-stepper-content\">
<form id=\"huVignetteForm\" method=\"POST\">
<input type=\"hidden\" value=\"1\" name=\"isHuVignette\" />
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"{{ lastProductStatus.extraOptionsStatus }}\">
<div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
<div class=\"d-flex justify-content-between align-items-start\">
<h3 id=\"selectedCategoryText\" class=\"mb-3 font-weight-bolder\">{{'app.ui.select_car_type'|trans}}</h3>
<img class='show-info-btn' data-for=\"category\" src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px\"/>
</div>
{% for category in categories %}
{% if loop.index % 2 != 0 %}
<div class=\"d-flex justify-content-center my-2 {% if loop.index == categories|length %} w-50 {% endif %}\">
{% endif %}
<label type=\"button\" for=\"{{ category.code|lower }}\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\" style=\"height: 75px !important;\">
<input type=\"radio\" name=\"category\" data-error-message=\"{{'app.errors.no_category_selected'|trans }}\" id=\"{{ category.code|lower }}\" value=\"{{ category.wsId }}\"
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>
<div class=\"d-flex justify-content-between align-items-center mt-2\">
<h5 class=\"text-dark font-weight-bolder\" id=\"vehicleType-{{category.code|first|lower}}\">
{% 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 %}
</h5>
<img class=\"ml-auto\" src=\"{{ (asset('assets/shop/images/icons/hu_' ~ category.code|lower) ~ '_orange.png')}}\" style=\"height: 46px\"/>
</div>
</label>
{% if loop.index % 2 == 0 or loop.index == categories|length %}
</div>
{% endif %}
{% endfor %}
<div class=\"d-flex justify-content-center\">
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
<div class=\"d-flex justify-content-between\">
<h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.choose_validity'|trans}}</h3>
<img class=\"show-info-btn\" data-for=\"availability\" src=\"{{ asset('assets/shop/images/icons/info.png') }}\" style=\"width: 30px;height: 30px;\"/>
</div>
<div class=\"d-flex justify-content-between my-2 availability-wrapper\" data-error-message=\"{{'app.errors.no_availability_selected'|trans }}\">
<div data-toggle=\"tooltip\" data-placement=\"top\" class=\"w-100 mx-3 tooltip-prevent-availability hover-tooltip\" 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=\"front\" 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 hover-tooltip\" 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=\"front\" 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 hover-tooltip\" 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.hu_vignette.30_days'|trans|raw }}\" data-title=\"front\" 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|raw }}\" hidden disabled>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">{{ 'app.hu_vignette.30_days'|trans|raw }}</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 hover-tooltip\" 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.hu_vignette.12_months'|trans|raw }}\" data-title=\"front\" style=\"min-height: 145px;\">
<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.hu_vignette.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 hover-tooltip\" 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=\"front\" style=\"min-height: 145px;\">
<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=\"mt-2\">{{ 'app.hu_vignette.price_without_tax'|trans }}</h6>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div class=\"btn-wrapper\">
<button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
<a>{{'app.ui.next_step'|trans}}</a>
</button>
</div>
</div>
</div>
</div>
<div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\">
<h3 class=\"font-weight-bolder mb-2 text-center\">{{ 'app.ui.select_start_date'|trans}}</h3>
<div class=\"d-flex justify-content-center align-items-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\">
<div id=\"datepicker\" data-error-message = '{{'app.errors.no_date_selected'|trans }}'></div>
</div>
<div class=\"d-flex justify-content-center mt-3\">
<div class=\"d-flex\">
<div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">{{'app.ui.current_date'|trans}}:</a> <br/>
<h5 class=\"ml-2 text-dark\">{{ \"now\"|date(\"d/m/Y\") }}</h5>
</div>
</div>
<div id=\"divStartDatePicker\">
<div class=\"d-flex ml-4\">
<div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">{{'app.ui.start_date'|trans}}:</a> <br/>
<h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
</div>
</div>
</div>
</div>
<div class=\"date-disclaimer\">
{% autoescape false %}
{{'app.ui.date_disclaimer'|trans}}
{% endautoescape %}
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
<h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.select_car_data'|trans}}</h3>
<div class=\"row mt-3 d-flex align-items-end\">
<div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
<label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.country_code'|trans}}</label>
<select id=\"carCountry\" name=\"carCountry\" class=\"form-control input-custom input-custom-grey\" required>
<option value=\"\">{{ 'app.ui.country'|trans}}</option>
{% for country in countries |sort((a, b) => a.name > b.name) %}
<option value=\"{{ country.code }}\">{{ country.name }}</option>
{% endfor %}
</select>
</div>
<div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
<label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{'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}}\" oninvalid=\"this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')\"
oninput=\"setCustomValidity('')\"
required>
</div>
<div data-error-message = '{{ 'app.ui.invalid_registration_plate'|trans }}' id=\"registrationPlateError\"></div>
</div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"vinBlock\">
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
{{ 'app.ui.info_payment_not_available'|trans|raw }}
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div>
<button type=\"button\" class=\"btn btn-grey btn-add-to-cart w-100 mb-3\" style=\"height: 40px\">
<a class=\"submit-button\">{{'app.ui.add_to_cart'|trans}}</a>
</button>
<button id=\"btnSubmitVignette\" type=\"submit\" class=\"submit-button btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>{{'app.ui.buy_now'|trans}}</a></button>
</div>
</div>
</div>
</div>
</form>
<div class=\"row\">
<div class=\"col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5\">
<div class=\"info-text category\">
{% autoescape false %}
{{ 'app.hu_vignette.category_description'|trans }}
{% endautoescape %}
</div>
<div class=\"card my-3\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<img src=\"{{ asset('assets/shop/images/hungary/nemzeti.png') }}\" style=\"max-width: 50px\"/>
<h6 class=\"font-weight-normal\">{{ 'app.hu_vignette.national_payment_distributor'|trans }}</h6>
</div>
</div>
</div>
<div class=\"col-6 col-sm-6 col-md-6 col-lg-5 col-xl-5\">
<div class=\"info-text availability\">
{% autoescape false %}
{{ 'app.hu_vignette.availability_description'|raw|trans }}
{% endautoescape %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-content\">
<div class=\"row my-3\">
{% if accordionBlocksAboutHuVignette|length > 0 %}
{% for key, block in accordionBlocksAboutHuVignette %}
<div class=\"col-3 my-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 %}
{% endif %}
</div>
</div>
<script>
\$(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() {
\$('.info-text.'+\$(this).data('for')).toggleClass('d-none');
});
\$('[data-toggle=\"tooltip\"]').not('.hover-tooltip').tooltip({
html:true,
trigger: 'hover click focus'
});
\$('.hover-tooltip').tooltip({
html:true,
trigger: 'hover'
});
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: true,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
} 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]);
</script>
<style>
.date-disclaimer {
border: 1px solid;
padding: 5px;
}
.show-info-btn {
cursor: pointer;
}
.info-text {
display: block;
border: 1px solid lightgray;
padding: 20px;
width: 100%;
background: white;
border-radius: 20px;
}
.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 */
}
.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%;
}
.h-35-px {
height: 35px !important;
}
.datepicker-disabled .ui-datepicker-next {
display: none;
}
.datepicker-disabled .ui-state-default {
color: lightgray;
cursor: default;
}
.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 %}
{% include '@templates/Front/Shop/v2/_footer.html.twig' %}
{% endblock %}
", "@templates/Front/HuVignette/hu-vignette.html.twig", "/vhosts/newrca.roviniete.ro/templates/Front/HuVignette/hu-vignette.html.twig");
}
}