1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13594],{90589:function(e,t,i){i.d(t,{Q:function(){return u}});var r=i(14994),a=i(38323),n=i(80464),o=i(88765),s=i(86668),l=i(59211),d=i(81445);let c=(0,d.iv)({zIndex:100,width:"[50.25rem]!"}),p=(0,d.iv)({position:"relative",height:"[30.5rem]",overflowX:"hidden",overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media (max-width: 768px)":{position:"static",height:"auto",overflow:"visible"}}),h=(0,d.iv)({borderBottom:0}),u=(0,a.eW)(e=>{let{open:t,onOpenChange:i,title:d,onClose:u,modalContext:x,itineraries:g,lang:v,isMobile:m=!1,strings:b,trackEvent:w,provider:f,itineraryProps:j,overrideStyles:C}=e,k=(0,a.eW)(e=>{!e&&u&&u(),i(e)},"handleOpenChange"),y=g.length>1;return(0,r.jsx)(o.u,{open:t,onOpenChange:k,title:d,contentClassName:(0,n.Q)(c,null==C?void 0:C.content),modalContext:x,"data-testid":"itinerary-details-modal",header:(0,a.ih)({size:"small",showSeparator:!0},y&&{className:h}),children:(0,r.jsx)("div",{className:(0,n.Q)(p,null==C?void 0:C.body),"data-qa-marker":s.pb.ITINERARY_DETAILS_MODAL,children:(0,r.jsx)(l.n,{...j,itineraryData:g,lang:v,strings:b,isMobile:m,trackEventFn:w,showTitle:!1,provider:f,disablePathChange:!0})})})},"ItineraryDetailsModal");u.displayName="ItineraryDetailsModal"},81186:function(e,t,i){i.r(t),i.d(t,{default:function(){return R}});var r=i(14994),a=i(93435),n=i(25730),o=i(36758),s=i(75301),l=i(82936),d=i(14360),c=i(59211),p=i(90589),h=i(40299),u=i(46026),x=i(66685),g=i(96149),v=i(80018),m=i(77587),b=i(45151),w=i(99009),f=i(11190),j=i(87183),C=i(72996),k=e=>{let{strokeColor:t="colors.gray.g2",...i}=e;return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[(0,r.jsx)("path",{d:"M6.5 1.5V5C6.5 6.10457 5.60457 7 4.5 7H4.25M2 1.5V5C2 6.10457 2.89543 7 4 7H4.25M4.25 7V14.6125M4.25 1.5V5",stroke:(0,C.r)(t),strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M11 7.19325V14.5",stroke:(0,C.r)(t),strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M9.37399 2.55269C9.66142 1.91213 10.2981 1.49997 11.0002 1.49997V1.49997C11.7023 1.49997 12.339 1.91213 12.6264 2.55269L12.7429 2.81226C13.2222 3.88042 13.1965 5.10735 12.6729 6.15451V6.15451C12.5598 6.38089 12.3894 6.57382 12.1788 6.71422L12.0238 6.8176C11.404 7.23081 10.5965 7.23081 9.97666 6.8176L9.82158 6.71422C9.61099 6.57382 9.44067 6.38089 9.32748 6.15451V6.15451C8.8039 5.10735 8.77822 3.88042 9.25752 2.81226L9.37399 2.55269Z",stroke:(0,C.r)(t)})]})},y=i(3410),S=e=>(0,r.jsxs)("svg",{width:"58",height:"77",viewBox:"0 0 58 77",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("rect",{width:"58",height:"77",fill:"#FCE5A9"}),(0,r.jsx)("rect",{width:"12",height:"77",fill:"#906100"})]}),M=i(54242),E=i(70326),I=i(20124);let O=(0,I.iv)({position:"absolute",display:"grid",bottom:"8px",right:"8px",cursor:"pointer",padding:"0",borderRadius:"0.635rem",border:"1px solid token(colors.brand.white)66",backgroundClip:"padding-box",boxShadow:"0px 4px 4px 0px token(colors.brand.black)26",transition:"bottom ease-in-out 150ms, transform ease-in-out 150ms",zIndex:"2","& > svg":{borderRadius:"10px"},_active:{transform:"scale(0.98)"},_desktop:{"&:hover":{bottom:"9px"}}}),V=(0,I.Ft)({slots:["textIconWrapper","ctaText"],base:{textIconWrapper:{position:"absolute",display:"grid",gridGap:"2px",alignSelf:"center",justifySelf:"center",justifyItems:"center"},ctaText:{textStyle:"uiLabelSmallHeavy",color:"text.purps3",width:"56px",wordWrap:"break-word"}},variants:{isMealVariant:{true:{textIconWrapper:{marginLeft:"10px"},ctaText:{color:"text.joyMustard3",width:"45px"}}}}}),L=(0,n.default)(()=>Promise.all([i.e(38037),i.e(36145),i.e(86665)]).then(i.bind(i,90730)).then(e=>({default:e.PdfViewer})),{loadableGenerated:{webpack:()=>[90730]},ssr:!1});var R=e=>{var t,i,n,C,I,R;let{tgid:T,rank:H,variant:N}=e,A=(0,o.useAtomValue)(l.i),{isMobile:D,lang:Z}=(0,o.useAtomValue)(s.n),_=(0,o.useAtomValue)(d.bd),W=(0,o.useAtomValue)(d.vD),[P,U]=(0,a.useState)(!1),[B,F]=(0,a.useState)(!1),{primarySubCategory:Q,name:z}=null!==(I=_.get(T))&&void 0!==I?I:{},G=(0,a.useRef)();(0,m.A)(B);let{details:q,type:Y}=null!==(R=null===(t=W.get(T))||void 0===t?void 0:t[0])&&void 0!==R?R:{},X=(0,v.R6)(W.get(T)).map(e=>({...e,map:{...e.map,active:!0}})),J="cruise"===N,K=(0,v.WC)({primarySubCategoryId:null==Q?void 0:Q.id,itineraryDetails:q});if((0,b.Q)({isOpen:B||P,tgid:T,rank:H,itineraryType:Y,placement:j.gx.PRODUCT_CARD,boardingPointsPresent:(0,v.Cj)(null===(i=W.get(T))||void 0===i?void 0:i[0])}),J&&!K&&!(0,v.nL)(null===(C=W.get(T))||void 0===C?void 0:null===(n=C[0])||void 0===n?void 0:n.sections))return null;let $=A.HOHO.ROUTES;J&&($=K?A.CRUISES.MENU:A.CRUISES.SIGHTS_COVERED);let ee=()=>{var e;null===(e=G.current)||void 0===e||e.open()},et=()=>{D?U(!0):F(!0)},{textIconWrapper:ei,ctaText:er}=V({isMealVariant:K});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{className:O,onClick:()=>{K?ee():et()},"data-qa-marker":"itinerary-cta",children:[K?(0,r.jsx)(S,{}):(0,r.jsx)(y.Z,{}),(0,r.jsxs)("div",{className:ei,children:[(0,r.jsx)(x.Z,{if:J&&K,children:(0,r.jsx)(k,{height:20,width:20,strokeColor:"colors.text.joyMustard3"})}),(0,r.jsx)(x.Z,{if:J&&!K,children:(0,r.jsx)(E.Z,{height:20,width:20,strokeColor:"colors.text.purps3"})}),(0,r.jsx)(x.Z,{if:!J,children:(0,r.jsx)(M.Z,{})}),(0,r.jsx)("span",{className:er,children:$})]})]}),(0,r.jsx)(x.Z,{if:D,children:(0,r.jsx)(h.Z,{open:P,onOpenChange:U,title:z,headerSize:"medium",variant:"85p",closeOnTapOutside:!0,children:(0,r.jsx)("div",{className:g.WH,children:(0,r.jsx)(c.n,{itineraryData:X,lang:Z,strings:(0,v.Md)(A),isMobile:D,trackEventFn:w.L9,showTitle:!1,provider:"google",disablePathChange:!0})})})}),(0,r.jsx)(x.Z,{if:!D,children:(0,r.jsx)(p.Q,{open:B,onOpenChange:F,title:null!=z?z:"",itineraries:X,tgid:T,rank:H,lang:(0,u.G3)(Z),isMobile:!1,overrideStyles:{content:g.sB,body:g.Bp},strings:(0,v.Md)(A),trackEvent:w.L9,provider:"google"})}),(0,r.jsx)(x.Z,{if:K,children:(0,r.jsx)(L,{tgid:T,rank:H,controller:G,pdfData:null==q?void 0:q.cruiseMenus,isCTA:!0,onHide:()=>{document.body.style.overflow="auto"},isMobile:D,trackEvent:w.L9,strings:{CRUISES:A.CRUISES,HOHO:A.HOHO,formatString:f.ml}})})]})}}}]);
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.