/*! For license information please see 797.75d55ce2.chunk.js.LICENSE.txt */
(self["b-index-lp-web-mfe"]=self["b-index-lp-web-mfe"]||[]).push([[797],{59006:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(51878),i=n(82497),o=n(14222),a=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!(0,i.D)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;__DEV__?(0,r.kG)(!!e,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,r.kG)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var n=(0,o.E2)(e),i=(0,o.mw)(t),a=(0,o.mw)(n.type);__DEV__?(0,r.kG)(n.type===t,"Running a "+i+" requires a graphql "+i+", but a "+a+" was used instead."):(0,r.kG)(n.type===t,30)},e}()},31121:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(51099);function i(e,t){return(0,r.r)(e,t,!0)}},51099:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(31191),i=(n(51878),n(32735)),o=n(82497),a=n(24605),s=n(6637),u=n(14222),c=function(e){function t(t){var n=t.options,r=t.context,i=t.onNewData,o=e.call(this,n,r)||this;return o.runLazy=!1,o.previous=Object.create(null),o.runLazyQuery=function(e){o.cleanup(),o.runLazy=!0,o.lazyOptions=e,o.onNewData()},o.obsRefetch=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.refetch(e)},o.obsFetchMore=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.fetchMore(e)},o.obsUpdateQuery=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.updateQuery(e)},o.obsStartPolling=function(e){var t;null===(t=o.currentObservable)||void 0===t||t.startPolling(e)},o.obsStopPolling=function(){var e;null===(e=o.currentObservable)||void 0===e||e.stopPolling()},o.obsSubscribeToMore=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.subscribeToMore(e)},o.onNewData=i,o}return(0,r.ZT)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:s.I.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;this.isMounted=!0;var r=this.getOptions();return this.currentObservable&&!this.ssrInitiated()&&this.startQuerySubscription(),n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=r,this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,r.pi)((0,r.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,r.pi)((0,r.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,n=e.skip,i=!1===t,o=this.refreshClient().client.disableNetworkFetches,a=(0,r.pi)({loading:!0,networkStatus:s.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(i&&(this.ssrInitiated()||o))return this.previous.result=a,a;if(this.ssrInitiated()){var u=this.getExecuteResult()||a;return u.loading&&!n&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),u}},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,u.n_.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,r.pi)((0,r.pi)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,r.pi)((0,r.pi)({},e),{children:void 0}),this.currentObservable=this.refreshClient().client.watchQuery((0,r.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){var e=(0,r.pi)((0,r.pi)({},this.prepareObservableQueryOptions()),{children:void 0});this.getOptions().skip?this.previous.observableQueryOptions=e:(0,o.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(n){var r=n.loading,i=n.networkStatus,a=n.data,s=t.previous.result;s&&s.loading===r&&s.networkStatus===i&&(0,o.D)(s.data,a)||e()},error:function(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!(0,o.D)(n,t.previous.error))&&(t.previous.error=n,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.last;try{e.resetLastResults(),this.startQuerySubscription()}finally{e.last=t}}},t.prototype.getExecuteResult=function(){var e=this.observableQueryFields(),t=this.getOptions();if(t.skip)e=(0,r.pi)((0,r.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:s.I.ready,called:!0});else if(this.currentObservable){var n=this.currentObservable.getCurrentResult(),i=n.data,o=n.loading,u=n.partial,c=n.networkStatus,l=n.errors,d=n.error;if(l&&l.length>0&&(d=new a.c({graphQLErrors:l})),e=(0,r.pi)((0,r.pi)({},e),{data:i,loading:o,networkStatus:c,error:d,called:!0}),o);else if(d)Object.assign(e,{data:(this.currentObservable.getLastResult()||{}).data});else{var f=this.currentObservable.options.fetchPolicy;if(t.partialRefetch&&u&&(!i||0===Object.keys(i).length)&&"cache-only"!==f)return Object.assign(e,{loading:!0,networkStatus:s.I.loading}),e.refetch(),e}}e.client=this.client,this.setOptions(t,!0);var p=this.previous.result;return this.previous.loading=p&&p.loading||!1,e.previousData=p&&(p.data||p.previousData),this.previous.result=e,this.currentObservable&&this.currentObservable.resetQueryStoreErrors(),e},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),a=i.query,s=i.variables,u=i.onCompleted,c=i.onError,l=i.skip;if(this.previousOptions&&!this.previous.loading&&(0,o.D)(this.previousOptions.query,a)&&(0,o.D)(this.previousOptions.variables,s))return;!u||r||l?c&&r&&c(r):u(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(n(59006).V);var l=n(55261);function d(e,t,n){void 0===n&&(n=!1);var a=(0,i.useContext)((0,l.K)()),s=(0,i.useReducer)((function(e){return e+1}),0),u=s[0],d=s[1],f=t?(0,r.pi)((0,r.pi)({},t),{query:e}):{query:e},p=(0,i.useRef)(),v=p.current||(p.current=new c({options:f,context:a,onNewData:function(){v.ssrInitiated()?d():Promise.resolve().then((function(){return p.current&&p.current.isMounted&&d()}))}}));v.setOptions(f),v.context=a;var h=function(e,t){var n=(0,i.useRef)();return n.current&&(0,o.D)(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}((function(){return n?v.executeLazy():v.execute()}),{options:(0,r.pi)((0,r.pi)({},f),{onError:void 0,onCompleted:void 0}),context:a,tick:u}),_=n?h[1]:h;return __DEV__&&function(e){if(__DEV__){var t=(0,i.useRef)(!1);(0,i.useEffect)((function(){return function(){t.current=!0}}),[]),(0,i.useEffect)((function(){!0===t.current&&(t.current=!1,e())}),[])}}(d),(0,i.useEffect)((function(){return function(){v.cleanup(),p.current=void 0}}),[]),(0,i.useEffect)((function(){return v.afterExecute({lazy:n})}),[_.loading,_.networkStatus,_.error,_.data,v.currentObservable]),h}},14222:function(e,t,n){"use strict";n.d(t,{E2:function(){return s},mw:function(){return a},n_:function(){return r}});var r,i=n(51878);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var o=new Map;function a(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function s(e){var t,n,a=o.get(e);if(a)return a;__DEV__?(0,i.kG)(!!e&&!!e.kind,"Argument of "+e+" passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.kG)(!!e&&!!e.kind,34);var s=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),u=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?(0,i.kG)(!s.length||u.length||c.length||l.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,i.kG)(!s.length||u.length||c.length||l.length,35),__DEV__?(0,i.kG)(u.length+c.length+l.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+e+" had "+u.length+" queries, "+l.length+" subscriptions and "+c.length+" mutations. You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(u.length+c.length+l.length<=1,36),n=u.length?r.Query:r.Mutation,u.length||c.length||(n=r.Subscription);var d=u.length?u:c.length?c:l;__DEV__?(0,i.kG)(1===d.length,"react-apollo only supports one definition per HOC. "+e+" had "+d.length+" definitions. You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(1===d.length,37);var f=d[0];t=f.variableDefinitions||[];var p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:n,variables:t};return o.set(e,p),p}},67945:function(e,t,n){e.exports=n(11602)},82322:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(20011),i=n(92577),o=n(34499),a=n.n(o),s=n(17940),u=n.n(s),c=n(1618),l=n.n(c),d=n(95798),f=n.n(d),p=n(28132),v=n.n(p),h=n(74906),_=n.n(h),g=n(7022),E=n.n(g),b=n(19441),m=n.n(b),I=n(39476),T=n(24094),L=n(32735),y=n.n(L),R="b878730b30",O="bc5368ea83",S="ff12947055",C="bb1bc55383",k=n(82888),w=n(69160),F=n(66360),A=n(5303),N=n(70001),Z=function(e){var t=(0,I.QT)();return(0,L.useMemo)((function(){var n,r;return e<3?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"1"}})),r=t.trans((0,T.t)("review_adj_very_poor"))):e>=3&&e<4?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"2"}})),r=t.trans((0,T.t)("review_adj_poor"))):e>=4&&e<5?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"3"}})),r=t.trans((0,T.t)("review_adj_disappointing"))):e>=5&&e<5.6?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"4"}})),r=t.trans((0,T.t)("review_adj_average"))):e>=5.6&&e<6?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"5"}})),r=t.trans((0,T.t)("review_adj_above_average"))):e>=6&&e<7?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"6"}})),r=t.trans((0,T.t)("review_adj_pleasant"))):e>=7&&e<8?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"7"}})),r=t.trans((0,T.t)("review_adj_good"))):e>=8&&e<8.6?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"8"}})),r=t.trans((0,T.t)("review_adj_very_good"))):e>=8.6&&e<9?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"9"}})),r=t.trans((0,T.t)("review_adj_fabulous"))):e>=9&&e<9.5?(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"10"}})),r=t.trans((0,T.t)("review_adj_superb"))):(n=t.trans((0,T.t)("a11y_adjective_rating",{variables:{rating_adjective:"11"}})),r=t.trans((0,T.t)("review_adj_exceptional"))),{a11yRatingAdjective:n,ratingAdjective:r}}),[t,e])},P=function(e){var t=e.title,n=e.subTitle,o=e.subTitle2,s=e.priceText,c=e.url,d=e.img,p=e.formattedPrice,h=e.reviewScore,g=e.size,b=e.id,P=e.itemIndex,D=e.aspectRatio,M=e.onClickHandler,x=e.onViewHandler,H=e.onImageErrorHandler,j=e.badge,U=e.targetBlank,B=void 0===U||U,Q=(0,I.QT)(),V=(0,F.YD)({threshold:0,triggerOnce:!0}),Y=(0,i.Z)(V,2),G=Y[0],z=Y[1];(0,L.useEffect)((function(){z&&x&&x(b,P)}),[z]);var q=Z(Number(null===h||void 0===h?void 0:h.score)||0);return y().createElement(a(),{href:c,className:R,ref:G,onClick:function(){M&&M(b,P)},attributes:{target:B?"_blank":""}},y().createElement(u(),{gap:"smaller"},y().createElement(l(),{ratio:D||A.vr,attributes:{"data-testid":k.Yq}},y().createElement(f(),(0,r.Z)({},d,{className:O,fallback:"icon",fallbackIcon:(0,N.uI)(d.imageType),onError:function(){H&&H(b,P)}})),!!j&&y().createElement(v(),{text:j,className:C,variant:"media"})),y().createElement(_(),{className:S,variant:"strong_1",title:t,subtitle:n,titleAttributes:{"data-testid":k.kr},subtitleAttributes:{"data-testid":k.zt}}),o&&y().createElement(E(),{variant:"body_2",color:"neutral_alt",tagName:"span"},o),p&&y().createElement(u(),{alignItems:"center",gap:"smaller",direction:"row",attributes:{"data-testid":k.tt}},y().createElement(E(),{variant:"body_2",color:"neutral_alt",tagName:"span"},s||Q.trans((0,T.t)("m_sr_autoextend_carousel_starting_from"))),y().createElement(E(),{variant:"strong_1",color:"neutral",tagName:"span",attributes:{"data-testid":k.Qc}},p)),h&&y().createElement(m(),{score:h.score,scoreAriaLabel:q.a11yRatingAdjective,rating:h.rating,reviewCount:h.reviewCount,ratingReviewAriaLabel:q.ratingAdjective,size:"smaller",inline:g===w.C.MEDIUM,attributes:{"data-testid":k.hT}})))}},73154:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r,i,o=n(20011),a=n(47169),s=n(13736),u=n(32735),c=n.n(u),l=n(69160),d=n(82322),f=n(98178),p=n(79399),v=n(44393),h=n(48976),_=n(40841),g=n.n(_),E=n(66360),b=n(18047),m="b17c7422c9",I="a5af14626a",T=n(92577),L=n(31121),y=n(42015),R=n(39476),O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AlternateDestinationsQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alternateDestinations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subtitle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checkout"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nbAdults"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nbChildren"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"childrenAges"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nbRooms"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"destinations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"distance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"destId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"destType"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:305,source:{body:"\n  query AlternateDestinationsQuery {\n    alternateDestinations {\n      title\n      subtitle\n      checkin\n      checkout\n      nbAdults\n      nbChildren\n      childrenAges\n      nbRooms\n      destinations {\n        name\n        distance\n        imageUrl\n        destId\n        destType\n      }\n    }\n  }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},S=n(32272),C=n(70001),k=n(5174),w=n(68523),F=function(e,t,n,r,i,o,a,s){return(0,k.d)({checkin:e,checkout:t,nbAdults:n,nbChildren:r,childrenAges:s,nbRooms:i,destId:o,destType:a}).toString()},A=function(){var e=(0,R.QT)(),t=(0,L.t)(O),n=(0,T.Z)(t,2),r=n[0],i=n[1],o=i.loading,a=i.data,s=i.error;return(0,u.useEffect)((function(){r()}),[r]),s&&(0,y.eK)(s),function(e){var t,n,r=e.carouselDML,i=e.isLoading,o=(0,p.T)(),a=o.getCDNOrigin(),s=o.getSiteType(),u="tablet"===(null===(t=o.getUserAgent())||void 0===t?void 0:t.deviceType),c=null===r||void 0===r?void 0:r.alternateDestinations,d=[],v=s!==f.N.MDOT||u?l.C.SMALL:l.C.MEDIUM;return null===c||void 0===c||null===(n=c.destinations)||void 0===n||n.forEach((function(e,t){d.push({title:e.name,subTitle:null===e||void 0===e?void 0:e.distance,img:{src:(0,w.Z)(null===e||void 0===e?void 0:e.imageUrl,"300x240",a),imageType:C.__.City},aspectRatio:S.L["5:4"],url:F(c.checkin,c.checkout,c.nbAdults,c.nbChildren,c.nbRooms||1,e.destId,null===e||void 0===e?void 0:e.destType,c.childrenAges),id:String(t)})})),{isLoading:i,heading:(null===c||void 0===c?void 0:c.title)||"",subHeading:(null===c||void 0===c?void 0:c.subtitle)||void 0,items:d.length?d:void 0,size:v,isMdot:s===f.N.MDOT}}({carouselDML:a,isLoading:o,i18n:e})},N=function(){var e,t=(0,p.T)().getSiteType(),n=t===f.N.MDOT,u=A(),_=n?(0,v.Z)(r||(r=(0,s.Z)(["cCHObASKFZRKCWJHbSeGEVUWPHDDWe"]))):(0,v.Z)(i||(i=(0,s.Z)(["cCHObASKFZRKCWJHbSeGEVUFRURURHe"]))),T=(0,h.zm)(_);return T?c().createElement(E.df,{onChange:function(e){return e&&void(0,h.pj)(_,1)}},c().createElement("div",{className:g()("js-ds-layout-events-alternate-nearby-carousel",(e={},(0,a.Z)(e,I,t===f.N.MDOT),(0,a.Z)(e,m,t===f.N.WWW),e))},c().createElement(b.Z,(0,o.Z)({},u,{onCardClick:function(){(0,h.pj)(_,2)},onCardView:function(e,t){var n;t===((null===u||void 0===u||null===(n=u.items)||void 0===n?void 0:n.length)||0)-1&&(0,h.pj)(_,3)},onAfterNavigate:function(e){e===l.f.Right&&(0,h.pj)(_,4)},CardComponent:d.Z})))):null}},18047:function(e,t,n){"use strict";n.d(t,{Z:function(){return Y}});var r=n(20011),i=n(13613),o=n(32735),a=n.n(o),s=n(92577),u=n(15961),c=n.n(u),l=n(4210),d=n.n(l),f=n(69160),p=n(39476),v=n(24094),h=n(83165),_=n.n(h),g=n(5303),E=n(82888),b="a083ca5cd9",m="a809325913",I="c348e80373",T="f41ff74f75",L=function(e,t){return a().createElement(o.Fragment,{key:String(t)},a().createElement(_(),{variant:"box",className:I,attributes:{"data-testid":E.Ao},aspectRatio:g.vr}),a().createElement(_(),{variant:"title",className:T,attributes:{"data-testid":E.zs}}),a().createElement(_(),{variant:"one-line",className:T,attributes:{"data-testid":E.nU}}),a().createElement(_(),{variant:"title",className:T,attributes:{"data-testid":E.dN}}))},y=function(e){var t=e.size,n=e.showTitle,r="small"===t?[1,2,3,4,5,6]:[1,2,3,4];return a().createElement(a().Fragment,null,!!n&&a().createElement(a().Fragment,null,a().createElement(_(),{variant:"title",className:b,attributes:{"data-testid":E.TP}}),a().createElement(_(),{variant:"one-line",className:m,attributes:{"data-testid":E.Zu}})),a().createElement(d(),{size:t,previousButtonAriaLabel:"",nextButtonAriaLabel:"",attributes:{"data-testid":E.kh}},r.map(L)))},R=function(e){var t=e.items,n=e.isLoading,i=e.size,u=e.nextButtonAriaLabel,l=e.previousButtonAriaLabel,h=e.onAfterNavigate,_=e.onCardClick,b=e.onCardView,m=e.title,I=e.CardComponent,T=e.showSkeletonTitle,L=e.action,R=(0,p.QT)(),O=c()(),S=(0,s.Z)(O,1)[0],C=(0,o.useRef)(0),k=(0,o.useState)("50%"),w=(0,s.Z)(k,2),F=w[0],A=w[1],N=(0,o.useRef)(null),Z=(0,o.useRef)(null);if((0,o.useEffect)((function(){var e;null===(e=Z.current)||void 0===e||e.navigate(0)}),[t]),(0,o.useEffect)((function(){var e,n=null===N||void 0===N||null===(e=N.current)||void 0===e?void 0:e.clientWidth,r=function(){if(null!==t&&void 0!==t&&t.length&&t[0].aspectRatio){var e=t[0].aspectRatio.split(":").map((function(e){return Number(e)}));return{horizontal:e[0],vertical:e[1]}}return null}();if(n&&r){var o=(n-(g.Gi[i]-1)*g.QN)/g.Gi[i]*r.vertical/(2*r.horizontal);A("".concat(o,"px"))}}),[N,i,n,t]),n)return a().createElement(y,{size:i,showTitle:T});if(null===t||void 0===t||!t.length)return null;return a().createElement("div",{ref:N},a().createElement(d(),{ref:Z,size:i,title:m,nextButtonAriaLabel:u||R.trans((0,v.t)("sxp_carousel_accessibility_next")),previousButtonAriaLabel:l||R.trans((0,v.t)("sxp_carousel_accessibility_previous")),attributes:{"data-testid":E.Di},onAfterNavigate:function(e){var t=e.index,n=t>C.current?f.f.Right:f.f.Left;S&&(n=n===f.f.Left?f.f.Right:f.f.Left),C.current=t,h&&h(n,t)},topNavigationOffset:F,action:L},t.map((function(e,t){return a().createElement(I,(0,r.Z)({},e,{onViewHandler:b,onClickHandler:_,itemIndex:t,size:i,key:e.id}))}))))},O=n(74906),S=n.n(O),C=function(e){var t=e.isMdot,n=e.heading,r=e.subHeading;return a().createElement(S(),{variant:t?"headline_3":"headline_2",title:n,subtitle:r,titleAttributes:{"data-testid":E.Tr},subtitleAttributes:{"data-testid":E.yu}})},k=["heading","subHeading","isMdot"],w=function(e){var t=e.heading,n=e.subHeading,o=e.isMdot,s=(0,i.Z)(e,k);return a().createElement(R,(0,r.Z)({},s,{title:a().createElement(C,{heading:t,subHeading:n,isMdot:o}),showSkeletonTitle:!0}))},F=n(23794),A=n.n(F),N=n(19825),Z="e3b7c377c9",P=function(e){if(e&&e in N){var t=N[e];return a().createElement(t,null)}},D=function(e){var t=e.filters,n=e.onTabChange,i=(0,p.QT)();return a().createElement(A(),{variant:"rounded",className:Z,onTabChange:n,attributes:{"data-testid":"webcore-filter-carousel-tabs"},moreLabel:i.trans((0,v.t)("webcore_trans_trip_type_dropdown_more"))},a().createElement(A().TriggerList,null,t.map((function(e){return a().createElement(A().Trigger,(0,r.Z)({linkAttributes:{"data-testid":"webcore-filter-carousel-tab-trigger"},key:e.id},e,{icon:P(e.icon)}))}))))},M=["heading","subHeading","isMdot","filters","onTabChange","isLoading","items"],x=function(e){var t=e.heading,n=e.subHeading,o=e.isMdot,s=e.filters,u=e.onTabChange,c=e.isLoading,l=e.items,d=(0,i.Z)(e,M);return a().createElement(a().Fragment,null,!c&&!(null===s||void 0===s||!s.length)&&a().createElement(a().Fragment,null,a().createElement(C,{heading:t,subHeading:n,isMdot:o}),a().createElement(D,{filters:s,onTabChange:u})),a().createElement(R,(0,r.Z)({items:l,isLoading:c},d,{showSkeletonTitle:!0})))},H=n(82322),j=n(96304),U=n(17483),B=function(e){return e?{trackOnCardClick:function(t,n,r){return function(e,t,n,r,i){U.Z.sendEvent({action_name:"webcoreux.carousel_tile_clicked",action_version:"2.0.0",content:{common_carousel_data:{tile_id:t,carousel_name:e,component_id:n,position:r},filter:i}})}(e.carouselName,t,e.componentId,n,r)},trackOnCardView:function(t,n,r){return function(e,t,n,r,i){U.Z.sendEvent({action_name:"webcoreux.carousel_tile_viewed",action_version:"2.0.0",content:{common_carousel_data:{tile_id:t,carousel_name:e,component_id:n,position:r},filter:i}})}(e.carouselName,t,e.componentId,n,r)},trackOnLastCardView:function(t,n,r){return function(e,t,n,r,i){U.Z.sendEvent({action_name:"webcoreux.carousel_last_tile_viewed",action_version:"1.0.0",content:{common_carousel_data:{tile_id:t,carousel_name:e,component_id:n,position:r},filter:i}})}(e.carouselName,t,e.componentId,n,r)},trackOnCarouselNavigation:function(t,n){return function(e,t,n,r){U.Z.sendEvent({action_name:"webcoreux.carousel_arrow_clicked",action_version:"1.0.0",content:{common_carousel_data:{direction:'"'.concat(t,'"'),carousel_name:e,component_id:n},filter:r}})}(e.carouselName,t,e.componentId,n)}}:{trackOnCardClick:function(e){return null},trackOnCardView:function(e){return null},trackOnLastCardView:function(e){return null},trackOnCarouselNavigation:function(e){return null}}},Q=["c360Tracking","onCardView","onCardClick","onAfterNavigate","onTabChange","items","filters","isLoading","CardComponent"];function V(e,t){if(e&&t&&t.length)return{id:e,is_default:t[0].id===e,order:t.findIndex((function(t){return t.id===e})),total_filters:t.length}}(0,j.d)();var Y=function(e){var t=e.c360Tracking,n=e.onCardView,s=e.onCardClick,u=e.onAfterNavigate,c=e.onTabChange,l=e.items,d=e.filters,f=e.isLoading,p=e.CardComponent,v=(0,i.Z)(e,Q),h=(0,o.useRef)();(0,o.useEffect)((function(){!f&&d&&d.length&&(h.current=V(d[0].id,d))}),[f]);var _=B(t),g=_.trackOnCardClick,E=_.trackOnCardView,b=_.trackOnCarouselNavigation,m=_.trackOnLastCardView,I=function(e,t){E(e,t,h.current),null!==l&&void 0!==l&&l.length&&(null===l||void 0===l?void 0:l.length)-1===t&&m(e,t,h.current),n&&n(e,t)},T=function(e,t){g(e,t,h.current),s&&s(e,t)},L=function(e,t){b(e,h.current),u&&u(e,t)};return d?a().createElement(x,(0,r.Z)({},v,{filters:d,items:l,CardComponent:p||H.Z,onCardView:I,onCardClick:T,onAfterNavigate:L,onTabChange:function(e){h.current=V(e,d),c&&c(e)},isLoading:f})):a().createElement(w,(0,r.Z)({},v,{items:l,CardComponent:p||H.Z,onCardView:I,onCardClick:T,onAfterNavigate:L,isLoading:f}))}},68523:function(e,t){"use strict";t.Z=function(e,t,n){return e&&n+e.replace("<SIZE>",t)}},96304:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});var r=n(17483),i=n(79399),o=function(){var e;if("undefined"!==typeof window){var t=(0,i.T)(),n=t.getBPlatformEnvironment(),o=String(null===(e=t.getAffiliate())||void 0===e?void 0:e.id),a={lang:t.getLanguage(),aid:isNaN(Number(o))?void 0:o,isDev:!n||"dev"===n||"dqs"===n,pageviewId:t.getPageviewId()};r.Z.init(a)}}},69160:function(e,t,n){"use strict";var r,i;n.d(t,{C:function(){return r},f:function(){return i}}),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(r||(r={})),function(e){e.Left="left",e.Right="right"}(i||(i={}))},5303:function(e,t,n){"use strict";n.d(t,{Gi:function(){return s},QN:function(){return u},vr:function(){return a}});var r,i=n(47169),o=n(69160),a="5:4",s=(r={},(0,i.Z)(r,o.C.SMALL,6),(0,i.Z)(r,o.C.MEDIUM,4),(0,i.Z)(r,o.C.LARGE,3),r),u=16},82888:function(e,t,n){"use strict";n.d(t,{Ao:function(){return h},Di:function(){return r},Qc:function(){return l},TP:function(){return f},Tr:function(){return i},Yq:function(){return a},Zu:function(){return p},dN:function(){return E},hT:function(){return d},kh:function(){return v},kr:function(){return s},nU:function(){return g},tt:function(){return c},yu:function(){return o},zs:function(){return _},zt:function(){return u}});var r="webcore-carousel",i="webcore-carousel-heading",o="webcore-carousel-sub-heading",a="webcore-carousel-image",s="webcore-carousel-title",u="webcore-carousel-sub-title",c="webcore-carousel-price-container",l="webcore-carousel-price",d="webcore-carousel-review",f="webcore-carousel-heading-skeleton",p="webcore-carousel-sub-heading-skeleton",v="webcore-carousel-skeleton",h="webcore-carousel-image-skeleton",_="webcore-carousel-title-skeleton",g="webcore-carousel-sub-title-skeleton",E="webcore-carousel-price-container-skeleton"},32272:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return r}}),function(e){e["5:4"]="5:4",e["1:1"]="1:1",e["3:4"]="3:4",e["4:3"]="4:3",e["2:1"]="2:1",e["16:9"]="16:9"}(r||(r={}))},70001:function(e,t,n){"use strict";n.d(t,{__:function(){return r},uI:function(){return u}});var r,i=n(32735),o=n.n(i),a=n(19825);!function(e){e.City="City",e.District="District",e.Region="Region",e.Country="Country",e.Airport="Airport",e.Hotel="Hotel",e.Beach="Beach",e.Landmark="Landmark",e.LatLong="LatLong",e.Landscape="Landscape",e.Group="Group"}(r||(r={}));var s={City:o().createElement(a.CityIcon,null),District:o().createElement(a.RoadsignIcon,null),Region:o().createElement(a.RoadsignIcon,null),Country:o().createElement(a.WorldIcon,null),Airport:o().createElement(a.TransportAirplaneIcon,null),Hotel:o().createElement(a.BedIcon,null),Beach:o().createElement(a.BeachIcon,null),Landmark:o().createElement(a.LandmarkIcon,null),LatLong:o().createElement(a.GeoPinIcon,null),Landscape:o().createElement(a.LandscapeIcon,null),Group:o().createElement(a.GroupIcon,null)},u=function(e){return e&&s[e]||o().createElement(a.LandscapeIcon,null)}},17483:function(e,t,n){"use strict";var r=n(8821),i=n(85169),o=n(67945),a=n.n(o);function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}Object.create;Object.create;var u=function(){function e(t){(0,r.Z)(this,e),this.config=t,this.headers=this.config.API.HEADERS}return(0,i.Z)(e,[{key:"get",value:function(e,t){var n=this;return new Promise((function(r,i){return s(n,void 0,void 0,a().mark((function n(){var o,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,fetch(e,{method:"GET",headers:(null===t||void 0===t?void 0:t.withHeaders)?this.headers:void 0,credentials:!1===(null===t||void 0===t?void 0:t.withCredentials)?"omit":"include"});case 3:return o=n.sent,n.next=6,o.text();case 6:s=n.sent,r(s?JSON.parse(s):null),n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(0),n.abrupt("return",i(n.t0));case 13:case"end":return n.stop()}}),n,this,[[0,10]])})))}))}},{key:"post",value:function(e,t,n){var r=this,i=this.getEnrichedData(t);return new Promise((function(t,o){return s(r,void 0,void 0,a().mark((function r(){var s,u;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(e,{method:"POST",headers:(null===n||void 0===n?void 0:n.withHeaders)?this.headers:void 0,credentials:!1===(null===n||void 0===n?void 0:n.withCredentials)?"omit":"include",body:JSON.stringify(i)});case 3:return s=r.sent,r.next=6,s.text();case 6:u=r.sent,t(u?JSON.parse(u):null),r.next=13;break;case 10:return r.prev=10,r.t0=r.catch(0),r.abrupt("return",o(r.t0));case 13:case"end":return r.stop()}}),r,this,[[0,10]])})))}))}},{key:"getEnrichedData",value:function(e){var t={page:{page_referrer:document.referrer,page_url:window.location.href,page_title:document.title},web:{browser_language:window.navigator.language},local:{currency:this.config.currency,language:this.config.language}};return Object.assign(Object.assign({},e),{context:t,tracker:{tracker_name:"C360ReactTracker",tracker_type:"Client",tracker_version:"0.1.0"}})}}]),e}(),c=new(function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"init",value:function(e){this.client=new u(e)}},{key:"get",value:function(e){return s(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get(e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return s(this,void 0,void 0,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.client.post(e,t,n));case 1:case"end":return r.stop()}}),r,this)})))}}]),e}()),l=function(e){var t=void 0;return"mdot"==e.platform&&(t=2),"ddot"!=e.platform&&"www"!=e.platform||(t=1),{"Content-Type":"application/json","X-Booking-Platform":e.platform,"X-Booking-SiteType-Id":t,"X-Booking-Pageview-Id":e.pageviewId,"X-Booking-Session-Id":e.sessionId,"X-Booking-ET-Seed":e.etSeed,"X-Booking-AID":e.aid,"X-Booking-Label":e.label,"X-Booking-CSRF":e.csrfToken,"X-Booking-Language-Code":e.lang}},d=new(function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"init",value:function(e){this.c360Config=function(e){var t=e.hostname||(e.isDev?"app.dqs.booking.com":"www.booking.com");return{IS_DEV:Boolean(e.isDev),API:{HEADERS:l(e)},TRACK_BASE_URL:"https://".concat(t,"/c360/v1/track"),language:e.lang,currency:e.currency}}(e),this.httpClient=c,this.c360url=this.c360Config.TRACK_BASE_URL,this.props=e,c.init(this.c360Config)}},{key:"sendEvent",value:function(e){return s(this,void 0,void 0,a().mark((function t(){var n=this;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.httpClient.post(this.c360url,e,{withHeaders:!0}).catch((function(e){n.props.onErrorCallback&&n.props.onErrorCallback(new Error(e))}));case 1:case"end":return t.stop()}}),t,this)})))}}]),e}());t.Z=d},27116:function(e,t,n){"use strict";n.d(t,{Fp:function(){return f},Oq:function(){return c},_g:function(){return p},ge:function(){return u},hl:function(){return d},mT:function(){return s},y4:function(){return l}});var r,i,o,a=n(47169),s="nflt",u=";",c={FILTER_CLASS:"class",FILTER_HOTEL_TYPE:"ht_id",FILTER_24HR_RECEPTION:"hr_24",FILTER_FACILITIES:"hotelfacility",FILTER_ROOM_FACILITIES:"roomfacility",FILTER_DISTRICT:"di",FILTER_CHAINS:"chaincode",FILTER_CHAIN:"chain",FILTER_DEALS:"any_deal",FILTER_FREE_CANCELLATION:"fc",FILTER_PAYMENT_METHOD:"pmt",FILTER_MEALPLAN:"mealplan",FILTER_PRICE_BUCKETS:"pri",FILTER_PRICE_SLIDER:"price",FILTER_HT_BEACH:"ht_beach",FILTER_TWIN_DOUBLE:"tdb",FILTER_POPULAR_ACTIVITIES:"popular_activities",FILTER_REVIEW_SCORE:"review_score",FILTER_FAMILY_FRIENDLY_PROPERTY:"family_friendly_property",FILTER_OUT_OF_STOCK:"oos",FILTER_PRIVATE_BRAND:"ibr",FILTER_ACCESSIBLE_FACILITIES:"accessible_facilities",FILTER_ACCESSIBLE_ROOM_FACILITIES:"accessible_room_facilities",FILTER_DISTANCE_TO_SKI_LIFT_FILTER:"distanceToSkiliftFilter",FILTER_MIN_BATHROOMS:"min_bathrooms",FILTER_UFI:"uf",FILTER_POPULAR_NEARBY_LANDMARKS:"popular_nearby_landmarks",FILTER_DISTANCE:"distance",FILTER_SEO_THEME:"sth",FILTER_HEALTH_AND_HYGIENE:"health_and_hygiene",FILTER_NUM_BEDS:"num_beds",FILTER_TOP_DESTINATIONS:"top_destinations",FILTER_POPULAR:"popular",FILTER_POPULAR_STICKY:"popular_sticky",FILTER_NO_DORMS:"rpt",FILTER_PRIVACY_TYPE:"privacy_type",FILTER_GENIUS_BENEFITS:"genius_benefits",FILTER_PREVIOUSLY_USED:"used_filters",FILTER_BEACH_ACCESS_FACILITY:"BeachAccessFacilityFilter",FILTER_SUSTAINABLE_PROPERTY:"SustainablePropertyFilter",FILTER_THAI_PASS:"thai_pass",FILTER_UNIT_CONFIG:"unit_config"},l="8000",d=(r={},(0,a.Z)(r,c.FILTER_PRICE_BUCKETS,!0),(0,a.Z)(r,c.FILTER_PRICE_SLIDER,!0),(0,a.Z)(r,c.FILTER_POPULAR,!0),(0,a.Z)(r,c.FILTER_POPULAR_STICKY,!0),(0,a.Z)(r,c.FILTER_CLASS,!0),(0,a.Z)(r,c.FILTER_DISTANCE,!0),(0,a.Z)(r,c.FILTER_PAYMENT_METHOD,!0),(0,a.Z)(r,c.FILTER_POPULAR_ACTIVITIES,!0),(0,a.Z)(r,c.FILTER_OUT_OF_STOCK,!0),(0,a.Z)(r,c.FILTER_DEALS,!0),(0,a.Z)(r,c.FILTER_24HR_RECEPTION,!0),(0,a.Z)(r,c.FILTER_FREE_CANCELLATION,!0),(0,a.Z)(r,c.FILTER_MEALPLAN,!0),(0,a.Z)(r,c.FILTER_HOTEL_TYPE,!0),(0,a.Z)(r,c.FILTER_POPULAR_NEARBY_LANDMARKS,!0),(0,a.Z)(r,c.FILTER_TWIN_DOUBLE,!0),(0,a.Z)(r,c.FILTER_REVIEW_SCORE,!0),(0,a.Z)(r,c.FILTER_FACILITIES,!0),(0,a.Z)(r,c.FILTER_MIN_BATHROOMS,!0),(0,a.Z)(r,c.FILTER_ROOM_FACILITIES,!0),(0,a.Z)(r,c.FILTER_DISTRICT,!0),(0,a.Z)(r,c.FILTER_CHAINS,!0),(0,a.Z)(r,c.FILTER_ACCESSIBLE_FACILITIES,!0),(0,a.Z)(r,c.FILTER_ACCESSIBLE_ROOM_FACILITIES,!0),(0,a.Z)(r,c.FILTER_FAMILY_FRIENDLY_PROPERTY,!0),(0,a.Z)(r,c.FILTER_HT_BEACH,!0),(0,a.Z)(r,c.FILTER_NO_DORMS,!0),(0,a.Z)(r,c.FILTER_DISTANCE_TO_SKI_LIFT_FILTER,!0),(0,a.Z)(r,c.FILTER_UFI,!0),(0,a.Z)(r,c.FILTER_SEO_THEME,!0),(0,a.Z)(r,c.FILTER_HEALTH_AND_HYGIENE,!0),(0,a.Z)(r,c.FILTER_NUM_BEDS,!0),(0,a.Z)(r,c.FILTER_TOP_DESTINATIONS,!0),(0,a.Z)(r,c.FILTER_PRIVACY_TYPE,!0),(0,a.Z)(r,c.FILTER_BEACH_ACCESS_FACILITY,!0),(0,a.Z)(r,c.FILTER_SUSTAINABLE_PROPERTY,!0),(0,a.Z)(r,c.FILTER_PREVIOUSLY_USED,!0),(0,a.Z)(r,c.FILTER_THAI_PASS,!0),(0,a.Z)(r,c.FILTER_UNIT_CONFIG,!0),r),f=(i={},(0,a.Z)(i,c.FILTER_PRICE_BUCKETS,!0),(0,a.Z)(i,c.FILTER_PRICE_SLIDER,!0),(0,a.Z)(i,c.FILTER_POPULAR,!0),(0,a.Z)(i,c.FILTER_CLASS,!0),(0,a.Z)(i,c.FILTER_DISTANCE,!0),(0,a.Z)(i,c.FILTER_PAYMENT_METHOD,!0),(0,a.Z)(i,c.FILTER_OUT_OF_STOCK,!0),(0,a.Z)(i,c.FILTER_DEALS,!0),(0,a.Z)(i,c.FILTER_24HR_RECEPTION,!0),(0,a.Z)(i,c.FILTER_FREE_CANCELLATION,!0),(0,a.Z)(i,c.FILTER_MEALPLAN,!0),(0,a.Z)(i,c.FILTER_HOTEL_TYPE,!0),(0,a.Z)(i,c.FILTER_POPULAR_NEARBY_LANDMARKS,!0),(0,a.Z)(i,c.FILTER_TWIN_DOUBLE,!0),(0,a.Z)(i,c.FILTER_REVIEW_SCORE,!0),(0,a.Z)(i,c.FILTER_FACILITIES,!0),(0,a.Z)(i,c.FILTER_MIN_BATHROOMS,!0),(0,a.Z)(i,c.FILTER_ROOM_FACILITIES,!0),(0,a.Z)(i,c.FILTER_DISTRICT,!0),(0,a.Z)(i,c.FILTER_CHAINS,!0),(0,a.Z)(i,c.FILTER_FAMILY_FRIENDLY_PROPERTY,!0),(0,a.Z)(i,c.FILTER_HT_BEACH,!0),(0,a.Z)(i,c.FILTER_PRIVATE_BRAND,!0),(0,a.Z)(i,c.FILTER_DISTANCE_TO_SKI_LIFT_FILTER,!0),(0,a.Z)(i,c.FILTER_SEO_THEME,!0),(0,a.Z)(i,c.FILTER_HEALTH_AND_HYGIENE,!0),(0,a.Z)(i,c.FILTER_NUM_BEDS,!0),(0,a.Z)(i,c.FILTER_TOP_DESTINATIONS,!0),(0,a.Z)(i,c.FILTER_PRIVACY_TYPE,!0),(0,a.Z)(i,c.FILTER_GENIUS_BENEFITS,!0),(0,a.Z)(i,c.FILTER_BEACH_ACCESS_FACILITY,!0),(0,a.Z)(i,c.FILTER_SUSTAINABLE_PROPERTY,!0),(0,a.Z)(i,c.FILTER_PREVIOUSLY_USED,!0),(0,a.Z)(i,c.FILTER_THAI_PASS,!0),(0,a.Z)(i,c.FILTER_UNIT_CONFIG,!0),i),p=["offset","activeTab","sb","src_elem"];o={},(0,a.Z)(o,c.FILTER_PRICE_BUCKETS,[c.FILTER_PRICE_SLIDER]),(0,a.Z)(o,c.FILTER_PRICE_SLIDER,[c.FILTER_PRICE_BUCKETS])},5174:function(e,t,n){"use strict";n.d(t,{d:function(){return a}});var r=n(24327),i=n(27116),o=n(50810);function a(e){var t=e.ucfac,n=e.ucfgff,a=e.ffsau,s=e.highlightedPropertyId,u=e.tripThemeId,c=e.destType,l=e.destId,d=e.latitude,f=e.longitude,p=e.travelPurpose,v=e.sorter,h=e.selectedFilters,_=e.checkin,g=e.checkout,E=e.nbAdults,b=e.nbChildren,m=e.childrenAges,I=e.nbRooms,T=e.postcard,L=e.sleepingRoomMatch,y=e.showApartHotels,R=(0,r.K)({pathname:"/searchresults.html"}),O=R.searchParams;if(_&&g&&(O.set("checkin",_),O.set("checkout",g)),l&&c&&(O.set("dest_id",String(l)),O.set("dest_type",String(c).toLowerCase())),"undefined"!==typeof d&&"undefined"!==typeof f&&(O.set("latitude",String(d)),O.set("longitude",String(f))),"undefined"!==typeof p){var S=(0,o.DT)(parseInt(String(p),10));S&&O.set(o.w3,S)}return h&&O.set(i.mT,h),v&&O.set("order",v),"undefined"!==typeof E&&(O.set("group_adults",String(E)),O.set("req_adults",String(E))),"undefined"!==typeof I&&O.set("no_rooms",String(I)),"undefined"!==typeof b&&(O.set("group_children",String(b)),O.set("req_children",String(b))),m&&m.forEach((function(e){O.append("age",String(e)),O.append("req_age",String(e))})),s&&O.set("highlighted_hotels",String(s)),u&&O.set("trip_theme",String(u)),t&&O.set("ucfac",t),n&&O.set("ucfgff",n),a&&O.set("ffsau",a),T&&O.set("postcard",T),L&&O.set("slp_r_match_to",L),y&&O.set("shw_aparth",y),R}},50810:function(e,t,n){"use strict";n.d(t,{DT:function(){return a},iX:function(){return o},w3:function(){return i}});var r="business",i="sb_travel_purpose";function o(e){return function(e){return e.get(i)===r}(e)?1:2}function a(e){return 1===e?r:2===e?"leisure":void 0}},24327:function(e,t,n){"use strict";n.d(t,{K:function(){return g}});var r,i,o=n(79399),a=((r={DEFAULT:["label","sid","utm_source","utm_medium","utm_term","utm_content","utm_campaign","gclid"]})[n(98178).N.EXTRANET]=["hotel_id","lang","ses"],r);!function(e){e.app="app",e.book="book"}(i||(i={}));var s={app:"www",book:"secure"},u={app:"w",book:"b"},c={app:"app",book:"book"},l={app:"app",book:"book"},d="booking.com",f=new RegExp("^(.*?)\\.?(booking.com|booking.cn)$"),p=/^(?:w|b)(\d+)$/,v=/^(\w+)\-(app|book|devapp|devbook).*?\.dev$/,h=/^(?:app|book)\.dqs$/;function _(e,t){var n=new Set;null==t||t.forEach((function(t,r){n.has(r)?e.append(r,t):(e.set(r,t),n.add(r))}))}function g(e){return function(){var e=(0,o.T)(),t=e.getBasePageUrl();if(!t)throw new Error("Cannot construct URLs without base page URL, most likely it is an integration error. Please report this issue to #capla channel in Slack.");var n=function(e,t,n,r){var i=new URLSearchParams,o=t&&a.hasOwnProperty(t)?t:"DEFAULT";return a[o].forEach((function(t){var n=e.searchParams.get(t);n&&i.set(t,n)})),"number"===typeof(null==n?void 0:n.id)&&i.set("aid",n.id.toString()),(null==n?void 0:n.label)&&i.set("label",n.label.toString()),r&&e.searchParams.forEach((function(e,t){var n;(0===(n=t).indexOf("exp_")||0===n.indexOf("b_feature_running_")||"exp_all"===n||"hotel_account_id"===n)&&i.set(t,e)})),i}(t,e.getSiteType(),e.getAffiliate(),e.isInternalIp());return function(r){var i=new URL(""+t.origin+t.pathname),o=r.host?function(e,t){var n=e.host.match(f);if(!n)return e;var r=n[1],i=n[2];return""===r||r===s.app||r===s.book?e.host=s[t]+"."+i:v.test(r)?e.host=r.replace(v,"$1-"+c[t]+".dev."+d):h.test(r)?e.host=l[t]+".dqs."+d:p.test(r)&&(e.host=r.replace(p,u[t]+"$1."+d)),e}(i,r.host):i;return r.pathname&&(o.pathname=r.pathname),o.hash=r.hash||"",e.isRobotRequest()||(_(o.searchParams,n),_(o.searchParams,r.searchParams)),o}}()(e)}},40841:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var a=i.apply(null,n);a&&e.push(a)}else if("object"===o)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},66360:function(e,t,n){"use strict";n.d(t,{df:function(){return _},YD:function(){return E}});var r=n(32735),i="Invariant failed";var o=function(e,t){if(!e)throw new Error(i)};function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=new Map,l=new Map,d=new Map,f=0;function p(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,i=r.root,a=r.rootMargin,s=r.threshold;if(c.has(e)&&o(!1),e){var u=function(e){return e?d.has(e)?d.get(e):(f+=1,d.set(e,f.toString()),d.get(e)+"_"):""}(i)+(a?s.toString()+"_"+a:s.toString()),p=l.get(u);p||(p=new IntersectionObserver(h,n),u&&l.set(u,p));var v={callback:t,element:e,inView:!1,observerId:u,observer:p,thresholds:p.thresholds||(Array.isArray(s)?s:[s])};return c.set(e,v),p.observe(e),v}}function v(e){if(e){var t=c.get(e);if(t){var n=t.observerId,r=t.observer,i=r.root;r.unobserve(e);var o=!1,a=!1;n&&c.forEach((function(t,r){r!==e&&(t.observerId===n&&(o=!0,a=!0),t.observer.root===i&&(a=!0))})),!a&&i&&d.delete(i),r&&!o&&r.disconnect(),c.delete(e)}}}function h(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,i=c.get(r);if(i&&n>=0){var o=i.thresholds.some((function(e){return i.inView?n>e:n>=e}));void 0!==t&&(o=o&&t),i.inView=o,i.callback(o,e)}}))}var _=function(e){var t,n;function i(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a(u(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),a(u(t),"node",null),a(u(t),"handleNode",(function(e){t.node&&(v(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),a(u(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.componentDidMount=function(){this.node||o(!1)},c.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(v(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(v(this.node),this.node=null)},c.componentWillUnmount=function(){this.node&&(v(this.node),this.node=null)},c.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;p(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},c.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!==typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var i=this.props,o=i.children,a=i.as,u=i.tag,c=(i.triggerOnce,i.threshold,i.root,i.rootMargin,i.onChange,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]));return(0,r.createElement)(a||u||"div",s({ref:this.handleNode},c),o)},i}(r.Component);a(_,"displayName","InView"),a(_,"defaultProps",{threshold:0,triggerOnce:!1});var g={inView:!1,entry:void 0};function E(e){void 0===e&&(e={});var t=(0,r.useRef)(),n=(0,r.useState)(g),i=n[0],o=n[1],a=(0,r.useCallback)((function(n){t.current&&v(t.current),n&&p(n,(function(t,r){o({inView:t,entry:r}),t&&e.triggerOnce&&v(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]);return(0,r.useEffect)((function(){t.current||i===g||e.triggerOnce||o(g)})),[a,i.inView,i.entry]}},37017:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},8821:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},85169:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return i}})},47169:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},13613:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66017);function i(e,t){if(null==e)return{};var n,i,o=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},92577:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49139);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},49139:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37017);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}}]);
//# sourceMappingURL=https://s3-main-01.booking.com/internal-static/capla/static/js/797.75d55ce2.chunk.js.map