{% 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 %}