PageSourceSearch

https://madagascar-guide.com/_nuxt/D6pwwZQU.js

js madagascar-guide.com collected 2026-09-25 01:08:50 UTC 62,512 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C07IL0Dq.js","./HclGiUj8.js","./nCCoksD9.js","./Dh9m5nLe.js","./Db6s_BiP.js","./Bn6X1U7U.js","./DxlTkxJG.js","./1OEeLWa0.js","./DaZ_54tw.js","./kC-zEvGt.js","./CSuse29f.js","./CC3Zmshi.js","./Gkm4KLcZ.js","./CVs-MHk7.js","./1ocvnSqx.js","./De4t5934.js","./entry.DYohSx3s.css","./BVDVgCFm.js","./hePW80VL.js","./BFn98xMp.js","./DwKTSK8l.js","./C1pt6JUw.js","./D46PoaVB.js","./GMakBwY3.js","./MapPreview.CqfRhT6i.css","./rK2_jGqZ.js","./C_QLK-6a.js","./AvailForm.B4elHu4g.css","./DKEkcvE9.js","./HotelListSortPopup.Cap5xKoG.css","./HotelListFixedNavbar.B2Kbirl0.css","./BnsmirX-.js","./BZTH0FF-.js","./splide-core.DLeqbe-n.css","./B3LPSznH.js","./MapComponent.CFqTTT1X.css","./8OTQR4U5.js","./CwL0BxRu.js","./Byq5ddHk.js","./HotelListListing.CV5vat7Q.css","./B6YdDuy1.js","./HotelListList.D4ufilOt.css"])))=>i.map(i=>d[i]);
2import{n as e}from"./hePW80VL.js";import{B as t,Gt as n,I as r,K as i,N as a,Q as o,U as s,V as c,Vt as l,Wt as u,Y as d,b as f,bt as p,d as m,f as h,ft as g,ht as _,m as v,nt as y,p as b,pt as x,q as S,r as C,s as w,tt as T,u as E,v as D,x as O,y as k}from"./Dh9m5nLe.js";import{a as A,f as j,o as M}from"./Db6s_BiP.js";import{r as N}from"./DaZ_54tw.js";import{t as P}from"./HclGiUj8.js";import{i as F,n as I,t as L}from"./Bn6X1U7U.js";import{Ci as R,Ei as z,bi as B,fi as V,hi as ee,mi as H,t as U,xi as te}from"#entry";import{t as W}from"./BVDVgCFm.js";import{n as G}from"./D46PoaVB.js";import{n as K}from"./C1pt6JUw.js";import{t as q}from"./BFn98xMp.js";import{n as ne}from"./CxhuzaKI.js";import{n as re,r as ie,t as ae}from"./DWN0gFNg.js";import{t as J}from"./C-2VRIFK.js";import{t as oe}from"./B30pDz3g.js";import{t as se}from"./BzxvTfXr.js";var Y=F(`map`,{state:()=>({mapMobileInitialized:!1,mapDesktopInitialized:!1,mapOpened:!1,currentHotel:null,mapFeedHotels:[],disableMaxZoom:!1,disableMinZoom:!1,hotelsLoading:!0,sortParam:`Popularity`,orderParam:`DESC`}),getters:{getMapMobileInitialized:e=>e.mapMobileInitialized,getMapDesktopInitialized:e=>e.mapDesktopInitialized,getMapOpened:e=>e.mapOpened,getCurrentHotel:e=>e.currentHotel,getMapFeedHotels:e=>e.mapFeedHotels,getDisableMaxZoom:e=>e.disableMaxZoom,getDisableMinZoom:e=>e.disableMinZoom,getHotelsLoading:e=>
2e.hotelsLoading,getSortParam:e=>e.sortParam,getOrderParam:e=>e.orderParam},actions:{setMapMobileInitialized(e){this.mapMobileInitialized=e},setMapDesktopInitialized(e){this.mapDesktopInitialized=e},setMapOpened(e){this.mapOpened=e},setCurrentHotel(e){this.currentHotel=e},setMapFeedHotels(e){this.mapFeedHotels=e},setDisableMaxZoom(e){this.disableMaxZoom=e},setDisableMinZoom(e){this.disableMinZoom=e},setHotelsLoading(e){this.hotelsLoading=e},setSortParam(e){this.sortParam=e},setOrderParam(e){this.orderParam=e}}}),ce=F(`filters`,{state:()=>({filters:[],fullFiltersList:[],selectedFiltersCounter:0,singleOptionCounter:0,filterButtons:{more:``,less:``},filtersData:null,ready:!1,selectedFilters:{},filterParamsString:``,sortString:``,isFilterLoading:!1}),getters:{getFilters:e=>e.filters,getFullFiltersList:e=>e.fullFiltersList,getSelectedFiltersCounter:e=>e.selectedFiltersCounter,getSingleOptionCounter:e=>e.singleOptionCounter,getFilterButtons:e=>e.filterButtons,getFiltersData:e=>e.filtersData,isReady:e=>e.ready,getSelectedFilters:e=>e.selectedFilters,getFilterParamsString:e=>e.filterParamsString,getSortString:e=>e.sortString,getIsFilterLoading:e=>e.isFilterLoading},actions:{setFilters(e){this.filters=e},setFullFiltersList(e){this.fullFiltersList=e},setSelectedFiltersCounter(e){this.selectedFiltersCounter=e},setSingleOptionCounter(e){this.singleOptionCounter=e},setFilterButtons(e){this.filterButtons=e},setFiltersData(e){this.filtersData=e},setReady(e){this.ready=e},setSelectedFilters(e){this.selectedFilters={...e}},setFilterParamsString(e){this.filterParamsString=e},setSortString(e){this.sortString=e},setIsFilterLoading(e){this.isFilterLoading=e}}}),X={};function le(e){ue(e)}function ue(e){X.config={maxErrorRetries:3,errorRetryInterval:3e3,reqRetryInterval:1e3},X.availHotels={},X.roomsAvailTimeout=null,X.roomsResultTimeout=null,X.apiSiteUrl=e}function de(e,t){if(e(t),t&&t.status!==void 0&&t.avail_id!==void 0){let n=t.status;n!==`finish`&&n!==`error`&&setTimeout(()=>{fe(e,{avail_id:t.avail_id},X.apiSiteUrl)},X.config.reqRetryInterval)}}async function fe(e,t,n=X.apiSiteUrl){let r=L(),i=n+`/api/b_hotels_avail.json`,a={};a=t.avail_id?{avail_id:t.avail_id,_wsl:r.wsl}:t;try{de(e,await N(i,{method:`GET`,params:a,timeout:4e3}))}catch{setTimeout(()=>{fe(e,{},X.apiSiteUrl)},X.config.errorRetryInterval)}}var pe={class:`main-loader container js-main-loader`},me={class:`main-loader__text-wrapper js-wait-avail`},Z={class:`main-loader__title`},he=Object.assign(U(O({__name:`WaitAvail`,setup(e){A(e=>({v3d44bd85:p(f),v4582536a:p(h),v7de5823e:p(g),dcc79092:p(y),b8e19388:p(_),be5e8a10:p(b)}));let r=L(),i=H(),a=K(),o;function c(){return{type:r.availParams?.avail_type,object_id:r.availParams?.object_id,check_in:a.getCheckIn,check_out:a.getCheckOut,roomsconf:a.getRoomsConf,sess_id:r.mainInfo?.roomssessid,filter_type:r.availParams?.filter_type,filter_gds_id:r.availParams?.filter_gds_id,show_all:r.availParams?.show_all,last_avail_id:r.availParams?.last_avail_id,show_currency:r.hotelList?.ShowCurrency||r.mainInfo?.ShowCurrency,aid:r.mainInfo?.aid,subacc:r.mainInfo?.subacc,_wsl:r.wsl,langid:r.mainInfo?.langid}}function l(){let e=document.querySelector(`.js-wait-avail`);e&&(le(i.apiSiteUrl),u(),fe(t=>{d(t,e)},c(),i.apiSiteUrl))}function u(){let e=document.querySelector(`.js-wait-avail`),t=10;o=se(()=>{t<75?(e.querySelector(`.js-progress`).style.width=t+`%`,t+=15):clearInterval(o)},1e3)}function d(e,t){if(!e)return;let n=parseInt(e.progress),a=parseInt(e.count),s=parseInt(e.avail_id),c=e.status;if(c==`finish`&&(clearInterval(o),n=100,t.querySelector(`.js-progress`).style.width=n+`%`),q(a,I(`b_hotel_xsl.plu_search_hotels_loader`,r.data?.api_vocab),i.langcode)&&(t.querySelector(`.js-count`).innerText=q(a,I(`b_hotel_xsl.plu_search_hotels_loader`,r.data?.api_vocab),i.langcode)),c==`finish`){let t=window.location.href,n=window.location.hash.split(`&`)[0],r=``;if(n&&(t=t.replace(n,``)),t.indexOf(`?`)!=-1){let e=t.split(`?`)[0],n=t.split(`?`)[1].split(`&`),i=e;for(let e=0;e<n.length;e++)e==0&&(i+=`?`),n[e].indexOf(`hotel_from=`)!=-1&&(r=n[e].split(`=`)[1]),n[e].indexOf(`avail=`)==-1&&(i+=`&`+n[e]);t=i}
2t.indexOf(`?`)==-1?t+=`?`:t+=`&`,t+=`avail=`+s,r.length&&e.data.hotels&&(e.data.hotels.find(e=>e.id==r)||(t+=`&na_h_id=`+r)),n&&(t+=n),window.location=t;return}}t(()=>{l()});let f=E(()=>i.rootVariables?.fontWeight),h=E(()=>i.rootVariables?.colorMainTheme),g=E(()=>i.rootVariables?.paddingValue),_=E(()=>i.rootVariables?.borderRadius),y=E(()=>i.rootVariables?.backgroundColor),b=E(()=>i.rootVariables?.colorLightTheme);return(e,t)=>(s(),v(`div`,pe,[m(`div`,me,[m(`div`,Z,n((`replaceCity`in e?e.replaceCity:p(B))((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotel_xsl.not_avail_loader_phrase`),p(r).hotelList.city.NameForms)),1),t[0]||=m(`div`,{class:`main-loader__text-counter js-loader-text`},[m(`span`,{class:`js-count`})],-1),t[1]||=m(`div`,{class:`main-loader__progress`},[m(`span`,{class:`hl-progress js-progress`})],-1)])]))}}),[[`__scopeId`,`data-v-4f590e52`]]),{__name:`HotellistWaitAvail`}),ge=[`data-status`],Q={key:0,class:`expand-btn more-btn`},_e={key:1,class:`expand-btn less-btn`},ve=Object.assign(O({__name:`MoreLessComponent`,setup(e){let t=x(`more`),r=x(null),i=()=>{t.value=t.value==`more`?`less`:`more`,a(()=>{r.value&&t.value==`more`&&r.value.scrollIntoView({behavior:`smooth`,block:`start`})})};return(e,a)=>(s(),v(`div`,{ref_key:`componentRef`,ref:r},[m(`div`,{class:l({"show-more":p(t)===`more`,"show-less":p(t)===`less`})},[S(e.$slots,`default`),m(`div`,{class:`show-hide-hub-btn readmore-link show-more-btn`,"data-status":p(t),onClick:i},[p(t)==`more`?(s(),v(`span`,Q,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotellist_left_xsl.show_more`)),1)):b(``,!0),p(t)==`less`?(s(),v(`span`,_e,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotel_xsl.less`)),1)):b(``,!0)],8,ge)],2)],512))}}),{__name:`MoreLessComponent`}),ye={key:0,class:`how-to-get`},be={class:`how-to-get__container container`},xe={class:`hs how-to-get__title`},Se={class:`hs__top-panel`},Ce={class:`basic-title-h2`},we={class:`basic-description`},Te={class:`hs__container`},Ee={key:0,class:`transport-container`},De={class:`transport-icon`},Oe={class:`transport-options`},ke={class:`transport-options-title`},Ae={key:1,class:`transport-container`},je={class:`transport-icon`},Me={class:`transport-options`},Ne={class:`transport-options-title`},Pe=Object.assign(U(O({__name:`HowToGet`,setup(e){A(e=>({v3e64814f:p(l),f00a0c9a:p(u),v274924c1:p(d),v5ac53652:p(f),v8406def4:p(g)}));let t=L(),r=H(),a=t.hotelList?.filters?.AirportID?.item||[],o=t.hotelList?.filters?.LandmarkID?.item?.filter(e=>e.Url!==!0&&e.Url.includes(`-station`))||[],c=``;if(t.hotelList?.district_page){let e=t.hotelList?.filters?.DistrictID?.item.find(e=>e.selected)?.Name||``;e=`${e}, [CITY]`;let n=I(`ohotel_site.how_to_get_city`)?.replace(`[CITY]`,e)||``;c=B(n,t.hotelList?.city?.NameForms)}else c=B(I(`ohotel_site.how_to_get_city`),t.hotelList?.city?.NameForms);let l=E(()=>r.rootVariables?.backgroundColor),u=E(()=>r.rootVariables?.colorMainTheme),d=E(()=>r.rootVariables?.titleFont),f=E(()=>r.rootVariables?.boldFontWeight),g=E(()=>r.rootVariables?.mainFontWeight);return(e,t)=>{let r=W;return p(a).length>0||p(o).length>0?(s(),v(`section`,ye,[m(`div`,be,[m(`div`,xe,[m(`div`,Se,[m(`h2`,Ce,n(p(c)),1),m(`p`,we,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.list_types_transport`)),1)]),m(`div`,Te,[p(a).length?(s(),v(`div`,Ee,[m(`div`,De,[k(r,{name:`city/icon_plane`,class:`svg-icon svg-icon-transport`})]),m(`div`,Oe,[m(`div`,ke,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_footer_xsl.airports`)),1),(s(!0),v(C,null,i(p(a),e=>(s(),v(`div`,{key:e.IATA_code,class:`transport-options-option`},n(e.Name)+` (`+n(e.IATA_code)+`) `,1))),128))])])):b(``,!0),p(o).length?(s(),v(`div`,Ae,[m(`div`,je,[k(r,{name:`city/icon_train`,class:`svg-icon svg-icon-transport`})]),m(`div`,Me,[m(`div`,Ne,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotel_xsl.loc_train_station`)),1),p(o).length>10?(s(),h(ve,{key:0},{default:T(()=>[(s(!0),v(C,null,i(p(o),e=>(s(),v(`div`,{key:e.Name,class:`transport-options-option`},n(e.Name),1))),128))]),_:1})):(s(!0),v(C,{key:1},i(p(o),e=>(s(),v(`div`,{key:e.Name,class:`transport-options-option`},n(e.Name),1))),128))])])):b(``,!0)])])])])):b(``,!0)}}}),[[`__scopeId`,`data-v-86e10237`]]),{__name:`HotellistHowToGet`}),Fe={class:`hl-seo__container js-hl-seo-container`},Ie={class:`container`},Le={class:`js-hl-seo-content hl-seo__content new-seo__content`},Re={class:`discover-title`},ze={class:`hl-seo__article`},Be={class:`hl-seo__article-desc`},Ve={class:`basic-title seo-article-title`},He={class:`hl-seo__article-text`},Ue=[`innerHTML`],We={class:`hl-seo__btn new-seo__btn white-shadow-bg js-hl-seo-readmore readmore-link`,"data-status":`more`},Ge={class:`js-expand-basic-btn expand-btn more-btn`},Ke={class:`js-expand-basic-btn expand-btn less-btn`},qe=Object.assign(U(O({__name:`SeoText`,setup(e){A(e=>({v7c35c570:p(l)}));let r=L(),a=H(),o=E(()=>a.page==`region_hub_page`?I(`ohotel_site.discover_region`):a.page==`region_hub_page`?I(`ohotel_site.discover_country`):I(`ohotel_site.discover_city`)),c=E(()=>{let e=I(`ohotel_site.explore_hotels_city`);return a.page==`region_hub_page`?(e=e.replace(`[CITY`,`[REGION`),e=R(e,r.regionHubPage)):a.page==`country_hub_page`?(e=e.replace(`[CITY`,`[COUNTRY`),e=te(e,r.countryHubPage.country.NameForms)):e=B(e,r.hotelList.city.NameForms),e});t(()=>{P(()=>import(`./JGJKNS2c.js`),[],import.meta.url)});let l=E(()=>a.rootVariables?.mainFontWeight);return(e,t)=>(s(),v(`div`,Fe,[m(`div`,Ie,[m(`div`,Le,[m(`div`,Re,n(p(o)),1),m(`div`,ze,[m(`div`,Be,[m(`h2`,Ve,n(p(c)),1),m(`div`,He,[(s(!0),v(C,null,i(p(r).textPpmd.guide.item,(e,t)=>(s(),v(`p`,{key:t,class:`article-part js-article-part`,innerHTML:e.paragraph},null,8,Ue))),128))])])])]),m(`div`,We,[m(`span`,Ge,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotellist_left_xsl.show_more`)),1
2),m(`span`,Ke,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotel_xsl.less`)),1)])])]))}}),[[`__scopeId`,`data-v-e04fec21`]]),{__name:`SeoText`}),Je={class:`weather-info container`},Ye={class:`hs weather-info__title`},Xe={class:`hs__top-panel`},Ze={class:`h-list__weather-content`},Qe={class:`h-list__weather-title basic-title`},$e={class:`h-list__weather-desc basic-description`},et={class:`weather-info__content`},tt={class:`weather-info__chart js-weather-tab-content`},nt={class:`weather-info__chart-graph`},rt={class:`weather-info__chart-summary`},it={class:`average-max average-desc`},at={class:`average-min average-desc`},ot={class:`weather-info__chart-months`},st={class:`month-temps`},ct={class:`month-max month-info`},lt={class:`number`},ut={class:`month-min month-info`},dt={class:`number`},ft={class:`month-name`},pt={class:`weather-info__chart-highlights`},mt={key:0,class:`highlight hot`},ht={class:`highlight-title`},gt={class:`highlight-number`},_t={class:`highlight-subtitle`},vt={key:1,class:`highlight cold`},yt={class:`highlight-title`},bt={class:`highlight-number`},xt={class:`highlight-subtitle`},St={class:`highlight-title`},Ct={class:`highlight-number`},wt={class:`highlight-subtitle`},Tt={class:`highlight-title`},Et={class:`highlight-number`},Dt={class:`highlight-subtitle`},Ot={class:`highlight-title`},kt={class:`highlight-number`},At={class:`highlight-subtitle`},jt={key:5,class:`highlight hot`},Mt={class:`highlight-title`},Nt={class:`highlight-subtitle`},Pt={key:6,class:`highlight cold`},Ft={class:`highlight-title`},It={class:`highlight-subtitle`},Lt={key:0,class:`weather-info_guide`},Rt=Object.assign(U(O({__name:`WeatherInfo`,setup(e){A(e=>({f2bb323e:p(M),v508119e1:p(N),f2fa9e98:p(P)}));let t=L(),r=H(),a=t?.hotelList?.city?.NameForms,o=t?.hotelList?.weather_info,c=E(()=>{let e=o?.hottest_month_max_temperature,t=o?.coldest_month_min_temperature;return e&&t?200/(e-t):0}),d=Array.isArray(o?.unit)?o?.unit[0]:o?.unit||`°C`,f=Array.isArray(o?.coldest_month_min_temperature)?o?.coldest_month_min_temperature[0]:o?.coldest_month_min_temperature||0,h=Array.isArray(o?.hottest_month_max_temperature)?o?.hottest_month_max_temperature[0]:o?.hottest_month_max_temperature||0,g=o?.sunny_days_per_year&&o?.snow_days_per_year&&o?.rainy_days_per_year,_=Array.isArray(o?.hottest_month)?o?.hottest_month[0]:o?.hottest_month||``,y=Array.isArray(o?.coldest_month)?o?.coldest_month[0]:o?.coldest_month||``,x=Array.isArray(o?.sunny_days_per_year)?o?.sunny_days_per_year[0]:o?.sunny_days_per_year||``,S=Array.isArray(o?.rainy_days_per_year)?o?.rainy_days_per_year[0]:o?.rainy_days_per_year||``,w=Array.isArray(o?.snow_days_per_year)?o?.snow_days_per_year[0]:o?.snow_days_per_year||``,T=Array.isArray(o?.high_season)?o?.high_season[0]:o?.high_season||``,O=Array.isArray(o?.low_season)?o?.low_season[0]:o?.low_season||``,j=Array.isArray(o?.weather_guide)?o?.weather_guide[0]:o?.weather_guide||``,M=E(()=>r.rootVariables?.backgroundColor),N=E(()=>r.rootVariables?.colorMainTheme),P=E(()=>r.rootVariables?.mainFontWeight);return(e,t)=>{let r=W;return s(),v(`section`,Je,[m(`div`,Ye,[m(`div`,Xe,[m(`div`,Ze,[m(`h2`,Qe,n((`replaceCity`in e?e.replaceCity:p(B))((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.weather_in_city`),p(a))),1),m(`p`,$e,n((`replaceCity`in e?e.replaceCity:p(B))((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.weather_in_city_desc`),p(a))),1)])]),t[0]||=m(`div`,{class:`hs__container`},null,-1)]),m(`div`,et,[m(`div`,tt,[m(`div`,nt,[m(`div`,rt,[m(`div`,it,[t[1]||=m(`div`,{class:`average-color`},null,-1),D(n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.average_month_max_temp`)),1)]),m(`div`,at,[t[2]||=m(`div`,{class:`average-color`},null,-1),D(n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.average_month_min_temp`)),1)])]),m(`div`,ot,[(s(!0),v(C,null,i(p(o)?.month,e=>(s(),v(`div`,{key:e.id,class:`month-block`},[m(`div`,st,[m(`div`,ct,[m(`div`,lt,n(e.avg_max_temperature)+` `+n(p(d)),1),m(`div`,{class:`column`,style:u({height:(e.avg_max_temperature-p(f))*p(c)+`px`})},null,4)]),m(`div`,ut,[m(`div`,dt,n(e.avg_min_temperature)+` `+n(p(d)),1),m(`div`,{class:`column`,style:u({height:(e.avg_min_temperature-p(f))*p(c)+`px`})},null,4)])]),m(`div`,ft,n(e.month_name),1)]))),128))])]),m(`div`,pt,[p(_)?(s(),v(`div`,mt,[m(`div`,ht,[k(r,{name:`city/ic_max_temp`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.hottest_month`)),1)]),m(`div`,gt,n(p(h))+` `+n(p(d)),1),m(`div`,_t,n(p(_)),1)])):b(``,!0),p(y)?(s(),v(`div`,vt,[m(`div`,yt,[k(r,{name:`city/ic_min_temp`,class:`svg-icon svg-icon-min`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.coldest_month`)),1)]),m(`div`,bt,n(p(f))+` `+n(p(d)),1),m(`div`,xt,n(p(y)),1)])):b(``,!0),p(x)?(s(),v(`div`,{key:2,class:l([`highlight hot`,{narrow:p(g)}])}
2,[m(`div`,St,[k(r,{name:`city/ic_sunny`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.sunny_days`)),1)]),m(`div`,Ct,n(p(x)),1),m(`div`,wt,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.days_per_year`)),1)],2)):b(``,!0),p(S)?(s(),v(`div`,{key:3,class:l([`highlight cold`,{narrow:p(g)}])},[m(`div`,Tt,[k(r,{name:`city/ic_rain`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.rainy_days`)),1)]),m(`div`,Et,n(p(S)),1),m(`div`,Dt,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.days_per_year`)),1)],2)):b(``,!0),p(w)?(s(),v(`div`,{key:4,class:l([`highlight cold`,{narrow:p(g)}])},[m(`div`,Ot,[k(r,{name:`city/ic_snow`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.snow_days`)),1)]),m(`div`,kt,n(p(w)),1),m(`div`,At,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.days_per_year`)),1)],2)):b(``,!0),p(T)?(s(),v(`div`,jt,[m(`div`,Mt,[k(r,{name:`city/ic_high_season`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.high_season`)),1)]),m(`div`,Nt,n(p(T)),1)])):b(``,!0),p(O)?(s(),v(`div`,Pt,[m(`div`,Ft,[k(r,{name:`city/ic_low_season`,class:`svg-icon svg-icon-max`}),D(` `+n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.low_season`)),1)]),m(`div`,It,n(p(O)),1)])):b(``,!0)])])]),p(j)?(s(),v(`div`,Lt,n(p(j)),1)):b(``,!0)])}}}),[[`__scopeId`,`data-v-7d82dfc8`]]),{__name:`HotellistWeatherInfo`}),zt={class:`filter-item__star-panel`},Bt={key:0,class:`filter-item__other-options`},Vt={__name:`FiltersFilterStarItemText`,props:{"item-id":String,rating:String,"star-number":Number},setup(e){let t=e,r=E(()=>Number(t.itemId===`0`?1:t.itemId));return(e,t)=>{let i=W;return s(),v(`div`,zt,[D(n(p(r))+` `,1),k(i,{name:`city/bos_star`,class:`svg-icon filter-item__icon-star svg-bos_s`}),p(r)===1?(s(),v(`span`,Bt,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotellist_left_xsl.norating_filters_new`)),1)):b(``,!0)])}}},Ht=[`for`],Ut={class:`filter-item__text`},Wt={__name:`FiltersFilterItemLabel`,props:{item:Object,type:String},setup(e){let t=e,r=E(()=>Number(t.item.ID===`0`?1:t.item.ID)),i=E(()=>{switch(t.item.ID){case`0`:return I(`b_hotellist_left_xsl.acctype_hotels`)||``;case`1`:return I(`b_hotellist_left_xsl.acctype_apartments`)||``;case`2`:return I(`b_hotellist_left_xsl.acctype_villas`)||``;case`vr`:return I(`b_hotellist_left_xsl.vacation_rentals`)||``;default:return I(`b_hotellist_left_xsl.acctype_other`)||``}});return(t,a)=>(s(),v(`label`,{for:`f-${e.type}-${e.item.ID}`,class:`filter-item__label`},[a[0]||=m(`span`,{class:`filter-item__button-checkbox`},null,-1),m(`span`,Ut,[e.type===`Stars`?(s(),h(Vt,{key:0,"item-id":e.item.ID,"star-number":p(r)},null,8,[`item-id`,`star-number`])):e.type===`TypeID`?(s(),v(C,{key:1},[D(n(p(i)),1)],64)):(s(),v(C,{key:2},[D(n(e.item.Name),1)],64))])],8,Ht))}},Gt=[`data-visible`],Kt=[`name`,`value`,`id`],qt=[`href`],Jt={key:1,class:`filter-item__container`},Yt={__name:`FiltersFilterItem`,props:{item:Object,type:String,param:String,rating:String,desktop:Boolean},setup(e){let t=e,n=E(()=>t.item.hiddenItem?`hidden-item`:``);return(t,r)=>(s(),v(`div`,{class:l([`filter-item`,{"is-selected":e.item.selected,"js-hidden-filter":e.item.hiddenFilter}]),"data-visible":p(n)},[y(m(`input`,{type:`checkbox`,name:e.param,value:e.item.ID,id:`f-${e.type}-${e.item.ID}`,"onUpdate:modelValue":r[0]||=t=>e.item.selected=t,ref:`checkboxInput`,class:`filter-item__checkbox`},null,8,Kt),[[M,e.item.selected]]),e.item.link?(s(),v(`a`,{key:0,href:e.item.link,class:`filter-item__container`},[k(Wt,{item:e.item,type:e.type},null,8,[`item`,`type`])],8,qt)):(s(),v(`span`,Jt,[k(Wt,{item:e.item,type:e.type},null,8,[`item`,`type`])]))],10,Gt))}},Xt={key:0,class:`hl-fs-item__block`},Zt={__name:`FiltersFilterSection`,props:{type:String,desktop:Boolean,data:Object,filterButtons:Object},setup(e){let t=e,n=g({closed:!1,countLimitItem:`5`}),r=E(()=>{let e=[];t.data?.item?.length>0&&(e=t.data.item.filter(e=>e.Count>0||e.selected));let n=t.type===`Name`||e.length>0;return!t.data?.hiddenSection&&(t.type===`Name`||t.data?.item)&&n});return(t,a)=>p(r)?(s(),v(C,{key:0},[p(n).closed?b(``,!0):(s(!0),v(C,{key:0},i(e.data.item,(t,n)=>(s(),v(`div`,{class:l([`hl-fs-item`,{"first-type":n==0&&e.type!==`SubTypeID`}]),key:`${n}-${t.ID}`},[t.Count>0||t.selected?(s(),v(`div`,Xt,[t.SubTypeID?(s(),h(Yt,{key:0,item:t,param:`st`,type:`SubTypeID`},null,8,[`item`])):(s(),h(Yt,{key:1,item:t,param:e.data.attributes.param,type:e.type},null,8,[`item`,`param`,`type`]))])):b(``,!0)],2))),128))],64)):b(``,!0)}},Qt={key:0,class:`filters-description`},$t={key:1,class:`filters-panel`},en=Object.assign(U(O({__name:`FiltersForm`,props:{noBottomMargin:{type:Boolean,default:!1}},setup(e){A(e=>({v4ab3b199:p(P),v03c2078a:p(F)}));let t=ce(),r=L(),a=H(),o=E(()=>t.getSelectedFiltersCounter),c=x(0),u=x(null),d=x([]);r.hotelList?.enable_districts_pages;let f=null,g=e=>{if(e){let n=[`Stars`,`TypeID`,`SubTypeID`,`DistrictID`],r={};
2n.forEach(t=>{if(e[t]){let n=e[t];n.type=t,n.selectedCount=0,n.isSingle=n.item?.length<2||!n.item,n.item&&n.item.forEach(e=>{e.selected&&n.selectedCount++}),r[t]=n}}),d.value=Object.values(r),t.setFilters(r)}};g(r.hotelList?.filters);let _=()=>{y()},y=()=>{if(!u.value)return;let e=new FormData(u.value),n={};for(let[t,r]of e.entries())r&&(n[t]||(n[t]=[]),n[t].push(r.toString()));try{let e=Object.values(n).flat().length;t.setSelectedFiltersCounter(e),t.setSelectedFilters(n)}catch(e){console.error(`Error updating store:`,e)}S()},S=async()=>{f&&f.abort(),f=new AbortController;try{let e=T(),t=r.hotelList?.city?.ID||``,n=r.hotelList?.city?.URL||``,[i,a]=await Promise.all([D(e),k(t,n,e)]);O(i),M(a)}catch(e){e.name!==`AbortError`&&console.error(`Error loading filters:`,e)}},w=()=>{if(!(a.page===`district_page`||r.hotelList?.district_page))return null;let e=d.value.find(e=>e.type===`DistrictID`),t=e?.item?.find(e=>e.selected);return t?{key:e.attributes?.param||`district_id`,value:String(t.ID)}:null},T=()=>{let e=new URLSearchParams,n=t.getSelectedFilters;Object.keys(n).length>0&&Object.keys(n).forEach(t=>{let r=n[t];r&&r.length>0&&r.forEach(n=>{e.append(t,n)})});let r=w();return r&&!e.has(r.key)&&e.append(r.key,r.value),t.setFilterParamsString(e.toString()),e.toString()},D=async e=>{let t=r.hotelList?.city?.ID||``,n=`${a.apiSiteUrl}/api-json/?hotellist_filters=1&page=hotellist_filters&CityID=${t}&${e}`;a.langid&&(n+=`&langID=${a.langid}`);try{return await N(n,{signal:f?.signal})}catch(e){e.name!==`AbortError`&&console.error(`API request failed:`,e)}},O=e=>{e?.hotellist?.filters&&g(e.hotellist.filters)},k=async(e,t,n)=>{let r=`${a.apiSiteUrl}/api-json/?page=hotellist_lite_json&CityID=${e}&wait=1&${n}`;a.langid&&(r+=`&langID=${a.langid}`);try{return await N(r,{signal:f?.signal})}catch(e){e.name!==`AbortError`&&console.error(`API request failed:`,e)}},M=e=>{e?.WTS?.hotellist?.hotels&&r.setHotelsList(e.WTS.hotellist.hotels)},P=E(()=>a.rootVariables?.colorLightTheme),F=E(()=>a.rootVariables?.colorMainTheme),R=e;return(e,t)=>(s(),v(`div`,{class:l([`hotellist-filters`,{"no-bottom-margin":R.noBottomMargin}])},[m(`form`,{ref_key:`form`,ref:u,method:`post`,class:`vue-filtering filters-block`,onSubmit:t[0]||=j(()=>{},[`prevent`]),onChange:j(_,[`prevent`])},[p(o)>0||p(c)!==p(d).length?(s(),v(`div`,Qt,[m(`span`,null,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotellist_left_xsl.filter_by`,p(r).data?.api_vocab))+`:`,1)])):b(``,!0),p(o)>0||p(c)!==p(d).length?(s(),v(`div`,$t,[(s(!0),v(C,null,i(p(d),(e,t)=>(s(),v(C,{key:`${t}-section-${e.type}`},[e.type!=`DistrictID`&&(!e.isSingle||e.selectedCount>0)?(s(),h(Zt,{key:0,type:e.type,data:e,"filter-buttons":{}},null,8,[`type`,`data`])):b(``,!0)],64))),128))])):b(``,!0)],544)],2))}}),[[`__scopeId`,`data-v-b6e697bf`]]),{__name:`FiltersForm`}),tn={class:`filter-item__stars-row`},nn={class:`filter-item__stars`},rn={class:`filter-item__star-label`},an={key:0,class:`filter-item__star-count`},on={key:0,class:`filter-item__other-options`},sn=U({__name:`FiltersListingFilterStarItemText`,props:{"item-id":String,rating:String,"star-number":Number,mapSection:Boolean,count:[Number,String]},setup(e){let t=e,r=E(()=>Number(t.itemId===`0`?1:t.itemId)),a=E(()=>I(`b_title_xsl.stared_hotels`).replace(`[STAR]`,r.value.toString()));return(o,c)=>{let u=W;return s(),v(`div`,{class:l([`filter-item__star-panel`,{"filter-item__star-panel--map":t.mapSection}])},[t.mapSection?(s(),v(C,{key:0},[m(`div`,tn,[m(`div`,nn,[(s(!0),v(C,null,i(r.value,e=>(s(),h(u,{key:`f`+e,class:`filter-item__icon-star svg-bos_l svg-icon`,name:`map/filled-star`}))),128)),(s(!0),v(C,null,i(5-r.value,e=>(s(),h(u,{key:`e`+e,class:`filter-item__icon-star svg-bos_l svg-icon`,name:`map/outline-star`}))),128))]),c[0]||=m(`span`,{class:`filter-item__button-checkbox`},null,-1)]),m(`span`,rn,[D(n(a.value),1),e.count?(s(),v(`span`,an,` (`+n(e.count)+`)`,1)):b(``,!0)])],64)):(s(),v(C,{key:1},[D(n(r.value)+` `,1),k(u,{class:`filter-item__icon-star svg-bos_s svg-icon`,name:`city/bos_star`}),r.value===1?(s(),v(`span`,on,n(e.rating),1)):b(``,!0)],64))],2)}}},[[`__scopeId`,`data-v-59166ad2`]]),cn={class:`filter-item__rating-data`},ln={__name:`FiltersListingFilterRatingItemText`,props:{item:Object},setup(e){let t=e;return(e,r)=>(s(),v(`span`,cn,[m(`span`,{class:l([`filter-item__rating-level`,t.item?.classLabel])},n(t.item?.label),3),m(`span`,null,n(t.item?.Name),1)]))}},un=[`for`],dn={key:0,class:`filter-item__button-checkbox`},fn={class:`filter-item__text`}
2,pn={key:0,class:`filter-item__amenity-panel`},mn={class:`filter-item__amenity-row`},hn=[`src`],gn={class:`filter-item__amenity-label`},_n={class:`filter-item__amenity-name`},vn={class:`filter-item__count`},yn={key:0,class:`filter-item__count`},bn={class:`filter-item__count`},xn={key:0,class:`filter-item__average-label`},Sn={class:`filter-item__count`},Cn={class:`filter-item__count`},wn={class:`filter-item__count`},Tn={class:`filter-item__count`},En={class:`filter-item__text-name`},Dn={class:`filter-item__count`},On={__name:`FiltersListingFilterItemLabel`,props:{item:Object,type:String,mapSection:Boolean},setup(e){let t=e,r=L(),i=E(()=>Number(t.item.ID===`0`?1:t.item.ID)),a=E(()=>{let e=``;return e=t.item.ID===`0`?I(`b_hotellist_left_xsl.acctype_hotels`)||``:t.item.ID===`1`?I(`b_hotellist_left_xsl.acctype_apartments`)||``:t.item.ID===`2`?I(`b_hotellist_left_xsl.acctype_villas`)||``:t.item.ID===`vr`?I(`b_hotellist_left_xsl.vacation_rentals`)||``:I(`b_hotellist_left_xsl.acctype_other`)||``,e}),o=(e,t)=>{let n=r.mainInfo.Currencies?.find(e=>e.attributes?.selected===`selected`)?.Symbol,i=r.mainInfo.Currencies?.find(e=>e.attributes?.selected===`selected`)?.ExchangeRate,a=10**Math.ceil(Math.log(1/i)/Math.log(10));if(e)switch(e.ID){case`0`:return t.under.replace(`[CUR]`,n).replace(`[PRICE]`,Math.floor(50/i/a)*a);case`4`:return t.over.replace(`[CUR]`,n).replace(`[PRICE]`,Math.floor(200/i/a)*a);default:let r=Math.floor(Number(e.ID)*50/i/a)*a,o=Math.floor((Number(e.ID)+1)*50/i/a)*a;return t.from.replace(`[CUR]`,n).replace(`[FROM]`,r).replace(`[TO]`,o)}},c=E(()=>{let e={under:I(`b_city_left_xsl.under`),over:I(`b_city_left_xsl.over`),from:I(`b_city_left_xsl.from`)};return o(t.item,e)}),l=E(()=>(t.type===`AmenityID`||t.type===`FacilityID`)&&t.mapSection),u=E(()=>`/images/filters-amenities/filter_amenity_${t.item.TypeID||`0`}.svg`),d=e=>{e.target.src=`/images/filters-amenities/filter_amenity_0.svg`};return(r,o)=>(s(),v(`label`,{for:`f-${e.type}-${t.item.ID}`,class:`filter-item__label`},[e.type!==`Stars`&&!p(l)?(s(),v(`span`,dn)):b(``,!0),m(`span`,fn,[p(l)?(s(),v(`span`,pn,[m(`span`,mn,[m(`img`,{src:p(u),class:`filter-item__amenity-icon`,width:`24`,height:`24`,alt:``,onError:d},null,40,hn),o[0]||=m(`span`,{class:`filter-item__button-checkbox`},null,-1)]),m(`span`,gn,[m(`span`,_n,n(t.item.Name),1),m(`span`,vn,n(t.item.Count),1)])])):e.type===`Stars`?(s(),v(C,{key:1},[k(sn,{"item-id":t.item.ID,rating:t.item.rating,"star-number":p(i),"map-section":t.mapSection,count:t.item.Count},null,8,[`item-id`,`rating`,`star-number`,`map-section`,`count`]),e.type===`Stars`?b(``,!0):(s(),v(`span`,yn,n(t.item.Count),1))],64)):e.type===`Rating`?(s(),v(C,{key:2},[k(ln,{item:t.item},null,8,[`item`]),m(`span`,bn,n(t.item.Count),1)],64)):e.type===`Popular`&&t.item.type===`Rating`?(s(),v(C,{key:3},[t.item.guest?(s(),v(`span`,xn,n(t.item.guest)+`:`,1)):b(``,!0),k(ln,{item:t.item},null,8,[`item`]),m(`span`,Sn,n(t.item.Count),1)],64)):e.type===`AirportID`&&t.item.IATA_code!=``?(s(),v(C,{key:4},[m(`span`,null,n(t.item.Name)+` (`+n(t.item.IATA_code)+`) `,1),m(`span`,Cn,n(t.item.Count),1)],64)):e.type===`TypeID`&&t.item.Name===!0?(s(),v(C,{key:5},[m(`span`,null,n(p(a)),1),m(`span`,wn,n(t.item.Count),1)],64)):e.type===`Price`?(s(),v(C,{key:6},[m(`span`,null,n(p(c)),1),m(`span`,Tn,n(t.item.Count),1)],64)):(s(),v(C,{key:7},[m(`span`,En,n(t.item.Name),1),m(`span`,Dn,n(t.item.Count),1)],64))])],8,un))}},kn=[`data-visible`],An=[`name`,`value`,`id`,`checked`],jn=[`href`],$={__name:`FiltersListingFilterItem`,props:{item:Object,type:String,param:String,rating:String,desktop:Boolean,showThisItem:Boolean,mapSection:Boolean},setup(e){let t=H(),n=e,r=x(null),i=x(t.getIsMobile),a=x(n.item.selected);o(()=>n.item.selected,e=>{a.value=e});let c=()=>{let e=r.value,t=!a.value;a.value=t,n.mapSection||(n.item.selected=t),e&&(e.checked=t,e.dispatchEvent(new Event(`change`,{bubbles:!0}))),n.type,n.item.Name,n.item.ID,i.value&&G(`setManualChange`)},u=E(()=>n.item.hiddenItem?`hidden-item`:``);return(t,i)=>(s(),v(`div`,{class:l([`filter-item`,{"is-selected":p(a),"js-hidden-filter":e.item.hiddenFilter,hidden:!e.showThisItem}]),"data-visible":p(u)},[m(`input`,{type:`checkbox`,name:e.param,value:e.item.ID,id:`f-${e.type}-${e.item.ID}`,checked:p(a),ref_key:`checkboxInput`,ref:r,class:`filter-item__checkbox`},null,8,An),e.item.link?(s(),v(`a`,{key:0,href:e.item.link,class:`filter-item__container`,onClick:j(c,[`prevent`])},[k(On,{item:e.item,type:e.type},null,8,[`item`,`type`])],8,jn)):(s(),v(`span`,{key:1,class:`filter-item__container`,onClick:j(c,[`prevent`])},[k(On,{item:e.item,type:e.type,mapSection:n.mapSection},null,8,[`item`,`type`,`mapSection`])]))],10,kn))}},Mn={class:`hl-filter-section__title-text`},Nn={key:0,class:`hl-filter-section__list-container`},Pn={key:0}
2,Fn={key:0},In={key:0},Ln={key:0,class:`hl-fs-item__block`},Rn=U({__name:`FiltersListingFilterSection`,props:{type:String,desktop:Boolean,data:Object,filterButtons:Object,mapSection:Boolean,onlySelected:Boolean,excludeSelected:Boolean},setup(e){A(e=>({v63df7d02:p(f)}));let t=H(),r=e,a=g({closed:!1,countLimitItem:`5`}),o=E(()=>{if(!r.data?.item||r.data?.hiddenSection)return!1;if(r.onlySelected)return r.data.item.some(e=>e.selected);if(r.excludeSelected)return r.data.item.some(e=>!e.selected&&e.Count>0);let e=r.data.item.filter(e=>e.Count>0||e.selected);return r.type===`Name`||e.length>0}),c=E(()=>{let e=r.type===`LandmarkID`?r.data?.item?.slice(0,15)||[]:r.data?.item||[];return r.onlySelected?e.filter(e=>e.selected):r.excludeSelected?e.filter(e=>!e.selected):e}),u=E(()=>{let e=``;return r.type===`Popular`?e=I(`b_hotellist_left_xsl.popular_filters_new`)||``:r.type===`Name`?e=I(`b_hotellist_left_xsl.search_by_name`)||``:r.type===`ACityID`?e=t.page===`region_hub_page`?`Popular cities`:I(`b_hotellist_left_xsl.airport_cities`)||``:r.type===`Stars`?e=I(`b_hotellist_left_xsl.stars`)||``:r.type===`Rating`?e=I(`b_hotellist_left_xsl.guestrating_filters_new`)||``:r.type===`Price`?e=I(`b_hotellist_left_xsl.price_per_night_hl`)||``:r.type===`TypeID`?e=I(`b_hotellist_left_xsl.acctype`)||``:r.type===`MetroID`?e=I(`b_hotellist_left_xsl.metro`)||``:r.type===`LandmarkID`?e=I(`b_hotellist_left_xsl.nearby`)||``:r.type===`DistrictID`?e=I(`b_hotellist_left_xsl.districts`)||``:r.type===`AirportID`?e=I(`b_hotellist_left_xsl.airports`)||``:r.type===`ThemeID`?e=I(`b_hotellist_left_xsl.themes`)||``:r.type===`AmenityID`?e=I(`b_hotellist_left_xsl.amenities`)||``:r.type===`RAmenityID`?e=I(`b_hotel_xsl.hotel_fac_room_prop`)||``:r.type===`FacilityID`?e=I(`b_hotel_xsl.services_prop`)||``:r.type===`BrandID`&&(e=I(`b_hotellist_left_xsl.brands`)||``),e}),d=()=>{a.closed=!a.closed},f=E(()=>t.rootVariables?.themeMainFont);return(e,t)=>r.mapSection?(s(),v(C,{key:0},[p(o)?(s(),v(`div`,{key:0,class:l([`hl-filter-section is-opened`,{"is-closed":p(a).closed,"is-selected":r.data.selectedSection}])},[m(`div`,{class:`hl-filter-section__title text_m text_bold`,onClick:d},[m(`span`,Mn,n(p(u)),1)]),r.type===`Rating`?(s(),v(`div`,Nn,[(s(!0),v(C,null,i(p(c),(e,t)=>(s(),v(C,{key:`${t}-${e.ID}`},[e.ID>2?(s(),v(`div`,Pn,[k($,{item:e,param:r.data.attributes.param,type:r.type,showThisItem:!0},null,8,[`item`,`param`,`type`])])):b(``,!0)],64))),128))])):r.type==`DistrictID`?(s(),v(`div`,{key:1,class:l([`hl-filter-section__list-container`,{expanded:r.data.expandedSection,opened:r.data.openedSection}])},[(s(!0),v(C,null,i(p(c).sort((e,t)=>e.Name.localeCompare(t.Name)),(e,t)=>(s(),v(`div`,{class:l([`hl-fs-item`,{"hidden-item":t>p(a).countLimitItem-1}]),key:`${t}-${e.ID}`},[e.Count>0||e.selected?(s(),v(`div`,Fn,[k($,{item:e,param:r.data.attributes.param,type:r.type,showThisItem:!0,mapSection:!0},null,8,[`item`,`param`,`type`])])):b(``,!0)],2))),128))],2)):(s(),v(`div`,{key:2,class:l([`hl-filter-section__list-container`,{expanded:r.data.expandedSection,opened:r.data.openedSection}])},[(s(!0),v(C,null,i(p(c),(e,t)=>(s(),v(`div`,{class:l([`hl-fs-item`,{"hidden-item":t>p(a).countLimitItem-1}]),key:`${t}-${e.ID}`},[e.Count>0||e.selected?(s(),v(`div`,In,[e.SubTypeID?(s(),h($,{key:0,item:e,param:`st`,type:`SubTypeID`,showThisItem:!0,mapSection:!0},null,8,[`item`])):(s(),h($,{key:1,item:e,param:r.data.attributes.param,type:r.type,showThisItem:!0,mapSection:!0},null,8,[`item`,`param`,`type`]))])):b(``,!0)],2))),128))],2))],2)):b(``,!0)],64)):p(o)?(s(),v(C,{key:1},[p(a).closed?b(``,!0):(s(!0),v(C,{key:0},i(p(c),(e,t)=>(s(),v(`div`,{class:l([`hl-fs-item`,{"first-type":!r.onlySelected&&(r.type==`Stars`||r.type==`Rating`||r.type==`TypeID`)&&t==0}]),key:`${t}-${e.ID}`},[e.Count>0||e.selected?(s(),v(`div`,Ln,[e.SubTypeID?(s(),h($,{key:0,item:e,param:`st`,type:`SubTypeID`,showThisItem:!0},null,8,[`item`])):(s(),h($,{key:1,item:e,param:r.data.attributes.param,type:r.type,showThisItem:r.mapSection||r.type==`Stars`||r.type==`Rating`||r.type==`TypeID`},null,8,[`item`,`param`,`type`,`showThisItem`]))])):b(``,!0)],2))),128))],64)):b(``,!0)}},[[`__scopeId`,`data-v-3c5862f0`]]),zn={class:`filters-body js-filters-body`},Bn={class:`filters-body`},Vn={class:`hotel-filters`},Hn={class:`hotellist_filters_new-wrap`},Un={key:0,class:`filters-panel`},Wn={class:`filters-panel__all-btn-text`},Gn={key:0,class:`filters-panel__badge`},Kn={class:`js-filters-map-wrap`},qn=Object.assign(U(O({__name:`FiltersForm`,setup(e){A(e=>({v118d6438:p(ue),e0f03dd2:p(de),a19f1c10:p(fe),v0caff5ea:p(pe)}));let c=ce(),d=L(),f=H(),g=E(()=>c.getSelectedFiltersCounter);x(0);let _=x(null),y=E(()=>Object.values(c.getFilters||{})),S=E(()=>Object.values(c.getFullFiltersList||{})),w=E(()=>c.getFilters?.Rating?.item?.some(e=>e.selected)??!1),T=null,D=e=>{switch(String(e.ID)){case`1`:e.Name=I(`b_city_right_xsl.rating_5`,d.data?.api_vocab)||``,e.label=`5+`,e.classLabel=`filter-item__rating-level_one`;break;case`2`:e.Name=I(`b_hotellist_left_xsl.nice_filters_new`,d.data?.api_vocab)||``,e.label=`6+`,e.classLabel=`filter-item__rating-level_two`;break;case`3`:e.Name=I(`b_hotellist_left_xsl.vgood_filters_new`,d.data?.api_vocab)||``,e.label=`7+`,e.classLabel=`filter-item__rating-level_three`;break;case`4`:e.Name=I(`b_hotellist_left_xsl.great_filters_new`,d.data?.api_vocab)||``,e.label=`8+`,e.classLabel=`filter-item__rating-level_four`;break;case`5`:e.Name=I(`b_hotellist_left_xsl.perfect_filters_new`,d.data?.api_vocab)||``,e.label=`9+`,e.classLabel=`filter-item__rating-level_five`}return e},O=(e,t)=>{let n={};
2return e.forEach(e=>{if(t[e]){let r=t[e];r.type=e,r.selectedCount=0,r.isSingle=r.item?.length<2||!r.item,r.item&&r.item.forEach(e=>{e.selected&&r.selectedCount++}),e==`Rating`&&r.item&&(r.item=r.item.map(D)),n[e]=r}}),n},M=e=>{if(e){let t=O([`Stars`,`Rating`,`TypeID`],e);if(e.SubTypeID&&e.SubTypeID.item&&t.TypeID){let n=[];Array.isArray(e.SubTypeID.item)?n=e.SubTypeID.item.map(e=>({...e,SubTypeID:!0})):n.push({...e.SubTypeID.item,SubTypeID:!0}),n.forEach(e=>{let n=t.TypeID.item?.findIndex(t=>t.ID===e.ID);n>=0?t.TypeID.item[n]=e:(t.TypeID.item||(t.TypeID.item=[]),t.TypeID.item.push(e))})}let n=O([`Stars`,`Rating`,`TypeID`,`Price`,`MetroID`,`LandmarkID`,`DistrictID`,`AirportID`,`AmenityID`,`FacilityID`,`BrandID`],e);c.setFilters(t),c.setFullFiltersList(n)}};M(d.hotelList?.filters);let F=(e,t)=>{let n=new URLSearchParams;return n.set(`sort`,e),n.set(`order`,t),n.toString()},R=()=>{let e=d.hotelList?.filters_settings;if(e?.sort&&e?.order)return{sort:e.sort,order:e.order};let t=c.getSortString;if(!t)return null;let n=new URLSearchParams(t),r=n.get(`sort`)||``,i=n.get(`order`)||``;return!r||!i?null:{sort:r,order:i}},z=(e,t)=>{c.setSortString(F(e,t)),d.hotelList&&(d.hotelList.filters_settings={...d.hotelList.filters_settings||{},sort:e,order:t})},B=R();B&&z(B.sort,B.order);let V=()=>{U()},ee=e=>{let t=e.target?.closest(`.js-sort.sorting__list-item`);if(!t)return;let n=t.dataset.sort,r=t.dataset.order;n&&r&&(z(n,r),V())};t(()=>{document.addEventListener(`click`,ee),me.value&&document.documentElement.style.setProperty(`--filters-border-radius`,me.value)}),r(()=>{document.removeEventListener(`click`,ee)});let U=()=>{if(!_.value)return;let e={},t=document.querySelector(`.filters-map`),n=t&&!document.querySelector(`.js-filters-map-wrap`)?.contains(t),r=[];r=n?t?Array.from(t.querySelectorAll(`input[type="checkbox"]:checked, input[type="radio"]:checked`)):[]:Array.from(_.value.querySelectorAll(`input[type="checkbox"]:checked, input[type="radio"]:checked`)),r.forEach(t=>{let n=t.name,r=t.value;n&&r&&(e[n]||(e[n]=[]),e[n].push(r.toString()))});try{let t=Object.values(e).flat().length;c.setSelectedFiltersCounter(t),c.setSelectedFilters(e)}catch(e){console.error(`Error updating store:`,e)}G()},te=e=>{let t=new URLSearchParams(e),n=`${window.location.pathname}?${t.toString()}`;window.history.pushState({},``,n)},G=async()=>{T&&T.abort(),T=new AbortController,c.setIsFilterLoading(!0);try{let e=q(),t=d.hotelList?.city?.ID||``,n=d.hotelList?.city?.URL||``;te(e);let[r,i]=await Promise.all([ne(e),ie(t,n,e)]);re(r),ae(i)}catch(e){e.name!==`AbortError`&&e?.cause?.name!==`AbortError`&&console.error(`Error loading filters:`,e)}finally{c.setIsFilterLoading(!1)}},K=()=>{let e=c.getFullFiltersList,t={};Object.keys(e).forEach(n=>{let r=e[n];t[n]=r?.item?{...r,item:r.item.map(e=>({...e,selected:!1}))}:r}),c.setFullFiltersList(t);let n=document.querySelector(`.filters-map`);n&&n.querySelectorAll(`input[type="checkbox"]:checked, input[type="radio"]:checked`).forEach(e=>{e.checked=!1}),c.setSelectedFilters({}),c.setSelectedFiltersCounter(0),c.setFilterParamsString(``),G()},q=()=>{let e=new URLSearchParams,t=c.getSelectedFilters;Object.keys(t).length>0&&Object.keys(t).forEach(n=>{let r=t[n];r&&r.length>0&&r.forEach(t=>{e.append(n,t)})});let n=R();return n&&(e.set(`sort`,n.sort),e.set(`order`,n.order)),c.setFilterParamsString(e.toString()),e.toString()},ne=async e=>{let t=d.hotelList?.city?.ID||``,n=`${f.apiSiteUrl}/api-json/?hotellist_filters=1&page=hotellist_filters&CityID=${t}&${e}`;f.langid&&(n+=`&langID=${f.langid}`);try{return await N(n,{signal:T?.signal})}catch(e){e.name!==`AbortError`&&console.error(`API request failed:`,e)}},re=e=>{e?.hotellist?.filters&&M(e.hotellist.filters)},ie=async(e,t,n)=>{let r=`${f.apiSiteUrl}/api-json/?page=hotellist_lite_json&CityID=${e}&wait=1&${n}`;f.langid&&(r+=`&langID=${f.langid}`);try{return await N(r,{signal:T?.signal})}catch(e){e.name!==`AbortError`&&e?.cause?.name!==`AbortError`&&console.error(`API request failed:`,e)}},ae=e=>{let t=e?.WTS?.hotellist?.filters_settings||R();t&&d.hotelList&&(d.hotelList.filters_settings={...d.hotelList.filters_settings||{},sort:t.sort,order:t.order}),e?.WTS?.hotellist?.hotels&&(d.setHotelsList(e.WTS.hotellist.hotels),d.setHotelsListCallAvail(!0)),e?.WTS?.hotellist?.parts?d.hotelList.parts=e.WTS.hotellist.parts:d.hotelList.parts={},e?.WTS?.hotellist?.total?d.hotelList.total=e.WTS.hotellist.total:d.hotelList.total=0},J=null,oe=E(()=>I(`b_hotellist_left_xsl.filter_by`,d.data?.api_vocab)||``),se=()=>{let e=document.querySelector(`.filters-map`);e&&!J?P(()=>import(`./C07IL0Dq.js`).then(t=>{let n=`
3                    <div class='map-filters-popup__clear-btn'>${I(`b_map_xsl.button_clear`,d.data?.api_vocab)}</div>
4                    <div class='map-filters-popup__apply-btn'>
5                        <span class="btn__text">${I(`b_book_left_xsl.apply_btn`,d.data?.api_vocab)}</span>
6                    </div>`;J=t.createPopup(`<div class="map-filters-inner js-map-filters-inner"></div>`,{popupClassName:`map-filters-popup`,headertext:`${oe.value}`,scrollContent:!0,fullHeight:!0,fullWidth:!0,confirmButton:!0,buttonText:n});let r=null;J.on(`open`,()=>{document.querySelector(`.js-map-filters-popup .js-map-filters-inner`)?.appendChild(e);let t=document.querySelector(`.js-map-filters-popup .map-filters-popup__clear-btn`);t&&(r&&t.removeEventListener(`click`,r),r=e=>{e.stopPropagation(),K(),J.hidePopup()},t.addEventListener(`click`,r))}),J.on(`close`,()=>{document.querySelector(`.js-filters-map-wrap`)?.appendChild(e);let t=document.querySelector(`.js-map-filters-popup .map-filters-popup__clear-btn`);t&&r&&(t.removeEventListener(`click`,r),r=null)}),J.on(`confirm`,()=>{V()}),J.mount(),J.showPopup()}),__vite__mapDeps([0,1]),import.meta.url):J.showPopup()},Y=null,X=()=>{let e=document.querySelector(`.filters-map`);e&&!Y?P(()=>import(`./DxxgLdaN.js`).then(t=>{let n=`
7                    <div class="map-filters-popup__clear-btn">${I(`b_map_xsl.button_clear`,d.data?.api_vocab)}</div>
8                    <div class="map-filters-popup__apply-btn">
9                        <span class="btn__text">${I(`b_book_left_xsl.apply_btn`,d.data?.api_vocab)}</span>
10                    </div>`;Y=t.createModal(`<div class="map-filters-inner js-map-filters-inner"></div>`,{modalClassName:`map-filters-modal`,headerText:`${oe.value}`,scrollContent:!0,calcFullHeight:!0,maxWidth:`880px`,maxHeight:`90vh`,confirmButton:!1,footerText:n}),Y.on(`open`,()=>{document.querySelector(`.js-map-filters-modal .js-map-filters-inner`)?.appendChild(e)}),Y.on(`close`,()=>{document.querySelector(`.js-filters-map-wrap`)?.appendChild(e)}),Y.mount();let r=document.querySelector(`.js-map-filters-modal .map-filters-popup__clear-btn`),i=document.querySelector(`.js-map-filters-modal .map-filters-popup__apply-btn`),a=()=>{document.querySelector(`.js-filters-map-wrap`)?.appendChild(e)};r&&r.addEventListener(`click`,()=>{K(),a(),Y.hideModal()}),i&&i.addEventListener(`click`,()=>{V(),a(),Y.hideModal()}),Y.showModal()}),[],import.meta.url):Y.showModal()},le=x(!1);o(()=>f.getIsMobile,e=>{le.value=e},{immediate:!0});let ue=E(()=>f.rootVariables?.colorLightTheme),de=E(()=>f.rootVariables?.hoverBackgroundColor),fe=E(()=>f.rootVariables?.hoverTextColor),pe=E(()=>f.rootVariables?.colorMainTheme),me=E(()=>f.rootVariables?.borderRadius);o(me,e=>{e&&document.documentElement.style.setProperty(`--filters-border-radius`,e)});let Z=x(null),he=x(!1),ge=x(!1),Q=()=>{let e=Z.value;if(!e)return;let t=e.scrollLeft+e.clientWidth>=e.scrollWidth-4;he.value=!t,ge.value=e.scrollLeft>4},_e=e=>{let t=Z.value;!t||t.scrollWidth<=t.clientWidth||Math.abs(e.deltaX)>=Math.abs(e.deltaY)||(t.scrollLeft+=e.deltaY,e.preventDefault())};t(()=>{a(()=>requestAnimationFrame(Q)),Z.value?.addEventListener(`scroll`,Q,{passive:!0}),Z.value?.addEventListener(`wheel`,_e,{passive:!1})}),r(()=>{Z.value?.removeEventListener(`scroll`,Q),Z.value?.removeEventListener(`wheel`,_e)}),o(y,()=>{a(()=>requestAnimationFrame(Q))});let ve=()=>{le.value?se():X()},ye=()=>{Z.value?.scrollBy({left:200,behavior:`smooth`})},be=()=>{Z.value?.scrollTo({left:0,behavior:`smooth`})};return(e,t)=>{let r=W;return s(),v(`div`,zn,[m(`div`,Bn,[m(`div`,Vn,[m(`div`,Hn,[m(`form`,{ref_key:`form`,ref:_,method:`post`,class:`vue-filtering filters-block`,onSubmit:t[0]||=j(()=>{},[`prevent`]),onChange:j(V,[`prevent`])},[p(y).length>0?(s(),v(`div`,Un,[m(`div`,{class:l([`filters-panel__all-btn`,{"filters-panel__all-btn--applied":p(g)>0}]),onClick:ve},[m(`span`,Wn,n((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.all_filters`,p(d).data?.api_vocab)),1),p(g)>
100?(s(),v(`span`,Gn,n(p(g)),1)):b(``,!0)],2),p(ge)?(s(),v(`button`,{key:0,class:`filters-panel__scroll-btn filters-panel__scroll-btn--left`,type:`button`,onClick:be},[k(r,{name:`city/caret_right`,width:`24`,height:`24`,class:`filters-panel__scroll-btn-icon filters-panel__scroll-btn-icon--left`})])):b(``,!0),m(`div`,{class:l([`filters-panel__scroll`,{"has-selected-rating":p(w)}]),ref_key:`scrollWrapRef`,ref:Z},[(s(!0),v(C,null,i(p(y),(e,t)=>(s(),h(Rn,{key:`sel-${t}-${e.type}`,type:e.type,data:e,"map-section":!1,"only-selected":!0},null,8,[`type`,`data`]))),128)),(s(!0),v(C,null,i(p(y),(e,t)=>(s(),h(Rn,{key:`unsel-${t}-${e.type}`,type:e.type,data:e,"map-section":!1,"exclude-selected":!0},null,8,[`type`,`data`]))),128))],2),p(he)?(s(),v(`button`,{key:1,class:`filters-panel__scroll-btn`,type:`button`,onClick:ye},[k(r,{name:`city/caret_right`,width:`24`,height:`24`,class:`filters-panel__scroll-btn-icon`})])):b(``,!0)])):b(``,!0)],544),m(`div`,Kn,[m(`div`,{class:`filters-map`,style:u({"--color-main-theme":p(pe)})},[(s(!0),v(C,null,i(p(S),(e,t)=>(s(),v(`div`,{key:`${t}-section-${e.type}`,class:l(`hl-filter-${e.type.toLowerCase()}`)},[k(Rn,{type:e.type,data:e,"map-section":!0},null,8,[`type`,`data`])],2))),128))],4)])])])])])}}}),[[`__scopeId`,`data-v-84b640ea`]]),{__name:`FiltersListingFiltersForm`}),Jn={class:`why-use-us container`},Yn={class:`why-use-us__grid`},Xn={class:`why-use-us__item`},Zn={class:`why-use-us__item`},Qn={class:`why-use-us__wrap`},$n={class:`why-use-us__subtitle`},er={class:`why-use-us__item`},tr={class:`why-use-us__wrap`},nr={class:`why-use-us__description`},rr=Object.assign(U(O({__name:`WhyUseUs`,setup(e){A(e=>({v0a91a07b:p(i),v65f6fed8:p(o),ff430992:p(h),ff4306a0:p(f),d9a67b8e:p(a),v2d6e6711:p(u),ff43095a:p(d),ff430692:p(c),ff4307d4:p(l)}));let t=L(),r=H(),i=E(()=>r.rootVariables?.titleFont),a=E(()=>r.rootVariables?.colorMainTheme);E(()=>r.rootVariables?.colorLightTheme);let o=E(()=>r.rootVariables?.boldFontWeight);E(()=>r.rootVariables?.fontSize2XS?r.rootVariables.fontSize2XS:`12px`);let c=E(()=>r.rootVariables?.fontSizeXS?r.rootVariables.fontSizeXS:`14px`),l=E(()=>r.rootVariables?.fontSizeSM?r.rootVariables.fontSizeSM:`16px`),u=E(()=>r.rootVariables?.fontSizeM?r.rootVariables.fontSizeM:`18px`),d=E(()=>r.rootVariables?.fontSizeMD?r.rootVariables.fontSizeMD:`24px`),f=E(()=>r.rootVariables?.fontSizeXL?r.rootVariables.fontSizeXL:`40px`);E(()=>r.isCheapHotels?`600`:r.rootVariables.boldFontWeight);let h=E(()=>r.rootVariables?.fontSizeLG?r.rootVariables.fontSizeLG:`32px`);return(e,r)=>{let i=W;return s(),v(`section`,Jn,[r[3]||=m(`h2`,{class:`why-use-us__title basic-title bold`},` Why use Cheaphotels.org? `,-1),m(`div`,Yn,[m(`div`,Xn,[k(i,{class:`why-use-us__icon`,name:`main/ic_main-star`}),r[0]||=m(`div`,{class:`why-use-us__wrap`},[m(`h3`,{class:`why-use-us__subtitle`},`Best Selection`),m(`p`,{class:`why-use-us__description`},`Find cheap hotels for virtually any destination in the world.`)],-1)]),m(`div`,Zn,[k(i,{class:`why-use-us__icon`,name:`main/ic_main-dollar`}),m(`div`,Qn,[m(`h3`,$n,n((`replaceCity`in e?e.replaceCity:p(B))(`Latest [CITY] Hotels Deals`,p(t).hotelList?.city?.NameForms)),1),r[1]||=m(`p`,{class:`why-use-us__description`},`Find the latest hotel deals, with discounts of up to 50% off.`,-1)])]),m(`div`,er,[k(i,{class:`why-use-us__icon`,name:`main/ic_main-price-tag`}),m(`div`,tr,[r[2]||=m(`h3`,{class:`why-use-us__subtitle`},`Lowest Rates Guaranteed`,-1),m(`p`,nr,n((`replaceCity`in e?e.replaceCity:p(B))(`Book cheap hotels in [CITY] at the lowest possible price.`,p(t).hotelList?.city?.NameForms)),1)])])])])}}}),[[`__scopeId`,`data-v-03af1b30`]]),{__name:`HotellistWhyUseUs`}),ir={style:{display:`none`}},ar=Object.assign(O({__name:`HotelListJSONLD`,setup(e){let t=L(),n=H(),r=E(()=>n.page===`hotellist`),i=E(()=>{let e=t.hotelList?.hotels?.item;return e?Array.isArray(e)?e:[e]:[]}),a=E(()=>t.hotelList?.ShowCurrency||t.mainInfo?.ShowCurrency||``);function o(e){let t=n.staticSite||``;return t?ne(e).map(e=>{let n=e?.src||``,r=e?.ID==null?``:String(e.ID),i=e?.Url||``;return!n||!r||!i?``:`${t}/data/Photos/OriginalPhoto/${n.replace(`${r}.`,`${r}/${i}.`)}`}).filter(e=>e!==``)[0]??``:``}function c(e){let t={"@context":`http://schema.org`,"@type":`Hotel`,name:e.Name||``,url:e.Url||``},n=e.hotel_features_text,r=``;n?.essence_summary?.[0]?.item?.length?r=n.essence_summary[0].item[0].text||``:n?.essence_summary?.length?r=n.essence_summary[0].text||``:e.ShortDe
10scription&&typeof e.ShortDescription==`string`&&!n&&(r=e.ShortDescription),r&&(t.description=r),e.Stars&&Number(e.Stars)!==0&&Number(e.AccomodationType)===0&&Number(e.AccomodationSubType)!==2&&(t.starRating=String(e.Stars)),t.address={"@type":`PostalAddress`,addressLocality:e.City||``,addressCountry:e.Country||``};let i=Math.round(Number(e.show_price)||0);i>0&&(t.priceRange=`${i} ${a.value}`);let s=o(e);s&&(t.image=s);let c=Number(e.AvgMark||0),l=Number(e.ReviewsCount||0);c>0&&l>0&&(t.aggregateRating={"@type":`AggregateRating`,bestRating:`10`,ratingValue:(c/5).toFixed(1),ratingCount:String(l)});let u=(Array.isArray(e.KeyFeatures?.group)?e.KeyFeatures.group:e.KeyFeatures?.group&&!e.KeyFeatures.group.null?[e.KeyFeatures.group]:[]).filter(e=>!e.null).map(e=>{let t=Array.isArray(e.name)?e.name[0]:e.name;return!t||typeof t!=`string`||t.trim()===``?null:{"@type":`LocationFeatureSpecification`,name:t,value:!0}}).filter(e=>e!==null);return u.length>0&&(t.amenityFeature=u),t}let l=E(()=>!r.value||i.value.length===0?null:{"@context":`https://schema.org`,"@type":`ItemList`,numberOfItems:i.value.length,itemListElement:i.value.map((e,t)=>({"@type":`ListItem`,position:t+1,item:c(e)}))});return z(()=>({script:l.value?[{type:`application/ld+json`,key:`hotellist-carousel-jsonld`,tagPosition:`bodyClose`,innerHTML:JSON.stringify(l.value)}]:[]})),(e,t)=>(s(),v(`span`,ir))}}),{__name:`HotellistHotelListJSONLD`}),or={style:{display:`none`}},sr=Object.assign(O({__name:`HotelListFaqJSONLD`,setup(e){let t=L(),n=t.WTS,r=E(()=>{let e=t.textPpmd?.faqs?.item||[],r=n?.country_hub_page?.faq?.item||[],i=n?.mainland_hub_page?.faq?.item||[];return[...e,...r,...i].filter(e=>e?.question&&e.question.trim()!==``)}),i=E(()=>r.value.length===0?null:{"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:r.value.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.reply||``}}))});return z(()=>({script:i.value?[{type:`application/ld+json`,key:`hotellist-faq-jsonld`,tagPosition:`bodyClose`,innerHTML:JSON.stringify(i.value)}]:[]})),(e,t)=>(s(),v(`span`,or))}}),{__name:`HotellistHotelListFaqJSONLD`}),cr={style:{display:`none`}},lr=Object.assign(O({__name:`CityTouristDestinationJSONLD`,setup(e){let t=L(),n=E(()=>{let e=t.hotelList?.city?.NameForms;return(e?.Form0&&typeof e.Form0==`string`?e.Form0:null)??(typeof t.hotelList?.city?.Name==`string`?t.hotelList.city.Name:null)??``}),r=E(()=>{let e=parseInt(t.hotelList?.city?.CenterLat),n=parseInt(t.hotelList?.city?.CenterLon);return!e||!n?null:{"@type":`GeoCoordinates`,latitude:e/1e6,longitude:n/1e6}}),i=E(()=>{let e=t.hotelList?.city?.CountryForms,n=e?.Form0&&typeof e.Form0==`string`?e.Form0:null;if(!n)return null;let r=(Array.isArray(t.breadcrumbs?.Items)?t.breadcrumbs.Items:[]).find(e=>e.Element===`Country`&&e.Url&&e.Url!==!0),i={"@type":`Country`,name:n};r?.Url&&typeof r.Url==`string`&&(i.url=r.Url);let a=t.hotelList?.city?.StateName;return a&&typeof a==`string`&&a.trim()!==``?{"@type":`State`,name:a,containedInPlace:i}:i}),a=E(()=>{let e=t.textPpmd?.top_hotels?.item;return!e||!Array.isArray(e)?[]:e.filter(e=>e.name&&typeof e.name==`string`&&e.name.trim()!==``).map(e=>{let t={"@type":`LodgingBusiness`,name:e.name};return e.url&&typeof e.url==`string`&&e.url.trim()!==``&&(t.url=e.url),t})}),o=E(()=>
10{if(!n.value)return null;let e={"@context":`https://schema.org`,"@type":`TouristDestination`,name:n.value,url:typeof t.mainInfo?.canonical_url==`string`&&t.mainInfo.canonical_url.trim()!==``?t.mainInfo.canonical_url:``},o=t.meta_descriptions?.MetaDesc,s=t.meta_descriptions?.custom_metadata?.meta_description;return s&&typeof s==`string`&&s.trim()!==``?e.description=s:o&&typeof o==`string`&&o.trim()!==``&&(e.description=o),e.touristType=`Tourists`,r.value&&(e.geo=r.value),i.value&&(e.containedInPlace=i.value),a.value.length>0&&(e.includesAttraction=a.value),e});return z(()=>({script:o.value?[{type:`application/ld+json`,key:`city-tourist-destination-jsonld`,tagPosition:`bodyClose`,innerHTML:JSON.stringify(o.value)}]:[]})),(e,t)=>(s(),v(`span`,cr))}}),{__name:`CityTouristDestinationJSONLD`}),ur=[`aria-label`],dr=[`href`],fr={key:0,class:`district-links__count`},pr={key:1,class:`district-links__chip district-links__chip--active`},mr={key:0,class:`district-links__count`},hr=Object.assign(U(O({__name:`DistrictLinks`,setup(e){A(e=>({b9d1d622:p(S),v18d30ac0:p(T),v034c3d18:p(w)}));let t=L(),r=H(),l=E(()=>{let e=t.hotelList?.other_items?.DistrictID;return!e||e===!0?[]:(Array.isArray(e)?e:[e]).filter(e=>e.Url!==!0)}),u=x(null),d=x(!1),f=x(!1),h=()=>{let e=u.value;e&&(d.value=e.scrollLeft>4,f.value=e.scrollLeft+e.clientWidth<e.scrollWidth-4)},g=e=>{let t=u.value;t&&t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})},_=null,y=e=>{_?.disconnect(),_=new ResizeObserver(h),_.observe(e),Array.from(e.children).forEach(e=>_.observe(e))};o(u,e=>{if(!e){_?.disconnect(),_=null;return}y(e)},{immediate:!0,flush:`post`}),o(l,()=>{a(()=>{u.value&&y(u.value)})}),c(()=>{_?.disconnect()});let S=E(()=>r.rootVariables?.colorLightTheme),w=E(()=>r.rootVariables?.colorMainTheme),T=E(()=>r.rootVariables?.hoverBackgroundColor);return(e,t)=>{let r=W;return p(l).length>0?(s(),v(`nav`,{key:0,class:`district-links`,"aria-label":(`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_hotellist_left_xsl.districts`)},[p(d)?(s(),v(`button`,{key:0,type:`button`,class:`district-links__arrow district-links__arrow--left`,"aria-label":`Scroll left`,onClick:t[0]||=e=>g(-1)},[k(r,{name:`city/caret_right`,width:`24`,height:`24`,class:`district-links__arrow-icon district-links__arrow-icon--left`})])):b(``,!0),m(`ul`,{ref_key:`listEl`,ref:u,class:`district-links__list`,onScroll:h},[(s(!0),v(C,null,i(p(l),e=>(s(),v(`li`,{key:e.ID,class:`district-links__item`},[e.Url?(s(),v(`a`,{key:0,href:e.Url,class:`district-links__chip`},[D(n(e.Name),1),e.Count?(s(),v(`span`,fr,`(`+n(e.Count)+`)`,1)):b(``,!0)],8,dr)):(s(),v(`span`,pr,[D(n(e.Name),1),e.Count?(s(),v(`span`,mr,`(`+n(e.Count)+`)`,1)):b(``,!0)]))]))),128))],544),p(f)?(s(),v(`button`,{key:1,type:`button`,class:`district-links__arrow district-links__arrow--right`,"aria-label":`Scroll right`,onClick:t[1]||=e=>g(1)},[k(r,{name:`city/caret_right`,width:`24`,height:`24`,class:`district-links__arrow-icon`})])):b(``,!0)],8,ur)):b(``,!0)}}}),[[`__scopeId`,`data-v-03d09638`]]),{__name:`HotellistDistrictLinks`}),gr=f(()=>P(()=>import(`./nCCoksD9.js`).then(e=>e.default||e),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,1,15,16,17,18,19,20,21,22,23,24]),import.meta.url)),_r=f(()=>P(()=>import(`./rK2_jGqZ.js`).then(e=>e.default||e),__vite__mapDeps([25,3,4,5,6,7,8,9,10,11,12,13,14,1,15,16,17,18,21,22,23,19,26,27,28,29,30]),import.meta.url)),vr=f(()=>P(()=>import(`./BnsmirX-.js`).then(e=>e.default||e),__vite__mapDeps([31,3,4,8,6,7,9,5,10,11,12,13,14,1,15,16,17,18,22,19,32,33,34,20,21,23,35]),import.meta.url)),yr={class:`h-list__wrapper js-h-list__wrapper`},br={class:`container`},xr={class:`container__desktop`},Sr={class:`h-list__content-wrapper js-hl-container`},Cr={key:0,class:`h-list__navigation-panel`},wr={key:2,class:`h-list__content-wrapper__map-preview`},Tr={class:`h-list__content-wrapper__map-preview`},Er=[`innerHTML`],Dr={class:`h-list__navigation-panel`},Or={class:`h-list__navigation-item h-filter`},kr={class:`h-list__hotels-cont js-hl-hotels-cont`},Ar={key:6,class:`h-list__content`},jr={key:7,class:`h-list__content`},Mr={key:8,class:`other-cities container`},Nr={class:`basic-title`},Pr={class:`other-cities__cities`},Fr={class:`other-cities__cities-city-link`},Ir=[`href`],Lr={class:`other-cities__cn`},Rr={class:`other-cities__hc`},zr=[`data-b`],Br={class:`other-cities__cn`},Vr={class:`other-cities__hc`},Hr=O({__name:`[city]`,setup(e){A(e=>({v8bec92f0:p(W),v56d25c54:p(G),v0c328c14:p(K),v599ec264:p(ne),v54cfd441:p(se),f7efc096:p(ce)}));let r=E(()=>a.textPpmd?.faqs?.item?.length>0),a=L(),l=H(),u=Y(),g=E(()=>a.hotelList.wait_avail),y=`background-image: url(https://maps.1map.com/styles/osm-bright/static/${parseInt(a.hotelList?.city?.CenterLon)/1e6},${parseInt(a.hotelList?.city?.CenterLat)/1e6},13/1440x261.png); background-position: 50% 50%;`,x=a.hotelList?.prices?.item?.length>0,S=a.textPpmd?.top_hotels?.item?.length>0;f({loader:()=>P(()=>import(`./BnsmirX-.js`),__vite__mapDeps([31,3,4,8,6,7,9,5,10,11,12,13,14,1,15,16,17,18,22,19,32,33,34,20,21,23,35]),import.meta.url),loadingComponent:{template:`<div class="map-loading">Loading map...</div>`},errorComponent:{template:`<div class="map-error">Failed to load map</div>`},delay:200,timeout:1e4});let D=()=>{u.setMapOpened(!1)},O=e=>{e.key===`Escape`&&D()},j=E(()=>a.textPpmd?.listing_seo_text?Array.isArray(a.textPpmd.listing_seo_text)?a.textPpmd.listing_seo_text.filter(e=>e.type_id===179):a.textPpmd.listing_seo_text.type_id==179&&[a.textPpmd.listing_seo_text]:!1),M=E(()=>{let e=[];return Array.isArray(a.hotelList.cities)?e=a.hotelList.cities:a.hotelList.cities&&(e=[a.hotelList.cities]),e}),N=E(()=>{let e=a.hotelList?.other_items?.DistrictID;return Array.isArray(e)?e.length>0:!!e}),F=E(()=>a.hotelList?.pagination_page);t(()=>
10{document.addEventListener(`keydown`,O)}),c(()=>{document.removeEventListener(`keydown`,O)});let R=!1;Array.isArray(a.hotelList?.listing_page)?R=a.hotelList.listing_page[0]:a.hotelList.listing_page&&(R=a.hotelList.listing_page);let B=_(null);function U(e){e?B.value=f(()=>P(()=>import(`./8OTQR4U5.js`),__vite__mapDeps([36,3,4,8,6,7,9,5,10,11,12,13,14,1,15,16,17,18,21,22,23,19,37,38,28,29,39]),import.meta.url)):B.value=f(()=>P(()=>import(`./B6YdDuy1.js`),__vite__mapDeps([40,3,4,5,6,7,8,9,10,11,12,13,14,1,15,16,17,18,41]),import.meta.url))}o(()=>R,e=>{U(e)},{immediate:!0}),z(()=>({bodyAttrs:{class:`page_hotellist`}}));let W=E(()=>l.rootVariables?.mainFontWeight),G=E(()=>l.rootVariables?.boldFontWeight),K=E(()=>l.rootVariables?.colorExtraTheme),ne=E(()=>l.rootVariables?.colorLightTheme),se=E(()=>l.rootVariables?.hoverBackgroundColor),ce=E(()=>l.rootVariables?.colorMainTheme);return(e,t)=>{let o=gr,c=V,u=_r,f=vr;return p(g)?(s(),h(he,{key:0})):(s(),v(C,{key:1},[m(`div`,yr,[m(`div`,br,[k(J)])]),p(R)?b(``,!0):(s(),v(`div`,{key:0,class:`h-list__map js-simple-map`,style:y})),m(`div`,xr,[m(`div`,Sr,[p(R)?b(``,!0):(s(),v(`div`,Cr,[k(en,{"no-bottom-margin":p(N)},null,8,[`no-bottom-margin`]),t[0]||=m(`div`,{class:`h-list__navigation-item h-filter`},null,-1)])),p(R)?b(``,!0):(s(),h(hr,{key:1})),p(R)?b(``,!0):(s(),v(`div`,wr)),p(R)?(s(),h(c,{key:3},{fallback:T(()=>[...t[1]||=[m(`div`,{class:`h-list__content-wrapper__map-preview`},[m(`div`,{class:`map-preview-skeleton`})],-1)]]),default:T(()=>[m(`div`,Tr,[k(o)])]),_:1})):b(``,!0),p(R)&&p(j)&&p(j).length>0&&p(j)[0].text!==``&&p(j)[0].text!==!0?(s(),v(`div`,{key:4,class:`h-list__content-wrapper__city-text`,innerHTML:p(j)[0].text},null,8,Er)):b(``,!0),p(R)?(s(),v(C,{key:5},[m(`div`,Dr,[m(`div`,Or,[k(qn)])]),k(hr)],64)):b(``,!0),m(`div`,kr,[(s(),h(d(p(B))))])])]),k(c,null,{default:T(()=>[p(l).isMobile?(s(),h(u,{key:0})):b(``,!0)]),_:1}),x&&!p(F)?(s(),h(oe,{key:1})):b(``,!0),S&&!p(F)?(s(),h(re,{key:2})):b(``,!0),p(F)?b(``,!0):(s(),h(Pe,{key:3})),p(a).hotelList?.weather_info?.month?.length&&!p(F)?(s(),h(Rt,{key:4})):b(``,!0),p(r)&&!p(F)?(s(),h(ie,{key:5})):b(``,!0),p(a).textPpmd?.guide?.item?.length>0&&!p(F)?(s(),v(`section`,Ar,[k(qe)])):b(``,!0),p(a).textPpmd?.quick_facts?.items?.length>0&&!p(F)?(s(),v(`section`,jr,[k(ae)])):b(``,!0),p(a).hotelList.cities?.length>0?(s(),v(`section`,Mr,[m(`h2`,Nr,n((`replaceCountry`in e?e.replaceCountry:p(te))((`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`ohotel_site.other_cities_in_country`),p(a).hotelList.city?.CountryForms)),1),m(`div`,Pr,[(s(!0),v(C,null,i(p(M),t=>(s(),v(`div`,{key:t.ID,class:`other-cities__cities-block`},[m(`div`,Fr,[t.isCityIndexed===`1`?(s(),v(`a`,{key:0,class:`other-cities__cities-link`,href:t.PathUrl},[m(`span`,Lr,n(t.n),1),m(`span`,Rr,n(p(q)(t.hc,(`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_country_xsl.num_properties`),p(l).langcode)),1)],8,Ir)):t.isCityIndexed===`0`&&p(ee)(t.bUrl)?(s(),v(`span`,{key:1,class:`other-cities__cities-link js-b-link`,"data-b":p(ee)(t.bUrl),"data-n":`0`},[m(`span`,Br,n(t.n),1),m(`span`,Vr,n(p(q)(t.hc,(`getVocabPhrase`in e?e.getVocabPhrase:p(I))(`b_country_xsl.num_properties`),p(l).langcode)),1)],8,zr)):b(``,!0)])]))),128))])])):b(``,!0),p(l).isCheapHotels?(s(),h(rr,{key:9})):b(``,!0),k(ar),k(sr),k(lr),(s(),h(w,{to:`body`},[k(f)]))],64))}}}),Ur=e({default:()=>Wr}),Wr=U(Hr,[[`__scopeId`,`data-v-a87aec2e`]]);export{Wr as default,ce as n,Y as r,Ur as t};

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.