src/Aviatur/TwigBundle/Resources/views/compensar/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.         {# <meta name="apple-itunes-app" content="app-id=1070612402">
  21.         <meta name="google-play-app" content="app-id=app.android.Pasabordo"> #}
  22.         <link rel="icon" type="image/x-icon" href="{{ assetsBlobUrl ~  'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png'}}" />
  23.         <link rel="apple-touch-icon" href="{{ assetsBlobUrl ~  'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png'}}"  />
  24.         <link rel="android-touch-icon" href="{{ assetsBlobUrl ~  'assets/'~ agency_folder.assetStyle() ~'/img/header/favicon.png' }}" />
  25.         {# llamado estilos api hoteles #}
  26.         <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/>
  27.         <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.css" />
  28.         <link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css" />
  29. <script defer src="https://unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster-src.js" integrity="sha384-NAOEbWFcjnXc7U9GkULPhupHZNAbqru9dS3c+4ANYAwtFoVAWuVuMVDH0DIy4ESp" crossorigin="anonymous"></script>
  30.         {# styles #}
  31.         {% block stylesheets %}
  32.         <link rel="preconnect" href="https://fonts.googleapis.com">
  33.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  34.         <link 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" rel="stylesheet">
  35. <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
  36. <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
  37. <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
  38.         <link type="text/css" rel="stylesheet" href="{{ style('default_assets/css/main.css') }}" />
  39.         {# <link type="text/css" rel="stylesheet" href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/main.css')) }}" />
  40.         <link type="text/css" rel="stylesheet" href="{{ absolute_url(asset('assets/'~ agency_folder.assetStyle() ~'/css/special.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.         <style>
  63.             .nav-main__item.is-active,
  64.             .is-active.nav-main__item--blog {
  65.                 border-top: 0.175rem inset #ec6e25;
  66.                 color: #ec6e25;
  67.             }
  68.             .nav-scroll a.is-active {
  69.                 color: #ec6e25;
  70.             }
  71.             .nav-scroll a {
  72.                 color: #5a5a5a;
  73.             }
  74.             .btn,
  75.             .btn-flight-blog,
  76.             .btn--slim {
  77.                 background-color: #ec6e25;
  78.                 border-color: #facc03;
  79.             }
  80.             .btn:hover {
  81.                 background-color: #ec6e25;
  82.                 filter: brightness(1.1);
  83.                 border-color: #facc03;
  84.             }
  85.             .foot_images-legal .material-symbols-outlined {
  86.                 color: #ec6e25;
  87.                 font-variation-settings:
  88.                   'FILL' 0,
  89.                   'wght' 400,
  90.                   'GRAD' 0,
  91.                   'opsz' 24
  92.             }
  93.         </style>
  94.         {% endblock stylesheets %}
  95.         {# end styles #}
  96.         {# scripts #}
  97.         <script src="{{ script('common.js') }}"></script>
  98.         <script src="https://apis.google.com/js/api:client.js" integrity="sha384-5UngWscP4SmNwWewInYpRPek0ZFzNRs/QS6r/vutuBBCFwz28liNRLjQUamFj/Pk" crossorigin="anonymous"></script>
  99.         <script async defer crossorigin="anonymous" integrity="sha384-IeNX8AcVzU9jPDvE21Ts4tNKmR3lTRQMunAKZX/yRKryWWSvhp5FUSJt1eHYpScS" 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>
  100.         {% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin') == 'true' %}
  101.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/General/Components/worldpayFunction.html.twig') %}
  102.         {% endif %}
  103.         {% if parameters['firebasescripts'] == 'true' %}
  104.         <link rel="stylesheet" href="https://aviaturcdndev.z5.web.core.windows.net/source/main.css">
  105.         <script src="https://aviaturcdndev.z5.web.core.windows.net/source/script.js" type="text/javascript"></script>
  106.         {% endif %}
  107.         {% if pdfGenerator is not defined %}
  108.             <script type="text/javascript">
  109.                 var clientId;
  110.                 var domain = '{{ app.session.get('domain') }}';
  111.                 var domainsecure = '{{ app.session.get('domainsecure') }}';
  112.                 (function (i, s, o, g, r, a, m) {
  113.                     i['GoogleAnalyticsObject'] = r;
  114.                     i[r] = i[r] || function () {
  115.                         (i[r].q = i[r].q || []).push(arguments)
  116.                     }, i[r].l = 1 * new Date();
  117.                     a = s.createElement(o),
  118.                             m = s.getElementsByTagName(o)[0];
  119.                     a.async = 1;
  120.                     a.src = g;
  121.                     m.parentNode.insertBefore(a, m)
  122.                 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  123.                 ga('create', 'UA-64309537-1', 'auto', {cookieDomain: '{{app.request.server.get("HTTP_HOST")|replace({'www.':''})}}', allowLinker: true});
  124.                 ga('require', 'displayfeatures');
  125.                 ga('require', 'linkid', 'linkid.js');
  126.                 ga('require', 'linker');
  127.                 ga('require', 'ec');
  128.                 ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com']);
  129.                 ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com'], false, true);
  130.                 var dimensionValue = '{{ app.request.server.get("REMOTE_ADDR") }}';
  131.                 {% if (app.session.has('transactionId')) %}
  132.                 var dimensionValue2 = '{{ app.session.get('transactionId') }}';
  133.                 {% else %}
  134.                     var dimensionValue2 = '';
  135.                 {% endif %}
  136.                     var dimensionValue3 = '';
  137.                     var dimensionValue4 = '';
  138.                     var dimensionValue5 = '';
  139.                     var dimensionValue6 = '';
  140.                     ga('send', 'pageview', {
  141.                         'dimension1': dimensionValue,
  142.                         'dimension2': dimensionValue2,
  143.                         'dimension3': dimensionValue3,
  144.                         'dimension4': dimensionValue4,
  145.                         'dimension5': dimensionValue5,
  146.                         'dimension6': dimensionValue6}
  147.                     );
  148.             </script>
  149.         {% endif %}
  150.         {% if parameters['aviatur_close_modal_login'] is defined %}
  151.             {% set activate_login = json_decode(parameters['aviatur_close_modal_login'], true) %}
  152.             {% if activate_login[app.session.get('agencyId')] is defined %}
  153.                 {% set swLoginClose = activate_login[app.session.get('agencyId')] %}
  154.             {% else %}
  155.                 {% set swLoginClose = activate_login['all'] %}
  156.             {% endif %}
  157.         {% endif %}
  158.             {# Parametrización boton continuar sin iniciar sesión #}
  159.         {% if parameters['aviatur_continue_without_logging'] is defined %}
  160.             {% set continue_without_logging = json_decode(parameters['aviatur_continue_without_logging'], true) %}
  161.             {% if continue_without_logging[app.session.get('agencyId')] is defined %}
  162.                 {% set continueWithoutLogging = continue_without_logging[app.session.get('agencyId')] %}
  163.             {% else %}
  164.                 {% set continueWithoutLogging = continue_without_logging['all'] %}
  165.             {% endif %}
  166.         {% endif %}
  167.             <script>
  168.                 var continueWithoutLogging = '{{continueWithoutLogging}}';
  169.                 var swLoginClose = '{{swLoginClose}}';
  170.                 var clicked = false;
  171.                 var pathname = window.location.pathname.split( '/' );
  172.                 var googleUser = {};
  173.                 var startApp = function() {
  174.                     gapi.load('auth2', function(){
  175.                     // Retrieve the singleton for the GoogleAuth library and set up the client.
  176.                     auth2 = gapi.auth2.init({
  177.                         client_id: '{{google_idclient_login}}',
  178.                         cookiepolicy: 'single_host_origin'
  179.                     });
  180.                     attachSignin(document.getElementById('customBtn'));
  181.                     });
  182.                 };
  183.                 function attachSignin(element) {
  184.                     auth2.attachClickHandler(element, {},
  185.                     function(googleUser) {
  186.                         var profile = googleUser.getBasicProfile();
  187.                         var $modalLogin = jQuery('#js-modalLogin');
  188.                         var id_token = googleUser.getAuthResponse().id_token;
  189.                         jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  190.                         jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  191.                         jQuery(".js-globalOverlay").show();
  192.                         jQuery.ajax({
  193.                             url: '/customer/social-networks-callback',
  194.                             type: 'POST',
  195.                             data: {idtoken: id_token, red: "google"},
  196.                             crossDomain: true,
  197.                             beforeSend: function() {
  198.                                 jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  199.                                 jQuery(".js-globalOverlay").show();
  200.                             },
  201.                             success: function (data) {
  202.                                 if(data.status == "redirect") {
  203.                                     signOut();
  204.                                     if(pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  205.                                         location.reload();
  206.                                     } else {
  207.                                         window.location.replace("/");
  208.                                     }
  209.                                 }
  210.                             },
  211.                             error: function () {
  212.                                 $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  213.                                 jQuery(".js-globalOverlay").hide();
  214.                             },
  215.                             complete: function () {}
  216.                         });
  217.                         /*document.getElementById('name').innerText = "Signed in: " +
  218.                         googleUser.getBasicProfile().getName();*/
  219.                     }, function(error) {
  220.                         //alert(JSON.stringify(error, undefined, 2));
  221.                     });
  222.                 }
  223.                 function signOut() {
  224.                     var auth2 = gapi.auth2.getAuthInstance();
  225.                     auth2.signOut().then(function () {});
  226.                 }
  227.             </script>
  228.             <script>
  229.                 var fbid = '{{facebook_appid_login}}';
  230.                 window.fbAsyncInit = function() {
  231.                     FB.init({
  232.                         appId      : fbid,
  233.                         cookie     : true,
  234.                         xfbml      : true,
  235.                         version    : 'v7.0',
  236.                         oauth   : true,
  237.                         status  : true
  238.                     });
  239.                     FB.AppEvents.logPageView();
  240.                 };
  241.                 (function(d, s, id){
  242.                     var js, fjs = d.getElementsByTagName(s)[0];
  243.                     if (d.getElementById(id)) {return;}
  244.                     js = d.createElement(s); js.id = id;
  245.                     js.src = "https://connect.facebook.net/en_US/sdk.js";
  246.                     fjs.parentNode.insertBefore(js, fjs);
  247.                 }(document, 'script', 'facebook-jssdk'));
  248.                 /*function checkLoginState() {
  249.                     FB.getLoginStatus(function(response) {
  250.                         statusChangeCallback(response);
  251.                     });
  252.                 }*/
  253.                 function loginFace(){
  254.                     FB.login(function(response) {
  255.                         if (response.authResponse) {
  256.                             var $modalLogin = jQuery('#js-modalLogin');
  257.                             //console.log('Welcome!  Fetching your information.... ');
  258.                             FB.api('/me', {fields: 'first_name, last_name, email, picture'}, function (response2) {
  259.                                 response2.picture2 = "http://graph.facebook.com/" + response2.id + "/picture?type=normal";
  260.                                 jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
  261.                                 jQuery(".js-globalOverlay-text").text("Iniciando sesión");
  262.                                 jQuery(".js-globalOverlay").show();
  263.                                 jQuery.ajax({
  264.                                     url: '/customer/social-networks-callback',
  265.                                     type: 'POST',
  266.                                     crossDomain: true,
  267.                                     data: {data: response2, red: "facebook"},
  268.                                     //async: true,
  269.                                     success: function (data) {
  270.                                         if(data.status == "redirect") {
  271.                                             FB.logout();
  272.                                             if(pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
  273.                                                 location.reload();
  274.                                             } else {
  275.                                                 window.location.replace("/");
  276.                                             }
  277.                                         }
  278.                                     },
  279.                                     error: function () {
  280.                                         $modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
  281.                                         jQuery(".js-globalOverlay").hide();
  282.                                     },
  283.                                     complete: function () {}
  284.                                 });
  285.                             });
  286.                         } else {
  287.                             console.log('User cancelled login or did not fully authorize.');
  288.                         }
  289.                     },{scope: 'email,public_profile'});
  290.                 }
  291.             </script>
  292.             {% if app.user %}
  293.             <script>
  294.                 var customerLogged = true;
  295.                 var documentNum = '{{app.user.documentNumber}}';
  296.                 var documentType = '{{app.user.documentType}}';
  297.                 {% if parameters['switch_login_agencies'] is defined %}
  298.                     {% set login_agencies = json_decode(parameters['switch_login_agencies'], true) %}
  299.                     {% if login_agencies[app.session.get('agencyId')] is defined %}
  300.                         {% set login_is_on = login_agencies[app.session.get('agencyId')] %}
  301.                     {% else %}
  302.                         {% set login_is_on = login_agencies['all'] %}
  303.                     {% endif %}
  304.                 {% else %}
  305.                     {% set login_is_on = '0' %}
  306.                 {% endif %}
  307.                 var login_is_on = "{{login_is_on}}";
  308.             </script>
  309.         {% else %}
  310.             <script>var customerLogged = false;</script>
  311.         {% endif %}
  312.         {% if 'aviatur_general_homepage' in app.request.get('_route') %}
  313.             {% if app.user.username is defined %}
  314.                 <script>
  315.                     jQuery(document).ready(function () {
  316.                         var dtCustomerFacebook = '{{app.user.facebookId}}';
  317.                         var dtCustomerGoogle = '{{app.user.googleId}}';
  318.                         var address = '{{app.user.address}}';
  319.                         var documentNum = '{{app.user.documentNumber}}';
  320.                         if(dtCustomerFacebook || dtCustomerGoogle){
  321.                             if(documentNum.length == 0 && address.length == 0) {
  322.                                  window.location.replace("/customer/edit");
  323.                             }
  324.                         }
  325.                     });
  326.                 </script>
  327.             {% else %}
  328.                 <script>
  329.                     sessionStorage.setItem('countDialogLogin', 0);
  330.                     var countDialogLogin = 0;
  331.                     jQuery(document).ready(function () {
  332.                         jQuery("#close-dialog-login").on('click', function(){
  333.                             jQuery("#dialog-login-home").hide();
  334.                         });
  335.                     });
  336.                 </script>
  337.             {% endif %}
  338.         {% endif %}
  339.         {% if 'aviatur_customer_edit_info' in app.request.get('_route') %}
  340.             {% if app.user.username is defined %}
  341.                 <script>
  342.                     jQuery(document).ready(function () {
  343.                         var dtCustomerFacebook = '{{app.user.facebookId}}';
  344.                         var dtCustomerGoogle = '{{app.user.googleId}}';
  345.                         jQuery("#customer_edit_form_email").attr("type","email");
  346.                         jQuery("#customer_edit_form_CivilStatus").parent().parent().parent().hide();
  347.                         if(dtCustomerFacebook || dtCustomerGoogle){
  348.                             if(jQuery("#customer_edit_form_DocumentNumber").val() == "") {
  349.                                 jQuery("#customer_edit_form_DocumentNumber").removeAttr("readonly");
  350.                             }
  351.                             jQuery(".js-reserva-submit-password").hide();
  352.                             jQuery("#customer_edit_form_email").hide();
  353.                             jQuery('[for^="customer_edit_form_email"]').hide();
  354.                         }
  355.                     });
  356.                 </script>
  357.             {% endif %}
  358.         {% endif %}
  359.         {% if app.session.get('AnonymousEmail') is not null %}
  360.             {# When user set email on "See Booking", this JS set email in input after redirection #}
  361.             {% set anonymousEmail = app.session.get('AnonymousEmail') %}
  362.             <script type="text/javascript">
  363.                 jQuery(document).ready(function () {
  364.                     var anonymousEmail = "{{ anonymousEmail }}";
  365.                     jQuery("#username").val(anonymousEmail);
  366.                     jQuery("#fos_user_registration_form_email").val(anonymousEmail);
  367.                 });
  368.             </script>
  369.         {% endif %}
  370.         {# end scripts  #}
  371.         {% if "payment_success_secure" in app.request.attributes.get('_route') %}
  372.         {% endif %}
  373.         {% block javascripts_header %}
  374.             {% if cards is defined and cybersource.org_id is defined %}
  375.                 {% set src = "https://h.online-metrix.net/fp/tags.js?org_id=" ~ cybersource.org_id ~ "&session_id=aviaturcom"~ app.session.get('transactionId') %}
  376.                 <script type="text/javascript" src="{{src}}"></script>
  377.             {% endif %}
  378.         {% endblock %}
  379.     </head>
  380.     <body ontouchstart="">
  381.         {% if agencyDataInfo['agency_phones'] %}
  382.             {% set agencyWhat = agencyDataInfo['agency_phones']['what']%}
  383.             {% set agencyPhones = agencyDataInfo['agency_phones']['all']%}
  384.         {% endif %}
  385.         <p class="app-name hide">{{ (app.session.get('domain')) }}</p>
  386.         {% block body_scripts %}
  387.             {% if cards is defined and cybersource.org_id is defined %}
  388.                 {# {% set src = "https://h.online-metrix.net/fp/tags?org_id="~cybersource.org_id~"&session_id=aviaturcom"~ app.session.get('transactionId') %}
  389.                 <noscript>
  390.                 <iframe style="width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;" src="{{src}}"></iframe>
  391.                 </noscript> #}
  392.             {% endif %}
  393.         {% endblock %}
  394.         {% for flashMessage in app.session.flashbag.get('notice') %}
  395.             <div class="flash-notice">
  396.                 {{ flashMessage }}
  397.             </div>
  398.         {% endfor %}
  399.         {% block overlay %}
  400. <script>
  401.     document.addEventListener("DOMContentLoaded", function () {
  402.         const overlay = document.querySelector(".js-globalOverlay");
  403.         if (overlay) {
  404.             overlay.style.display = "none";
  405.             window.addEventListener("load", function () {
  406.                 overlay.style.display = "none";
  407.             });
  408.             window.addEventListener("pageshow", function () {
  409.                 overlay.style.display = "none";
  410.             });
  411.         }
  412.     });
  413. </script>
  414.             <div class="overlay js-globalOverlay" style="display: none;">
  415.                 <div class="overlay-center">
  416.                     <svg class="mat-loader--200 center-block" height="200" width="200">
  417.                         <circle class="mat-loader--200__path" cx="100" cy="100" r="80" fill="none" stroke-width="6" stroke-miterlimit="10" />
  418.                     </svg>
  419.                     <p class="spin-text js-globalOverlay-text">Cargando...</p>
  420.                 </div>
  421.             </div>
  422.             <div class="responsive-js"></div>
  423.         {% endblock %}
  424.         {% block base_content %}
  425.             {% block header %}
  426.             {% endblock %}
  427.             {% block body %}
  428.             {% endblock body %}
  429.             {% block content %}
  430.             {% endblock content %}
  431.             {% block footer %}
  432.             {% endblock footer %}
  433.             {% block modal %}
  434.                 <div id="js-globalModal" class="modal fade">
  435.                     <div class="modal-dialog">
  436.                         <div class="modal-content">
  437.                             <div class="modal-header">
  438.                                 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  439.                                 <h4 id="js-globalModal-title" class="modal-title">Modal title</h4>
  440.                             </div>
  441.                             <div class="modal-body">
  442.                                 <div id="js-globalModal-illustration" {# class="modal-illustration" #}></div>
  443.                                 <p id="js-globalModal-text" class="modal-text modal-text--error"></p>
  444.                             </div>
  445.                         </div>
  446.                     </div>
  447.                 </div>
  448.             {% endblock modal %}
  449.         {% endblock base_content %}
  450.         {% block javascripts %}
  451. {% endblock %}
  452. {% block javascripts_bottom %}
  453.         {# llamados de scripts de hoteles #}
  454.         <script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet-src.js" integrity="sha512-IkGU/uDhB9u9F8k+2OsA6XXoowIhOuQL1NTgNZHY1nkURnqEGlDZq3GsfmdJdKFe1k1zOc6YU2K7qY+hF9AodA==" crossorigin="anonymous"></script>
  455.         <script src="https://unpkg.com/leaflet.markercluster@1.3.0/dist/leaflet.markercluster-src.js" integrity="sha384-NAOEbWFcjnXc7U9GkULPhupHZNAbqru9dS3c+4ANYAwtFoVAWuVuMVDH0DIy4ESp" crossorigin="anonymous"></script>
  456.         <script src="{{ asset('assets/common_assets/js/vendor/leaflet.bezier.js') }}"></script>
  457.         {% endblock javascripts_bottom %}
  458.         <!-- Facebook Pixel Code -->
  459.         <script>
  460.             !function (f, b, e, v, n, t, s)
  461.             {
  462.                 if (f.fbq)
  463.                     return;
  464.                 n = f.fbq = function () {
  465.                     n.callMethod ?
  466.                             n.callMethod.apply(n, arguments) : n.queue.push(arguments)
  467.                 };
  468.                 if (!f._fbq)
  469.                     f._fbq = n;
  470.                 n.push = n;
  471.                 n.loaded = !0;
  472.                 n.version = '2.0';
  473.                 n.queue = [];
  474.                 t = b.createElement(e);
  475.                 t.async = !0;
  476.                 t.src = v;
  477.                 s = b.getElementsByTagName(e)[0];
  478.                 s.parentNode.insertBefore(t, s)
  479.             }(window, document, 'script',
  480.                     'https://connect.facebook.net/en_US/fbevents.js');
  481.             fbq('init', '124649384848609');
  482.             fbq('track', 'PageView');
  483.         </script>
  484.         <noscript>
  485.         <img height="1" width="1"
  486.              src="https://www.facebook.com/tr?id=124649384848609&ev=PageView
  487.              &noscript=1"/>
  488.         </noscript>
  489.         <!-- End Facebook Pixel Code -->
  490.             </body>
  491.         </html>