{% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_index.html.twig') %}
{% set home_slider = '1' %}
{% block head_meta_label %}
{{parent()}}
<meta name="robots" content="index, follow">
{% endblock head_meta_label %}
{% block search_content %}
<div class="search__light wrapper">
<div class="search__light--box-flight">
{% if app.session.has('notEnableFlightSearch') == 0 %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine.html.twig') %}
{% endif %}
</div>
</div>
<div class="wrapper flex-row">
<div class="col-grid text-center">
<h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
<span class="material-symbols-rounded type-white sp-stack--big">expand_more</span>
</div>
</div>
{% endblock %}
{% block javascripts %}
{#PIXELES INFORMATION#}
{% if pixel_info.partner_datalayer is defined and app.session.has('whitemark') != 1 %}
{% set pixel_info_search = pixel_info.partner_datalayer %}
{% endif %}
{#{% if pixel_info.dataxpand is defined %}
{% set pixel_info_dataxpand = pixel_info.dataxpand %}
{% endif %}#}
{% if pixel_info.facebook is defined %}
{% set pixel_info_facebook = pixel_info.facebook %}
{% endif %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/pixels/pixels.html.twig') %}
{% endblock %}
{% block promo_content %}
{% if homePromos is defined and homePromos != null and home_slider == '1'%}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoCards.html.twig') with {'homePromos': homePromos, 'titlePromo':titlePromo, 'subtitlePromo':subtitlePromo, 'promoType': promoType} %}
{% endif %}
{% if homePromosMain is defined and homePromosMain != null %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoHtmlSlider.html.twig') with {'homePromos': homePromosMain, 'titlePromo':titlePromoMain, 'subtitlePromo':subtitlePromoMain, 'promoType':promoTypeMain, 'background':'#eee'} %}
{% endif %}
{% if homePromosRecommendations is defined and homePromosRecommendations != null %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/recommended-home.html.twig') with {'homePromos': homePromosRecommendations, 'titlePromo':titlePromoRecommendations, 'subtitlePromo': subtitlePromoRecommendations, 'promoType':promoTypeRecommendations} %}
{% endif %}
{% if homePromos is defined %}
{% if app.session.has('operatorId') != 1 %}
<div class="wrapper">
{{ parent() }}
{# {% if home_slider=='1'%}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromoBanner.html.twig') %}
{% else %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
{% endif %}#}
{% if homePromos is defined and home_slider!='1'%}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Edition/Default/content_homePromo.html.twig') %}
{% endif %}
</div>
{% endif %}
{% if app.user != "" and (is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_EDIT_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_CREATE_' ~ app.session.get('agencyId')) or is_granted('ROLE_AVIATUR_ADMIN_ADMIN_PROMO_PRODUCT_DELETE_' ~ app.session.get('agencyId')) or is_granted('ROLE_SUPER_ADMIN') ) %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/mainSearch_editModal.html.twig') %}
{% endif %}
{% endif %}
{# {% if app.session.has('operatorId') != 1 and app.session.has('whitemark') != 1%}
<div class="wrapper">
{{ parent() }}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_promo.html.twig') %}
</div>
{% endif %} #}
{% endblock %}
{% block javascripts_bottom %}
<script>
{% if cookieLastSearch is defined %}
var cookieLastSearch = {{cookieLastSearch|json_encode|raw}};
{% else %}
var cookieLastSearch = null;
{% endif %}
var dateEndCencosud = '2018-06-30';
var originIATA = ['BOG', 'CLO', 'SMR', 'BGA', 'BAQ', 'CTG', 'CUC', 'LET', 'MDE', 'MTR', 'PEI', 'ADZ', 'VUP', 'EYP'];
var destinationIATA = ['ANF', 'CJC', 'COR', 'PMC', 'SCL', 'AQP', 'CUZ', 'JUL', 'LIM', 'BUE', 'FTE', 'IGR', 'ANF', 'RIO', 'SAO', 'IGU', 'CWB', 'POA', 'SYD', 'MEL', 'BNE', 'AKL', 'LPB', 'ASU', 'MVD', 'VVI', 'USH', 'FOR', 'REC', 'BSB', 'SSA', 'IGR', 'IQQ', 'PUQ', 'MAO', 'RGL', 'PPT', 'FLN', 'UIO', 'GYE', 'LSC', 'TUC', 'CCP', 'PCL', 'ZCO', 'ARI', 'AUA', 'CUN', 'MIA'].concat(originIATA);
var agencyFolder = '{{agency_folder.twigFlux()}}';
</script>
{% if parameters['aviatur_xtreme_search_enabled'] is defined and parameters['aviatur_xtreme_search_enabled'] == 1 %}
<script>
var xtremeSearchUrl = '{{ parameters['aviatur_xtreme_search_url'] }}';
</script>
{% endif %}
{% if app.session.has('operatorId') == 1 and app.session.has('frontCencosud') == 1 %}
<script>
var applyCencosudFront = 1;
</script>
{% endif %}
{{ parent() }}
{#{% if app.session.get('domain') == 'aviatur.com' %}
<script type="text/javascript" src="//static.clicktripz.com/custom/aviatur/cti_aviatur.js" async defer></script>
{% endif %}#}
{% endblock javascripts_bottom %}