1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19505],{50490:function(e,t,r){r.d(t,{s:function(){return h}});var a=r(52983),s=r(32187),n=r(58562),l=r(20006),o=r(64647),i=r(765);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m={capsule:{width:"100%",isolation:"isolate",position:"relative"},upsideCapsule:{display:"flex",flexDirection:"column-reverse"},header:{borderRadius:"12px 12px 0 0",backgroundColor:"#924833",height:"4px",position:"static",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},upsideHeader:{borderRadius:"0 0 12px 12px"},headerLarge:{backgroundColor:"#1E2643",height:"48px",position:"relative"},headerAuto:{backgroundColor:"#1E2643",position:"relative",padding:"10px",height:"auto"},content:{position:"relative",borderRadius:"0 0 12px 12px",backgroundColor:"#fff",overflow:"hidden",border:"solid 1px #d1d1d1"},upsideContent:{marginTop:"-1px",borderRadius:"12px 12px 0 0"},contentNoHeader:{marginTop:"-1px",borderRadius:"12px"},contentLargeHeader:{paddingTop:"34px",marginTop:"-35px"},upsideContentLargeHeader:{paddingTop:"0",marginTop:"0",paddingBottom:"34px",marginBottom:"-35px"},label:{fontFamily:"Trident, Newsreader, Times New Roman, Times, serif",verticalAlign:"-3px"},checkIcon:{position:"absolute",display:"flex",top:"-12px",right:"-9px",left:"-9px",justifyContent:"flex-end"}},p=({additionalStyle:e={root:{},header:{},content:{},icon:{},label:{}},color:t,isHeaderNone:r,isLargeHeader:a,isHeaderAuto:s,upside:n})=>({computedCapsuleStyle:d(d(d({},m.capsule),n?m.upsideCapsule:null),e.root),computedHeaderStyle:d(d(d(d(d(d({},m.header),a?m.headerLarge:null),s?m.headerAuto:null),n?m.upsideHeader:null),t?{backgroundColor:t}:null),e.header),computedHeaderFullStyle:d(d(d(d(d(d({},m.header),{},{justifyContent:"space-between",paddingLeft:"20px",paddingRight:"20px",cursor:"pointer"},a?m.headerLarge:null),s?m.headerAuto:null),n?m.upsideHeader:null),t?{backgroundColor:t}:null),e.header),computedHeaderFullStyleCollapsed:d(d(d(d(d(d(d({},m.header),{},{justifyContent:"space-between",paddingLeft:"20px",paddingRight:"20px",cursor:"pointer"},a?m.headerLarge:null),s?m.headerAuto:null),n?m.upsideHeader:null),t?{backgroundColor:t}:null),e.header),{},{borderRadius:"5px"}),computedContentStyle:d(d(d(d(d(d({},m.content),n?m.upsideContent:null),a?m.contentLargeHeader:null),a&&n?m.upsideContentLargeHeader:null),r?m.contentNoHeader:null),e.content),computedIconWrapperStyle:d({},e.icon),computedLabelStyle:d(d(d({},m.label),e.label),{},{marginLeft:"10px"}),computedCheckIconStyle:d({},m.checkIcon),computedChevronIconlStyle:{display:"flex",width:"9px",height:"9px",stroke:"white",strokeWidth:"2px",alignItems:"center",marginTop:"-3px"}});var u=r(97458);let x="small",h=({additionalStyle:e,children:t,className:r,color:i,contentClassName:c,header:d=x,icon:m=n.UZ.ALL_INCLUSIVE,label:h,upside:g,validated:f,isAccordion:b=!1,dataTestId:j})=>{let N="large"===d,v="auto"===d,{computedCapsuleStyle:P,computedCheckIconStyle:y,computedContentStyle:k,computedHeaderStyle:w,computedHeaderFullStyle:O,computedHeaderFullStyleCollapsed:C,computedIconWrapperStyle:D,computedLabelStyle:E,computedChevronIconlStyle:R}=p({additionalStyle:e,color:i,isHeaderNone:"none"===d,isLargeHeader:N,isHeaderAuto:v,upside:g}),{0:A,1:I}=(0,a.useState)(!b);return a.Children.count(t)?(0,u.jsxs)("section",{className:(0,s.d)("Capsule",r),style:P,"data-testid":j,children:["none"!==d&&(0,u.jsx)("div",{onClick:b?()=>{I(e=>!e)}:()=>{},style:b?A?O:C:w,children:(N||v)&&(0,u.jsxs)(a.Fragment,{children:[(0,u.jsxs)("div",{className:"flex items-center",children:[(0,u.jsx)("div",{style:D,children:(0,u.jsx)(l.J,{name:m,width:D.width||"1.25rem"})}),(0,u.jsx)("span",{style:E,children:h})]}),b&&(0,u.jsx)("span",{style:R,children:(0,u.jsx)(l.J,{name:"select",width:"1em",className:(0,s.d)("flex",{"rotate-180 transform":A})})})]})}),(0,u.jsxs)("div",{className:c,style:k,children:[f&&(0,u.jsx)("div",{className:"relative",children:(0,u.jsx)("div",{style:y,children:(0,u.jsx)(l.J,{className:"text-success",name:n.UZ.
1CHECK_OUTLINE,width:"3rem"})})}),b?(0,u.jsx)(o.UnmountClosed,{isOpened:A,children:t}):t]})]}):null}},61444:function(e,t,r){r.d(t,{S:function(){return p}});var a=r(765),s=r(52983),n=r(32187),l=r(18696);let o=({color:e="white",colorBorder:t="lightGrey",orientation:r="top"}={})=>({default:{thRoot:"flex ltr:flex-row rtl:flex-row-reverse relative",thInner:`bg-${e} border-${"top"===r?"t":"b"}-1 border-${t} -m${"top"===r?"x":""}-1 overflow-hidden px-5 p${"top"===r?"t":"b"}-5 text-center whitespace-nowrap`}});var i=r(97458);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m=({className:e,color:t,colorBorder:r,height:a,hasBottomOrientation:s})=>(0,i.jsxs)("svg",{className:(0,n.d)("fill-current",`text-${t}`,e),viewBox:"0 0 15 30",height:a,style:{flexBasis:a/2},children:[(0,i.jsx)("g",{children:(0,i.jsx)("g",{transform:`translate(-61.000000, ${s?-155.5:-156.5})`,children:(0,i.jsx)("g",{transform:"translate(66.000000, 166.000000)",children:(0,i.jsx)("g",{children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{d:"M10,21H-5L2.8-3.6C3.9-6.8,6.8-9,10-9"})})})})})}),(0,i.jsx)("g",{children:(0,i.jsx)("g",{transform:`translate(-61.000000, ${s?-155.5:-156.5})`,children:(0,i.jsx)("g",{transform:"translate(66.000000, 166.000000)",children:(0,i.jsx)("g",{children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{style:{strokeWidth:"1px"},className:`fill-transparent stroke-current text-${r}`,d:"M-5,21L2.8-3.6C3.9-6.8,6.8-9,10-9"})})})})})})]}),p=({children:e,className:t,color:r=l.DM.WHITE,colorBorder:a=l.DM.LIGHT_GREY,dataTestId:c="strip-button",height:p=30,onClick:u,orientation:x="top",theme:h="default"})=>{if(!s.Children.count(e))return null;let{thInner:g,thRoot:f}=o({color:r,colorBorder:a,orientation:x})[h],b="bottom"===x,j={color:r,colorBorder:a,height:p,hasBottomOrientation:b},N=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(m,d({className:(0,n.d)("transform",{"-scale-y-1":b})},j)),(0,i.jsx)("span",{className:g,style:{height:p},children:e}),(0,i.jsx)(m,d({className:(0,n.d)("-scale-x-1 transform",{"-scale-y-1":b})},j))]});return u?(0,i.jsx)("button",{className:(0,n.d)(f,t),"data-testid":c,onClick:u,type:"button",children:N}):(0,i.jsx)("div",{className:(0,n.d)(f,t),"data-testid":c,children:N})}},60535:function(e,t,r){r.d(t,{E:function(){return ef}});var a=r(52983),s=r(58562),n=r(40021),l=r(42715),o=r(58536),i=r(46910),c=r(20006),d=r(19060),m=r(32187),p=r(62314),u=r(76316),x=r(37383),h=r(83711),g=r(97458);let f=({arrivalDate:e,className:t,duration:r,resort:a})=>{let n=(0,x.p6)("DD/MM"),o=(0,p.XE)({date:e,duration:r,format:u.yJ,unit:"days"});return(0,g.jsxs)("h2",{className:(0,m.d)("flex items-start gap-10 font-brand text-24 leading-tight text-black md:text-28 lg:text-32",t),"data-testid":"AlternativeDate",children:[(0,g.jsx)(c.J,{className:"shrink-0 text-orange",hasRtl:!0,name:s.UZ.WARNING,width:"2em"}),(0,g.jsxs)("span",{children:[(0,g.jsx)(h.H,{className:"block",template:(0,l.t)("booking.counterProposalPopIn.noAvailabilityOnCriterionLabel"),values:{resortName:a.name}}),(0,g.jsx)(h.H,{className:"block text-orange",template:(0,l.t)("booking.counterProposalPopIn.notAvailableDates"),values:{arrivalDate:n(e,"YYYYMMDD")||"",departureDate:n(o,"YYYYMMDD")||""}})]})]})};var b=r(765),j=r(23104),N=r(50490),v=r(18453);let P=({className:e,template:t,values:r})=>(0,g.jsxs)("p",{className:(0,m.d)("flex items-center gap-10 text-14",e),"data-testid":v.y8.DEPARTURE,children:[(0,g.jsx)(c.J,{className:"shrink-0 text-sienna",hasRtl:!0,name:s.UZ.DATE,width:"1.875rem"}),(0,g.jsx)(h.H,{dataTestId:"DateSummary",template:t,values:r,valuesClassName:{arrivalDate:"font-bold text-sienna",departureDate:"font-bold text-sienna"}})]}),y=({description:e,value:t})=>{let{0:r,1:s}=(0,a.useState)(t),{0:n,1:l}=(0,a.useState)(t),{0:o,1:i}=(0,a.useState)("");return(0,a.useEffect)(()=>{s(n),l(t),t!==n&&i("animate-flipperLeave")},[t]),(0,g.jsxs)("span",{"data-testid":t,className:"relative isolate",children:[!!e&&(0,g.jsx)("span",{className:"sr-only","data-testid":"srOnly",children:e}),(0,g.jsx)("span",{className:`block text-center ${o}`,"data-testid":"Flipper-value",onAnimationEnd:e=>{switch(e.animationName){case"animate-flipperLeave":case"animate-flipperEnter":i("animate-flipperEnter")}},children:"animate-flipperLeave"===o?r:n},o)]})},k=({buttonLabel:e,className:t,onSubmit:r,suggestion:a,title:s})=>{let n=(0,x.p6)("D MMMM YYYY");return(0,g.jsxs)("div",{className:t,"data-testid":"AlternativeDateSuggestionCriteria",children:[s&&(0,g.jsx)("p",{className:"mb-5 text-16 text-black",children:s}),(0,g.jsxs)(N.s,{contentClassName:"flex flex-col gap-10 p-20",children:[(0,g.jsx)(P,{template:(0,l.t)("booking.counterProposalPopIn.fromTo"),values:{arrivalDate:n(a.resortArrivalDate,"YYYYMMDD")||"",departureDate:n(a.resortDepartureDate,"YYYYMMDD")||""}}),(0,g.jsxs)("div",{className:"flex items-center justify-center gap-10 font-bold text-sienna",children:[(0,g.jsx)(y,{value:a.price.total}),(0,g.jsx)(y,{value:(0,l.t)("booking.priceDetails.packagePrice.totalPrice")})]}),(0,g.jsx)(j.z,{className:"w-full","data-testid":"AlternativeProposalsModalButton",onClick:()=>r(a.resortArrivalDate),children:e})]})]})};var w=r(99816),O=r(59800),C=r(83688),D=r(79151);let E={h:408,w:734},R=({className:e,onClose:t,resort:r})=>{let a=(0,i.r)({actionGA:"checkPricesKO",categoryGA:"search"});return(0,g.jsxs)("div",{className:(0,m.d)("w-full",e),children:[(0,g.jsx)("div",{className:"overflow-hidden rounded-12",children:(0,g.jsx)(D.E,{altMsg:r.name,dimensions:E,hasLazyLoading:!1,imageUrl:r.image})}),!!t&&(0,g.jsxs)("button",{className:"mt-20 flex items-center gap-5 font-sans text-16 text-sienna",onClick:()=>{t&&t(),a({labelGA:"backResortPage"})},type:"button",children:[(0,l.t)("booking.counterProposalPopIn.doNotCheckPriceLabel"),
1(0,g.jsx)(c.J,{name:s.UZ.ARROW_RIGHT})]})]})},A=({children:e,className:t,immersiveResort:r,onClose:a,title:s})=>{let{isTablet:n}=(0,w.F)();return(0,g.jsxs)("div",{className:(0,m.d)(t),children:[(0,g.jsx)(C.D,{className:"mb-20",theme:"title-brand-n1",children:s}),(0,g.jsxs)("div",{className:"flex gap-20",children:[n?(0,g.jsx)("div",{className:"grid grid-cols-1 gap-20 sm:grid-cols-2",children:e}):(0,g.jsx)(O.R,{backwardLabel:(0,l.t)("common.scrollBackward"),className:"-mx-20",forwardLabel:(0,l.t)("common.scrollForward"),children:(0,g.jsx)("div",{className:"flex gap-10 px-20",children:e})}),r&&(0,g.jsx)(R,{onClose:a,resort:r})]})]})};function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(t){(0,b.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let T=({durations:e,onSelectNewDuration:t,trackingData:r})=>(0,g.jsx)(A,{title:(0,l.t)("booking.counterProposalPopIn.durationsLabel"),children:e.map(s=>{let{duration:n}=s.data,o=e.length>1;return(0,g.jsx)(k,{buttonLabel:(0,l.t)("booking.counterProposalPopIn.checkPriceLabelDuration"),className:(0,m.d)({"last:scroll-x-ghost-m-20 last:scroll-x-ghost-m w-280 flex-none sm:w-auto":o,"flex-1":!o}),onSubmit:()=>{t({proposalIds:s.ids,duration:n}),r("duration_check")},suggestion:L(L({},s.data),{},{price:{total:s.data.price.total.formattedValue}}),title:(0,g.jsxs)(a.Fragment,{children:[(0,l.t)("booking.counterProposalPopIn.durationLabel")," ",(0,g.jsx)("span",{className:"text-18 font-bold text-sienna",children:(0,l.t)("booking.counterProposalPopIn.durationsSuggestions",{duration:n})})]})},n)})});var S=r(20334),M=r.n(S),G=r(18696);let U={default:{thRoot:"w-full bg-white border-1 rounded-4 shadow-sm relative",thButton:"min-h-50 flex flex-1 border-1 leading-0 overflow-hidden rounded-4 text-14 bg-saffron border-saffron text-white items-center text-current text-initial lg:me-10 justify-center md:justify-between",thClear:"px-10 shrink-0 text-current",thClearSize:"0.625rem",thIcon:"shrink-0 mx-10",thLabel:"min-h-50 flex-1 mx-10 overflow-hidden flex items-center whitespace-nowrap",thSubmitButton:"bg-success cursor-pointer font-bold flex justify-center items-center leading-0 rounded-4 text-14 text-white mt-15 lg:mt-0 lg:flex-1 w-full lg:w-auto"}};var Y=r(74831),B=r(67913),_=r(17969),H=r(21302),Z=r(77516),F=r(6683),J=r(64647),$=r(76327),W=r(61444);let z=({children:e,className:t,iconName:r,onClick:a,theme:s="default"})=>{let{thButton:n,thIcon:l,thLabel:o}=U[s];return(0,g.jsxs)("button",{className:(0,m.d)(n,t),onClick:a,type:"button",children:[(0,g.jsx)(c.J,{className:l,name:r,width:"1em"}),(0,g.jsx)("span",{className:o,children:e})]})};var K=r(39469),V=r(8058);let q=({bookingEngineEntryPoint:e,continueToBookingEngine:t,departureCities:r,hasOtherProposals:n,onModify:o,proposals:d,resort:p,searchCriteria:{adultsCount:u,arr
1ivalDate:x,departureCity:h,duration:f,kidsCount:b},seeOtherProposalsCallback:N,theme:v="default"})=>{let{isDesktop:P}=(0,w.F)(),{0:y,1:k}=(0,a.useState)(!1),O=(0,i.r)(),{price:C,allInclusiveServices:D}=d[0];if(!C)return null;let{thRoot:E,thSubmitButton:R}=U[v],A=h===H.L,I=document.createEvent("Event");I.initEvent(B.f,!0,!0);let L=document.createEvent("Event");L.initEvent(_.Q,!0,!0);let T=document.createEvent("Event");T.initEvent(Y.h,!0,!0);let S=t=>()=>{o&&o(),e===Z.BOOKING_ENGINE_ENTRIES.PRICE_REMOTE&&setTimeout(()=>{document.dispatchEvent(t)},200)},q=M()(x),Q=r.find(e=>h===e.value),{bestPrice:X,total:ee}=C,et=P?4:2;return(0,g.jsxs)(a.Fragment,{children:[n&&(0,g.jsx)(j.z,{className:"lg:mt-30",color:P?G.DM.WHITE:G.DM.SAFFRON,colorBg:P?G.DM.SAFFRON:G.DM.LIGHT_GREY,colorBorder:P?G.DM.SAFFRON:G.DM.LIGHT_GREY,onClick:()=>{O({actionGA:"checkPriceKO",categoryGA:"resort",labelGA:"seeOtherProposals"}),N()},children:(0,l.t)("booking.counterProposalPopIn.seeOtherProposalsButton")}),(0,g.jsxs)("div",{className:(0,m.d)(E),children:[(0,g.jsxs)("div",{className:"flex flex-col items-center p-10",children:[(0,g.jsxs)("div",{className:"flex w-full justify-between",children:[(0,g.jsx)(K.E,{product:p}),(0,g.jsxs)("div",{className:"w-full text-center lg:flex lg:w-auto lg:items-center lg:text-right",children:[(0,g.jsxs)("div",{className:"hidden gap-10 lg:flex lg:items-center",children:[(0,g.jsx)(c.J,{className:"text-saffron",name:s.UZ.ALL_INCLUSIVE,width:"1.5rem"}),(0,g.jsx)("div",{className:"font-brand text-16 text-saffron",children:(0,l.t)("booking.priceDetails.packagePrice.allInclusive")})]}),(0,g.jsx)($.t,{bestPrice:X,className:"inline-flex",hasInitialPrice:!0,hasInstalment:!1,initialPrice:ee,unit:(0,l.t)("booking.priceDetails.packagePrice.totalPrice")})]})]}),(0,g.jsxs)("div",{className:"flex-between mt-10 flex w-full flex-wrap lg:flex-nowrap",children:[(0,g.jsx)(z,{iconName:s.UZ.DATE,onClick:o?S(I):void 0,children:`${q.format("DD MMM")} - ${q.add(f,"d").format("DD MMM")}`}),(0,g.jsx)(z,{iconName:s.UZ.PEOPLE_DOUBLE,onClick:o?S(L):void 0,children:(0,F.ym)({adultsCount:u,kidsCount:b})}),(0,g.jsx)(z,{iconName:A?s.UZ.NO_TRANSPORT:s.UZ.TRANSPORT,onClick:o?S(T):void 0,children:Q?Q.name:""}),(0,g.jsx)(j.z,{className:(0,m.d)(R,"w-full min-w-80 lg:w-[250px]"),onClick:()=>{O({actionGA:"checkPriceKO",categoryGA:"resort",labelGA:"rate_check"}),t()},type:"submit",children:(0,l.t)("common.continue")})]}),o&&(0,g.jsx)(j.z,{color:G.DM.SAFFRON,colorBg:G.DM.TRANSPARENT,colorBorder:G.DM.SAFFRON,iconLeft:{name:s.UZ.PEN},onClick:()=>{O({actionGA:"checkPriceKO",categoryGA:"resort",labelGA:"rate_modify"}),o()},children:(0,l.t)("common.modify")}),(0,g.jsxs)("div",{className:"w-full px-25",children:[(0,g.jsx)("div",{className:"flex flex-wrap",children:D?.slice(0,et).map(e=>g.jsx(V.M,{service:e,className:"w-full lg:w-1/2"},e.label))}),D?.length>et&&(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(J.Collapse,{isOpened:y,children:(0,g.jsx)("div",{className:"flex-wra flex",children:D.slice(et,D.length).map(e=>(0,g.jsx)(V.M,{service:e,className:"w-full lg:w-1/2"},e.label))})}),y?null:(0,g.jsx)("div",{className:"w-full"})]})]})]}),D?.length>et&&(0,g.jsx)("div",{className:"absolute left-1/2 flex -translate-x-1/2 transform items-center justify-center",children:(0,g.jsx)(W.S,{className:"text-center text-12 font-bold text-saffron underline",height:30,onClick:()=>k(!y),orientation:"bottom",children:(0,g.jsxs)("div",{className:"flex items-center gap-10 text-14",children:[y?(0,l.t)("priceRemote.closeAllInclusiveDetails"):(0,l.t)("priceRemote.openAllInclusiveDetails"),(0,g.jsx)(c.J,{className:"transition-transform text-saffron",name:s.UZ.ARROW_DOWN,rotation:y?180:0,width:"0.625rem"})]})})})]})]})};var Q=r(20444);let X=({className:e,proposal:{price:t},title:r})=>{let o=(0,n.bp)();return t?(0,g.jsx)("h2",{className:(0,m.d)("flex items-center gap-10 text-24 font-bold leading-tight text-orange md:text-28 lg:text-32",e),children:(0,Q.LZ)(o)&&t.gap>=30||t.gap<30?(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.J,{hasRtl:!0,name:s.UZ.LIGHTBULB,width:"1em"}),r]}):(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(c.J,{hasRtl:!0,name:s.UZ.LIGHTBULB,width:"4rem"}),(0,l.t)("booking.counterProposalPopIn.callCenterAdvise"),(0,g.jsxs)("span",{className:"flex items-center gap-5 text-18",children:[(0,g.jsx)(c.J,{hasRtl:!0,name:s.UZ.PHONE_BUBBLE,width:"4rem"}),(0,g.jsxs)("span",{children:[(0,g.jsx)("span",{children:(0,l.t)("booking.counterProposalPopIn.pleaseCallLabel")})," ",(0,l.t)("travelAdvisor.phoneNumber")," ",(0,g.jsx)("span",{className:"text-16 text-black",children:(0,l.t)("booking.counterProposalPopIn.callCost")})]})]})]})}):null},ee=({className:e,proposal:t,title:r})=>t?(0,g.jsx)(X,{className:e,proposal:t,title:r}):(0,g.jsxs)("h2",{className:(0,m.d)("flex items-start gap-10 font-brand text-24 leading-tight text-orange md:text-28 lg:text-32",e),children:[(0,g.jsx)(c.J,{className:"shrink-0",hasRtl:!0,name:s.UZ.LIGHTBULB,width:"1em"}),r]}),et=({className:e,dates:t,onClose:r,onSubmit:a,resort:s,trackingData:n})=>(0,g.jsx)(A,{className:e,immersiveResort:s,onClose:r,title:(0,l.t)("booking.counterProposalPopIn.weSuggestLabel",{resortName:s.name}),children:t.map(e=>(0,g.jsx)(k,{buttonLabel:(0,l.t)("booking.counterProposalPopIn.checkPriceLabel"),onSubmit:e=>{a(e),n("date_check")},suggestion:e},e.dateOffset))}),er=(0,a.forwardRef)((e,t)=>(0,g.jsxs)("div",{className:(0,m.d)("relative isolate flex w-full justify-center",e.className),"data-testid":"AlternativeProposalsSeparatorDashed",ref:t,children:[(0,g.jsx)("hr",{className:"absolute top-1/2 m-0 block h-1 w-full border-0 border-t-1 border-dashed border-grey p-0"}),(0,g.jsx)("p",{className:"z-1 bg-white px-25 py-10 text-24 font-bold text-black",children:(0,l.t)("booking.common.or")})]}));var ea=r(73352),es=r.n(ea),en=r(80477),el=r(4156),eo=r.n(el),ei=r(61346),ec=r(9415);function ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function em(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ed(Object(r),!0).forEach(function(t){(0,b.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let ep=({categoryGA:e="resort",className:t,onClick:r,scrollToBookingEngineEntryPoint:a,suggestion:s})=>{let n=(0,en.useRouter)(),o=(0,i.r)({actionGA:"checkPricesKO",categoryGA:e}),c=()=>{let{id:e,name:t,href:l}=s.resort,o=`${l}?${eo().buildQuery(es()(n.query,["dynamicPage"]))}`;r?r(e,t):n.push(o).then(()=>{a&&a()})};return(0,g.jsxs)("div",{className:t,"data-testid":"AlternativeResortThumbnail",children:[(0,g.jsx)(ec.x,em(em({},(0,ei.dC)(s.resort)),{},{hasLazyLoading:!1,onClick:e=>{e.target instanceof HTMLImageElement&&(c(),o({labelGA:"resort_checkThumbnail"}))}})),(0,g.jsx)(j.z,{className:"mt-20 w-full","data-testid":"AlernativeResortThumbnailButton",onClick:()=>{c(),o({actionGA:"checkPricesKO",categoryGA:"resort",labelGA:"resort_check"})},children:(0,l.t)("booking.counterProposalPopIn.checkPriceLabelResort")})]})},eu=({adults:e,className:t,kids:r})=>(0,g.jsxs)("div",{className:(0,m.d)("flex items-center gap-10 text-14",t),"data-testid":v.y8.ATTENDEES,children:[(0,g.jsx)(c.J,{className:"shrink-0 text-sienna",hasRtl:!0,name:s.UZ.PEOPLE_DOUBLE,width:"1.875rem"}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("p",{"data-testid":"PackagePriceSummary-guestsItem",children:[(0,g.jsx)("span",{className:"font-bold text-sienna",children:e}),` ${(0,F.U3)((0,l.t)("booking.common.adult"),(0,l.t)("booking.common.adults"),e)}`]},"adults"),r>0&&(0,g.jsxs)("p",{"data-testid":"PackagePriceSummary-guestsItem",children:[(0,g.jsx)("span",{className:"font-bold text-sienna",children:r}),` ${(0,F.U3)((0,l.t)("booking.common.child"),(0,l.t)("booking.common.children"),r)}`]},"children")]})]}),ex=({className:e,departure:t,transportIcon:r})=>{let n=s.UZ.NO_TRANSPORT;return(0,g.jsxs)("div",{className:(0,m.d)("flex items-center gap-10 text-14",e),"data-testid":v.y8.TRANSPORT,children:[(0,g.jsx)(c.J,{className:"shrink-0 text-sienna",hasRtl:!0,name:t?r:n,width:"1.875rem"}),t?(0,g.jsxs)(a.Fragment,{children:[(0,l.t)("common.transport.from")," ",(0,g.jsx)("span",{className:"font-bold text-sienna",children:t})]}):(0,l.t)("booking.priceDetails.packagePrice.noTransport")]})},eh=({adultsNumber:e,arrivalDate:t,className:r,departureCity:a,duration:n,kidsNumber:o})=>{let i=(0,x.p6)("D MMMM YYYY"),d=(0,p.XE)({date:t,duration:n,format:u.yJ,unit:"days"});return(0,g.jsxs)(N.s,{className:r,contentClassName:"flex flex-col gap-10 p-20",dataTestId:"AlternativeResortCriteria",children:[(0,g.jsx)(P,{template:(0,l.t)("booking.counterProposalPopIn.fromTo"),values:{arrivalDate:i(t,"YYYYMMDD")||"",departureDate:i(d,"YYYYMMDD")||""}}),(0,g.jsx)(eu,{adults:e,kids:o}),(0,g.jsx)(ex,{departure:"NO"!==a?a:null,transportIcon:s.UZ.TRANSPORT}),(0,g.jsxs)("p",{className:"flex items-start gap-5 text-12 font-bold text-orange",children:[(0,g.jsx)(c.J,{className:"shrink-0 translate-y-[0.2em]",name:s.UZ.WARNING,width:"1em"}),(0,l.t)("booking.counterProposalPopIn.resortCounterProposalTransportReassurance")]})]})},eg=({adultsNumber:e,arrivalDate:t,categoryGA:r="resort",departureCity:s,duration:n,kidsNumber:o,suggestions:i,selectResortHandler:c,scrollToBookingEngineEntryPoint:d})=>{let{isTablet:m}=(0,w.F)();return(0,g.jsxs)("div",{"data-testid":"AlternativeResort",children:[(0,g.jsx)(C.D,{className:"mb-20",theme:"title-brand-n1",children:(0,l.t)("booking.counterProposalPopIn.resortCounterProposalTitle")}),(0,g.jsxs)("div",{className:"grid grid-cols-1 gap-20 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:[(0,g.jsx)(eh,{adultsNumber:e,arrivalDate:t,className:"flex-1",departureCity:s,duration:n,kidsNumber:o}),m?(0,g.jsx)(a.Fragment,{children:i.map(e=>(0,g.jsx)(ep,{categoryGA:r,onClick:c,scrollToBookingEngineEntryPoint:d,suggestion:e},e.resort.id))}):(0,g.jsx)(O.R,{className:"-mx-20",backwardLabel:(0,l.t)("common.scrollBackward"),forwardLabel:(0,l.t)("common.scrollForward"),children:(0,g.jsx)("div",{className:"flex gap-10 px-20",children:i.map(e=>(0,g.jsx)(ep,{categoryGA:r,className:"last:scroll-x-ghost-m-20 last:scroll-x-ghost-m w-280 flex-none",onClick:c,scrollToBookingEngineEntryPoint:d,suggestion:e},e.resort.id))})})]})]})},ef=({bookingEngineEntryPoint:e,disableAlternativePrice:t=!1,goToBookingEngine:r,i18n:m,onClose:p,onSelectNewDuration:u,onSubmit:x,proposals:h,resort:b,scrollToBookingEngineEntryPoint:j,searchCriteria:{adultsCount:N,arrivalDate:v,departureCity:P,duration:y,kidsCount:k},searchCriteria:w,selectResortHandler:O,suggestions:{dates:C,resorts:D,durations:E}})=>{let R=(0,n.bp)(),A=(0,i.r)({actionGA:"checkPricesKO",categoryGA:"search"}),I=(0,a.useRef)(null),L=h[0],S=!t&&L?.price?.gap>o.xz&&(R.isSeller||L.price.gap<o.J8),M=!t&&L?.price?.gap>o.xz,G=C.length>0,U=D.length>0,Y=E.length>0,B=G||U||Y,_=e=>{A({labelGA:e})};return(0,g.jsxs)("div",{"data-testid":"AlternativeProposalsModal",children:[M&&(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(ee,{proposal:L,title:(0,l.t)("booking.counterProposalPopIn.rateCounterProposalTitle")})}),S&&(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(q,{bookingEngineEntryPoint:e,continueToBookingEngine:r,departureCities:m.bookingCriteria?.departureCities||[],hasOtherProposals:B,onModify:p?()=>{p(),j&&j()}:void 0,proposals:h,resort:b,searchCriteria:w,seeOtherProposalsCallback:()=>{I.current&&I.current.scrollIntoView()}})}),B&&S&&(0,g.jsx)(er,{ref:I}),!B||M||t?(0,g.jsx)(d.P,{children:(0,g.jsx)(ee,{className:"my-40",title:(0,l.t)("booking.counterProposalPopIn.otherProposals")})}):(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(f,{arrivalDate:v,duration:y,resort:b})}),G&&(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(et,{dates:C,onClose:p,onSubmit:x,resort:b,trackingData:_})}),G&&(Y||U)&&(0,g.jsx)(er,{}),Y&&(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(T,{durations:E,onSelectNewDuration:u,trackingData:_})}),Y&&U&&(0,g.jsx)(er,{}),U&&(0,g.jsx)(d.P,{className:"my-40",children:(0,g.jsx)(eg,{adultsNumber:N,arrivalDate:v,departureCity:P,duration:y,kidsNumber:k,scrollToBookingEngineEntryPoint:j,selectResortHandler:O,suggestions:D})}),!R.isCmta&&(0,g.jsx)(d.P,{className:"mt-40 border-t-1 border-grey",children:(0,g.jsxs)("div",{className:"flex items-center justify-center gap-5 py-20 text-18 font-bold text-black",children:[(0,g.jsx)(c.J,{className:"shrink-0 text-green",hasRtl:!0,name:s.UZ.PHONE_BUBBLE,width:"3em"}),(0,g.jsxs)("p",{children:[(0,l.t)("booking.counterProposalPopIn.contactCallCenter")," ",(0,g.jsx)("span",{className:"text-green",children:(0,l.t)("booking.counterProposalPopIn.callCenterNumber")})," ",(0,g.jsx)("span",{className:"text-12 font-normal",children:(0,l.t)("booking.counterProposalPopIn.callCost")})]})]})})]})}}
1,62314:function(e,t,r){r.d(t,{L9:function(){return i},XE:function(){return l}});var a=r(20334),s=r.n(a),n=r(58536);r(46910);let l=({date:e,duration:t,format:r,unit:a})=>s()(e,r).add(t,a).format(r),o=(e,t)=>e?.price?.gap>0&&(e.price.gap<n.J8||t.isSeller&&e.price.gap>=n.xz),i=({appContext:e,disableAlternativePrice:t,proposal:r,suggestions:a})=>{let s=a.dates.length>0,n=a.resorts.length>0,l=a.durations.length>0,i=!t&&r&&o(r,e);return{labelGA:`displayCounterProposals${i?"_rate10":""}${s?"_date":""}${n?"_resort":""}${l?"_duration":""}`}}},74831:function(e,t,r){r.d(t,{h:function(){return a}});let a="openCriteriaTransport"},67913:function(e,t,r){r.d(t,{f:function(){return a}});let a="openCriteriaWhen"},17969:function(e,t,r){r.d(t,{Q:function(){return a}});let a="openCriteriaWho"},71092:function(e,t,r){r.d(t,{O:function(){return i}}),r(52983);var a=r(58562),s=r(42715),n=r(32187),l=r(20006),o=r(97458);let i=({className:e})=>(0,o.jsxs)("span",{className:(0,n.d)("text-initial inline-flex shrink-0 items-center gap-5 text-12 font-bold leading-1 text-ultramarine",e),children:[(0,o.jsx)("span",{className:"inline-flex aspect-square size-[1.65em] items-center justify-center rounded-full bg-ultramarine leading-0 text-white sm:size-[2em]",children:(0,o.jsx)(l.J,{name:a.UZ.DIAMOND,width:"0.85em"})}),(0,s.t)("common.product.exclusiveCollectionTag")]})},39469:function(e,t,r){r.d(t,{E:function(){return l}}),r(52983);var a=r(32187),s=r(71092),n=r(97458);let l=({className:e,product:t})=>(0,n.jsxs)("div",{className:(0,a.d)("flex flex-col items-start text-black",e),children:[(0,n.jsxs)("span",{className:"order-last inline-flex flex-wrap items-center gap-5 font-sans text-20 font-semibold","data-testid":"ProductBlockHeader-name",children:[t.name,t.isExplicitEC&&(0,n.jsx)(s.O,{className:"md:mx-5"}),t.seasonTrad&&(0,n.jsx)("span",{className:"shrink-0 whitespace-nowrap rounded-pill bg-turquoise px-10 py-5 text-center text-10 font-bold leading-1 text-white",children:t.seasonTrad})]}),(0,n.jsx)("span",{className:"truncate font-sans text-14 font-semibold text-sienna","data-testid":"ProductBlockHeader-country",children:t?.destination?.country})]})},8058:function(e,t,r){r.d(t,{M:function(){return c}}),r(52983);var a=r(32187),s=r(58562),n=r(42715),l=r(24147),o=r(20006),i=r(97458);let c=({className:e,service:t})=>{let{description:r,icon:c,label:d}=t;return r?(0,i.jsx)(l.V,{className:e,collapseIconName:s.UZ.ARROW_DOWN,collapseLabel:(0,n.t)("common.included"),expandIconName:s.UZ.ARROW_DOWN,expandLabel:(0,n.t)("common.included"),hasKeepCollapsedContent:!1,iconName:c,id:c,isExpanded:!1,theme:"remote",title:d,children:(0,i.jsx)("p",{className:"px-15 pb-15 text-14",children:r})},c):(0,i.jsxs)("section",{className:(0,a.d)("animation-duration-500 flex animate-fadeIn items-center justify-between gap-10 rounded-12 border-1 border-lightGrey bg-white p-15 shadow-diffuse",e),children:[(0,i.jsxs)("span",{className:"flex flex-1 items-center gap-10 font-semibold",children:[(0,i.jsx)(o.J,{className:"shrink-0 text-sienna",name:c,width:"1.875rem"}),d]}),(0,i.jsx)("span",{className:"flex shrink-0 items-center whitespace-nowrap text-14 text-black",children:(0,n.t)("common.included")})]})}},17574:function(e,t,r){r.d(t,{Lc:function(){return m},jt:function(){return p}});var a=r(44874),s=r(64599),n=r(6505);let{PAGE_TYPES:{RESORT:l,TOUR:o,CRUISE:i,RESORT_MICE:c}}=a.b2cPagesService;function d(){let e=(0,s.fp)(n.Yb);return(e?.[n.V1]||[]).map((e,t)=>"string"==typeof e?{id:e,be:!1,timestamp:Date.now()+t}:e)}function m(){return d().map(({id:e})=>e)}function p(e,t){if([l,o,i,c].includes(e)&&t?.id){let e=d(),r=e.find(e=>e.id===t.id);r?r.be=t.be||r.be:e=[t,...e],e=e.sort((e,t)=>Number(t.be)-Number(e.be)||t.timestamp-e.timestamp).slice(0,n.r8),(0,s._m)(n.Yb,{[n.V1]:e})}}}}]); 2//# sourceMappingURL=19505-d2556bfc59868978.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.