1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18994],{5874:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return U}});var n=r(55675),a=r(765),i=r(20334),o=r.n(i),s=r(80477),l=r(52983),c=r(23099),u=r(1888),p=r(57982),d=r(86639),g=r(77516),b=r(2530),f=r(61069),m=r(40021),y=r(88947),h=r(75745),v=r(54268),P=r(60535),O=r(92554),E=r(29170),j=r(47699),w=r(58242),T=r(42715),C=r(6088),_=r(37848),A=r(58920),D=r(41329),L=r(47850),S=r(4672),N=r(76316),k=r(74176),I=r(19060);let R=e=>E.ZP.runQuery(` 2 query { 3 config { 4 booking { 5 counterProposalPopIn { 6 descriptionTextCmta 7 } 8 partners { 9 errorMessages { 10 technicalError 11 } 12 } 13 } 14 } 15 } 16 `,e,{requestName:j.d8u});var x=r(6505),F=r(82302),q=r(97458);let M=["errors"];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let H=(e,t)=>{switch(t.type){case"NEW_SEARCH":return $($({},e),{},{isLoading:!0,data:null,searchParams:$($({},e.searchParams),t.payload)});case"END_LOADING":return $($({},e),{},{isLoading:!1,data:t.payload});case"ERROR_LOADING":return $($({},e),{},{isLoading:!1});default:return e}},Z=async(e,t)=>E.ZP.runQuery("",t,{requestName:j.fou,queryId:j.fou,prebuiltArgs:{resortArgs:`resortId : "${e}"`,resortId:e,cmsArgs:`content: "${t.cmsContent}" release: "${t.cmsRelease}"`,offerArgs:'offerName: ""',minAgeInformation:"",minAgeErrorMessage:"",resortStartingPrice:w.A()}}),G=()=>{let e=(0,m.bp)(),t=(0,y.lO)(),r=(0,s.useRouter)(),{0:a,1:i}=(0,l.useState)(!1),{0:p,1:E}=(0,l.useState)(!1),{0:j,1:w}=(0,l.useState)(!1),B=(0,c.I0)(),G=(0,c.v9)(L.PG),U=(0,c.v9)(O.Fv),K=(0,c.v9)(O.Jg).length,{0:{data:Q,isLoading:W,searchParams:z},1:Y}=(0,l.useReducer)(H,{isLoading:!0,data:null,searchParams:{duration:r.query[d.yB]||b.$I,departureCity:r.query[d.py]||S.MV,productId:r.query.product||"",arrivalDate:(0,N.o6)(o()(r.query[d.yg]))}});(0,l.useEffect)(()=>{let{duration:a,departureCity:o,productId:s,arrivalDate:l}=z,c=async()=>{let{config:t}=await R(e);(0,T.dz)(t)};(async()=>{if(!a||!o||!s||"string"!=typeof s||!l){await c(),i("technicalError"),Y({type:"ERROR_LOADING",payload:{}});return}let u={productId:s,departureCity:o,duration:a,newArrivalDate:l,bookingEngineEntry:g.BOOKING_ENGINE_ENTRIES.QUICK_SEARCH},p=(0,f.If)(u,e,r,t.pageType);try{let t=await B(p),{proposals:{errors:r}}=t,a=(0,n.Z)(t.proposals,M);if(r?.length>0)throw Object.assign(Error("FetchError"),{errors:r});let{config:i,resort:o,bookingCriteria:l}=await Z(s,e);(0,T.dz)(i),Y({type:"END_LOADING",payload:$($({},a),{},{resort:o,i18n:$($({},i),{},{bookingCriteria:l})})}),B((0,v.E9)())}catch(n){await c();let{errors:e=[]}=n,t=e.some(({statusCode:e})=>401===e),r=e?.[0]?.errorCode||"";r&&"noProposalAvailable"!==r?i(r):t?E(!0):w(!0),Y({type:"ERROR_LOADING",payload:{errors:e}})}})()},[z]);let V=(0,l.useMemo)(()=>({dates:Q?.dateSuggestion??[],durations:Q?.durationSuggestions??[],resorts:Q?.suggestions??[]}),[Q?.dateSuggestion,Q?.durationSuggestions,Q?.suggestions]);if(W&&j){let e={pageName:x.u2.SHOPPING_QUICKSEARCH_UNAVALIABILITY};return(0,q.jsx)(h.M,$({},e))}return p?null:a?(0,q.jsx)(I.P,{children:(0,q.jsx)(k.T,{title:(0,F.Wd)(a),description:(0,T.t)("booking.counterProposalPopIn.descriptionTextCmta")})}):j?(0,q.jsx)(I.P,{children:(0,q.jsx)(k.T,{title:(0,T.t)("booking.accommodation.errorMessages.noProposalAvailable"),description:(0,T.t)("booking.counterProposalPopIn.descriptionTextCmta")})}):Q?.proposals?.length||Q?.dateSuggestion?.length||Q?.suggestions?.length?(0,q.jsx)(P.E,{i18n:Q.i18n,proposals:Q.proposals,resort:Q.resort,onSubmit:e=>{Y({type:"NEW_SEARCH",payload:{arrivalDate:e}})},suggestions:V,goToBookingEngine:async()=>{let{config:t,legalInformations:n}=await (0,C.g)(e);t&&n&&(B((0,A.n2)(t,n)),B((0,D.ep)(G)));let a=Q.proposals[0].id;B((0,f.oH)({resort:Q.resort,proposals:{proposals:Q.proposals,resort:Q.resort},proposalId:a})),r.push((0,_.L$)(_.nn,Q.proposals,Q.resort,a,r.query))},onSelectNewDuration:({proposalIds:e})=>{let t=$($({},r.query),{},{proposalIds:e,selectedProposalId:e[0]});r.push(u.Q("booking",{page:_.nn},t))},selectResortHandler:e=>{Y({type:"NEW_SEARCH",payload:{productId:e}})},searchCriteria:{duration:z.duration,departureCity:z.departureCity,arrivalDate:z.arrivalDate,adultsCount:U,kidsCount:K}}):null};G.pageId=p.as,G.pageType=x.u2.BE,G.disableFooter=!0,G.disableHeader=!0;var U=G},41329:function(e,t,r){"use strict";r.d(t,{CR:function(){return i},ep:function(){return o}});var n=r(67797),a=r(95992);function i(e){return(0,n.ZP)(a.zj,{adultsNumber:e})}function o(e){return(0,n.ZP)(a.Sj,e)}},75745:function(e,t,r){"use strict";r.d(t,{M:function(){return L}});var n=r(765),a=r(73352),i=r.n(a),o=r(80477),s=r(52983),l=r(6505),c=r(55675),u=r(23099),p=r(88947),d=r(40021),g=r(28856),b=r(17574),f=r(34603),m=r(69800),y=r.n(m),h=r(91947),v=r(24826),P=r(10965),O=r(443
166);let E=["children","track"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var T=e=>{let{children:t,track:r}=e,n=(0,c.Z)(e,E),a=(0,d.bp)(),i=(0,p.lO)(),m=(0,u.v9)(f.L),{asPath:j}=(0,o.useRouter)(),T=n.siteSection||i.siteSection,{countryCode:C,countryName:_,currency:A,googleTrackingId:D,language:L,locale:S}=a,N=(0,u.v9)(P.C),k={page_name:"landing_page_prebookingform",site_section:T,user:{connection_status:(0,h.Zp)(a),neolane_id:(0,h.g5)(a),visitor_guid:D,full_visitor_id:D,environment:v.default.get("tracking.environment"),currency:A,locale:S,country_code:C,country_language:L,country_name:_,lead_scoring_range:m,fidelity_status:N?.loyaltyProgram?.status||""}},{trackEvent:I}=(0,O.K)();return(0,s.useEffect)(()=>{(0,b.jt)(i.pageType,{id:n.resortCode,be:!1,timestamp:Date.now()})},[n.pageName]),(0,s.useEffect)(()=>{(0,g.tu)(w(w(w({},n),{},{siteSection:T},T&&T.includes(l.Og)?{BE_customerStatus:a.customerStatus}:void 0),m?{leadScoring:m}:null),a,i.pageId);let e=(0,h.SP)(j);"Shopping_Landing"===T&&e?I(l.Hz.PAGE_VIEW,k):r&&r(),y().remove(l.qU),y().remove(l.Fl)},[n.pageName]),t??null},C=r(76989),_=r(97458);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let L=e=>{let t;let{query:{trackingPageLoadAppendSuffix:r}}=(0,o.useRouter)(),n=(0,u.v9)(P.C),a=(t=D(D({},e.trackingKey?i()((0,C.U2)(e.trackingKey)||{},"skiEquipment","skiingEquipment","snowboardingEquipment","hikingEquipment"):{}),{},{event:l.UZ,fidelityStatus:n?.loyaltyProgram?.status||""},i()(e,"children","location","history","match","trackingKey")),(r&&(t=D(D({},t),{},{pageName:`${t.pageName}_${r}`})),e.pageName===l.IY)?i()(t,["upsellExcursion","upsellRevenue","donation","paymentDeposit","paymentMethod","paymentPlan","paymentStatus","paymentType","donation"]):t);return s.useEffect(()=>{e.event&&(0,C.t8)(a)},[e.event]),(0,_.jsx)(T,D(D({},a),{},{track:e.track}))}},58242:function(e,t,r){"use strict";function n(){return` 17 remote { 18 date 19 placeholder 20 searchAction 21 title 22 } 23 `}function a(){return` 24 startingPrice { 25 allInclusive 26 bookingButtonLabel 27 dateFormat 28 departureCityLabel 29 departureDateLabel 30 durationUnit 31 endDateLabel 32 longDateFormat 33 roomOnly 34 seeDetails 35 stayDeparture 36 } 37 `}function i(e){let{cmsContent:t="",cmsRelease:r=""}=e,n=`content : "${t}", release : "${r}"`;return` 38 resort { 39 season(${n}) { 40 winter 41 summer 42 button 43 } 44 ${a()} 45 pricePopin { 46 buttonLabel 47 buttonCruiseLabel 48 buttonTourLabel 49 priceIsLabel 50 roomAvailability 51 startingPriceDescriptionWithoutTransport 52 startingPriceDescriptionWithTransport 53 taxeAndFees 54 } 55 tripadvisor { 56 menubar { 57 reviews 58 } 59 } 60 moreResultsLabels { 61 label 62 buttonLabel 63 } 64 } 65 `}function o(){return` 66 price { 67 format{ 68 from 69 instead 70 flightIncluded 71 unitPerTrip 72 unitPerNight 73 unitTotalPerTrip 74 unitTotalPerTripIndicative 75 viewRates 76 } 77 } 78 `}function s(){return` 79 common { 80 dateFormatPlaceholder 81 loadLess
82 loadMore 83 selectedCriteriasLabel { 84 _1 85 n 86 } 87 } 88 booking { 89 form { 90 dateFormat 91 dayPlaceholder 92 monthPlaceholder 93 yearPlaceholder 94 departureDateTitle 95 selectAdultsLabels { 96 _1 97 n 98 } 99 selectChildrenLabels { 100 _1 101 n 102 } 103 } 104 editCriteria { 105 validateCriteria 106 } 107 } 108 faceting { 109 intro 110 facetClear 111 oneResortThatMatchYourCriteria 112 nbResortsThatMatchYourCriteria 113 viewResorts 114 searchTitle 115 searchLinkLabel 116 suggestedRequests { 117 title 118 items { 119 label 120 url 121 } 122 } 123 reset 124 validate 125 when { 126 title 127 subTitle 128 durations 129 duration 130 from 131 bestPrice 132 lastAvailability 133 notAvailable 134 departureDateTitle 135 arrivalDateTitle 136 durationSingular 137 durationPlural 138 reinsurance 139 pricesBasedOn 140 } 141 who { 142 addChildcare 143 adults 144 ageComment 145 ageSectionChildcareSubtitle 146 ageSectionSubtitle 147 birthdatePlaceholder 148 kids 149 kidsAgeLimit 150 kidsBirthdate 151 subTitle 152 title 153 withKidsFacetLabel 154 withChildcareFacetLabel 155 } 156 compare { 157 selectResort 158 selected 159 dateAndTransportMandatory 160 unavailableThumbnail 161 warningMessage 162 title 163 buttonLabel 164 cancelLabel 165 collapseLabel 166 expandLabel 167 dropzoneLabel 168 } 169 topCountries { 170 enabled 171 title 172 items { 173 id 174 } 175 } 176 transport { 177 comment 178 defaultDepartureCityOnlyForDefaultTransportation 179 departingFrom 180 departureCities { 181 reinsurance 182 } 183 noTransportNeededMobile 184 selectPlaceholder 185 subTitle 186 titleFrom 187 transportNeededMobile 188 } 189 availabilities { 190 childcare 191 enterBirthdate 192 years 193 year 194 months 195 noChildcare 196 noChildcareFrom0 197 available 198 unavailable 199 unknown 200 urgentizationSingular 201 urgentizationPlural 202 } 203 showFilterCTA 204 hideFilterCTA 205 comfort { 206 title 207 } 208 }`}function l(){return`common { 209 close 210 continue 211 included 212 allInclusive 213 }`}function c(){return`${s()} 214 ${l()} 215 booking { 216 form { 217 selectAdultsLabels { 218 _1 219 n 220 } 221 selectChildrenLabels { 222 _1 223 n 224 } 225 selectDates 226 selectParticipants
227 selectTransports 228 proposalsLoaderLabel 229 errors { 230 birthdayFormat 231 } 232 } 233 priceCalendar { 234 offers { 235 bestPrice { label } 236 urgentisation { label rateToDisplay } 237 } 238 } 239 } 240 price { 241 format{ 242 from 243 instead 244 viewRates 245 unitTotalPerTrip 246 unitTotalPerTripIndicative 247 } 248 } 249 priceRemote { 250 openAllInclusiveDetails 251 closeAllInclusiveDetails 252 notAvailable 253 notAvailableCTA 254 notAvailableCTATransportation 255 notAvailableTransportation 256 priceForAll 257 priceRemoteButton 258 priceRemoteBeEntryButton 259 linkToCalendar 260 errors { 261 birthdateError 262 noAvailabilities 263 notOnSale 264 technicalError 265 invalidCriteria 266 noTransport 267 } 268 rateCounterProposalLabel 269 optionHold { 270 title 271 description 272 descriptionTransport 273 highlight 274 } 275 } 276 resort { 277 startingPrice { 278 allInclusive 279 } 280 } 281 `}r.d(t,{A:function(){return a},Ah:function(){return i},Pd:function(){return s},jC:function(){return c},kH:function(){return n},nt:function(){return o},y0:function(){return l}})},74176:function(e,t,r){"use strict";r.d(t,{T:function(){return o}}),r(52983);var n=r(20006),a=r(58562),i=r(97458);let o=({title:e,description:t})=>(0,i.jsxs)("div",{className:"flex flex-col items-center","data-testid":"QuickSearchUnavailability",children:[(0,i.jsxs)("div",{className:"QuickSearchUnavailability-header flex w-full items-center p-25 md:py-50",children:[(0,i.jsx)("div",{className:"mr-40",children:(0,i.jsx)(n.J,{className:"shrink self-start text-orange",name:a.UZ.WARNING,width:"3rem",hasRtl:!0})}),(0,i.jsx)("h1",{className:"m-0 text-20 text-black lg:text-24",children:e})]}),null!=t&&(0,i.jsx)("p",{className:"QuickSearchUnavailability-descriptions m-0 w-full px-25 text-12",children:t})]})},89635:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quick-search",function(){return r(5874)}])}},function(e){e.O(0,[11396,9415,19505,92888,49774,40179],function(){return e(e.s=89635)}),_N_E=e.O()}]); 282//# sourceMappingURL=quick-search-b435d1ca31a08198.js.map
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.