1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48996],{2739:(e,t,i)=>{"use strict";i.d(t,{N:()=>r});var o=i(16752),a=i(69406),n=i(84713);class l{static map(e,t,i){return{destinations:e.filter(e=>e.name.length>0).map(e=>this.mapSuggestion(e)),query:t,queryDate:i}}static mapSuggestion(e){let t=0!==Math.ceil(1e7*e.latitude)&&0!==Math.ceil(1e7*e.longitude);return{hotelId:e.hotelId,locationId:e.locationId,poiId:e.poiId,externalId:e.externalId,suggestion:e.name,additionalName:e.additionalName,group:e.group,latitude:t?e.latitude:void 0,longitude:t?e.longitude:void 0}}}class r{static async get(e,t){let i=new Date,r=new URLSearchParams(Object.entries({query:e,language:t,goog:"2"})),s="".concat(o.T.apiConfig.locationEndpoint,"?").concat(r);return fetch(s,{mode:"cors",headers:{"Accept-Encoding":"gzip"}}).then(t=>{if(!t.ok)return(0,n.YT)(t,s,{source:a._q.LocationService,locationQuery:e}),[];try{return t.json()}catch(e){return a.Vy.error(e,{source:a._q.LocationService,step:"toJson",url:s}),[]}}).then(e=>e).then(t=>l.map(t,e,i)).catch(t=>(a.Vy.error(t,{source:a._q.LocationService,status:-2,url:s,locationQuery:e}),{destinations:[],query:e,queryDate:i}))}static async getGoogleDetailSuggestion(e,t){let i=new URLSearchParams(Object.entries({placeid:e,language:t})),r="".concat(o.T.apiConfig.locationEndpoint,"?").concat(i);return fetch(r,{mode:"cors",headers:{"Accept-Encoding":"gzip"}}).then(t=>{if(!t.ok)return void(0,n.YT)(t,r,{source:a._q.LocationService,placeId:e});try{return t.json()}catch(e){a.Vy.error(e,{source:a._q.LocationService,step:"toJson",url:r});return}}).then(e=>e).then(e=>l.mapSuggestion(e)).catch(t=>{a.Vy.error(t,{source:a._q.LocationService,status:-2,url:r,placeId:e})})}}},14765:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var o=i(81121);let a=(e,t)=>({type:o.S.setDateRange,arrival:e,departure:t})},28828:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,s:()=>s});var o=i(64889),a=i(16752),n=i(77511),l=i(2739);async function r(e){if(!e||e.length<2)return{query:e,destinations:[],queryDate:new Date};let t=n.i_;return n.e6.includes(o.default.language)&&(t=o.default.language),l.N.get(e,t)}function s(){let e={de:u,en:c,pl:g,nl:m,es:p,it:h,fr:I,ru:O,pt:N,ja:y,tr:f,sv:L}[o.default.language]||c;return a.T.isDevOrLocal?[d,...e]:e}let d={locationId:3324662,suggestion:"HDE Musterstadt",additionalName:"Test",group:"LOCATION",latitude:-75.162132,longitude:9.513021},u=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"K\xf6ln",additionalName:"Nordrhein Westfalen",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hessen",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"M\xfcnchen",additionalName:"Bayern",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"Nordrhein Westfalen",group:"LOCATION",latitude:51.224945,longitude:6.775652}],c=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Cologne",additionalName:"North Rhine Westphalia",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hesse",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Munich",additionalName:"Bavaria",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"North Rhine Westphalia",group:"LOCATION",latitude:51.224945,longitude:6.775652}],g=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Kolonia",additionalName:"Nadrenia P\xf3Ånocna-Westfalia",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt nad Menem",additionalName:"Hesja",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Monachium",additionalName:"Bawaria",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"Dusseldorf",additionalName:"Nadrenia P\xf3Ånocna-Westfalia",group:"LOCATION",latitude:51.224945,longitude:6.775652}],m=[{locationId:55133,suggestion:"Berlijn",additionalName:"Berlijn",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Keulen",additionalName:"Noordrijn-Westfalen",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hessen",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"M\xfcnchen",additionalName:"Beieren",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"Noordrijn-Westfalen",group:"LOCATION",latitude:51.224945,longitude:6.775652}],p=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburgo",additionalName:"Hamburgo",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Colonia",additionalName:"Norte de Rhine-Westphalia",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Fr\xe1ncfort del Meno",additionalName:"Hesse",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Munich",additionalName:"Baviera",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"Dusseldorf",additionalName:"Norte de Rhine-Westphalia",group:"LOCATION",latitude:51.224945,longitude:6.775652}],h=[{locationId:55133,suggestion:"Berlino",additionalName:"Berlino",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Amburgo",additionalName:"Amburgo",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Colonia",additionalName:"Renania settentrionale-Vestfalia",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Francoforte sul Meno",additionalName:"Assia",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Monaco di Baviera",additionalName:"Baviera",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"Dusseldorf",additionalName:"Renania settentrionale-Vestfalia",group:"LOCATION",latitude:51.224945,longitude:6.775652}],I=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hambourg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Cologne",additionalName:"Rh\xe9nanie du Nord-Westphalie",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Francfort-sur-le-Main",additionalName:"Hesse",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Munich",additionalName:"Bavi\xe8re",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"Rh\xe9nanie du Nord-Westphalie",group:"LOCATION",latitude:51.224945,longitude:6.775652}],O=[{locationId:55133,suggestion:"ÐеÑлин",additionalName:"ÐеÑлин",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"ÐамбÑÑг",additionalName:"ÐамбÑÑг",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"ÐÑлÑн",additionalName:"СевеÑнÑй Рейн ÐеÑÑÑалиÑ",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"ФÑанкÑÑÑÑ-на-Ðайне",additionalName:"ÐеÑÑе",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"ÐÑнÑ
ен",additionalName:"ÐаваÑиÑ",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"ÐÑÑÑелÑдоÑÑ",additionalName:"СевеÑнÑй Рейн ÐеÑÑÑалиÑ",group:"LOCATION",latitude:51.224945,longitude:6.775652}],N=[{locationId:55133,suggestion:"Berlim",additionalName:"Berlim",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburgo",additionalName:"Hamburgo",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Col\xf4nia",additionalName:"Ren\xe2nia do Norte-Vestf\xe1lia",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hesse",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"Munique",additionalName:"Bavaria",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"Ren\xe2nia do Norte-Vestf\xe1lia",group:"LOCATION",latitude:51.224945,longitude:6.775652}],y=[{locationId:55133,suggestion:"ãã«ãªã³",additionalName:"ãã«ãªã³",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"ãã³ãã«ã¯",additionalName:"ãã³ãã«ã¯",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"ã±ã«ã³",additionalName:"ãã«ãã©ã¤ã³ã´ã§ã¹ããã¡ã¼ã¬ã³å·",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"ãã©ã³ã¯ãã«ãã¢ã ãã¤ã³",additionalName:"ããã»ã³",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"ãã¥ã³ãã³",additionalName:"ãã¤ã¨ã«ã³",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"ãã¥ãã»ã«ãã«ã",additionalName:"ãã«ãã©ã¤ã³ã´ã§ã¹ããã¡ã¼ã¬ã³å·",group:"LOCATION",latitude:51.224945,longitude:6.775652}],f=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"Kolonya",additionalName:"Kuzey Ren Vestfalya",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hesse",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"M\xfcnih",additionalName:"Bavyera",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"Dusseldorf",additionalName:"Kuzey Ren Vestfalya",group:"LOCATION",latitude:51.224945,longitude:6.775652}],L=[{locationId:55133,suggestion:"Berlin",additionalName:"Berlin",group:"LOCATION",latitude:52.516281,longitude:13.3776},{locationId:107905,suggestion:"Hamburg",additionalName:"Hamburg",group:"LOCATION",latitude:53.553802,longitude:9.991561},{locationId:62901,suggestion:"K\xf6ln",additionalName:"Nordrhein Westfalen",group:"LOCATION",latitude:50.940697,longitude:6.960107},{locationId:91191,suggestion:"Frankfurt am Main",additionalName:"Hessen",group:"LOCATION",latitude:50.111443,longitude:8.680615},{locationId:70801,suggestion:"M\xfcnchen",additionalName:"Bayern",group:"LOCATION",latitude:48.139133,longitude:11.580188},{locationId:97205,suggestion:"D\xfcsseldorf",additionalName:"Nordrhein Westfalen",group:"LOCATION",latitude:51.224945,longitude:6.775652}]},32837:(e,t,i)=>{"use strict";i.d(t,{Bl:()=>p,OE:()=>h,Oe:()=>T,dU:()=>L,gR:()=>I,kf:()=>y,lW:()=>A});var o=i(83794),a=i(7158),n=i(69406),l=i(84418),r=i(22438),s=i(77462),d=i(20928),u=i(12942),c=i(18614),g=i(63035),m=i(47767);let p=(e,t)=>(i,o)=>{let n=o().offerList.request,l=e;e.filters.autoextended&&(l=(0,a.jM)(e,e=>{e.filters.autoextended=!1,e.filters.vicinity=0})),t&&(n.locationId!==l.locationId||!l.locationId)?I((0,a.jM)(l,e=>{e.isMapSearch=!1,l.locationId||l.poiId?(e.filters.vicinity=0,e.filters.autoextended=!1):(e.f
1ilters.vicinity=30,e.filters.autoextended=!0)}),!1,o,i):I(l,!1,o,i)},h=e=>(t,i)=>{let{request:o}=i().offerList;I((0,a.jM)(o,t=>{t.locationId=void 0,t.latitude=e.latitude,t.longitude=e.longitude,t.filters.vicinity=e.vicinity,t.isMapSearch=!0}),!0,i,t)};function I(e,t,i,o){let n=!(arguments.length>4)||void 0===arguments[4]||arguments[4],l=Date.now(),{request:s}=i().offerList,d=(0,a.jM)(e,t=>{t.sortBy===r.r.POI&&(s.latitude!==e.latitude||s.longitude!==e.longitude||s.locationId!==e.locationId)&&(t.sortBy=r.r.Recommendations,t.sortPoi=void 0),t.transactionId=l});o((0,g.os)(l,t)),_(e,o),n&&O(d,i,o,!0),O(d,i,o,!1)}async function O(e,t,i,o){let s=await N(t),{customerId:c}=t().context;e.externalId&&n.Vy.log({message:"google detail request parameters",source:n._q.DestinationList,request:e});let p=(0,m.vD)(e,o,c,s),h=await d.S.get(p),I=(0,a.jM)(e,e=>{e.fastAvail=o}),O=!o&&!I.filters.autoextended&&h.offers.length<=20&&0===I.filters.vicinity,y=h.offers.map(e=>e.hotel.id);if(I.hotelTeaserKeys.filter(e=>!y.includes(e)).length>0){let t=(0,m.eo)(e,o,c,s),i=await d.S.get(t);h.offers.push(...i.offers)}O&&(f(30,I,h.offers.map(e=>e.hotel.id),t,i),h.isIncompleteResult=!0),h=(0,m.xD)(h,I),I.sortBy===r.r.Recommendations?(h=(0,m.Z$)(h,I),O||(h=(0,a.jM)(h,e=>{e.offers=(0,m.CQ)(I,h.offers)}))):h=(0,m.QS)(h,t().offerList.showTotalPrices,I.sortBy,I.sortPoi),function(e,t,i){let o=e.offers.map(e=>{var t;return null==(t=e.totalPrice)?void 0:t.currency}).filter((e,t,i)=>!!e&&i.indexOf(e)===t);0!==o.length&&(0,u.I)(o,t,i)}(h,i,t),i((0,g.yx)(I,h)),(0,l.$c)(t())}async function N(e){let{searchTokenActive:t}=e().context;if(t)return(0,c.gf)()}let y=e=>(t,i)=>{let{response:o,request:a}=i().offerList,n=[...a.hotelsFromFirstSearch,...o.offers.map(e=>e.hotel.id)];f(e,a,n,i,t)};function f(e,t,i,o,n){I((0,a.jM)(t,t=>{t.filters.vicinity=e,t.filters.autoextended=!0,t.hotelsFromFirstSearch=i,t.isMapSearch=!1}),!0,o,n,!1)}let L=(e,t)=>(i,a)=>{let{request:n,response:s}=a().offerList,d={...n,sortBy:e,sortPoi:t},u=(0,m.xD)(s,d),c=(0,m.QS)(u,a().offerList.showTotalPrices,e,t);d.sortBy===r.r.Recommendations&&(c=(0,m.Z$)(c,d)),i((0,g.yx)(d,c)),(0,l.$c)(a()),(0,o.tA)(e,t)},T=()=>(e,t)=>{e((0,g.x6)()),(0,l.$c)(t())},A=()=>(e,t)=>{e((0,g.yI)()),(0,l.$c)(t())};async function _(e,t){if(!e.locationId)return void t((0,g.iV)([]));let i=await s.V.getPois(e.locationId,e.language);t((0,g.iV)(i))}},35259:e=>{e.exports={button:"SearchButton_button__rP0Vj"}},40169:(e,t,i)=>{"use strict";i.d(t,{IX:()=>d,Jf:()=>n,ZA:()=>s,pB:()=>r,wf:()=>l});var o=i(81121),a=i(28828);let n=e=>async t=>{let i;t((i=await (0,a.V)(e),{type:o.S.successFetchResults,results:i}))},l=e=>({type:o.S.selectDestinationResult,result:e}),r=e=>({type:o.S.setSearchInputValidity,isValid:e}),s=e=>({type:o.S.setDestinationSearchVisibility,isDestinationSearchVisible:e}),d=e=>({type:o.S.setUrlParameters,urlParameters:e})},63035:(e,t,i)=>{"use strict";i.d(t,{FA:()=>p,I2:()=>u,IP:()=>r,IX:()=>N,Ox:()=>h,P7:()=>O,W6:()=>s,ZF:()=>g,hX:()=>T,hn:()=>m,iV:()=>L,l8:()=>l,os:()=>a,ps:()=>I,vF:()=>f,wN:()=>d,x6:()=>y,yI:()=>c,yx:()=>n});var o=i(73099);let a=(e,t)=>({type:o.O.searchTriggered,transactionId:e,keepOffers:t}),n=(e,t)=>({type:o.O.successFetchResults,request:e,response:t}),l=(e,t)=>({type:o.O.updateRequestAndResponse,request:e,response:t}),r=e=>({type:o.O.setSortBarVisibility,isVisible:e}),s=e=>({type:o.O.setPriceSwitchVisibility,isVisible:e}),d=e=>({type:o.O.setSearchBoxVisibility,isVisible:e}),u=e=>({type:o.O.setFilterBoxVisibility,isVisible:e}),c=()=>({type:o.O.toggleMapVisibility}),g=()=>({type:o.O.toggleCleanAndSafeModalVisibility}),m=e=>({type:o.O.setMapVisibility,isVisible:e}),p=e=>({type:o.O.setFederalStatesSheetVisibility,isVisible:e}),h=e=>({type:o.O.setThemedHotelsSheetVisibility,isVisible:e}),I=e=>({type:o.O.setSelectedHotelId,hotelId:e}),O=e=>({type:o.O.setHoveredHotelId,hotelId:e}),N=e=>({type:o.O.setUrlParameters,urlParameters:e}),y=()=>({type:o.O.togglePriceDisplay}),f=e=>({type:o.O.setNumberOfDisplayedHotels,numberOfDisplayedHotels:e}),L=e=>({type:o.O.setPois,pois:e}),T=()=>({type:o.O.resetVicinitySearch})},68392:(e,t,i)=>{"use strict";i.d(t,{A:()=>O});var o=i(54568),a=i(83794),n=i(64889),l=i(51439),r=i(63035),s=i(32837),d=i(40169),u=i(75087),c=i(9966),g=i(69406),m=i(50311),p=i(22438),h=i(35259),I=i.n(h);let O=(0,c.Ng)(e=>{var t,i,o;
1let{searchBox:a,offerList:n,context:l,shoppingCart:r}=e;return{isSearchRunning:n.isSearchRunning,arrival:a.arrival,departure:a.departure,rooms:a.rooms,hotelTeaserKeys:n.request.hotelTeaserKeys,sortBy:n.request.sortBy,filters:n.request.filters,showMap:n.showMap,hideRentalHome:null!=(t=l.componentsVisibility.hideRentalHome)&&t,hideLogin:null!=(i=l.componentsVisibility.hideLogin)&&i,hideRegistration:null!=(o=l.componentsVisibility.hideRegistration)&&o,currency:l.exchangeRates.currency,selectedResult:a.selectedResult,defaultVoucherCode:r.defaultVoucherCode}},{fetchResults:s.Bl,setSearchInputValidity:d.pB,setShowSeaListHeader:l.cR,setMapVisibility:r.hn})(e=>{var t;let{t:i,i18n:l}=(0,n.useTranslation)("home"),r={arrival:e.arrival,departure:e.departure,language:l.language,currency:e.currency,rooms:e.rooms,selectedDestination:e.selectedResult,hotelTeaserKeys:(null==(t=e.selectedResult)?void 0:t.hotelId)?[e.selectedResult.hotelId]:[],perimeter:e.filters.vicinity,sortBy:e.sortBy,amenities:e.filters.amenities,showMap:e.showMap,hideRentalHome:e.hideRentalHome,hideLogin:e.hideLogin,hideRegistration:e.hideRegistration,voucherCode:e.defaultVoucherCode},s=(0,m.A)(r);return(0,o.jsx)(u.R,{id:"SearchHotelsButton",as:"nextLink",href:s,onClick:t=>{let i=!!e.selectedResult;if(e.setSearchInputValidity(i),e.selectedResult){(0,a.s8)(e.selectedResult.suggestion,e.selectedResult.locationId,e.arrival,e.departure,e.rooms,e.selectedResult.group),e.forceHotelListView&&e.setMapVisibility(!1),e.setShowSeaListHeader(!1);let{rooms:t}=e,i={...e.filters},o={locationId:e.selectedResult.locationId,latitude:e.selectedResult.latitude,longitude:e.selectedResult.longitude,poiId:e.selectedResult.poiId,arrival:e.arrival,departure:e.departure,rooms:t,language:l.language,showSearchBox:!1,hotelTeaserKeys:e.selectedResult.hotelId?[e.selectedResult.hotelId]:[],filters:i,fastAvail:!1,hotelsFromFirstSearch:[],sortBy:e.selectedResult.locationId?p.r.Recommendations:p.r.DistanceToDestination,externalId:e.selectedResult.externalId};o.externalId&&g.Vy.log({message:"google detail request parameters",source:g._q.DestinationList,request:o}),e.fetchResults(o,!0);return}t.preventDefault()},size:e.forHorizontalBar?"md":"lg",variant:e.forHorizontalBar?"secondary":"primary",fullWidth:!0,className:I().button,disabled:!e.doNotDisableButton&&e.isSearchRunning,children:i("Search.SearchHotels")})})},77462:(e,t,i)=>{"use strict";i.d(t,{V:()=>l});var o=i(16752),a=i(69406),n=i(84713);class l{static async get(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return fetch("".concat(o.T.apiConfig.geoDataEndpoint,"/v2/geo/").concat(t?"poi":"locations","/").concat(e),{method:"GET",redirect:"follow",headers:this.getHeaders()}).then(async e=>{let t=await e.text();if(e.ok&&t)return JSON.parse(t)}).then(e=>e).catch(i=>{a.Vy.error(i,{source:a._q.GeoDataService,isPoiId:t,id:e})})}static async getLocationTranslation(e,t){return fetch("".concat(o.T.apiConfig.geoDataEndpoint,"/v2/geo/locations/translations?ids=").concat(e,"&locales=").concat(t),{method:"GET",redirect:"follow",headers:this.getHeaders()}).then(e=>e.json()).then(i=>i[e]?i[e][t]:void 0).catch(e=>{a.Vy.error(e,{source:a._q.GeoDataService,method:"getLocationTranslation"})})}static async getLocationForHotelId(e){return fetch("".concat(o.T.apiConfig.geoDataEndpoint,"/v2/geo/hotels/location-infos?hotelIds=").concat(e),{method:"GET",redirect:"follow",headers:this.getHeaders()}).then(e=>e.json()).then(t=>{var i;let o=null==(i=t[e])?void 0:i.primaryLocationId;return o||a.Vy.error("No location ID for hotel ID found.",{source:a._q.GeoDataService,method:"getLocationForHotelId",hotelId:e}),o}).catch(e=>{a.Vy.error(e,{source:a._q.GeoDataService,method:"getLocationForHotelId"})})}static async getPois(e,t){return fetch("".concat(o.T.apiConfig.geoDataEndpoint,"/v2/geo/poi/by-location?locationId=").concat(e),{method:"GET",redirect:"follow",headers:this.getHeaders((0,n.Op)(t))}).then(e=>e.json()).then(e=>e).then(e=>e&&0!==e.length?e.filter(e=>e.id&&e.poiType&&e.geoCoordinate&&e.name&&e.name.length>0&&"CENTER_LOCATION"!==e.poiType).map(e=>({id:e.id,poiType:e.poiType,geoCoordinate:e.geoCoordinate,name:e.name})):[]).catch(t=>(a.Vy.error(t,{source:a._q.GeoDataService,method:"getPois",locationId:e}),[]))}static getHeaders(e){return e?{"Content-Type":"application/json","Accept-Encoding":"gzip","x-client-id":(0,n.Jf)(),"x-client-language":e}:{"Content-Type":"application/json","Accept-Encoding":"gzip","x-client-id":(0,n.Jf)()}}}},83794:(e,t,i)=>{"use strict";i.d(t,{s8:()=>u,tA:()=>m,mL:()=>g,Db:()=>p,Hs:()=>c});var o=i(19458),a=i(22438),n=i(32384),l=i(16734),r=i.n(l),s=i(80549),d=i(58697);let u=(e,t,i,a,n,l,u,c)=>{var g,m,p,h;let I=null!=(g=null==n?void 0:n.reduce((e,t)=>
1e+t.numberOfAdults,0))?g:0,O=null!=(m=null==n?void 0:n.reduce((e,t)=>e+t.children.length,0))?m:0,N=null!=(p=null==n?void 0:n.filter(e=>e.type===o.C.SINGLEROOM).length)?p:0,y=null!=(h=null==n?void 0:n.filter(e=>e.type===o.C.DOUBLEROOM).length)?h:0,f=null!=u?u:l?(e=>{switch(e){case"LOCATION":return"matchmaker-location";case"POI":return"matchmaker-poi";case"HOTEL":return"matchmaker-hotel";case"AIRPORT_TRAINSTATION":return"matchmaker-station_airport";case"HOLIDAYS_HOTEL_TAB":return"matchmaker-holidays";case"HOLIDAYS_OWN_TAB":return"holidays-general";case"EXTERNAL_POI":return"google-external_poi";case"HKEY":return"matchmaker-hkey";default:return"-1"}})(l):"";window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,d.HK)(),event:"search_inquiry",type:f,search_term:e,search_location_id:null==t?void 0:t.toString(),rooms:N+y,single_rooms:N,double_rooms:y,guests:I+O,adults:I,children:O,start_date:r()(i).format("YYYY-MM-DD"),end_date:r()(a).format("YYYY-MM-DD"),days_to_arrival:(0,s.GS)((0,s.Ec)(),i),nights:(0,s.GS)(i,a),hit_timestamp:new Date().toISOString(),location:null!=c?c:"search_widget",feature:"search"})},c=(e,t,i)=>{window.dataLayer=window.dataLayer||[];let o=1;t>=20&&(o=1+Math.ceil((t-20+e.length)/10)),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({...(0,d.HK)(),event:"view_item_list",feature:"ecommerce",hit_timestamp:new Date().toISOString(),number_of_results:i.length,number_of_results_crs_HRS:i.filter(e=>"HRS"===e.crsType).length,number_of_results_crs_EAN:i.filter(e=>"EAN"===e.crsType).length,number_of_results_crs_AMADEUS:i.filter(e=>"AMADEUS"===e.crsType).length,number_of_results_crs_DERBYSOFT:i.filter(e=>"DERBYSOFT"===e.crsType).length,number_of_results_crs_IHG:i.filter(e=>"IHG"===e.crsType).length,number_of_results_crs_SOLMELIA:i.filter(e=>"SOLMELIA"===e.crsType).length,number_of_results_crs_OTHER_CRS:i.filter(e=>e.crsType&&!["HRS","EAN","AMADEUS","DERBYSOFT","IHG","SOLMELIA"].includes(e.crsType)).length,batch:o,ecommerce:{items:e.map((e,i)=>{var o,a,l,r;return{item_id:e.hotel.id.toString(),crs_type:null!=(l=e.crsType)?l:"NO_CRS_VALUE",item_name:e.hotel.name,btc_pay_supported:e.amenities.includes(n.s.BTCPAY_OPTIONAL)?"Y_OPTIONAL":e.amenities.includes(n.s.BTCPAY_MANDATORY)?"Y_MANDATORY":"N",currency:null==(o=e.totalPrice)?void 0:o.currency,price:null==(a=e.totalPrice)?void 0:a.amount,index:i+1+t,item_list_name:"hotel list",quantity:1,discount_label:null!=(r=e.discountType)?r:"NO_LABEL"}})}})},g=(e,t)=>{var i,o,a,n;window.dataLayer=window.dataLayer||[];let l=1;t>20&&(l=1+Math.ceil((t-20)/10)),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({...(0,d.HK)(),event:"select_item",hit_timestamp:new Date().toISOString(),feature:"ecommerce",batch:l,ecommerce:{hotel_id:e.hotel.id.toString(),hotel_name:e.hotel.name,hotel_city:e.hotel.address.city,hotel_country:e.hotel.address.country,items:[{item_id:e.hotel.id.toString(),crs_type:null!=(a=e.crsType)?a:"NO_CRS_VALUE",item_name:e.hotel.name,currency:null==(i=e.totalPrice)?void 0:i.currency,price:null==(o=e.totalPrice)?void 0:o.amount,item_list_name:"hotel list",index:t,quantity:1,discount_label:null!=(n=e.discountType)?n:"NO_LABEL"}]}})},m=(e,t)=>{let i,o;switch(window.dataLayer=window.dataLayer||[],e){case a.r.PriceAscending:i="Price",o="Ascending";break;case a.r.PriceDescending:i="Price",o="Descending";break;case a.r.Recommendations:i="Recommendations";break;case a.r.HotelRatingAll:i="Ratings",o="All";break;case a.r.HotelRatingBusiness:i="Ratings",o="Business Traveller";break;case a.r.HotelRatingPrivate:i="Ratings",o="Private Traveller";break;case a.r.DistanceToAirport:i="Distance",o="Airport";break;case a.r.DistanceToDestination:i="Distance",o="Destination";break;case a.r.DistanceToStation:i="Distance",o="Train Station";break;case a.r.POI:i="Distance",o="".concat(null==t?void 0:t.poiType,"|").concat(null==t?void 0:t.name)}window.dataLayer.push({...(0,d.HK)(),event:"sorting_select",type:i,option:o,hit_timestamp:new Date().toISOString(),feature:"Hotel sorting"})},p=(e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({...(0,d.HK)(),event:"button_click_interaction",location:"LP SEO - Hotel List",type:"Seo Availability Check",feature:"hotel list",hit_timestamp:new Date().toISOString(),hotel_id:e.toString(),hotel_name: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.