1(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[5128],{9946(e,t,a){(t=a(6314)(!1)).push([e.id,":root{--safe-area-inset-top: 0px;--safe-area-inset-right: 0px;--safe-area-inset-bottom: 0px;--safe-area-inset-left: 0px;--theme-rem-multiply: 1.6}@supports(top: constant(safe-area-inset-top)){:root{--safe-area-inset-top: constant(safe-area-inset-top);--safe-area-inset-right: constant(safe-area-inset-right);--safe-area-inset-bottom: constant(safe-area-inset-bottom);--safe-area-inset-left: constant(safe-area-inset-left)}}@supports(top: env(safe-area-inset-top)){:root{--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-right: env(safe-area-inset-right);--safe-area-inset-bottom: env(safe-area-inset-bottom);--safe-area-inset-left: env(safe-area-inset-left)}}.bm-as__detail.search{padding-inline:16px 8px}.bm-as__detail.search .bm-form-input,.bm-as__detail.search .custom-select{position:relative;height:100%;width:100%;top:0;left:0}@media(hover: hover){.bm-as__detail.search .custom-select{display:block}}.bm-as__detail.search .bm-form-input:focus+.custom-select{display:none}.bm-as__detail.search .bm-form-input:focus,.bm-as__detail.search .custom-select.isActive .custom-select--trigger{outline:none;box-shadow:#fff 0 0 0 .2rem,#ff821f 0 0 0 .4rem}.bm-as__detail.search .select{position:relative;display:flex;width:100%}.bm-as__detail.search .select .select-label{display:block;font-weight:bold;margin-bottom:.4rem}.bm-as__detail.search .select .search--select-wrapper{position:relative;width:100%}.bm-as__detail.search .select .search--select-wrapper .bm-form-input,.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger{border-radius:.4rem}.bm-as__detail.search .select .search--select-wrapper .bm-form-input{-webkit-appearance:none;-moz-appearance:none;padding:0rem .8rem}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger{position:relative;display:flex;width:100%;height:100%}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger:hover{border-color:var(--as-booking-mask-text-color)}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .bm-as__icon.search-icon{transform:scaleX(-1);padding-inline:8px 0}@media(max-width: 767px){.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .bm-as__icon.close-icon{width:44px;height:44px;padding:16px}}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{font-size:14px}@media(max-width: 767px){.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{font-size:16px}}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{cursor:pointer;align-items:flex-start;width:100%;text-align:start;border:0;background:rgba(0,0,0,0);padding:1px 2px}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder[aria-hidden=true]{display:none}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .search-input{display:flex;align-items:center;padding-inline:0 8px;width:80%;height:100%}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .search-input input{position:relative;font-size:14px}@media(max-width: 767px){.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .search-input input{font-size:16px}}.bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .search-input input{width:100%}.bm-as__detail.search .dropdown-wrapper{position:absolute;top:0px;left:0;width:400px;max-height:556px;margin-block:12px;z-index:700;display:flex;flex-direction:column;background-color:var(--as-booking-mask-background-color);box-shadow:0 8px 15px 0 rgba(0,0,0,.16)}.bm-as__detail.search .dropdown-wrapper.wide{width:556px}@media(max-width: 767px){.bm-as__detail.search .dropdown-wrapper{width:100%}.bm-as__detail.search .dropdown-wrapper.wide{width:100%}.bm-as__detail.search .dropdown-wrapper .main-text{font-size:var(--as-booking-mask-dropdown-mobile-font-size)}}.bm-as__detail.search .dropdown-wrapper .secondary-text{font-size:var(--as-booking-mask-small-mobile-font-size)}@media(min-width: 768px){.bm-as__detail.search .dropdown-wrapper .secondary-text{font-size:var(--as-booking-mask-small-font-size)}}.bm-as__detail.search .dropdown-wrapper .custom-select--custom-label{width:100%;color:var(--as-booking-mask-text-color);background:var(--as-booking-mask-background-color);color:var(--as-booking-mask-text-color);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:.5em 0}.bm-as__detail.search .dropdown-wrapper .custom-select--custom-label span{margin-left:20px}[dir=rtl] .bm-as__detail.search .dropdown-wrapper .custom-select--custom-label span{margin-left:0;margin-right:20px}.bm-as__detail.search .dropdown-wrapper .custom-select--options{width:100%;max-height:unset;background:var(--as-booking-mask-background-color);color:var(--as-booking-mask-text-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option{position:relative;padding:10px 20px;display:flex;align-items:center;min-height:36px;text-align:left;background-color:var(--as-booking-mask-background-color);border-block-start:1px solid var(--as-booking-mask-background-color);cursor:pointer}[dir=rtl] .bm-as__detail.search .dropdown-wrapper .custom-select--option{text-align:right}.bm-as__detail.search .dropdown-wrapper .custom-select--option .bm-as__icon{padding:0;align-items:inherit;min-height:36px;padding-inline-end:8px}[dir=rtl] .bm-as__detail.search .dropdown-wrapper .custom-select--option .bm-as__icon{padding-inline:8px 0}.bm-as__detail.search .dropdown-wrapper .custom-select--option .bm-as__icon .icon-wrapper{width:16px;height:20px}.bm-as__detail.search .dropdown-wrapper .custom-select--option:hover{color:var(--as-booking-mask-background-color);background-color:var(--as-booking-mask-text-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option:hover .custom-select-counter-tag span{color:var(--as-booking-mask-text-color);background-color:var(--as-booking-mask-background-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option:hover.first-level-section{background-color:var(--as-booking-mask-text-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option.first-level-section{background-color:var(--as-booking-mask-section-background-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option.second-level-section{border-block-start:1px solid var(--as-booking-mask-section-divider-color)}.bm-as__detail.search .dropdown-wrapper .custom-select--option.internal-1{padding-inline-start:48px}.bm-as__detail.search .dropdown-wrapper .custom-select--option.internal-2{padding-inline-start:72px}.bm-as__detail.search .dropdown-wrapper .custom-select--option.section-title{pointer-events:none}.bm-as__detail.search .dropdown-wrapper .custom-select--option.align-top{align-items:flex-start}.bm-as__detail.search .dropdown-wrapper .helper-disabled:first-child{border:none}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name{display:flex;flex-direction:row;justify-content:space-between;width:100%;gap:20px}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name.dropdown-option{margin-inline-start:24px}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-text{display:flex;flex-direction:column;width:100%}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-text .main-text,.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-text .secondary-text{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-counter-tag{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:var(--as-booking-mask-small-mobile-font-size)}@media(min-width: 768px){.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-counter-tag{font-size:var(--as-booking-mask-small-font-size)}}.bm-as__detail.search .dropdown-wrapper .custom-select-option-name .custom-select-counter-tag span{dis
1play:flex;align-items:center;border-radius:4px;padding:2px 6px;max-height:20px;background-color:var(--as-booking-mask-background-color)}.bm-as__detail.search .custom-select--options{max-height:30rem;overflow-y:auto}.bm-as__detail .custom-select-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}@media(max-width: 767px){.g_area-search.bm-as__show-mobile .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{display:block}.g_area-search:not(.bm-as__show-mobile) .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{display:none}.g_area-search:not(.bm-as__show-mobile) .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder[aria-hidden=true]{display:none}.g_area-search-ext.bm-as__show-mobile .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{display:block}.g_area-search-ext.bm-as__show-mobile .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder[aria-hidden=true]{display:none}.g_area-search-ext:not(.bm-as__show-mobile) .bm-as__detail.search .select .search--select-wrapper .custom-select--trigger .placeholder{display:none}}",""]),e.exports=t},5072(e){"use strict";var t=[];function a(e){for(var a=-1,o=0;o<t.length;o++)if(t[o].identifier===e){a=o;break}return a}function o(e,o){for(var r={},i=[],s=0;s<e.length;s++){var l=e[s],c=o.base?l[0]+o.base:l[0],d=r[c]||0,p="".concat(c," ").concat(d);r[c]=d+1;var u=a(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(h);else{var m=n(h,o);o.byIndex=s,t.splice(s,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function n(e,t){var a=t.domAPI(t);return a.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;a.update(e=t)}else a.remove()}}e.exports=function(e,n){var r=o(e=e||[],n=n||{});return function(e){e=e||[];for(var i=0;i<r.length;i++){var s=a(r[i]);t[s].references--}for(var l=o(e,n),c=0;c<r.length;c++){var d=a(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},7659(e){"use strict";var t={};e.exports=function(e,a){var o=function(e){if(void 0===t[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}t[e]=a}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(a)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},2675(e,t,a){"use strict";e.exports=function(e){var t=a.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(a){!function(e,t,a){var o="";a.supports&&(o+="@supports (".concat(a.supports,") {")),a.media&&(o+="@media ".concat(a.media," {"));var n=void 0!==a.layer;n&&(o+="@layer".concat(a.layer.length>0?" ".concat(a.layer):""," {")),o+=a.css,n&&(o+="}"),a.media&&(o+="}"),a.supports&&(o+="}");var r=a.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,a)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8383(e,t,a){"use strict";a.r(t),a.d(t,{default:()=>Te});var o=a(1425);const n={class:"bm-as__detail search ada-select__wrapper searchContainer",ref:"searchContainer"},r={class:"select"},i=["for"],s={class:"search--select-wrapper"},l="Destination Type",c=(e,t)=>`as-${e}-${t}`,d=(e,t,a)=>`as-${a}-${e}-${t}`,p=function(e,t){return e.map(e=>{const{booking_mask_url:a="",booking_engine_hotel_id:o="",booking_engine_provider_id:n="",second_booking_engine_hotel_id:r="",second_booking_engine_provider_id:i="",second_booking_engine_url:s="",be_open_in_same_tab:l=!1,name:d="",id:p="",weight:h=0,country:m
1="",country_id:D="",region:w="",region_id:g="",city:b="",location:f="",location_id:y=""}=e;return{booking_mask_url:a,booking_engine_hotel_id:o,booking_engine_provider_id:n,second_booking_engine_hotel_id:r,second_booking_engine_provider_id:i,second_booking_engine_url:s,be_open_in_same_tab:l,module:"hotel",name:d,id:c("hotel",p),hotel_id:p,text:d,secondaryText:u(e,t),mainText:d,country:m,countryId:D,region:w,regionId:g,city:f,city_id:y,weight:h}})},u=function(e,t){let a="";return""!=e.city&&(a=`${e.city},`),""!=e.region&&(a=`${a} ${e.region},`),""!=e.country&&(a=`${a} ${e.country},`),a.replace(/,(?=[^,]*$)/,"")},h=function(e){const{countries:t=[]}=e;return t.map(t=>{const a="country",{id:o="",name:n="",continent:r=""}=t,i=e.disableCountrySearch?"":`${n}`,s=`${r}`;return{module:a,id:c(a,o),mainText:i,countryId:o,secondaryText:s}})},m=function(e){const{countries:t=[],regions:a=[]}=e;return a.map(e=>{const a="region",{id:o="",name:n="",country_id:r=""}=e,{name:i=""}=t.find(e=>e.id===r)||{},s=""===n?"":`${n}`,l=""===i?"":`${i}`;return{module:a,name:n,countryName:i,countryId:r,id:c(a,o),mainText:s,secondaryText:l,regionId:o}})},D=function(e){const{countries:t=[],regions:a=[],cities:o=[]}=e;return o.map(o=>{const n="city",{id:r="",city:i="",region_id:s=""}=o,{name:l="",country_id:d=""}=a.find(e=>e.id===s)||{},{name:p=""}=t.find(e=>e.id===d)||{},u=e.disableCitySearch?"":`${i}`,h=(""===l?"":`${l}, \n ${""===p?"":`${p},`}`).replace(/,(?=[^,]*$)/,"");return{module:n,name:i,regionName:l,regionId:s,countryName:p,countryId:d,id:c(n,r),mainText:u,secondaryText:h,city_id:r}})},w=function(e){const{countries:t=[],regions:a=[],cities:o=[],pois:n=[],sortResultsBy:r}=e;let i="";const s=JSON.parse(JSON.stringify(n[0])).filter(e=>e.location_id.length>0);let c=[];for(let e in s)for(let t=0;t<s[e].location_id.length;t++){let a={};const o=s[e].location_id[t];a.id=s[e].id,a.locationId=o,a.location_id=s[e].location_id,a.name=s[e].name,a.uniqueId=`poi-${s[e].id}-city-${o}`,c.push(a)}const p=[...new Map(c.map(e=>[e.uniqueId,e])).values()];let u=[],h=!1;if(r!=l){if(e.disableCitySearch&&e.disableRegionSearch&&e.disableCountrySearch&&(h=!0),e.disableCitySearch&&e.disableRegionSearch&&!e.disableCountrySearch){for(let e in p){let t=o.find(t=>t.id===p[e].locationId),n=a.find(e=>e.id===t.region_id);p[e].locationCountryId=n.country_id}u=p.filter((e,t)=>p.findIndex(t=>t.id==e.id&&t.locationCountryId==e.locationCountryId)==t)}if(e.disableCitySearch&&!e.disableRegionSearch){for(let e in p){let t=o.find(t=>t.id===p[e].locationId);p[e].locationRegionId=t.region_id}u=p.filter((e,t)=>p.findIndex(t=>t.id==e.id&&t.locationRegionId==e.locationRegionId)==t)}}let m=s;return r!=l&&(h||(m=p),e.disableCitySearch&&(e.disableRegionSearch&&e.disableCountrySearch||(m=u))),m.map(n=>{const{id:s="",name:c="",location_id:p="",locationId:u,uniqueId:h}=n,{city:m="",region_id:D=""}=o.find(e=>r!=l?e.id===u:p.includes(e.id))||{},{name:w="",country_id:g=""}=a.find(e=>e.id===D)||{},{name:b=""}=t.find(e=>e.id===g)||{},f=e.disablePoiSearch||0==p.length?"":`${c}`;let y="";return""!=m&&(y=`${m},`),""!=w&&(y=""===y?`${w},`:`${y} ${w},`),""!=b&&(y=""===y?`${b},`:`${y} ${b},`),i=y.replace(/,(?=[^,]*$)/,""),{module:"poi",name:c,regionName:w,regionId:D,countryName:b,countryId:g,id:d("poi",s,u),poiId:s,mainText:f,secondaryText:i,cityName:m,city_id:p,locationId:u,uniqueId:h}})},g=(e,t)=>(t.reverse(),t.forEach(t=>{let a=e.findIndex(e=>"city"==e.module&&t.city.trim().toLowerCase()==e.name.trim().toLowerCase());a>=0?e.splice(a+1,0,t):e.push(t)}),e),b=(e,t)=>(t.reverse(),t.forEach(t=>{let a=e.findIndex(e=>"region"==e.module&&c("region",t.regionId)==e.id);a>=0?e.splice(a+1,0,t):e.push(t)}),e),f=(e,t)=>(t.reverse(),t.forEach(t=>{let a=e.findIndex(e=>"country"==e.module&&c("country",t.countryId)==e.id);a>=0?e.splice(a+1,0,t):e.push(t)}),e),y=(e,t)=>(t.forEach(t=>{let a=e.findIndex(e=>c("city",t.locationId)==e.id);a>=0?e.splice(a+1,0,t):e.push(t)}),e),_=(e,t)=>(t.forEach(t=>{let a=e.findIndex(e=>c("region",t.regionId)==e.id);a>=0?e.splice(a+1,0,t):e.push(t)}),e),x=(e,t)=>(t.forEach(t=>{let a=e.findIndex(e=>c("region",t.regionId)==e.id);a>=0&&e.splice(a+1,0,t)}),e),v=(e,t)=>
1(t.forEach(t=>{let a=e.findIndex(e=>c("country",t.countryId)==e.id);a>=0&&e.splice(a+1,0,t)}),e),S=(e,t)=>(t.forEach(t=>{let a=e.findIndex(e=>c("country",t.countryId)==e.id);a>=0&&e.splice(a+1,0,t)}),e),k=(e,t)=>{let a=0;for(let o in e)e[o].module==t&&"section-title"!=e[o].type&&a++;return a},I=(e,t,a)=>{let o=0;for(let n in e.dropDownData)"country"==a&&(!e.disableRegionSearch&&"region"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||!e.disableCitySearch&&"city"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||!e.disablePoiSearch&&"poi"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||"hotel"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type)&&e.dropDownData[t].countryId===e.dropDownData[n].countryId&&o++,"region"==a&&(!e.disableCitySearch&&"city"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||!e.disablePoiSearch&&"poi"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||"hotel"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type)&&e.dropDownData[t].regionId===e.dropDownData[n].regionId&&o++,"city"==a&&(!e.disablePoiSearch&&"poi"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type||"hotel"==e.dropDownData[n].module&&"section-title"!=e.dropDownData[n].type)&&(e.dropDownData[t].city_id===e.dropDownData[n].city_id||"poi"==e.dropDownData[n].module&&e.dropDownData[t].city_id===e.dropDownData[n].locationId)&&o++;return o},C=(e,t)=>{let a=0;for(let o in e)e[o].module==t&&"section-title"!=e[o].type&&a++;return a},T={id:"bm-as-location-search",ref:"hiddenSelect","data-dropdown-class":"bm-as__select-dropdown","data-search":"true","aria-required":"true","data-select2-id":"bm-as-location-search",tabindex:"-1","aria-hidden":"true",class:"custom-select-hidden-accessible"},O=["data-booking-engine-hotel-id","value","data-location"];a(8164);var E=a(8972);const R=(0,a(1774).nY)("locationsearch",{state:()=>({customDropDownOpenState:!1,dropDownWasClosed:!0,results:[],selected:{},searchString:"",arrowKeys:null}),getters:{isDropDownOpen:e=>e.customDropDownOpenState,dropDownWasClosed:e=>e.customDropDownOpenState,getResults:e=>e.results,getSelected:e=>e.selected,getSearchString:e=>e.searchString,getArrowKeys:e=>e.arrowKeys},actions:{setDropDownOpenState(e){this.customDropDownOpenState=e},setDropDownWasClosed(e){this.customDropDownOpenState=e},setResults(e){this.results=e},setSelected(e){this.selected=e},setSearchString(e){this.searchString=e},setArrowKeys(e){this.arrowKeys=e}}}),{fireEvent:A}=E.Wp,$={name:"HiddenSelect",props:{configs:{type:Object,required:!0,default:()=>({})}},setup(){const e=R(),t=(0,o.KR)(null);(0,o.wB)(()=>e.selected,a=>{a&&(t.value=e.selected.id,A("bm::location-search::change",e.selected))})}};var L=a(6262);const B=(0,L.A)($,[["render",function(e,t,a,n,r,i){return(0,o.uX)(),(0,o.CE)("select",T,[t[0]||(t[0]=(0,o.Lk)("option",null,null,-1)),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(a.configs.dropDownData,(e,t)=>((0,o.uX)(),(0,o.CE)("option",{key:e.id,"data-booking-engine-hotel-id":e.booking_engine_hotel_id,value:e.id,"data-location":e.secondaryText},(0,o.v_)(e.mainText),9,O))),128))],512)}]]),q={class:"custom-select js-custom-select"},K={class:"custom-select--trigger",ref:"trigger"},W=["aria-hidden"],F={key:0,class:"search-input"},z=["placeholder"],N={"aria-hidden":"true",class:"icon-wrapper close-button"},X=["href"];var M=a(1797);const P={name:"CustomSelect",props:{areaSearch:{type:Object,required:!0,default:()=>({})}},setup(e){const t=R(),{isMobile:a}=(0,M.t)(),n=(0,o.KR)(""),r=(0,o.KR)(!1),i=(0,o.KR)(null),s=(0,o.KR)(e.areaSearch.labels.locationSearchPlaceholder),l=(0,o.EW)(()=>t.isDropDownOpen),c=(0,o.EW)(()=>a.value?"#icon-close-promo":"#asm-bm-dropdown-icon-close"),d=()=>{if(p(e.areaSearch.dropDownData),e.areaSearch.locationFieldSearch&&n.value.length<3){for(let t in e.areaSearch.dropDownData)"section-title"!=e.areaSearch.dropDownData[t].type&&"section-level"!=e.areaSearch.dropDownData[t].type||(e.areaSearch.dropDownData[t].resultCount=e.areaSearch.dropDownData[t].totalCount);return void t.setResults(e.areaSearch.dropDownData)}let a=[],o=[],r=[],i=[],s=[],l=!1,c=!1,d=!1,m=!1,D=!1;for(let t in e.areaSearch.dropDownData){let p=e.areaSearch.dropDownData[t];const h=p.mainText.toLowerCase().split(/\s+/);let w=p.mainText.toLowerCase().split(/\s+/);if(w=u(h,w),(e.areaSearch.locationFieldSearch&&p.mainText.toLowerCase().includes(n.value.toLowerCase())||w.some(e=>e.startsWith(n.value.toLowerCase())))&&("Destination Type"==e.areaSearch.sortResultsBy&&("country"==p.module&&"section-title"!=p.type&&-1===a.indexOf(p.countryId)?(l=!0,a.push(p.countryId)):"region"==p.module&&"section-title"!=p.type&&-1===o.indexOf(p.regionId)?(c=!0,o.push(p.regionId)):"city"==p.module&&"section-title"!=p.type&&-1===r.indexOf(p.city_id)?(d=!0,r.push(p.city_id)):"poi"==p.module&&"section-title"!=p.type&&-1===s.indexOf(p.poiId)?(D=!0,s.push(p.poiId)):"hotel"==p.module&&"section-title"!=p.type&&-1===i.indexOf(p.hotel_id)&&(m=!0,i.push(p.hotel_id))),"Destination Type"!=e.areaSearch.sortResultsBy))if("country"==p.module&&-1===a.indexOf(p.countryId)){a.push(p.countryId);for(let t in e.areaSearch.dropDownData){let a=e.areaSearch.dropDownData[t];a.countryId==p.countryId&&("region"==a.module&&-1===o.indexOf(a.regionId)&&o.push(a.regionId),"city"==a.module&&-1===r.indexOf(a.city_id)&&r.push(a.city_id),"poi"==a.module&&-1===s.indexOf(a.uniqueId)&&s.push(a.uniqueId),"hotel"==a.module&&-1===i.indexOf(a.hotel_id)&&i.push(a.hotel_id))}}else if("region"==p.module&&-1===o.indexOf(p.regionId)){-1===a.indexOf(p.countryId)&&a.push(p.countryId),-1===o.indexOf(p.regionId)&&o.push(p.regionId);for(let t in e.areaSearch.dropDownData){let a=e.areaSearch.dropDownData[t];a.regionId==p.regionId&&("city"==a.module&&-1===r.indexOf(a.city_id)&&r.push(a.city_id),"poi"==a.module&&-1===s.indexOf(a.uniqueId)&&s.push(a.uniqueId),"hotel"==a.module&&-1===i.indexOf(a.hotel_id)&&i.push(a.hotel_id))}}
1else if("city"==p.module&&-1===r.indexOf(p.city_Id)){-1===a.indexOf(p.countryId)&&a.push(p.countryId),-1===o.indexOf(p.regionId)&&o.push(p.regionId),-1===r.indexOf(p.city_id)&&r.push(p.city_id);for(let t in e.areaSearch.dropDownData){let a=e.areaSearch.dropDownData[t];a.city_id==p.city_id&&("poi"==a.module&&-1===s.indexOf(a.uniqueId)&&s.push(a.uniqueId),"hotel"==a.module&&-1===i.indexOf(a.hotel_id)&&i.push(a.hotel_id))}}else"poi"==p.module&&-1===s.indexOf(p.uniqueId)?(-1===a.indexOf(p.countryId)&&a.push(p.countryId),-1===o.indexOf(p.regionId)&&o.push(p.regionId),-1===r.indexOf(p.locationId)&&r.push(p.locationId),-1===s.indexOf(p.uniqueId)&&s.push(p.uniqueId)):(-1===a.indexOf(p.countryId)&&a.push(p.countryId),-1===o.indexOf(p.regionId)&&o.push(p.regionId),-1===r.indexOf(p.city_id)&&r.push(p.city_id),-1===i.indexOf(p.hotel_id)&&i.push(p.hotel_id))}let w=e.areaSearch.dropDownData.filter(t=>{if("Destination Type"==e.areaSearch.sortResultsBy&&("all"==t.module&&(l||c||d||m||D)||"section-title"==t.type&&("country"==t.module&&l||"region"==t.module&&c||"city"==t.module&&d||"poi"==t.module&&D||"hotel"==t.module&&m)||"country"==t.module&&a.includes(t.countryId)||"region"==t.module&&o.includes(t.regionId)||"city"==t.module&&r.includes(t.city_id)||"poi"==t.module&&s.includes(t.poiId)||"hotel"==t.module&&i.includes(t.hotel_id))){if("section-title"!=t.type)if(e.areaSearch.locationFieldSearch){let e=new RegExp(n.value,"gi");t.mainText=t.mainText.replace(e,function(e){return`<b>${e}</b>`})}else{let e=new RegExp("\\b"+n.value,"gi");t.mainText=t.mainText.replace(e,function(e){return`<b>${e}</b>`})}return!0}if("Destination Type"!=e.areaSearch.sortResultsBy&&("all"==t.module&&(a.length||o.length||r.length||s.length||i.length)||"country"==t.module&&a.includes(t.countryId)||"region"==t.module&&o.includes(t.regionId)&&a.includes(t.countryId)||"city"==t.module&&r.includes(t.city_id)&&(o.includes(t.regionId)||a.includes(t.countryId))||"poi"==t.module&&s.includes(t.uniqueId)&&(r.includes(t.locationId)||o.includes(t.regionId)||a.includes(t.countryId))||"hotel"==t.module&&i.includes(t.hotel_id)&&(r.includes(t.city_id)||o.includes(t.regionId)||a.includes(t.countryId)))){if("section-title"!=t.type)if(e.areaSearch.locationFieldSearch){let e=new RegExp(n.value,"gi");t.mainText=t.mainText.replace(e,function(e){return`<b>${e}</b>`})}else{let e=new RegExp("\\b"+n.value,"gi");t.mainText=t.mainText.replace(e,function(e){return`<b>${e}</b>`})}return!0}}),g=0,b=0,f=0,y=0,_=0,x=0;for(let t in w){if("country"==w[t].module&&"section-title"==w[t].type){for(let e in w)"country"==w[e].module&&"section-title"!=w[e].type&&g++;w[t].resultCount=g}if("country"==w[t].module&&"section-level"==w[t].type){let e=0;for(let a in w){let o=w[t].countryId,n=w[a].countryId,r=w[a].mainText;"country"!=w[a].module&&(e=h(o,n,r,e)),w[t].resultCount=e}}if("region"==w[t].module&&"section-title"==w[t].type){for(let e in w)"region"==w[e].module&&"section-title"!=w[e].type&&b++;w[t].resultCount=b}if("region"==w[t].module&&"section-level"==w[t].type){let a=0;for(let o in w){let n=w[t].regionId,r=w[o].regionId,i=w[o].mainText;("hotel"==w[o].module||!e.areaSearch.disableCitySearch&&"city"==w[o].module||!e.areaSearch.disablePoiSearch&&"poi"==w[o].module)&&(a=h(n,r,i,a))}w[t].resultCount=a}if("city"==w[t].module&&"section-title"==w[t].type){for(let e in w)"city"==w[e].module&&"section-title"!=w[e].type&&f++;w[t].resultCount=f}if("city"==w[t].module&&"section-level"==w[t].type){let a=0;for(let o in w){let n=w[t].city_id,r=w[o].city_id,i=w[o].locationId,s=w[o].mainText;"hotel"==w[o].module&&(a=h(n,r,s,a)),e.areaSearch.disablePoiSearch||"poi"!=w[o].module||(a=h(n,i,s,a))}w[t].resultCount=a}if("poi"==w[t].module&&"section-title"==w[t].type){for(let e in w)"poi"==w[e].module&&"section-title"!=w[e].type&&y++;w[t].resultCount=y}if("hotel"==w[t].module&&"section-title"==w[t].type){for(let e in w)"hotel"==w[e].module&&"section-title"!=w[e].type&&_++;w[t].resultCount=_}if("all"==w[t].module)if("Destination Type"!=e.areaSearch.sortResultsBy){let e=0;for(let a in w){let o=null,n=null,r=w[a].mainText,i=w[a].type,s=w[a].module;"all"==s&&(o=0,a=1),"hotel"==s&&"section-level"!=i&&(o=w[t].hotel_id,a=w[a].hotel_id),"poi"==s&&"section-level"!=i&&(o=w[t].uniqueId,a=w[a].uniqueId),"city"==s&&"section-level"!=i&&(o=w[t].city_Id,a=w[a].city_Id),"region"==s&&"section-level"!=i&&(o=w[t].regionId,a=w[a].regionId),"country"==s&&"section-level"!=i&&(o=w[t].countryId,a=w[a].countryId),e=h(o,n,r,e)}w[t].resultCount=e}else for(let e in w)"section-title"!=w[e].type&&x++,w[t].resultCount=x}t.setSearchString(n.value),t.setResults(w)}
1,p=e=>{for(let t in e)e[t].mainText=e[t].mainText.replace(/(<([^>]+)>)/gi,"")},u=(e,t)=>{for(let a=0;a<e.length;a++)for(let o=a+2;o<=e.length;o++)t.push(e.slice(a,o).join(" "));return t},h=(t,a,o,r)=>{const i=o.replace(/(<([^>]+)>)/gi,"").toLowerCase().split(/\s+/);let s=o.replace(/(<([^>]+)>)/gi,"").toLowerCase().split(/\s+/);return s=u(i,s),t==a&&(e.areaSearch.locationFieldSearch&&o.toLowerCase().includes(n.value.toLowerCase())||s.some(e=>e.startsWith(n.value.toLowerCase())))&&r++,r};return(0,o.wB)(()=>t.customDropDownOpenState,a=>{a||(i.value=t.selected.mainText,t.selected.mainText&&t.selected.mainText.length>0?s.value=t.selected.mainText.replace(/(<([^>]+)>)/gi,""):s.value=e.areaSearch.labels.locationSearchPlaceholder)}),{placeHolder:s,isOpen:l,search:n,onChange:()=>{d(),document.getElementById("area_search__field_id").value.length>0?r.value=!0:r.value=!1},searchField:i,isTyping:r,clickPlaceholder:e=>{t.setDropDownOpenState(!0),(0,o.dY)(()=>{i.value.focus(),"ontouchstart"in document.documentElement&&window.innerWidth>768&&window.innerWidth<1200&&setTimeout(()=>{t.setDropDownOpenState(!0)},1e3)})},clickArrow:()=>{t.setDropDownOpenState(!1)},clickClear:()=>{n.value="",d(),r.value=!1},getSvg:c}}},H=(0,L.A)(P,[["render",function(e,t,a,n,r,i){return(0,o.uX)(),(0,o.CE)("div",q,[(0,o.Lk)("div",K,[t[6]||(t[6]=(0,o.Fv)('<div class="bm-as__icon search-icon"><svg aria-hidden="true" class="icon-wrapper bm-as-icon-search"><use href="#icon-bm-as-search"></use></svg><svg aria-hidden="true" class="icon-wrapper bm-as-icon-edit"><use href="#bm-as-icon-edit"></use></svg></div>',1)),(0,o.Lk)("button",{class:"placeholder","aria-hidden":n.isOpen,type:"button",onClick:t[0]||(t[0]=e=>n.clickPlaceholder(e))},(0,o.v_)(n.placeHolder),9,W),n.isOpen?((0,o.uX)(),(0,o.CE)("div",F,[(0,o.bo)((0,o.Lk)("input",{id:"area_search__field_id",class:"search__field",type:"search",placeholder:n.placeHolder,tabindex:"0",autocorrect:"off",autocapitalize:"none",spellcheck:"false",role:"searchbox","aria-autocomplete":"list",autocomplete:"off","aria-label":"Search","aria-controls":"select2-8b5h-results","aria-activedescendant":"select2-8b5h-result-cx0f-AK",onInput:t[1]||(t[1]=(...e)=>n.onChange&&n.onChange(...e)),"onUpdate:modelValue":t[2]||(t[2]=e=>n.search=e),ref:"searchField"},null,40,z),[[o.Jo,n.search]])])):(0,o.Q3)("v-if",!0),n.isOpen&&!n.isTyping?((0,o.uX)(),(0,o.CE)("div",{key:1,class:"bm-as__icon search-arrow",role:"button",onClick:t[3]||(t[3]=(...e)=>n.clickArrow&&n.clickArrow(...e))},[...t[5]||(t[5]=[(0,o.Lk)("svg",{"aria-hidden":"true",class:"icon-wrapper"},[(0,o.Lk)("use",{href:"#icon-arrow-top"})],-1)])])):(0,o.Q3)("v-if",!0),n.isOpen&&n.isTyping?((0,o.uX)(),(0,o.CE)("div",{key:2,class:"bm-as__icon close-icon",role:"button",onClick:t[4]||(t[4]=(...e)=>n.clickClear&&n.clickClear(...e))},[((0,o.uX)(),(0,o.CE)("svg",N,[(0,o.Lk)("use",{href:n.getSvg},null,8,X)]))])):(0,o.Q3)("v-if",!0)],512)])}]]),j={key:0,class:"custom-select--custom-label"},V={class:"main-text"},Q={key:0,class:"secondary-text"},U={class:"custom-select--options",ref:"optionsWrapper"},J=["data-booking-engine-hotel-id","data-value","data-id","data-be-open-in-same-tab","aria-label"],Y={key:0,class:"bm-as__icon"},G={"aria-hidden":"true",class:"icon-wrapper"},Z=["xlink:href"],ee={class:"custom-select-text"},te=["innerHTML"],ae={key:0,class:"secondary-text"},oe={key:0,class:"custom-select-counter-tag"},{isNullOrUndefined:ne}=E._0,re={name:"CustomSelectOption",props:{item:{type:Object,required:!0,default:()=>({})},areaSearch:{type:Object,required:!0,default:()=>({})},focusItem:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0},results:{type:Object,required:!0,default:()=>({})}},setup(e){const t=(0,o.KR)("custom-select--option"),a=(0,o.KR)("Destination Type"==e.areaSearch.sortResultsBy),n=(0,o.KR)(null),r=R(),i=(0,o.EW)(()=>`#asm-bm-dropdown-icon-${e.item.module}`),s=(0,o.EW)(()=>!(e.areaSearch.disableSearchIcons||a.value&&"section-title"!=e.item.type)),l=(0,o.EW)(()=>!e.areaSearch.hideSecondaryInfomation&&e.item.secondaryText?.length>0),c=(0,o.EW)(()=>!e.areaSearch.hideCounterPerLevel&&e.item.resultCount>0&&("section-title"==e.item.type||"section-level"==e.item.type)),d=(0,o.EW)(()=>{let o=t.value;if(!e.areaSearch.hideSecondaryInfomation&&e.item.secondaryText?.length>0&&(o=`${o} align-top`),e.areaSearch.helperText||(o=`${o} helper-disabled`),"section-title"==e.item.type&&(o="all"==e.item.module?`${o} first-level-section`:`${o} first-level-section section-title`),"internal-1"==e.item.section&&(o=`${o} internal-1`),"internal-2"==e.item.section&&(o=`${o} internal-2`),"section-level"==e.item.type)return`${o} first-level-section`;if(!a.value&&"section-level"!=e.item.type&&"region"==e.item.module){for(let t in e.results)if(t>0&&e.results[t].id==e.item.id&&"section-level"!=e.results[t-1].type)return`${o} second-level-section`;return`${o}`}return o}
1),p=(0,o.EW)(()=>ne(e.item.secondaryText)?`${e.item.mainText}`:`${e.item.mainText}, ${e.item.secondaryText}`);return(0,o.sV)(()=>{e.index!==e.focusItem||ne(r.getArrowKeys)||(0,o.dY)(()=>{n.value.focus()})}),{getClasses:d,handleSelected:e=>{r.setSelected(e),r.setDropDownOpenState(!1)},handleSelectedArrows:(e,t)=>{"Enter"===t.code&&(r.setSelected(e),r.setDropDownOpenState(!1))},getAriaLabel:p,showIcons:s,getSvgId:i,isSortedByDestinationType:a,showSecondaryText:l,showResultCount:c,selectOption:n}}},ie=(0,L.A)(re,[["render",function(e,t,a,n,r,i){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(n.getClasses),"data-booking-engine-hotel-id":a.item.booking_engine_hotel_id,"data-value":a.item.mainText,"data-id":a.item.id,"data-be-open-in-same-tab":a.item.be_open_in_same_tab,onClick:t[0]||(t[0]=e=>n.handleSelected(a.item)),onKeyup:t[1]||(t[1]=(0,o.D$)(e=>n.handleSelectedArrows(a.item,e),["prevent"])),role:"button",ref:"selectOption",tabindex:"0","aria-label":n.getAriaLabel},[n.showIcons?((0,o.uX)(),(0,o.CE)("div",Y,[((0,o.uX)(),(0,o.CE)("svg",G,[(0,o.Lk)("use",{"xlink:href":n.getSvgId},null,8,Z)]))])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",{class:(0,o.C4)(["custom-select-option-name",{"dropdown-option":n.isSortedByDestinationType&&"section-title"!=a.item.type}])},[(0,o.Lk)("div",ee,[(0,o.Lk)("span",{class:"main-text",innerHTML:a.item.mainText},null,8,te),n.showSecondaryText?((0,o.uX)(),(0,o.CE)("span",ae,(0,o.v_)(a.item.secondaryText),1)):(0,o.Q3)("v-if",!0)]),n.showResultCount?((0,o.uX)(),(0,o.CE)("div",oe,[(0,o.Lk)("span",null,(0,o.v_)(a.item.resultCount),1)])):(0,o.Q3)("v-if",!0)],2)],42,J)}]]),{i:se}=E.iW,{isNullOrUndefined:le}=E._0,ce={name:"CustomDropDown",components:{CustomSelectOption:ie},props:{areaSearch:{type:Object,required:!0,default:()=>({})},parentRefs:{type:Object,required:!0,default:()=>({})}},setup(e){const t=bm_ui_settings,a=(0,o.KR)(""),n=(0,o.KR)(""),r=(0,o.KR)(0),i=(0,o.KR)({}),{isMobile:s}=(0,M.t)(),l=R(),c=(0,o.EW)(()=>l.isDropDownOpen),d=(0,o.EW)(()=>l.getResults.length>0||0==l.getResults.length&&l.getSearchString.length>0?l.getResults:e.areaSearch.dropDownData),p=(0,o.EW)(()=>0===a.value.length?e.areaSearch.labels.searchDropDownDescription:a.value),u=(0,o.EW)(()=>{let t=e.areaSearch.labels.searchHint;return 0===n.value.length?t:n.value}),h=(0,o.EW)(()=>r.value),m=async()=>{await(0,o.dY)(()=>{const{container:a}=t,o=document.getElementById(a),n=i.value,r=e.parentRefs,l=r.getBoundingClientRect();let c=document.getElementById("bm-collapsed-horizontal-wrapper").contains(o),d=se();const p=n?.getBoundingClientRect().height,u=r?.getBoundingClientRect().top,h=document.getElementsByClassName("js-header-height")[0]?.getBoundingClientRect(),m=h?.height+h?.top,D=document.getElementById("header__wrapper-link")?.getBoundingClientRect(),w=D?.height+D?.top,g=u-((w>m?w:m)+2*parseInt(window.getComputedStyle(n).marginBlock,10)),b=n?.getBoundingClientRect().top,f=document.getElementsByClassName("header__items-wrapper")[0]?.getBoundingClientRect().height,y=window.innerHeight-f-b,_=parseInt(document.getElementById("bm-horizontal-hero")?.getBoundingClientRect().bottom)==window.innerHeight;let x=!1;p>=g&&(_||Math.floor(g)>Math.floor(y)?n.style.maxHeight=`${Math.floor(g)}px`:(p>=y&&(n.style.maxHeight=`${Math.floor(y)}px`),x=!0)),le(n)||(s.value?n.style.top=function(e){let t=parseInt(document.defaultView.getComputedStyle(e,"").getPropertyValue("height"))||0,a=parseInt(document.defaultView.getComputedStyle(e,"").getPropertyValue("padding-bottom"))||0;return t+(parseInt(document.defaultView.getComputedStyle(e,"").getPropertyValue("margin-bottom"))||0)+a}(r)+"px":c||d||x?(n.style.top=Math.floor(l.height)+"px",n.style.bottom=""):(n.style.bottom=Math.floor(l.height)+"px",n.style.top="auto",window.innerWidth<768&&(n.style.top="0px")))})};return(0,o.wB)(()=>l.arrowKeys,t=>{if(!le(t)){if(r.value>=0&&40===t.keyCode){if(e.areaSearch.dropDownData.length-1===r.value)return;r.value++}if(r.value>=0&&38===t.keyCode){if(0===r.value)return;r.value--}}}),(0,o.wB)(()=>l.customDropDownOpenState,e=>{e&&(m(),r.value=0,l.setArrowKeys(null))}),(0,o.wB)(()=>l.results,t=>{0===t.length?a.value=e.areaSearch.labels.noResultsFound:a.value=e.areaSearch.labels.searchDropDownDescription}),(0,o.sV)(()=>{window.addEventListener("resize",m),window.addEventListener("scroll",function(){s.value})}),{getSearchDescription:p,getSearchHint:u,getFocusItem:h,getResults:d,dropdown:i,isOpen:c}}},de=(0,L.A)(ce,[["render",function(e,t,a,n,r,i){const s=(0,o.g2)("custom-select-option");return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["dropdown-wrapper",{wide:"Destination Type"==a.areaSearch.sortResultsBy}]),ref:"dropdown"},[a.areaSearch.helperText?((0,o.uX)(),(0,o.CE)("div",j,[(0,o.Lk)("span",V,(0,o.v_)(n.getSearchDescription),1),n.getSearchHint&&a.areaSearch.locationFieldSearch?((0,o.uX)(),(0,o.CE)("span",Q,(0,o.v_)(n.getSearchHint),1)):(0,o.Q3)("v-if",!0)])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",U,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(n.getResults,(e,t)=>((0,o.uX)(),(0,o.Wv)(s,{key:e.id+n.getFocusItem,item:e,index:t,areaSearch:a.areaSearch,results:n.getResults,focusItem:n.getFocusItem},null,8,["item","index","areaSearch","results","focusItem"]))),128))],512)],2)),[[o.aG,n.isOpen]])}]]),{fireEvent:pe}
1=E.Wp,ue={name:"Search",components:{HiddenSelect:B,CustomSelect:H,CustomDropDown:de},setup(){const e=(0,o.KR)(function(){const e=bm_ui_settings.areaSearch,{hotels:t=[]}=bm_ui_settings.website,a={module:"country",type:"section-title",mainText:e.locales.country,id:"as-country-title-0"},o={module:"region",type:"section-title",mainText:e.locales.region,id:"as-region-title-0"},n={module:"city",type:"section-title",mainText:e.locales.city,id:"as-city-title-0"},r={module:"hotel",type:"section-title",mainText:e.locales.hotel,id:"as-hotel-title-0"},i={module:"poi",type:"section-title",mainText:e.locales.poi,id:"as-poi-title-0"},s=e.enableAllDestinationSearch?{module:"all",type:"section-title",mainText:e.locales.allDestinations,id:"as-all-0"}:"";let d=[];const u=e.sortResultsBy===l;switch(`${+e.disableCountrySearch}${+e.disableRegionSearch}${+e.disableCitySearch}${+e.disablePoiSearch}${+u}`){case"00000":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=S(e.dropDownData,m(e)),e.dropDownData=x(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e)),e.dropDownData=y(e.dropDownData,w(e));break;case"00001":d=[a,...h(e),o,...m(e),n,...D(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"00010":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=S(e.dropDownData,m(e)),e.dropDownData=x(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e));break;case"00011":d=[a,...h(e),o,...m(e),n,...D(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"00100":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=S(e.dropDownData,m(e)),e.dropDownData=b(e.dropDownData,p(t,e)),e.dropDownData=_(e.dropDownData,w(e));break;case"00101":d=[a,...h(e),o,...m(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"00110":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=S(e.dropDownData,m(e)),e.dropDownData=b(e.dropDownData,p(t,e));break;case"00111":d=[a,...h(e),o,...m(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"01000":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=v(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e)),e.dropDownData=y(e.dropDownData,w(e));break;case"01001":d=[a,...h(e),n,...D(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"01010":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=v(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e));break;case"01011":d=[a,...h(e),n,...D(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"01100":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=f(e.dropDownData,p(t,e)),e.dropDownData=(T=e.dropDownData,w(e).forEach(e=>{let t=T.findIndex(t=>c("country",e.countryId)==t.id);t>=0?T.splice(t+1,0,e):T.push(e)}),T);break;case"01101":d=[a,...h(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"01110":d=[...h(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=f(e.dropDownData,p(t,e));break;case"01111":d=[a,...h(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"10000":d=[...m(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=x(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e)),e.dropDownData=y(e.dropDownData,w(e));break;case"10001":d=[o,...m(e),n,...D(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"10010":d=[...m(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=x(e.dropDownData,D(e)),e.dropDownData=g(e.dropDownData,p(t,e));break;case"10011":d=[o,...m(e),n,...D(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"10100":d=[...m(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=b(e.dropDownData,p(t,e)),e.dropDownData=_(e.dropDownData,w(e));break;case"10101":d=[o,...m(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"10110":d=[...m(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=b(e.dropDownData,p(t,e));break;case"10111":d=[o,...m(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11000":d=[...D(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=g(e.dropDownData,p(t,e)),e.dropDownData=y(e.dropDownData,w(e));break;case"11001":d=[n,...D(e),i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11010":d=[...D(e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d],e.dropDownData=g(e.dropDownData,p(t,e));break;case"11011":d=[n,...D(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11100":d=[...w(e),...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11101":d=[i,...w(e),r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11110":d=[...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d];break;case"11111":d=[r,...p(t,e)],e.dropDownData=e.enableAllDestinationSearch?[s,...d]:[...d]}var T;if(!u)if(e.disableCountrySearch||e.disableRegionSearch||e.disableCitySearch){if(!e.disableCountrySearch||!e.disableRegionSearch||!e.disableCitySearch)for(let t in e.dropDownData)"hotel"!=e.dropDownData[t].module&&"poi"!=e.dropDownData[t].module||(e.dropDownData[t].section="internal-1")}else for(let t in e.dropDownData)"city"==e.dropDownData[t].module&&(e.dropDownData[t].section="internal-1"),"hotel"!=e.dropDownData[t].module&&"poi"!=e.dropDownData[t].module||(e.dropDownData[t].section="internal-2");let O=k(e.dropDownData,"hotel"),E=k(e.dropDownData,"poi");for(let t in e.dropDownData){if("all"==e.dropDownData[t].module){let a=e.disableCountrySearch?0:e.countries.length,o=e.disableRegionSearch?0:e.regions.length,n=e.disableCitySearch?0:e.cities.length,r=e.disablePoiSearch?0:E;e.dropDownData[t].resultCount=a+o+n+r+O,e.dropDownData[t].totalCount=a+o+n+r+O}if(e.sortResultsBy!=l){if("country"==e.dropDownData[t].module){let a=I(e,t,e.dropDownData[t].module);e.dropDownData[t].type="section-level",e.dropDownData[t].resultCount=a,e.dropDownData[t].totalCount=a}else if(e.disableCountrySearch&&"region"==e.dropDownData[t].module){let a=I(e,t,e.dropDownData[t].module);e.dropDownData[t].type="section-level",e.dropDownData[t].resultCount=a,e.dropDownData[t].totalCount=a}else if(e.disableCountrySearch&&e.disableRegionSearch&&"city"==e.dropDownData[t].module){let a=I(e,t,e.dropDownData[t].module);e.dropDownData[t].type="section-level",e.dropDownData[t].resultCount=a,e.dropDownData[t].totalCount=a}}else if("section-title"==e.dropDownData[t].type&&("country"==e.dropDownData[t].module||"region"==e.dropDownData[t].module||"city"==e.dropDownData[t].module||"poi"==e.dropDownData[t].module||"hotel"==e.dropDownData[t].module)){let a=C(e.dropDownData,e.dropDownData[t].module);e.dropDownData[t].resultCount=a,e.dropDownData[t].totalCount=a}}return e}()),t=(0,o.KR)(null),a=R();return(0,o.sV)(()=>{pe("bm::location-search::mounted"),window.addEventListener("keydown",function(e){["ArrowUp","ArrowDown"].indexOf(e.code)>-1&&a.isDropDownOpen&&e.preventDefault()},!1)}),{areaSearch:e,searchContainer:t,closeEvent:()=>{a.setDropDownOpenState(!1)},keyUpEvent:e=>{e.preventDefault(),a.setArrowKeys(e)}}}};var he=a(5072),me=a.n(he),De=a(7825),we=a.n(De),ge=a(7659),be=a.n(ge),fe=a(2675),ye=a.n(fe),_e=a(540),xe=a.n(_e),ve=a(1113),Se=a.n(ve),ke=a(5825),Ie=a.n(ke),Ce={};Ce.styleTagTransform=Se(),Ce.setAttributes=ye(),Ce.insert=be().bind(null,"head"),Ce.domAPI=we(),Ce.insertStyleElement=xe(),me()(Ie(),Ce),Ie()&&Ie().locals&&Ie().locals;const Te=(0,L.A)(ue,[["render",function(e,t,a,l,c,d){const p=(0,o.g2)("hidden-select"),u=(0,o.g2)("custom-select"),h=(0,o.g2)("custom-drop-down"),m=(0,o.gN)("click-outside"),D=(0,o.gN)("bm-search-key-arrow-up-down");return(0,o.bo)(((0,o.uX)(),(0,o.CE)("div",n,[(0,o.Lk)("div",r,[(0,o.Lk)("label",{for:l.areaSearch.locationSearch.id,class:"ada-select__label sr-only"},(0,o.v_)(l.areaSearch.labels.locationSearchPlaceholder),9,i),(0,o.Lk)("div",s,[(0,o.bF)(p,{configs:{dropDownData:l.areaSearch.dropDownData}},null,8,["configs"]),(0,o.bF)(u,{areaSearch:l.areaSearch},null,8,["areaSearch"])])]),(0,o.bF)(h,{areaSearch:l.areaSearch,parentRefs:l.searchContainer},null,8,["areaSearch","parentRefs"])])),[[m,l.closeEvent],[D,l.keyUpEvent]])}]])},5825(e,t,a){var o=a(9946);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,a(534).A)("cacef082",o,!1,{})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.