- <!DOCTYPE html>
- <html lang="{% if app.request.locale == 'ua' %}uk-ua{% else %}ru-ua{% endif %}">
- <head>
-     <link rel="preconnect" href="https://www.googletagmanager.com">
-     <link rel="alternate" type="application/rss+xml" title="{{ dealer.name }}" href="https://{{ dealer.domain }}/rss/"/>
-     {% if app.environment == 'dev' %}
-         <meta name="robots" content="noindex, nofollow">
-         <meta name="google-site-verification" content="FWJj2KVU8sswZ4I7nJAffMG7Tj8xgkCr3XX-FgBmAus" />
-     {% endif %}
-     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-     <meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=0">
-     <meta http-equiv=X-UA-Compatible content="IE=edge">
-     <meta name="facebook-domain-verification" content="7g2yvfpqbfekkocacvoixfr0z3vs8x">
-     <meta name="google-site-verification" content="varBzPHi83bl6aF1vpltwGqtqJJSSn3FlN87C7RvIkQ">
-     <meta name="google-site-verification" content="qEE0CVWvg3OHsfU44eaHube6jxfkrAGbC1BxokH3f0g">
-     <link rel="icon" href="{{ asset('bundles/dcsite/img/subaru/favicon.png') }}" type="image/x-icon">
-     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/subaru/css/subaru.css?{{ VERSION }}">
-     {% block canonical %}
-     {% include '@DcSite/Modules/canonical.html.twig' %}
-     {% endblock canonical %}
-     {% block head %}
-     {% endblock head %}
-     {% block ogtagStatic %}
-         {% include '@DcSite/Modules/og-tag.html.twig' %}
-     {% endblock ogtagStatic %}
-     {% block ogtagDynamicImage %}
-         {% if dealer.brand %}<meta property="og:image" content="{{ app.request.httpHost }}{{ sonata_path(dealer.brand.logo, 'reference') }}">{% else %}<meta property="og:image" content="/bundles/portal/img/front/logo.jpg" />{% endif %}
-     {% endblock ogtagDynamicImage %}
-     {% block ogtagDynamic %}
-     {% endblock ogtagDynamic %}
-     {% if INCLUDE_ANALYTICS %}
-         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M5VPCWL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
-         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NSP62K6" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
-         <noscript><img alt="facebook" height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1180312335690752&ev=PageView&noscript=1"></noscript>
-         <script type="text/javascript">
-             (function (d,s,u,e,p) {
-               p=d.getElementsByTagName(s)[0],e=d.createElement(s),e.async=1,e.src=u,p.parentNode.insertBefore(e, p);
-             })(document, 'script', 'https://script.ringostat.com/v4/3b/3b079687397824d6fa570dd71f4dd254f984ce9b.js');
-             var pw = function() {if (typeof(ringostatAnalytics) === "undefined") {setTimeout(pw,100);} else {ringostatAnalytics.sendHit('pageview');}};
-             pw();
-         </script>
-         {% include '@DcSite/Modules/pixel-code.html.twig' %}
-         {% include '@DcSite/Modules/google-tag-manager.html.twig' with { 'domain': dealer.domain, 'gtmIdCode': 'GTM-M5VPCWL' } %}
-     {% endif %}
- </head>
- <body>
- {% if INCLUDE_ANALYTICS %}
-     <!-- Google Tag Manager (noscript) -->
-     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M5VPCWL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
-     <!-- End Google Tag Manager (noscript) -->
- {% endif %}
- {% block socialPreview %}
- {% endblock socialPreview %}
- <div class="wrapper">
-     <div class="container-fluid h-100" >
-         <div class="row h-100 flex-column flex-nowrap">
-             {% include '@DcSite/Subaru/header-webpack.html.twig' %}
-             <main class="main">
-                 {% block content %}
-                 {% endblock content %}
-             </main>
-             {% include '@DcSite/Subaru/footer-webpack.html.twig' %}
-             {% include '@DcSite/Subaru/leads.html.twig' %}
-             {% include '@DcSite/Modules/order-call-popup.html.twig' %}
-             {% include '@DcSite/Modules/callback/widget.html.twig' %}
-             {% include '@DcSite/Modules/sps-popup.html.twig' %}
-             {% include '@DcSite/Modules/vidiCoreMessageWrapper.html.twig' %}
-             {% include '@DcSite/Modules/vidiPulse.html.twig' with {'phone': '+380445030330'} %}
-             {% include '@My/Modules/auth.html.twig' %}
- {#            {% include '@My/Modules/cookies-warning.html.twig' %}#}
-             <button class="scroll-top"></button>
-         </div>
-     </div>
- </div>
- <iframe style="display: none" src="{{ path('my_ios_cross_domain_auth') }}"></iframe>
- {% set urlResult = backLoginUrl is defined and backLoginUrl ? backLoginUrl : path('my_about_car') %}
- <script>
-     window.INCLUDE_ANALYTICS = {{ INCLUDE_ANALYTICS ? 'true' : 'false' }};
- </script>
- <script src="/dist/{{ MODE }}/dcsite/subaru/js/subaru.js?{{ VERSION }}"></script>
- <script src="/dist/{{ MODE }}/core/js/modules.js?{{ VERSION }}"></script>
- <script>
-     window.dataLayer = window.dataLayer || [];
-     window.app = {
-         options: {
-             version: '{{ VERSION }}',
-             locale: '{{ app.request.locale }}',
-             refererAuth: '{{ path('my_login_page') }}?referer={{ app.request.uri }}'
-         },
-         user: {
-             id: {% if app.user %} {{ app.user.id }} {% else %}null{% endif %},
-             name: {% if app.user %} '{{ app.user.fullName }}' {% else %}null{% endif %}
-         }
-     };
-     $(() => {
-         window.app.message = core.modules.initMessage({
-             templateUrl: "{{ path('core_message_load_template') }}",
-             text: {
-                 btnCancel: "{{ 'app.message.cancel'|trans({},'core') }}"
-             }
-         });
-         window.app.http = core.modules.initHttp({
-             requestErrorText: "{{ 'app.http.server_error'|trans({},'core') }}"
-         });
-         window.app.preLoader = core.modules.initPreloader({
-             templateUrl: "{{ path('core_preloader_load_template') }}"
-         });
-         window.app.leadForms = core.modules.initLeadForms({
-             captchaUrl: '{{ path('base_capthcha_init') }}',
-             text: {
-                 successTitle: '{{ 'modules.sps_form_title'|trans({}, 'dc_base') }}',
-                 successText: '{{ 'modules.sps_form_subtitle'|trans({}, 'dc_base') }}',
-                 buttonText: '{{ 'pages.base.ok'|trans({}, 'dc_base') }}'
-             },
-             href: {
-                 buttonSuccess: null,
-             },
-         });
-         window.app.Favorit = core.modules.initFavorite({
-             addUrl: "{{ path('portal_add_favl') }}",
-             removeUrl: "{{ path('portal_remove_favl') }}"
-         });
-         window.Track = core.modules.initTrack();
-         {#core.modules.initCookies({#}
-         {#    policyUrl: "{{ privacyUrl }}"#}
-         {#});#}
-         core.modules.initCallbacks({
-             initUrl: '{{ path('callback_widget_init') }}',
-             createUrl: '{{ path('callback_widget_create_request') }}',
-             getStateUrl: '{{ path('callback_widget_get_state') }}',
-             privacyUrl: '{{ privacyUrl }}',
-             callBackMinute: '{{ 'callback_widget.title'|trans({}, 'dc_base')|raw }}',
-             callBackWorkingHours: '{{ 'callback_widget.working_hours'|trans({}, 'dc_base') }}'
-         });
-     });
- </script>
- <script>
-     const observer = new MutationObserver(() => {
-         const backdrops = document.querySelectorAll('.modal-backdrop');
-         if (backdrops.length > 1) {
-             [...backdrops].slice(0, -1).forEach(el => el.remove());
-         }
-     });
-     observer.observe(document.body, { childList: true, subtree: true });
- </script>
- {% if app.user %}
- <script type="text/javascript">
-     window.dataLayer.push({'user_id': {{ app.user.id }}});
- </script>
- {% endif %}
- {% include '@DcSite/Modules/suChat/index.html.twig' with {'chatCode' : '76bbf8a9-e994-4004-8b1e-d622f4354df9'} %}
- <script type="application/ld+json">
-     {
-     "@context": "https://schema.org/",
-     "@type": "WebSite",
-     "name": "{{ dealer.brand.name }}",
-     "url": "{{ app.request.uri }}"
-     }
- </script>
- <script type="application/ld+json">
-     {
-     "@context": "https://schema.org",
-     "@type": "AutoDealer",
-     "name": "{{ dealer.brand.name }}",
-     "image": "{{ absolute_url(asset('bundles/dcsite/img/subaru/logo.png')) }}",
-     "url": "{{ app.request.uri }}",
-     "telephone": "{{ dealer.phone }}",
-     "address": {
-     "@type": "PostalAddress",
-     "streetAddress": " {{ dealer.addressUa }}",
-     "addressLocality": "Київ"
-     },
-     "sameAs": [
-     "{{ dealer.linkFacebook }}",
-     "{{ dealer.linkInstagram }}",
-     "{{ dealer.linkYoutube }}"
-     ]
-     }
- </script>
- <script type="application/ld+json">
-     {
-     "@context": "https://schema.org",
-     "@type": "Organization",
-     "url": "{{ app.request.uri }}",
-     "logo": "{{ absolute_url(asset('bundles/dcsite/img/subaru/logo.png')) }}"
-     }
- </script>
- {% block script %}
- {% endblock script %}
- </body>
- </html>