src/Aviatur/TwigBundle/Resources/views/coomeva/Flux/App/base.html.twig line 1

Open in your IDE?
  1. {% set parameters = json_decode(app.session.get(app.request.server.get('HTTP_HOST') ~ '[parameters]'), true) %}
  2. {% set agencyDataInfo = app.session.get('agencyDataInfo') %}
  3. {% if parameters['blob_azure_assets'] is defined %}
  4. {% set assetsBlobUrl = parameters['blob_azure_assets'] %}
  5. {% else %}
  6. {% set assetsBlobUrl = "https://aviaturcdndev.z5.web.core.windows.net/"%}
  7. {% endif %}
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11.     <meta charset="utf-8">
  12.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.     {% block head_viewport %}
  14.     <meta name="viewport" content="width=device-width, initial-scale=1">
  15.     {% endblock head_viewport %}
  16.     <title>{% block head_title %}{% endblock head_title %}</title>
  17.     <meta name="description" content="{% block head_description_content %}{% endblock head_description_content %}">
  18.     <meta name="title" content="{% block head_meta_title %}{% endblock head_meta_title %}">
  19.     <meta name="keywords" content="{% block head_keywords %}{% endblock head_keywords %}">
  20.     {#
  21.     <meta name="apple-itunes-app" content="app-id=1070612402">
  22.     <meta name="google-play-app" content="app-id=app.android.Pasabordo"> #}
  23.     <link rel="icon" type="image/x-icon"
  24.         href="{{ assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png'}}" />
  25.     <link rel="apple-touch-icon"
  26.         href="{{ assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png'}}" />
  27.     <link rel="android-touch-icon"
  28.         href="{{ assetsBlobUrl ~ 'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png'}}" />
  29.     {# llamado estilos api hoteles #}
  30.     <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" />
  31.     <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.css" />
  32.     <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css" />
  33.     {# styles #}
  34.     {% block stylesheets %}
  35.     <link rel="preconnect" href="https://fonts.googleapis.com">
  36.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  37.     <link
  38.         href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
  39.         rel="stylesheet">
  40.     <link type="text/css" rel="stylesheet" href="{{ style('default_assets/css/main.css') }}" />
  41.     <script src="https://cdn.tailwindcss.com"></script>
  42.     <script>
  43.         tailwind.config = {
  44.             theme: {
  45.                 container: {
  46.                     center: false,
  47.                 },
  48.                 extend: {
  49.                     screens: {
  50.                         xs: { max: "575px" }, // mini-mobile
  51.                         s: { min: "576px", max: "767px" }, // mobile
  52.                         m: { min: "768px", max: "992px" }, // tablet
  53.                         l: { min: "993px" }, // desktop
  54.                     },
  55.                     colors: {
  56.                     },
  57.                 },
  58.             },
  59.             plugins: [],
  60.         }
  61.     </script>
  62.     {#
  63.     <link type="text/css" rel="stylesheet"
  64.         href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/main.css')) }}" />
  65.     <link type="text/css" rel="stylesheet"
  66.         href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/special.css')) }}" /> #}
  67.     <style>
  68.         :root {
  69.             --main-color: #c6168d;
  70.         }
  71.     <link type="text/css" rel="stylesheet" href="{{ style('default_assets/css/main.css') }}" />
  72.     <script src="https://cdn.tailwindcss.com"></script>
  73.     <script>
  74.         tailwind.config = {
  75.             theme: {
  76.                 container: {
  77.                     center: false,
  78.                 },
  79.                 extend: {
  80.                     screens: {
  81.                         xs: { max: "575px" }, // mini-mobile
  82.                         s: { min: "576px", max: "767px" }, // mobile
  83.                         m: { min: "768px", max: "992px" }, // tablet
  84.                         l: { min: "993px" }, // desktop
  85.                     },
  86.                     colors: {
  87.                     },
  88.                 },
  89.             },
  90.             plugins: [],
  91.         }
  92.     </script>
  93.     {#
  94.     <link type="text/css" rel="stylesheet"
  95.         href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/main.css')) }}" />
  96.     <link type="text/css" rel="stylesheet"
  97.         href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/special.css')) }}" /> #}
  98.     <style>
  99.         :root {
  100.             --main-color: #c6168d;
  101.         }
  102.         .nav-main__item.is-active,
  103.         .is-active.nav-main__item--blog {
  104.             border-top: 0.175rem inset var(--main-color);
  105.             color: var(--main-color);
  106.         }
  107.         .nav-scroll a.is-active {
  108.                 color: var(--main-color);
  109.             }
  110.         .btn,
  111.         .btn-flight-blog,
  112.         .btn--slim,
  113.         .page-foot__social {
  114.             background-color: var(--main-color);
  115.             border-color: var(--main-color);
  116.             color: white;
  117.             width: auto;
  118.         }
  119.         .search__footer__submit {
  120.             background-color: var(--main-color) !important;
  121.             border-color: var(--main-color);
  122.         }
  123.         .btn:hover {
  124.             background-color: var(--main-color);
  125.             filter: brightness(1.1);
  126.             border-color: var(--main-color);
  127.             color: white;
  128.         }
  129.         .titulo_1 {
  130.             color: var(--main-color);
  131.         }
  132.         .page-foot__content-legal .material-symbols-outlined {
  133.             color: var(--main-color);
  134.             font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24
  135.         }
  136.         .modal-header {
  137.             color: white;
  138.             border-bottom: 1px solid var(--main-color);
  139.             background-color: var(--main-color);
  140.             border-top-left-radius: 3px;
  141.             border-top-right-radius: 3px;
  142.         }
  143.         .modal-title,
  144.         .close span {
  145.             color: white;
  146.         }
  147.         .button_loginRegister,
  148.         .swal2-cancel {
  149.             display: inline-block;
  150.             padding: 10px 20px;
  151.             font-size: 16px;
  152.             color: var(--main-color);
  153.             background-color: transparent;
  154.             border: 1px solid var(--main-color);
  155.             border-radius: 5px;
  156.             text-align: center;
  157.             text-decoration: none;
  158.             cursor: pointer;
  159.             transition: background-color 0.3s ease;
  160.         }
  161.         .button_loginRegister:hover,
  162.         .swal2-cancel:hover {
  163.             display: inline-block;
  164.             padding: 10px 20px;
  165.             font-size: 16px;
  166.             color: white;
  167.             background-color: var(--main-color);
  168.             border: none;
  169.             border-radius: 5px;
  170.             text-align: center;
  171.             text-decoration: none;
  172.             cursor: pointer;
  173.             transition: background-color 0.3s ease;
  174.         }
  175.         .swal2-styled,
  176.         .swal2-confirm {
  177.             background-color: var(--main-color) !important;
  178.             border-color: var(--main-color);
  179.             color: white;
  180.             width: auto;
  181.             border-radius: 5px;
  182.             padding: 10px 20px;
  183.             margin: 0px 10px;
  184.             font-size: 16px;
  185.         }
  186.         .accept_conditions_coomeva .error {
  187.             top: 5.5rem;
  188.         }
  189.         .form_agente_coomeva {
  190.             width: 50%;
  191.             float: left;
  192.             padding-left: 9px;
  193.             padding-right: 9px;
  194.         }
  195.         #registerForm .wrapper-susy {
  196.             margin: 20px;
  197.         }
  198.         @media(max-width:723px) {
  199.             .form_agente_coomeva {
  200.                 width: 100%;
  201.             }
  202.             .accept_conditions_coomeva .error {
  203.                 top: 11rem;
  204.             }
  205.         }
  206.         /*NAV AGENTE*/
  207.         .nav-agente_coomeva {
  208.             display: block;
  209.             width: 100%;
  210.             margin-bottom: 3%;
  211.         }
  212.         .nav-agente_coomeva .btnTitle {
  213.             text-decoration: none;
  214.             font-size: 30px;
  215.             color: #1e5799;
  216.         }
  217.         .caret {
  218.             display: inline-block;
  219.             width: 0;
  220.             height: 0;
  221.             margin-left: 2px;
  222.             vertical-align: middle;
  223.             border-top: 4px dashed;
  224.             border-top: 4px solid\9;
  225.             border-right: 4px solid transparent;
  226.             border-left: 4px solid transparent
  227.         }
  228.         .main-menu {
  229.             display: inline-block;
  230.             margin: 0 auto;
  231.             list-style: none;
  232.             background: #fff;
  233.             color: #bbb;
  234.             text-align: center;
  235.         }
  236.         .main-menu>li {
  237.             position: relative;
  238.             display: inline-block;
  239.         }
  240.         .main-menu>li>a {
  241.             display: block;
  242.             font-size: 14px;
  243.             text-decoration: none;
  244.             color: #bbb;
  245.             padding: 15px 7px;
  246.             border-top: 3px solid transparent;
  247.             color: #1e5799;
  248.         }
  249.         .main-menu>li>a:hover {
  250.             color: #1e5799;
  251.             border-top: 3px solid #1e5799;
  252.             background: #fff;
  253.         }
  254.         .main-menu .submenu {
  255.             visibility: hidden;
  256.             opacity: 0;
  257.             position: absolute;
  258.             margin-top: 20px;
  259.             list-style: none;
  260.             width: 140px;
  261.             background: #fff;
  262.             transition: all 0.5s ease;
  263.             transition-delay: 0.1s;
  264.             z-index: 1000;
  265.             border: 1px solid;
  266.         }
  267.         .main-menu .submenu {
  268.             display: block;
  269.         }
  270.         .main-menu .submenu li a {
  271.             display: block;
  272.             text-decoration: none;
  273.             text-align: left;
  274.             border-right: 3px solid transparent;
  275.             color: #1e5799;
  276.             font-weight: 300;
  277.             font-size: 1.1em;
  278.             padding: 10px;
  279.         }
  280.         .main-menu .submenu li a:hover {
  281.             border-right: 3px solid #ff4717;
  282.             color: #fbfbfb;
  283.             background: #1e5799;
  284.         }
  285.         .main-menu>li:hover .submenu,
  286.         .main-menu>li:focus .submenu {
  287.             visibility: visible;
  288.             opacity: 1;
  289.             margin-top: 0;
  290.         }
  291.         .main-menu .submenu li {
  292.             display: block;
  293.         }
  294.         @media (max-width: 765px) {
  295.             .main-menu {
  296.                 display: block;
  297.                 width: 100%;
  298.                 margin: 0 auto;
  299.                 list-style: none;
  300.                 background: #fff;
  301.                 color: #bbb;
  302.                 text-align: center;
  303.             }
  304.             .main-menu>li {
  305.                 position: relative;
  306.                 display: block;
  307.                 width: 100%
  308.             }
  309.             .main-menu>li>a {
  310.                 display: block;
  311.                 font-size: 14px;
  312.                 text-decoration: none;
  313.                 color: #bbb;
  314.                 padding: 10px 7px;
  315.                 border-top: 1px solid #acacad91;
  316.             }
  317.             .main-menu>li>a:hover {
  318.                 color: #1e5799;
  319.                 border-top: 3px solid #1e5799;
  320.                 background: #fff;
  321.             }
  322.             .main-menu .submenu {
  323.                 display: none;
  324.                 opacity: 0;
  325.                 position: relative;
  326.                 margin-top: 20px;
  327.                 list-style: none;
  328.                 width: 140px;
  329.                 background: #fff;
  330.                 transition: all 0.5s ease;
  331.                 transition-delay: 0.1s;
  332.                 z-index: 1000;
  333.                 border: 1px solid;
  334.             }
  335.             .main-menu .submenu li {
  336.                 display: block;
  337.                 width: 100%;
  338.                 padding: 0;
  339.                 margin: 0;
  340.             }
  341.             .main-menu .submenu li a {
  342.                 display: block;
  343.                 text-decoration: none;
  344.                 text-align: center;
  345.                 /* border-right: 3px solid transparent; */
  346.                 color: #ffffff;
  347.                 font-weight: 300;
  348.                 font-size: 1.1em;
  349.                 padding: 10px;
  350.             }
  351.             .main-menu .submenu li a:hover {
  352.                 border-top: 0;
  353.                 border-bottom: 3px solid #eff2f5;
  354.                 border-right: 0;
  355.                 color: #fbfbfb;
  356.                 background: #ff4717;
  357.             }
  358.             .main-menu>li:hover .submenu,
  359.             .main-menu>li:focus .submenu {
  360.                 display: block;
  361.                 opacity: 1;
  362.                 margin: 0;
  363.                 width: 100%;
  364.                 background: #1e5799;
  365.             }
  366.         }
  367.     </style>
  368.     {% endblock stylesheets %}
  369.     {# end styles #}
  370.     {# scripts #}
  371.     <script src="{{ script('common.js') }}"></script>
  372.     <script async defer crossorigin="anonymous"
  373.         integrity="sha384-IeNX8AcVzU9jPDvE21Ts4tNKmR3lTRQMunAKZX/yRKryWWSvhp5FUSJt1eHYpScS"
  374.         src="https://connect.facebook.net/es_LA/sdk.js#xfbml=1&version=v6.0&appId=#xfbml=1&version=v7.0&appId={{facebook_appid_login}}&autoLogAppEvents=1"></script>
  375.     {% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin') == 'true' %}
  376.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/General/Components/worldpayFunction.html.twig')
  377.     %}
  378.     {% endif %}
  379.     {% if parameters['firebasescripts'] == 'true' %}
  380.     <link rel="stylesheet" href="https://aviaturcdndev.z5.web.core.windows.net/source/main.css">
  381.     <script src="https://aviaturcdndev.z5.web.core.windows.net/source/script.js" type="text/javascript"></script>
  382.     {% endif %}
  383.     {% if pdfGenerator is not defined %}
  384.     <script type="text/javascript">
  385.         var clientId;
  386.         var domain = '{{ app.session.get('domain') }}';
  387.         var domainsecure = '{{ app.session.get('domainsecure') }}';
  388.         (function (i, s, o, g, r, a, m) {
  389.             i['GoogleAnalyticsObject'] = r;
  390.             i[r] = i[r] || function () {
  391.                 (i[r].q = i[r].q || []).push(arguments)
  392.             }, i[r].l = 1 * new Date();
  393.             a = s.createElement(o),
  394.                 m = s.getElementsByTagName(o)[0];
  395.             a.async = 1;
  396.             a.src = g;
  397.             m.parentNode.insertBefore(a, m)
  398.         })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  399.         ga('create', 'UA-64309537-1', 'auto', { cookieDomain: '{{app.request.server.get("HTTP_HOST")|replace({'www.':''})}}', allowLinker: true });
  400.         ga('require', 'displayfeatures');
  401.         ga('require', 'linkid', 'linkid.js');
  402.         ga('require', 'linker');
  403.         ga('require', 'ec');
  404.         ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com']);
  405.         ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com'], false, true);
  406.         var dimensionValue = '{{ app.request.server.get("REMOTE_ADDR") }}';
  407.         {% if (app.session.has('transactionId')) %}
  408.         var dimensionValue2 = '{{ app.session.get('transactionId') }}';
  409.         {% else %}
  410.         var dimensionValue2 = '';
  411.         {% endif %}
  412.         var dimensionValue3 = '';
  413.         var dimensionValue4 = '';
  414.         var dimensionValue5 = '';
  415.         var dimensionValue6 = '';
  416.         ga('send', 'pageview', {
  417.             'dimension1': dimensionValue,
  418.             'dimension2': dimensionValue2,
  419.             'dimension3': dimensionValue3,
  420.             'dimension4': dimensionValue4,
  421.             'dimension5': dimensionValue5,
  422.             'dimension6': dimensionValue6
  423.         }
  424.         );
  425.     </script>
  426.     {% endif %}
  427.     {% if parameters['aviatur_close_modal_login'] is defined %}
  428.     {% set activate_login = json_decode(parameters['aviatur_close_modal_login'], true) %}
  429.     {% if activate_login[app.session.get('agencyId')] is defined %}
  430.     {% set swLoginClose = activate_login[app.session.get('agencyId')] %}
  431.     {% else %}
  432.     {% set swLoginClose = activate_login['all'] %}
  433.     {% endif %}
  434.     {% endif %}
  435.     {# Parametrización boton continuar sin iniciar sesión #}
  436.     {% if parameters['aviatur_continue_without_logging'] is defined %}
  437.     {% set continue_without_logging = json_decode(parameters['aviatur_continue_without_logging'], true) %}
  438.     {% if continue_without_logging[app.session.get('agencyId')] is defined %}
  439.     {% set continueWithoutLogging = continue_without_logging[app.session.get('agencyId')] %}
  440.     {% else %}
  441.     {% set continueWithoutLogging = continue_without_logging['all'] %}
  442.     {% endif %}
  443.     {% endif %}
  444.     <script>
  445.         var continueWithoutLogging = '{{continueWithoutLogging}}';
  446.         var swLoginClose = '{{swLoginClose}}';
  447.         var clicked = false;
  448.         var pathname = window.location.pathname.split('/');
  449.         var googleUser = {};
  450.         var startApp = function () {
  451.             gapi.load('auth2', function () {
  452.                 // Retrieve the singleton for the GoogleAuth library and set up the client.
  453.                 auth2 = gapi.auth2.init({
  454.                     client_id: '{{google_idclient_login}}',
  455.                     cookiepolicy: 'single_host_origin'
  456.                 });
  457.                 attachSignin(document.getElementById('customBtn'));
  458.             });
  459.         };
  460.         function attachSignin(element) {
  461.             auth2.attachClickHandler(element, {},
  462.                 function (googleUser) {
  463.                     var profile = googleUser.getBasicProfile();
  464.                     var $modalLogin = jQuery('#js-modalLogin');
  465.                     var id_token = googleUser.getAuthResponse().id_token;
  466.                     jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  467.                     jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  468.                     jQuery(".js-globalOverlay").show();
  469.                     jQuery.ajax({
  470.                         url: '/customer/social-networks-callback',
  471.                         type: 'POST',
  472.                         data: { idtoken: id_token, red: "google" },
  473.                         crossDomain: true,
  474.                         beforeSend: function () {
  475.                             jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  476.                             jQuery(".js-globalOverlay").show();
  477.                         },
  478.                         success: function (data) {
  479.                             if (data.status == "redirect") {
  480.                                 signOut();
  481.                                 if (pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  482.                                     location.reload();
  483.                                 } else {
  484.                                     window.location.replace("/");
  485.                                 }
  486.                             }
  487.                         },
  488.                         error: function () {
  489.                             $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  490.                             jQuery(".js-globalOverlay").hide();
  491.                         },
  492.                         complete: function () { }
  493.                     });
  494.                     /*document.getElementById('name').innerText = "Signed in: " +
  495.                     googleUser.getBasicProfile().getName();*/
  496.                 }, function (error) {
  497.                     //alert(JSON.stringify(error, undefined, 2));
  498.                 });
  499.         }
  500.         function signOut() {
  501.             var auth2 = gapi.auth2.getAuthInstance();
  502.             auth2.signOut().then(function () { });
  503.         }
  504.     </script>
  505.     <script>
  506.         var fbid = '{{facebook_appid_login}}';
  507.         window.fbAsyncInit = function () {
  508.             FB.init({
  509.                 appId: fbid,
  510.                 cookie: true,
  511.                 xfbml: true,
  512.                 version: 'v7.0',
  513.                 oauth: true,
  514.                 status: true
  515.             });
  516.             FB.AppEvents.logPageView();
  517.         };
  518.         (function (d, s, id) {
  519.             var js, fjs = d.getElementsByTagName(s)[0];
  520.             if (d.getElementById(id)) { return; }
  521.             js = d.createElement(s); js.id = id;
  522.             js.src = "https://connect.facebook.net/en_US/sdk.js";
  523.             fjs.parentNode.insertBefore(js, fjs);
  524.         }(document, 'script', 'facebook-jssdk'));
  525.         /*function checkLoginState() {
  526.             FB.getLoginStatus(function(response) {
  527.                 statusChangeCallback(response);
  528.             });
  529.         }*/
  530.         function loginFace() {
  531.             FB.login(function (response) {
  532.                 if (response.authResponse) {
  533.                     var $modalLogin = jQuery('#js-modalLogin');
  534.                     //console.log('Welcome!  Fetching your information.... ');
  535.                     FB.api('/me', { fields: 'first_name, last_name, email, picture' }, function (response2) {
  536.                         response2.picture2 = "http://graph.facebook.com/" + response2.id + "/picture?type=normal";
  537.                         jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  538.                         jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  539.                         jQuery(".js-globalOverlay").show();
  540.                         jQuery.ajax({
  541.                             url: '/customer/social-networks-callback',
  542.                             type: 'POST',
  543.                             crossDomain: true,
  544.                             data: { data: response2, red: "facebook" },
  545.                             //async: true,
  546.                             success: function (data) {
  547.                                 if (data.status == "redirect") {
  548.                                     FB.logout();
  549.                                     if (pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  550.                                         location.reload();
  551.                                     } else {
  552.                                         window.location.replace("/");
  553.                                     }
  554.                                 }
  555.                             },
  556.                             error: function () {
  557.                                 $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  558.                                 jQuery(".js-globalOverlay").hide();
  559.                             },
  560.                             complete: function () { }
  561.                         });
  562.                     });
  563.                 } else {
  564.                     console.log('User cancelled login or did not fully authorize.');
  565.                 }
  566.             }, { scope: 'email,public_profile' });
  567.         }
  568.     </script>
  569.     {% if app.user %}
  570.     <script>
  571.         var customerLogged = true;
  572.         var documentNum = '{{app.user.documentNumber}}';
  573.         var documentType = '{{app.user.documentType}}';
  574.         {% if parameters['switch_login_agencies'] is defined %}
  575.         {% set login_agencies = json_decode(parameters['switch_login_agencies'], true) %}
  576.         {% if login_agencies[app.session.get('agencyId')] is defined %}
  577.         {% set login_is_on = login_agencies[app.session.get('agencyId')] %}
  578.         {% else %}
  579.         {% set login_is_on = login_agencies['all'] %}
  580.         {% endif %}
  581.         {% else %}
  582.         {% set login_is_on = '0' %}
  583.         {% endif %}
  584.         var login_is_on = "{{login_is_on}}";
  585.     </script>
  586.     {% else %}
  587.     <script>var customerLogged = false;</script>
  588.     {% endif %}
  589.     {% if 'aviatur_general_homepage' in app.request.get('_route') %}
  590.     {% if app.user.username is defined %}
  591.     <script>
  592.         jQuery(document).ready(function () {
  593.             var dtCustomerFacebook = '{{app.user.facebookId}}';
  594.             var dtCustomerGoogle = '{{app.user.googleId}}';
  595.             var address = '{{app.user.address}}';
  596.             var documentNum = '{{app.user.documentNumber}}';
  597.             if (dtCustomerFacebook || dtCustomerGoogle) {
  598.                 if (documentNum.length == 0 && address.length == 0) {
  599.                     window.location.replace("/customer/edit");
  600.                 }
  601.             }
  602.         });
  603.     </script>
  604.     {% else %}
  605.     <script>
  606.         sessionStorage.setItem('countDialogLogin', 0);
  607.         var countDialogLogin = 0;
  608.         jQuery(document).ready(function () {
  609.             jQuery("#close-dialog-login").on('click', function () {
  610.                 jQuery("#dialog-login-home").hide();
  611.             });
  612.         });
  613.     </script>
  614.     {% endif %}
  615.     {% endif %}
  616.     {% if 'aviatur_customer_edit_info' in app.request.get('_route') %}
  617.     {% if app.user.username is defined %}
  618.     <script>
  619.         jQuery(document).ready(function () {
  620.             var dtCustomerFacebook = '{{app.user.facebookId}}';
  621.             var dtCustomerGoogle = '{{app.user.googleId}}';
  622.             jQuery("#customer_edit_form_email").attr("type", "email");
  623.             jQuery("#customer_edit_form_CivilStatus").parent().parent().parent().hide();
  624.             if (dtCustomerFacebook || dtCustomerGoogle) {
  625.                 if (jQuery("#customer_edit_form_DocumentNumber").val() == "") {
  626.                     jQuery("#customer_edit_form_DocumentNumber").removeAttr("readonly");
  627.                 }
  628.                 jQuery(".js-reserva-submit-password").hide();
  629.                 jQuery("#customer_edit_form_email").hide();
  630.                 jQuery('[for^="customer_edit_form_email"]').hide();
  631.             }
  632.         });
  633.     </script>
  634.     {% endif %}
  635.     {% endif %}
  636.     {% if app.session.get('AnonymousEmail') is not null %}
  637.     {# When user set email on "See Booking", this JS set email in input after redirection #}
  638.     {% set anonymousEmail = app.session.get('AnonymousEmail') %}
  639.     <script type="text/javascript">
  640.         jQuery(document).ready(function () {
  641.             var anonymousEmail = "{{ anonymousEmail }}";
  642.             jQuery("#username").val(anonymousEmail);
  643.             jQuery("#fos_user_registration_form_email").val(anonymousEmail);
  644.         });
  645.     </script>
  646.     {% endif %}
  647.     {# end scripts #}
  648.     {% if "payment_success_secure" in app.request.attributes.get('_route') %}
  649.     {% endif %}
  650.     {% block javascripts_header %}
  651.     {# {% if cards is defined %}
  652.     {% set src = "https://h.online-metrix.net/fp/tags.js?org_id="~cybersource.org_id~"&session_id=aviaturcom"~
  653.     app.session.get('transactionId') %}
  654.     <script type="text/javascript" src="{{src}}"></script>
  655.     {% endif %} #}
  656.     {% endblock %}
  657. </head>
  658. <body ontouchstart="">
  659.     {% if parameters['full_width_banner_home'] == 1 %}
  660.     {% set assets_url = 'https://aviaturcdndev.z5.web.core.windows.net/assets/coomeva_assets/img/custom/' %}
  661.     {% set img = 'mantenimiento-viajes-coomeva' %}
  662.     {% set default_image = 'mantenimiento-viajes-coomeva2.jpg' %}
  663.     <img src="{{ assets_url ~ (img == 'mantenimiento-viajes-coomeva' ? img ~ '.jpg' : default_image) }}"
  664.         poster="{{ assets_url ~ (img == 'mantenimiento-viajes-coomeva' ? img ~ '.jpg' : default_image) }}"
  665.         alt="Imagen de Mantenimiento de Viajes">
  666.     {% else %}
  667.     {% if agencyDataInfo['agency_phones'] %}
  668.     {% set agencyWhat = agencyDataInfo['agency_phones']['what']%}
  669.     {% set agencyPhones = agencyDataInfo['agency_phones']['all']%}
  670.     {% endif %}
  671.     <p class="app-name hide">{{ (app.session.get('domain')) }}</p>
  672.     {% block body_scripts %}
  673.                <!-- Google Tag Manager -->
  674.                 <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  675.                 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  676.                 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  677.                 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  678.                 })(window,document,'script','dataLayer','GTM-KCC8CJQ3');</script>
  679.                 <!-- End Google Tag Manager -->
  680.                 <!-- Google Tag Manager (noscript) -->
  681.                 <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KCC8CJQ3 "
  682.                 height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  683.                 <!-- End Google Tag Manager (noscript) -->
  684.     {# {% if cards is defined %}
  685.     {% if cybersource is not empty and cybersource.org_id is defined %}
  686.     {% set src = "https://h.online-metrix.net/fp/tags?org_id="~cybersource.org_id~"&session_id=aviaturcom"~
  687.     app.session.get('transactionId') %}
  688.     <noscript>
  689.         <iframe style="width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;" src="{{src}}"></iframe>
  690.     </noscript>
  691.     {% endif %}
  692.     {% endif %} #}
  693.     {% endblock %}
  694.     {% for flashMessage in app.session.flashbag.get('notice') %}
  695.     <div class="flash-notice">
  696.         {{ flashMessage }}
  697.     </div>
  698.     {% endfor %}
  699.     {% block overlay %}
  700. <script>
  701.     document.addEventListener("DOMContentLoaded", function () {
  702.         const overlay = document.querySelector(".js-globalOverlay");
  703.         if (overlay) {
  704.             overlay.style.display = "none";
  705.             window.addEventListener("load", function () {
  706.                 overlay.style.display = "none";
  707.             });
  708.             window.addEventListener("pageshow", function () {
  709.                 overlay.style.display = "none";
  710.             });
  711.         }
  712.     });
  713. </script>
  714.     <div class="overlay js-globalOverlay" style="display: none;">
  715.         <div class="overlay-center">
  716.             <svg class="mat-loader--200 center-block" height="200" width="200">
  717.                 <circle class="mat-loader--200__path" cx="100" cy="100" r="80" fill="none" stroke-width="6"
  718.                     stroke-miterlimit="10" />
  719.             </svg>
  720.             <p class="spin-text js-globalOverlay-text">Cargando...</p>
  721.         </div>
  722.     </div>
  723.     <div class="responsive-js"></div>
  724.     {% endblock %}
  725.     {% block base_content %}
  726.     {% block header %}
  727.     {% endblock %}
  728.     {% block body %}
  729.     {% endblock body %}
  730.     {% block content %}
  731.     {% endblock content %}
  732.     {% block footer %}
  733.     {% endblock footer %}
  734.     {% block modal %}
  735.     <div id="js-globalModal" class="modal fade">
  736.         <div class="modal-dialog">
  737.             <div class="modal-content">
  738.                 <div class="modal-header">
  739.                     <button type="button" class="close" data-dismiss="modal"><span
  740.                             aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  741.                     <h4 id="js-globalModal-title" class="modal-title">Modal title</h4>
  742.                 </div>
  743.                 <div class="modal-body">
  744.                     <div id="js-globalModal-illustration" {# class="modal-illustration" #}></div>
  745.                     <p id="js-globalModal-text" class="modal-text modal-text--error"></p>
  746.                 </div>
  747.             </div>
  748.         </div>
  749.     </div>
  750.     {% endblock modal %}
  751.     {% endblock base_content %}
  752.     {% block javascripts %}
  753.     {% endblock %}
  754.     {% block javascripts_bottom %}
  755.     {# llamados de scripts de hoteles #}
  756.     <script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet-src.js"
  757.         integrity="sha512-IkGU/uDhB9u9F8k+2OsA6XXoowIhOuQL1NTgNZHY1nkURnqEGlDZq3GsfmdJdKFe1k1zOc6YU2K7qY+hF9AodA=="
  758.         crossorigin="anonymous"></script>
  759.     <script src="https://unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster-src.js"
  760.         integrity="sha384-NAOEbWFcjnXc7U9GkULPhupHZNAbqru9dS3c+4ANYAwtFoVAWuVuMVDH0DIy4ESp"
  761.         crossorigin="anonymous"></script>
  762.     <script src="{{ asset('assets/common_assets/js/vendor/leaflet.bezier.js') }}"></script>
  763.     {% endblock javascripts_bottom %}
  764.     {% endif %}
  765.     <!-- Facebook Pixel Code -->
  766.     <script>
  767.         !function (f, b, e, v, n, t, s) {
  768.             if (f.fbq)
  769.                 return;
  770.             n = f.fbq = function () {
  771.                 n.callMethod ?
  772.                     n.callMethod.apply(n, arguments) : n.queue.push(arguments)
  773.             };
  774.             if (!f._fbq)
  775.                 f._fbq = n;
  776.             n.push = n;
  777.             n.loaded = !0;
  778.             n.version = '2.0';
  779.             n.queue = [];
  780.             t = b.createElement(e);
  781.             t.async = !0;
  782.             t.src = v;
  783.             s = b.getElementsByTagName(e)[0];
  784.             s.parentNode.insertBefore(t, s)
  785.         }(window, document, 'script',
  786.             'https://connect.facebook.net/en_US/fbevents.js');
  787.         fbq('init', '124649384848609');
  788.         fbq('track', 'PageView');
  789.     </script>
  790.     <noscript>
  791.         <img height="1" width="1" src="https://www.facebook.com/tr?id=124649384848609&ev=PageView
  792.              &noscript=1" />
  793.     </noscript>
  794.     <!-- End Facebook Pixel Code -->
  795. </body>
  796. </html>