<form action ="#" class="search__engine clearfix search-flight js-searchForm js-searchFormFlight">
{% if cookieLastSearch is defined and cookieLastSearch != null %}
<div style="display:none">
<p id="js-cookieLastSearch-origin">{{ cookieLastSearch['origin1'] }}</p>
<p id="js-cookieLastSearch-destination">{{ cookieLastSearch['destination1'] }}</p>
<p id="js-cookieLastSearch-originLabel">{{ cookieLastSearch['originLabel1'] }}</p>
<p id="js-cookieLastSearch-destinationLabel">{{ cookieLastSearch['destinationLabel1'] }}</p>
<p id="js-cookieLastSearch-date1">{{ cookieLastSearch['date1'] }}</p>
<p id="js-cookieLastSearch-date2">{% if cookieLastSearch['date2'] is defined %}{{ cookieLastSearch['date2'] }}{% endif %}</p>
<p id="js-cookieLastSearch-adults">{{ cookieLastSearch['adults'] }}</p>
<p id="js-cookieLastSearch-children">{{ cookieLastSearch['children'] }}</p>
<p id="js-cookieLastSearch-infants">{{ cookieLastSearch['infants'] }}</p>
</div>
{% endif %}
{# START .search-header #}
<div class="search__header clearfix mb-lg-0">
<h1 class="search__title-principal-flight hide-availengine tooltips text-white">
{# <span class="tooltips-content hidden-all">Vuelos Baratos</span> #}
<i class="icon icon_bundle_flight search__title__icon hide-lap-and-up hide-palm"></i>
{% if articulo is not defined %}
{% if promoType is defined %}
{% if 'ofertas-' in promoType and 'destinos' not in promoType and 'fin' not in promoType%}
{% set promoArray = promoType|split('-') %}
<span class="">Busque sus tiquetes baratos </span><span class="hide-portable">
{% if promoArray|length == 2 %}
<span>{{promoArray[1]|capitalize}}</span>
{% elseif promoArray|length == 3 %}
<span>{{promoArray[1]|capitalize}} {{promoArray[2]|capitalize}}</span>
{% elseif promoArray|length == 4 %}
<span>{{promoArray[2]|capitalize}} {{promoArray[3]|capitalize}}</span>
{% endif %}
</span>
{% else %}
<!-- b class="">Busque sus vuelos</b -->{#% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %#}
{# {% if app.session.has('operatorId') != 1 %}<b class="search-title-flight mb-5">Vuelos baratos</b>{% else %}<b class="search-title-flight">Busque sus vuelos</b>{% endif %} #}
{% if app.session.has('operatorId') != 1 %}<b class="search-title-flight block text-white font-bold
text-[20px] leading-[28px]
whitespace-normal w-[328px]
lg:w-auto lg:text-[24px] lg:leading-[36px] lg:whitespace-nowrap py-7 lg:py-0 pl-1">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus vuelos</b>{% endif %}
{% endif %}
{% else %}
{#<b class="">Busque sus tiquetes</b>{% if app.session.has('operatorId') != 1 %}<b class="hide-portable"> baratos</b>{% endif %}#}
{% if app.session.has('operatorId') != 1 %}<b class="search-title-flight block text-white font-bold
text-[20px] leading-[28px]
whitespace-normal w-[328px]
lg:w-auto lg:text-[24px] lg:leading-[36px] lg:whitespace-nowrap py-7 lg:py-0 pl-1">¿A qué lugar quiere viajar?</b>{% else %}<b class="search-title-flight">Busque sus tiquetes</b>{% endif %}
{% endif %}
{% endif %}
{% if articulo is defined and articulo.url is defined%}
<b class="">Vuelos Baratos</b><b class="hide-portable">
{% set info = articulo.url %}
{% set info = info|replace({'-': ' '}) %}
{% set contentInfo = json_decode(articulo.description, true) %}
{% if contentInfo['type']=="aerolineas"%}
con {{info|title}}
{% endif %}
{% if contentInfo['type']=="destinos" %}
a {{info|title}}
{% endif %}
</b>
{% endif %}
{% if articulo is defined and articulo.url is not defined and typeArticle is defined%}
<span class="">
{% set info = typeArticle %}
{% set info = info|replace({'-': ' '}) %}
{% if info=="colombia"%}
Tiquetes
{% else %}
Vuelos
{% endif %}
<span class="hide-portable">Baratos </span>
a {{info|replace({'oceania': 'oceanía', 'america': "américa",'africa': "áfrica"})|capitalize}}</span>
{% endif %}
</h1>
{% if validateExplore is defined and validateExplore == true %}
<div class="search__btn-group btn-group explore-btn hidden-all" role="group" aria-label="Select flight type">
<button type="button" id="explore-mobile" class="btn btn--inactive tooltips" data-date="1" data-type="explore-mobile" title="Explorar">
<span class="tooltips-content hidden-all show-availengine">Presupuesto</span>
<i class="icon icon_banknote hidden-palm show-availengine"></i>
<span class="hide-availengine">
</span>
<div style="display:none">
<input type="checkbox" name="applyBudget" id="applyBudget">
</div>
</button>
</div>
{% endif %}
</div>
<div class="search__light--box-opaque-palm mx-2.5 lg:mx-0 rounded-[16px] shadow-[0_1px_14px_1px_rgba(0,0,0,0.10)] md:shadow-none">
<div class="clearfix mb-lg-0">
<div style="float:left;" class="search__btn-group btn-group" role="group" aria-label="Select flight type">
<button type="button" id="vuelta" class="btn tooltips " data-date="1" data-type="roundtrip" title="Ida y Vuelta">
<span class="tooltips-content hidden-all show-availengine font-normal">Ida y Vuelta</span>
<i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
<span class="hide-availengine font-[Roboto]">
Ida y Vuelta
</span>
</button>
<button type="button" id="ida" class="btn btn--inactive tooltips " data-date="1" data-type="oneway" title="Solo Ida">
<span class="tooltips-content hidden-all show-availengine font-normal">Solo Ida</span>
<i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_checked</i>
<span class="hide-availengine font-[Roboto]">
Solo Ida
</span>
</button>
<button type="button" id="multidest" class="btn btn--inactive tooltips " title="Multidestino">
<span class="tooltips-content hidden-all show-availengine font-normal">Multidestino</span>
<i class="material-symbols-rounded flight-type" style="float: left;margin-right: 0.3rem;font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;">radio_button_unchecked</i>
<span class="hide-availengine font-[Roboto]">
Multidestino
</span>
</button>
{% if validateExplore is defined and validateExplore == true %}
<button style="visibility:hidden;" type="button" id="explore" class="btn btn-explore btn--inactive tooltips hide-portable" data-date="1" data-type="explore" title="Explorar">
<span class="tooltips-content show-availengine">¿Quiere saber a donde viajar con su presupuesto?</span>
<i class="icon icon_banknote hidden-palm show-availengine"></i>
<span class="hide-availengine">
Buscar por presupuesto
</span>
<div style="display:none">
<input type="checkbox" name="applyBudget" id="applyBudget">
</div>
</button>
{% endif %}
</div>
</div>
{# END .search-header #}
{# START .search-body #}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_body.html.twig') %}
{# END .search-body #}
{# START .search-show #}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_show.html.twig') %}
{# END .search-show #}
{# START .search-footer #}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_options.html.twig') %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_engine_footer.html.twig') %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_notificationModal.html.twig') %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/Flight/flightSearch_cencosudLatamTrips.html.twig') %}
{# END .search-footer #}
{# SUBMIT #}
<div class="clearfix">
<span id="js-responsive-submit-palm"></span>
<div class="flex-row form-group js-responsive-submit search-flight__col-footer-search">
<input type="button" value="travel Buscar en Vuelos" style="font-size:1.2rem;letter-spacing: 0.2rem;" class="hide material-symbols-rounded search__footer__submit btn btn--submit btn--full {% block package_submit_btn_2 %}js-searchButton{% endblock %}">
<a class="btn btn--submit btn--full {% block package_submit_btn_3 %}js-searchButton{% endblock %}">
Buscar en vuelos
</a>
</div>
</div>
</div>
<script type="module" src='{{ script('FlightBundle//search_flight_swap_index.js') }}'></script>
<script src="https://q.bstatic.com/static/affiliate_base/js/search_extension.js" integrity="sha384-SKVrvRv16JN55Tqpe0zKniEUmA3VK5mLvUUiLIoYMy6P21mse6WxTbIQRRjNx2Er" crossorigin="anonymous" async defer></script>
</form>
{# <div class="wrapper flex-row hide-palm">
<div class="col-grid text-center js-scroll-down">
<h5 href="#" class="type-white sp-stack--small" style="text-shadow: 1px 1px 2px black;">Descubra promociones</h5>
<span class="material-symbols-outlined type-white sp-stack--big">expand_more</span>
</div>
</div> #}