{% set parameters = json_decode(app.session.get(app.request.server.get('HTTP_HOST') ~ '[parameters]'), true) %}
{% set agencyDataInfo = app.session.get('agencyDataInfo') %}
{% if parameters['blob_azure_assets'] is defined %}
{% set assetsBlobUrl = parameters['blob_azure_assets'] %}
{% else %}
{% set assetsBlobUrl = "https://aviaturcdndev.z5.web.core.windows.net/" %}
{% endif %}
<!DOCTYPE html>
<html style="scroll-behavior: smooth;">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% block head_viewport %}
<meta name="viewport" content="width=device-width, initial-scale=1">
{% endblock head_viewport %}
<title>
{% block head_title %}{% endblock head_title %}
</title>
<meta name="description" content="{% block head_description_content %}{% endblock head_description_content %}">
<meta name="title" content="{% block head_meta_title %}{% endblock head_meta_title %}">
<meta name="keywords" content="{% block head_keywords %}{% endblock head_keywords %}">
<link rel="icon" type="image/x-icon" href="{{ assetsBlobUrl ~ 'assets/' ~ agency_folder.assetStyle() ~ '/img/header/favicon.png' }}"/>
<link rel="apple-touch-icon" href="{{ assetsBlobUrl ~ 'assets/' ~ agency_folder.assetStyle() ~ '/img/header/favicon.png' }}"/>
<link
rel="android-touch-icon" href="{{ assetsBlobUrl ~ 'assets/' ~ agency_folder.assetStyle() ~ '/img/header/favicon.png' }}"/>
{# styles #}
{% block stylesheets %}
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Ubuntu:wght@300;400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="{{ style('default_assets/css/main.css') }}"/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
screens: {
xs:{ max: "575px" },
s: { min: "576px", max: "767px" },
m: { min: "768px", max: "992px" },
l: { min: "993px" },
phone: { min: "320px"},
tablet: { min: "721px"},
desk: { min: "951px"},
wide: { min: "1750px"}
},
colors: {}
}
},
plugins: []
}
</script>
<style>
.nav-main__item.is-active,
.is-active.nav-main__item--blog {
border-top: 0.175rem inset #facc03;
color: #facc03;
}
.nav-scroll a.is-active {
color: #facc03;
}
.nav-scroll a {
color: white;
}
@media screen and(max-width: 768px) {
.nav-main__item,
.nav-scroll a {
color: white;
text-decoration: none;
padding: 10px 15px;
font-size: 1rem;
transition: color 0.3s, border-top 0.3s;
}
.nav-scroll a.is-active {
color: white;
}
}
.btn,
.btn-flight-blog,
.btn--slim {
background-color: #00a7c5;
border-color: #00a7c5;
}
.btn:hover {
background-color: #00a7c5;
filter: brightness(1.1);
border-color: #00a7c5;
}
</style>
{% endblock stylesheets %}
{# end styles #}
{# scripts #}
<script src="{{ script('common.js') }}"></script>
<script type="module" src="{{ script('GeneralBundle//emblue_index.js') }}"></script>
<script src="https://apis.google.com/js/api:client.js" crossorigin="anonymous"></script>
{% if app.session.get('WorldChangeCoin') is defined and app.session.get('WorldChangeCoin') == 'true' %}
{% include twig_exists('@AviaturTwig/' ~ agency_folder.twigFlux() ~ '/General/Components/worldpayFunction.html.twig') %}
{% endif %} <link rel="stylesheet"href="{{ asset('assets/default_assets/css/firebase-main.css') }}"/> {% if parameters['firebasescripts'] == 'true' %}
<link
rel="stylesheet" href="https://aviaturcdndev.z5.web.core.windows.net/source/main.css">
<script src="https://aviaturcdndev.z5.web.core.windows.net/source/script.js" type="text/javascript"></script>
{% endif %}
{% if pdfGenerator is not defined %}
<script type="text/javascript">
var clientId;
var domain = '{{ app.session.get('domain') }}';
var domainsecure = '{{ app.session.get('domainsecure') }}';
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-64309537-1', 'auto', {
cookieDomain: '{{ app.request.server.get("HTTP_HOST")|replace({'www.':''}) }}',
allowLinker: true
});
ga('require', 'displayfeatures');
ga('require', 'linkid', 'linkid.js');
ga('require', 'linker');
ga('require', 'ec');
ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com']);
ga('linker:autoLink', [domain, domainsecure, 'pasabordo.com.co', 'grupoaviatur.com'], false, true);
var dimensionValue = '{{ app.request.server.get("REMOTE_ADDR") }}';
{% if app.session.has('transactionId') %}
var dimensionValue2 = '{{ app.session.get('transactionId') }}';
{% else %}
var dimensionValue2 = '';
{% endif %}
var dimensionValue3 = '';
var dimensionValue4 = '';
var dimensionValue5 = '';
var dimensionValue6 = '';
ga('send', 'pageview', {
'dimension1': dimensionValue,
'dimension2': dimensionValue2,
'dimension3': dimensionValue3,
'dimension4': dimensionValue4,
'dimension5': dimensionValue5,
'dimension6': dimensionValue6
});
</script>
{% endif %}
{% if parameters['aviatur_close_modal_login'] is defined %}
{% set activate_login = json_decode(parameters['aviatur_close_modal_login'], true) %}
{% if activate_login[app.session.get('agencyId')] is defined %}
{% set swLoginClose = activate_login[app.session.get('agencyId')] %}
{% else %}
{% set swLoginClose = activate_login['all'] %}
{% endif %}
{% endif %}
{# Parametrización boton continuar sin iniciar sesión #}
{% if parameters['aviatur_continue_without_logging'] is defined %}
{% set continue_without_logging = json_decode(parameters['aviatur_continue_without_logging'], true) %}
{% if continue_without_logging[app.session.get('agencyId')] is defined %}
{% set continueWithoutLogging = continue_without_logging[app.session.get('agencyId')] %}
{% else %}
{% set continueWithoutLogging = continue_without_logging['all'] %}
{% endif %}
{% endif %}
<script>
document.addEventListener("DOMContentLoaded", function () {
const googleBtn = document.getElementById('customGoogleBtn');
googleBtn.addEventListener('click', function (e) {
e.preventDefault();
const clientId = '{{ google_idclient_login }}';
const redirectUri = '{{ url("aviatur_customer_login_social_secure") }}';
const scope = 'openid email profile';
const responseType = 'code';
console.log("Redirect URI generada:", redirectUri);
const authUrl =
`https://accounts.google.com/o/oauth2/v2/auth?` +
`client_id=${clientId}` +
`&redirect_uri=${encodeURIComponent(redirectUri)}` +
`&response_type=${responseType}` +
`&scope=${encodeURIComponent(scope)}` +
`&prompt=select_account`;
console.log("URL de autenticación:", authUrl);
window.location.href = authUrl;
});
});
</script>
<script>
var fbid = '{{ facebook_appid_login }}';
window.fbAsyncInit = function() {
FB.init({
appId : fbid,
cookie : true,
xfbml : true,
version : 'v7.0',
oauth : true,
status : true
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
function loginFace(){
FB.login(function(response) {
if (response.authResponse) {
var $modalLogin = jQuery('#js-modalLogin');
FB.api('/me', {fields: 'first_name, last_name, email, picture'}, function (response2) {
response2.picture2 = "http://graph.facebook.com/" + response2.id + "/picture?type=normal";
jQuery(".js-globalOverlay").attr("style", "z-index: 1200 !important;");
jQuery(".js-globalOverlay-text").text("Iniciando sesión");
jQuery(".js-globalOverlay").show();
jQuery.ajax({
url: '/customer/social-networks-callback',
type: 'POST',
crossDomain: true,
data: {data: response2, red: "facebook"},
success: function (data) {
if(data.status == "redirect") {
FB.logout();
if(pathname[2] == "detalle" || pathname[2] == "pasajeros-reserva" || pathname[2] == "formulario") {
location.reload();
} else {
window.location.replace("/");
}
}
},
error: function () {
$modalLogin.find('.close[data-dismiss="modal"]').trigger('click');
jQuery(".js-globalOverlay").hide();
},
complete: function () {}
});
});
} else {
console.log('User cancelled login or did not fully authorize.');
}
},{scope: 'email,public_profile'});
}
</script>
{% if app.user %}
<script>
var customerLogged = true;
var documentNum = '{{ app.user.documentNumber }}';
var documentType = '{{ app.user.documentType }}';
{% if parameters['switch_login_agencies'] is defined %}
{% set login_agencies = json_decode(parameters['switch_login_agencies'], true) %}
{% if login_agencies[app.session.get('agencyId')] is defined %}
{% set login_is_on = login_agencies[app.session.get('agencyId')] %}
{% else %}
{% set login_is_on = login_agencies['all'] %}
{% endif %}
{% else %}
{% set login_is_on = '0' %}
{% endif %}
var login_is_on = "{{ login_is_on }}";
</script>
{% else %}
<script>var customerLogged = false;</script>
{% endif %}
{% if 'aviatur_general_homepage' in app.request.get('_route') %}
{% if app.user.username is defined %}
<script>
jQuery(document).ready(function () {
var dtCustomerFacebook = '{{ app.user.facebookId }}';
var dtCustomerGoogle = '{{ app.user.googleId }}';
var address = '{{ app.user.address }}';
var documentNum = '{{ app.user.documentNumber }}';
if (dtCustomerFacebook || dtCustomerGoogle) {
if (documentNum.length == 0 && address.length == 0) {
window.location.replace("/customer/edit");
}
}
});
</script>
{% else %}
<script>
sessionStorage.setItem('countDialogLogin', 0);
var countDialogLogin = 0;
jQuery(document).ready(function () {
jQuery("#close-dialog-login").on('click', function () {
jQuery("#dialog-login-home").hide();
});
});
</script>
{% endif %}
{% endif %}
{% if 'aviatur_customer_edit_info' in app.request.get('_route') %}
{% if app.user.username is defined %}
<script>
jQuery(document).ready(function () {
var dtCustomerFacebook = '{{ app.user.facebookId }}';
var dtCustomerGoogle = '{{ app.user.googleId }}';
jQuery("#customer_edit_form_email").attr("type", "email");
jQuery("#customer_edit_form_CivilStatus").parent().parent().parent().hide();
if (dtCustomerFacebook || dtCustomerGoogle) {
if (jQuery("#customer_edit_form_DocumentNumber").val() == "") {
jQuery("#customer_edit_form_DocumentNumber").removeAttr("readonly");
}
jQuery(".js-reserva-submit-password").hide();
jQuery("#customer_edit_form_email").hide();
jQuery('[for^="customer_edit_form_email"]').hide();
}
});
</script>
{% endif %}
{% endif %}
{% if app.session.get('AnonymousEmail') is not null %}
{% set anonymousEmail = app.session.get('AnonymousEmail') %}
<script type="text/javascript">
jQuery(document).ready(function () {
var anonymousEmail = "{{ anonymousEmail }}";
jQuery("#username").val(anonymousEmail);
jQuery("#fos_user_registration_form_email").val(anonymousEmail);
});
</script>
{% endif %}
{# End scripts #}
{% if "payment_success_secure" in app.request.attributes.get('_route') %}{% endif %}
{% block javascripts_header %}
{#
{% if cards is defined %}
{% if cybersource is not empty and cybersource.org_id is defined %}
{% set src = "https://h.online-metrix.net/fp/tags.js?org_id=" ~ cybersource.org_id ~ "&session_id=aviaturcom" ~ app.session.get('transactionId') %}
<script type="text/javascript" src="{{ src }}"></script>
{% endif %}
{% endif %}
#}
{% endblock %}
</head>
<body ontouchstart="">
{% if agencyDataInfo['agency_phones'] %}
{% set agencyWhat = agencyDataInfo['agency_phones']['what'] %}
{% set agencyPhones = agencyDataInfo['agency_phones']['all'] %}
{% endif %}
<p class="app-name hide">{{ app.session.get('domain') }}</p>
{% block body_scripts %}
{#
{% if cards is defined %}
{% if cybersource is not empty and cybersource.org_id is defined %}
{% set src = "https://h.online-metrix.net/fp/tags?org_id=" ~ cybersource.org_id ~ "&session_id=aviaturcom" ~ app.session.get('transactionId') %}
<noscript>
<iframe style="width: 100px; height: 100px; border: 0; position:absolute; top: -5000px;" src="{{ src }}"></iframe>
</noscript>
{% endif %}
{% endif %}
#}
{% endblock %}
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-notice">{{ flashMessage }}</div>
{% endfor %}
{% block overlay %}
<script>
document.addEventListener("DOMContentLoaded", function () {
const overlay = document.querySelector(".js-globalOverlay");
if (overlay) {
overlay.style.display = "none";
window.addEventListener("load", function () {
overlay.style.display = "none";
});
window.addEventListener("pageshow", function () {
overlay.style.display = "none";
});
}
});
</script>
<div class="overlay js-globalOverlay" style="display: none;">
<div class="overlay-center">
<svg class="mat-loader--200 center-block" height="200" width="200">
<circle class="mat-loader--200__path" cx="100" cy="100" r="80" fill="none" stroke-width="6" stroke-miterlimit="10"/>
</svg>
<p class="spin-text js-globalOverlay-text">Cargando...</p>
</div>
</div>
<div class="responsive-js"></div>
{% endblock %}
{% block base_content %}
{% block header %}{% endblock %}
{% block body %}{% endblock body %}
{% block content %}{% endblock content %}
{% block footer %}{% endblock footer %}
{% block modal %}
<div id="js-globalModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 id="js-globalModal-title" class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<div id="js-globalModal-illustration"></div>
<p id="js-globalModal-text" class="modal-text modal-text--error"></p>
</div>
</div>
</div>
</div>
{% endblock modal %}
{% endblock base_content %}
{% block javascripts %}{% endblock %}
{% block javascripts_bottom %}
{% endblock javascripts_bottom %}
<!-- Facebook Pixel Code -->
<script>
!function (f, b, e, v, n, t, s) {
if (f.fbq) return;
n = f.fbq = function () {
n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments)
};
if (!f._fbq) f._fbq = n;
n.push = n; n.loaded = !0; n.version = '2.0';
n.queue = [];
t = b.createElement(e); t.async = !0;
t.src = v;
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s)
}(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '124649384848609');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1"
src="https://www.facebook.com/tr?id=124649384848609&ev=PageView&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
</body>
</html>