1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9845],{84518:function(i,e,n){n.d(e,{x:function(){return s}});var t=n(51490),o=n(88767);let l=async(i,e,n)=>await e({url:"itinerary/addon",method:"POST",body:i,signal:n}),s=i=>{let e=(0,t.wh)(),{mutate:n,mutateAsync:s,...r}=(0,o.useMutation)(i=>l(i,e,void 0),i);return{UpdateItineraryAddon:n,UpdateItineraryAddonAsync:s,...r}}},68881:function(i,e,n){n.d(e,{A:function(){return s}});var t=n(51490),o=n(88767);let l=async(i,e,n)=>await e({url:"itinerary/hotel/updateroom",method:"POST",body:i,signal:n}),s=i=>{let e=(0,t.wh)(),{mutate:n,mutateAsync:s,...r}=(0,o.useMutation)(i=>l(i,e,void 0),i);return{getUpdateHotelRoom:n,getUpdateHotelRoomAsync:s,...r}}},17407:function(i,e,n){var t=n(85893),o=n(71021),l=n(31250),s=n(39396),r=n(96486),d=n(67294);let a=i=>{var e,n,a,c,u,g;let{data:h,isMobile:p,showTitle:v=!0}=i,[x,m]=(0,d.useState)(!1),[f,y]=(0,d.useState)([]);return(0,d.useEffect)(()=>{let i=Math.ceil((null==h?void 0:h.length)/(p?2:3)),e=(0,r.chunk)(h,i);y(e)},[h,p]),(0,t.jsxs)(s.sg,{css:{width:"100%","@smMax":{width:"100%"}},children:[v&&(0,t.jsx)(s.xv,{css:{fontSize:"$5",fontWeight:"$bold",lineHeight:"25px",paddingBottom:"10px",fontFamily:"$manrope"},children:"Amenities"}),p?(0,t.jsxs)(s.X2,{css:{justifyContent:"space-between",width:"100%"},children:[(0,t.jsx)(s.sg,{css:{width:"50%",paddingTop:"10px",paddingBottom:"10px",alignSelf:"baseline"},children:null===(c=f[0])||void 0===c?void 0:c.filter((i,e)=>f[0].length>4&&!x?e<4:i).map((i,e)=>{let{icon:n,name:o}=i;return(0,t.jsxs)(s.X2,{css:{gap:8,alignItems:"flex-start",paddingTop:"10px",paddingBottom:"10px"},children:[n,(0,t.jsx)(s.sg,{css:{flex:1,flexWrap:"wrap"},children:(0,t.jsx)(s.xv,{css:{fontFamily:"$manrope"},children:o})})]},e)})}),(0,t.jsx)(s.sg,{css:{width:"50%",paddingTop:"10px",paddingBottom:"10px",alignSelf:"baseline"},children:null===(u=f[1])||void 0===u?void 0:u.filter((i,e)=>f[1].length>4&&!x?e<4:i).map((i,e)=>{let{icon:n,name:o}=i;return(0,t.jsxs)(s.X2,{css:{gap:9,alignItems:"flex-start",paddingTop:"10px",paddingBottom:"10px"},children:[n,(0,t.jsx)(s.sg,{css:{flex:1,flexWrap:"wrap"},children:(0,t.jsx)(s.xv,{css:{fontFamily:"$manrope"},children:o})})]},e)})})]}):(0,t.jsxs)(s.X2,{css:{width:"100%"},children:[(0,t.jsx)(s.sg,{css:{width:"33.3%","@lg":{width:"33.3%",padding:"$9i",alignSelf:"baseline"}},children:null===(e=f[0])||void 0===e?void 0:e.filter((i,e)=>f[0].length>4&&!x?e<4:i).map((i,e)=>{let{icon:n,name:o}=i;return(0,t.jsxs)(s.X2,{css:{gap:8,paddingTop:"10px",paddingBottom:"$12i","@lg":{paddingBottom:"10px"}},children:[n,(0,t.jsx)(s.xv,{css:{color:"#2c2f42",fontFamily:"$manrope"},children:o})]},e)})}),(0,t.jsxs)(s.sg,{css:{width:"33.3%",padding:"$5i",alignSelf:"baseline"},children:[" ",null===(n=f[1])||void 0===n?void 0:n.filter((i,e)=>f[1].length>4&&!x?e<4:i).map((i,e)=>{let{icon:n,name:o}=i;return(0,t.jsxs)(s.X2,{css:{gap:8,paddingTop:"10px",paddingBottom:"10px"},children:[n,(0,t.jsx)(s.xv,{css:{fontFamily:"$manrope"},children:o})]},e)})]}),(0,t.jsxs)(s.sg,{css:{width:"33.3%",padding:"$5i",alignSelf:"baseline"},children:[" ",null===(a=f[2])||void 0===a?void 0:a.filter((i,e)=>f[2].length>4&&!x?e<4:i).map((i,e)=>{let{icon:n,name:o}=i;return(0,t.jsxs)(s.X2,{css:{gap:8,paddingTop:"10px",paddingBottom:"10px"},children:[" ",n,(0,t.jsx)(s.xv,{css:{fontFamily:"$manrope"},children:o})]},e)})]})]}),(null==f?void 0:null===(g=f[0])||void 0===g?void 0:g.length)>4&&!x?(0,t.jsx)(s.xu,{onClick:()=>m(!0),children:(0,t.jsxs)(s.X2,{css:{gap:8,display:"none"},children:[(0,t.jsx)(s.xv,{css:{fontSize:"$8i",fontWeight:"600",lineHeight:"$10i",fontFamily:"$manrope"}}),(0,t.jsx)(o.Z,{})]})}):null,x?(0,t.jsx)(s.xu,{css:{paddingTop:"10px"},onClick:()=>m(!1),children:(0,t.jsxs)(s.X2,{css:{gap:8},children:[" ",(0,t.jsx)(s.xv,{css:{fontSize:"$4",fontWeight:"$bold",lineHeight:"20px",fontFamily:"$manrope"},children:"View less"}),(0,t.jsx)(l.Z,{})]})}):null]})};e.Z=a},95489:function(i,e,n){var t=n(85893),o=n(10206),l=n(39396),s=n(70024),r=n(11163),d=n.n(r),a=n(67294),c=n(75291),u=n(44950);let g=i=>{let{exposureBreakup:e,open:n=!0,onCloseModal:r}=i,g=(0,c.Z)(),h=(0,s.Dv)(u.Z2),{itineraryId:p,flightAliasId:v,regionCode:x}=(0,a.useMemo)(()=>({itineraryId:null==g?void 0:g.itinerary.itineraryId,flightAliasId:null==g?void 0:g.itinerary.flightAliasId,regionCode:null==g?void 0:g.itinerary.regionCode}),[null==g?void 0:g.itinerary.itineraryId,null==g?void 0:g.itinerary.flightAliasId,null==g?void 0:g.itinerary.regionCode]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.xu,{css:{backgroundColor:"blue"},children:(0,t.jsx)(o.Vq.fC,{open:n,onOpenChange:r,children:(0,t.jsx)(o.Vq.VY,{css:{"@lg":{width:"760px",borderRadius:"$4",padding:"56px",overflow:"scroll"}},children:(0,t.jsx)(l.xu,{children:(0,t.jsxs)(l.sg,{children:[(0,t.jsx)(l.kC,{css:{padding:" 16px 0px",justifyContent:"space-between",alignItems:"flex-start",alignSelf:"stretch"},children:(0,t.jsx)(l.xv,{css:{color:"#17181C",fontSize:"18px",fontStyle:"normal",fontWeight:"800",lineHeight:"26px"},children:"Exposure Split"})}),(0,t.jsxs)(l.X2,{css:{height:"40px",border:"#E8EAF8",background:"#F3F4FB",width:"100%",padding:"12px 10px"},children:[(0,t.jsx)(l.sg,{css:{width:"70%"},children:(0,t.jsx)(l.xv,{css:{color:"#333848",fontSize:"11px",fontStyle:"normal",fontWeight:"700",lineHeight:"16px",letterSpacing:"0.4",textTransform:"uppercase"},children:"Line item"})}),(0,t.jsx)(l.sg,{css:{width:"20%"},children:(0,t.jsx)(l.xv,{css:{color:"#333848",fontSize:"11px",fontStyle:"normal",fontWeight:"700",lineHeight:"16px",letterSpacing:"0.4",textTransform:"uppercase",justifyContent:"space-between"},children:"INTERNET COST"})}),(0,t.jsx)(l.sg,{css:{width:"20%"},children:(0,t.jsx)(l.xv,{css:{color:"#333848",fontSize:"11px",fontStyle:"normal",fontWeight:"700",lineHeight:"16px",letterSpacing:"0.4",textTransform:"uppercase"},children:"EXPOSURE"})})]}),null==e?void 0:e.map((i,n)=>(0,t.jsxs)(l.X2,{css:{borderTop:n===e.length-1?"1px solid #e2e8f0":"0px",height:"fit-content",width:"100%",padding:"8px 10px 16px 10px"},children:[(0,t.jsx)(l.sg,{css:{width:"70%"},children:(0,t.jsx)(l.xv,{css:{color:"#333848",fontSize:"13px",fontStyle:"normal",fontWeight:n===e.length-1?"600":"500",lineHeight:"20px"},children:i.title})}),(0,t.jsx)(l.sg,{css:{width:"20%"},children:(0,t.jsx)(l.xv,{css:{color:"#333848",fontSize:"13px",fontStyle:"normal",fontWeight:n===e.length-1?"700":"600",lineHeight:"20px"},children:i.publishedCost})}),(0,t.jsx)(l.sg,{css:{width:"20%"},children:(0,t.jsx)(l.xv,{css:{color:"#A86D00",fontSize:"13px",fontStyle:"normal",fontWeight:n===e.length-1?"700":"600",lineHeight:"20px"},children:i.amount})})]},n)),(0,t.jsx)(l.kC,{css:{justifyContent:"flex-end",paddingTop:"20px"},children:(0,t.jsx)(l.zx,{onClick:()=>{d().push({pathname:h?"/flights/itinerary/".concat(v):"/customize/".concat(x,"/view/").concat(p)},void 0,{shallow:!0})},children:"Okay, Got it"})})]})})})})})})};e.Z=g},59389:function(i,e,n){n.d(e,{Z:function(){return v}});var t=n(85893),o=n(10206),l=n(39396),s=n(11163),r=n.n(s),d=n(67294),a=n(51490),c=n(88767);let u=async(i,e,n)=>await e({url:"cost/flight/updatePnrValidity",method:"POST",body:i,signal:n}),g=i=>{let e=(0,a.wh)(),{mutate:n,mutateAsync:t,...o}=(0,c.useMutation)(i=>u(i,e,void 0),i);return{useUpdatePnrValidity:n,UseUpdatePnrValidityAsync:t,...o}};var h=n(93290);let p=i=>{let{open:e,onCloseModal:n,itineraryId:s,configKey:a}=i,{UseUpdatePnrValidityAsync:c}=g(),[u,p]=(0,d.useState)(""),[v,x]=(0,d.useState)(""),m=(0,d.useMemo)(()=>"".concat(r().query.regionCode),[r()]),f=async()=>{try{let i=await c({configKey:a,expiryDate:u+" "+v+":00.000",itineraryId:s});i.status,n(!1)}catch(e){n(!1)}(0,h.Z)("/customize/".concat(m,"/view/").concat(s))};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.xu,{css:{backgroundColor:"blue"},children:(0,t.jsx)(o.Vq.fC,{open:e,onOpenChange:n,children:(0,t.jsx)(o.Vq.VY,{css:{overflow:"hidden",zIndex:10,padding:0,width:"100%",height:"100%",marginTop:0,"@lg":{width:656,height:"fit-content",borderRadius:"$3"}},children:(0,t.jsxs)(l.sg,{css:{paddingLeft:"$24i",paddingRight:"$24i",paddingBottom:"$24i",marginTop:"$30i"},children:[(0,t.jsx)(l.X2,{css:{justifyContent:"center",alignContent:"center"},children:(0,t.jsx)(l.xv,{css:{lineHeight:"1.125",letterSpacing:"-0.02 em",fontWeight:"$bolder",color:"$black"},children:"ENTER NEW PRICE"})}),(0,t.jsx)(l.xu,{css:{display:"flex",alignItems:"flex-end",justifyContent:"flex-end",width:"$60i"},children:(0,t.jsx)(l.zx,{css:{marginRight:"0",width:"$30i"},onClick:f,children:"Update"})}),(0,t.jsx)(l.xv,{css:{lineHeight:"1.125",marginBottom:"$2i",letterSpacing:"-0.02 em",color:"$grey06",height:"100%",fontSize:"$8i"},children:"Expiry Date"}
1),(0,t.jsx)(l.II,{type:"date",placeholder:"Expiry Date",onChange:i=>{p(i.target.value)},css:{backgroundColor:"#F7F8FB",borderRadius:"$3",marginBottom:"$10i",gap:"$10i",height:"100%",boxShadow:"none",fontSize:"$8i",color:"$grey06",fontWeight:"$bold",paddingLeft:"$4i","&:focus":{boxShadow:"none"}}}),(0,t.jsx)(l.xv,{css:{lineHeight:"1.125",marginBottom:"$2i",letterSpacing:"-0.02 em",color:"$grey06",height:"100%",fontSize:"$8i"},children:"Expiry Time"}),(0,t.jsx)(l.II,{type:"time",placeholder:"Expiry Time",onChange:i=>x(i.target.value),css:{backgroundColor:"#F7F8FB",borderRadius:"$3",height:"100%",boxShadow:"none",fontSize:"$8i",color:"$grey06",fontWeight:"$bold",paddingLeft:"$4i","&:focus":{boxShadow:"none"}}})]})})})})})};var v=p},18875:function(i,e,n){var t=n(85893),o=n(91838),l=n(40759),s=n(39396),r=n(67294),d=n(90083),a=n(25171),c=n(76907),u=n(60675);let g=i=>{let{price:e,isSelected:n,onClick:r}=i;return(0,t.jsxs)(s.kC,{align:"center",justify:"end",css:{gap:"$6i",paddingTop:"16px","& svg":{transform:"unset !important"}},children:[(0,t.jsxs)(s.sg,{css:{gap:"$2i"},children:[(0,t.jsx)(s.xv,{css:{fontWeight:"$bolder",textAlign:"right",fontFamily:"$manrope",lineHeight:"$13i",color:"$grey800","@lg":{fontSize:"$9i !important"}},children:(0,t.jsx)(d.Z,{value:e||0})}),n?(0,t.jsxs)(s.xv,{css:{fontWeight:"$bold",color:"$green600",display:"flex",alignItems:"center",justifyContent:"flex-end",fontSize:"$7i",gap:"$2i"},children:[(0,t.jsx)(u.Z,{width:15,height:15,fill:"#038C55"})," Added"]}):null]}),n?(0,t.jsx)(s.zx,{secondary:!0,outlined:!0,css:{height:"40px",backgroundColor:"$white"},onClick:()=>r("remove"),children:(0,t.jsx)(l.Z,{})}):(0,t.jsxs)(s.zx,{outlined:!0,css:{backgroundColor:"$white",fontFamily:"$manrope",lineHeight:"$10i",fontWeight:"$bolder",fontSize:"$7i",color:"$green500",height:"40px"},onClick:()=>r("add"),children:[(0,t.jsx)(o.Z,{fill:"$primary06"})," Add to itinerary"]})]})},h=i=>{let{activity:e}=i;return(0,t.jsx)(s.sg,{css:{gap:"$8i"},children:(0,t.jsxs)(s.X2,{align:"center",css:{gap:"$4i",flexWrap:"wrap","@lg":{gap:"$6i"}},children:[(0,t.jsxs)(s.kC,{align:"center",css:{gap:"$2i"},children:[(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$normal"},children:"Duration:"}),(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontWeight:"$bolder",fontSize:"$7i",lineHeight:"$10i"},children:e.selectedTourGrade.duration})]}),(0,t.jsxs)(s.kC,{align:"center",css:{gap:"$2i"},children:[(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$normal"},children:"Type:"}),(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontWeight:"$bolder",fontSize:"$7i",textTransform:"capitalize",lineHeight:"$10i"},children:e.selectedTourGrade.transferType.toLowerCase()})]})]})})},p=i=>{var e,n;let{hotel:o}=i;return(0,t.jsx)(s.sg,{css:{gap:"$6i"},children:(0,t.jsxs)(s.kC,{css:{gap:"$2i"},children:[(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontSize:"$7i",lineHeight:"19px"},children:"Room:"}),(0,t.jsx)(s.xv,{css:{color:"$grey700",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$bolder",lineHeight:"$10i"},children:null==o?void 0:null===(e=o.roomsInHotel)||void 0===e?void 0:null===(n=e[0])||void 0===n?void 0:n.name})]})})};function v(i){return"ACTIVITIES"===i.entityType}let x=i=>{var e,n,o;let{item:l,activityById:d,onClick:u,fluidLayout:x,isUncosted:m,openGcmAction:f}=i,y=(0,r.useMemo)(()=>v(l)&&d&&(null==d?void 0:d[null==l?void 0:l.activityId])||{},[d,l]),$=l.bookings,C=v(l)?null==l?void 0:l.activityName:null==l?void 0:l.name;return(0,t.jsxs)(s.xu,{css:{position:"relative"},children:[(0,t.jsxs)(s.sg,{css:{overflow:"hidden",borderRadius:"$4",width:"100%",border:"1px solid #CAC8F8",boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)",minHeight:x?"100%":"420px",background:"linear-gradient(342deg, #EFEFFE -3.1%, #FFF 47.39%)",flexDirection:x?"row":"column",zIndex:1,".image":{transition:"all 0.3s ease 0s"},"&:hover":{".image":{transform:"scale(1.1)"}}},children:[(0,t.jsxs)(s.xu,{css:{position:"relative"},children:[(0,t.jsx)(s.xu,{css:{height:"220px",overflow:"hidden"},children:(0,t.jsx)(a.Z,{src:v(l)?y.mainPhoto:(null==l?void 0:l.entityType)==="HOTELS"?null==l?void 0:null===(e=l.roomsInHotel)||void 0===e?void 0:null===(n=e[0])||void 0===n?void 0:null===(o=n.roomImages)||void 0===o?void 0:o[0]:"https://images.pickyourtrail.com/image_placeholder_2eca9cbf61.png",width:368,height:220,alt:C,style:{objectFit:"cover",objectPosition:"center",width:x?"368px":"100%",height:"220px",filter:(null==l?void 0:l.status)!=="SUCCESS"?"grayscale(100%)":"none"},className:"image"})}),$?(0,t.jsxs)(s.xu,{css:{position:"absolute",borderRadius:"$2",padding:"$i $3i",backgroundColor:"#98FF53",top:"18px",right:"18px",color:"$grey950",fontSize:"$7i",fontWeight:"$bold",lineHeight:"$10i"},children:["Added by ",$," Travellers"]}):null]}),(0,t.jsxs)(s.sg,{css:{padding:"$10i",background:"linear-gradient(342deg, #EFEFFE -3.1%, #FFF 47.39%)",gap:"$10i",height:x?"inherit":"calc(420px - 210px)",width:x?"calc(100% - 345px)":"100%",
1justifyContent:"space-between"},children:[(0,t.jsxs)(s.sg,{css:{gap:"$4i"},children:[(0,t.jsx)(s.xv,{css:{color:"$violet700",fontSize:"$6i",fontWeight:"$extraBold",lineHeight:"$8i",letterSpacing:"0.4px",textTransform:"uppercase",fontFamily:"$manrope"},children:(null==l?void 0:l.entityType)==="ACTIVITIES"?"ACTIVITY ADDONS":"HOTEL ADDON"}),(0,t.jsx)(s.xv,{css:{color:"#21242C",fontSize:"$7i",lineHeight:"$12i",fontWeight:"$bold",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis",fontFamily:"$manrope","@lg":{fontSize:"$8i"}},title:C,children:C}),(null==l?void 0:l.entityType)==="ACTIVITIES"?(0,t.jsx)(h,{activity:y}):(0,t.jsx)(p,{hotel:l})]}),(0,t.jsxs)(s.sg,{children:[(0,t.jsx)(s.iz,{css:{backgroundColor:"#DFDFFC",color:"#DFDFFC"}}),(0,t.jsx)(g,{price:l.publishedCost,isSelected:l.addonSelected,onClick:i=>{(0,c.L9W)(c.Lz6,{Type:i,AddonType:null==l?void 0:l.entityType,AddonName:C,AddonPrice:null==l?void 0:l.publishedCost}),m?f&&f():u({type:i,addonId:l.lineItemOptionId,entityType:l.entityType})}})]})]})]}),(null==l?void 0:l.status)!=="SUCCESS"?(0,t.jsx)(s.xu,{css:{width:"100%",height:!x&&(null==l?void 0:l.addonSelected)?"calc(100% - 82px)":"100%",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",left:"0",backgroundColor:"rgba(0, 0, 0, 0.2)",borderTopLeftRadius:"$4",borderTopRightRadius:"$4",borderBottomLeftRadius:(null==l?void 0:l.addonSelected)?"unset":"$4",borderBottomRightRadius:(null==l?void 0:l.addonSelected)?"unset":"$4"},children:(0,t.jsx)(s.xv,{css:{transform:"rotate(-15deg)",color:"$white",fontSize:"$8i",letterSpacing:"-.25px",fontWeight:"$bold",textAlign:"center",display:"inline-block",padding:"$5i $6i",backgroundColor:"$red500"},children:"Sold out"})}):null]})};e.Z=x},79751:function(i,e,n){var t=n(85893),o=n(39396),l=n(70024),s=n(11163),r=n(67294),d=n(3238),a=n(53041),c=n(69768),u=n(74824),g=n(19880),h=n(9352),p=n(44950),v=n(76907),x=n(83359);let m=i=>{let{itineraryInfo:e}=i,n=(0,s.useRouter)(),m=(0,h.Z)(e),[f,y]=(0,r.useState)(!1),$=(0,l.b9)(p.f6),{itineraryId:C,regionCode:j}=(0,r.useMemo)(()=>{var i,n;return{itineraryId:null==e?void 0:null===(i=e.itinerary)||void 0===i?void 0:i.itineraryId,regionCode:null==e?void 0:null===(n=e.itinerary)||void 0===n?void 0:n.regionCode}},[e]);return(0,r.useEffect)(()=>{$((null==e?void 0:e.displayCurrency)||"INR")},[null==e?void 0:e.displayCurrency,$]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.xu,{css:{backgroundColor:"$white",minHeight:"auto","@lg":{position:"relative",minHeight:"897.5px",overflow:"hidden"}},children:(0,t.jsx)(a.Z,{css:{"@smMax":{padding:0},position:"unset"},children:(0,t.jsxs)(o.X2,{justify:"between",css:{paddingTop:"0",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsx)(o.sg,{id:"day-wise-container",css:{width:"100%",gap:"$8i","@lg":{width:"62.85%",gap:"$32i"}},children:(0,t.jsx)(c.Z,{itineraryInfo:e})}),(0,t.jsx)(o.sg,{css:{width:"100%",zIndex:1,padding:"$14i $8i",backgroundColor:"$white","@lg":{padding:0,flexBasis:"30.33%",display:"flex",backgroundColor:"unset","& .sticky-outer-wrapper":{width:"100%"}}},children:(0,t.jsx)(o.sg,{css:{width:"100%","@lg":{zIndex:1e4,width:"35%",position:"absolute",top:0,bottom:0}},children:(0,t.jsxs)(d.default,{top:98,bottomBoundary:"#day-wise-container",children:[(0,t.jsx)(o.xu,{css:{height:"320px",borderRadius:"$4",overflow:"hidden","@lg":{height:"calc(100vh - 98px)",width:"100%",borderRadius:"unset"}},children:f||["eur","nor"].includes(j)?null:(0,t.jsx)(g.Z,{itineraryInfo:e})}),(0,t.jsx)(o.zx,{size:"lg",css:{fontSize:"$7i",fontWeight:"$bolder",fontFamily:"$manrope",width:"100%",marginTop:"$12i",borderRadius:"$3","@lg":{display:"none"}},onClick:()=>{y(!0),(0,v.L9W)(v.vO6,{leadSource:(0,x.L1)({router:n,lastLocation:{pathname:n.asPath}}),ItineraryType:m?"Unity":"Customize",ItineraryId:C})},children:"Explore Map"})]})})})]})})}),f&&(0,t.jsx)(u.Z,{itineraryInfo:e,open:f,showModal:y})]})};e.Z=m},60351:function(i,e,n){var t=n(85893),o=n(5335),l=n(39396);
1let s=(0,o.zo)(l.xu,{borderRadius:"12px",overflow:"hidden",width:"100%",position:"relative",height:"400px",display:"flex",justifyContent:"flex-end",flexDirection:"column","@lg":{height:"340px"},"&.exclusive":{borderRadius:"14px",border:"3px solid $accent200"}}),r=(0,o.zo)(l.xu,{display:"none",position:"absolute",top:"-3px",left:"0",width:"100%",backgroundColor:"$accent200",color:"$black",padding:"8px 28px",textAlign:"center",fontWeight:"$bold",fontFamily:"$manrope",fontSize:"$6ii",".exclusive & ":{display:"block"}}),d=(0,o.zo)(l.kC,{gap:"$4i","& > *":{padding:"3px 10px",borderRadius:"$pill",fontSize:"$6i",fontWeight:"$bold",textTransform:"uppercase"}}),a=(0,o.zo)(l.xu,{backgroundColor:"$green400",color:"$black"}),c=(0,o.zo)(l.xu,{backgroundColor:"$violet600",color:"$white"}),u=(0,o.zo)(l.sg,{padding:"18px 16px",zIndex:1,position:"relative",gap:"$6i"}),g=(0,o.zo)(l.xv,{fontSize:"$8i",fontWeight:"$bold",color:"$white",lineHeight:"24px",fontFamily:"$manrope",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":2,overflow:"hidden",textOverflow:"ellipsis"}),h=i=>{let{data:e}=i;return(0,t.jsxs)(s,{className:e.exclusive?"exclusive":"",css:{background:"linear-gradient(180deg, rgba(0, 0, 0, 0.00) 57.1%, rgba(0, 0, 0, 0.70) 80.91%), url(".concat(e.image?e.image:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/unity/pyt_fallback.png",") lightgray 50% / cover no-repeat")},children:[(0,t.jsx)(r,{children:"\uD83D\uDD25 Exclusive with Pickyourtrail"}),(0,t.jsxs)(u,{children:[(0,t.jsxs)(d,{children:[e.included?(0,t.jsx)(a,{children:"included"}):null,e.addon?(0,t.jsx)(c,{children:"addon"}):null]}),(0,t.jsx)(g,{title:e.title,children:e.title})]})]})};e.Z=h},64052:function(i,e,n){n.d(e,{Z:function(){return w}});var t=n(85893),o=n(39396),l=n(70024),s=n(5152),r=n.n(s),d=n(11163),a=n(67294),c=n(3238),u=n(53041),g=n(25171),h=n(40804);function p(i){var e;let{data:n}=i;return(0,t.jsxs)(o.sg,{css:{borderRadius:"$4",border:"1px solid #E8EAF8",overflow:"hidden",width:"100%",backgroundColor:"white","@lg":{backgroundColor:"unset"}},children:[(0,t.jsxs)(o.X2,{css:{padding:"$14i $12i $13i $12i",justifyContent:"center",alignItems:"center",gap:"$10i",backgroundColor:"$white"},children:[(0,t.jsx)(o.xv,{css:{fontSize:"$22i",color:"#21242C",fontWeight:"$extraBold",lineHeight:"56px",letterSpacing:"-0.6px",fontFamily:"$manrope"},children:(null==n?void 0:null===(e=n.overallAvgRatings)||void 0===e?void 0:e.toFixed(1))||0}),(0,t.jsxs)(o.sg,{css:{gap:"$3i"},children:[(0,t.jsx)(h.Z,{value:Math.floor(null==n?void 0:n.overallAvgRatings)}),(0,t.jsxs)(o.xv,{css:{color:"#464E67",fontSize:"$8i",fontWeight:"$bold",lineHeight:"$12i",fontFamily:"$manrope"},children:["From ",null==n?void 0:n.googleReviews," reviews"]})]})]}),(0,t.jsxs)(o.X2,{css:{gap:"$4i",backgroundColor:"#F6FAFD",padding:"$6i",justifyContent:"center",alignItems:"center"},children:[(0,t.jsx)(g.Z,{src:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Google.svg",width:24,height:24,alt:""}),(0,t.jsx)(o.xv,{css:{color:"$grey800",fontSize:"$7i",fontWeight:"$bold",lineHeight:"$10i",fontFamily:"$manrope"},children:"Verified Reviews"})]})]})}var v=n(92006),x=n(65197),m=n(44950),f=n(76907),y=n(83359),$=n(70466);let C=r()(()=>Promise.all([n.e(6538),n.e(8074)]).then(n.bind(n,56538)),{loadableGenerated:{webpack:()=>[56538]},ssr:!1}),j=i=>{let{testimonial:e,testimonialRatings:n,regionCode:s,totalCount:r}=i,g=(0,d.useRouter)(),h=(0,l.Dv)(m.s1),[j,w]=(0,a.useState)(!1),[k,b]=(0,a.useState)(null),[I,S]=(0,a.useState)(!1),T=(0,a.useMemo)(()=>{let i=[];return null==e||e.forEach(e=>{Array.isArray(e.testimonialPhotos)&&e.testimonialPhotos.forEach(e=>{i.push({link:e,video:!1})})}),i.slice(0,10)},[e]),A=(0,a.useCallback)(()=>{var i,e,n;let t={pathname:g.asPath,reviewerName:"".concat(null!==(i=null==k?void 0:k.fName)&&void 0!==i?i:""," ").concat(null!==(e=null==k?void 0:k.mName)&&void 0!==e?e:""," ").concat(null!==(n=null==k?void 0:k.lName)&&void 0!==n?n:""),leadSource:(0,y.L1)({router:g,lastLocation:{pathname:g.asPath}})};(0,f.L9W)(f.oxM,t,h||void 0)},[null==k?void 0:k.fName,null==k?void 0:k.lName,null==k?void 0:k.mName,g,h]);return(0,t.jsxs)(u.Z,{css:{"@smMax":{padding:0}},children:[(0,t.jsxs)(o.kC,{id:"testimonial-section",css:{display:"flex",flexDirection:"column",gap:"$6i","@lg":{flexDirection:"row",justifyContent:"space-between"}},children:[n?(0,t.jsx)(o.xu,{css:{display:"flex",backgroundColor:"white",padding:"$12i $10i","@lg":{backgroundColor:"unset",padding:"unset",display:"none"}},children:(0,t.jsx)(p,{data:n})}):null,(0,t.jsxs)(o.sg,{css:{gap:"$6i",width:"100%","@lg":{width:"62.85%",gap:"$24i"}},children:[T.length>0?(0,t.jsxs)(o.sg,{css:{gap:"$10i",backgroundColor:"white",padding:"$12i $10i","@lg":{backgroundColor:"unset",padding:"unset"}},children:[(0,t.jsx)(o.xv,{css:{fontSize:"$9i",fontWeight:"$bolder",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey700"},children:"Photos from Travellers"}),(0,t.jsx)(C,{media:T})]}):null,(0,t.jsx)(o.sg,{css:{gap:"$3i",backgroundColor:"white",padding:"$12i $10i","@lg":{backgroundColor:"unset",padding:"unset"}},children:(0,t.jsx)(v.Z,{testimonials:null!=e?e:[],setOpenReviewModal:w,setcurrentSelectedReview:b,setShowBottomSheet:S,title:"Pickyourtrail's Original Reviews",totalCount:r,regionCode:s})})]}),n?(0,t.jsx)(o.xu,{css:{display:"none","@lg":{position:"static",flexBasis:"30.33%",display:"flex",justifyContent:"flex-end",marginTop:"45px","& .sticky-outer-wrapper":{width:"100%"}}},children:(0,t.jsx)(c.default,{enabled:!(0,$.Z)(),top:130,innerZ:2,bottomBoundary:"#testimonial-section",children:(0,t.jsx)(p,{data:n})})}):null]}),k?(0,t.jsx)(x.Z,{onClicktestimonialExit:A,currentSelectedReview:k,setcurrentSelectedReview:b,setOpenReviewModal:w,setShowBottomSheet:S,openReviewModal:j,showBottomSheet:I}):null]})};var w=j},48730:function(i,e,n){n.d(e,{Z:function(){return C}});var t=n(85893),o=n(5335),l=n(39396),s=n(11163),r=n(66261),d=n(53041),a=n(83873),c=n(64598),u=n(76907),g=n(83359),h=n(68991);n(67294);let p=(0,o.zo)(function(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"734",height:"171",viewBox:"0 0 734 171",fill:"none",style:{position:"absolute",top:"100px",left:"0",width:"70%",height:"100%",opacity:"0.4"},children:[(0,t.jsxs)("g",{opacity:"0.4",children:[(0,t.jsx)("path",{d:"M124.076 19.6282C123.477 25.8848 122.251 38.1279 119.973 59.9212C118.772 77.1912 103.793 104.042 73.8879 90.3055C62.3146 84.9895 56.6254 78.2543 54.6013 71.515C49.4194 54.2614 68.2604 36.9814 73.8879 43.4235C78.2869 48.4592 74.2078 63.8823 54.6013 71.515C56.6254 78.2543 62.3146 84.9895 73.8879 90.3055C103.793 104.042 118.772 77.1912 119.973 59.9212C122.251 38.1279 123.477 25.8848 124.076 19.6282C124.333 16.9432 127.165 15.2023 129.669 16.2062L167.191 31.2531C170.385 32.5337 170.513 37.0069 167.399 38.4685L136.765 52.8433C134.578 53.7777 130.074 57.8329 129.55 66.5788C128.894 77.5111 122.4 110.028 178.808 106.664C183.533 106.313 191.046 105.393 197.863 103.785C200.088 74.8205 217.823 90.9576 212.233 97.4721C209.871 100.226 204.164 102.299 197.863 103.785C197.
164 106.685 197.573 110.037 197.7 113.896C199.098 156.299 338.281 208.257 426.878 124.646C490.742 64.3754 540.52 77.8946 563.125 92.8482C571.88 98.6392 576.559 104.645 576.403 106.664C575.947 112.569 552.199 114.251 563.125 92.8482C540.52 77.8946 490.742 64.3754 426.878 124.646C338.281 208.257 199.098 156.299 197.7 113.896C197.573 110.037 197.64 106.685 197.863 103.785C191.046 105.393 183.533 106.313 178.808 106.664C122.4 110.028 128.894 77.5111 129.55 66.5788C130.074 57.8329 134.578 53.7777 136.765 52.8433L167.399 38.4685C170.513 37.0069 170.385 32.5337 167.191 31.2531L129.669 16.2062C127.165 15.2023 124.333 16.9432 124.076 19.6282Z",fill:"#00373D"}),(0,t.jsx)("path",{d:"M732.356 88.5138C704.966 52.3818 612.457 34.6227 576.403 74.7079C540.349 114.793 575.844 113.896 576.403 106.664C576.962 99.4325 515.475 41.0346 426.878 124.646C338.281 208.257 199.098 156.299 197.7 113.896C196.303 71.4929 218.382 90.3054 212.233 97.4721C207.314 103.205 187.9 105.989 178.808 106.664C122.4 110.028 128.894 77.5111 129.55 66.5788C130.074 57.8329 134.578 53.7777 136.765 52.8433L167.399 38.4685C170.513 37.0069 170.385 32.5337 167.192 31.2531L129.669 16.2062C127.165 15.2023 124.333 16.9432 124.076 19.6282C123.477 25.8848 122.251 38.1279 119.973 59.9212C118.772 77.1912 103.793 104.042 73.8879 90.3055C32.6849 71.3798 66.0623 34.4651 73.8879 43.4235C81.7135 52.3818 62.7085 94.2133 -22.8141 66.5788C-108.337 38.9443 -122.311 -46.7572 -226 38.9443",stroke:"url(#paint0_linear_4671_15029)",strokeWidth:"1.70536",strokeLinecap:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_4671_15029",x1:"-202.519",y1:"41.526",x2:"716.15",y2:"61.8834",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#53E396"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#53E396"})]})})]})},{});var v=n(60351);let x=r.ZP.Link,m={breakpoints:{360:{slidesPerView:1.2,spaceBetween:24,freeMode:!0},1024:{slidesPerView:3,spaceBetween:24,freeMode:!1}}},f=(0,o.zo)(l.xu,{width:"100%",position:"relative","& > :first-child > :first-child":{marginBottom:0},"@lg":{width:"calc(100% - 300px)"},"& .swiper-wrapper":{alignItems:"flex-end","& .swiper-slide":{borderRadius:"12px"}},"& .swiper-nav":{width:"100%",transform:"translateY(-50%)","& .swiper-nav-prev-highlights":{marginLeft:-15},"& .swiper-nav-next-highlights":{marginRight:-15},"& .swiper-nav-elements.swiper-button-disabled":{visibility:"hidden"}}}),y=i=>{let{itineraryId:e,isUnity:n}=i,o=(0,s.useRouter)();return(0,t.jsx)(x,{to:a.c4.ItineraryInclusions,smooth:!0,duration:500,offset:-120,children:(0,t.jsx)(l.zx,{outlined:!0,secondary:!0,onClick:()=>{(0,u.L9W)(u.B53,{leadSource:(0,g.L1)({router:o,lastLocation:{pathname:o.asPath}}),ItineraryType:n?"Unity":"Customize",ItineraryId:e})},css:{border:"1px solid $white",color:"$white",height:"48px",padding:"$6i $8i",fontFamily:"$manrope",boxShadow:"none",fontSize:"$7i",lineHeight:"$10i",fontWeight:"$bolder",width:"100%","@lg":{width:"unset",fontSize:"$8i",lineHeight:"$12i"},"&:hover":{boxShadow:"none",backgroundColor:"$white",color:"$grey900"}},children:"View all inclusions"})})},$=i=>{let{highlights:e,itineraryId:n,isUnity:o}=i,s=null==e?void 0:e.some(i=>null==i?void 0:i.exclusive);return(0,t.jsxs)(l.xu,{css:{backgroundColor:"$accent500",backgroundImage:"url(".concat((0,h.Z)("https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/tripHighlightsUnityMobile.png"),")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",padding:"$14i 0",overflow:"hidden",position:"relative","@lg":{padding:"80px 0",paddingLeft:"unset",paddingRight:"unset",backgroundImage:"url(".concat((0,h.Z)("https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/tripHighlights+Unity.png"),")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}},children:[(0,t.jsx)(l.xu,{css:{display:"none","@lg":{display:"block"}},children:(0,t.jsx)(p,{})}),(0,t.jsx)(d.Z,{css:{"@smMax":{padding:0}},children:(0,t.jsxs)(l.kC,{css:{gap:"$11i",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsxs)(l.sg,{css:{width:"100%",color:"$white",paddingRight:"$8i",paddingLeft:"$8i","@lg":{width:"300px",paddingRight:"0px",paddingLeft:"0px"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$9i",fontWeight:"$bolder",fontFamily:"$manrope",lineHeight:"$13i","@lg":{marginTop:s?"30px":"0px"}},children:"Trip Highlights"}),(0,t.jsx)(l.xv,{css:{color:"$grey200",fontFamily:"$manrope",fontSize:"$8i",lineHeight:"$12i",fontWeight:"$normal",marginTop:"$2i","@lg":{marginTop:"$5i"}},children:"Exclusive activities designed to offer you the ultimate experience"}),(0,t.jsx)(l.kC,{css:{display:"none","@lg":{display:"block",marginTop:"$8i"}},children:(0,t.jsx)(y,{itineraryId:n,isUnity:o})})]}),(0,t.jsx)(f,{children:(0,t.jsx)(c.default,{id:"highlights",componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},sliderConfig:m,sliderArrowBg:"#E8EAF3",sliderArrowBorderColor:"#C7CDE0",sliderArrowPosition:"middle",children:(e||[]).map((i,n)=>(0,t.jsx)(l.xu,{css:{marginLeft:n?"0px":"$8i",marginRight:n===e.length-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},children:(0,t.jsx)(v.Z,{data:i})},"".concat(n,"-highlights")))})}),(0,t.jsx)(l.kC,{css:{display:"block",marginTop:"$3i",marginRight:"$8i",marginLeft:"$8i",marginBottom:"$2i",flex:1,"@lg":{display:"none",marginTop:"0px"}},children:(0,t.jsx)(y,{itineraryId:n,isUnity:o})})]})})]})};
1var C=$},63823:function(i,e,n){var t=n(85893),o=n(5335),l=n(39396),s=n(51490),r=n(70024),d=n(5152),a=n.n(d),c=n(67294),u=n(84518),g=n(44950),h=n(18875);let p=a()(()=>Promise.resolve().then(n.bind(n,64598)),{loadableGenerated:{webpack:()=>[64598]}}),v=(0,o.zo)(l.xu,{width:"100%",position:"relative","& .swiper-nav":{width:"100%","& .swiper-nav-prev-Add-on":{marginLeft:-15},"& .swiper-nav-next-Add-on":{marginRight:-15},"& .swiper-nav-elements.swiper-button-disabled":{visibility:"hidden"}}}),x={breakpoints:{360:{spaceBetween:20,freeMode:!0,slidesPerView:1.1},1024:{spaceBetween:24,slidesPerView:3,freeMode:!1}}},m=i=>{var e;let{itineraryInfo:n,AddonsData:o,AddonHotelCount:d,AddonActivityCount:a,isUncosted:m,openGcmAction:f,sliderConfig:y}=i,{UpdateItineraryAddonAsync:$}=(0,u.x)(),C=(0,r.b9)(g.w4),j=(0,c.useMemo)(()=>a+(d||0),[a,d]),w=(0,c.useCallback)(async i=>{let{type:e,entityType:t,addonId:o}=i;try{var l;let r=await $({addonId:o,entityType:t,itineraryId:null==n?void 0:null===(l=n.itinerary)||void 0===l?void 0:l.itineraryId,action:"add"===e?"ADD":"REMOVE"});"SUCCESS"===r.status&&C(r)}catch(d){s.Bb}},[$,null==n?void 0:null===(e=n.itinerary)||void 0===e?void 0:e.itineraryId,C]);return 0===j?null:(0,t.jsx)(t.Fragment,{children:(null==o?void 0:o.length)?(0,t.jsx)(v,{children:(0,t.jsx)(p,{id:"Add-on",componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},sliderConfig:y||x,sliderArrowPosition:"middle",titleElement:(0,t.jsxs)(l.xv,{css:{color:"$grey900",fontFamily:"$manrope",fontWeight:"$bolder",justifyContent:"flex-start",textAlign:"left",lineHeight:"$13i",fontSize:"$9i",marginLeft:"$8i","@lg":{marginLeft:"0px"}},children:["Addons (",j,") â¨"]}),sliderArrowBg:"#E8EAF3",sliderArrowBorderColor:"#C7CDE0",sliderArrowColor:"#576489",children:null==o?void 0:o.map((i,e)=>(0,t.jsx)(l.xu,{css:{marginLeft:e?"0px":"$8i",marginRight:e===o.length-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},children:(0,t.jsx)(h.Z,{item:i,activityById:n.activityById,onClick:w,isUncosted:m,openGcmAction:f})},e))})}):null})};e.Z=m},42233:function(i,e,n){n.d(e,{Z:function(){return ip}});var t=n(85893),o=n(64970),l=n(56512),s=n(89616),r=n(93802),d=n(69841),a=n(39396),c=n(27484),u=n.n(c),g=n(96486),h=n(25675),p=n.n(h),v=n(11163),x=n(67294),m=n(5335),f=n(9570),y=n(46524),$=n(91838),C=n(10206),j=n(70024),w=n(84872),k=n.n(w),b=n(7495),I=n.n(b),S=n(30381),T=n.n(S),A=n(86501),R=n(81042),M=n(6478),z=n(44950),Z=n(47624),B=n(39502),L=n(76672),F=n(76622);let H=i=>("string"==typeof i&&(i=new Date(i)),i.toDateString().split(" ")[0]);var E=n(22416),D=n(65732),P=n(27627),W=n(26074),O=n(90083),V=n(25171);let N=i=>{let{labelColor:e,status:n}=i;return(0,t.jsx)(a.xv,{css:{fontWeight:"700",fontSize:"$5i",padding:"0 5px",backgroundColor:e,color:"White",textTransform:"uppercase",textAlign:"center",borderRadius:"16px",width:"60px"},children:"SOLD_OUT"===n?"SOLD OUT":null})},_=(0,m.zo)("span",{}),q=(i,e)=>{switch(i){case B.I2.CAR:return(0,t.jsx)(l.Z,{css:{fill:"$white"}});case B.I2.BUS:return(0,t.jsx)(o.Z,{css:{fill:"$white"}});case B.I2.FLIGHT:return e===B.IL.INTERNATIONAL_ARRIVE?(0,t.jsx)(f.Z,{css:{fill:"$white"}}):e===B.IL.INTERNATIONAL_DEPART?(0,t.jsx)(y.Z,{css:{fill:"$white"}}):(0,t.jsx)(s.Z,{css:{fill:"$white"}});case B.I2.TRAIN:return(0,t.jsx)(d.Z,{css:{fill:"$white"}});case B.I2.FERRY:return(0,t.jsx)(r.Z,{css:{fill:"white"}});default:return""}},U=i=>{let{activityType:e,daySlot:n,isBooked:o,isLandBooked:l,customizable:s,isUnity:r,canAddPostBooking:d}=i;switch(e){case B.IL.LEISURE:return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.xv,{css:{color:"$grey800",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$semiBold"},children:[" ",n.leisureSlotDetail.text+"."]}),(l||o)&&!d||r&&!s?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.xv,{css:{color:"$primary08",cursor:"pointer",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$semiBold"},children:"\xa0Add Activity"}),(0,t.jsx)($.Z,{css:{fill:"$primary08",cursor:"pointer"}})]})]});case B.IL.INTERNATIONAL_ARRIVE:return n.arrivalSlotDetail.slotText;case B.IL.ACTIVITY:case B.IL.ACTIVITY_WITH_TRANSFER:{var c;let u=null===(c=n.activitySlotDetail.selectedTourGrade)||void 0===c?void 0:c.gradeTitle;if(u)return"".concat(n.activitySlotDetail.title," - ").concat(u);return n.activitySlotDetail.title}case B.IL.INTERCITY_TRANSFER:let g=n.intercityTransferSlotDetailVO;return g.directTransferDetail.slotText;
1case B.IL.INTERNATIONAL_DEPART:return n.departureSlotDetail.slotText;default:return(0,t.jsx)(t.Fragment,{})}},X=i=>{let{day:e,slotIdentifier:n,toCity:o,fromCity:l}=i,s=(0,v.useRouter)(),r=(0,j.b9)(z.L4),{slots:d,...c}=e,u=null==d?void 0:d.filter(i=>i.slotIdentifier===n),g={...c,slots:u,slotIdentifier:n||{}},h=(0,x.useCallback)(i=>{if(s.query.m!==i){var e,t;let r={m:i,dayTs:g.dayTs,cityId:null==g?void 0:null===(e=g.slots)||void 0===e?void 0:null===(t=e[0])||void 0===t?void 0:t.cityId,slotIdentifier:n};o&&l&&(r.toCity=o,r.fromCity=l),s.push({pathname:s.asPath,query:{...r}},void 0,{shallow:!0})}},[g.dayTs,null==g?void 0:g.slots,l,s,n,o]);return(0,t.jsx)(a.zx,{css:{backgroundColor:"$custom92",borderRadius:12,width:"135px",height:"25px"},onClick:i=>{null==i||i.preventDefault(),null==i||i.stopPropagation(),h("activity-block-card"),r(g)},children:(0,t.jsxs)(a.xv,{css:{fontWeight:"$semi-bold",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$primary08",display:"flex",alignItems:"center",fontFamily:"$manrope"},children:["Add Block Card",(0,t.jsx)($.Z,{css:{fill:"$primary08",cursor:"pointer"}})]})})},K=(i,e)=>{var n,o,l,s,r,d,c,u,g,h;let p=null===(n=i.activitySlotDetail)||void 0===n?void 0:n.activityCostingIdentifier,v=null===(o=i.activitySlotDetail)||void 0===o?void 0:o.selectedTourGrade,x=null==e?void 0:null===(l=e.costingById)||void 0===l?void 0:l[p];switch(i.type){case"ACTIVITY_WITH_TRANSFER":case"ACTIVITY":return(0,t.jsxs)(a.sg,{css:{marginTop:"$4i"},children:[(null==v?void 0:v.duration)&&(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase",fontFamily:"$manrope"},children:"Duration:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20",fontFamily:"$manrope"},children:[" ",null==v?void 0:v.duration]})]}),(null==x?void 0:x.onwardPickupTime)?(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase",fontFamily:"$manrope"},children:"Onward Pickup Time:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20",fontFamily:"$manrope"},children:[" ",T()(x.onwardPickupTime,"HHmm").format("hh:mm a")]})]}):null,((null==x?void 0:x.startTime)||(null==v?void 0:v.departureTime))&&(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase",fontFamily:"$manrope"},children:"Activity Start time:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",fontFamily:"$manrope",color:"$custom20"},children:[" ",(null==x?void 0:x.startTime)?T()(x.startTime,"HHmm").format("hh:mm a"):(null==v?void 0:v.departureTime)&&T()(null==v?void 0:v.departureTime,"HHmm").format("hh:mm a")]})]}),(null==x?void 0:x.returnPickupTime)?(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",fontFamily:"$manrope",textTransform:"uppercase"},children:"Return Pickup Time:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontFamily:"$manrope",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20"},children:[" ",T()(x.returnPickupTime,"HHmm").format("hh:mm a")]})]}):null]});case"INTERNATIONAL_ARRIVE":case"INTERNATIONAL_DEPART":{let m=null==i?void 0:null===(s=i.costingInfo)||void 0===s?void 0:s.allTrips,f=null==i?void 0:null===(r=i.costingInfo)||void 0===r?void 0:r.trips,y="",$="";if((null==m?void 0:m.length)>0){let C=f[m[0]],j=null==C?void 0:null===(d=C.routes)||void 0===d?void 0:d[0],w=null==C?void 0:C.routes[C.routes.length-1];return y="".concat((null==C?void 0:C.dayOfWeek)||"",", ").concat((null==C?void 0:C.day)||""," ").concat((null==C?void 0:C.mon)||""," ").concat((null==j?void 0:null===(c=j.departureTime)||void 0===c?void 0:c.substring(0,5))||"").trim().replace(/,\s*$/,""),$="".concat((null==C?void 0:C.landDayOfWeek)||"",", ").concat((null==C?void 0:C.landDay)||""," ").concat((null==C?void 0:C.landMon)||""," ").concat((null==w?void 0:null===(u=w.arrivalTime)||void 0===u?void 0:u.substring(0,5))||"").trim().replace(/,\s*$/,""),(0,t.jsxs)(a.sg,{css:{marginTop:"$4i"},children:[(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase",fontFamily:"$manrope"},children:"Departure At:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20",fontFamily:"$manrope"},children:[" ",y]})]}),(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase"},children:"Arrival At:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20",fontFamily:"$manrope"},children:[" ",$]})]})]})}break}case"INTERCITY_TRANSFER":{let k=null==i?void 0:i.costingInfo,b=null==i?void 0:i.intercityTransferSlotDetailVO.transferType,I="DIRECT"===b?(0,E.Z)(i,"intercityTransferSlotDetailVO.directTransferDetail.transferMode"):null;if("TRAIN"===I){let S="".concat((null==k?void 0:k.dayOfWeek)||"",", ").concat((null==k?void 0:k.day)||""," ").concat((null==k?void 0:k.mon)||""," ").concat((null==k?void 0:null===(g=k.departureTime)||void 0===g?void 0:g.substring(0,5))||"").trim().replace(/,\s*$/,""),A="".concat((null==k?void 0:k.landDayOfWeek)||(null==k?void 0:k.dayOfWeek)||"",", ").concat((null==k?void 0:k.landDay)||(null==k?void 0:k.day)||""," ").concat((null==k?void 0:k.landMon)||(null==k?void 0:k.mon)||""," ").concat((null==k?void 0:null===(h=k.arrivalTime)||void 0===h?void 0:h.substring(0,5))||"").trim().replace(/,\s*$/,"");return(0,t.jsxs)(a.sg,{css:{marginTop:"$4i"},children:[(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$6i",lineHeight:"$8i",fontFamily:"$manrope",textTransform:"uppercase"},children:"Departure At:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontFamily:"$manrope",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20"}
1,children:[" ",S]})]}),(0,t.jsxs)(a.X2,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope",fontSize:"$6i",lineHeight:"$8i",textTransform:"uppercase"},children:"Arrival At:\xa0"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$normal",fontSize:"$6i",lineHeight:"$8i",textTransform:"none",color:"$custom20",fontFamily:"$manrope"},children:[" ",A]})]})]})}}}},G=(i,e)=>{var n,o;let l=null===(n=i.activitySlotDetail)||void 0===n?void 0:n.activityCostingIdentifier,s=null==e?void 0:null===(o=e.costingById)||void 0===o?void 0:o[l];return(0,t.jsx)(N,{labelColor:"red",status:null==s?void 0:s.status})},Y=(i,e)=>{var n,t;let o=null===(n=i.activitySlotDetail)||void 0===n?void 0:n.activityCostingIdentifier,l=null==e?void 0:null===(t=e.costingById)||void 0===t?void 0:t[o];return null==l?void 0:l.offline},J=i=>{var e,n,o,l,s,r;let{day:d,onSlotClick:c,campaignItinerary:g,openGcmAction:h,isCosted:m,itineraryInfo:f,isUnity:y}=i,w=(0,v.useRouter)(),b=(0,j.Dv)(z.s1),S=(0,j.b9)(z.qv),T=(0,x.useMemo)(()=>{var i;return!!(null==f?void 0:null===(i=f.itinerary)||void 0===i?void 0:i.booking)},[f]),E=(0,x.useMemo)(()=>(0,D.P)({key:P.yj,permissions:null==b?void 0:b.permissions})||!1,[null==b?void 0:b.permissions]),N=(0,x.useMemo)(()=>(0,D.P)({key:P.af,permissions:null==b?void 0:b.permissions})||!1,[null==b?void 0:b.permissions]),{regionCode:J,itineraryId:Q}=(0,x.useMemo)(()=>({regionCode:"".concat(w.query.regionCode),itineraryId:"".concat(w.query.itineraryId)}),[w.query]),ii=(0,x.useMemo)(()=>{var i;return!!(null==f?void 0:null===(i=f.itinerary)||void 0===i?void 0:i.landPackageBooked)},[null==f?void 0:null===(e=f.itinerary)||void 0===e?void 0:e.landPackageBooked]),ie=(0,x.useMemo)(()=>{var i;return(null==f?void 0:null===(i=f.unityDetailsVO)||void 0===i?void 0:i.customizable)||!1},[f]),it=(0,x.useMemo)(()=>(0,D.P)({key:P.iI,permissions:null==b?void 0:b.permissions})||!1,[null==b?void 0:b.permissions]),io=!g&&(0,D.P)({key:P.LF,permissions:null==b?void 0:b.permissions}),il=(0,x.useMemo)(()=>H(u()(d.dayTs).toDate()),[d.dayTs]),is=(0,x.useMemo)(()=>u()(d.dayTs).format("DD/MMM/YYYY"),[d.dayTs]),ir=(0,x.useCallback)((i,e)=>{var n,t,o,l;let s=null===(n=e.activitySlotDetail)||void 0===n?void 0:null===(t=n.costingInfo)||void 0===t?void 0:t.configKey,r=null===(o=e.activitySlotDetail)||void 0===o?void 0:null===(l=o.costingInfo)||void 0===l?void 0:l.dateMillis;w.query.m!==i&&w.push({pathname:w.asPath,query:{m:i,configkey:s,dayTs:"".concat(r)}},void 0,{shallow:!0})},[w]),id=(0,x.useMemo)(()=>{var i;return(null==b?void 0:b.loggedIn)&&(null==f?void 0:null===(i=f.itinerary)||void 0===i?void 0:i.landPackageBooked)&&(0,D.P)({permissions:null==b?void 0:b.permissions,key:P.yj})},[null==f?void 0:null===(n=f.itinerary)||void 0===n?void 0:n.landPackageBooked,null==b?void 0:b.loggedIn,null==b?void 0:b.permissions]),{removeActivityCardAsync:ia}=(0,R.X)(),ic=(0,j.b9)(z.w4),iu=(0,x.useCallback)(async(i,e)=>{try{var n;let t=null==f?void 0:f.iterSlotByKey,o=k()(t,function(e){var n;return(null==e?void 0:null===(n=e.activitySlotDetail)||void 0===n?void 0:n.activityId)===i}),l=I()(t,o),s=await ia({itineraryId:null==w?void 0:null===(n=w.query)||void 0===n?void 0:n.itineraryId,configKey:e,slotIdentifier:(0,F.Z)(l)});"SUCCESS"===s.status&&(ic(s),A.ZP.success("Activity block card removed successfully"))}catch(r){}},[null==f?void 0:f.iterSlotByKey,ia,null==w?void 0:null===(o=w.query)||void 0===o?void 0:o.itineraryId,ic]),ig=(0,x.useMemo)(()=>{let i=(null==d?void 0:d.allNonSlotKeys)||[],e=(null==i?void 0:i.length)>0?i.map(i=>{var e,n;let t=null===(e=null==f?void 0:f.iterNonSlotByKey[i])||void 0===e?void 0:null===(n=e.activitySlotDetail)||void 0===n?void 0:n.activityId;return t?{activityId:t,slotIdentifier:i}:null}).filter(Boolean):[];return e||[]},[null==d?void 0:d.allNonSlotKeys,null==f?void 0:f.iterNonSlotByKey]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.x7,{position:"top-center",reverseOrder:!1,gutter:8,containerClassName:"",toastOptions:{className:"",duration:5e3,style:{backgroundColor:"#363636",color:"#fff"}}}),(0,t.jsxs)(a.xu,{css:{display:"flex",flexDirection:"column",width:"100%",color:"$grey08","@lg":{flexDirection:"row",borderBottom:"1px solid $grey02",width:"100%",color:"$grey08","&:hover":{color:"$black"},"&:last-child":{borderBottom:"none"}}},children:[(0,t.jsx)(a.X2,{css:{padding:"$4i 0",backgroundColor:"$custom32","@lg":{backgroundColor:"$white",padding:"$6i",borderRight:"1px solid $grey02",width:"75px",justifyContent:"center",textAlign:"center"}},children:(0,t.jsxs)(a.kC,{css:{gap:"$i",flexDirection:"row",padding:"0 $8i","@lg":{padding:0,flexDirection:"column",gap:"$4i"}},children:[m?(0,t.jsxs)(a.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope",fontSize:"$7i",lineHeight:"$8i","@lg":{padding:0,fontWeight:"$normal"}},children:[il,","]}):null,(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$7i",fontFamily:"$manrope",lineHeight:"$8i","@lg":{padding:0,fontWeight:"$normal"}},children:m?"".concat(d.day," ").concat(d.month):"Day ".concat((0,L.Z)(d.dayNum))})]})}),(0,t.jsxs)(a.xu,{css:{"@lg":{width:"calc(100% - $35i)",height:"100%"}},children:[(0,t.jsx)(a.sg,{css:{boxShadow:"0 1px 0 $colors$grey00",flexDirection:"column",flexWrap:"nowrap",backgroundColor:"$m_custom55",gap:"1px","@lg":{gap:0,flexDirection:"row",boxShadow:"none",height:"100%"}},children:x.Children.toArray(null==d?void 0:d.slots.map((i,e)=>{var n,o,l,s,r,u,p,v,x,m,j,w,k,b,I,S,A,R,z,Z,L;let F=null===(n=i.intercityTransferSlotDetailVO)||void 0===n?void 0:n.canBeReplacedWithActivity,H=i.type===B.IL.INTERNATIONAL_ARRIVE||i.type===B.IL.INTERNATIONAL_DEPART||(null===(o=i.intercityTransferSlotDetailVO)||void 0===o?void 0:null===(l=o.directTransferDetail)||void 0===l?void 0:l.transferMode)||F,D=i.t
1ype===B.IL.LEISURE||i.type===B.IL.ACTIVITY||i.type===B.IL.ACTIVITY_WITH_TRANSFER||F,P=null==i?void 0:null===(s=i.activitySlotDetail)||void 0===s?void 0:s.costingInfo,N=P?null==P?void 0:P.publishedCost:0,_=(null==i?void 0:i.activitySlotDetail)?null==i?void 0:null===(r=i.activitySlotDetail)||void 0===r?void 0:r.planningToolId:null,J=(null==i?void 0:i.activitySlotDetail)&&(null==i?void 0:null===(u=i.activitySlotDetail)||void 0===u?void 0:u.costingInfo)?null==i?void 0:null===(p=i.activitySlotDetail)||void 0===p?void 0:null===(v=p.costingInfo)||void 0===v?void 0:v.configKey:null,Q=(null==i?void 0:null===(x=i.activitySlotDetail)||void 0===x?void 0:null===(m=x.costingInfo)||void 0===m?void 0:m.status)===M.RY&&id||!1;return(0,t.jsxs)(a.xu,{onClick:y&&!ie?void 0:Y(i,null==f?void 0:f.activityCostings)&&it?()=>ir("activity-block-card",i):i.type===B.IL.LEISURE&&g?()=>h&&h():i.type===B.IL.LEISURE&&!E&&(ii||T)?void 0:D?()=>c(i.slotIdentifier,i.type,is):void 0,css:{boxShadow:"0 1px 0 $colors$grey01",display:"flex",padding:"$8i",textAlign:"left",background:"$white",position:"relative",backgroundColor:Q?"$pyellow100":"$white","@lg":{borderRight:"1px solid $grey02",width:3===i.span?"100%":2===i.span?"66.6%":"33.3%",cursor:!H||D?"pointer":"default",boxShadow:"none",alignItems:"center","&:last-child":{borderRight:"none"},"&:hover":{background:Q?"$pyellow100":!ie&&y?"$white":!H||D?"$primary00":"$white"}}},children:[(0,t.jsxs)(a.sg,{children:[(0,t.jsxs)(a.X2,{justify:"center",children:[(0,t.jsx)(a.xu,{css:{justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column",height:"$16i",width:"$16i",borderRadius:"100%",backgroundColor:i.type===B.IL.LEISURE?"$primary00":"$grey08",color:"$white",marginRight:"$4i",minWidth:"$16i","@lg":{display:i.type===B.IL.LEISURE?"none":"flex"}},children:(null===(j=i.activitySlotDetail)||void 0===j?void 0:j.mainPhoto)||(null===(w=i.activitySlotDetail)||void 0===w?void 0:w.photos)?(0,t.jsx)(V.Z,{src:(null===(k=i.activitySlotDetail)||void 0===k?void 0:k.mainPhoto)||(null===(b=i.activitySlotDetail)||void 0===b?void 0:null===(I=b.photos)||void 0===I?void 0:I[0]),alt:U({activityType:i.type,daySlot:i,isBooked:T,isLandBooked:ii,isUnity:y,customizable:ie,canAddPostBooking:E}),width:32,height:32,style:{borderRadius:"100%"}}):i.type===B.IL.LEISURE?(0,t.jsx)($.Z,{css:{fill:"$primary06"}}):q((null===(S=i.intercityTransferSlotDetailVO)||void 0===S?void 0:null===(A=S.directTransferDetail)||void 0===A?void 0:A.transferMode)||(i.type===B.IL.INTERNATIONAL_ARRIVE||i.type===B.IL.INTERNATIONAL_DEPART?B.I2.FLIGHT:""),i.type)}),(0,t.jsxs)(a.xu,{css:{justifyContent:"flex-start",display:"flex",flexDirection:"column"},children:[(0,t.jsxs)(a.kC,{align:"center",wrap:"wrap",css:{width:"100%",gap:"$1i"},children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope",fontSize:"$5i",lineHeight:"$8i",textTransform:"uppercase",marginRight:"$2i",color:"$grey600"},children:i.name}),N>0?(0,t.jsxs)(a.xv,{css:{color:"$green04",fontFamily:"$manrope",fontSize:"$7i",lineHeight:"$6i",fontWeight:"$bold"},children:["",(0,t.jsx)(O.Z,{value:N,defaultValue:"0"})]}):null,Y(i,null==f?void 0:f.activityCostings)&&it?(0,t.jsx)(a.xu,{css:{padding:"0px 5px",fontSize:"$5i",fontWeight:"$bold",textTransform:"uppercase",width:"65px",borderRadius:"16px",backgroundColor:"$custom92",color:"$custom93",fontFamily:"$manrope"},children:"Block Card"}):null,Y(i,null==f?void 0:f.activityCostings)&&it&&!(ii||T)?(0,t.jsx)(a.xu,{onClick:i=>{i.preventDefault(),i.stopPropagation(),iu(_,J)},css:{marginLeft:"$2i",padding:"0px 5px",fontSize:"$5i",fontWeight:"$bold",textTransform:"uppercase",width:"65px",borderRadius:"16px",textAlign:"center",backgroundColor:"$white",color:"$red11",border:"1px solid $red11",fontFamily:"$manrope"},children:"Remove"}):null,G(i,null==f?void 0:f.activityCostings)?(0,t.jsx)(a.kC,{css:{alignItems:"center"},children:G(i,null==f?void 0:f.activityCostings)}):null]}),(0,t.jsxs)(a.kC,{wrap:"wrap",css:{gap:"$2i"},children:[(0,t.jsx)(a.xv,{css:{color:"$grey900",fontSize:"$7i",lineHeight:"$10i",overflow:"hidden",display:"flex",alignItems:"center",fontFamily:"$manrope",fontWeight:"$normal",gap:"$2i"},children:U({activityType:i.type,daySlot:i,isBooked:T,isLandBooked:ii,isUnity:y,customizable:ie,canAddPostBooking:E})}),y&&!ie?null:it&&(i.type===B.IL.LEISURE||F)&&!(ii||T)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(X,{day:d,slotIdentifier:i.slotIdentifier,toCity:F?null===(R=null==f?void 0:f.cityById[null==i?void 0:null===(z=i.intercityTransferSlotDetailVO)||void 0===z?void 0:z.toCity])||void 0===R?void 0:R.cityName:null,fromCity:F?null===(Z=null==f?void 0:f.cityById[null==i?void 0:null===(L=i.intercityTransferSlotDetailVO)||void 0===L?void 0:L.fromCity])||void 0===Z?void 0:Z.cityName:null})}):null]})]})]}),(0,t.jsx)(a.xu,{css:{justifyContent:"flex-start",display:"flex",flexDirection:"column"},children:io?K(i,null==f?void 0:f.activityCostings):null})]}),Q?(0,t.jsx)(a.xu,{css:{position:"absolute",top:10,right:10},children:(0,t.jsx)(a.xu,{css:{position:"relative",width:"100%",height:"100%"},children:(0,t.jsx)(C.u,{css:{" > *":{fontSize:"$7i !important",lineHeight:"$8i"}},content:"This is an temporary lineitem and in 24 hours it will beremoved unless confirmed.",children:(0,t.jsx)(W.Z,{})})})}):null]},"day-slit-".concat(e,"-").concat(D))}))}),(null===(l=d.slots)||void 0===l?void 0:l.length)&&(null===(s=d.slots[0])||void 0===s?void 0:s.type)===B.IL.INTERNATIONAL_ARRIVE||(null===(r=d.slots[0])||void 0===r?void 0:r.type)===B.IL.INTERNATIONAL_DEPART?null:ii&&E||N?(0,t.jsx)(a.kC,{onClick:()=>{let i=null==f?void 0:f.iterDayByKey[d.dayIdentifier],e=null==i?void 0:i.nextAvailableNonSlotDetails;e&&S(e),w.push("/customize/".concat(J,"/view/").concat(Q,"/unslotted-activities/").concat((0,F.Z)(null==e?void 0:e.nextAvailableNonSlotKey),"?dayKey=").concat(d.dayIdentifier))},align:"end",css:{display:"flex",backgroundColor:"$grey50",padding:"$6i $8i",cursor:"pointer","@smMax":{marginBottom:"$2i"}},children:(0,t.jsxs)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$5ii",fontFamily:"$manrope",lineHeight:"$8i",color:"$grey700",textTransform:"uppercase"},children:["+ add Flexible Activity",(0,t.jsxs)(_,{css:{fontWeight:"$bold",fontSize:"$5ii",fontFamily:"$manrope",lineHeight:"$8i",color:"$grey600"},children:[" ","(Valid for multiple hours or days)"]})]})}):null,ig.length>0?(0,t.jsx)(a.sg,{css:{},children:(0,t.jsx)(a.xu,{css:{padding:"$8i"},children:Array.isArray(ig)?null==ig?void 0:ig.map((i,e)=>{var n,o;let l=(null==f?void 0:f.activityById)&&(null==f?void 0:f.activityById[i.activityId]);return(0,t.jsx)(a.X2,{css:{gap:"$4i",alignItems:"center",padding:"$6i 0",cursor:"pointer",borderBottom:e===ig.length-1?"none":"1px solid $grey02","&:hover":{backgroundColor:"$primary00"},justifyContent:"space-between"},onClick:()=>{w.push("/customize/".concat(J,"/view/").concat(Q,"/unslotted-activity-details/").concat(i.activityId,"?dayKey=").concat(d.dayIdentifier,"&nonSlotkey=").concat(i.slotIdentifier))},children:(0,t.jsxs)(a.X2,{align:"center",css:{gap:"$4i"},children:[(0,t.jsx)(a.xu,{css:{position:"relative",overflow:"hidden",height:"$16i",width:"$16i",borderRadius:"$round"},children:(0,t.jsx)(p(),{src:(0,Z.Z)(null==l?void 0:l.mainPhoto),alt:(null==l?void 0:l.title)||"activity-image",fill:!0,style:{objectFit:"cover"}})}),(0,t.jsxs)(a.xu,{children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bold",fontSize:"$6i",fontFamily:"$manrope",lineHeight:"$8i"},children:null==l?void 0:l.title}),(null==l?void 0:null===(n=l.selectedTourGrade)||void 0===n?void 0:n.duration)?(0,t.jsxs)(a.xv,{css:{fontWeight:"$bold",fontSize:"$6i",fontFamily:"$manrope",lineHeight:"$8i",paddingTop:"$2i"},children:["Duration:"," ",null==l?void 0:null===(o=l.selectedTourGrade)||void 0===o?void 0:o.duration]}):null]})]})},"activity-id-".concat(i.activityId))}):null})}):null]})]},"root-ele")]})};var Q=n(9352),ii=n(76907),ie=n(83359),it=n(68991),io=n(96053),il=n(93290),is=n(88116),ir=n(49823);let id=(i,e)=>{var n,t;return i&&e&&(null==e?void 0:null===(n=e.cityWeatherInfo)||void 0===n?void 0:null===(t=n[i])||void 0===t?void 0:t[0])||null},ia=i=>{let{temperature:e,isMax:n,variant:o}=i;return e?(0,t.jsxs)(a.X2,{css:{gap:"$2i",alignItems:"center"},children:[(0,t.jsx)(a.xv,{css:{fontSize:"$7i",fontWeight:"$semiBold",color:"white"===o?"$white":"$black","@lg":{display:"none"}},children:n?"Hi:":"Lo:"}),(0,t.jsx)(a.xv,{css:{fontSize:"$7i",fontWeight:"$semiBold",color:"white"===o?"$white":"$black",display:"none","@lg":{display:"block"}},children:n?"High:":"Low:"}),(0,t.jsxs)(a.xv,{css:{fontWeight:"$semiBold",fontSize:"$7i",fontFamily:"$manrope",color:"white"===o?"$white":"$black"},children:[e,"\xb0C"]})]}):null},ic=i=>{let{maxTemp:e,minTemp:n,variant:o="default"}=i,l="white"===o;return n||e?(0,t.jsxs)(a.X2,{css:{gap:"$3i",alignItems:"center",borderRadius:"$pill",padding:"$2i $4i",...l?{border:"1px solid $white",backgroundColor:"transparent"}:{border:"1px solid $green200",backgroundColor:"$white"}},children:[(0,t.jsx)(ia,{temperature:e,isMax:!0,variant:o}),n||e?(0,t.jsx)(a.xu,{css:{width:"4px",height:"4px",backgroundColor:l?"$grey15":"$grey100",borderRadius:"$round"}}):null,(0,t.jsx)(ia,{temperature:n,variant:o})]}):null};var iu=n(58430);let ig={content:"",width:"$8i",height:"$8i",position:"absolute",backgroundColor:"#aaa",borderRadius:"100%",backgroundClip:"padding-box"},ih=i=>{let{iterCities:e,campaignItinerary:n=!1,openGcmAction:c,isCosted:h,itineraryInfo:m}=i,f=(0,v.useRouter)(),y=(0,Q.Z)(m),$=(0,x.useMemo)(()=>{var i;return!!(null==m?void 0:null===(i=m.itinerary)||void 0===i?void 0:i.booking)},[m]),{regionCode:C,itineraryId:j}=(0,x.useMemo)(()=>({regionCode:"".concat(f.query.regionCode),itineraryId:"".concat(f.query.itineraryId)}),[f.query]);return(0,t.jsx)(a.xu,{children:x.Children.toArray(null==e?void 0:e.map((i,v)=>{var w,k,b,I,S,T,A,R,z,Z,E,D,P,W,O,V,N,_;let q=(0,g.get)(i.transferSlotDetails,"intercityTransferSlotDetailVO"),U=(null===(w=i.transferSlotDetails)||void 0===w?void 0:w.commuteMode)?(null===(k=i.transferSlotDetails)||void 0===k?void 0:k.partOfFerryTransfer)?null===(b=B.I2.FERRY)||void 0===b?void 0:b.toString().toUpperCase():null===(I=i.transferSlotDetails)||void 0===I?void 0:I.commuteMode:null===(S=i.transferSlotDetails)||void 0===S?void 0:null===(T=S.intercityTransferSlotDetailVO)||void 0===T?void 0:null===(A=T.directTransferDetail)||void 0===A?void 0:A.transferMode,X=id(i.cityId,m),K=(null==i?void 0:null===(R=i.transferSlotDetails)||void 0===R?void 0:R.type)==="INTERCITY_TRANSFER"&&(null==i?void 0:i.nonSlotKey)&&(null==i?void 0:i.isOvernightTransfer),G=null==m?void 0:m.iterNonSlotByKey[(null==i?void 0:i.nonSlotKey)||""];return(0,t.jsxs)(x.Fragment,{children:[v&&v!==e.length?(0,t.jsx)(t.Fragment,{children:K?(0,t.jsxs)(a.sg,{css:{display:"flex",position:"relative",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,t.jsx)(a.xu,{css:{position:"relative",overflow:"hidden",height:62,width:320},children:(0,t.jsx)(p(),{src:"".concat(is.X.gumlet_base,"/images/web_app/itinerary/curvedLine.png"),alt:"curved line",fill:!0,style:{objectFit:"contain"}})}),(0,t.jsxs)(a.xu,{css:{border:"1px solid $blue100",width:"100%",display:"flex",borderRadius:"$2",overflow:"hidden"},children:[(0,t.jsxs)(a.sg,{css:{backgroundColor:"$pblue100",padding:"$12i",gap:"$2i"},children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope",fontSize:"$7i",lineHeight:"$8i",color:"$grey500","@lg":{padding:0,fontWeight:"$normal"}},children:H(u()(i.dayTs).toDate())}),(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",fontSize:"$7i",fontFamily:"$manrope",lineHeight:"$8i",color:"$grey500","@lg":{padding:0,fontWeight:"$normal"}},children:h?"".concat(null==i?void 0:i.day," ").concat(i.mon):"Day ".concat((0,L.Z)((null==i?void 0:i.dayNum)||0))})]}),(0,t.jsxs)(a.X2,{css:{gap:"$4i",flex:1,alignItems:"center",padding:"$6i"},children:[(0,t.jsx)(a.xu,{css:{borderRadius:"$round",backgroundColor:"$grey200",padding:"$4i",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(d.Z,{css:{fill:"#000",width:20,height:20}})}),(0,t.jsxs)(a.xu,{children:[(0,t.jsx)(a.xv,{css:{fontSize:"$6i",lineHeight:"$12i",fontFamily:"$manrope",color:"$grey600",fontWeight:"$bolder",textTransform:"uppercase"},children:"OverNight TRAIN"}),(0,t.jsx)(a.xv,{css:{zIndex:"1",fontSize:"$7i",lineHeight:"$12i",fontFamily:"$manrope",color:"$grey900",fontWeight:"$semiBold"},children:null==G?void 0:null===(z=G.intercityTransferSlotDetailVO)||void 0===z?void 0:null===(Z=z.directTransferDetail)||void 0===Z?void 0:Z.slotText})]})]})]}),(0,t.jsx)(a.xu,{css:{position:"relative",overflow:"hidden",height:62,width:320,transform:"rotateY(180deg)"},children:(0,t.jsx)(p(),{src:"".concat(is.X.gumlet_base,"/images/web_app/itinerary/curvedLine.png"),alt:"curved line",fill:!0,style:{objectFit:"contain"}})})]}):(0,t.jsxs)(a.sg,{css:{display:"flex",position:"relative",alignItems:"center",justifyContent:"center",flexDirection:"column",height:"$46i","@lg":{backgroundColor:"transparent",minHeight:"$44i",padding:"$8i",height:"$44i"}},children:[(0,t.jsx)(a.xu,{css:{backgroundImage:"url(".concat(is.X.gumlet_base,"/images/web_app/itinerary/fly_line.svg)"),backgroundRepeat:"no-repeat",backgroundPositionX:"50%",height:"$44i",width:"232px",position:"absolute","&:before":{...ig,top:"-$5i",left:"-$3i",zIndex:1},"&:after":{...ig,bottom:"-$5i",right:"-$3i",zIndex:1},"@lg":{top:"-$2i","&:before":{top:"-$2i"},"&:after":{bottom:"-$6i"}}}}),(0,t.jsx)(a.sg,{css:{justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column",height:"$16i",width:"$16i",borderRadius:"100%",backgroundColor:"#53576d",color:"#fff",marginRight:"$8i",minWidth:"$16i",zIndex:1,marginTop:"$12i","@lg":{marginTop:0}},children:U===B.I2.BUS?(0,t.jsx)(o.Z,{css:{fill:"#fff"}}):U===B.I2.FLIGHT?(0,t.jsx)(s.Z,{css:{fill:"#fff"}}):U===B.I2.TRAIN?(0,t.jsx)(d.Z,{css:{fill:"#fff"}}):U===B.I2.FERRY?(0,t.jsx)(r.Z,{css:{fill:"#fff"}}):(0,t.jsx)(l.Z,{css:{fill:"#fff"}})}),(0,t.jsx)(a.xv,{css:{zIndex:"1",fontSize:"$7i",lineHeight:"$12i",fontFamily:"$manrope"},children:null==q?void 0:null===(E=q.directTransferDetail)||void 0===E?void 0:E.transferIndicatorText})]})}):null,(0,t.jsx)(a.xu,{css:{backgroundImage:"url(".concat((0,it.Z)(i.image,"w=360&h=104&fit=crop"),")"),height:"320px",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"50%",padding:"$8i",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",position:"relative","@lg":{display:"none"},"&:after":{content:"",position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundColor:"transparent",background:"linear-gradient(180deg, transparent, rgba(0,0,0,.8))"}},children:(0,t.jsxs)(a.sg,{css:{gap:"$6i"},children:[(0,t.jsx)(a.xv,{css:{fontSize:"$10i",color:"$white",zIndex:1,fontFamily:"$manrope",textAlign:"center",lineHeight:"$12i",fontWeight:"$bold"},children:i.cityName}),(0,t.jsxs)(a.X2,{css:{justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:"$3i",zIndex:1},children:[(0,t.jsx)(a.xv,{css:{fontSize:"$7i",color:"$white",fontWeight:"$bold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"$manrope",lineHeight:"$12i"},children:"".concat(i.nights," ").concat((0,io.Z)({count:parseInt("".concat(i.nights),10),
1keyword:"Night"})," Stay")}),(0,t.jsx)(a.xv,{css:{fontSize:"$7i",color:"$white",fontWeight:"$bold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontFamily:"$manrope",lineHeight:"$12i"},children:$?null:(null==m?void 0:m.iterCities)&&(null==m?void 0:null===(D=m.iterCities)||void 0===D?void 0:D.length)>0?(0,t.jsx)(iu.Z,{iterCities:null==m?void 0:m.iterCities,changeRoute:!0,itineraryInfo:m}):null}),X?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.xu,{css:{width:"4px",height:"4px",backgroundColor:"$grey15",borderRadius:"$round"}}),(0,t.jsx)(a.xv,{css:{fontSize:"$7i",lineHeight:"$12i",color:"$white",fontFamily:"$manrope",fontWeight:"$bold"},children:"Temp"}),(0,t.jsx)(ic,{maxTemp:null==X?void 0:X.maxTemp,minTemp:null==X?void 0:X.minTemp,variant:"white"})]}):null]})]})}),(0,t.jsxs)(a.xu,{css:{"@lg":{border:"1px solid rgba(44,47,66,.2)",borderRadius:"$3",overflow:"hidden"}},children:[(0,t.jsxs)(a.xu,{css:{background:"linear-gradient(91deg, #D3FFDA 0.18%, #DBF9F7 97.7%);",minHeight:"$28i",display:"none",alignItems:"center",justifyContent:"space-between",padding:"$6i $8i","@lg":{display:"flex",flexDirection:"column",gap:"$2i",borderRadius:"$2 $2 0 0"}},children:[(0,t.jsxs)(a.X2,{align:"center",justify:"between",css:{gap:"$2i",width:"100%"},children:[(0,t.jsxs)(a.kC,{align:"center",css:{gap:"$2i"},children:[(0,t.jsx)(a.xv,{css:{fontWeight:"$bolder",opacity:.9,fontSize:"$9i",lineHeight:"$13i",color:"$grey900",fontFamily:"$manrope"},children:i.cityName}),(0,t.jsxs)(a.xv,{css:{opacity:.6,fontSize:"$7i",lineHeight:"$12i",color:"$black",fontFamily:"$manrope",fontWeight:"$bold"},children:[" â ","".concat(i.nights," ").concat((0,io.Z)({count:parseInt("".concat(i.nights),10),keyword:"Night"}))]}),X?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.xv,{css:{opacity:.6,fontSize:"$7i",lineHeight:"$12i",color:"$black",fontFamily:"$manrope",fontWeight:"$bold"},children:[" â ","Temperature"]}),(0,t.jsx)(ic,{maxTemp:null==X?void 0:X.maxTemp,minTemp:null==X?void 0:X.minTemp})]}):null]}),(0,t.jsx)(a.kC,{css:{gap:"$6i"}})]}),(null===(P=i.hotelInCity)||void 0===P?void 0:P.status)===M.MR?(0,t.jsxs)(a.kC,{align:"center",css:{gap:"$4i",width:"100%"},children:[(null===(W=i.hotelInCity)||void 0===W?void 0:W.name)?(0,t.jsxs)(a.xv,{css:{color:"$grey600",fontSize:"$7i",lineHeight:"$10i",fontFamily:"$manrope",fontWeight:"$normal"},children:["Stay at ",null===(O=i.hotelInCity)||void 0===O?void 0:O.name]}):null,!$&&h?(0,t.jsx)(ir.Z,{upgradeCount:null===(V=i.hotelInCity)||void 0===V?void 0:V.upgradesCount,addonCount:null===(N=i.hotelInCity)||void 0===N?void 0:null===(_=N.addOns)||void 0===_?void 0:_.length}):null]}):null]}),(0,t.jsx)(a.sg,{children:i.days.map((e,o)=>(0,t.jsx)(x.Fragment,{children:(0,t.jsx)(J,{isCosted:h,day:e,campaignItinerary:n,itineraryInfo:m,openGcmAction:c,isUnity:y,onSlotClick:n?()=>c&&c():(e,n,t)=>{var o;let l=new URLSearchParams;t&&l.append("activityDate",t),(0,ii.L9W)(ii.$NP,{day:null==i?void 0:i.days,slot:e,cityName:null==i?void 0:i.cityName,leadSource:(0,ie.L1)({router:f,lastLocation:{pathname:f.asPath}}),ItineraryType:y?"Unity":"Customize",ItineraryId:null==m?void 0:null===(o=m.itinerary)||void 0===o?void 0:o.itineraryId}),n===B.IL.LEISURE||n===B.IL.INTERCITY_TRANSFER?(0,il.Z)("/customize/".concat(C,"/view/").concat(j,"/alternate-activities/").concat((0,F.Z)(e),"?").concat(l.toString())):f.push("/customize/".concat(C,"/view/").concat(j,"/activity-details/").concat((0,F.Z)(e)))}})},"itie-table-".concat(o)))})]})]},"city-obj-".concat(v))}))})};var ip=ih},1715:function(i,e,n){var t=n(85893),o=n(5335),l=n(39396),s=n(67294);let r=(0,o.zo)(l.xu,{display:"flex",alignItems:"center",gap:"$4i",padding:"$4i $8i",backgroundColor:"$pgreen100",borderRadius:"$pill",alignSelf:"start","& > span":{color:"$grey900",fontSize:"$7i",fontWeight:"$normal",lineHeight:"$10i",fontFamily:"$manrope"}}),d=i=>{let{description:e,themes:n}=i,[o,d]=(0,s.useState)(!1);return(0,t.jsx)(l.sg,{css:{gap:"$6i","@lg":{gap:"$20i"},"& > *":{"@lg":{borderBottom:"unset"}}},children:(0,t.jsxs)(l.sg,{css:{gap:"$8i",padding:"$14i $8i",backgroundColor:"white","@lg":{padding:0,backgroundColor:"unset"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$9i",fontWeight:"$bolder",fontFamily:"$manrope",lineHeight:"$13i",color:"$grey900"},children:"Your trip in a nutshell"}),n&&n.filter(i=>i).length?(0,t.jsx)(l.kC,{css:{gap:"$6i",flexWrap:"wrap"},children:n.filter(i=>i).map(i=>(0,t.jsx)(r,{children:(0,t.jsx)(l.xv,{children:i})},i))}):null,(0,t.jsx)(l.xv,{css:{color:"$grey600",lineHeight:"$11i",fontSize:"$7i",fontFamily:"$manrope",wordBreak:"break-word"},children:!o&&(null==e?void 0:e.length)>500?(null==e?void 0:e.substring(0,500))+"...":e}),(null==e?void 0:e.length)>500?(0,t.jsxs)(l.xv,{css:{color:"$grey900",fontSize:"$7i",textDecoration:"underline",cursor:"pointer",fontFamily:"$manrope",fontWeight:"$bolder"},onClick:()=>d(!o),children:["Read ",o?"Less":"More"]}):null]})})};e.Z=d},69571:function(i,e,n){n.d(e,{Z:function(){return s}});var t=n(85893),o=n(39396);n(67294);var l=n(25171);function s(i){let{item:e,isWhyChoosePyt:n=!1}=i;return(0,t.jsxs)(o.kC,{css:{flexDirection:"column",gap:"$8i",position:"relative","@lg":{flexDirection:"row",gap:"$6i"},"@smMax":{justifyContent:"center",alignItems:"center"}},children:[(0,t.jsx)(o.xu,{css:{position:"relative",width:40,height:40},children:(0,t.jsx)(l.Z,{src:n?null==e?void 0:e.whyChooseUrl:null==e?void 0:e.imageUrl,width:40,height:40,alt:"trust-elemt",style:{objectFit:n?"contain":"cover"}})}),(0,t.jsxs)(o.sg,{css:{gap:"$2i",flex:1,"@smMax":{textAlign:"center"}},children:[(0,t.jsx)(o.xv,{css:{color:"#21242C",fontSize:"$7i",fontWeight:"$bold",lineHeight:"$12i",fontFamily:"$manrope","@lg":{fontSize:"$8i",fontWeight:"$bolder"}},children:null==e?void 0:e.title}),(0,t.jsx)(o.xv,{css:{display:"none","@lg":{display:"block",color:"#576489",fontSize:"$7i",lineHeight:"$11i",fontWeight:"$semiBold",fontFamily:"$manrope"}},dangerouslySetInnerHTML:{__html:null==e?void 0:e.subTitle}})]})]})}},58430:function(i,e,n){n.d(e,{Z:function(){return q}});var t=n(85893),o=n(70024),l=n(11163),s=n(67294),r=n(86501),d=n(51490),a=n(88767);let c=async(i,e,n)=>await e({url:"itinerary/transfer/alternateModes",method:"POST",body:i,signal:n}),u=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>c(i,e,void 0),i);return{getAlternateTransferModes:n,getAlternateTransferModesAsync:t,...o}};var g=n(21620);let h=async(i,e,n)=>await e({url:"itinerary/day/add",method:"POST",body:i,signal:n}),p=async(i,e,n)=>await e({url:"itinerary/day/remove",method:"POST",body:i,signal:n}),v=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>h(i,e,void 0),i);return{getAddDay:n,getAddDayAsync:t,...o}},x=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>p(i,e,void 0),i);return{getRemoveDay:n,getRemoveDayAsync:t,...o}},m=async(i,e,n)=>await e({url:"itinerary/".concat(i.itineraryId,"/edit"),method:"POST",body:i,signal:n}),f=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>m(i,e,void 0),i);return{getUpdatedItinerary:n,getUpdatedItineraryAsync:t,...o}},y=async(i,e,n)=>await e({url:"itinerary/transfer/modify",method:"POST",body:i,signal:n}),$=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>y(i,e,void 0),i);return{getModifyTransferMode:n,getModifyTransferModeAsync:t,...o}},C=async(i,e,n)=>await e({url:"city/options/remove",method:"POST",body:i,signal:n}),j=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>C(i,e,void 0),i);return{getRemovableRoutes:n,getRemovableRoutesAsync:t,...o}},w=async(i,e,n)=>await e({url:"city/options/add",method:"POST",body:i,signal:n}),k=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>w(i,e,void 0),i);return{getRouteAddCities:n,getRouteAddCitiesAsync:t,...o}},b=async(i,e,n)=>await e({url:"city/".concat(i.currentCityId,"/options/replace"),method:"POST",body:i,signal:n}),I=i=>{let e=(0,d.wh)(),{mutate:n,mutateAsync:t,...o}=(0,a.useMutation)(i=>b(i,e,void 0),i);return{getRouteReplaceCities:n,getRouteReplaceCitiesAsync:t,...o}};var S=n(6239),T=n(83509),A=n(9352),R=n(44950),M=n(76907),z=n(83359),Z=n(70466),B=n(26633),L=n(64970),F=n(56512),H=n(4327),E=n(89616),D=n(93802),P=n(69841),W=n(10206),O=n(39396);let V={BUS:(0,t.jsx)(L.Z,{css:{fill:"$custom34",width:"$20i",height:"$20i"}}),CAR:(0,t.jsx)(F.Z,{css:{fill:"$custom34",width:"$20i",height:"$20i"}}),TRAIN:(0,t.jsx)(P.Z,{css:{fill:"$custom34",width:"$20i",height:"$20i"}}),FLIGHT:(0,t.jsx)(E.Z,{css:{fill:"$custom34",width:"$20i",height:"$20i"}}),FERRY:(0,t.jsx)(D.Z,{css:{fill:"$custom34",width:"$20i",height:"$20i"}})},N=i=>{let{open:e=!1,data:n,onModalClose:o,onSelect:l}=i,{fromCity:r,toCity:d,alternateModes:a=[]}=n||{fromCity:"",toCity:"",alternateModes:[]},c=i=>{let{type:e,chosen:n,popular:o}=i;return(0,t.jsxs)(O.sg,{children:[(0,t.jsxs)(O.sg,{onClick:()=>l(e),css:{width:100,height:100,padding:"$6i",alignItems:"center",justifyContent:"center",border:"1px solid $primary05",backgroundColor:n?"$primary00":"$white",cursor:"pointer"},children:[V[e],(0,t.jsx)(O.xv,{css:{fontSize:"$6i",textTransform:"uppercase",marginTop:"$8i",color:"$custom34"},children:e})]}),o&&(0,t.jsx)(O.xv,{css:{fontSize:"$7i",color:"$grey08",textAlign:"center",lineHeight:"$10i"}
1,children:"(Most popular)"})]})};return(0,t.jsx)(W.Vq.fC,{open:e,onOpenChange:o,children:(0,t.jsx)(W.Vq.VY,{css:{overflow:"auto",zIndex:10,padding:0,width:"100%",height:"100%","@lg":{width:656,height:430,borderRadius:"$4"}},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(O.sg,{css:{borderTopLeftRadius:"$3",borderTopRightRadius:"$3"},children:[(0,t.jsxs)(O.kC,{css:{backgroundColor:"$black",padding:"$10i $12i",alignItems:"center",justifyContent:"space-between"},children:[(0,t.jsxs)(O.sg,{children:[(0,t.jsx)(O.xv,{css:{fontSize:"10px",textTransform:"uppercase",lineHeight:"$7i",marginBottom:"$2i",color:"$white","@lg":{fontSize:"13px",lineHeight:"$10i"}},children:"ITINERARY / Change mode of transfer"}),(0,t.jsx)(O.xv,{css:{fontSize:"13px",lineHeight:"$10i",color:"$white",fontWeight:"$bold","@lg":{fontSize:"$10i",lineHeight:"$13i"}},children:"Change mode of transfer"})]}),(0,t.jsx)(O.xu,{onClick:o,children:(0,t.jsx)(H.Z,{css:{fill:"$white",cursor:"pointer"}})})]}),(0,t.jsxs)(O.sg,{css:{padding:"$16i $13i",backgroundColor:"$white"},children:[(0,t.jsxs)(O.xv,{css:{color:"$custom34",fontSize:"$8i",textAlign:"center"},children:["Choose your preferred mode of transfer from",(0,t.jsxs)(O.xu,{as:"span",css:{fontWeight:"$bolder"},children:["\xa0",r,"\xa0"]}),"to",(0,t.jsxs)(O.xu,{as:"span",css:{fontWeight:"$bolder"},children:["\xa0",d]})]}),(0,t.jsx)(O.kC,{css:{padding:"$20i 0",justifyContent:"center",gap:"$12i"},children:s.Children.toArray(a.map(c))})]}),(0,t.jsxs)(O.kC,{css:{alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(O.xu,{as:"span",css:{padding:"$i $4i",color:"$white",fontSize:"$5i",textAlign:"center",fontWeight:"$bolder",backgroundColor:"$yellow11",borderRadius:"$sizes$6i"},children:"Warning!"}),(0,t.jsx)(O.xv,{css:{fontSize:"13px",color:"$grey08",paddingLeft:"$2i"},children:"Activities & bookings linked with transfers may get changed when you change the mode."})]})]})})})})},_=i=>{let{changeRoute:e,iterCities:n,campaignItineraryId:d,rc:a,regionName:c,isBooked:h,itineraryInfo:p,landPackageBooked:m,intlFlightBooked:y,iscampaignItinerary:C}=i,w=(0,l.useRouter)(),b=(0,o.Dv)(R.s1),L=(0,o.b9)(R.w4),{getBreakUnityItineraryAsync:F}=(0,g.l)(),[H,E]=(0,s.useState)(!1),[D,P]=(0,s.useState)(!0),[W,O]=(0,s.useState)(!1),[V,_]=(0,s.useState)(!1),[q,U]=(0,s.useState)([]),[X,K]=(0,s.useState)([]),[G,Y]=(0,o.KO)(R.hw),[J,Q]=(0,o.KO)(R.H9),[ii,ie]=(0,s.useState)(0),[it,io]=(0,s.useState)(!1),[il,is]=(0,s.useState)(null),{getRemovableRoutesAsync:ir}=j(),{getRouteAddCitiesAsync:id}=k(),{getRouteReplaceCitiesAsync:ia}=I(),{getUpdatedItineraryAsync:ic}=f(),{getAlternateTransferModesAsync:iu}=u(),{getModifyTransferModeAsync:ig}=$(),{getAddDayAsync:ih}=v(),{getRemoveDayAsync:ip}=x(),iv=(0,A.Z)(p),{regionCode:ix,itineraryId:im,fromCityKey:iy,toCityKey:i$,customizable:iC}=(0,s.useMemo)(()=>{var i,e,n;return{regionCode:(null==p?void 0:null===(i=p.itinerary)||void 0===i?void 0:i.regionCode)?null==p?void 0:null===(e=p.itinerary)||void 0===e?void 0:e.regionCode:"".concat(w.query.regionCode),itineraryId:"".concat(w.query.itineraryId),fromCityKey:"".concat(w.query.fromCityKey),toCityKey:"".concat(w.query.toCityKey),customizable:(null==p?void 0:null===(n=p.unityDetailsVO)||void 0===n?void 0:n.customizable)||!1}},[w.query,p]),ij=(0,s.useCallback)(()=>{let i=null==n?void 0:n.reduce((i,e)=>{let{cityId:n,cityName:t,nights:o,airportCode:l,mode:s="",is_last_city:r,days:d,transferSlotDetails:a,cityKey:c}=e;return[...i,{cityId:n,cityName:t,nights:o,airportCode:l,mode:s,is_last_city:r,days:d,transferSlotDetails:a,cityKey:c}]},[]);K(i)},[n]);(0,s.useEffect)(()=>{(null==X?void 0:X.length)===0&&ij()},[null==X?void 0:X.length,n,ij]);let iw=(0,s.useMemo)(()=>{let i=null==n?void 0:n.reduce((i,e)=>{let{cityId:n}=e;return[...i,n]},[]);return i},[n]),ik=(0,s.useMemo)(()=>{let i=null==n?void 0:n.reduce((i,e)=>{let{nights:n}=e;return[...i,n]},[]);return i},[n]),ib=(0,s.useMemo)(()=>{let i=null==X?void 0:X.reduce((i,e)=>{let{nights:n}=e;return[...i,n]},[]);return i},[X]),iI=(0,s.useMemo)(()=>{let i=null==X?void 0:X.reduce((i,e)=>{let{cityId:n}=e;return[...i,n]},[]);return i},[X]),iS=(0,s.useCallback)(async()=>{let i=await ir({cities:iI});U((null==i?void 0:i.data)||i)},[iI,ir]),iT=(0,s.useCallback)(async i=>{let e=await ir({cities:i});U((null==e?void 0:e.data)||e)},[ir]);(0,s.useEffect)(()=>{!e&&(null==X?void 0:X.length)>0&&iS()},[e,X,iS]);let iA=(0,s.useMemo)(()=>{let i=null==q?void 0:q.reduce((i,e)=>{let{cityId:n,canRemove:t}=e;return t?[...i,n]:i},[]);return i},[q]),iR=async i=>{let{interests:e=[],citiesInItinerary:n=iI,...t}=i,o={...t,interests:e,citiesInItinerary:n},l=await ia(o);Y(l.data||l),Q(l.data||l)},iM=async i=>{let{interests:e=[],citiesInItinerary:n=iI,...t}=i,o={...t,interests:e,citiesInItinerary:n},l=await id(o);Y(l.data||l),Q(l.data||l)},iz=i=>{let n=X.slice(0);n.splice(ii,0,i),K(n),e&&iT(n.map(i=>i.cityId))},iZ=i=>{let n=X.slice(0);return n.splice(i,1),K(n),e&&iT(n.map(i=>i.cityId)),n},iB=i=>{let n=X.slice(0);n.splice(ii,1,i),K(n),e&&iT(n.map(i=>i.cityId))},iL=async function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X,e={cities:i.reduce((i,e)=>{let{cityId:n}=e;return[...i,n]},[]),nights:i.reduce((i,e)=>{let{nights:n}=e;return[...i,n]},[]),itineraryId:im},n=await ic(e);L(n),E(!1)},iF=()=>
1{if(d){var i;w.push({pathname:w.asPath,query:{m:"gcm",id:d,rc:a,rcName:c,isUnity:iv,itineraryCost:null==p?void 0:null===(i=p.itinerary)||void 0===i?void 0:i.totalCost}},void 0,{shallow:!0})}else w.push({pathname:w.asPath,query:{m:C?"gcm":(null==b?void 0:b.loggedIn)?"gcm":"signin",isUnity:iv}},void 0,{shallow:!0})},iH=async i=>{let{nextCityKey:e,currCityKey:n,transferMode:t}=i;if(null==b?void 0:b.loggedIn){var o,l;let s={fromCity:null===(o=n.split("_"))||void 0===o?void 0:o[0],toCity:null===(l=e.split("_"))||void 0===l?void 0:l[0],transitCity:0,currentModes:[t]},r=await iu(s);is(r.data||r),w.push({pathname:w.asPath,query:{m:"changeTransfer",fromCityKey:n,toCityKey:e,mode:t}},void 0,{shallow:!0})}else w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},iE=async i=>{_(!1),w.replace({pathname:w.asPath.split("?")[0],query:{}},void 0,{shallow:!0});let e=await ig({itineraryId:im,prevCityKey:iy,nextCityKey:i$,transitCity:0,newModes:[i]});L(e)},iD=(i,e)=>{let n=X.reduce((n,t,o)=>o===e&&t.nights>0?[...n,{...t,nights:"add"===i?Number(t.nights)+1:Number(t.nights)-1}]:[...n,t],[]);K(n)},iP=async(i,e)=>{var t;if((0,M.L9W)(M.ZGd,{cityName:X[e].cityName,from:X[e].nights,to:"add"===i?X[e].nights+1:X[e].nights-1,type:"add"===i?"increase":"decrease",ItineraryId:null==p?void 0:null===(t=p.itinerary)||void 0===t?void 0:t.itineraryId,leadSource:(0,z.L1)({router:w,lastLocation:{pathname:w.asPath}}),ItineraryType:iv?"Unity":"Customize"}),null==b?void 0:b.loggedIn){if(iv)io(!0);else{sessionStorage.setItem("scrollPosition",window.scrollY.toString());let o={itineraryId:im,cityId:X[e].cityId,dayIdentifier:n[e].allDayKeys[X[e].nights-1]};if("add"===i){let l=await ih(o);L(l)}if("remove"===i){let s=await ip(o);L(s)}iD(i,e)}}else w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},iW=()=>{var i;(0,M.L9W)(M.xND,{ItineraryId:null==p?void 0:null===(i=p.itinerary)||void 0===i?void 0:i.itineraryId,leadSource:(0,z.L1)({router:w,lastLocation:{pathname:w.asPath}}),ItineraryType:iv?"UNITY":"Customize"}),(null==b?void 0:b.loggedIn)?iv?io(!0):(P(!0),E(!0),q.length||iS()):w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},iO=i=>{var e;(0,M.L9W)(M.o0k,{ItineraryId:null==p?void 0:null===(e=p.itinerary)||void 0===e?void 0:e.itineraryId,leadSource:(0,z.L1)({router:w,lastLocation:{pathname:w.asPath}}),ItineraryType:iv?"UNITY":"Customize"}),(null==b?void 0:b.loggedIn)?iv?io(!0):(O(!1),P(!1),null!==i&&(ie(i),iM({entry:0===i,exit:i===X.length,previousCityId:i>0?X[i-1].cityId:0,nextCityId:i<X.length?X[i].cityId:0,previousCityIndex:i,region:ix,interests:null==p?void 0:p.itinerary.interests})),E(!0)):w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},iV=i=>{var e;if((0,M.L9W)(M.Snj,{ItineraryId:null==p?void 0:null===(e=p.itinerary)||void 0===e?void 0:e.itineraryId,leadSource:(0,z.L1)({router:w,lastLocation:{pathname:w.asPath}}),ItineraryType:iv?"UNITY":"Customize"}),null==b?void 0:b.loggedIn){if(iv)io(!0);else{let n=iZ(i);iL(n)}}else w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},iN=i=>{let{nextCityKey:e,currCityKey:n,transferMode:t}=i;(null==b?void 0:b.loggedIn)?iv?io(!0):(_(!0),iH({nextCityKey:e,currCityKey:n,transferMode:t})):w.push({pathname:w.asPath,query:{m:"signin"}},void 0,{shallow:!0})},i_=(0,s.useCallback)(async()=>{try{let i=await F({itineraryId:im});"SUCCESS"===i.status&&i.data&&(io(!1),w.push("/customize/".concat(ix,"/view/").concat(im,"/calculating-cost")))}catch(e){console.error({error:e}),r.Am.error("somthing went wrong.")}},[F,im,ix,w]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Z,{changeRoute:e,expand:D||!(0,Z.Z)(),iterCities:X,isBooked:h||m,intlFlightBooked:y,onClickEdit:iF,onEditRoute:d||C?iF:iW,onAddCityRoute:d||C?iF:iO,onRemoveCity:d||C?iF:iV,removableCityIds:iA,onReplaceTransferLinkClick:iN,onChangeNights:(i,e)=>{d||C?iF():iP(i,e)},customizable:iC,isUnity:iv}),(!d||!C)&&H&&(0,t.jsx)(B.ZP,{open:H,setOpen:E,iterCities:X,isEditRoute:D,newCities:G.filter(i=>i.canAdd||i.canReplace),setNewCities:Y,duplicatCities:J,onNewCityClick:i=>W?iB(i):iz(i),onAddCityRowClick:i=>{O(!1),ie(i),iM({entry:0===i,exit:i===X.length,previousCityId:i>0?X[i-1].cityId:0,nextCityId:i<X.length?X[i].cityId:0,previousCityIndex:i,region:ix,interests:null==p?void 0:p.itinerary.interests})},onReplaceCityRowClick:i=>{O(!0),ie(i),iR({entry:0===i,exit:i===iI.length-1,currentCityId:iI[i],previousCityId:iI[i-1]||0,nextCityId:iI[i+1]||0,replaceIndex:i,region:ix,interests:null==p?void 0:p.itinerary.interests})},onRemoveCity:i=>{iZ(i)},removableCityIds:iA,isDataUpdated:JSON.stringify(iw)!==JSON.stringify(iI)||JSON.stringify(ik)!==JSON.stringify(ib),onCancel:()=>{ij(),E(!1)},onSubmit:()=>iL(X),onChangeNights:(i,e)=>iD(i,e)}),(!d||!C)&&V&&(0,t.jsx)(N,{open:V,data:il,onModalClose:()=>{w.replace({pathname:w.asPath.split("?")[0],query:{}},void 0,{shallow:!0}),_(!1)},onSelect:iE}),(0,t.jsx)(S.Z,{onCloseModal:()=>io(!1),open:it,onProceedClick:()=>i_()})]})};var q=_},81176:function(i,e,n){n.d(e,{Z:function(){return l}});var t=n(85893),o=n(39396);function l(){return(0,t.jsx)(o.xu,{children:(0,t.jsx)(o.Od,{variant:"heading",css:{width:"100%",height:"252px",borderRadius:"$4","@lg":{height:"396px"}}})})}n(67294)},84569:function(i,e,n){n.d(e,{Z:function(){return u}});var t=n(85893),o=n(39396);n(67294);var l=n(53041),s=n(67121),r=n(81176);function d(){return(0,t.jsx)(l.Z,{css:{marginTop:"$10i",display:"flex",gap:"$4i",overflow:"auto",paddingLeft:"0","@lg":{gap:"$none"}},children:Array(6).fill(1).map((i,e)=>(0,t.jsxs)(o.sg,{css:{justifyContent:"center",width:"80px",alignItems:"center","@lg":{width:"114px",height:"63px"}},children:[(0,t.jsx)(o.Od,{variant:"avatar1",css:{width:"22px",height:"22px",borderRadius:"unset"}}),(0,t.jsx)(o.Od,{variant:"text",css:{width:"70px",height:"15px",marginTop:"$4i"}})]},"skeleton-scrolltab-".concat(i,"-").concat(e)))})}function a(){return(0,t.jsxs)(o.sg,{css:{width:"100%",height:"577px",gap:"$i","@lg":{width:"724px"}},children:[(0,t.jsx)(o.Od,{css:{width:"100%",height:"13%",borderTopLeftRadius:"$3",borderTopRightRadius:"$3",display:"none","@lg":{display:"flex"}}}),(0,t.jsxs)(o.kC,{css:{width:"100%",height:"20%",gap:"$i",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"50%","@lg":{width:"20%",height:"100%"}}}),(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"100%","@lg":{width:"80%"}}})]}),(0,t.jsxs)(o.kC,{css:{width:"100%",height:"20%",gap:"$i",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"50%","@lg":{width:"20%",height:"100%"}}}),(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"100%","@lg":{width:"80%"}}})]}),(0,t.jsxs)(o.kC,{css:{width:"100%",height:"20%",gap:"$i",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"50%","@lg":{width:"20%",height:"100%"}}}),(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"100%","@lg":{width:"80%"}}})]}),(0,t.jsxs)(o.kC,{css:{width:"100%",height:"20%",gap:"$i",flexDirection:"column","@lg":{flexDirection:"row"}},children:[(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"50%","@lg":{width:"20%",height:"100%",borderBottomLeftRadius:"$3"}}}),(0,t.jsx)(o.Od,{variant:"text",css:{width:"100%",height:"100%","@lg":{width:"80%",borderBottomRightRadius:"$3"}}})]})]})}var c=n(76610);function u(){return(0,t.jsx)(l.Z,{children:(0,t.jsxs)(o.sg,{css:{gap:"$10i"},children:[(0,t.jsx)(c.Z,{}),(0,t.jsx)(r.Z,{}),(0,t.jsx)(d,{}),(0,t.jsxs)(o.X2,{css:{justifyContent:"space-between"},children:[(0,t.jsx)(a,{}),(0,t.jsx)(s.Z,{})]})]})})}},31747:function(i,e,n){n.d(e,{Z:function(){return s}});var t=n(85893),o=n(39396);n(67294);var l=n(69571);function s(i){let{trustElements:e,direction:n}=i;return(0,t.jsxs)(o.sg,{css:{gap:"$10i",backgroundColor:"white",padding:"$12i 0px","@lg":{backgroundColor:"unset",padding:"unset",alignItems:"column"===n?"center":"unset"}},children:[(0,t.jsx)(o.xv,{css:{color:"$grey900",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.4px",fontFamily:"$manrope",fontSize:"$9i",padding:"0px $8i","@lg":{padding:"unset"}},children:"Why choose Pickyourtrail?"}),(0,t.jsx)(o.kC,{css:{overflowX:"scroll",width:"100%",gap:"$8i","&::-webkit-scrollbar":{width:0,height:0,background:"transparent"},"@lg":{flexWrap:"wrap",gap:"$8i",flexDirection:"column"===n?"column":"row"}},children:null==e?void 0:e.map((i,s)=>(0,t.jsx)(o.xu,{css:{marginLeft:s?"unset":"$8i",marginRight:s===e.length-1?"$8i":"unset",width:"120px",flexShrink:0,"@lg":{marginLeft:"0px",marginRight:"0px",width:"column"===n?"100%":"46%"}},children:(0,t.jsx)(l.Z,{item:i})},null==i?void 0:i.id))})]})}},32261:function(i,e,n){var t=n(85893),o=n(5335);n(67294);let l=(0,o.zo)(function(i){return(0,t.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 28 28",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,t.jsx)("path",{d:"M1.719.281L.28 1.72l26 26 1.438-1.438-4.875-4.875A13.871 13.871 0 0025 14c0-3.73-1.488-7.113-3.875-9.625l-1.406 1.406C21.742 7.93 23 10.821 23 14c0 2.172-.578 4.211-1.594 5.969L19.938 18.5A9.896 9.896 0 0021 14a9.995 9.995 0 00-2.688-6.813l-1.406 1.438A7.925 7.925 0 0119 14c0 1.055-.219 2.05-.594 2.969L15 13.562V2.595L9.5 8.063 1.719.28zM13 7.406v4.157L10.937 9.5 13 7.406zM4 9v10h4.594L15 25.406v-6.593l-2-2v3.78L9.406 17H6v-6h1.188l-2-2H4z"})})},{});e.Z=l},83981:function(i,e,n){var t=n(85893),o=n(5335);n(67294);let l=(0,o.zo)(function(i){return(0,t.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,t.jsx)("path",{d:"M11 .594L9.281 2.28 4.562 7H0v10h4.563l4.718 4.719L11 23.406V.594zm9.125 1.781l-1.406 1.406C20.742 5.93 22 8.821 22 12c0 3.18-1.258 6.07-3.281 8.219l1.406 1.406C22.512 19.113 24 15.73 24 12s-1.488-7.113-3.875-9.625zm-2.813 2.813l-1.406 1.437C17.207 8.047 18 9.925 18 12s-.793 3.95-2.094 5.375l1.406 1.438C18.973 17.026 20 14.625 20 12s-1.027-5.027-2.688-6.813zM9 5.438v13.125L5.719 15.28 5.406 15H2V9h3.406l.313-.281L9 5.438zm5.5 2.593L13.062 9.47c.579.695.938 1.558.938 2.531 0 .973-.36 1.836-.938 2.531L14.5 15.97C15.438 14.91 16 13.523 16 12s-.563-2.91-1.5-3.969z"})})},{});e.Z=l},69845:function(i,e,n){n.r(e),n.d(e,{default:function(){return th},trustElements:function(){return tc}});var t=n(85893),o=n(13400),l=n(39396),s=n(70024),r=n(29208),d=n.n(r),a=n(11163),c=n(67294),u=n(86501),g=n(66261),h=n(3238),p=n(25544),v=n(25943),x=n(22832),m=n(31327),f=n(68243),y=n(78605),$=n(11079),C=n(63870),j=n(81528),w=n(95489),k=n(83983),b=n(80122),I=n(53041),S=n(47304),T=n(86278),A=n(75465),R=n(27232),M=n(59389),z=n(28375),Z=n(7744),B=n(44987),L=n(17624),F=n(43590),H=n.n(F),E=n(55625),D=n(74899),P=n(20229),W=n(22764),O=n(38618),V=n(3077),N=n(42751),_=n(77356),q=n(46574),U=n(7618),X=n(23440),K=n(65717),G=n(16129),Y=n(94756),J=n(64956),Q=n(59390),ii=n(27723),ie=n(61976),it=n(66881),io=n(7498),il=n(20811),is=n(73828),ir=n(47564),id=n(70029),ia=n(83873),ic=n(92878),iu=n(36428),ig=n(70428),ih=n(31382),ip=n(87943);let iv=i=>{let{data:e}=i;return(0,t.jsxs)(l.sg,{css:{gap:"$6i"},children:[(0,t.jsx)(l.xv,{css:{fontFamily:"$manrope",fontSize:"$9i",fontWeight:"$bolder",lineHeight:"$13i"},children:"Terms and Conditions"}),(0,t.jsx)(l.xv,{css:{color:"$grey600",lineHeight:"$11i",fontSize:"$7i",fontFamily:"$manrope"},dangerouslySetInnerHTML:{__html:e}})]})};var ix=n(72365),im=n(6478),iy=n(80438),i$=n(9352),iC=n(75291),ij=n(44950),iw=n(39502),ik=n(11301),ib=n(65732),iI=n(96053),iS=n(93290),iT=n(27627),iA=n(26074);let iR=g.ZP.Element,iM=()=>{var i,e,n,r,u,g,v,x,f,y,$,C,j,w,k,b,I,S,T,A,R,M,z,Z;let B=(0,a.useRouter)(),L=(0,iC.Z)(),F=(0,i$.Z)(L),iM=(0,s.Dv)(ij.s1),iz=(0,s.b9)(ij.w4),iZ=(0,s.b9)(ij.As),[iB,iL]=(0,c.useState)(!1),[iF,iH]=(0,c.useState)(!1),[iE,iD]=(0,c.useState)(!1),[iP,iW]=(0,c.useState)(!1),[iO,iV]=(0,s.KO)(ij.iD),iN=(0,s.b9)(ij.f6),i_=(0,s.b9)(ij.ZD),{getOtpRequestAsync:iq}=(0,p.J)(),{updateOtpAsync:iU}=(0,m.I)(),[iX,iK]=(0,c.useState)({show:!1,type:"hotel"}),{getAbcardPreviewAsync:iG}=(0,D.j)(),{DeleteCustomCardAsync:iY}=(0,P.E)(),{abcardConfirmAsync:iJ}=(0,E.K)(),{lineItemPreviewAsync:iQ}=(0,O.z)(),i0=(0,iy.Z)(),i1=(0,c.useMemo)(()=>{var i;return null===(i=B.query)||void 0===i?void 0:i.m},[B]),[i2,i5]=(0,c.useState)(!1),[i3,i6]=(0,c.useState)(!1),{getSubLineItemConfigsAsync:i8}=(0,W.D)(),i4=(0,s.b9)(ij.$G),i9=(0,ib.P)({permissions:null==iM?void 0:iM.permissions,key:iT.St}),i7=(0,c.useMemo)(()=>{var i;return null===(i=B.query)||void 0===i?void 0:i.cardType},[B]),ei=(0,c.useMemo)(()=>null==L?void 0:L.lineItemBasedAlerts,[L]),ee=(0,c.useMemo)(()=>{var i;return!!(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.booking)},[L]),en=(0,c.useMemo)(()=>{var i;return null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.landPackageBooked},[L]),et=(0,c.useMemo)(()=>{var i;return!!(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.flightsBlocked)},[L]),eo=(0,c.useMemo)(()=>(null==L?void 0:L.allFlightCostingRefs)||[],[L]),el=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.flightCostings)||void 0===i?void 0:i.costingById)||{}},[L]),es=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.FLIGHT)||void 0===e?void 0:e.alerts)||{}},[ei]),er=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.hotelCostings)||void 0===i?void 0:i.costingById)||{}},[L]),ed=(0,c.useMemo)(()=>(null==L?void 0:L.allHotelCostingRefs)||[],[L]),ea=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.HOTEL)||void 0===e?void 0:e.alerts)||{}},[ei]),ec=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.INSURANCE)||void 0===e?void 0:e.alerts)||{}},[ei]),eu=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.ACTIVITY)||void 0===e?void 0:e.alerts)||{}},[ei]),eg=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.VISA)||void 0===e?void 0:e.alerts)||{}},[ei]),eh=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.TRAIN)||void 0===e?void 0:e.alerts)||{}},[ei]),ep=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.TRANSFER)||void 0===e?void 0:e.alerts)||{}},[ei]),ev=(0,c.useMemo)(()=>{var i,e;return(null==ei?void 0:null===(i=ei.alertMessages)||void 0===i?void 0:null===(e=i.RENTAL_CAR)||void 0===e?void 0:e.alerts)||{}},[ei]),ex=(0,c.useMemo)(()=>null==L?void 0:L.itinerary.locale,[null==L?void 0:L.itinerary.locale]),em=(0,c.useMemo)(()=>{let i=[];if(null==L?void 0:L.itinerary){let e=null==L?void 0:L.itinerary.allCityKeys;if(H()(e,e=>{let n=L.iterCityByKey[e];i.push(L.cityById[n.cityId].cityName)}),i.length>1){let n=i.splice(-1);return i.join(", ")+" and "+n}}return i.join(", ")}
1,[L]),{itineraryId:ef,regionCode:ey,itineraryTitle:e$,isStaleCost:eC}=(0,c.useMemo)(()=>{var i,e,n,t;let o=null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.nights;return{regionCode:null==L?void 0:null===(e=L.itinerary)||void 0===e?void 0:e.regionCode,itineraryId:null==L?void 0:null===(n=L.itinerary)||void 0===n?void 0:n.itineraryId,flightAliasId:null==L?void 0:null===(t=L.itinerary)||void 0===t?void 0:t.flightAliasId,isStaleCost:null==L?void 0:L.isStaleCost,itineraryTitle:d()(L,"itinerary.title","".concat(void 0!==o?o:""," ").concat((0,iI.Z)({count:void 0!==o?o:0,keyword:void 0!==o?"night":""})," ").concat(em))}},[L,em]),ej=(0,c.useMemo)(()=>"in"===ex&&en&&(null==iM?void 0:iM.loggedIn)&&(0,ib.P)({permissions:null==iM?void 0:iM.permissions,key:iT.yj}),[ex,en,null==iM?void 0:iM.loggedIn,null==iM?void 0:iM.permissions]),ew=(0,c.useMemo)(()=>(null==iM?void 0:iM.loggedIn)&&(0,ib.P)({permissions:null==iM?void 0:iM.permissions,key:iT.iI}),[null==iM?void 0:iM.loggedIn,null==iM?void 0:iM.permissions]),ek=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="FLIGHTS"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eb=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="HOTELS"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eI=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="TRANSFERS"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eS=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="INSURANCE"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eT=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="TRAIN"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eA=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="RENTALCAR"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eR=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="FERRY"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eM=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="ACTIVITIES"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),ez=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="VISA"&&!(null==i?void 0:i.customCardEntity)))||[]},[null==L?void 0:L.customCostings]),eZ=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="CUSTOM"&&(null==i?void 0:i.landPackage)&&!(null==i?void 0:i.parentCostingId)))||[]},[null==L?void 0:L.customCostings]),eB=(0,c.useMemo)(()=>Number(null==L?void 0:L.oldDealSize),[L]),eL=(0,c.useMemo)(()=>Number(null==L?void 0:L.newDealSize),[L]),eF=(0,c.useMemo)(()=>{var i;return!(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.disableCustomCard)},[L]),eH=(0,c.useCallback)(i=>{var e;iK({show:!0,type:i}),B.push({pathname:null===(e=B.asPath)||void 0===e?void 0:e.split("?")[0],query:{m:"ab-card",cardType:i}},void 0,{shallow:!0})},[B]),eE=(0,c.useCallback)((i,e)=>{let n="/customize/".concat(ey,"/inclusions/ab-card/").concat(i,"/").concat(e,"/").concat(ef);(0,iS.Z)(n)},[ef,ey]),eD=(0,c.useCallback)(i=>{if(iZ(i=>({...i,showMenuMobile:!1})),B.query.m!==i){var e;let n=null===(e=B.asPath)||void 0===e?void 0:e.split("?")[0];B.push({pathname:n,query:{m:i}},void 0,{shallow:!0})}},[B,iZ]),eP=(0,c.useCallback)(()=>{eD("custom-block-card")},[eD]),eW=(0,c.useCallback)(()=>{B.push({pathname:B.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},[B]),eO=(0,c.useCallback)(()=>{B.push({pathname:B.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},[B]),eV=(0,c.useCallback)(async()=>
1{if((null==iM?void 0:iM.loggedIn)&&!(null==iM?void 0:iM.email)){let i={userId:null==iM?void 0:iM.userId,newEmail:null==iO?void 0:iO.email},e=await iq(i);"SUCCESS"===e.status?iV({...iO,enableButton:!(null==iO?void 0:iO.enableButton),showOtp:!(null==iO?void 0:iO.showOtp),message:"",response:null==e?void 0:e.data}):iV({...iO,enableButton:!1,showOtp:!1,message:null==e?void 0:e.message})}},[iq,iV,iM,iO]),eN=(0,c.useCallback)(async i=>{var e;if((null==iO?void 0:iO.response)!==null&&(null==iO?void 0:null===(e=iO.otp)||void 0===e?void 0:e.length)===6){let n={...null==iO?void 0:iO.response,otp:null==iO?void 0:iO.otp,email:null==iO?void 0:iO.email},t=await iU(n);"SUCCESS"===t.status&&(null==t?void 0:t.message)==="Update successful"?(iV({...iO,otpError:!1,otpMessage:""}),i?B.push(i0?"/things-to-know-before-book/".concat(ef):"/must-know/".concat(ef)):B.reload()):iV({...iO,otpError:!0,otpMessage:null==t?void 0:t.message})}},[iU,ef,B,iO,iV,i0]),e_=(0,c.useCallback)(async(i,e,n,t)=>{if("TRANSIENT"===n){let o=await iY({url:"offline/".concat(ef,"/custom/cancel/").concat(e)});"SUCCESS"===o.status&&iz(o)}else{let l=await iG({costingId:e,entityType:i,itineraryId:ef,landPackage:!0,type:"preview",rebook:!1});"SUCCESS"===l.status&&(iz(l),B.push({pathname:B.asPath,query:{m:"abard-preview",entityType:i,costingId:e,lineItemCost:t}},void 0,{shallow:!0}))}},[iY,iG,ef,B,iz]),eq=(0,c.useCallback)(async i=>{let{costingId:e}=i,n=await iJ({itineraryId:ef,abCardId:e});"SUCCESS"===n.status&&(iz(n),iL(!1),B.push({pathname:B.asPath.split("?")[0],query:{}},void 0,{shallow:!0}))},[iJ,ef,B,iz]),eU=(0,c.useCallback)(async i=>{var e,n;let{entityType:t,costingId:o,type:l,cardType:s,rebook:r,cancelfeeUpdate:d,reason:a}=i,c=await iG({costingId:o||"".concat(null==B?void 0:null===(e=B.query)||void 0===e?void 0:e.costingId),entityType:t||"".concat(null==B?void 0:null===(n=B.query)||void 0===n?void 0:n.entityType),itineraryId:ef,landPackage:!0,type:l,rebook:"preview"===s&&(r||!1),cancelfeeUpdate:d,reason:a});"SUCCESS"===c.status&&(iz(c),iL(!1),B.push({pathname:B.asPath.split("?")[0],query:{}},void 0,{shallow:!0}))},[iG,ef,B,iz]),eX=(0,c.useCallback)(async()=>{try{var i,e;let n=await iQ({itineraryId:null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.itineraryId,landPackage:!0});(null==n?void 0:n.status)==="SUCCESS"&&(null==n?void 0:n.data)&&(i_(null==n?void 0:n.data),B.push({pathname:null===(e=B.asPath)||void 0===e?void 0:e.split("?")[0],query:{m:"itinerary-lineItem-preview"}},void 0,{shallow:!0}))}catch(l){console.error({error:l});let t="object"==typeof l&&null!==l&&"message"in l?l.message:"An unexpected error occurred";o.ZP.error(t,{duration:1e3}),i_(null)}},[null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.itineraryId,iQ,B,i_]),eK=(0,c.useCallback)((i,e,n,t,o)=>{var l;let s={m:"addon-line-item",entity:i,configKey:e,isFlightOnly:o||!1};n&&(s.mode=n),t&&(s.roomId=t),B.replace({pathname:null===(l=B.asPath)||void 0===l?void 0:l.split("?")[0],query:s},void 0,{shallow:!0,scroll:!1})},[B]);(0,c.useEffect)(()=>{"ab-card"!==i1||!i7||(null==iX?void 0:iX.show)?iB||"abard-preview"!==i1?iB||"lineItemCancel-preview"!==i1?iE||"itinerary-lineItem-preview"!==i1?iP||"postBooking-logs"!==i1?i2||"addon-line-item"!==i1?i3||"one-pager-edit"!==i1||i6(!0):i5(!0):iW(!0):iD(!0):iH(!0):iL(!0):iK({show:!0,type:"".concat(i7)})},[B,i1,iB,i7,null==iX?void 0:iX.show,iE,iP,i2,i3]),(0,c.useEffect)(()=>{i1||(iK({show:!1,type:"hotel"}),iL(!1),iH(!1),iD(!1),iW(!1),i5(!1),i6(!1))},[i1]);let eG=(0,c.useCallback)(async()=>{try{let i=await i8();"SUCCESS"===i.status&&i4(i.data)}catch(e){console.error({error:e})}},[i8,i4]);(0,c.useEffect)(()=>{eG()},[eG]),(0,c.useEffect)(()=>{iN((null==L?void 0:L.displayCurrency)||"INR")},[null==L?void 0:L.displayCurrency,iN]),(0,c.useEffect)(()=>{let i=(null==L?void 0:L.version)==="SPEEDBOAT",e=new URLSearchParams(window.location.search),n=e.toString().length>0;i&&!n&&B.replace("/customize/".concat(ey,"/view/").concat(ef))},[null==L?void 0:L.version,ey,ef,B]);let eY=(0,c.useMemo)(()=>{let i=null==L?void 0:L.internationalFlightPlaceHolder;if(null==i||0===Object.keys(i).length)return null;let{identifier:e,onwardDepartureCity:n,onwardArrivalCity:t}=i;return e&&n&&t?i:null},[L]);return(0,t.jsxs)(ic.Z,{children:[(0,t.jsxs)(l.X2,{justify:"between",children:[(0,t.jsxs)(l.sg,{id:"inclusions-container",css:{width:"100%",gap:"$12i","@lg":{width:"62.85%",gap:"$20i"}},children:[eo.length>0||eY?(0,t.jsx)(iR,{name:ia.$X.Flights,children:(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(e=L.allFlightCostingRefs)||void 0===e?void 0:e.length)?null==L?void 0:null===(n=L.allFlightCostingRefs)||void 0===n?void 0:n.length:0,keyword:"Flight"})}),(0,t.jsx)(J.Z,{flightCostings:el,flightCostingRefs:eo,isBlocked:et,isBooked:ee,alerts:es,abFlightCostings:ek,showABCard:ej,onEditABCard:eE,onCreateABCard:eH,itineraryId:ef,itineraryInfo:L,islandBooked:en,onCTACancelClick:e_,onClickConfirm:eq,onClickAddonLineItem:eK,initialFlightDummyInfo:eY,flightAliasId:null==L?void 0:null===(r=L.itinerary)||void 0===r?void 0:r.flightAliasId})]})}):null,er?(0,t.jsx)(iR,{name:ia.$X.Hotels,children:(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(null==L?void 0:L.allHotelCostingRefs)?(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(u=L.allHotelCostingRefs)||void 0===u?void 0:u.length)?null==L?void 0:null===(g=L.allHotelCostingRefs)||void 0===g?void 0:g.length:0,keyword:"Stay"})}):null,(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(Q.Z,{regionCode:ey,costings:er,costingRefs:ed,alerts:ea,canEditHOD:(0,ib.P)({permissions:null==iM?void 0:iM.permissions,key:iT.Gz}),isBooked:ee,islandBooked:en,onClickAddonLineItem:eK})})]})}):null,en&&(null==eb?void 0:eb.length)?null==eb?void 0:eb.map((i,e)=>{var n;return(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.STAY,entity:null==i?void 0:i.entityType}
1):(0,t.jsx)(K.Z,{title:null==i?void 0:i.title,description:(null==i?void 0:i.description)||"",roomsInHotel:(null==i?void 0:null===(n=i.entityCosting)||void 0===n?void 0:n.roomsInHotel)||[],amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("hotel",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})},"hotel-abcard-"+e)}):null,er&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("hotel"),children:"Add Hotel AB Card"}):null,(null==L?void 0:L.transferCostings)||(null==L?void 0:L.rentalCarCostings)||(null==L?void 0:L.trainCostings)||(null==L?void 0:L.ferryCostings)?(0,t.jsx)(iR,{name:ia.$X.Transfers,children:(0,t.jsxs)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:[(null==L?void 0:L.transferCostings)?(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(v=L.allTransferCostingRefs)||void 0===v?void 0:v.length)?null==L?void 0:null===(x=L.allTransferCostingRefs)||void 0===x?void 0:x.length:0,keyword:"Transfer"})}),(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(il.ZP,{costingById:null==L?void 0:L.transferCostings.costingById,transfersRefs:null==L?void 0:L.allTransferCostingRefs,alerts:ep,isBooked:en,islandBooked:en,itineraryId:ef,departureDateMillis:null==L?void 0:L.costingConfiguration.departureDateMillis,onClickAddonLineItem:eK})})]}):null,en&&(null==eI?void 0:eI.length)?null==eI?void 0:eI.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.TRANSFER,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("transfer",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})}
1,"transfer-abcard-"+e)):null,(null==L?void 0:L.transferCostings)&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("transfer"),children:"Add Transfer AB Card"}):null,(null==L?void 0:L.rentalCarCostings)?(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(f=L.allRentalCostingRefs)||void 0===f?void 0:f.length)?null==L?void 0:null===(y=L.allRentalCostingRefs)||void 0===y?void 0:y.length:0,keyword:"Rental car"})}),(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(ie.Z,{costingById:null==L?void 0:L.rentalCarCostings.costingById,rentalCarRefs:(null==L?void 0:L.allRentalCostingRefs)||[],alerts:ev,isBooked:ee,islandBooked:en,onClickAddonLineItem:eK})})]}):null,en&&(null==eA?void 0:eA.length)?null==eA?void 0:eA.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.RENT_CAR,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("rental-car",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})},"rentalcar-abcard-"+e)):null,(null==L?void 0:L.rentalCarCostings)&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("rental-car"),children:"Add Rental Car AB Card"}):null,(null==L?void 0:L.trainCostings)?(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===($=L.allTrainCostingRefs)||void 0===$?void 0:$.length)?null==L?void 0:null===(C=L.allTrainCostingRefs)||void 0===C?void 0:C.length:0,keyword:"Train"})}),(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(io.ZP,{trains:L,alerts:eh,isBooked:ee,islandBooked:en,onClickAddonLineItem:eK})})]}):null,en&&(null==eT?void 0:eT.length)?null==eT?void 0:eT.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.TRAIN,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("transfer",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})},"train-abcard-"+e)):null,(null==L?void 0:L.trainCostings)&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("transfer"),children:"Add Train AB Card"}):null,(null==L?void 0:L.ferryCostings)?(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(j=L.allFerryCostingRefs)||void 0===j?void 0:j.length)?null==L?void 0:null===(w=L.allFerryCostingRefs)||void 0===w?void 0:w.length:0,keyword:"Ferry"})}),(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(Y.Z,{costingById:null==L?void 0:L.ferryCostings.costingById,ferryRefs:null==L?void 0:L.allFerryCostingRefs,isBooked:ee,islandBooked:en,onClickAddonLineItem:eK})})]}):null,en&&(null==eR?void 0:eR.length)?null==eR?void 0:eR.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.FERRY,entity:null==i?void 0:i.entityType}
1):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("ferry",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})},"ferry-abcard-"+e)):null,(null==L?void 0:L.ferryCostings)&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("ferry"),children:"Add Ferry AB Card"}):null]})}):null,(null==L?void 0:L.activityCostings)?(0,t.jsx)(iR,{name:ia.$X.Activities,children:(0,t.jsxs)(l.sg,{css:{gap:"$11i","@lg":{gap:"$14i"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:(0,iI.Z)({count:(null==L?void 0:null===(k=L.allActivityCostingRefs)||void 0===k?void 0:k.length)?null==L?void 0:null===(b=L.allActivityCostingRefs)||void 0===b?void 0:b.length:0,keyword:"Activity",pluralWord:"Activities"})}),(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:(0,t.jsx)(G.Z,{activityCostings:null==L?void 0:L.activityCostings,activityRefs:null==L?void 0:L.allActivityCostingRefs,activityById:null==L?void 0:L.activityById,alerts:eu,itineraryInfo:L,onClickAddonLineItem:eK})})]})}):null,en&&(null==eM?void 0:eM.length)?null==eM?void 0:eM.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.ACTIVITIES,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,data:i,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("activity",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id}),entityType:"ACTIVITY"})},"activity-abcard-"+e)):null,ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("activity"),children:"Add Activity AB Card"}):null,(0,t.jsx)(iR,{name:ia.$X.More,children:(0,t.jsxs)(l.sg,{css:{gap:"$14i"},children:[(null==L?void 0:L.visaCostings)?(0,t.jsx)(l.xv,{css:{color:"$black",fontSize:"$10i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",paddingLeft:"$6i",fontFamily:"$manrope","@lg":{paddingLeft:"0px"}},children:"Visa & Insurance"}):null,(0,t.jsxs)(l.sg,{css:{width:"100%",gap:"$16i","@lg":{gap:"$20i"}},children:[(null==L?void 0:L.visaCostings)?(0,t.jsx)(is.Z,{costing:null==L?void 0:null===(I=L.visaCostings)||void 0===I?void 0:I.costingById,alerts:eg,isBooked:ee,islandBooked:en,locale:null==L?void 0:null===(S=L.itinerary)||void 0===S?void 0:S.locale,onClickAddonLineItem:eK}):null,en&&(null==ez?void 0:ez.length)?null==ez?void 0:ez.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.VISA,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("visa",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status,null==i?void 0:i.publishedCost),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})}
1,"visa-abcard-"+e)):null,ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("visa"),children:"Add Visa AB Card"}):null,(null==L?void 0:L.insuranceCosting)?(0,t.jsx)(ii.Z,{costing:null==L?void 0:null===(T=L.insuranceCosting)||void 0===T?void 0:T.costingById,alerts:ec,itineraryInfo:L,onClickAddonLineItem:eK,islandBooked:en}):null,en&&(null==eS?void 0:eS.length)?null==eS?void 0:eS.map((i,e)=>(0,t.jsx)(l.sg,{children:(null==i?void 0:i.status)===im.ew?(0,t.jsx)(ir.Z,{title:null==i?void 0:i.title,type:iw.WK.STAY,entity:null==i?void 0:i.entityType}):(0,t.jsx)(U.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,amount:null==i?void 0:i.ourCost,onCTAClick:()=>eE("insurance",null==i?void 0:i._id),showEdit:ej&&(null==i?void 0:i.status)!=="TRANSIENT",showCancel:ej,cancelCtaText:(null==i?void 0:i.status)==="TRANSIENT"?"Discard":"Remove",showConfirm:(null==i?void 0:i.status)==="TRANSIENT",onCTACancelClick:()=>e_(null==i?void 0:i.entityType,null==i?void 0:i._id,null==i?void 0:i.status),confirmCTA:"Confirm",onClickConfirm:()=>eq({costingId:null==i?void 0:i._id})})},"insurance-abcard-"+e)):null,(null==L?void 0:L.insuranceCosting)&&ej?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:()=>eH("insurance"),children:"Add Insurance AB Card"}):null,(null==L?void 0:L.passCostings)?(0,t.jsx)(it.Z,{costing:null==L?void 0:null===(A=L.passCostings)||void 0===A?void 0:A.costingById,isBooked:ee,isLandBooked:en,onClickAddonLineItem:eK}):null,eZ.length&&iM?null==eZ?void 0:eZ.map((i,e)=>(0,t.jsx)(l.sg,{children:(0,t.jsx)(X.Z,{title:null==i?void 0:i.title,description:null==i?void 0:i.description,inclusion:null==i?void 0:i.inclusion,exclusion:null==i?void 0:i.exclusion,happensOn:null==i?void 0:i.happensOn,amount:(0,ik.Z)({publishedCost:null==i?void 0:i.publishedCost,ourCost:null==i?void 0:i.ourCost,userDetails:iM}),onCTAClick:()=>eE("flight",null==i?void 0:i._id),id:null==i?void 0:i._id,entityType:i.entity})},"custom-customcard-"+e)):null,ew&&!ee&&!en&&eF?(0,t.jsx)(l.zx,{secondary:!0,css:{height:"$20i",width:"200px",margin:"auto"},onClick:eP,children:"Add Custom Item"}):null,(null==L?void 0:L.summary)?(0,t.jsx)(id.Z,{summary:null==L?void 0:L.summary}):null]})]})}),F&&(null==L?void 0:null===(R=L.unityDetailsVO)||void 0===R?void 0:R.tnc)&&(null==L?void 0:L.isCosted)?(0,t.jsx)(l.X2,{id:"terms-and-conditions",css:{padding:"$14i $8i",width:"100%","@lg":{width:"62.85%",padding:"0"}},children:(0,t.jsx)(iv,{data:null==L?void 0:null===(M=L.unityDetailsVO)||void 0===M?void 0:M.tnc})}):null]}),(0,t.jsx)(l.xu,{css:{display:"none","@lg":{position:"static",flexBasis:"30.33%",display:"flex",justifyContent:"flex-end",marginTop:"45px","& .sticky-outer-wrapper":{width:"100%"}}},children:L?(0,t.jsx)(h.default,{enabled:!0,top:180,innerZ:1,bottomBoundary:"#inclusions-container",children:(0,t.jsxs)(l.sg,{css:{gap:"$12i"},children:[(null==L?void 0:L.landTransientItemCount)&&(null==L?void 0:L.landTransientItemCount)>0&&ej?(0,t.jsxs)(l.X2,{justify:"between",css:{padding:"$10i $8i",border:"1px dashed $pyellow800",borderRadius:"$4"},children:[(0,t.jsxs)(l.X2,{align:"center",css:{width:"72%",gap:"$4i"},children:[(0,t.jsx)(iA.Z,{}),(0,t.jsxs)(l.xv,{css:{color:"$grey11",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$bold",lineHeight:"$10i"},children:["Review ",null==L?void 0:L.landTransientItemCount," temporary lineitems"]})]}),(0,t.jsx)(l.zx,{css:{width:"fit-content",padding:"$5i $8i",minHeight:"$20i"},onClick:()=>{eX()},children:"Review"})]}):null,(0,t.jsx)(ip.Z,{itineraryTitle:e$,isShared:null==L?void 0:null===(z=L.itinerary)||void 0===z?void 0:z.shared,onVerifyOtp:eN,onGetOtp:eV}),(null==iM?void 0:iM.loggedIn)&&i9&&L&&!(!(null==L?void 0:null===(Z=L.itinerary)||void 0===Z?void 0:Z.costed)||eC)?(0,t.jsx)(q.Z,{passengerList:L.passengerList,isBooked:L.itinerary.booking}):null]})}):null})]}),iB?(0,t.jsx)(_.Z,{newDealSize:eL||0,oldDealSize:eB||0,onCancel:()=>{iL(!1),(0,iS.Z)("".concat(B.asPath.split("?")[0]))},showPriceModal:iB,onProceed:i=>eU({type:"confirm",cardType:"abCard",rebook:i.rebook,cancelfeeUpdate:i.cancelfeeUpdate,reason:i.reason})}):null,iF?(0,t.jsx)(_.Z,{newDealSize:eL||0,oldDealSize:eB||0,onCancel:()=>{iH(!1),(0,iS.Z)("".concat(B.asPath.split("?")[0]))},showPriceModal:iF,onProceed:i=>eU({type:"confirm",cardType:"preview",rebook:i.rebook,cancelfeeUpdate:i.cancelfeeUpdate,reason:i.reason})}):null,(null==iX?void 0:iX.show)?(0,t.jsx)(V.Z,{entity:null==iX?void 0:iX.type,onCloseModal:i=>{iK({show:i,type:"hotel"}),eW()},visible:null==iX?void 0:iX.show}):null,iE?(0,t.jsx)(ig.Z,{visible:iE,onClose:()=>{(0,iS.Z)("".concat(B.asPath.split("?")[0]))}}):null,iP?(0,t.jsx)(ih.Z,{open:iP,onCloseModal:eW,logsData:null==L?void 0:L.postBookingLogs}):null,(0,t.jsx)(ix.Z,{}),(0,t.jsx)(N.Z,{visible:i2,onCloseModal:()=>{i5(!1),eO()}}),(0,t.jsx)(iu.K2,{showModal:i3,setShowModal:i6})]})};var iz=n(79751),iZ=n(64052),iB=n(5335),iL=n(5152),iF=n.n(iL),iH=n(36230),iE=n(52022),iD=n(76907),iP=n(83359);let iW=iF()(()=>Promise.resolve().then(n.bind(n,64598)),{loadableGenerated:{webpack:()=>[64598]}}),iO=(0,iB.zo)(l.xu,{width:"100%",position:"relative",padding:"$14i 0px",backgroundColor:"$white","@lg":{padding:"0px"},".unityTheme":{paddingBottom:"$8i !important"},"& .swiper-nav":{width:"100%","& .swiper-nav-prev-Similar-itinerary":{marginLeft:-15},"& .swiper-nav-next-Similar-itinerary":{marginRight:-15},"& .swiper-nav-prev-nights":{marginLeft:-15},"& .swiper-nav-next-nights":{marginRight:-15},"& .swiper-nav-prev-unityTheme":{marginLeft:-15},"& .swiper-nav-next-unityTheme":{marginRight:-15},"& .swiper-nav-elements.swiper-button-disabled":{visibility:"hidden"}}}),iV={breakpoints:{360:{slidesPerView:1.1,spaceBetween:20,freeMode:!0},1024:{spaceBetween:24,slidesPerView:3.5,slidesPerGroup:2,freeMode:!0}}},iN={breakpoints:{360:{slidesPerView:"auto",spaceBetween:20,freeMode:!0},1024:{spaceBetween:24,slidesPerView:5.5,slidesPerGroup:2.5,freeMode:!0}}};function i_(i){let{itineraryCards:e,itineraryInfo:n,differentItineraryCards:o,unityThemeCards:s}=i,r=(0,a.useRouter)(),d=(0,i$.Z)(n);return(0,t.jsxs)(l.sg,{css:{gap:"$6i","@lg":{gap:"$12i"}},children:[(null==e?void 0:e.length)>0?(0,t.jsx)(iO,{id:"Similar-itinerary",children:(0,t.jsx)(iW,{id:"Similar-itinerary",componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},sliderConfig:iV,sliderArrowPosition:"middle",titleElement:(0,t.jsx)(l.xv,{css:{color:"$grey900",fontFamily:"$manrope",fontWeight:"$bolder",justifyContent:"flex-start",textAlign:"left",fontSize:"$9i",lineHeight:"$13i",marginLeft:"$8i",marginRight:"$8i","@lg":{justifyContent:"flex-start",textAlign:"left",marginLeft:"0px",marginRight:"0px"}},children:"Same cities and different nights"}),sliderArrowBg:"#E8EAF3",sliderArrowBorderColor:"#C7CDE0",sliderArrowColor:"#576489",children:null==e?void 0:e.map((i,o)=>(0,t.jsx)(l.xu,{css:{marginLeft:o?"0px":"$8i",marginRight:o===e.length-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},onClick:()=>{var e;(0,iD.L9W)(iD.ieP,{Header:"Same cities and different nights",itineraryName:null==i?void 0:i.title,ItineraryId:null==n?void 0:null===(e=n.itinerary)||void 0===e?void 0:e.itineraryId,leadSource:(0,iP.L1)({router:r,lastLocation:{pathname:r.asPath}}),ItineraryTyep:d?"Unity":"Customize"})},children:(0,t.jsx)(iE.Z,{cardData:i,locale:"in",index:o,isBundle:!1,itineraryInfo:n})},o))})}):null,(null==o?void 0:o.length)>0?(0,t.jsx)(iO,{id:"nights",children:(0,t.jsx)(iW,{id:"nights",componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},sliderConfig:iV,sliderArrowPosition:"middle",titleElement:(0,t.jsx)(l.xv,{css:{color:"$grey900",fontFamily:"$manrope",fontWeight:"$bolder",justifyContent:"flex-start",textAlign:"left",display:"block",fontSize:"$9i",lineHeight:"$13i",marginLeft:"$8i","@lg":{justifyContent:"flex-start",textAlign:"left",marginLeft:"0px"}},children:"Different cities different night"}),sliderArrowBg:"#E8EAF3",sliderArrowBorderColor:"#C7CDE0",sliderArrowColor:"#576489",children:null==o?void 0:o.map((i,e)=>(0,t.jsx)(l.xu,{css:{marginLeft:e?"0px":"$8i",marginRight:e===o.length-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},onClick:()=>{var e;(0,iD.L9W)(iD.ieP,{Header:"Different cities different night",itineraryName:null==i?void 0:i.title,ItineraryId:null==n?void 0:null===(e=n.itinerary)||void 0===e?void 0:e.itineraryId,leadSource:(0,iP.L1)({router:r,lastLocation:{pathname:r.asPath}}),ItineraryTyep:d?"Unity":"Customize"})},children:(0,t.jsx)(iE.Z,{cardData:i,locale:"in",index:e,isBundle:!1,itineraryInfo:n})},e))})}
1):null,s?(0,t.jsx)(iO,{className:"unityTheme",children:(0,t.jsx)(iW,{id:"unityTheme",componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},sliderConfig:iN,sliderArrowPosition:"middle",titleElement:(0,t.jsx)(l.xv,{css:{color:"$grey900",fontFamily:"$manrope",fontWeight:"$bolder",justifyContent:"flex-start",textAlign:"left",display:"block",fontSize:"$9i",lineHeight:"$13i",marginLeft:"$8i","@lg":{justifyContent:"flex-start",textAlign:"left",marginLeft:"0px"}},children:"Similar Destinations"}),sliderArrowBg:"#E8EAF3",sliderArrowBorderColor:"#C7CDE0",sliderArrowColor:"#576489",children:null==s?void 0:s.map((i,e)=>(0,t.jsx)(l.xu,{css:{marginLeft:e?"0px":"$8i",marginRight:e===s.length-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},onClick:()=>{var e;(0,iD.L9W)(iD.ieP,{Header:"Different cities different night",itineraryName:null==i?void 0:i.departureCityName,ItineraryId:null==n?void 0:null===(e=n.itinerary)||void 0===e?void 0:e.itineraryId,leadSource:(0,iP.L1)({router:r,lastLocation:{pathname:r.asPath}}),ItineraryTyep:d?"Unity":"Customize"})},children:(0,t.jsx)(iH.Z,{cardData:i,width:200,type:i.themeName||""})},e))})}):null]})}var iq=n(48730),iU=n(63823),iX=n(42233),iK=n(67410),iG=n(1715),iY=n(90152),iJ=n(85518),iQ=n(17407),i0=n(64598),i1=n(60351);let i2={slidesPerView:1.4,slidesPerGroup:1,spaceBetween:16,breakpoints:{768:{slidesPerView:2,slidesPerGroup:2,spaceBetween:12},1024:{slidesPerView:3,slidesPerGroup:3,spaceBetween:16}}},i5=(0,iB.zo)(l.xu,{position:"relative",overflowX:"auto","& .swiper-nav":{width:"100%",transform:"translateY(-50%)","& .swiper-nav-prev-highlights":{marginLeft:0},"& .swiper-nav-next-highlights":{marginRight:0},"& .swiper-nav-elements.swiper-button-disabled":{visibility:"hidden"}}}),i3=i=>{let{highlights:e}=i;return(0,t.jsx)(l.sg,{css:{gap:"$11i",width:"100%"},children:(0,t.jsx)(i5,{children:(0,t.jsx)(i0.default,{id:"highlights",componentData:{transparentBg:!0},sliderConfig:i2,sliderArrowPosition:"middle",loop:!1,children:null==e?void 0:e.map((i,n)=>(0,t.jsx)(l.xu,{css:{marginLeft:n?"0px":"$8i",marginRight:n===(null==e?void 0:e.length)-1?"$8i":"0px","@lg":{marginLeft:"0px",marginRight:"0px"}},children:(0,t.jsx)(i1.Z,{data:i})},"".concat(n,"-highlights")))})})})};var i6=n(587),i8=n(47707),i4=n(56337),i9=n(77216),i7=n(64016),ei=n(67592),ee=n(22720),en=n(97396),et=n(81759),eo=n(45901),el=n(13864),es=n(47693),er=n(47074),ed=n(53583),ea=n(16264),ec=n(88116),eu=n(77269),eg=n(72049);n(89087),n(41091),n(86657);var eh=n(25675),ep=n.n(eh),ev=n(99304),ex=n(2261),em=n(25171),ef=n(32261),ey=n(83981);let e$=(0,iB.zo)(l.xu,{display:"flex","& .swiper-button-prev":{opacity:1,boxShadow:"0px 3px 8px rgba(0, 0, 0, 0.2)",borderRadius:"$round",backgroundColor:"white",width:24,height:24,color:"black",fontWeight:"$extraBold",textAlign:"center",top:"44%",content:"<","&:after":{fontSize:"14px",content:"<",color:"black"},marginTop:1}," .swiper-button-next":{opacity:1,boxShadow:"0px 3px 8px rgba(0, 0, 0, 0.2)",borderRadius:"$round",backgroundColor:"white",width:24,height:24,color:"black",fontWeight:"$extraBold",textAlign:"center",top:"44%",content:">","&:after":{fontSize:"14px",content:">",color:"black"},marginTop:1},"& div.swiper-button-disabled":{opacity:0},"& .swiper-pagination-bullet":{backgroundColor:"$white",height:8,width:10,opacity:.8,borderRadius:"$pill"},"& .swiper-pagination-bullet-active":{width:20,height:8,opacity:2,borderRadius:"$pill",backgroundColor:"$white"},"& .swiper-slide > span":{width:"100% !important",height:"100% !important"},"& .mySwiper > .swiper-wrapper > .swiper-slide":{height:88,width:"144px !important",opacity:.8,borderRadius:"$3",overflow:"hidden"},"& .mySwiper > .swiper-wrapper > .swiper-slide-thumb-active":{opacity:1,border:"4px solid #FFC933",borderRadius:"$3",height:"96px"}}),eC=i=>{let{imageList:e,videoUrl:n,alt:o="string",borderleftradius:r="$3",borderTopRightRadius:d=0,showViewAllButton:a=!1}=i,u=(0,c.useRef)(null),[g,h]=(0,c.useState)(!0),p=(0,s.Dv)(ij.bW),v=()=>{u.current&&(u.current.muted=!g,h(!g))};return(0,t.jsx)(t.Fragment,{children:n?(0,t.jsxs)(l.xu,{css:{width:"100%",height:"100%",position:"relative","@lg":{height:"576px"}}
1,children:[(0,t.jsx)("video",{ref:u,src:n,playsInline:!0,autoPlay:!0,loop:!0,muted:!0,style:{width:(null==p?void 0:p.isMobile)?"100vw":"100%",height:"100%",objectFit:"cover",zIndex:1}}),(0,t.jsx)(l.xu,{onClick:v,css:{position:"absolute",bottom:30,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:20,pointerEvents:"auto",left:a?20:"unset",right:a?"unset":20,"@lg":{bottom:22,right:a?"177px":"$12i",left:"unset",width:"$24i",height:"$24i"}},children:g?(0,t.jsx)(ef.Z,{css:{fill:"$white",width:"$14i",height:"$14i","@lg":{width:"$16i",height:"$16i"}}}):(0,t.jsx)(ey.Z,{css:{fill:"$white",width:"$14i",height:"$14i","@lg":{width:"$16i",height:"$16i"}}})})]}):(null==e?void 0:e.length)===1?(0,t.jsx)(l.xu,{css:{width:"100vw",height:"576px"},children:(0,t.jsx)(em.Z,{src:e[0]?e[0]:"https://images.pickyourtrail.com/images/costing_screen/placeholder/desktop/hotels.png",fill:!0,style:{objectFit:"cover"},alt:"dummy"})}):(0,t.jsx)(e$,{css:{height:"100%",width:"100%"},children:(0,t.jsx)(ex.tq,{navigation:!0,loop:!0,pagination:!0,modules:[ev.W_,ev.pt,ev.tl],children:null==e?void 0:e.map((i,e)=>(0,t.jsx)(ex.o5,{children:(0,t.jsx)(l.xu,{css:{overflow:"hidden",width:"100vw",height:"100%",borderTopLeftRadius:"0px",borderTopRightRadius:d,borderBottomLeftRadius:r,zIndex:1,"@lg":{width:"18vw"}},children:(0,t.jsx)(ep(),{fill:!0,src:i||"https://images.pickyourtrail.com/images/costing_screen/placeholder/desktop/hotels.png",alt:o,style:{objectFit:"cover"}})})},e))})})})};var ej=n(80874),ew=n(40804);function ek(i){let{nights:e,name:n,stars:o,atoll:s,minsToAirport:r}=i;return(0,t.jsx)(I.Z,{children:(0,t.jsx)(l.X2,{css:{width:"100%",flex:1,justifyContent:"space-between"},children:(0,t.jsxs)(l.sg,{css:{flexWrap:"wrap",paddingBottom:"$12i",gap:"$4i"},children:[e?(0,t.jsxs)(l.xv,{as:"h1",css:{fontSize:"$8i",color:"$grey900",letterSpacing:"-0.46px",lineHeight:1.23,fontWeight:"$normal",fontFamily:"$manrope","@lg":{fontSize:"$10i",color:"$white"}},children:[e," Nights Vacation to Maldives"]}):null,n?(0,t.jsx)(l.xv,{as:"h1",css:{fontSize:"$10i",color:"$grey950",letterSpacing:"-0.46px",lineHeight:1.23,fontWeight:"$bold",fontFamily:"$manrope","@lg":{fontSize:"$15i",color:"$white"}},children:n}):null,(0,t.jsx)(l.X2,{css:{alignItems:"center",gap:"$4i"},children:(0,t.jsxs)(l.X2,{css:{alignItems:"center",gap:"$8i"},children:[(0,t.jsx)(ew.Z,{precision:.1,value:o,iconCSS:{fill:"$yellow06"}}),(0,t.jsxs)(l.X2,{css:{justifyContent:"center",alignContent:"center",gap:"$i"},children:[(0,t.jsx)(ej.Z,{fill:"#aaaaaa"}),(0,t.jsxs)(l.xv,{as:"span",css:{fontSize:"$7i",letterSpacing:"-0.3px",fontWeight:"$normal",fontFamily:"$manrope",color:"$grey900","@lg":{color:"$grey05"}},children:[s," ",r?". ".concat(r,"m from Airport"):""]})]})]})})]})})})}var eb=function(){var i,e;let n=(0,iC.Z)(),[o,s]=(0,c.useState)(null),[r,d]=(0,c.useState)(!1),[a,u]=(0,c.useState)(0),g=(0,c.useMemo)(()=>{var i;let e=[];return Object.values(null!==(i=null==o?void 0:o.categorizedImages)&&void 0!==i?i:[]).forEach(i=>{i.forEach(i=>{e.push(i.url)})}),e},[null==o?void 0:o.categorizedImages]),h=(0,c.useMemo)(()=>{if(!(null==o?void 0:o.categorizedImages))return;let i=null==o?void 0:o.bannerVideoUrl;return i?{video:[{url:i,type:"video"}],...o.categorizedImages}:o.categorizedImages},[null==o?void 0:o.categorizedImages,null==o?void 0:o.bannerVideoUrl]),p=(0,c.useCallback)(()=>{u(0)},[]),v=(0,c.useCallback)(()=>{d(!0)},[]);return(0,c.useEffect)(()=>{if(n&&n.hotelCostings&&n.hotelCostings.costingById){let i=n.hotelCostings.costingById;Object.entries(i).forEach(i=>{let[,e]=i;s(e)})}},[n]),(0,t.jsxs)(l.kC,{css:{position:"relative",width:"100vw",height:"70vh","@lg":{width:"100vw",height:"576px"},"&::after":{width:"100%",height:"25%",position:"absolute",bottom:0,left:0,content:"",background:"linear-gradient(180deg,transparent,rgba(0,0,0,.8))",zIndex:3}},children:[((null==o?void 0:o.bannerImages)||(null==o?void 0:o.bannerVideoUrl))&&(0,t.jsx)(eC,{imageList:(null==o?void 0:o.bannerImages)||[],borderleftradius:"",borderTopRightRadius:"",videoUrl:null!==(e=null==o?void 0:o.bannerVideoUrl)&&void 0!==e?e:"",showViewAllButton:!!h}),(0,t.jsx)(eg.default,{galleryVisible:r,setGalleryVisible:d,galleryPhotos:g,targetSlideIndex:a,onCloseModal:p,categorizedImages:h,showCloseICcon:!0}),(0,t.jsx)(l.xu,{css:{bottom:0,left:0,zIndex:10,width:"100%","@lg":{position:"absolute"}},children:(0,t.jsxs)(l.xu,{children:[h?(0,t.jsx)(l.xu,{css:{position:"absolute",right:30,bottom:30,zIndex:"$3"},children:(0,t.jsx)(eu.Z,{onClick:v})}):null,(0,t.jsx)(l.xu,{css:{display:"none","@lg":{display:"flex"}},children:(0,t.jsx)(ek,{nights:null==n?void 0:null===(i=n.itinerary)||void 0===i?void 0:i.nights,name:null==o?void 0:o.name,stars:null==o?void 0:o.stars,atoll:null==o?void 0:o.atoll,minsToAirport:null==o?void 0:o.minsToAirport})})]})})]})},eI=n(66731),eS=n(4327),eT=n(25574),eA=n(49441),eR=n(65367),eM=n(91838),ez=n(10206),eZ=n(16977),eB=n(60111),eL=n(90083),eF=n(23294),eH=n(
150144),eE=n(35591),eD=n(17459),eP=n(14549),eW=n(99013),eO=n(67414),eV=n(47736),eN=n(34118),e_=n(64340);let eq=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"2.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5.55556",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M13.8691 10.3554C14.0541 9.68316 14.4995 9.11249 15.1066 8.7698C15.7137 8.4271 16.4325 8.3407 17.1035 8.52972C17.9647 8.76594 18.6418 9.43165 18.8927 10.2886C19.1228 11.0622 18.986 11.8985 18.5215 12.5585C18.33 12.8187 18.0278 12.9744 17.7048 12.9791C17.3818 12.9838 17.0752 12.8371 16.8762 12.5825C16.2509 11.7816 15.3381 11.2559 14.3315 11.1169",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M11.117 9.66852C11.2559 8.66197 11.7816 7.74918 12.5825 7.12388C12.8371 6.92495 12.9838 6.61835 12.9791 6.29534C12.9744 5.97233 12.8188 5.67013 12.5586 5.47868C11.8986 5.01422 11.0622 4.87746 10.2886 5.10746C9.43163 5.35828 8.76592 6.03542 8.52971 6.89655C8.3407 7.5676 8.42711 8.28632 8.76979 8.89345C9.11246 9.50058 9.68311 9.94599 10.3553 10.131",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.8837 14.3317C12.7447 15.3382 12.219 16.251 11.4182 16.8763C11.1637 17.0753 11.0169 17.3818 11.0216 17.7049C11.0263 18.0279 11.1819 18.33 11.4421 18.5215C12.1021 18.986 12.9385 19.1227 13.7121 18.8928C14.5691 18.6419 15.2348 17.9648 15.471 17.1036C15.6601 16.4326 15.5737 15.7138 15.231 15.1067C14.8883 14.4995 14.3176 14.0541 13.6454 13.8691",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9.66867 12.8837C8.66209 12.7448 7.74927 12.2191 7.12397 11.4181C6.92501 11.1636 6.6184 11.0169 6.29538 11.
10216C5.97237 11.0263 5.67017 11.1819 5.47871 11.4421C5.01421 12.1021 4.87744 12.9385 5.10749 13.7121C5.35836 14.5691 6.03553 15.2348 6.89668 15.471C7.56774 15.66 8.28648 15.5736 8.89362 15.2309C9.50075 14.8882 9.94614 14.3175 10.1311 13.6453",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eU=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.9896 19.5996C19.2846 11.8956 14.2636 9.04862 14.2636 9.04862C14.2636 6.89262 15.8576 5.46562 16.8946 4.76562C17.3786 4.43862 17.5366 3.78862 17.2776 3.25662L16.9896 2.66462C16.7526 2.17862 16.2206 1.90062 15.7076 2.03362C14.4786 2.35262 13.3686 3.11162 12.6906 3.65462C12.2826 3.98162 11.7176 3.98162 11.3086 3.65462C10.6296 3.11162 9.51962 2.35262 8.29162 2.03362C7.77862 1.89962 7.24662 2.17762 7.00962 2.66462L6.72162 3.25662C6.46262 3.78862 6.62162 4.43962 7.10462 4.76562C8.14162 5.46562 9.73562 6.89262 9.73562 9.04862C9.73562 9.04862 4.71362 11.8956 4.00962 19.5996C3.84462 21.4006 5.83762 22.5366 7.19962 21.3916L7.22462 21.3706C8.06162 20.6676 9.50062 20.5816 10.2906 21.3416C11.1946 22.2116 12.7716 22.2186 13.6866 21.3636C14.4996 20.6046 15.9506 20.6766 16.8006 21.3916V21.3916C18.1616 22.5376 20.1546 21.4016 19.9896 19.5996V19.5996Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9.74023 9.04883H14.2602",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eX=i=>(0,t.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M3.00195 11.005C8.21053 6.63897 15.8009 6.63897 21.0095 11.005",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("circle",{cx:"12.0045",cy:"3.50063",r:"1.50063",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.0041 7.73109V5.00195",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.1694 13.3502C11.6313 12.8882 12.3804 12.8882 12.8424 13.3502L13.9105 14.4183C14.3725 14.8803 14.3725 15.6294 13.9105 16.0914L12.8424 17.1595C12.3804 17.6215 11.6313 17.6215 11.1694 17.1595L10.1012 16.0914C9.6392 15.6294 9.6392 14.8803 10.1012 14.4183L11.1694 13.3502Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M5.00216 13.0059V17.0075",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.7849 20.1842C5.57748 20.3918 5.29603 20.5084 5.00257 20.5083V20.5083C4.70911 20.5084 4.42766 20.3918 4.22025 20.1842L2.89469 18.8586C2.36346 18.3132 2.3692 17.4421 2.90758 16.9037C3.44597 16.3653 4.31708 16.3595 4.86251 16.8908L5.00257 17.0308L5.14263 16.8908C5.68807 16.3595 6.55917 16.3653 7.09756 16.9037C7.63594 17.4421 7.64169 18.3132 7.11045 18.8586L5.7849 20.1842Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M19.008 13.0059V16.0071",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("circle",{cx:"19.0088",cy:"18.2568",r:"2.25094",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.0041 10.5918V13.0058",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eK=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 10.3726V5.98461C21 5.23361 20.444 4.59861 19.7 4.49761L8.921 3.04761C5.787 2.62561 3 5.06261 3 8.22461V8.22461C3 11.4046 5.817 13.8466 8.965 13.3956L19.713 11.8566C20.451 11.7516 21 11.1186 21 10.3726Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9.8429 6.93639C10.5263 7.61981 10.5263 8.72785 9.8429 9.41126C9.15948 10.0947 8.05144 10.0947 7.36803 9.41126C6.68461 8.72784 6.68461 7.6198 7.36803 6.93639C8.05145 6.25297 9.15949 6.25297 9.8429 6.93639",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M17.75 4.31055V12.0305",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M7.00195 13.2997C7.24895 15.0307 7.58295 17.3637 7.81695 19.0067C7.98095 20.1527 8.96195 21.0007 10.
112 21.0007V21.0007C11.535 21.0007 12.623 19.7507 12.423 18.3497C12.176 16.6177 11.919 14.8207 11.66 13.0117",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eG=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 21.001H7C5.895 21.001 5 20.106 5 19.001V5.00195C5 3.89695 5.895 3.00195 7 3.00195H17C18.105 3.00195 19 3.89695 19 5.00195V19.001C19 20.106 18.105 21.001 17 21.001Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 11H9C8.448 11 8 10.552 8 10V7C8 6.448 8.448 6 9 6H15C15.552 6 16 6.448 16 7V10C16 10.552 15.552 11 15 11Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M13.4142 14.5858C14.1953 15.3668 14.1953 16.6332 13.4142 17.4142C12.6332 18.1953 11.3668 18.1953 10.5858 17.4142C9.80474 16.6332 9.80474 15.3668 10.5858 14.5858C11.3668 13.8047 12.6332 13.8047 13.4142 14.5858",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eY=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M8.99903 13H5.00003C4.38416 13 3.80263 12.7163 3.42361 12.2308C3.0446 11.7454 2.91036 11.1124 3.05973 10.5149L4.05973 6.51494C4.28231 5.6246 5.08229 4.99999 6.00003 5H8.99903",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9 19H5C3.89545 19 3.00005 18.1045 3 17V11",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("circle",{cx:"16.5",cy:"16.5",r:"1.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15 6H18",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("rect",{x:"12",y:"3",width:"9",height:"18",rx:"2",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15.3501 12.5L15.3496 12.5005L15.3491 12.5L15.3496 12.4995L15.3501 12.5V12.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15.3501 10.5L15.3496 10.5005L15.3491 10.5L15.3496 10.4995L15.3501 10.5V10.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M17.8501 12.5L17.8496 12.5005L17.8491 12.5L17.8496 12.4995L17.8501 12.5V12.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M17.8501 10.5L17.8496 10.5005L17.8491 10.5L17.8496 10.4995L17.8501 10.5V10.5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),eJ=i=>(0,t.jsx)("svg",{width:"22",height:"16",viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.75 1.74947V13.7497C20.7513 14.0306 20.6338 14.299 20.4265 14.4885C20.2192 14.6781 19.9414 14.7711 19.6617 14.7448C13.7315 14.2362 7.76856 14.2362 1.8383 14.7448C1.55863 14.7711 1.28085 14.6781 1.07353 14.4885C0.86622 14.299 0.748707 14.0306 0.750011 13.7497V1.74947C0.748707 1.46857 0.86622 1.2002 1.07353 1.01065C1.28085 0.821092 1.55863 0.728016 1.8383 0.754403C7.76856 1.26296 13.7315 1.26296 19.6617 0.754403C19.9414 0.728016 20.2192 0.821092 20.4265 1.01065C20.6338 1.2002 20.7513 1.46857 20.75 1.74947Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),eQ=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5268 9.11914H11.4738C10.7908 9.11914 10.3088 8.45014 10.5248 7.80314V7.80314C10.8598 6.79714 11.8008 6.11914 12.8608 6.11914H13.1388C14.1988 6.11914 15.1398 6.79714 15.4748 7.80314V7.80314C15.6908 8.45014 15.2088 9.11914 14.5268 9.11914V9.11914Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M6.99326 13.2637H4.00026C3.38626 13.2637 2.91726 13.8117 3.01226 14.4177L3.35626 16.6177C3.66026 18.5657 5.33726 20.0007 7.30826 20.0007H16.6923C18.6633 20.0007 20.3403 18.5657 20.6443 16.6187L20.9883 14.4187C21.0833 13.8127 20.6143 13.2647 20.0003 13.2647H12.2633",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M13 6.12V6C13 4.343 14.343 3 16 3V3C17.657 3 19 4.343 19 6V13.263",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.158 17.263H9.105C7.943 17.263 7 16.321 7 15.158V13.153C7 12.516 7.516 12 8.153 12H11.11C11.747 12 12.263 12.516 12.263 13.153V15.158C12.263 16.321 11.321 17.263 10.158 17.263Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M6.04 19.8008L5 21.0008",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M19.0009 21.0008L17.9609 19.8008",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e0=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 12H4C2.895 12 2 12.895 2 14V16.933C2 17.485 2.448 17.933 3 17.933H21C21.552 17.933 22 17.485 22 16.933V14C22 12.895 21.105 12 20 12Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M4 12.0006V6.93359C4 5.27659 5.343 3.93359 7 3.93359H17C18.657 3.93359 20 5.27659 20 6.93359V12.0006",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M21 18V19.93",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M3 18V19.93",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M7.5 12V12C7.5 10.343 8.843 9 10.5 9H13.5C15.157 9 16.5 10.343 16.5 12V12",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e1=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M2 21V19",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M22 21V19",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("rect",{x:"1",y:"14",width:"22",height:"5",rx:"1",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 7H19C20.1046 7 21 7.89543 21 9V14H3V9C3 7.89543 3.89543 7 5 7Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15 7V14",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9 14V7",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e2=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M9 8V8C9 5.239 11.239 3 14 3V3C16.761 3 19 5.239 19 8V21",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4156 12.748H6.58358C5.50358 12.748 4.74058 11.69 5.08258 10.665V10.665C5.61258 9.073 7.10158 8 8.77958 8H9.21958C10.8966 8 12.3866 9.073 12.9166 10.665V10.665C13.2586 11.69 12.4956 12.748 11.4156 12.748V12.748Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9 20V21",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9 17V16",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M14.9996 19.6494L14.4496 18.8194",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.2406 15.4991L12.7906 16.3291",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M5.76133 15.4991L5.21133 16.3291",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M3.55039 18.8194L3.00039 19.6494",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e5=i=>(0,t.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M10.2949 6.30249C12.9597 4.48864 16.4853 4.5796 19.053 6.52845C21.6207 8.47731 22.6567 11.8485 21.6265 14.903C20.5963 17.9575 17.7302 20.0126 14.5067 20.0083C13.6246 20.0126 12.7494 19.8532 11.9256 19.538",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0057 19.0074V9.0032C12.0057 7.34566 10.662 6.00195 9.00445 6.00195H6.0032C4.34566 6.00195 3.00195 7.34566 3.00195 9.0032V19.0074C3.00195 20.1124 3.89776 21.0082 5.00279 21.0082H10.0049C11.1099 21.0082 12.0057 20.1124 12.0057 19.0074Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("circle",{cx:"7.50258",cy:"13.5065",r:"1.50063",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.50362 6.0032H5.50195V4.00237C5.50195 3.44985 5.94985 3.00195 6.50237 3.00195H8.5032C9.05572 3.00195 9.50362 3.44985 9.50362 4.00237V6.0032Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e3=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M12 8.958V8.167C12 7.35 12.505 6.907 13.011 6.567C13.505 6.234 14 5.8 14 5C14 3.895 13.105 3 12 3C10.895 3 10 3.895 10 5",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.951 21H8.049C6.918 21 6 20.082 6 18.951V15.025C6 14.459 6.459 14 7.025 14H16.976C17.541 14 18 14.459 18 15.025V18.951C18 20.082 17.082 21 15.951 21Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M18 15.418H18.676C19.96 15.418 21 14.377 21 13.093V13.093C21 12.092 20.36 11.204 19.41 10.888L15.162 9.47198C13.109 8.78798 10.89 8.78798 8.837 9.47198L4.589 10.888C3.64 11.204 3 12.092 3 13.103V13.152C3 14.405 4.016 15.421 5.269 15.421H6",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e6=i=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M16 7H8",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 3H14C15.1046 3 16 3.89543 16 5V9C16 11.2091 14.2091 13 12 13V13C9.79086 13 8 11.2091 8 9V5C8 3.89543 8.89543 3 10 3Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M9 15.5L5.35 16.2297C3.98363 16.5029 3.00004 17.7025 3 19.0959L3 21",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.05 17.0001C12.05 17.0277 12.0276 17.05 12 17.05C11.9724 17.05 11.95 17.0276 11.95 17C11.95 16.9724 11.9723 16.95 11.9999 16.95C12.0132 16.95 12.026 16.9553 12.0354 16.9646C12.0447 16.974 12.05 16.9868 12.05 17.0001",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M12.05 20.0001C12.05 20.0277 12.0276 20.05 12 20.05C11.9724 20.05 11.95 20.0276 11.95 20C11.95 19.9724 11.9723 19.95 11.9999 19.95C12.0132 19.95 12.026 19.9553 12.0354 19.9646C12.0447 19.974 12.05 19.9868 12.05 20.0001",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15 15.5L18.65 16.2297C20.0164 16.5029 21 17.7025 21 19.0959V21",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),e8="#576489",e4=(i,e,n)=>
1{let o=i.toLowerCase(),l={width:e,height:n,color:e8};return o.includes("dressing gown")?(0,t.jsx)(eU,{...l}):o.includes("toiletries")||o.includes("toilet")?(0,t.jsx)(e5,{...l}):o.includes("hair dryer")||o.includes("hairdryer")?(0,t.jsx)(eK,{...l}):o.includes("private bath")||o.includes("private bathroom")?(0,t.jsx)(eQ,{...l}):o.includes("shower")?(0,t.jsx)(e2,{...l}):o.includes("towel")?(0,t.jsx)(e3,{...l}):o.includes("bedsheet")||o.includes("bed sheet")?(0,t.jsx)(eW.Z,{...l,fill:e8}):o.includes("ceiling fan")?(0,t.jsx)(eq,{...l}):o.includes("rollaway")||o.includes("extra bed")?(0,t.jsx)(e0,{...l}):o.includes("separate bedroom")?(0,t.jsx)(e1,{...l}):o.includes("turndown")||o.includes("turn down")?(0,t.jsx)(e6,{...l}):o.includes("free cot")||o.includes("cot")?(0,t.jsx)(eX,{...l}):o.includes("ipad dock")||o.includes("ipod dock")?(0,t.jsx)(eG,{...l}):o.includes("lcd tv")||o.includes("lcd television")?(0,t.jsx)(eY,{...l}):o.includes("premium tv")||o.includes("premium television")?(0,t.jsx)(eJ,{...l}):o.includes("wifi")||o.includes("internet")||o.includes("wireless")?(0,t.jsx)(e_.Z,{...l,fill:e8}):o.includes("infant")||o.includes("baby")?(0,t.jsx)(eP.Z,{...l,fill:e8}):o.includes("tv")||o.includes("television")?(0,t.jsx)(eV.Z,{...l,fill:e8}):o.includes("breakfast")?(0,t.jsx)(eO.Z,{...l,fill:e8}):o.includes("refundable")||o.includes("air conditioning")||o.includes("ac")?(0,t.jsx)(eI.Z,{...l,fill:e8}):o.includes("airport transfer")?(0,t.jsx)(eN.Z,{...l,fill:e8}):null};var e9=n(68991);let e7=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:i.width||"20",height:i.height||"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M6.2526 5V2.5",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M13.7526 5V2.5",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5 6.25V13.4763C17.5 13.9183 17.3244 14.3423 17.0118 14.6548L14.6548 17.0118C14.3423 17.3244 13.9183 17.5 13.4763 17.5H5C3.61929 17.5 2.5 16.3807 2.5 15V6.25C2.5 4.86929 3.61929 3.75 5 3.75H15C16.3807 3.75 17.5 4.86929 17.5 6.25Z",fill:"#DFDFFC",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M17.5026 13.3333H15.0026C14.0821 13.3333 13.3359 14.0794 13.3359 14.9999V17.4999",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.8376 9.01947L10.0026 9.18697L10.1676 9.01947C10.4684 8.71385 10.8793 8.54175 11.3082 8.54175C11.737 8.54175 12.1479 8.71385 12.4488 9.01947C13.0761 9.66413 13.0761 10.6911 12.4488 11.3357L11.1668 12.6375C10.8597 12.9494 10.4403 13.1251 10.0026 13.1251C9.56493 13.1251 9.14554 12.9494 8.83849 12.6375L7.55643 11.3358C6.92911 10.6911 6.92911 9.66415 7.55643 9.01948C7.85727 8.71386 8.26817 8.54175 8.69702 8.54175C9.12586 8.54175 9.53676 8.71385 9.8376 9.01947Z",fill:"white",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"})]})},{}),ni=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:i.width||"20",height:i.height||"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.8333 17.9168H4.16667C3.24583 17.9168 2.5 17.171 2.5 16.2502V13.7502C2.5 12.8293 3.24583 12.0835 4.16667 12.0835H15.8333C16.7542 12.0835 17.5 12.8293 17.5 13.7502V16.2502C17.5 17.171 16.7542 17.9168 15.8333 17.9168Z",fill:"#DFDFFC",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.2741 12.0833H5.82906C4.9099 12.0833 4.16406 11.3375 4.16406 10.4183V7.915C4.16406 6.99583 4.9099 6.25 5.82906 6.25H14.1657C15.0849 6.25 15.8307 6.99583 15.8307 7.915V10.5267C15.8307 11.3867 15.1341 12.0833 14.2741 12.0833Z",fill:"#DFDFFC",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.0267 2.0835C11.9083 2.0835 12.5 2.85933 12.5 3.58183C12.5 5.0485 10.045 6.25016 10 6.25016C9.955 6.25016 7.5 5.04933 7.5 3.58183C7.5 2.85933 8.09167 2.0835 8.97333 2.0835C9.4775 2.0835 9.80833 2.31933 10 2.52933C10.1917 2.31933 10.5225 2.0835 11.0267 2.0835Z",fill:"white",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M17.5 14.5835C17.0475 14.5835 16.595 14.7227 16.25 15.0002C15.905 15.2777 15.4525 15.4168 15 15.4168C14.5475 15.4168 14.095 15.2777 13.75 15.0002C13.405 14.7227 12.9525 14.5835 12.5 14.5835C12.0475 14.5835 11.595 14.7227 11.25 15.0002C10.905 15.2777 10.4525 15.4168 10 15.4168C9.5475 15.4168 9.095 15.2777 8.75 15.0002C8.405 14.7227 7.9525 14.5835 7.5 14.5835C7.0475 14.5835 6.595 14.7227 6.25 15.0002C5.905 15.2777 5.4525 15.4168 5 15.4168C4.5475 15.4168 4.095 15.2777 3.75 15.0002C3.405 14.7227 2.9525 14.5835 2.5 14.5835",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M15.8307 8.75C15.4791 8.75 15.1274 8.88917 14.8582 9.16667C14.5899 9.44417 14.2382 9.58333 13.8857 9.58333C13.5341 9.58333 13.1824 9.44417 12.9132 9.16667C12.6441 8.88917 12.2932 8.75 11.9407 8.75C11.5882 8.75 11.2374 8.88917 10.9682 9.16667C10.6999 9.44417 10.3482 9.58333 9.99573 9.58333C9.64323 9.58333 9.2924 9.44417 9.02323 9.16667C8.7549 8.88917 8.40323 8.75 8.05073 8.75C7.69823 8.75 7.34906 8.88917 7.08073 9.16667C6.8124 9.44417 6.46073 9.58333 6.10823 9.58333C5.75656 9.58333 5.4049 9.44417 5.13573 9.16667C4.8674 8.88917 4.51573 8.75 4.16406 8.75",stroke:"#6851D6","stroke-width":"1.1","stroke-linecap":"round","stroke-linejoin":"round"})]})},{});var ne=n(85328);let nn=(0,iB.zo)(function(i){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,t.jsx)("path",{d:"M16 20V19C16 16.7909 14.2091 15 12 15H6C3.79086 15 2 16.7909 2 19V20M22 20V19C22 16.7909 20.2091 15 18 15M15 3C17.2091 3 19 4.79086 19 7C19 9.20914 17.2091 11 15 11M13 7C13 9.20914 11.2091 11 9 11C6.79086 11 5 9.20914 5 7C5 4.79086 6.79086 3 9 3C11.2091 3 13 4.79086 13 7Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})},{}),nt=(0,iB.zo)(function(i){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,t.jsx)("path",{d:"M6.74337 5.74452V10.7388H0.75029M11.7373 10.7385H18.7292M11.7373 5.74423V0.75M10.7385 14.7339V18.7293H6.74307C6.74307 16.5227 8.53187 14.7339 10.7385 14.7339ZM13.7292 0.75H5.75C2.98858 0.75 0.75 2.98857 0.75 5.75V13.7292C0.75 16.4907 2.98858 18.7292 5.75 18.7292H13.7292C16.4907 18.7292 18.7292 16.4907 18.7292 13.7292V5.75C18.7292 2.98858 16.4907 0.75 13.7292
10.75Z",stroke:"#576489","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})},{}),no=i=>i?Object.entries(i).filter(i=>{let[,e]=i;return!0===e}).map(i=>{let[e]=i;return nl(e)}):[],nl=i=>i.replace(/([A-Z])/g," $1").replace(/^./,i=>i.toUpperCase()).replace(/\bTv\b/g,"TV").trim();var ns=n(68881),nr=n(17451);let nd=i=>{let{roomsInHotel:e,planningToolId:n,configKey:o,isBooked:r,landPackageBooked:d}=i,{getUpdateHotelRoomAsync:a}=(0,ns.A)(),g=(0,s.b9)(ij.w4),h=(0,iC.Z)(),p=(0,c.useMemo)(()=>{var i;let n=new Map;return null==e||null===(i=e.roomAlternateMealOptions)||void 0===i||i.forEach(i=>{n.set(i.mealType,i)}),["All Inclusive","Full Board","Half Board"].filter(i=>n.has(i)).map(i=>n.get(i))},[e.roomAlternateMealOptions]),v=(0,c.useMemo)(()=>r||d?p.filter(i=>e.identifier===i.roomIdentifier):p,[r,d,p,e.identifier]),x=async i=>{let t={hotelPlanningToolId:n,configKey:(0,nr.Z)(o),itineraryId:(null==h?void 0:h.itinerary.itineraryId)||"",currentIdentifier:e.identifier,roomQuery:null,offline:!1,newIdentifier:i.roomIdentifier,selectedRoomTypeCode:e.roomTypeCode,selectedRateCode:""},l=await a(t);(null==l?void 0:l.status)==="SUCCESS"&&(null==l?void 0:l.data)&&(g(l),u.ZP.success("Room changed to ".concat(name)))};return(0,t.jsxs)(l.sg,{css:{gap:"$8i",width:"100%","@lg":{gap:"$9i"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$9i",fontWeight:"$bolder",color:"$grey950",fontFamily:"$manrope","@lg":{fontSize:"$10i"}},children:"Meal Preference"}),(0,t.jsx)(l.X2,{css:{gap:"$6i",flexWrap:"wrap","@lg":{flexWrap:"nowrap"}},children:v.map(i=>{var n;let o=e.identifier===i.roomIdentifier;return(0,t.jsxs)(l.xu,{onClick:()=>{r||d||x(i)},css:{display:"flex",width:"48%",padding:"$8i",borderRadius:"$5",border:o?"2px solid $green500":"1px solid $grey200",backgroundColor:o?"$green50":"white",cursor:r||d?"not-allowed":"pointer",transition:"all 0.2s ease",position:"relative","@lg":{width:"250px",minWidth:"200px"},"&:hover":{borderColor:o?"$green600":"$grey300"}},children:[(0,t.jsx)(l.xu,{css:{position:"absolute",top:"$6i",right:"$6i"},children:o?(0,t.jsx)(l.xu,{css:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"$green500",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(eI.Z,{css:{fill:"white",width:"14px",height:"14px"}})}):(0,t.jsx)(l.xu,{css:{width:"24px",height:"24px",borderRadius:"50%",border:"2px solid $grey300",backgroundColor:"white"}})}),(0,t.jsxs)(l.sg,{css:{gap:"$4i",paddingRight:"$12i"},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$8i",fontWeight:"$bolder",color:"$grey800",fontFamily:"$manrope","@lg":{fontSize:"$9i"}},children:i.mealType}),(0,t.jsx)(l.sg,{css:{gap:"$2i"},children:null===(n=i.inclusions)||void 0===n?void 0:n.map((i,e)=>(0,t.jsxs)(l.X2,{css:{gap:"$3i"},children:[(0,t.jsx)(eI.Z,{css:{fill:"$green500",width:"20px",height:"20px",flexShrink:0,marginTop:"1px"}}),(0,t.jsx)(l.xv,{css:{color:"$grey900",fontSize:"$7i",fontWeight:"$semiBold",lineHeight:"$11i",fontFamily:"$manrope","@lg":{fontSize:"$8i"}},children:i})]},e))})]})]},i.roomIdentifier)})})]})},na={Honeymoon:["Marriage date must be within a certain time-period before your stay date (based on the resort)","Valid marriage certificate or invitation required"],Anniversary:["Anniversary date must fall during your stay period","Marriage certificate required"],Birthday:["Birthday must fall during your stay period","Date of birth must match with your passport DoB at check-in"]};function nc(i){var e,n,o,r,d,u,g,h,p,v,x,m,f,y,$,C,j;let{data:w,details:k,isBooked:b,landPackageBooked:I,itineraryInfo:S,onClickAddonLineItem:T}=i,A=(0,s.Dv)(ij.bW),R=(0,s.Dv)(ij.s1),M=(0,a.useRouter)(),[z,Z]=(0,c.useState)({}),[B,L]=(0,c.useState)(null),F=(0,c.useMemo)(()=>null==k?void 0:k.derbyHotel,[null==k?void 0:k.derbyHotel]),H=(0,c.useMemo)(()=>(null==R?void 0:R.loggedIn)&&(0,ib.P)({permissions:null==R?void 0:R.permissions,key:iT.iI}),[null==R?void 0:R.loggedIn,null==R?void 0:R.permissions]),E=(0,c.useCallback)((i,e)=>{var n;i.preventDefault();let t=(0,eD.Z)("".concat(e)),o="/customize/".concat(null==M?void 0:null===(n=M.query)||void 0===n?void 0:n.regionCode,"/view/").concat(M.query.itineraryId,"/block-card/hotel/").concat(t,"?isEdit=true");(0,iS.Z)(o)}
1,[M.query.itineraryId,null===(e=M.query)||void 0===e?void 0:e.regionCode]),D=(0,c.useMemo)(()=>(0,ib.P)({key:iT.TX,permissions:null==R?void 0:R.permissions})||!1,[null==R?void 0:R.permissions]),P=(0,c.useMemo)(()=>(null==R?void 0:R.loggedIn)&&(b||I)?(0,ib.P)({permissions:null==R?void 0:R.permissions,key:iT.yj}):(0,ib.P)({key:iT.TX,permissions:null==R?void 0:R.permissions}),[b,I,null==R?void 0:R.loggedIn,null==R?void 0:R.permissions]),W=(0,c.useMemo)(()=>(null==R?void 0:R.loggedIn)&&(b||I)&&(0,ib.P)({permissions:null==R?void 0:R.permissions,key:iT.yj}),[b,I,null==R?void 0:R.loggedIn,null==R?void 0:R.permissions]),O=null==S?void 0:null===(n=S.customCostings)||void 0===n?void 0:n.filter(i=>"HOTELS"===i.customCardEntity&&"CUSTOM"===i.entityType),V=null==O?void 0:O.filter(i=>(null==i?void 0:i.parentCostingIdentifier)===(null==w?void 0:w.identifier)),N=V&&(null===(o=null==V?void 0:V.filter(i=>i.status===im.MR))||void 0===o?void 0:o.length)>0||!1,_=(0,c.useCallback)(()=>{Z(i=>null===B?i:{...i,[B]:{...i[B],isOpen:!1}})},[B]),q=(0,c.useMemo)(()=>{var i;if(null===B)return null;let e=(null===(i=z[B])||void 0===i?void 0:i.data.title)||"",n=null;return e.includes("Honeymoon")?n="Honeymoon":e.includes("Anniversary")?n="Anniversary":e.includes("Birthday")&&(n="Birthday"),n},[B,z]),U=()=>{let i=q?na[q]:null;return i?(0,t.jsxs)(l.sg,{css:{marginTop:"$10i",backgroundColor:"$pyellow100",padding:"$10i",borderRadius:"8px",gap:"$6i","@lg":{marginTop:"$12i"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$7i",lineHeight:"$10i",fontWeight:"$bolder",fontStyle:"normal",color:"$custom34",fontFamily:"$manrope"},children:"Eligibility Conditions"}),i.map((i,e)=>(0,t.jsxs)(l.X2,{css:{gap:"$2i","@lg":{gap:"$4i"}},children:[(0,t.jsx)(l.xu,{css:{display:"inline-block",width:"$2i",height:"$2i",backgroundColor:"$black",borderRadius:"50%",marginTop:"$4i",flexShrink:0}}),(0,t.jsx)(l.xv,{css:{color:"$custom34",fontSize:"$7i",fontWeight:"$semiBold",lineHeight:"$10i",fontFamily:"$manrope"},children:i})]},e))]}):null},X=[...((null==w?void 0:w.islandRoomImages)||[]).map(i=>(0,e9.Z)(i)),...((null==w?void 0:w.roomImages)||[]).map(i=>(0,e9.Z)(i))],K=no((null===(r=null==k?void 0:k.roomsInHotel[0])||void 0===r?void 0:r.primaryAmenities)&&Object.keys(null===(d=null==k?void 0:k.roomsInHotel[0])||void 0===d?void 0:d.primaryAmenities).length>0?null===(u=null==k?void 0:k.roomsInHotel[0])||void 0===u?void 0:u.primaryAmenities:{refundable:k.refundable,freeBreakfast:k.roomsInHotel[0].freeBreakfast,freeWireless:k.roomsInHotel[0].freeWireless});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.sg,{css:{gap:"$20i","@lg":{gap:"$24i"}},children:[(0,t.jsxs)(l.sg,{css:{cursor:"pointer",backgroundColor:"$white",border:"1px solid $grey100",borderRadius:"$5",overflow:"hidden","&:hover":{border:"1px solid #26cf96",cursor:"pointer"}},onClick:i=>{if(i.preventDefault(),i.stopPropagation(),H&&(null==k?void 0:k.offline))E(i,null==k?void 0:k.configKey);else if(H&&!(null==k?void 0:k.offline)){var e,n;i.preventDefault(),i.stopPropagation(),(0,iS.Z)("/customize/".concat(null==M?void 0:null===(e=M.query)||void 0===e?void 0:e.regionCode,"/view/").concat(null==M?void 0:null===(n=M.query)||void 0===n?void 0:n.itineraryId,"/room-listing")+"?hotelRoomKey=".concat(encodeURIComponent(w.identifier))+"&configKey=".concat(encodeURIComponent(k.configKey)))}},children:[X&&X.length>1?(0,t.jsx)(l.xu,{onClick:i=>{i.preventDefault(),i.stopPropagation()},css:{width:"100%",height:"225px",position:"relative","@lg":{width:"100%",height:"260px"}},children:(0,t.jsx)(eF.x,{imageList:X})}):(0,t.jsx)(l.xu,{css:{position:"relative",width:"100%",height:"225px","@lg":{height:"260px"}},children:(0,t.jsx)(em.Z,{src:X[0]||"",alt:null==w?void 0:w.text,fill:!0,style:{objectFit:"cover",objectPosition:"center"}})}),(0,t.jsxs)(l.X2,{css:{padding:"$8i $6i",justifyContent:"space-between",width:"100%",backgroundColor:"$pblue100","@lg":{padding:"$8i"}},children:[(0,t.jsxs)(l.sg,{css:{gap:"$3i"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:"$bolder",color:"$grey950",fontSize:"$8i",lineHeight:"$12i",letterSpacing:"-.29px",fontFamily:"$manrope","@lg":{fontSize:"$10i"}},children:null==w?void 0:w.text}),(0,t.jsxs)(l.X2,{css:{gap:"$4i"},children:[(null==w?void 0:w.roomSize)?(0,t.jsxs)(l.X2,{css:{gap:"$2i",justifyContent:"center",alignItems:"center"},children:[(0,t.jsx)(nt,{width:20,height:20}),(0,t.jsxs)(l.xv,{css:{fontFamily:"$manrope",color:"$grey800",fontWeight:"$semiBold",fontSize:"$8i"},children:[null==w?void 0:w.roomSize," sqft"]})]}):null,(null==w?void 0:w.maxRoomOccupancy)?(0,t.jsxs)(l.X2,{css:{gap:"$2i",justifyContent:"center",alignItems:"center"},children:[(0,t.jsx)(nn,{width:20,height:20}),(0,t.jsxs)(l.xv,{css:{fontFamily:"$manrope",color:"$grey800",fontWeight:"$semiBold",fontSize:"$8i"},children:["Sleeps ",null==w?void 0:w.maxRoomOccupancy]})]}):null]})]}),D?(0,t.jsxs)(l.X2,{css:{gap:"$5i"},children:[(0,t.jsxs)(l.sg,{css:{gap:"$2i",justifyContent:"center"},children:[(0,t.jsx)(l.xv,{css:{color:"#666666"},children:"Hotel Transfer Net Cost"}),(0,t.jsx)(l.xv,{css:{fontWeight:"$bold","@lg":{textAlign:"end"}},children:(0,t.jsx)(eL.Z,{value:null==w?void 0:w.ourCostInContractCurrency,defaultValue:"0",displayCurrency:null==w?void 0:w.contractCurrency})})]}),(0,t.jsxs)(l.X2,{css:{justifyContent:"center",alignItems:"center"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:"$bold"},children:(0,t.jsx)(eL.Z,{defaultValue:"0",value:null==k?void 0:k.ourCost})}),(0,t.jsx)(eT.Z,{fill:"#333333",width:16,height:16,onClick:i=>{var e,n;i.preventDefault(),i.stopPropagation(),(0,iS.Z)("/customize/".concat(null==M?void 0:null===(e=M.query
1)||void 0===e?void 0:e.regionCode,"/view/").concat(null==M?void 0:null===(n=M.query)||void 0===n?void 0:n.itineraryId,"/rate-match?referrer=TOTAL_COST"))}})]}),W||P?(0,t.jsxs)(ez.Lt.fC,{modal:!1,children:[(0,t.jsx)(ez.Lt.xz,{asChild:!0,children:(0,t.jsx)(l.zx,{secondary:!0,outlined:!0,css:{backgroundColor:"$white",fontWeight:"$bold",cursor:"pointer"},onClick:i=>i.stopPropagation(),onMouseDown:i=>i.stopPropagation(),onPointerDown:i=>i.stopPropagation(),children:(0,t.jsx)(eR.Z,{})})}),(0,t.jsx)(ez.Lt.VY,{css:{minWidth:"fit-content",padding:"$6i",zIndex:"$max",gap:"$6i",display:"flex",flexDirection:"column"},children:P?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(l.X2,{onClick:i=>{i.preventDefault(),i.stopPropagation(),null==T||T("hotel",null==k?void 0:k.configKey,void 0,null==w?void 0:w.identifier)},css:{gap:"$6i",cursor:"pointer"},align:"center",children:[(0,t.jsx)(eM.Z,{fill:"#17181C",height:"20px",width:"20px"}),(0,t.jsx)(l.xv,{css:{fontSize:"$7i",fontWeight:"$bold",lineHeight:"$10i",fontFamily:"$manrope",color:"$grey950"},children:"Add Add-on"})]})}):null})]}):null]}):(0,t.jsxs)(l.X2,{css:{gap:"$8i",justifyContent:"center",alignItems:"center"},children:[(null==S?void 0:null===(g=S.itinerary)||void 0===g?void 0:g.splitPricing)?(0,t.jsx)(l.xv,{css:{fontWeight:"$bold"},children:(0,t.jsx)(eL.Z,{value:(null==k?void 0:k.publishedCost)+(null==w?void 0:w.addOnCost),defaultValue:"0"})}):null,(0,t.jsx)(l.zx,{primary:!0,css:{backgroundColor:"$white",fontWeight:"$bold",fontSize:"$8i",borderRadius:"$3",display:"none",border:"1px solid $green500",fontFamily:"$manrope",padding:"$8i $12i",justifyContent:"center",alignItems:"center",height:"56px",color:"$green500",boxShadow:"none","@lg":{display:"flex"}},disabled:b,onClick:i=>{var e,n;i.preventDefault(),i.stopPropagation(),(0,iS.Z)("/customize/".concat(null==M?void 0:null===(e=M.query)||void 0===e?void 0:e.regionCode,"/view/").concat(null==M?void 0:null===(n=M.query)||void 0===n?void 0:n.itineraryId,"/room-listing")+"?hotelRoomKey=".concat(encodeURIComponent(w.identifier))+"&configKey=".concat(encodeURIComponent(k.configKey)))},children:"Change Room"})]})]}),(0,t.jsxs)(l.sg,{children:[(0,t.jsxs)(l.sg,{css:{padding:"$8i",gap:"$4i",paddingBottom:"$8i"},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$7i",lineHeight:"$10i",letterSpacing:"0.4px",color:"$grey700",fontWeight:"$bolder",textTransform:"uppercase",fontFamily:"$manrope"},children:"Room Amenities"}),(0,t.jsx)(l.X2,{css:{gap:"$6i",flexWrap:"wrap"},children:K.slice(0,6).map((i,e)=>(0,t.jsx)(ez.u,{content:i,children:(0,t.jsxs)(l.X2,{css:{gap:"$2i",alignItems:"center"},children:[(0,t.jsx)(l.xv,{children:e4(i,(null==A?void 0:A.isMobile)?20:24,(null==A?void 0:A.isMobile)?20:24)}),(0,t.jsx)(l.xv,{css:{fontWeight:"$semiBold",fontFamily:"$manrope",fontSize:"$8i"},children:i})]})},e))}),D?(0,t.jsxs)(l.X2,{css:{gap:"$4i",flexWrap:"wrap","@lg":{marginTop:"$4i"}},children:[(0,t.jsx)(l.zx,{css:{borderRadius:"$1",textAlign:"center",backgroundColor:"#26cf96",color:"white",fontSize:"$6i",lineHeight:"$8i",padding:"$2i $4i",boxShadow:"none",height:"32px","&:hover":{boxShadow:"none"}},children:(null==w?void 0:w.derbyAvailability)===0&&F?"Not Available":(null==w?void 0:w.derbyAvailability)&&(null==w?void 0:w.derbyAvailability)>0&&F?"".concat(null==w?void 0:w.derbyAvailability," ").concat((0,iI.Z)({count:null==w?void 0:w.derbyAvailability,keyword:"API room"})," available"):"On Request"}),(null==w?void 0:w.discountApplied)?(0,t.jsx)(l.xu,{css:{width:"fit-content"},children:(0,t.jsx)(eE.Z,{text:"Admin Price",bgColor:"#de6138"})}):null]}):null,(0,t.jsx)(l.xu,{css:{display:"block",marginTop:"$5i",borderTop:"1px dashed $grey200",width:"100%","@lg":{display:"none"}},children:(0,t.jsx)(l.zx,{primary:!0,outlined:!0,css:{backgroundColor:"$white",fontWeight:"$bolder",fontSize:"$8i",borderRadius:"$3",padding:"$6i",height:"44px",color:"$green500",fontFamily:"$manrope",lineHeight:"$10i",marginTop:"$5i",width:"100%",border:"1px solid $green500","@lg":{display:"none"}},disabled:b,onClick:i=>{var e,n;i.preventDefault(),i.stopPropagation(),(0,iS.Z)("/customize/".concat(null==M?void 0:null===(e=M.query
1)||void 0===e?void 0:e.regionCode,"/view/").concat(null==M?void 0:null===(n=M.query)||void 0===n?void 0:n.itineraryId,"/room-listing")+"?hotelRoomKey=".concat(encodeURIComponent(w.identifier))+"&configKey=".concat(encodeURIComponent(k.configKey)))},children:"Change Room"})})]}),N?(0,t.jsx)(l.sg,{css:{gap:"$8i",padding:"$8i"},children:null==V?void 0:V.map((i,e)=>{var n;return i&&(0,t.jsx)(eZ.Z,{image:(null===(n=i.images)||void 0===n?void 0:n[0])||"https://images.pickyourtrail.com/image_placeholder_2eca9cbf61.png",title:i.title,subtitle:i.description,price:i.ourCost,tag:"Addon",costingId:i._id,status:i.status,entityType:"".concat(i.customCardEntity)},e)})}):null]})]}),(0,t.jsxs)(l.sg,{css:{gap:"$8i","@lg":{gap:"$9i"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$9i",fontFamily:"$manrope",fontWeight:"$bolder",color:"$grey950",textOverflow:"ellipsis",lineHeight:"$10i","@lg":{fontSize:"$10i",lineHeight:"$11i"}},children:"Whatâs Included"}),(0,t.jsx)(l.sg,{css:{gap:"$4i",paddingBottom:"$8i",backgroundColor:"$white",border:"1px solid $grey100",borderRadius:"16px"},children:(null==w?void 0:null===(h=w.extraInclusions)||void 0===h?void 0:h.length)||(null==w?void 0:null===(p=w.extraExclusions)||void 0===p?void 0:p.length)?(i=>{let{data:e}=i,n=(i,e)=>{Z(n=>{var t;return{...n,[i]:{isOpen:!(null===(t=n[i])||void 0===t?void 0:t.isOpen),data:e}}}),L(i),(0,iD.L9W)(iD.nVP,{title:e.title})};return(0,t.jsx)(t.Fragment,{children:e.map((i,o)=>{let s=i.text.slice(0,2),r=["Honeymoon","Anniversary","Birthday"].some(e=>i.title.includes(e));return(0,t.jsxs)(l.sg,{css:{padding:"$8i",gap:"$3i",borderBottom:o!==e.length-1?"1px dashed $grey200":"unset",paddingBottom:o!==e.length-1?"$8i":"0"},children:[i.title&&(0,t.jsx)(l.xv,{css:{fontSize:"$8i",fontFamily:"$manrope",fontWeight:"$bolder",color:"$grey900",textOverflow:"ellipsis",lineHeight:"$10i","@lg":{fontSize:"$9i",lineHeight:"$11i"}},children:i.title}),s.map((e,n)=>(0,t.jsxs)(l.X2,{css:{alignItems:"start"},children:[i.title.includes("exclusion")?(0,t.jsx)(eA.Z,{css:{fill:"#F3205F",width:"18px",height:"20px",flexShrink:0,marginTop:"2px","@lg":{width:"20px",height:"20px"}}}):i.title.includes("Honeymoon")?(0,t.jsx)(l.xu,{css:{flexShrink:0},children:(0,t.jsx)(ne.Z,{fill:"#CAC8F8",height:20,width:20,stroke:"#543BBA",css:{flexShrink:0,fill:"#CAC8F8",width:"18px",height:"20px",stroke:"#543BBA",marginTop:"2px","@lg":{width:"20px",height:"20px"}}})}):i.title.includes("Birthday")?(0,t.jsx)(l.xu,{css:{flexShrink:0,marginTop:"2px"},children:(0,t.jsx)(ni,{height:20,width:20})}):i.title.includes("Anniversary")?(0,t.jsx)(l.xu,{css:{flexShrink:0,marginTop:"2px"},children:(0,t.jsx)(e7,{height:20,width:20})}):(0,t.jsx)(eI.Z,{css:{fill:"$green500",width:"20px",height:"20px",flexShrink:0,marginTop:"2px"}}),(0,t.jsx)(l.xv,{css:{color:"$grey900",fontSize:"$7i",fontWeight:"$semiBold",lineHeight:"$11i",fontFamily:"$manrope","@lg":{fontSize:"$8i"}},children:(0,eH.kx)("",e,n)})]},n)),(0,t.jsxs)(l.xv,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n(o,i)},css:{fontFamily:"$manrope",color:"$green500",cursor:"pointer",fontWeight:"$bolder",fontSize:"$7i",lineHeight:"$11i"},children:[i.text.length>2?"+".concat(i.text.length-2," more"):"",i.text.length>2&&r?" & ":"",r?"View eligibility":""]})]},o)})})})({data:[...(null==w?void 0:w.extraInclusions)||[],...(null==w?void 0:w.extraExclusions)||[]],offline:null==k?void 0:k.offline}):null})]}),(null==w?void 0:null===(v=w.roomAlternateMealOptions)||void 0===v?void 0:v.length)>0?(0,t.jsx)(nd,{roomsInHotel:w,planningToolId:k.planningToolId,configKey:k.configKey,isBooked:b,landPackageBooked:I}):null]}),(null==A?void 0:A.isMobile)?(0,t.jsx)(eB.Z,{headerText:null===(x=z[null!=B?B:0])||void 0===x?void 0:x.data.title,open:(null===(m=z[null!=B?B:0])||void 0===m?void 0:m.isOpen)||!1,setShowMenuMobile:()=>{Z(i=>null===B?i:{...i,[B]:{...i[B],isOpen:!1}})},headerCss:{fontSize:"$8i",fontFamily:"$manrope",fontWeight:"$bold"},bottomSheetCss:{maxHeight:"90vh",display:"flex",flexDirection:"column"},children:(0,t.jsxs)(t.Fragment,{children:[null!==B&&(0,t.jsxs)(l.sg,{css:{padding:"$8i 0px",overflow:"auto",flex:1,minHeight:0,"&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none","scrollbar-width":"none"},children:[(0,t.jsx)(l.sg,{css:{gap:"$3i"},children:null===(f=z[B])||void 0===f?void 0:f.data.text.map((i,e)=>{var n,o,s,r;return(0,t.jsxs)(l.X2,{css:{alignItems:"center",backgroundColor:"red"},children:[(null===(n=z[B])||void 0===n?void 0:n.data.title.includes("exclusion"))?(0,t.jsx)(eA.Z,{css:{fill:"#F3205F",width:"20px",height:"20px",flexShrink:0}}):(null===(o=z[B])||void 0===o?void 0:o.data.title.includes("Honeymoon"))?(0,t.jsx)(l.xu,{css:{flexShrink:0},children:(0,t.jsx)(ne.Z,{fill:"#CAC8F8",height:20,width:20,stroke:"#543BBA"})}):(null===(s=z[B])||void 0===s?void 0:s.data.title.includes("Birthday"))?(0,t.jsx)(l.xu,{css:{flexShrink:0,height:20},children:(0,t.jsx)(ni,{height:20,width:20})}):(null===(r=z[B])||void 0===r?void 0:r.data.title.includes("Anniversary"))?(0,t.jsx)(l.xu,{css:{marginTop:"$i"},children:(0,t.jsx)(e7,{height:20,width:20})}):(0,t.jsx)(eI.Z,{css:{fill:"$green500",width:"20px",height:"20px",flexShrink:0,marginTop:"2px"}}),(0,t.jsx)(l.xv,{css:{color:"$grey900",fontSize:"$7i",fontWeight:"$semiBold",lineHeight:"$11i",fontFamily:"$manrope"},children:(0,eH.kx)("",i,e)})]},e)})}),U()]}),(0,t.jsx)(l.sg,{css:{width:"100%",flexShrink:0},children:(0,t.jsx)(l.zx,{css:{textAlign:"center",fontSize:"$7i",fontWeight:"$bolder",borderRadius:"8px",lineHeight:"$10i",height:"44px"},primary:!0,onClick:_,children:"OK, Got It"})})]})}):(0,t.jsx)(ez.Vq.fC,{open:(null===(y=z[null!=B?B:0])||void 0===y?void 0:y.isOpen)||!1,onOpenChange:i=>{Z(e=>null===B?e:{...e,[B]:{...e[B],isOpen:i}})},children:(0,t.jsx)(ez.Vq.VY,{css:{overflow:"hidden",zIndex:10,width:"100%",padding:0,marginTop:0,display:"flex",flexDirection:"column",maxHeight:"90vh",minHeight:"fit-content","@lg":{width:656,borderRadius:"$3",minHeight:"478px"},"& > button":{display:"none"}},children:null!==B&&(0,t.jsxs)(t.Fragment,{children:[(null===($=z[B])||void 0===$?void 0:$.data.title)&&(0,t.jsxs)(l.X2,{css:{width:"100%",padding:"$9i $16i",borderBottom:"1px solid $blue100",justifyContent:"space-between",alignItems:"center",flexShrink:0},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$9i",lineHeight:"$13i",color:"grey900",fontStyle:"normal",fontFamily:"$manrope",fontWeight:"$bolder"},children:null===(C=z[B])||void 0===C?void 0:C.data.title}),(0,t.jsx)(eS.Z,{className:"close-btn",onClick:_,css:{fill:"$black",cursor:"pointer"}})]}),(0,t.jsxs)(l.sg,{css:{padding:"$11i $16i",overflow:"auto",flex:1},children:[(0,t.jsx)(l.sg,{css:{gap:"$8i"},children:null===(j=z[B])||void 0===j?void 0:j.data.text.map((i,e)=>{var n;let o=null===(n=z[B])||void 0===n?void 0:n.data.title;return(0,t.jsxs)(l.X2,{children:[o.includes("exclusion")?(0,t.jsx)(eA.Z,{css:{fill:"#F3205F",width:"20px",height:"20px",flexShrink:0}}):o.includes("Honeymoon")?(0,t.jsx)(l.xu,{css:{flexShrink:0},children:(0,t.jsx)(ne.Z,{fill:"#CAC8F8",height:20,width:20,stroke:"#543BBA"})}):o.includes("Birthday")?(0,t.jsx)(l.xu,{css:{flexShrink:0},children:(0,t.jsx)(ni,{height:20,width:20})}):o.includes("Anniversary")?(0,t.jsx)(l.xu,{css:{flexShrink:0,marginTop:"$i"},children:(0,t.jsx)(e7,{height:20,width:20})}):(0,t.jsx)(eI.Z,{css:{fill:"$green500",width:"20px",height:"20px",flexShrink:0,marginTop:"2px"}}),(0,t.jsx)(l.xv,{css:{color:"$custom86",fontSize:"$8i",fontWeight:"$semiBold",lineHeight:"$12i",fontFamily:"$manrope"},children:(0,eH.kx)("",i,e)})]},e)})}),U()]}),(0,t.jsx)(l.sg,{css:{padding:"$9i $16i",borderTop:"1px solid $blue100",flexShrink:0,width:"100%",alignItems:"end"},children:(0,t.jsx)(l.zx,{css:{textAlign:"center",fontSize:"$7i",fontWeight:"$bolder",borderRadius:"8px",lineHeight:"$10i",height:"44px",width:"129px"},primary:!0,onClick:_,children:"OK, Got It"})})]})})})]})}var nu=n(13605),ng=n(11209),nh=n(47495),np=n(65182),nv=n(83479),nx=n(25450),nm=n(82266),nf=n(56512),ny=n(20773),n$=n(31981),nC=n(91352),nj=n(742),nw=n(59798),nk=n(96037),nb=n(40492),nI=n(25841),nS=n(33584),nT=n(25),nA=n(33712),nR=n(5453),nM=n(17075),nz=n(32688),nZ=n(69841),nB=n(6057),nL=n(45013),nF=n(37981),nH=n(47913);let nE=i=>{switch(i){case"pyt-air-conditioner-16":return(0,t.jsx)(nf.Z,{});case"pyt-wifi-16":return(0,t.jsx)(e_.Z,{});case"pyt-bar-16":return(0,t.jsx)(ng.Z,{});case"pyt-baby-16":return(0,t.jsx)(eP.Z,{});case"pyt-elevator-16":return(0,t.jsx)(nC.Z,{});case"pyt-gym-16":return(0,t.jsx)(nj.Z,{});case"pyt-van-16":return(0,t.jsx)(nB.Z,{});case"pyt-pool-16":return(0,t.jsx)(nA.Z,{});case"pyt-restaurant-16":return(0,t.jsx)(nw.Z,{});case"pyt-room-service-16":case"pyt-service-16":return(0,t.jsx)(nM.Z,{});case"pyt-television-16":return(0,t.jsx)(eV.Z,{});case"pyt-childcare-16":return(0,t.jsx)(ny.Z,{});case"pyt-pet-paw-16":return(0,t.jsx)(nT.Z,{});case"pyt-wheelchair-16":return(0,t.jsx)(nF.Z,{});case"pyt-microwave-16":return(0,t.jsx)(nS.Z,{});case"pyt-beach-towel-16":return(0,t.jsx)(np.Z,{});case"pyt-locker-facility-16":return(0,t.jsx)(nI.Z,{});case"pyt-kitchen-fridge-16":return(0,t.jsx)(nk.Z,{});case"pyt-balcony-door-16":return(0,t.jsx)(nu.Z,{});case"pyt-laundry-16":return(0,t.jsx)(nb.Z,{});case"pyt-spa-16":return(0,t.jsx)(nz.Z,{});case"pyt-indoor-games-16":case"pyt-water-sport-16":return(0,t.jsx)(nL.Z,{});case"pyt-bed-16":return(0,t.jsx)(eW.Z,{});case"pyt-bell-16":return(0,t.jsx)(nx.Z,{});case"pyt-private-beach-16":return(0,t.jsx)(nv.Z,{});case"pyt-basket-ball-court-16":return(0,t.jsx)(nh.Z,{});case"pyt-parking-16":return(0,t.jsx)(nZ.Z,{});case"pyt-clock-room-16":return(0,t.jsx)(nH.Z,{});case"pyt-climate-heat-1":return(0,t.jsx)(n$.Z,{});case"pyt-boutique-16":return(0,t.jsx)(nm.Z,{});case"pyt-scuba-diving-16":return(0,t.jsx)(nR.Z,{});default:return null}},nD=(0,iB.zo)(l.xu,{position:"absolute",left:0,top:0,backgroundColor:"transparent",width:"100%",height:"100%",zIndex:-1,"&::before":{position:"absolute",top:0,left:0,content:"",background:"linear-gradient(180deg, rgba(0, 0, 0, 0.4) 8%,rgba(0, 0, 0, 0) 100%)",width:"100%",height:"100%"},"&::after":{width:"100%",height:"64px",position:"absolute",top:0,left:0,content:"",background:"linear-gradient(180deg, rgba(0, 0, 0, 0.4) 8%,rgba(0, 0, 0, 0) 100%)"}});var nP=function(){var i;let e=(0,iC.Z)(),[n,o]=(0,c.useState)({});return(0,c.useEffect)(()=>
1{if(e&&e.hotelCostings&&e.hotelCostings.costingById){let i=e.hotelCostings.costingById;Object.entries(i).forEach(i=>{let[,e]=i;o(e)})}},[e]),(0,t.jsx)(l.kC,{css:{width:"100%",gap:"1","@lg":{paddingLeft:"0",paddingRight:"0"}},children:(0,t.jsxs)(l.X2,{css:{width:"100%",flexWrap:"wrap",zIndex:"0",gap:4},children:[(null==n?void 0:n.propertyHighlights)&&(null==n?void 0:n.propertyHighlights.length)?(0,t.jsx)(t.Fragment,{children:null==n?void 0:null===(i=n.propertyHighlights)||void 0===i?void 0:i.map((i,e)=>(0,t.jsxs)(l.xu,{css:{position:"relative",cursor:"pointer",overflow:"hidden",borderRadius:"3px",width:0===e||1===e?"188px":"124px",height:"120px","@lg":{height:"240px",width:0===e||1===e?"360px":"calc(33.33% - 4px)",".image":{transition:"all 0.3s ease-in-out"},"&:hover":{".image":{transform:"scale(1.1)"}}}},children:[(null==i?void 0:i.images)&&(null==i?void 0:i.images[0])&&(0,t.jsx)(ep(),{className:"image",unoptimized:!0,objectFit:"cover",src:(0,e9.Z)(null==i?void 0:i.images[0],"h=240&w=240&fit=crop",80),layout:"fill",alt:""}),(0,t.jsx)(nD,{}),(0,t.jsx)(l.xv,{css:{position:"absolute",bottom:0,left:0,width:"100%",paddingLeft:12,paddingBottom:16,paddingTop:16,color:"$white",fontSize:"$7i",fontWeight:"$bolder",fontFamily:"$manrope",zIndex:3,lineHeight:"$10i",background:"linear-gradient(180deg,transparent,rgba(0,0,0,.60))","@lg":{fontSize:"$8i"}},children:null==i?void 0:i.name})]},e))}):null," "]})})},nW=n(47624),nO=n(95656),nV=n(35946);let nN={360:{slidesPerView:1.5,slidesPerGroup:2,spaceBetween:8,freeMode:!0,Directions:"column"},1024:{slidesPerView:2.8,slidesPerGroup:3,spaceBetween:12,freeMode:!0,Directions:"row"}};var n_=function(i){let{images:e,sectionName:n}=i;(0,s.Dv)(ij.s2);let[o,r]=(0,c.useState)(!1),[d,a]=(0,c.useState)(0),u={breakpoints:{...nN}},g=(0,c.useMemo)(()=>e?Object.entries(e).map(i=>{let[e,n]=i;return{category:e,images:n}}):[],[e]);return(0,t.jsxs)(l.xu,{css:{paddingLeft:"0px",padding:0},children:[(0,t.jsx)(i0.default,{id:"".concat((0,nV.l)("packages-media-".concat(n.toLocaleLowerCase(),"-card"),"packagescard")),componentData:{transparentBg:!0,fluidLayout:!1,pagePadding:0},titleElement:(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:n}),sliderArrowPosition:"top",sliderArrowMobile:!0,sliderConfig:u,listingFlow:!0,children:g.map((i,e)=>(0,t.jsx)(l.X2,{css:{backgroundColor:"$custom32"},children:(0,t.jsx)(l.sg,{css:{borderRadius:"$2",width:"311px",backgroundColor:"$custom32","@lg":{cursor:"pointer",width:"970px"}},children:(0,t.jsxs)(l.sg,{css:{gap:"$4i",width:"270px",position:"relative"},onClick:()=>{r(!0),a(e)},children:[(0,t.jsx)(l.sg,{css:{position:"relative",borderRadius:"$2i",height:"200px","@lg":{width:"270px",height:"170px",overflow:"hidden"},".image":{transition:"all 0.3s ease-in-out",width:"100%",height:"100%"},"&:hover":{".image":{transform:"scale(1.1)"}}},children:(0,nO.W)(i.images[0].url)?(0,t.jsxs)(l.xu,{css:{width:"270px",height:"200px",position:"relative"},children:[(0,t.jsx)(em.Z,{src:i.images[0].url+"?time=1",alt:"video thumbnail",fill:!0,className:"gallery-thumb-image",style:{objectFit:"cover",borderRadius:"inherit"}}),(0,t.jsx)(l.xu,{css:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"32px",height:"32px",backgroundColor:"rgba(0, 0, 0, 0.6)",borderRadius:"$round",display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},children:(0,t.jsx)(l.xu,{css:{width:0,height:0,borderTop:"8px solid transparent",borderBottom:"8px solid transparent",borderLeft:"12px solid white",marginLeft:"3px"}})})]}):(0,t.jsx)(em.Z,{className:"image",src:(0,nW.Z)("".concat(i.images[0].url)),alt:i.category||"Experience Image",fallback:"https://images.pickyourtrail.com/images/costing_screen/placeholder/desktop/hotels.png",width:270,height:200,style:{objectFit:"cover",width:"270px",height:"200px",borderRadius:"inherit"}})}),(0,t.jsxs)(l.xu,{css:{position:"absolute",transform:"translate(-50%, 0)",left:"50%",bottom:0,backgroundColor:"$grey950",opacity:.8,color:"$white",padding:"$3i $8i",borderRadius:"$4",borderBottomRightRadius:0,borderBottomLeftRadius:0,fontSize:"$6i",fontFamily:"$manrope",backdropFilter:"blur(2px)",zIndex:2,textAlign:"center"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:"$bold",fontFamily:"$manrope",fontSize:"$7i",lineHeight:"$10i","@lg":{fontSize:"$8i"}},children:i.category.charAt(0).toUpperCase()+i.category.slice(1).replace(/-/g," ")}),(0,t.jsx)(l.xv,{css:{fontWeight:"$bolder",fontFamily:"$manrope"},children:"1/".concat(i.images.length)})]})]})})},"card-slider-".concat(e)))}),(0,t.jsx)(eg.default,{galleryVisible:o,setGalleryVisible:r,galleryPhotos:[],targetActiveTab:d,categorizedImages:e,showCloseICcon:!0,onCloseModal:()=>a(0)})]})},nq=n(38451),nU=n(33831),nX=n(76522),nK=n(16124);let nG=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M14.3301 11.1018V15",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M14.3301 11.1018L12.8301 12.3518",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M14.3301 11.1018L15.8301 12.3518",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M2 15H9.5",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.00362 11.0287L2 9.0375L3.18022 8.45105C3.39436 8.34472 3.64591 8.34472 3.86005 8.45105L5.04027 9.037
15L7.46675 7.54425L4.28023 4.5228L6.41415 3.75L10.3607 6.01609L13.7819 4.07325C14.2316 3.81696 14.7752 3.78517 15.2518 3.98728C15.7284 4.18939 16.0834 4.60227 16.2117 5.10375V5.10375C16.3477 5.64661 16.1111 6.21433 15.6298 6.49994L9.08808 10.4007C8.92439 10.4983 8.74388 10.5643 8.55589 10.5954L4.666 11.2397C4.42414 11.2799 4.1777 11.2014 4.00362 11.0287Z",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{}),nY=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M1.89844 15H9.39844",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M14.2285 15V11.1",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M13.0586 14.0258L14.2286 15L15.3978 14.0258",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.87544 10.977L1.89844 9L3.06319 8.418C3.27469 8.31225 3.52294 8.31225 3.73369 8.418L4.89844 9L7.29244 7.51725L4.14844 4.51725L6.39844 3.75L10.1484 6L13.6787 3.9825C14.5419 3.489 15.6377 3.957 15.8784 4.9215V4.9215C16.0389 5.562 15.7607 6.2325 15.1944 6.57225L8.89219 10.3538C8.73094 10.4505 8.55244 10.5165 8.36719 10.5472L4.52869 11.187C4.29019 11.226 4.04644 11.148 3.87544 10.977Z",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{}),nJ=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{d:"M9.18839 8.63226L7.27539 13.145",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7089 2.68714V2.68714C14.256 3.76813 15.5993 6.57686 14.842 9.23822L14.7928 9.41214C14.6901 9.77351 14.4372 10.0734 14.0983 10.2355C13.7594 10.3976 13.3672 10.4063 13.0214 10.2594L5.35075 7.0029C5.00486 6.85614 4.73867 6.56786 4.61989 6.21139C4.50111 5.85492 4.54118 5.4646 4.7299 5.13969L4.82047 4.98284C6.2093 2.59021 9.16234 1.60605 11.7089 2.68714Z",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M11.7088 2.68713L11.8788 3.37427C12.3837 5.41841 11.9403 7.58122 10.6719 9.26184V9.26184",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M11.7085 2.68713L11.0962 3.04218C9.27504 4.09913 8.02719 5.92051 7.69922 8.00043V8.00043",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M2.30273 15C3.49828 13.8045 5.11979 13.1328 6.81054 13.1328C8.5013 13.1328 10.1228 13.8045 11.3183 15",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{}),nQ=(0,iB.zo)(function(i){return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,t.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.55203 5.24844H5.55078V3.37265C5.55078 3.16546 5.71874 2.9975 5.92594 2.9975H7.53132C7.6928 2.9975 7.83616 3.10083 7.88722 3.25402L8.55203 5.24844Z",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M2.54883 12.7516V12.7516C3.41012 12.3764 4.38866 12.3764 5.24995 12.7516V12.7516C6.11125 13.1267 7.08978 13.1267 7.95108 12.7516V12.7516C8.81237 12.3764 9.79091 12.3764 10.6522 12.7516V12.7516C11.5135 13.1267 12.492 13.1267 13.3533 12.7516V12.7516C14.2146 12.3764 15.1932 12.3764 16.0545 12.7516V12.7516",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M5.25 15.0025V15.0025C6.1113 15.3777 7.08983 15.3777 7.95113 15.0025V15.0025C8.81242 14.6273 9.79095 14.6273 10.6523 15.0025V15.0025C11.5135 15.3777 12.4921 15.3777 13.3534 15.0025V15.0025",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M4.04883 8.24969L4.65705 5.81678C4.74056 5.48276 5.04067 5.24844 5.38497 5.24844H10.6245C11.1929 5.24844 11.7125 5.56958 11.9667 6.07797L13.0526 8.24969",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,t.jsx)("path",{d:"M3.24065 12.5334L2.56341 9.1472C2.51931 8.92677 2.57637 8.69818 2.71889 8.52433C2.8614 8.35048 3.07436 8.24969 3.29915 8.24969H15.3027C15.5731 8.24969 15.8225 8.3951 15.9557 8.63033C16.0889 8.86556 16.0852 9.15425 15.9461 9.38604L14.0596 12.5303",stroke:"#5B92C2","stroke-linecap":"round","stroke-linejoin":"round"})]})},{});var n0=n(64672),n1=n(63973),n2=n(89353),n5=n(51490),n3=n(88767);let n6=async(i,e,n)=>await e({url:"hotel/addOns",method:"POST",body:i,signal:n}),n8=i=>{let e=(0,n5.wh)(),{mutate:n,mutateAsync:t,...o}=(0,n3.useMutation)(i=>n6(i,e,void 0),i);return{getTransferData:n,getTransferAsync:t,...o}};function n4(i){var e,n;let o,{open:r,onCloseModal:d,details:a,roomIndex:u,setOpenTransfer:g}=i,h=(0,s.Dv)(ij.s2),p=(0,iC.Z)(),v=(0,s.b9)(ij.w4),{getTransferAsync:x}=n8(),m=i=>{let e=Math.floor(i/60),n=i%60;return"".concat(e<=0?"":e+" hr :")+"".concat(n>0?n+" min":"")},f=(i,e)=>i===e?{type:"SAME",diffCost:0}:i<e?{type:"HIGH",diffCost:e-i}:{type:"LOW",diffCost:i-e};if((null==a?void 0:a.roomsInHotel)&&null!=u){let y=a.roomsInHotel[u];
1null===(n=y.hotelAddOns)||void 0===n||n.forEach(i=>{(null==i?void 0:i.selected)&&(null==i?void 0:i.category)==="TRANSPORT"&&(o=null==i?void 0:i.publishedAddOnCost)})}let $=(0,c.useCallback)(async i=>{try{var e,n,t;let o=null===(e=null==a?void 0:null===(n=a.roomsInHotel)||void 0===n?void 0:n[u].hotelAddOns)||void 0===e?void 0:e.filter(i=>i.selected&&"TRANSPORT"!==i.category),l=await x({itineraryId:null==p?void 0:null===(t=p.itinerary)||void 0===t?void 0:t.itineraryId,hotelCostingKey:null==a?void 0:a.configKey,roomIndex:u,selectedAddOns:[...o,i]});(null==l?void 0:l.status)==="SUCCESS"&&(null==l?void 0:l.data)&&(sessionStorage.setItem("scrollPosition",window.scrollY.toString()),v(l),g(!1))}catch(s){}},[null==a?void 0:a.configKey,null==a?void 0:a.roomsInHotel,x,null==p?void 0:null===(e=p.itinerary)||void 0===e?void 0:e.itineraryId,u,v,g]),C=(0,c.useMemo)(()=>{if((null==a?void 0:a.roomsInHotel)&&null!=u){var i;return(null===(i=a.roomsInHotel[u].hotelAddOns)||void 0===i?void 0:i.filter(i=>"TRANSPORT"===i.category))||[]}return[]},[null==a?void 0:a.roomsInHotel,u]);return(0,t.jsx)(ez.Vq.fC,{open:r,onOpenChange:d,children:(0,t.jsx)(ez.Vq.VY,{css:{height:"100vh",width:"100%",overflow:"scroll","@lg":{padding:"30px",width:"fit-content"}},children:(0,t.jsxs)(l.sg,{css:{gap:"$20i"},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$8i",color:"$black",fontWeight:"$bold",fontFamily:"$manrope","@lg":{fontSize:"$12i"}},children:"Transfer Options"}),null==C?void 0:C.map((i,e)=>{var n,s,r,d,c,u,g,p,v,x,y,C,j,w,k,b,I,S,T,A,R,M,z,Z,B,L,F;let{type:H,diffCost:E}=f(o||0,null==i?void 0:i.publishedAddOnCost),D="LOW"===H?(null==a?void 0:a.publishedCost)-E:(null==a?void 0:a.publishedCost)+E,P=(null==i?void 0:i.transferOptions[0][0])==="SEAPLANE"?"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/seaplane.jpg":"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/speedboat.png",W=(null==i?void 0:i.transferOptions[1][0])==="SEAPLANE"?"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/seaplane.jpg":"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/speedboat.png";return(0,t.jsxs)(l.sg,{css:{backgroundColor:"$custom10",borderRadius:"$3",padding:"$10i",border:"1px solid rgb(111,111,111)",boxShadow:"0px 8px 24px rgba(0, 0, 0, 0.06)",gap:"$5i","@lg":{gap:"$12i"}},children:[(0,t.jsxs)(l.X2,{css:{gap:"$4i",alignItems:"center"},children:[(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",fontWeight:"$bold",color:"$black",fontFamily:"$manrope","@lg":{fontSize:"$9i"}},children:["Transfer Combo #",e+1]}),(null==i?void 0:i.selected)?(0,t.jsxs)(l.X2,{css:{backgroundColor:"rgb(117, 72, 156)",padding:"$2i $3i",borderRadius:"$1",justifyContent:"center",alignItems:"center",gap:"$2i","@lg":{padding:"$3i $4i"}},children:[(0,t.jsx)(n2.Z,{fill:"white",width:16,height:16}),(0,t.jsx)(l.xv,{css:{fontSize:"$5i",fontWeight:"$bolder",color:"white",fontFamily:"$manrope","@lg":{fontSize:"$6i"}},children:"CURRENT SELECTION"})]}):null]}),(0,t.jsxs)(l.X2,{css:{gap:"$12i",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsxs)(l.sg,{css:{gap:"$5i",width:"50%","@lg":{width:"unset"}},children:[(0,t.jsx)(ep(),{src:P,width:148,height:h?98:100,alt:"pyt-image"}),(null==i?void 0:i.transferOptions[0])&&(0,t.jsx)(l.xv,{css:{fontSize:"$7i",fontWeight:"normal",color:"rgb(68, 148, 183)",fontFamily:"$manrope","@lg":{fontWeight:"$bold"}},children:"Onward Transfer"}),(null==i?void 0:i.transferOptions[0])&&(0,t.jsx)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal",fontFamily:"$manrope"},children:null==i?void 0:i.transferOptions[0]}),(null===(n=null==a?void 0:null===(s=a.transferDetails)||void 0===s?void 0:s.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===n?void 0:n.duration)&&(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal",fontFamily:"$manrope"},children:["Duration:"," ",(null===(r=null==a?void 0:null===(d=a.transferDetails)||void 0===d?void 0:d.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===r?void 0:r.duration)?m(a.transferDetails.transferOptionsTimings[null==i?void 0:i.transferOptions[0]].duration):""]}),(null===(c=null==a?void 0:null===(u=a.transferDetails)||void 0===u?void 0:u.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===c?void 0:null===(g=c.departuresFromAirport)||void 0===g?void 0:g.length)!==0?(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontFamily:"$manrope",fontWeight:"$normal"},children:["Availability time:"," ",null===(p=null==a?void 0:null===(v=a.transferDetails)||void 0===v?void 0:v.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===p?void 0:p.departuresFromAirport]}):null,(null===(x=null==a?void 0:null===(y=a.transferDetails)||void 0===y?void 0:y.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===x?void 0:x.baggageAllowance)&&(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal"},children:["Baggage Allowance:"," ",null===(C=null==a?void 0:null===(j=a.transferDetails)||void 0===j?void 0:j.transferOptionsTimings[null==i?void 0:i.transferOptions[0]])||void 0===C?void 0:C.baggageAllowance]})]}),(0,t.jsxs)(l.sg,{css:{gap:"$5i",width:"50%","@lg":{width:"unset"}},children:[(0,t.jsx)(ep(),{src:W,width:148,height:h?98:100,alt:"pyt-image"}),(null==i?void 0:i.transferOptions[1])&&(0,t.jsx)(l.xv,{css:{fontSize:"$7i",color:"rgb(68, 148, 183)",fontWeight:"$normal",fontFamily:"$manrope","@lg":{fontWeight:"$bold"}},children:"Return Transfer"}),(null==i?void 0:i.transferOptions[1])&&(0,t.jsx)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal",fontFamily:"$manrope"},children:null==i?void 0:i.transferOptions[1]}),(null===(w=null==a?void 0:null===(k=a.transferDetails)||void 0===k?void 0:k.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===w?void 0:w.duration)&&(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal",fontFamily:"$manrope"},children:["Duration:"," ",(null===(b=null==a?void 0:null===(I=a.transferDetails)||void 0===I?void 0:I.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===b?void 0:b.duration)?m(a.transferDetails.transferOptionsTimings[null==i?void 0:i.transferOptions[1]].duration):""]}),(null===(S=null==a?void 0:null===(T=a.transferDetails)||void 0===T?void 0:T.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===S?void 0:null===(A=S.departuresFromAirport)||void 0===A?void 0:A.length)>0&&(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontFamily:"$manrope",fontWeight:"$normal"},children:["Availability time:"," ",null===(R=null==a?void 0:null===(M=a.transferDetails)||void 0===M?void 0:M.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===R?void 0:R.departuresFromAirport]}),(null===(z=null==a?void 0:null===(Z=a.transferDetails)||void 0===Z?void 0:Z.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===z?void 0:null===(B=z.baggageAllowance)||void 0===B?void 0:B.length)>0&&(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"$normal",fontFamily:"$manrope"},children:["Baggage Allowance:"," ",null===(L=null==a?void 0:null===(F=a.transferDetails)||void 0===F?void 0:F.transferOptionsTimings[null==i?void 0:i.transferOptions[1]])||void 0===L?void 0:L.baggageAllowance]})]}),(null==i?void 0:i.selected)?(0,t.jsx)(l.xu,{css:{padding:"10px",width:"125px",display:"none","@lg":{display:"block"}},children:(0,t.jsx)(l.xv,{css:{display:"none","@lg":{color:"$custom58",fontSize:"$8i",lineHeight:1.23,letterSpacing:"-.25px",fontWeight:"$bolder",textTransform:"uppercase",textAlign:"center",display:"inline-block",borderTop:"$sizes$i solid $colors$custom58",borderBottom:"$sizes$i solid $colors$custom58",padding:"$2i 0",maxWidth:77,fontFamily:"$manrope"}},children:"CURRENT SELECTION"})}):(0,t.jsxs)(l.sg,{css:{display:"none","@lg":{gap:"$6i",display:"flex"}},children:[(0,t.jsxs)(l.X2,{css:{alignItems:"center"},children:["HIGH"==H?(0,t.jsx)(n0.Z,{fill:"#e0515a",height:30,width:30}):"LOW"==H?(0,t.jsx)(n1.Z,{fill:"#319674",height:30,width:30}):null,(0,t.jsx)(l.xv,{css:{fontSize:"$7i",fontWeight:"normal",color:"black",fontFamily:"$manrope"},children:(0,t.jsx)(eL.Z,{value:E})})]}),(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"normal",fontFamily:"$manrope"},children:["Trip cost ",(0,t.jsx)(eL.Z,{value:D})]}),(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontFamily:"$manrope",fontWeight:"normal"},children:["Net transfer cost : ",null==i?void 0:i.contractCurrency," ",null==i?void 0:i.addOnCostInContractCurrency]}),(0,t.jsx)(l.zx,{css:{backgroundColor:"rgb(0, 198, 132)",height:"41px",width:"136px",fontWeight:"$bolder",fontSize:"$7i",cursor:"pointer",fontFamily:"$manrope"},onClick:()=>{$(i)},children:"Choose"})]})]}),(null==i?void 0:i.selected)?null:(0,t.jsxs)(l.X2,{css:{gap:"$4i",paddingTop:"$8i",justifyContent:"flex-end",borderTop:"1px solid rgb(111,111,111)","@lg":{display:"none"}},children:[(0,t.jsxs)(l.sg,{css:{gap:"$2i",alignItems:"end"},children:[(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",fontWeight:"normal",color:"black",fontFamily:"$manrope"},children:["Trip cost ",(0,t.jsx)(eL.Z,{value:D})]}),(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",color:"black",fontWeight:"normal",fontFamily:"$manrope"},children:["Net transfer cost : ",null==i?void 0:i.contractCurrency," ",null==i?void 0:i.addOnCostInContractCurrency]})]}),(0,t.jsx)(l.zx,{css:{width:"106px",height:"45px",fontWeight:"$bolder",fontSize:"$7i",fontFamily:"$manrope",backgroundColor:"rgb(0, 198, 132)"},onClick:()=>{$(i)},children:"Choose"})]})]},e)})]})})})}let n9=i=>{let{type:e,transferOptions:n,transferDetails:o,transferImage:s,stepper:r}=i,{duration:d,availabilityTime:a,baggageAllowance:u}=(0,c.useMemo)(()=>{var i,t,l,s,r,d,a;return n&&(null==o?void 0:o.transferOptionsTimings)?{duration:null==o?void 0:null===(i=o.transferOptionsTimings)||void 0===i?void 0:null===(t=i[n])||void 0===t?void 0:t.duration,availabilityTime:null==o?void 0:null===(l=o.transferOptionsTimings)||void 0===l?void 0:null===(s=l[n])||void 0===s?void 0:null===(r=s["onward"===e?"departuresFromAirport":"departuresFromResort"])||void 0===r?void 0:r.filter(i=>i),baggageAllowance:null==o?void 0:null===(d=o.transferOptionsTimings)||void 0===d?void 0:null===(a=d[n])||void 0===a?void 0:a.baggageAllowance}:{duration:"",availabilityTime:"",baggageAllowance:""}},[null==o?void 0:o.transferOptionsTimings,n,e]);return(0,t.jsxs)(l.sg,{css:{gap:"$6i"},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$8i",fontWeight:"$bolder",lineHeight:"$12i",fontFamily:"$manrope","@lg":{fontSize:"$9i"}},children:"onward"===e?"Onward transfer":"Return transfer"}),(0,t.jsxs)(l.X2,{css:{"@lg":{border:"1px solid $grey200",borderRadius:"$4",overflow:"hidden"}},children:[(0,t.jsx)(l.xu,{css:{width:"66px",height:"66px",justifyContent:"space-between",borderRadius:"$round",backgroundImage:"url(".concat(s,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center","@lg":{borderRadius:"unset",width:"190px",minHeight:"197px",height:"auto"}}}),(0,t.jsxs)(l.sg,{css:{gap:"$6i",padding:"0 $8i",width:"calc(100% - 66px)","@lg":{padding:"$8i",width:"calc(100% - 190px)"}},children:[n?(0,t.jsxs)(l.xv,{css:{fontSize:"$8i",fontFamily:"$manrope",color:"$grey950"},children:["Transfer Type:"," ",(0,t.jsx)("span",{style:{fontWeight:700},children:n})]}):null,d?(0,t.jsxs)(l.xv,{css:{fontSize:"$8i",fontFamily:"$manrope",color:"$grey950"},children:["Transfer Duration:"," ",(0,t.jsx)("span",{style:{fontWeight:700},children:d?(i=>{let e=Math.floor(i/60),n=i%60;return"".concat(e<=0?"":e+" hr :")+"".concat(n>0?n+" min":"")}
1)(d):""})]}):null,(null==a?void 0:a.length)?(0,t.jsxs)(l.xv,{css:{fontSize:"$8i",fontFamily:"$manrope",lineHeight:"$12i",color:"$grey950"},children:["Availability time:"," ",(0,t.jsx)("span",{style:{fontWeight:700},children:a.join(", ")})]}):null,u?(0,t.jsxs)(l.xv,{css:{fontSize:"$8i",fontFamily:"$manrope",color:"$grey950"},children:["Baggage Allowance:"," ",(0,t.jsx)("span",{style:{fontWeight:700},children:u})]}):null,(0,t.jsx)(l.X2,{css:{width:"100%",flexDirection:"column",justifyContent:"space-between",marginTop:"$4i",gap:"$6i","@lg":{padding:"$6i $8i",backgroundColor:"$pblue100",border:"1px dashed $pblue300",borderRadius:"$3",flexDirection:"row",gap:"$2i"}},children:r.map((i,e)=>(0,t.jsxs)(c.Fragment,{children:[(0,t.jsxs)(l.sg,{align:"center",css:{flex:1,gap:"$4i",flexDirection:"row","@lg":{flexDirection:"column"}},children:[(0,t.jsx)(l.xu,{as:"span",css:{width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{width:"18px",height:"18px"}},children:i.icon}),(0,t.jsx)(l.xv,{css:{fontWeight:"$bold",fontSize:"$6ii",textAlign:"center",color:"$grey950",fontFamily:"$manrope","@lg":{whiteSpace:"pre"}},children:i.text})]}),e!==r.length-1&&(0,t.jsx)(l.xu,{css:{borderTop:"2px dashed #B3C6D9",transform:"rotate(90deg)",width:"18px","@lg":{flex:.5,marginTop:"$9i",width:"100%",transform:"none"}}})]},e))})]})]})]})},n7=i=>{var e,n,o;let{data:r,details:d,isBooked:a,landPackageBooked:u,index:g}=i,h=(0,nK.Z)(),p=(0,s.Dv)(ij.s1),[v,x]=(0,c.useState)(!1),[m,f]=(0,c.useState)(0),y=i=>{var e;let n=null==r?void 0:null===(e=r.transferOptions)||void 0===e?void 0:e[i];return Array.isArray(n)?n.map(i=>i.replace(/_/g," ")).join(" + "):""},$=i=>i?i.includes("SEAPLANE")?"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/seaplane.jpg":"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/web_app/speed-boat/filter/speedboat.png":"",C=$(null==r?void 0:null===(e=r.transferOptions)||void 0===e?void 0:e[0]),j=$(null==r?void 0:null===(n=r.transferOptions)||void 0===n?void 0:n[1]),w=(0,c.useMemo)(()=>[{text:"Land at MLE",icon:(0,t.jsx)(nY,{})},{text:"Wait\n30 min - 3 hrs",icon:(0,t.jsx)(nq.Z,{fill:"#5B92C2"})},{text:"Transfer",icon:(0,t.jsx)(nQ,{})},{text:"Resort\nCheck-in",icon:(0,t.jsx)(nJ,{})}],[]),k=(0,c.useMemo)(()=>[{text:"Resort\nCheck-out",icon:(0,t.jsx)(nJ,{})},{text:"Wait\n30 min - 3 hrs",icon:(0,t.jsx)(nq.Z,{fill:"#5B92C2"})},{text:"Transfer",icon:(0,t.jsx)(nQ,{})},{text:"Depart\nfrom MLE",icon:(0,t.jsx)(nG,{})}],[]);return(0,t.jsxs)(l.sg,{css:{gap:"$8i","@lg":{gap:"$9i"}},children:[(0,t.jsx)(l.xv,{as:"p",css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Transfer"}),(0,t.jsxs)(l.sg,{css:{width:"100%",backgroundColor:"white",borderRadius:"$5",border:"1px solid $grey100",overflow:"hidden"},children:[(0,t.jsx)(l.X2,{align:"center",justify:"end",css:{padding:"$6i $12i",backgroundColor:"$white","@lg":{backgroundColor:"$pblue100"}},children:(0,t.jsx)(l.zx,{primary:!0,outlined:!0,disabled:u||a,css:{backgroundColor:"white",fontSize:"$7i",cursor:"pointer",fontWeight:"$bold",border:"1px solid $scustom94",fontFamily:"$manrope",color:"$scustom94","@lg":{fontSize:"$8i"}},onClick:()=>{x(!0),f(g)},children:"Change Transfer"})}),(0,t.jsxs)(l.sg,{css:{padding:"$8i $12i",gap:"$10i"},children:[(0,t.jsx)(n9,{type:"onward",transferOptions:y(0),transferDetails:null==d?void 0:d.transferDetails,transferImage:C,stepper:w}),(null==r?void 0:null===(o=r.transferOptions)||void 0===o?void 0:o[1])?(0,t.jsx)(l.xu,{css:{border:"1px dashed $grey200",width:"100%"}}):null,(0,t.jsx)(n9,{type:"return",transferOptions:y(1),transferDetails:null==d?void 0:d.transferDetails,transferImage:j,stepper:k})]}),(null==d?void 0:d.airportCounterRemarks)?(0,t.jsxs)(l.X2,{css:{gap:"$5i",backgroundColor:"rgb(254, 248, 224)",padding:"$8i"},children:[(0,t.jsx)(nU.Z,{height:16,width:25,fill:"FFFF33"}),(0,t.jsxs)(l.xv,{css:{fontSize:"$7i",fontWeight:"$bold",color:"black",fontFamily:"$manrope"},children:["Resort Counter no.: ",null==d?void 0:d.airportCounterRemarks]})]}):null,(0,ib.P)({permissions:null==p?void 0:p.permissions,key:iT.Gz})&&(null==d?void 0:d.status)!=="UNAVAILABLE"&&(null==d?void 0:d.status)==="SUCCESS"&&h?(0,t.jsx)(nX.Z,{entity:d.entityType,configKey:d.configKey,costingId:d.costingId}):null]}),v&&(0,t.jsx)(n4,{open:v,onCloseModal:i=>{x(i)},details:d,roomIndex:m,setOpenTransfer:x})]})};var ti=function(){var i,e,n,o,r,v,f,y,b,S,T,A,M,z;let L=(0,iC.Z)(),F=(0,s.Dv)(ij.s1),E=(0,s.b9)(ij.f6),D=(0,s.b9)(ij.JA),[P,W]=(0,c.useState)(!1),O
1=(0,a.useRouter)(),[V,N]=(0,s.KO)(ij.iD),[_,q]=(0,c.useState)(!1),U=g.ZP.Element,X=(0,c.useMemo)(()=>null==L?void 0:L.lineItemBasedAlerts,[L]),[K,G]=(0,s.KO)(ij.As),[Y,Q]=(0,c.useState)(!1),[ii,ie]=(0,c.useState)(!1),[it,io]=(0,c.useState)(null),[il,is]=(0,c.useState)(!1),[ir,id]=(0,c.useState)(!1),{betterCostModal:iu,openAlertModal:ig,showMenuMobile:ih,toggleMetod:iv,togglePaymentModal:ix}=K,im=ec.X.api_url,i$=(0,iy.Z)(),{getOtpRequestAsync:iw}=(0,p.J)(),[ik]=(0,s.KO)(ij.B4),{updateOtpAsync:iA}=(0,m.I)(),iR=(0,c.useMemo)(()=>{var i;return null===(i=O.query)||void 0===i?void 0:i.m},[O]),iM=(0,c.useCallback)(async()=>{if((null==F?void 0:F.loggedIn)&&!(null==F?void 0:F.email)){let i={userId:null==F?void 0:F.userId,newEmail:null==V?void 0:V.email},e=await iw(i);"SUCCESS"===e.status?N({...V,enableButton:!(null==V?void 0:V.enableButton),showOtp:!(null==V?void 0:V.showOtp),message:"",response:null==e?void 0:e.data}):N({...V,enableButton:!1,showOtp:!1,message:null==e?void 0:e.message})}},[iw,N,null==F?void 0:F.email,null==F?void 0:F.loggedIn,null==F?void 0:F.userId,V]),iz=(0,c.useMemo)(()=>null==L?void 0:L.itinerary.itineraryId,[null==L?void 0:L.itinerary.itineraryId]),iZ=(0,c.useMemo)(()=>(null==L?void 0:L.faqDetails)||[],[null==L?void 0:L.faqDetails]),iB=(0,c.useCallback)((i,e,n,t,o)=>{var l;let s={m:"addon-line-item",entity:i,configKey:e,isFlightOnly:o||!1};n&&(s.mode=n),t&&(s.roomId=t),O.replace({pathname:(null===(l=O.asPath)||void 0===l?void 0:l.split("?")[0])+"/inclusions",query:s})},[O]),iL=(0,c.useCallback)(async i=>{var e,n,t;if((null==V?void 0:V.response)!==null&&(null==V?void 0:null===(e=V.otp)||void 0===e?void 0:e.length)===6){let o={...null==V?void 0:V.response,otp:null==V?void 0:V.otp,email:null==V?void 0:V.email},l=await iA(o);"SUCCESS"===l.status&&(null==l?void 0:l.message)==="Update successful"?(N({...V,otpError:!1,otpMessage:""}),i?i$?O.push("/things-to-know-before-book/".concat(null==L?void 0:null===(n=L.itinerary)||void 0===n?void 0:n.itineraryId)):O.push("/must-know/".concat(null==L?void 0:null===(t=L.itinerary)||void 0===t?void 0:t.itineraryId)):O.reload()):N({...V,otpError:!0,otpMessage:null==l?void 0:l.message})}},[iA,L,O,V,N,i$]),iF=(0,c.useCallback)(i=>{if(D&&D(!1),O.query.m!==i){var e;let n=null===(e=O.asPath)||void 0===e?void 0:e.split("?")[0];O.push({pathname:n,query:{m:i}},void 0,{shallow:!0})}},[O,D]),iH=(0,c.useCallback)(()=>{O.push({pathname:O.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},[O]),{sendCustomerMailQuoteAsync:iE}=(0,x.c)(),iW=(0,c.useCallback)(async()=>{D&&D(!1);try{var i,e;let n=await iE({itineraryId:null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.itineraryId.toString(),email:(null==F?void 0:null===(e=F.email)||void 0===e?void 0:e.toString())||""});(null==n?void 0:n.emailSent)===!0&&u.ZP.success("Email sent successfully! Please check your inbox.")}catch(t){}},[null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.itineraryId,iE,D,null==F?void 0:F.email]),iO=(0,c.useMemo)(()=>{let i=[];if(null==L?void 0:L.itinerary){let e=null==L?void 0:L.itinerary.allCityKeys;if(H()(e,e=>{let n=L.iterCityByKey[e];i.push(L.cityById[n.cityId].cityName)}),i.length>1){let n=i.splice(-1);return i.join(", ")+" and "+n}}return i.join(", ")},[L]),{itineraryTitle:iV}=(0,c.useMemo)(()=>{var i;let e=null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.nights;return{itineraryTitle:d()(L,"itinerary.title","".concat(void 0!==e?e:""," ").concat((0,iI.Z)({count:void 0!==e?e:0,keyword:void 0!==e?"night":""})," ").concat(iO))}},[iO,L]),iN=(0,c.useMemo)(()=>(0,ib.P)({key:iT.nD,permissions:null==F?void 0:F.permissions}),[null==F?void 0:F.permissions]),i_=(0,c.useCallback)(()=>{var i,e;"shareItinerary"===ik?iF("share-itinerary"):"mailThisQuote"===ik?iN?iW():iF("share-email-quote"):"sharePdf"===ik?window.open("https://wa.me/".concat(null==F?void 0:F.countryPhoneCode).concat(null==F?void 0:F.mobileNumber,"?text=Unwrap your customized itinerary ").concat(iV?"for ".concat(iV):"","\n ").concat(im,"cost/").concat(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.itineraryId,"/createpdf/v3")):"downloadPdf"===ik&&window.open("".concat(ec.X.api_url,"cost/").concat(null==L?void 0:null===(e=L.itinerary)||void 0===e?void 0:e.itineraryId,"/downloadItineraryPdf?land-package=true"),"_blank")},[im,ik,iW,iF,iN,null==L?void 0:null===(e=L.itinerary)||void 0===e?void 0:e.itineraryId,iV,null==F?void 0:F.countryPhoneCode,null==F?void 0:F.mobileNumber]);(0,c.useEffect)(()=>
1{if(L&&L.hotelCostings&&L.hotelCostings.costingById){let i=L.hotelCostings.costingById;Object.entries(i).forEach(i=>{let[,e]=i;io(e)})}},[L]);let iq=(0,c.useMemo)(()=>{var i;return null===(i=O.query)||void 0===i?void 0:i.exposure},[O]);(0,c.useEffect)(()=>{Y||"gcm"!==iR?_||"signin"!==iR?_||"cbr"!==iR||q(!0):W(!0):Q(!0)},[O,iR,Y,_]),(0,c.useEffect)(()=>{E((null==L?void 0:L.displayCurrency)||"INR"),ie(void 0!=iq)},[iq,null==L?void 0:L.displayCurrency,E]),(0,c.useEffect)(()=>{iR||(Q(!1),q(!1),W(!1))},[iR]);let iU=(0,c.useMemo)(()=>null==L?void 0:L.exposureBreakup,[null==L?void 0:L.exposureBreakup]),iX=(0,c.useMemo)(()=>null==L?void 0:L.itinerary.locale,[null==L?void 0:L.itinerary.locale]),iG=(0,c.useMemo)(()=>{var i;return"in"===iX&&(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.booking)&&(null==F?void 0:F.loggedIn)&&(0,ib.P)({permissions:null==F?void 0:F.permissions,key:iT.iI})},[iX,null==L?void 0:null===(n=L.itinerary)||void 0===n?void 0:n.booking,null==F?void 0:F.loggedIn,null==F?void 0:F.permissions]),i0=(0,c.useCallback)((i,e)=>{var n,t;(0,iS.Z)("/customize/".concat(null==L?void 0:null===(n=L.itinerary)||void 0===n?void 0:n.regionCode,"/inclusions/ab-card/").concat(i,"/").concat(e,"/").concat(null==L?void 0:null===(t=L.itinerary)||void 0===t?void 0:t.itineraryId))},[null==L?void 0:null===(o=L.itinerary)||void 0===o?void 0:o.itineraryId,null==L?void 0:null===(r=L.itinerary)||void 0===r?void 0:r.regionCode]),i1=(0,c.useCallback)(i=>{var e,n;(0,iS.Z)("/customize/".concat(null==L?void 0:null===(e=L.itinerary)||void 0===e?void 0:e.regionCode,"/inclusions/ab-card/").concat(i,"/").concat(null==L?void 0:null===(n=L.itinerary)||void 0===n?void 0:n.itineraryId))},[null==L?void 0:null===(v=L.itinerary)||void 0===v?void 0:v.itineraryId,null==L?void 0:null===(f=L.itinerary)||void 0===f?void 0:f.regionCode]),i2=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.flightCostings)||void 0===i?void 0:i.costingById)||{}},[L]),i5=(0,c.useMemo)(()=>(null==L?void 0:L.allFlightCostingRefs)||[],[L]),eu=(0,c.useMemo)(()=>{var i;return!!(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.flightsBlocked)},[L]),eg=(0,c.useMemo)(()=>{var i;return!!(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.booking)},[L]),eh=(0,c.useMemo)(()=>{var i;return null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.landPackageBooked},[L]),ep=(0,c.useMemo)(()=>{var i,e;return(null==X?void 0:null===(i=X.alertMessages)||void 0===i?void 0:null===(e=i.FLIGHT)||void 0===e?void 0:e.alerts)||{}},[X]),ev=(0,c.useMemo)(()=>{var i;return(null==L?void 0:null===(i=L.customCostings)||void 0===i?void 0:i.filter(i=>(null==i?void 0:i.entity)==="FLIGHTS"))||[]},[null==L?void 0:L.customCostings]),ex=(0,c.useMemo)(()=>{let i=null==L?void 0:L.internationalFlightPlaceHolder;if(null==i||0===Object.keys(i).length)return null;let{identifier:e,onwardDepartureCity:n,onwardArrivalCity:t}=i;return e&&n&&t?i:null},[L]),em=(0,c.useMemo)(()=>{var i;return(null==it?void 0:null===(i=it.categorizedImages)||void 0===i?void 0:i.Experiences)?null==it?void 0:it.categorizedImages.Experiences.reduce((i,e)=>(i[e.type]||(i[e.type]=[]),i[e.type].push(e),i),{}):{}},[null==it?void 0:it.categorizedImages]),ef=(0,c.useMemo)(()=>(null==L?void 0:L.allFlightCostingRefs)?L.allFlightCostingRefs.map(i=>{var e,n,t;let o=null==L?void 0:null===(e=L.flightCostings)||void 0===e?void 0:e.costingById[i];if(o)return{date:null===(n=o.flightSearchQueries)||void 0===n?void 0:n[0].departureDate,airportCode:null===(t=o.flightSearchQueries)||void 0===t?void 0:t[0].departureAirportCode,entityType:o.entityType,airlineCode:o.airlineCode,status:o.status,source:o.sourceProvider}}):[],[L]),ey=(0,c.useMemo)(()=>(null==L?void 0:L.allHotelCostingRefs)?null==L?void 0:L.allHotelCostingRefs.map(i=>{var e;let n=null==L?void 0:null===(e=L.hotelCostings)||void 0===e?void 0:e.costingById[i];if(n){let t=[];if(n.roomsInHotel){for(let o of n.roomsInHotel)if(o.hotelAddOns){let l=o.hotelAddOns.filter(i=>!0===i.selected);l.forEach(i=>{t.push(i.id)})}}return{date:n.checkInDate,cityId:n.cityId,entityType:n.entityType,entityId:n.hotelCode,status:n.status,source:n.sourceProvider,hotelAddonId:t}}}):[],[L]),e$=(0,c.useMemo)(()=>(null==L?void 0:L.allVisaCostingRefs)?null==L?void 0:L.allVisaCostingRefs.map(i=>{var e,n;let t=null===(e=L.visaCostings)||void 0===e?void 0:e.costingById[i];
1if(t)return{country:t.country,visaClass:t.visaClass,entityId:t.identifier,date:t.dateMillis&&new Date(t.dateMillis).toISOString().split("T")[0],entityType:t.entityType,status:null===(n=L.visaCostings)||void 0===n?void 0:n.costingById[i].status,source:t.sourceProvider}}):[],[L]),eC=(0,c.useMemo)(()=>{var i;return(0,ea.Z)(null==L?void 0:null===(i=L.costingConfiguration)||void 0===i?void 0:i.hotelGuestRoomConfigurations)},[null==L?void 0:null===(y=L.costingConfiguration)||void 0===y?void 0:y.hotelGuestRoomConfigurations]);(0,c.useEffect)(()=>{let i=localStorage.getItem("newItinerary");if(L&&"true"===i){var e,n,t,o,l,s;let r={itineraryId:iz||"",itineraryVersion:(null==L?void 0:L.version)||null,selectedCombinationSoldOut:null,leadSource:(0,iP.L1)({router:O,lastLocation:{pathname:O.asPath}}),userType:null==F?void 0:F.userType,itinerary:{hotel:ey,flight:ef,visa:e$},flightCost:null==L?void 0:null===(e=L.itinerary)||void 0===e?void 0:null===(n=e.costs)||void 0===n?void 0:null===(t=n.intlFlightCosts)||void 0===t?void 0:t.totalCost,landCost:null==L?void 0:null===(o=L.itinerary)||void 0===o?void 0:null===(l=o.costs)||void 0===l?void 0:null===(s=l.landCosts)||void 0===s?void 0:s.totalCost,currency:(null==L?void 0:L.displayCurrency)||"INR",totalPax:eC,unBundledItinerary:null==L?void 0:L.itinerary.unBundledItinerary};(0,iD.L9W)(iD.x3x,r,F||void 0),localStorage.setItem("newItinerary","false")}},[L,iz,O,ey,e$,ef,F,eC]),(0,c.useEffect)(()=>{var i,e,n,t;let o=(null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:null===(e=i.costs)||void 0===e?void 0:null===(n=e.landCosts)||void 0===n?void 0:n.totalCost)||0;(0,ed.j)(o,L,null===(t=O.query)||void 0===t?void 0:t.fromPdf,F||void 0)},[L,null===(b=O.query)||void 0===b?void 0:b.fromPdf,F]);let ej=(0,c.useMemo)(()=>(null==L?void 0:L.highlights)||[],[null==L?void 0:L.highlights]),ew=(0,c.useMemo)(()=>(null==L?void 0:L.resortHighlightText)||"",[L]);(0,c.useEffect)(()=>{let i=()=>{var i;let e=null===(i=document.getElementById("price-cta-wrapper"))||void 0===i?void 0:i.getBoundingClientRect().bottom;e&&(e<=120?is(!0):is(!1))};return window&&window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]);let eI=i=>{id(i.status===h.default.STATUS_FIXED)},eS=(0,c.useMemo)(()=>{var i;return(null==L?void 0:L.iterCities)?(null==L?void 0:L.itinerary.costed)?(null==L?void 0:L.isStaleCost)?(0,t.jsx)(i9.Z,{}):(0,t.jsxs)(l.sg,{css:{gap:"$12i","@lg":{paddingBottom:"$12i"}},children:[(0,t.jsx)(i4.Z,{itineraryInfo:L,setShowMenuMobile:i=>G(e=>({...e,showMenuMobile:i})),onGetOtp:iM,onVerifyOtp:iL}),(0,t.jsx)(l.xu,{css:{display:"none","@lg":{display:"block"}},children:(0,t.jsx)(ip.Z,{itineraryTitle:iV,isShared:null==L?void 0:null===(i=L.itinerary)||void 0===i?void 0:i.shared,onVerifyOtp:iL,onGetOtp:iM})})]}):(0,t.jsx)(i7.Z,{}):null},[L,iV,iM,iL,G]);return(0,t.jsxs)(ic.Z,{children:[(0,t.jsxs)(l.sg,{css:{width:"100%",backgroundColor:"$custom32"},children:[(0,t.jsx)(eb,{}),L?(0,t.jsx)(h.default,{enabled:!0,top:0,innerZ:102,onStateChange:eI,children:(0,t.jsx)(ia.ZP,{itineraryInfo:L,showSticky:ir,showTitle:ir,hidePriceSection:!il})}):null,(0,t.jsx)(l.xu,{css:{display:"flex",marginTop:"$8i","@lg":{display:"none"}},children:(0,t.jsx)(ek,{nights:null==L?void 0:null===(S=L.itinerary)||void 0===S?void 0:S.nights,name:(null==it?void 0:it.name)||"",stars:(null==it?void 0:it.stars)||0,atoll:(null==it?void 0:it.atoll)||"",minsToAirport:(null==it?void 0:it.minsToAirport)||0})}),(0,t.jsxs)(I.Z,{css:{display:"flex",justifyContent:"space-between"},children:[(0,t.jsxs)(l.sg,{css:{width:"100%",gap:"$20i",paddingBottom:"10px","@lg":{width:"63%",overflow:"hidden",height:"auto",paddingTop:"$12i",paddingBottom:"70px",gap:"48px"}},children:[ej.length>0&&""!==ew?(0,t.jsxs)(l.sg,{css:{gap:"$8i",width:"100%"},children:[(0,t.jsx)(l.xv,{as:"h1",css:{fontSize:"$10i",fontWeight:"$bold",paddingLeft:"$7i","@lg":{fontSize:"$12i",lineHeight:"$16i",color:"rgba(0,0,0,.9)",padding:0}},children:"Resort Highlights"}),(0,t.jsx)(l.xv,{css:{marginTop:"0px",fontSize:"$8i",color:"$grey08",lineHeight:"1.5",paddingLeft:"$7i","@lg":{padding:0}},children:ew}),(0,t.jsx)(i3,{highlights:ej})]}):null,(0,t.jsx)(l.sg,{css:{gap:"$20i","@lg":{gap:"$24i"}},children:null==it?void 0:null===(T=it.roomsInHotel)||void 0===T?void 0:T.map((i,e)=>(0,t.jsxs)(l.sg,{css:{gap:"$20i","@lg":{gap:"$24i"}},children:[(0,t.jsx)(U,{name:ia.$X.Hotels,children:(0,t.jsxs)(l.sg,{css:{gap:"$8i","@lg":{gap:"$9i"}},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Stay"}),(0,t.jsx)(nc,{data:i,details:it,isBooked:eg,landPackageBooked:eh,itineraryInfo:L,onClickAddonLineItem:iB})]})}),(null==i?void 0:i.transferOptions)?(0,t.jsx)(U,{name:ia.$X.Transfers,children:it&&(0,t.jsx)(n7,{data:i,details:it,isBooked:eg,landPackageBooked:eh,index:e})}):null]},e))}),(0,t.jsx)(U,{name:ia.$X.Flights,children:(0,t.jsx)(J.Z,{flightCostings:i2,flightCostingRefs:i5,isBlocked:eu,isBooked:eg,alerts:ep,abFlightCostings:ev,showABCard:iG,onEditABCard:i0,onCreateABCard:i1,itineraryId:iz,itineraryInfo:L,initialFlightDummyInfo:ex,flightAliasId:null==L?void 0:null===(A=L.itinerary)||void 0===A?void 0:A.flightAliasId,onClickAddonLineItem:iB})}),(0,t.jsxs)(l.sg,{css:{gap:"$8i","@lg":{gap:"$9i"}},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Visa & Tax:"}),(0,t.jsx)(U,{name:ia.$X.VisaTax,children:(0,t.jsxs)(l.sg,{css:{backgroundColor:"white",gap:"$8i",padding:"$8i",borderRadius:"$5",border:"1px solid $grey100",overflow:"hidden"},children:[(0,t.jsxs)(l.sg,{css:{gap:"$4i"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$8i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontWeight:700,fontSize:"$9i",lineHeight:"$13i"}},children:"Visa for Maldives"}),(0,t.jsxs)(l.xu,{css:{marginLeft:"$8i"},children:[(0,t.jsx)("li",{style:{listStyleType:"disc"},children:(0,t.jsx)(l.xv,{css:{fontWeight:500,fontSize:"$7i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontSize:"$8i",lineHeight:"$13i"}},children:"The IMUGA form has to be filled 2-3 days before departure to Maldives, mandatorily."})}),(0,t.jsx)("li",{style:{listStyleType:"disc"},children:(0,t.jsx)(l.xv,{css:{fontWeight:500,fontSize:"$7i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontSize:"$8i",lineHeight:"$13i"}},children:"For Visa, youâll need submit your passport, 2 copies of flight, hotel vouchers and QR in IMUGA form."})})]})]}),(0,t.jsxs)(l.sg,{css:{gap:"$4i"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$8i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontSize:"$9i",lineHeight:"$13i"}},children:"Green Tax"}),(0,t.jsx)(l.xu,{css:{marginLeft:"$8i"},children:(0,t.jsx)("li",{style:{listStyleType:"disc"},children:(0,t.jsx)(l.xv,{css:{fontWeight:500,fontSize:"$7i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontSize:"$8i",lineHeight:"$13i"}},children:"Green Tax is a mandatory country tax. All resorts charge USD 12.00 per person, per night regardless of age. Please note that most resorts include green tax in their room rates and this will be included in your total itinerary price."})})})]}),(0,t.jsxs)(l.sg,{css:{gap:"$4i"},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$8i",lineHeight:"$13i",fontFamily:"$manrope","@lg":{fontWeight:700,lineHeight:"$13i"}},children:"Process after Immigration"}),(0,t.jsxs)(l.xu,{css:{marginLeft:"$8i"},children:[(0,t.jsx)("li",{style:{listStyleType:"disc"},children:(0,t.jsx)(l.xv,{css:{fontWeight:500,fontSize:"$7i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontWeight:500,fontSize:"$8i",lineHeight:"$13i"}},children:"Check your voucher for your resortâs counter number and visit that counter for your transfer."})}),(0,t.jsx)("li",{style:{listStyleType:"disc"},children:(0,t.jsx)(l.xv,{css:{fontSize:"$7i",lineHeight:"$13i",fontFamily:"$manrope",fontWeight:500,color:"$grey950","@lg":{fontSize:"$8i",lineHeight:"$13i"}},children:"If your voucher doesnât have a resort number, look out for a representative holding the placard of your resort name and reach out to them for transfer."})})]})]})]})})]}),(0,t.jsxs)(U,{name:ia.$X.More,children:[(0,t.jsx)(l.sg,{css:{"@lg":{padding:"0px",paddingLeft:"0px"}},children:(0,t.jsx)(l.sg,{css:{gap:"$4i",width:"100%"},children:Object.keys(em||{}).length>0?(0,t.jsx)(l.xu,{css:{paddingBottom:"$20i","@lg":{paddingBottom:"$24i"}},children:(0,t.jsx)(n_,{images:em,sectionName:"Experiences"})}):null})}),(0,t.jsxs)(l.sg,{css:{gap:"$8i","@lg":{paddingLeft:"0px",gap:"$9i"}},children:[(0,t.jsx)(l.X2,{css:{flexDirection:"row-reverse",justifyContent:"flex-end",paddingBottom:"$3"},children:(0,t.jsx)(l.xv,{as:"h2",css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Additional property highlights"})}),(0,t.jsx)(nP,{})]}),(0,t.jsxs)(l.sg,{children:[(null==it?void 0:it.amenityDisplayList)&&(0,t.jsxs)(l.sg,{css:{width:"100%",paddingTop:"$20i","@lg":{paddingTop:"$24i"}},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Amenities"}),(0,t.jsx)(iQ.Z,{data:(null==it?void 0:null===(M=it.amenityDisplayList)||void 0===M?void 0:M.map(i=>({name:i.amenityName,icon:nE(null==i?void 0:i.iconUrl)})))||[],isMobile:iJ.tq,showTitle:!1})]}),(0,t.jsxs)(l.sg,{css:{gap:"$8i",paddingTop:"$10i","@lg":{padding:"0 0",paddingTop:"$15i",gap:"$9i"}},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950","@lg":{fontSize:"$10i"}},children:"Overview"}),(0,t.jsx)(l.xv,{css:{fontSize:"$8i",lineHeight:"1.3",textAlign:"justify",fontFamily:"$manrope",color:"$grey900"},children:(null==it?void 0:it.overview)||""})]}),(null==iZ?void 0:iZ.length)?(0,t.jsxs)(l.sg,{css:{paddingTop:"$20i","@lg":{padding:"0 0",paddingTop:"$24i"}},children:[(0,t.jsx)(l.xv,{css:{fontWeight:700,fontSize:"$9i",lineHeight:"$13i",fontFamily:"$manrope",color:"$grey950",paddingBottom:"$2i","@lg":{fontSize:"$10i",paddingBottom:"$4i"}},children:"Frequently Asked Questions"}),iZ.map((i,e)=>(0,t.jsxs)(l.sg,{css:{gap:"$6i",padding:"$6i 0",borderBottom:e===iZ.length-1?"none":"1px solid $grey200","@lg":{padding:"$6i 0"}},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$7i",lineHeight:"$10i",fontWeight:"$bold",color:"$grey950",fontFamily:"$manrope",fontStyle:"normal","@lg":{fontSize:"$8i",lineHeight:"$14i"}},dangerouslySetInnerHTML:{__html:i.question}}),(0,t.jsx)(l.xv,{css:{fontSize:"$7i",lineHeight:"$12i",color:"$grey600",fontFamily:"$manrope",fontStyle:"normal",fontWeight:"$normal","@lg":{fontSize:"$8i",lineHeight:"$14i"}},dangerouslySetInnerHTML:{__html:i.answer}})]},e))]}):null]})]})]}),(0,t.jsx)(l.xu,{css:{display:"none","@lg":{display:"flex",width:"100%",position:"static",flexBasis:"30.33%",backgroundColor:"transparent",justifyContent:"flex-end",paddingTop:"$12i","& .sticky-outer-wrapper":{width:"100%"}}},children:(0,t.jsx)(h.default,{top:120,children:eS})})]}),(0,t.jsxs)(l.xu,{css:{width:"100%",position:"sticky",bottom:0,backgroundColor:"$white",height:"auto",zIndex:"$max","@lg":{display:"none"}},children:[L?(0,t.jsx)(l.xu,{css:{position:"absolute",top:"-56px",right:"0"},children:(0,t.jsx)(iK.Z,{itineraryInfo:L,setShowMenuMobile:i=>G(e=>({...e,showMenuMobile:i})),showGroupPlanning:!1})}):null,eS]})]}),(0,t.jsx)(C.Z,{headerText:"More Details",open:ih,toggleMenu:i=>G(e=>({...e,showMenuMobile:i})),contentCss:{padding:"0 $10i",height:"auto",maxHeight:"calc(80vh - 50px)"},children:(0,t.jsx)(ip.Z,{itineraryTitle:iV,isShared:null==L?void 0:null===(z=L.itinerary)||void 0===z?void 0:z.shared,onVerifyOtp:iL,onGetOtp:iM})}),(0,t.jsx)(en.Z,{}),(0,t.jsx)(iY.Z,{}),(0,t.jsx)(j.Z,{}),(0,t.jsx)(R.Z,{}),(0,t.jsx)(ee.Z,{}),(0,t.jsx)(i6.Z,{}),(0,t.jsx)(et.Z,{open:ix,setTogglePaymentModal:i=>G(e=>({...e,togglePaymentModal:i})),toggleMetod:iv,setToggleMetod:i=>G(e=>({...e,toggleMetod:i}))}),(0,t.jsx)(B.Z,{open:iu,setBetterCostModal:i=>G(e=>({...e,betterCostModal:i}))}),(0,t.jsx)(er.Z,{}),(0,t.jsx)(el.Z,{}),(0,t.jsx)(es.Z,{}),(0,t.jsx)(et.Z,{open:ix,setTogglePaymentModal:i=>G(e=>({...e,togglePaymentModal:i})),toggleMetod:iv,setToggleMetod:i=>G(e=>({...e,toggleMetod:i}))}),(0,t.jsx)(Z.default,{open:Y,setOpen:iH,skipAssignUser:!0,itineraryInfo:L}),(0,t.jsx)($.Z,{open:P,setOpen:iH}),(0,t.jsx)(k.default,{regionCode:"".concat(O.query.regionCode)}),(0,t.jsx)(ei.Z,{}),(0,t.jsx)(eo.Z,{}),ii?(0,t.jsx)(w.Z,{exposureBreakup:iU,open:ii,onCloseModal:i=>{ie(i),O.push({pathname:O.asPath.split("?")[0],query:{}},void 0,{shallow:!0})}}):null,(0,t.jsx)(i8.Z,{open:ig,setOpen:i=>G(e=>({...e,openAlertModal:i})),isAdmin:!!((null==F?void 0:F.loggedIn)&&(0,ib.P)({permissions:null==F?void 0:F.permissions,key:iT.Dp})),onConfirmChange:i_})]})},te=n(56538),tn=n(58303),tt=n(58430),to=n(84569);let tl=i=>{let{title:e,data:n}=i;return(0,t.jsxs)(l.xu,{children:[e&&n&&n.length>=1?(0,t.jsx)(l.xv,{css:{fontSize:"$9i",lineHeight:"$13i",fontWeight:"$bold",color:"$grey900",paddingBottom:"$10i",fontFamily:"$manrope","@lg":{fontWeight:"$bolder"}},children:e}):null,(0,t.jsx)(l.sg,{children:null==n?void 0:n.map((i,e)=>(0,t.jsxs)(l.sg,{css:{paddingBottom:e+1==(null==n?void 0:n.length)?0:"$6i",borderBottom:e+1==(null==n?void 0:n.length)?"none":"1px solid $grey200",paddingTop:0==e?0:"$6i"},children:[(0,t.jsx)(l.xv,{css:{fontSize:"$8i",lineHeight:"$12i",fontWeight:"$bold",color:"$grey12",fontFamily:"$manrope",paddingBottom:"$4i"},children:null==i?void 0:i.question}),(0,t.jsx)(l.xv,{css:{fontWeight:"$semiBold",color:"$grey12",fontSize:"$7i",lineHeight:"$11i",fontFamily:"$manrope"},dangerouslySetInnerHTML:{__html:null==i?void 0:i.answer}})]},e))})]})};var ts=n(31747);let tr=i=>{let{eventName:e,regionCode:n,isPageActive:t=!0,storageKey:o,itineraryId:l}=i,r=(0,c.useRef)(0),d=(0,c.useRef)(0),a=(0,c.useRef)(!1),u=(0,s.Dv)(ij.s1),g=!(0,ib.P)({permissions:null==u?void 0:u.permissions,key:iT.Dp}),h=o||"itinerary_time_".concat(e),p=new Set(["mle","fra","che","nor","fin"]),v=p.has(n||"")&&g;(0,c.useEffect)(()=>
1{if(!v)return;let i=sessionStorage.getItem(h);if(i)try{let e=JSON.parse(i);d.current=e.totalTime||0}catch(n){console.warn("Failed to parse saved time for ".concat(h,":"),n)}},[v,h]);let x=(0,c.useCallback)(i=>{if(!v)return;let e={totalTime:i,lastUpdated:Date.now()};sessionStorage.setItem(h,JSON.stringify(e))},[v,h]),m=(0,c.useCallback)(()=>{!a.current&&t&&v&&(r.current=Date.now(),a.current=!0)},[t,v]),f=(0,c.useCallback)(()=>{if(a.current&&r.current&&v){let i=Date.now()-r.current;d.current+=i,x(d.current),(0,iD.L9W)(e,{total_time_ms:d.current,itinerary_id:l}),a.current=!1}},[x,v,e]);(0,c.useEffect)(()=>{if(v)return t?m():f(),()=>{f()}},[t,m,f,v]),(0,c.useEffect)(()=>{if(!v)return;let i=()=>{document.hidden?f():t&&m()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[t,m,f,v]),(0,c.useEffect)(()=>{if(!v)return;let i=()=>{f()};return window.addEventListener("beforeunload",i),()=>{window.removeEventListener("beforeunload",i)}},[f,v]);let y=(0,c.useCallback)(()=>d.current,[]),$=(0,c.useCallback)(()=>{v&&(d.current=0,a.current=!1,r.current=0,sessionStorage.removeItem(h))},[v,h]);return{startTracking:m,stopTracking:f,getTotalTime:y,resetTracking:$,shouldTrack:v}};var td=n(14176);let ta=g.ZP.Element,tc=[{imageUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon1.png",whyChooseUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon1.png",title:"1 Million+ Itineraries Curated",subTitle:"Across 100+ destinations in the past 12 years",id:0},{imageUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon2.png",whyChooseUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon2.png",title:"1,50,000+ Holidays",subTitle:"From honeymoons to family getaways, customised with care and delight.",id:1},{imageUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon3.png",whyChooseUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon3.png",title:"Rated 4.6â on Google",subTitle:"8000+ reviews from travellers who had a sooper hit holiday.",id:2},{imageUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon4.png",whyChooseUrl:"https://oceanjar-new.s3.ap-south-1.amazonaws.com/images/Icon4.png",title:"24x7 Customer Support",subTitle:"On-trip help when you need it. No bots, just real people.",id:3}],tu=()=>{var i,e,n,r,g,F,H,E,D,P,W,O,V,N,_,q,U,X,K,G,Y,J,Q,ii,ie,it,io,il,is,ir,id,iu,ih,iv,ix,im,iw,ik,iI,iA,iR,iB,iL,iF,iH,iE,iW;let iO=(0,iC.Z)(),iV=(0,s.b9)(ij.ui),iN=(0,s.b9)(ij.f6),[iJ,iQ]=(0,s.KO)(ij.As),[i0,i1]=(0,c.useState)(!1),[i2,i5]=(0,c.useState)(!1),[i3,eu]=(0,c.useState)(!1),[eg,eh]=(0,c.useState)(!1),[ep,ev]=(0,s.KO)(ij.s1),[ex,em]=(0,s.KO)(ij.iD),{getOtpRequestAsync:ef}=(0,p.J)(),{updateOtpAsync:ey}=(0,m.I)(),{getUserDetailsAsync:e$}=(0,v.s)(),[eC,ej]=(0,c.useState)(!1),ew=(0,i$.Z)(iO),{betterCostModal:ek,openAlertModal:eb,showMenuMobile:eI,showModal:eS,toggleMetod:eT,togglePaymentModal:eA}=iJ,eR=ec.X.api_url,eM=(0,ib.P)({permissions:null==ep?void 0:ep.permissions,key:iT.St}),[ez,eZ]=(0,c.useState)(!1),[eB,eL]=(0,s.KO)(ij.LL),eF=i=>{eZ(i.status===h.default.STATUS_FIXED)},eH=(0,a.useRouter)(),eE=(0,c.useMemo)(()=>{var i;return null===(i=eH.query)||void 0===i?void 0:i.m},[eH]),eD=(0,c.useMemo)(()=>{var i;return null===(i=eH.query)||void 0===i?void 0:i.flightPnr},[eH]),eP=(0,c.useMemo)(()=>{var i;return null===(i=eH.query)||void 0===i?void 0:i.exposure},[eH]),[eW]=(0,s.KO)(ij.B4),eO=(0,c.useMemo)(()=>{var i;return(null===(i=eH.query.itineraryId)||void 0===i?void 0:i.toString())||""},[eH.query]),{sendCustomerMailQuoteAsync:eV}=(0,x.c)(),[eN,e_]=(0,c.useState)(!1),eq=(0,c.useMemo)(()=>null==iO?void 0:iO.exposureBreakup,[null==iO?void 0:iO.exposureBreakup]),eU=(0,s.Dv)(ij.bW),eX=(0,iy.Z)();tr({eventName:(null==iO?void 0:iO.version)==="SPEEDBOAT"?"time_spent_in_speedboat_itinerary":"time_spent_in_day-wise_itinerary",isPageActive:!0,storageKey:(null==iO?void 0:iO.version)==="SPEEDBOAT"?"speedboat_itinerary_time":"main_itinerary_time",regionCode:null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:i.regionCode,itineraryId:null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:e.itineraryId}),(0,c.useEffect)(()=>{var i;(null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:i.regionCode)&&localStorage.setItem("region_code",iO.itinerary.regionCode)},[null==iO?void 0:null===(n=iO.itinerary)||void 0===n?void 0:n.regionCode]),(0,c.useEffect)(()=>{iN((null==iO?void 0:iO.displayCurrency)||"INR"),eh(void 0!=eD),e_(void 0!=eP)},[eD,eP,null==iO?void 0:iO.displayCurrency,iN]),(0,c.useEffect)(()=>{"scrollRestoration"in history&&"manual"!==history.scrollRestoration&&(history.scrollRestoration="manual")},[]),(0,c.useEffect)(()=>{let i=()=>{sessionStorage.setItem("scrollPositionItineraryPage",window.scrollY.toString())};
1return eH.events.on("routeChangeStart",i),()=>{eH.events.off("routeChangeStart",i)}},[eH.events]),(0,c.useEffect)(()=>{iO&&"scrollPositionItineraryPage"in sessionStorage&&(window.scrollTo({top:Number(sessionStorage.getItem("scrollPositionItineraryPage"))}),sessionStorage.removeItem("scrollPositionItineraryPage"))},[iO]);let eK=(0,c.useCallback)(()=>{eH.push({pathname:eH.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},[eH]),eG=(0,c.useCallback)(function(){let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=eH.query;i&&e.redirectTo?eH.push(e.redirectTo):eH.push({pathname:eH.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},[eH]),eY=(0,c.useCallback)(async()=>{if((null==ep?void 0:ep.loggedIn)&&!(null==ep?void 0:ep.email)){let i={userId:null==ep?void 0:ep.userId,newEmail:null==ex?void 0:ex.email},e=await ef(i);"SUCCESS"===e.status?em({...ex,enableButton:!(null==ex?void 0:ex.enableButton),showOtp:!(null==ex?void 0:ex.showOtp),message:"",response:null==e?void 0:e.data}):em({...ex,enableButton:!1,showOtp:!1,message:null==e?void 0:e.message})}},[ef,em,ep,ex]),eJ=(0,c.useCallback)(async i=>{var e;if((null==ex?void 0:ex.response)!==null&&(null==ex?void 0:null===(e=ex.otp)||void 0===e?void 0:e.length)===6){let n={...null==ex?void 0:ex.response,otp:null==ex?void 0:ex.otp,email:null==ex?void 0:ex.email},t=await ey(n);if("SUCCESS"===t.status&&(null==t?void 0:t.message)==="Update successful")try{let o=await e$();"SUCCESS"===o.status&&o.data&&(o.data.anonymousId&&localStorage.setItem("user-anonymous-id",o.data.anonymousId),ev(o.data),em({...ex,otpError:!1,otpMessage:""}),i?eH.push(eX?"/things-to-know-before-book/".concat(eO):"/must-know/".concat(eO)):eH.reload())}catch(l){}else em({...ex,otpError:!0,otpMessage:null==t?void 0:t.message})}},[ex,ey,e$,ev,em,eH,eO,eX]),eQ=(0,c.useMemo)(()=>null==iO?void 0:iO.similarItinerary,[null==iO?void 0:iO.similarItinerary]),e0=(0,c.useMemo)(()=>null==iO?void 0:iO.differenctCityItinerary,[null==iO?void 0:iO.differenctCityItinerary]),e1=(0,c.useMemo)(()=>null==iO?void 0:iO.unityThemes,[null==iO?void 0:iO.unityThemes]);(0,c.useEffect)(()=>{i0||"gcm"!==eE?i2||"signin"!==eE?i2||"cbr"!==eE?eC||"itinerary-lineItem-preview"!==eE||ej(!0):i5(!0):eu(!0):i1(!0)},[eH,eE,i0,i2,eC]),(0,c.useEffect)(()=>{eE||(i1(!1),i5(!1),eu(!1),ej(!1))},[eE]);let{galleryImages:e2,isCosted:e5,isStaleCost:e3,itineraryTitle:e6}=(0,c.useMemo)(()=>({isCosted:null==iO?void 0:iO.isCosted,isStaleCost:null==iO?void 0:iO.isStaleC
1ost,galleryImages:(null==iO?void 0:iO.galleryImages)||[],itineraryTitle:(0,td.Z)(iO)||""}),[iO]),e8=(0,c.useMemo)(()=>(0,ib.P)({key:iT.nD,permissions:null==ep?void 0:ep.permissions}),[null==ep?void 0:ep.permissions]),e4=(0,c.useMemo)(()=>{var i,e,n,t,o,l,s;let r=[];return(null==iO?void 0:iO.itinerary)&&((null==iO?void 0:null===(i=iO.unityDetailsVO)||void 0===i?void 0:i.videos)?null===(n=(null==iO?void 0:null===(t=iO.unityDetailsVO)||void 0===t?void 0:t.videos)||[])||void 0===n||n.map(i=>{r.push({link:i,video:!0})}):(null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:e.videos)&&(null==iO||null===(o=iO.itinerary)||void 0===o||null===(l=o.videos)||void 0===l||l.map(i=>{r.push({link:i,video:!0})}))),null==e2||e2.forEach(i=>{let e=(0,e9.Z)("".concat(i),"w=530&h=260&fit=crop");r.push({link:e,video:!1})}),(null==e2?void 0:e2.length)||null==iO||null===(s=iO.iterCities)||void 0===s||s.map(i=>{let e=(0,e9.Z)("".concat(null==i?void 0:i.cityImages),"w=530&h=260&fit=crop");r.push({link:e,video:!1})}),r},[e2,iO]);(0,c.useEffect)(()=>{if(null==iO?void 0:iO.iterCities){var i;let e=null==iO?void 0:null===(i=iO.iterCities)||void 0===i?void 0:i.reduce((i,e)=>i.concat(e.days),[]),n=null==e?void 0:e.reduce((i,e)=>i.concat(e.slots),[]),t=null==n?void 0:n.reduce((i,e)=>{if("ACTIVITY"===e.type||"ACTIVITY_WITH_TRANSFER"===e.type){let n={...e,cityName:d()(null==iO?void 0:iO.cityById,"".concat(e.cityId,".cityName")),removed:!1};return[...i,n]}return i},[]);iV(t)}},[iO,iV]),(0,c.useEffect)(()=>{eb?document.body.style.overflow="hidden":document.body.style.overflow="visible"},[eb]);let e7=(0,c.useCallback)(i=>{if(iQ(i=>({...i,showMenuMobile:!1})),eH.query.m!==i){var e;let n=null===(e=eH.asPath)||void 0===e?void 0:e.split("?")[0];eH.push({pathname:n,query:{m:i}},void 0,{shallow:!0})}},[eH,iQ]),ni=(0,c.useCallback)(async()=>{iQ(i=>({...i,showMenuMobile:!1}));try{var i;let e=await eV({itineraryId:eO.toString(),email:(null==ep?void 0:null===(i=ep.email)||void 0===i?void 0:i.toString())||""});(null==e?void 0:e.emailSent)===!0&&o.ZP.success("Email sent successfully! Please check your inbox.")}catch(n){}},[eO,eV,iQ,null==ep?void 0:ep.email]),ne=(0,c.useCallback)(()=>{"shareItinerary"===eW?e7("share-itinerary"):"mailThisQuote"===eW?e8?ni():e7("share-email-quote"):"sharePdf"===eW?window.open("https://wa.me/".concat(null==ep?void 0:ep.countryPhoneCode).concat(null==ep?void 0:ep.mobileNumber,"?text=Unwrap your customized itinerary ").concat(e6?"for ".concat(e6):"","\n ").concat(eR,"cost/").concat(eO,"/createpdf/v3")):"downloadPdf"===eW&&window.open("".concat(ec.X.api_url,"cost/").concat(eO,"/downloadItineraryPdf?land-package=",!0),"_blank")},[eR,eW,ni,e7,e8,eO,e6,ep]),nn=(0,c.useMemo)(()=>{var i,e;return!!(null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:i.booking)||!!(null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:e.landPackageBooked)},[iO]),nt=(0,c.useMemo)(()=>{var i;return null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:i.landPackageBooked},[iO]),no=(0,c.useMemo)(()=>{var i;return null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:i.intlFlightBooked},[iO]),{AddonsData:nl,AddonHotelCount:ns,AddonActivityCount:nr}=(0,c.useMemo)(()=>{let i,e;let n=[];if(iO){var t,o,l,s,r,d,a,c;if(nn){let u=(null==iO?void 0:null===(t=iO.addons)||void 0===t?void 0:null===(o=t.hotelAddons)||void 0===o?void 0:o.filter(i=>i.addonSelected))||[],g=(null==iO?void 0:null===(l=iO.addons)||void 0===l?void 0:null===(s=l.activityAddons)||void 0===s?void 0:s.filter(i=>i.addonSelected))||[];i=null==u?void 0:u.length,e=null==g?void 0:g.length,n.push(...u,...g)}else{let h=null==iO?void 0:null===(r=iO.addons)||void 0===r?void 0:null===(d=r.hotelAddons)||void 0===d?void 0:d.reduce((i,e)=>(e.addonSelected?(i.selected.push(e),i.count+=1):"SUCCESS"===e.status&&(i.unSelected.push(e),i.count+=1),i),{selected:[],unSelected:[],count:0}),p=null==iO?void 0:null===(a=iO.addons)||void 0===a?void 0:null===(c=a.activityAddons)||void 0===c?void 0:c.reduce((i,e)=>(e.addonSelected?(i.selected.push(e),i.count+=1):"UNAVAILABLE"!==e.status&&(i.unSelected.push(e),i.count+=1),i),{selected:[],unSelected:[],count:0});i=null==h?void 0:h.count,e=null==p?void 0:p.count,(null==h?void 0:h.selected)&&n.push(...h.selected),(null==p?void 0:p.selected)&&n.push(...p.selected),(null==h?void 0:h.unSelected)&&n.push(...h.unSelected),(null==p?void 0:p.unSelected)&&n.push(...p.unSelected)}}return{AddonsData:n,AddonHotelCount:i,AddonActivityCount:e}},[nn,iO]),nd=(0,c.useMemo)(()=>(null==iO?void 0:iO.faq)&&(null==iO?void 0:iO.faq.length)?null==iO?void 0:iO.faq.filter(i=>i.answer&&i.question):[],[null==iO?void 0:iO.faq]),na=(0,c.useMemo)(()=>{var i,e,n,t;return null===(i=null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:null===(n=e.discounts)||void 0===n?void 0:null===(t=n.costings)||void 0===t?void 0:t.find(i=>"UNITY"===i.discount))||void 0===i?void 0:i.expiresOn},[null==iO?void 0:null===(r=iO.itinerary)||void 0===r?void 0:null===(g=r.discounts)||void 0===g?void 0:g.costings]),{showImmersiveVideo:nc,videoBannerData:nu}=(0,c.useMemo)(()=>
1{if(null==iO?void 0:iO.immersiveVideoData){let i=(0,L.X)(null==iO?void 0:iO.immersiveVideoData,!!eH.query.preview);if(console.log("Immersive video validation:",{immersiveVideoData:null==iO?void 0:iO.immersiveVideoData,validationResult:i}),i.valid)return{showImmersiveVideo:!0,videoBannerData:null==iO?void 0:iO.immersiveVideoData}}return{showImmersiveVideo:!1,videoBannerData:{}}},[null==iO?void 0:iO.immersiveVideoData,eH.query.preview]),ng=(0,c.useMemo)(()=>(null==iO?void 0:iO.allFlightCostingRefs)?iO.allFlightCostingRefs.map(i=>{var e,n,t,o;let l=null==iO?void 0:null===(e=iO.flightCostings)||void 0===e?void 0:e.costingById[i];if(l)return{date:null===(n=l.flightSearchQueries)||void 0===n?void 0:n[0].departureDate,airportCode:null===(t=l.flightSearchQueries)||void 0===t?void 0:t[0].departureAirportCode,entityType:l.entityType,airlineCode:l.airlineCode,status:null===(o=iO.flightCostings)||void 0===o?void 0:o.costingById[i].status,source:l.sourceProvider}}):[],[iO]),nh=(0,c.useMemo)(()=>(null==iO?void 0:iO.allHotelCostingRefs)?null==iO?void 0:iO.allHotelCostingRefs.map(i=>{var e,n;let t=null==iO?void 0:null===(e=iO.hotelCostings)||void 0===e?void 0:e.costingById[i];if(t)return{date:t.checkInDate,cityId:t.cityId,entityType:t.entityType,entityId:t.hotelCode,status:null===(n=iO.hotelCostings)||void 0===n?void 0:n.costingById[i].status,source:t.sourceProvider}}):[],[iO]),np=(0,c.useMemo)(()=>(null==iO?void 0:iO.allActivityCostingRefs)?null==iO?void 0:iO.allActivityCostingRefs.map(i=>{var e,n;let t=null===(e=iO.activityCostings)||void 0===e?void 0:e.costingById[i];if(t)return{entityId:t.activityId,month:t.mon,day:t.day.trim(),entityType:t.entityType,status:null===(n=iO.activityCostings)||void 0===n?void 0:n.costingById[i].status,source:t.sourceProvider}}):[],[iO]),nv=(0,c.useMemo)(()=>{let i=[];return(null==iO?void 0:iO.allTransferCostingRefs)&&iO.allTransferCostingRefs.forEach(e=>{var n;let t=null==iO?void 0:null===(n=iO.transferCostings)||void 0===n?void 0:n.costingById[e];t&&i.push({mode:t.mode,cityId:t.fromCityId,entityType:t.entityType,year:t.year,month:t.mon,day:t.day,status:t.status,source:t.sourceProvider})}),(null==iO?void 0:iO.allRentalCostingRefs)&&iO.allRentalCostingRefs.forEach(e=>{var n;let t=null==iO?void 0:null===(n=iO.rentalCarCostings)||void 0===n?void 0:n.costingById[e];t&&i.push({entityType:t.entityType,cityId:t.pickupCityId,status:t.status||"",year:t.year,month:t.mon,day:t.day,source:t.sourceProvider})}),(null==iO?void 0:iO.allTrainCostingRefs)&&iO.allTrainCostingRefs.forEach(e=>{var n;let t=null==iO?void 0:null===(n=iO.trainCostings)||void 0===n?void 0:n.costingById[e];t&&i.push({entityType:t.entityType,cityId:t.fromCityId,status:t.status,year:t.year,month:t.mon,day:t.day,entityId:t.trainId,source:t.sourceProvider})}),(null==iO?void 0:iO.allFerryCostingRefs)&&iO.allFerryCostingRefs.forEach(e=>{var n;let t=null==iO?void 0:null===(n=iO.ferryCostings)||void 0===n?void 0:n.costingById[e];t&&i.push({year:t.year,month:t.mon,day:t.day,cityId:t.fromCityId,entityType:null==t?void 0:t.entityType,status:t.status,entityId:null==t?void 0:t.ferryCostId,source:t.sourceProvider})}),i},[iO]),nx=(0,c.useMemo)(()=>(null==iO?void 0:iO.allVisaCostingRefs)?null==iO?void 0:iO.allVisaCostingRefs.map(i=>{var e,n;let t=null===(e=iO.visaCostings)||void 0===e?void 0:e.costingById[i];
1if(t)return{country:t.country,visaClass:t.visaClass,entityId:t.identifier,date:t.dateMillis&&new Date(t.dateMillis).toISOString().split("T")[0],entityType:t.entityType,status:null===(n=iO.visaCostings)||void 0===n?void 0:n.costingById[i].status,source:t.sourceProvider}}):[],[iO]),nm=(0,c.useMemo)(()=>(null==iO?void 0:iO.allVisaCostingRefs)?null==iO?void 0:iO.allVisaCostingRefs.map(i=>{var e,n;let t=null===(e=iO.insuranceCosting)||void 0===e?void 0:e.costingById[i];if(t)return{countries:t.countries,entityId:t.planId,insuranceName:t.plan,insuranceRegion:t.insuranceRegion,day:t.fromDate,status:null===(n=iO.insuranceCosting)||void 0===n?void 0:n.costingById[i].status,source:t.sourceProvider}}):[],[iO]),nf=(0,c.useMemo)(()=>{var i;return(0,ea.Z)(null==iO?void 0:null===(i=iO.costingConfiguration)||void 0===i?void 0:i.hotelGuestRoomConfigurations)},[null==iO?void 0:null===(F=iO.costingConfiguration)||void 0===F?void 0:F.hotelGuestRoomConfigurations]);(0,c.useEffect)(()=>{let i=localStorage.getItem("newItinerary");if(iO&&"true"===i){var e,n,t;let o={itineraryId:eO||"",itineraryVersion:(null==iO?void 0:iO.version)||null,selectedCombinationSoldOut:ew&&(null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:e.selectedCombinationSoldOut)||null,leadSource:(0,iP.L1)({router:eH,lastLocation:{pathname:eH.asPath}}),userType:null==ep?void 0:ep.userType,itinerary:{hotel:nh,activity:np,transfer:nv,flight:ng,visa:nx,insurance:nm},flightCost:null===(n=null==iO?void 0:iO.itinerary.costs)||void 0===n?void 0:n.intlFlightCosts.totalCost,landCost:null===(t=null==iO?void 0:iO.itinerary.costs)||void 0===t?void 0:t.landCosts.totalCost,currency:(null==iO?void 0:iO.displayCurrency)||"INR",totalPax:nf,unBundledItinerary:null==iO?void 0:iO.itinerary.unBundledItinerary};(0,iD.L9W)(iD.x3x,o,ep||void 0),localStorage.setItem("newItinerary","false")}},[iO,eO,eH,nh,nx,ng,ep,nf,np,nv,nm,ew]),(0,c.useEffect)(()=>{var i,e,n,t;let o=(null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:null===(e=i.costs)||void 0===e?void 0:null===(n=e.landCosts)||void 0===n?void 0:n.totalCost)||0;(0,ed.j)(o,iO,null===(t=eH.query)||void 0===t?void 0:t.fromPdf,ep||void 0)},[iO,null===(H=eH.query)||void 0===H?void 0:H.fromPdf,ep]);let ny=()=>{var i;let e=null===(i=document.getElementById("price-cta-wrapper"))||void 0===i?void 0:i.getBoundingClientRect().bottom;e&&(e<=120?eL(!0):eL(!1))},n$=()=>{var i,e;eH.push({pathname:null===(i=eH.asPath)||void 0===i?void 0:i.split("?")[0],query:{m:"gcm",rcName:null==iO?void 0:null===(e=iO.itinerary)||void 0===e?void 0:e.regionCode,isUnity:ew}},void 0,{shallow:!0})};(0,c.useEffect)(()=>(window&&window.addEventListener("scroll",ny),()=>window.removeEventListener("scroll",ny)),[]),(0,c.useEffect)(()=>{var i,e,n,t,o,l,s,r,d,a,c;if((null==iO?void 0:null===(i=iO.itinerary)||void 0===i?void 0:null===(e=i.costs)||void 0===e?void 0:e.landCosts)&&eO)try{let u={itinerary_id:eO.toString(),itineraryVersion:(null==iO?void 0:iO.version)||null,grossProfit:null==iO?void 0:null===(n=iO.itinerary)||void 0===n?void 0:null===(t=n.costs)||void 0===t?void 0:null===(o=t.landCosts)||void 0===o?void 0:o.grossProfit,profitPercentage:null==iO?void 0:null===(l=iO.itinerary)||void 0===l?void 0:null===(s=l.costs)||void 0===s?void 0:null===(r=s.landCosts)||void 0===r?void 0:r.margin,totalCost:null==iO?void 0:null===(d=iO.itinerary)||void 0===d?void 0:null===(a=d.costs)||void 0===a?void 0:null===(c=a.landCosts)||void 0===c?void 0:c.totalCost},g="land_margin_".concat(eO),h=localStorage.getItem(g);if(h)try{let p=JSON.parse(h),v=p.grossProfit!==u.grossProfit||p.profitPercentage!==u.profitPercentage||p.totalCost!==u.totalCost;v&&(localStorage.setItem(g,JSON.stringify(u)),(0,iD.L9W)(iD.PSZ,u,ep||void 0))}catch(x){localStorage.setItem(g,JSON.stringify(u)),(0,iD.L9W)(iD.PSZ,u,ep||void 0)}else localStorage.setItem(g,JSON.stringify(u)),(0,iD.L9W)(iD.PSZ,u,ep||void 0)}catch(m){console.warn("Land Margin Tracker Error:",m)}},[null==iO?void 0:null===(E=iO.itinerary)||void 0===E?void 0:null===(D=E.costs)||void 0===D?void 0:null===(P=D.landCosts)||void 0===P?void 0:P.grossProfit,null==iO?void 0:null===(W=iO.itinerary)||void 0===W?void 0:null===(O=W.costs)||void 0===O?void 0:null===(V=O.landCosts)||void 0===V?void 0:V.margin,null==iO?void 0:null===(N=iO.itinerary)||void 0===N?void 0:null===(_=N.costs)||void 0===_?void 0:null===(q=_.landCosts)||void 0===q?void 0:q.totalCost,eO,ep]);let nC=(0,c.useMemo)(()=>{var i;let e=(0,ea.Z)(null==iO?void 0:null===(i=iO.costingConfiguration)||void 0===i?void 0:i.hotelGuestRoomConfigurations);return((null==iO?void 0:iO.unityPricingOptions)||[]).map(i=>{var n,t,o,l;return{...i,cost:(null==iO?void 0:null===(n=iO.itinerary)||void 0===n?void 0:null===(t=n.costsForCombination)||void 0===t?void 0:null===(o=t[i.optionId])||void 0===o?void 0:null===(l=o.landCosts)||void 0===l?void 0:l.totalCost)||i.cost,pax:Number(e)}})},[iO]);if((null==iO?void 0:iO.version)==="SPEEDBOAT")return(0,t.jsx)(y.Z,{hideFooter:!0,navbarProps:{isTransparent:!0},children:(0,t.jsx)(ti,{})});let nj=iO?(0,t.jsx)(ts.Z,{trustElements:tc}):null,nw=ew?(0,t.jsx)(iG.Z,{description:null==iO?void 0:null===(U=iO.unityDetailsVO)||void 0===U?void 0:U.description,themes:null==iO?void 0:null===(X=iO.unityDetailsVO)||void 0===X?void 0:X.themes}):null,nk=(0,t.jsx)(l.xu,{css:{width:"100%",backgroundColor:"$white",height:"auto","@lg":{height:"auto",backgroundColor:"transparent"}},children:(null==iO?void 0:iO.iterCities)?(null==iO?void 0:null===(K=iO.itinerary)||void 0===K?void 0:K.costed)?e3?(0,t.jsx)(i9.Z,{}):(0,t.jsx)(i4.Z,{itineraryInfo:iO,setShowMenuMobile:i=>iQ(e=>({...e,showMenuMobile:i})),onGetOtp:eY,onVerifyOtp:eJ}):(0,t.jsx)(i7.Z,{testimonials:null==iO?void 0:null===(G=iO.testimonialsData)||void 0===G?void 0:G.reviews}):null}),nb=(null==iO?void 0:null===(Y=iO.highlights)||void 0===Y?void 0:Y.length)>0?(0,t.jsx)(iq.Z,{highlights:iO.highlights,itineraryId:iO.itinerary.itineraryId,isUnity:ew}):null,nI=iO?(0,t.jsxs)(l.sg,{id:"itinerarySummaryTable",css:{gap:"$6i",backgroundColor:"$white",paddingTop:"$14i","@lg":{backgroundColor:"unset",gap:"$12i",marginTop:"0px",paddingTop:"unset"}},children:[(0,t.jsx)(l.xv,{css:{paddingLeft:"$8i",color:"$grey900",fontSize:"$9i",fontWeight:"$bolder",lineHeight:"$13i",letterSpacing:"-0.1px",fontFamily:"$manrope",marginBottom:"$4i","@lg":{paddingLeft:"0px"}},children:"Itinerary"}),(0,t.jsx)(iX.Z,{iterCities:null==iO?void 0:iO.iterCities,isCosted:e5,itineraryInfo:iO,campaignItinerary:!(null==iO?void 0:null===(J=iO.itinerary)||void 0===J?void 0:J.costed),openGcmAction:n$})]}):null,nS=(null==iO?void 0:iO.iterCities)&&(null==iO?void 0:null===(Q=iO.iterCities)||void 0===Q?void 0:Q.length)>0?(0,t.jsx)(tt.Z,{iterCities:null==iO?void 0:iO.iterCities,isBooked:nn,landPackageBooked:nt,intlFlightBooked:no,itineraryInfo:iO,iscampaignItinerary:!(null==iO?void 0:null===(ii=iO.itinerary)||void 0===ii?void 0:ii.costed)}):null;return(0,t.jsxs)(t.Fragment,{children:[na?(0,t.jsx)(l.xu,{css:{padding:"$4i $8i",background:"linear-gradient(90deg, #F3205F 0%, #8D1337 100%)",width:"100%",display:"none","@lg":{display:"flex",justifyContent:"center",alignItems:"center"}},children:(0,t.jsxs)(l.xv,{css:{color:"$white",fontFamily:"$manrope",fontSize:"$7i",fontWeight:"$bolder",lineHeight:"$10i",textAlign:"center"},children:["Offer ends ","",(0,t.jsx)(S.Z,{timestamp:na,fallBackText:"Time's up!"})]})}):null,(0,t.jsx)(y.Z,{hideFooter:!0,navbarProps:{isTransparent:!!nc&&(null==eU||!eU.isMobile),paddingTop:0},children:(0,t.jsxs)(ic.Z,{children:[iO?(0,t.jsx)(l.xu,{css:{padding:nc?0:"0 0 $8i 0","@lg":{padding:"$7i 0 $14i 0",display:nc?"none":"block"}},children:(0,t.jsx)(h.default,{enabled:!0,top:0,innerZ:9,onStateChange:eF,children:(0,t.jsx)(ia.ZP,{itineraryInfo:iO,showSticky:ez,hidePriceSection:!eB,isCampaignItinerary:!(null==iO?void 0:null===(ie=iO.itinerary)||void 0===ie?void 0:ie.costed),openGcmAction:n$})})}):null,(0,t.jsxs)(l.sg,{css:{backgroundColor:"$white",position:"relative","@lg":{backgroundColor:"$white",paddingBottom:"$40i",gap:"$28i"}},children:[(0,t.jsx)(A.default,{title:e6,description:"",slug:eH.asPath.slice(1),ogImage:e2&&(null==e2?void 0:e2[0]),crawlable:!1}),nc?(0,t.jsxs)(l.xu,{children:[(0,t.jsx)(te.default,{media:e4,showImmersiveVideo:!0,videoBannerData:nu,showCloseIcon:!0}),iO?(0,t.jsx)(l.xu,{css:{paddingTop:"$6i","@smMax":{display:"none"}},children:(0,t.jsx)(h.default,{enabled:!0,top:0,innerZ:9,onStateChange:eF,children:(0,t.jsx)(ia.ZP,{itineraryInfo:iO,showSticky:ez,hidePriceSection:!eB,isCampaignItinerary:!(null==iO?void 0:null===(it=iO.itinerary)||void 0===it?void 0:it.costed),openGcmAction:n$})})}):null]}):(0,t.jsxs)(I.Z,{css:{"@smMax":{padding:0}},children:[(0,t.jsx)(te.default,{media:e4,testimonialVideo:null!==(iE=null==iO?void 0:null===(io=iO.itinerary)||void 0===io?void 0:null===(il=io.videos)||void 0===il?void 0:il[0])&&void 0!==iE?iE:null==iO?void 0:null===(is=iO.testimonialVideo)||void 0===is?void 0:is.videoUrl,showCloseIcon:!0}),(null==eU?void 0:eU.isMobile)?(0,t.jsx)(z.Z,{videoUrl:null!==(iW=null==iO?void 0:null===(ir=iO.itinerary)||void 0===ir?void 0:null===(id=ir.videos)||void 0===id?void 0:id[0])&&void 0!==iW?iW:null==iO?void 0:null===(iu=iO.testimonialVideo)||void 0===iu?void 0:iu.videoUrl,defaultOpen:!sessionStorage.getItem("floatingVideoClosed_".concat(eH.query.regionCode)),onClose:()=>{eH.query.regionCode&&sessionStorage.setItem("floatingVideoClosed_".concat(eH.query.regionCode),"1")}}):null]}),(0,t.jsx)(ta,{name:ia.c4.ItinerarySummary,children:ew?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Z,{css:{"@smMax":{padding:0},marginBottom:"$24i"},children:(0,t.jsxs)(l.X2,{justify:"between",children:[(0,t.jsxs)(l.sg,{id:"trip-info-container",css:{width:"100%",gap:"$6i",marginBottom:"$6i","@lg":{width:"62.85%",gap:"$32i",margin:"unset"}},children:[nj,nw]}),(0,t.jsxs)(l.sg,{css:{width:"100%",position:"fixed",bottom:(null==iO?void 0:null===(ih=iO.itinerary)||void 0===ih?void 0:ih.costed)&&!e3?-2:0,zIndex:100,"@lg":{zIndex:1,position:"static",flexBasis:"30.33%",display:"flex",justifyContent:"flex-start","& .sticky-outer-wrapper":{width:"100%"}}},children:[iO&&ez?(0,t.jsx)(iK.Z,{itineraryInfo:iO,setShowMenuMobile:i=>iQ(e=>({...e,showMenuMobile:i})),showGroupPlanning:eM&&(null==ep?void 0:ep.loggedIn)&&iO&&!(!(null==iO?void 0:null===(iv=iO.itinerary)||void 0===iv?void 0:iv.costed)||e3)}):null,nk]})]})}),nb,(0,t.jsxs)(l.sg,{css:{gap:"$6i","@lg":{gap:"$32i"}},children:[(0,t.jsx)(l.sg,{css:{backgroundColor:"$white"},children:(0,t.jsx)(I.Z,{css:{"@smMax":{padding:0,gap:"16px"}},children:(0,t.jsxs)(l.X2,{justify:"between",children:[(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$6i",marginTop:"$6i","@lg":{width:"62.85%",gap:"$32i",paddingTop:"$32i",marginTop:"unset"}},children:nI}),iO&&(null==iO?void 0:null===(ix=iO.itinerary)||void 0===ix?void 0:ix.regionCode)!=="mle"&&(0,t.jsx)(l.xu,{css:{width:"100%",display:"none","@lg":{position:"static",flexBasis:"30.33%",display:"flex",justifyContent:"flex-end",paddingTop:"122px","& .sticky-outer-wrapper":{width:"100%"}}},children:(0,t.jsx)(h.default,{enabled:!(null==eU?void 0:eU.isMobile),top:(null==iO?void 0:iO.version)==="SPEEDBOAT"?24:130,bottomBoundary:"#itinerarySummaryTable",innerZ:1,
1children:(0,t.jsx)(l.xu,{css:{padding:"0 $12i","@lg":{padding:0}},children:nS})})})]})})}),ew&&!nn&&e5?(0,t.jsx)(I.Z,{css:{backgroundColor:"$white",padding:"$14i 0","@lg":{backgroundColor:"unset",padding:"unset"}},children:(0,t.jsx)(tn.w,{unityPricingOption:nC,defaultOption:null==iO?void 0:null===(im=iO.unityDetailsVO)||void 0===im?void 0:im.combinationId,itineraryInfo:iO})}):null,ew&&e5&&(null==nl?void 0:nl.length)?(0,t.jsx)(I.Z,{css:{backgroundColor:"$white",padding:"$14i 0","@lg":{backgroundColor:"unset",padding:"unset"}},children:(0,t.jsx)(iU.Z,{itineraryInfo:iO,AddonsData:nl,AddonHotelCount:ns||0,AddonActivityCount:nr||0})}):null,nd.length?(0,t.jsx)(I.Z,{css:{backgroundColor:"white",paddingBottom:"$14i",padding:"$14i 0px $14i 0px","@lg":{backgroundColor:"unset",padding:"unset"}},children:(0,t.jsx)(l.X2,{justify:"between",css:{paddingTop:"0"},children:(0,t.jsx)(l.sg,{css:{width:"100%",gap:"$8i",paddingLeft:"$10i",paddingRight:"$10i","@lg":{gap:"$24i",paddingLeft:"unset",paddingRight:"unset"}},children:(0,t.jsx)(tl,{title:"Frequently Asked Questions",data:nd.map(i=>({question:i.question,answer:i.answer}))})})})}):null]})]}):(0,t.jsx)(I.Z,{css:{"@smMax":{padding:0}},children:(0,t.jsxs)(l.X2,{justify:"between",children:[(0,t.jsxs)(l.sg,{id:"trip-info-container",css:{width:"100%",gap:"$6i",paddingBottom:"$16i","@lg":{width:"65%",gap:"$32i",paddingBottom:"unset"}},children:[nj,nI]}),(0,t.jsxs)(l.sg,{css:{width:"100%",position:"fixed",bottom:(null==iO?void 0:null===(iw=iO.itinerary)||void 0===iw?void 0:iw.costed)&&!e3?-2:0,zIndex:100,"@lg":{zIndex:1,position:"static",flexBasis:"30.33%",display:"flex",justifyContent:"flex-start","& .sticky-outer-wrapper":{width:"100%"}}},children:[iO?(0,t.jsx)(iK.Z,{itineraryInfo:iO,setShowMenuMobile:i=>iQ(e=>({...e,showMenuMobile:i})),showGroupPlanning:eM&&(null==ep?void 0:ep.loggedIn)&&iO&&!(!(null==iO?void 0:null===(ik=iO.itinerary)||void 0===ik?void 0:ik.costed)||e3)}):null,iO?(0,t.jsxs)(l.sg,{css:{"@lg":{gap:"$12i"}},children:[nk,(0,t.jsx)(h.default,{enabled:!(null==eU?void 0:eU.isMobile),top:130,innerZ:99,bottomBoundary:"#trip-info-container",children:!iO||(null==iO?void 0:null===(iI=iO.itinerary)||void 0===iI?void 0:iI.regionCode)==="mle"||(null==eU?void 0:eU.isMobile)?null:nS})]}):null]})]})})}),iO&&ew?(0,t.jsx)(ta,{name:ia.c4.ItineraryDayWisePlan,children:(0,t.jsx)(iz.Z,{itineraryInfo:iO})}):null,(0,t.jsx)(ta,{name:ia.c4.ItineraryInclusions,children:(0,t.jsx)(I.Z,{css:{"@smMax":{padding:0}},children:(0,t.jsx)(iM,{})})}),(null==iO?void 0:null===(iA=iO.testimonialsData)||void 0===iA?void 0:iA.reviews)?(0,t.jsx)(ta,{name:ia.c4.ItineraryReviews,children:(0,t.jsx)(iZ.Z,{testimonialRatings:null==iO?void 0:null===(iR=iO.testimonialsData)||void 0===iR?void 0:iR.ratings,testimonial:null==iO?void 0:null===(iB=iO.testimonialsData)||void 0===iB?void 0:iB.reviews,regionCode:"".concat(null==iO?void 0:null===(iL=iO.itinerary)||void 0===iL?void 0:iL.regionCode),totalCount:null==iO?void 0:null===(iF=iO.testimonialsData)||void 0===iF?void 0:iF.totalCount})}):null,ew&&e5?(0,t.jsx)(I.Z,{css:{padding:"unset","@lg":{backgroundColor:"unset",paddingLeft:"initial",paddingBottom:"0px"}},children:(0,t.jsx)(i_,{itineraryInfo:iO,unityThemeCards:e1,differentItineraryCards:e0,itineraryCards:eQ})}):null]}),(0,t.jsx)(i8.Z,{open:eb,setOpen:i=>iQ(e=>({...e,openAlertModal:i})),isAdmin:!!((null==ep?void 0:ep.loggedIn)&&(0,ib.P)({permissions:null==ep?void 0:ep.permissions,key:iT.Dp})),onConfirmChange:ne}),(0,t.jsx)(en.Z,{}),(0,t.jsx)(iY.Z,{}),(0,t.jsx)(j.Z,{}),(0,t.jsx)(R.Z,{}),(0,t.jsx)(ee.Z,{}),(0,t.jsx)(i6.Z,{}),(0,t.jsx)(et.Z,{open:eA,setTogglePaymentModal:i=>iQ(e=>({...e,togglePaymentModal:i})),toggleMetod:eT,setToggleMetod:i=>iQ(e=>({...e,toggleMetod:i}))}),(0,t.jsx)(B.Z,{open:ek,setBetterCostModal:i=>iQ(e=>({...e,betterCostModal:i}))}),(0,t.jsx)(er.Z,{}),(0,t.jsx)(el.Z,{}),(0,t.jsx)(es.Z,{}),(0,t.jsx)(Z.default,{open:i0,setOpen:eK,skipAssignUser:!0,itineraryInfo:iO}),(0,t.jsx)($.Z,{open:i3,setOpen:eG,isItinerary:!0}),(0,t.jsx)(k.default,{regionCode:"".concat(eH.query.regionCode)}),(0,t.jsx)(ei.Z,{}),"activity-block-card"===eE&&(0,t.jsx)(f.Z,{}),"custom-block-card"===eE&&(0,t.jsx)(T.C,{}),(0,t.jsx)(eo.Z,{}),(0,t.jsx)(C.Z,{headerText:"More Details",open:eI,toggleMenu:i=>iQ(e=>({...e,showMenuMobile:i})),contentCss:{padding:"0 $10i",height:"auto",maxHeight:"calc(80vh - 50px)"},children:(0,t.jsx)(ip.Z,{itineraryTitle:e6,isShared:null==iO?void 0:null===(iH=iO.itinerary)||void 0===iH?void 0:iH.shared,onVerifyOtp:eJ,onGetOtp:eY})}),eS.open?(0,t.jsx)(b.Z,{closeModal:()=>iQ(i=>({...i,showModal:{open:!1,action:""}})),action:eS,itineraryId:eO}):null,eg?(0,t.jsx)(M.Z,{open:eg,onCloseModal:i=>{eh(i),eH.push({pathname:eH.asPath.split("?")[0],query:{}},void 0,{shallow:!0})},configKey:eH.query.configKey,itineraryId:eO}):null,eN?(0,t.jsx)(w.Z,{exposureBreakup:eq,open:eN,onCloseModal:i=>{e_(i),eH.push({pathname:eH.asPath.split("?")[0],query:{}},void 0,{shallow:!0})}}):null,eC?(0,t.jsx)(ig.Z,{visible:eC,onClose:()=>(0,iS.Z)("".concat(eH.asPath.split("?")[0]))}):null,(0,t.jsx)(l.xu,{css:{"@smMax":{paddingBottom:e5?"$42i":"$12i"}}})]})}),(0,t.jsx)(u.x7,{position:"top-center",reverseOrder:!1,gutter:8,containerClassName:"",toastOptions:{className:"",duration:5e3,style:{backgroundColor:"#363636",color:"#fff"}}})]})},tg=()=>(0,t.jsx)(c.Suspense,{fallback:(0,t.jsx)(to.Z,{}),children:(0,t.jsx)(tu,{})});var th=tg}}]);
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.