1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8275],{2641:(e,t,a)=>{a.d(t,{GD:()=>n});let r=/\s*\(\s*slot\s*\d+\s*\)\s*$/i;function i(e){return(e??"").replace(r,"").replace(/\s+/g," ").trim()}function n(e,t){let a=new Map;for(let t of e){let e=function(e){var t;let a=e.booking_type??"per_cabin",r=null==(t=e.cabin_group)?void 0:t.token,n=r?`grp:${r}`:`${i(e.cabin_name).toLowerCase()}@@${e.price}`;return`${a}::${n}`}(t),r=a.get(e);r?r.push(t):a.set(e,[t])}return Array.from(a.values()).map(e=>{let a={...e[0],cabin_name:i(e[0].cabin_name)};return t?t(a,e):a})}},2908:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(5155),i=a(2115),n=a(7819),s=a(1717);function o(e){let{hidden:t=!1,variant:a="fixed"}=e,{t:o}=(0,s.Bd)(),[l,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(!1),x="inline"===a,b=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(x)return;let e=()=>{c(window.scrollY>window.innerHeight)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[x]),(0,i.useEffect)(()=>{if(!x)return;let e=b.current;if(!e)return;let t=e=>{let t=window.getComputedStyle(e).overflowY;return"auto"===t||"scroll"===t},a=e.previousElementSibling&&t(e.previousElementSibling)?e.previousElementSibling:null;if(!a){let r=e.parentElement;for(;r&&r!==document.body;){if(t(r)){a=r;break}r=r.parentElement}}if(!a)return void c(!0);let r=a,i=()=>r.scrollHeight>r.clientHeight+1,n=()=>{i()||c(!0)};n();let s=r.scrollTop,o=()=>{if(!i())return void c(!0);let e=r.scrollTop,t=e-s;t>2?c(!0):t<-2&&c(!1),s=e};r.addEventListener("scroll",o,{passive:!0});let l=new MutationObserver(n);l.observe(r,{childList:!0,subtree:!0,attributes:!0});let d=new ResizeObserver(n);return d.observe(r),()=>{r.removeEventListener("scroll",o),l.disconnect(),d.disconnect()}},[x]);
1let u=x?l&&!d:l&&!d&&!t;return(0,r.jsxs)("div",{ref:b,className:`cruises-sticky-contact${x?" cruises-sticky-contact--inline":""}${u?" is-visible":""}`,"aria-hidden":!u,children:[(0,r.jsx)("button",{type:"button",onClick:()=>p(!0),"aria-label":o("cruisesPage.stickyContact.dismissAria"),tabIndex:u?0:-1,className:"cruises-sticky-contact-close",children:(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,r.jsx)("span",{className:"cruises-sticky-contact-label",children:o("cruisesPage.stickyContact.label")}),(0,r.jsx)(n.A,{href:"/contact?subject=Find%20a%20cruise",className:"cruises-sticky-contact-cta",tabIndex:u?0:-1,children:o("cruisesPage.stickyContact.cta")})]})}},6060:(e,t,a)=>{a.d(t,{A:()=>p});var r=a(5155),i=a(2115),n=a(7819),s=a(3321),o=a(1717),l=a(7093),c=a(7350),d=a(8229);function p(e){var t,a,p,b,u,h,m;let g,v,f,{cabin:y,shipSlug:j,onClose:w}=e,{t:k,locale:N}=(0,o.Bd)(),S=(0,s.useSearchParams)(),C=null==(t=((null==S?void 0:S.get("destinations"))||"").split(",")[0])?void 0:t.trim(),_=`/contact?method=whatsapp&subject=booking-inquiry&boat=${encodeURIComponent(j.replace(/-/g," "))}&cabin=${encodeURIComponent(y.cabin_name)}${C?`&destination=${encodeURIComponent(C)}`:""}`,z=(0,l.Ab)(N),I=(g=new Set,v=[],(f=e=>{if(!e)return;let t=(0,c.ZC)(e);!t||g.has(t)||(g.add(t),v.push(t))})(y.image_main),(y.images??[]).forEach(f),v.length>0?v:["/placeholder-boat.svg"]),[P,L]=(0,i.useState)(0),[W,B]=(0,i.useState)(!1),E=I.length>1,$=()=>L(e=>(e+1)%I.length),F=()=>L(e=>(e-1+I.length)%I.length);(0,i.useEffect)(()=>{let e=e=>{if("Escape"===e.key&&W){e.stopPropagation(),B(!1);return}E&&"ArrowLeft"===e.key?F():E&&"ArrowRight"===e.key&&$()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[E,W]);let A=(0,i.useRef)(null),M=e=>{A.current=e.touches[0].clientX},R=e=>{if(null===A.current||!E)return;let t=e.changedTouches[0].clientX-A.current;t>40?F():t<-40&&$(),A.current=null},D=[{label:k("cabinFeatures.seaView"),on:!!(null==(a=y.facilities)?void 0:a.seaview)},{label:k("cabinFeatures.balcony"),on:!!(null==(p=y.facilities)?void 0:p.balcony)},{label:k("cabinFeatures.bathtub"),on:!!(null==(b=y.facilities)?void 0:b.bathtub)},{label:k("cabinFeatures.largeBed"),on:!!(null==(u=y.facilities)?void 0:u.large_bed)},{label:k("cabinFeatures.jacuzzi"),on:!!(null==(h=y.facilities)?void 0:h.private_jacuzzi)}],T=((null==(m=y.facilities)?void 0:m.cabin_display_facilities)||"").split(/[,|;]/).map(e=>e.trim()).filter(Boolean);return(0,r.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":k("cabinModal.ariaDetails",{name:y.cabin_name}),onClick:w,style:{position:"fixed",inset:0,background:"rgba(15,25,55,0.82)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)",zIndex:10010,display:"flex",alignItems:"center",justifyContent:"center",padding:"24px",animation:"cabinFadeIn 0.18s ease-out"},children:[(0,r.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{background:"var(--white)",width:"100%",maxWidth:920,maxHeight:"94vh",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"0 32px 80px rgba(0,0,0,0.4)",animation:"cabinSlideUp 0.22s cubic-bezier(0.25,0.46,0.45,0.94)"},children:[(0,r.jsxs)("div",{onTouchStart:M,onTouchEnd:R,onClick:()=>B(!0),role:"button",tabIndex:0,"aria-label":k("common.viewFullSize"),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),B(!0))},style:{position:"relative",height:"clamp(280px, 48vh, 480px)",flexShrink:0,background:"var(--navy)",cursor:"zoom-in"},children:[(0,r.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:`url('${I[P]}')`,backgroundSize:"cover",backgroundPosition:"center",transition:"background-image 0.3s ease"}}),(0,r.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(180deg, rgba(25,45,98,0.3) 0%, rgba(25,45,98,0) 45%, rgba(25,45,98,0.85) 100%)"}}),(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),w()},"aria-label":k("common.close"),style:{position:"absolute",top:14,right:14,width:34,he
1ight:34,borderRadius:"50%",background:"rgba(255,255,255,0.95)",border:"none",color:"var(--navy)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,lineHeight:1,fontWeight:400,zIndex:2},children:"\xd7"}),E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),F()},"aria-label":k("common.previousImage"),style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",width:38,height:38,borderRadius:"50%",background:"rgba(15,25,55,0.55)",border:"none",color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2},children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,r.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),$()},"aria-label":k("common.nextImage"),style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",width:38,height:38,borderRadius:"50%",background:"rgba(15,25,55,0.55)",border:"none",color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2},children:(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,r.jsx)("path",{d:"M9 18l6-6-6-6"})})}),(0,r.jsxs)("div",{style:{position:"absolute",top:14,left:14,background:"rgba(15,25,55,0.7)",color:"var(--white)",fontSize:11,fontWeight:700,letterSpacing:"0.12em",padding:"5px 10px",zIndex:2},children:[P+1," / ",I.length]})]}),(0,r.jsxs)("div",{style:{position:"absolute",bottom:18,left:22,right:22,color:"var(--white)"},children:[(0,r.jsx)("div",{style:{fontSize:10,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--gold)",fontWeight:600,marginBottom:4},children:k("cabinModal.cabinSuffix",{boat:y.boat_name})}),(0,r.jsx)("h3",{style:{fontSize:24,fontWeight:600,lineHeight:1.15,margin:0,letterSpacing:"-0.01em",textShadow:"0 2px 10px rgba(0,0,0,0.25)"},children:y.cabin_name})]})]}),E&&(0,r.jsx)("div",{style:{display:"flex",gap:6,overflowX:"auto",padding:"10px 14px",borderBottom:"1px solid var(--border)",flexShrink:0,scrollbarWidth:"thin"},children:I.map((e,t)=>{let a=t===P;return(0,r.jsx)("button",{type:"button",onClick:()=>L(t),"aria-label":k("common.showImageN",{n:t+1}),"aria-current":a?"true":"false",style:{all:"unset",cursor:"pointer",flex:"0 0 auto",width:70,height:44,backgroundImage:`url('${e}')`,backgroundSize:"cover",backgroundPosition:"center",outline:a?"2px solid var(--coral)":"1px solid rgba(0,0,0,0.08)",outlineOffset:0,opacity:a?1:.65,transition:"opacity 0.15s"}},`${e}-${t}`)})}),(0,r.jsxs)("div",{style:{overflow:"auto",flex:1,padding:"18px 24px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:24,marginBottom:14,paddingBottom:12,borderBottom:"1px solid var(--border)"},children:[(0,r.jsx)(x,{label:k("cabinModal.stats.sleeps"),value:String(y.total_capacity)}),(0,r.jsx)(x,{label:k("cabinModal.stats.priceFrom"),value:y.price>0?z(y.price):k("common.onRequest"),accent:!0}),D.filter(e=>e.on).length>0&&(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginLeft:"auto"},children:D.filter(e=>e.on).map(e=>(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,padding:"5px 9px",background:"var(--bg-page)",border:"1px solid var(--border)",fontSize:11.5,color:"var(--navy)",fontWeight:500},children:[(0,r.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"var(--teal)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})}),e.label]},e.label))})]}),(0,r.jsxs)("div",{style:{display:"grid",gridTemplateColumns:y.description&&T.length>0?"minmax(0, 1.4fr) minmax(0, 1fr)":"minmax(0, 1fr)",gap:24,marginBottom:14},children:[y.description&&(0,r.jsx)("p",{style:{fontSize:13,lineHeight:1.55,color:"var(--text-body)",margin:0},children:y.description}),T.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:10,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--text-muted)",fontWeight:600,marginBottom:6},children:k("cabinModal.facilities.inCabin")}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:T.map(e=>(0,r.jsx)("span",{style:{fontSize:11,fontWeight:500,color:"var(--navy)",background:"rgba(25,45,98,0.06)",padding:"3px 8px"},children:e},e))})]})]}),(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,paddingTop:14,borderTop:"1px solid var(--border)"},children:[(0,r.jsx)(n.A,{href:`/cruises/${j}`,style:{flex:"1 1 200px",background:"var(--coral)",color:"var(--white)",padding:"11px 20px",fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",textDecoration:"none",textAlign:"center",boxShadow:"0 6px 20px rgba(232,78,42,0.3)"},children:k("cabinModal.cta.checkAvailability")}),(0,r.jsx)(n.A,{href:_,style:{flex:"1 1 200px",background:"transparent",color:"var(--navy)",border:"1px solid var(--border-strong)",padding:"11px 20px",fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",textDecoration:"none",textAlign:"center"},children:k("cabinModal.cta.askAboutCabin")})]})]})]}),W&&(0,r.jsxs)("div",{onClick:e=>{e.stopPropagation(),B(!1)},onTouchStart:M,onTouchEnd:R,role:"dialog","aria-modal":"true","aria-label":k("cabinModal.ariaFullSize",{name:y.cabin_name}),style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.95)",zIndex:10020,display:"flex",alignItems:"center",justifyContent:"center",padding:24,cursor:"zoom-out",animation:"cabinFa
1deIn 0.18s ease-out"},children:[(0,r.jsx)("img",{src:I[P],alt:y.cabin_name,onError:(0,d.m)("/placeholder-cabin.svg"),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block",userSelect:"none"}}),(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),B(!1)},"aria-label":k("common.closeFullSize"),style:{position:"absolute",top:16,right:16,width:40,height:40,borderRadius:"50%",background:"rgba(255,255,255,0.95)",border:"none",color:"var(--navy)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:22,lineHeight:1,fontWeight:400,zIndex:2},children:"\xd7"}),E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),F()},"aria-label":k("common.previousImage"),style:{position:"absolute",left:20,top:"50%",transform:"translateY(-50%)",width:52,height:52,borderRadius:"50%",background:"rgba(255,255,255,0.95)",border:"none",color:"var(--navy)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2,boxShadow:"0 4px 16px rgba(0,0,0,0.4)"},children:(0,r.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),$()},"aria-label":k("common.nextImage"),style:{position:"absolute",right:20,top:"50%",transform:"translateY(-50%)",width:52,height:52,borderRadius:"50%",background:"rgba(255,255,255,0.95)",border:"none",color:"var(--navy)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2,boxShadow:"0 4px 16px rgba(0,0,0,0.4)"},children:(0,r.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M9 18l6-6-6-6"})})}),(0,r.jsxs)("div",{style:{position:"absolute",bottom:20,left:"50%",transform:"translateX(-50%)",background:"rgba(255,255,255,0.95)",color:"var(--navy)",fontSize:12,fontWeight:700,letterSpacing:"0.12em",padding:"6px 14px",boxShadow:"0 2px 10px rgba(0,0,0,0.3)"},children:[P+1," / ",I.length]})]})]}),(0,r.jsx)("style",{children:` 2 @keyframes cabinFadeIn { 3 from { opacity: 0; } 4 to { opacity: 1; } 5 } 6 @keyframes cabinSlideUp { 7 from { opacity: 0; transform: translateY(16px); } 8 to { opacity: 1; transform: translateY(0); } 9 } 10 `})]})}function x(e){let{label:t,value:a,accent:i=!1}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:10,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--text-muted)",fontWeight:600,marginBottom:4},children:t}),(0,r.jsx)("div",{style:{fontSize:i?19:16,fontWeight:600,color:i?"var(--coral)":"var(--navy)",lineHeight:1},children:a})]})}},6605:(e,t,a)=>{a.d(t,{B:()=>o});var r=a(5155),i=a(2115),n=a(3321);function s(e){let{onChange:t}=e,a=(0,n.useSearchParams)();return(0,i.useEffect)(()=>{t(a)},[a,t]),null}function o(){let[e,t]=(0,i.useState)(null);return[e,(0,r.jsx)(i.Suspense,{fallback:null,children:(0,r.jsx)(s,{onChange:t})})]}},8275:(e,t,a)=>{a.d(t,{A:()=>v,s:()=>f});var r=a(5155),i=a(2115),n=a(5772),s=a(7819),o=a(6060),l=a(2908),c=a(6605),d=a(1717),p=a(7093),x=a(7350),b=a(2641),u=a(8229),h=a(3001);function m(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function g(e){return new Date(e).getFullYear()}function v(e){let{ship:t,trips:a,onClose:n}=e,{t:s,locale:c}=(0,d.Bd)(),u=(0,p.Ab)(c,"â"),[v,j]=(0,i.useState)(null),[w,k]=(0,i.useState)(0),[N,S]=(0,i.useState)("cabins"),[C,_]=(0,i.useState)(null),z=(0,i.useRef)(null),I=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=I.current;if(I.current=N,null===e||e===N)return;let t=z.current;t&&t.scrollIntoView({behavior:"smooth",block:"start"})},[N]),(0,i.useEffect)(()=>{let e=!1;return(0,x.W2)().then(a=>{if(e)return;let r=a.filter(e=>e.boat_id&&t.boatId&&e.boat_id===t.boatId);j((0,b.GD)(r,(e,t)=>({...e,slotCabinIds:t.map(e=>e.cabin_id)})))}),()=>{e=!0}},[t.boatId]),(0,i.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]),(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]);let P=Math.max(1,parseInt(t.tripDuration,10)||1),L=Array.from(new Set([t.imageMain,...t.images||[]].filter(e=>!!e&&(0,x.VP)(e)).map(e=>(0,x.ZC)(e)))).map((e,a)=>({src:e,alt:t.name,overlay:0===a?(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[rgba(25,45,98,0.85)] via-[rgba(25,45,98,0.25)] to-transparent pointer-events-none",children:(0,r.jsxs)("div",{className:"absolute bottom-6 left-5 right-5 text-[var(--white)]",children:[(0,r.jsxs)("div",{className:"text-[11px] font-semibold tracking-[0.24em] uppercase opacity-90 mb-2",children:[P," ",1===P?s("cruisesPage.card.daySingular"):s("cruisesPage.card.dayPlural")]}),(0,r.jsx)("h2",{className:"text-[26px] md:text-[28px] font-semibold uppercase tracking-[0.02em] leading-tight drop-shadow-[0_2px_8px_rgba(0,0,0,0.35)]",children:t.name})]})}):void 0})),W=a[w],B=W?new Set(W.cabinIds):null,E=v&&B&&B.size>0?v.filter(e=>{var t;return e.slotCabinIds.some(e=>B.has(e))||null!=(t=e.cabin_group)&&!!t.token&&B.has(e.cabin_group.token)}):v;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{"aria-hidden":!0,onClick:n,className:"fixed inset-0 z-[9990] bg-[rgba(25,45,98,0.55)] [animation:backdropFade_180ms_ease-out]"}),(0,r.jsxs)("aside",{role:"dialog","aria-modal":"true",className:"fixed inset-0 md:left-auto md:w-[90vw] md:max-w-[750px] z-[9995] bg-[var(--white)] flex flex-col md:shadow-[-12px_0_40px_rgba(25,45,98,0.18)] [animation:panelSlideRight_220ms_ease-out]",children:[(0,r.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[(0,r.jsxs)("div",{className:"sticky top-0 bg-[var(--white)] z-10 flex items-center justify-between px-5 py-3 border-b border-[rgba(25,45,98,0.08)]",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("button",{type:"button","aria-label":s("common.save"),className:"w-9 h-9 rounded-full hover:bg-[rgba(25,45,98,0.06)] flex items-center justify-center transition-colors",children:(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"var(--navy)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}),(0,r.jsx)("button",{type:"button","aria-label":s("common.share"),className:"w-9 h-9 rounded-full hover:bg-[rgba(25,45,98,0.06)] flex items-center justify-center transition-colors",children:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"var(--navy)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"18",cy:"5",r:"3"}),(0,r.jsx)("circle",{cx:"6",cy:"12",r:"3"}),(0,r.jsx)("circle",{cx:"18",cy:"19",r:"3"}),(0,r.jsx)("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),(0,r.jsx)("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})})]}),(0,r.jsx)("button",{type:"button","aria-label":s("common.close"),onClick:n,className:"w-9 h-9 rounded-full hover:bg-[rgba(25,45,98,0.06)] flex items-center justify-center transition-colors",children:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"var(--navy)",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),L.length>0?(0,r.jsx)("div",{className:"bg-[rgba(25,45,98,0.06)]",children:(0,r.jsx)(h.xH,{images:L,ariaLabel:t.name,controls:"arrows+dots",aspectRatio:"4 / 3",priority:!0,sizes:"(max-width: 768px) 100vw, 480px",className:"md:[aspect-ratio:16/10]"})}):(0,r.jsxs)("div",{className:"px-5 pt-6 pb-4 bg-gradient-to-b from-[rgba(25,45,98,0.06)] to-transparent",children:[(0,r.jsxs)("div",{className:"text-[11px] font-semibold tracking-[0.22em] uppercase text-[var(--navy)] opacity-65 mb-2",children:[P," ",1===P?s("cruisesPage.card.daySingular"):s("cruisesPage.card.dayPlural")]}),(0,r.jsx)("h2",{className:"text-[26px] md:text-[28px] font-semibold uppercase text-[var(--navy)] tracking-[0.02em] leading-tight",children:t.name})]}),(0,r.jsx)("div",{ref:z,"aria-hidden":"true",style:{height:0,scrollMarginTop:"57px"}}),(0,r.jsxs)("div",{role:"tablist","aria-label":s("cruisePanel.ariaDialog"),className:"sticky top-[57px] z-[5] bg-[var(--white)] border-t border-b border-[rgba(25,45,98,0.08)] flex",children:[(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":"cabins"===N,onClick:()=>S("cabins"),className:`flex-1 px-5 py-3 text-[12px] font-semibold tracking-[0.18em] uppercase transition-colors ${"cabins"===N?"text-[var(--navy)] border-b-2 border-[var(--coral)]":"text-[var(--navy)] opacity-55 border-b-2 border-transparent hover:opacity-90"}`,children:s("cruisePanel.tabs.cabins")}),(0,r.jsx)("button",{type:"button",role:"tab","aria-selected":"itinerary"===N,onClick:()=>S("itinerary"),className:`flex-1 px-5 py-3 text-[12px] font-semibold tracking-[0.18em] uppercase transition-colors ${"itinerary"===N?"text-[var(--navy)] border-b-2 border-[var(--coral)]":"text-[var(--navy)] opacity-55 border-b-2 border-transparent hover:opacity-90"}`,children:s("cruisePanel.tabs.itinerary")})]}),"cabins"===N&&a.length>0&&(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-[rgba(25,45,98,0.08)]",children:[(0,r.jsx)("h3",{className:"text-[15px] font-semibold text-[var(--navy)] mb-1",children:s("cruisePanel.dates.available",{count:a.length,n:a.length})}),(0,r.jsx)(h.jI,{ariaLabel:s("cruisePanel.ariaAvailableDates"),controls:"arrows",arrowsPosition:"overlay",arrowInsetPx:-12,gapPx:8,className:"pt-3 pb-2",options:{slidesToScroll:1},selectedIndex:w,children:a.map((e,i)=>{var n;let o,l=0===i,c=!l&&g(e.from)!==g((null==(n=a[i-1])?void 0:n.from)||e.from),d=i===w;return(0,r.jsxs)("div",{className:"flex items-stretch gap-2",children:[c&&(0,r.jsx)("div",{className:"flex flex-col justify-center px-1",children:(0,r.jsx)("span",{className:"text-[11px] font-semibold text-[var(--navy)] opacity-50 -rotate-90 whitespace-nowrap",children:g(e.from)})}),(0,r.jsxs)("button",{type:"button",onClick:()=>k(i),className:`relative shrink-0 min-w-[120px] px-4 py-3 rounded-md border transition-colors text-left ${d?"bg-[var(--coral)] border-[var(--coral)] text-[var(--white)]":"bg-[var(--white)] border-[rgba(25,45,98,0.18)] text-[var(--navy)] hover:border-[var(--navy)]"}`,children:[l&&!d&&(0,r.jsx)("div",{className:"absolute -top-2 left-3 px-1.5 py-0.5 bg-[var(--white)] text-[9px] font-bold tracking-[0.1em] uppercase text-[var(--coral-text)] border border-[var(--coral)] rounded",children:s("cruisePanel.dates.lowest")}),(0,r.jsxs)("div",{className:"text-[13px] font-semibold whitespace-nowrap",children:[m(e.from)," â ",m(e.to)]}),t.lowestPrice>0&&(0,r.jsxs)("div",{className:`text-[12px] mt-0.5 ${d?"opacity-90":"opacity-70"}`,children:[s("common.from")," ",(o=t.lowestPrice)<=0?"â":u(o)]})]})]},`${e.from}-${i}`)})}),a[w]&&(0,r.jsxs)("div",{className:"text-[12px] text-[var(--navy)] opacity-70 mt-2",children:[new Date(a[w].from).toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric"})," â ",new Date(a[w].to).toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",year:"numeric"})]})]}),"cabins"===N&&(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-[rgba(25,45,98,0.08)]",children:[(0,r.jsx)("h3",{className:"text-[15px] font-semibold text-[var(--navy)] mb-1",children:s("cruisePanel.cabins.title")}),W&&(0,r.jsx)("div",{className:"text-[12px] text-[var(--navy)] opacity-60 mb-3",children:s("cruisePanel.cabins.forRange",{from:m(W.from),to:m(W.to)})}),null===v?(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:Array.from({length:2}).map((e,t)=>(0,r.jsxs)("div",{className:"rounded-md border border-[rgba(25,45,98,0.08)] overflow-hidden",children:[(0,r.jsx)("div",{className:"aspect-[4/3] bg-[rgba(25,45,98,0.06)] animate-pulse"}),(0,r.jsxs)("div",{className:"p-3 space-y-2",children:[(0,r.jsx)("div",{className:"h-3 bg-[rgba(25,45,98,0.08)] rounded w-2/3 animate-pulse"}),(0,r.jsx)("div",{className:"h-3 bg-[rgba(25,45,98,0.08)] rounded w-1/2 animate-pulse"})]})]},t))}):E&&0!==E.length?(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:E.slice(0,4).map(e=>{let a=E.reduce((e,t)=>
10t.price>0&&t.price<e?t.price:e,1/0),i=e.price===a&&e.price>0;return(0,r.jsx)(y,{cabin:e,isLowest:i,shipName:t.name,selectedTripDate:null==W?void 0:W.from,onOpen:()=>_(e)},e.cabin_id)})}):(0,r.jsx)("div",{className:"text-[13px] text-[var(--navy)] opacity-65",children:W?s("cruisePanel.cabins.noneOnDate"):s("cruisePanel.cabins.detailsUnavailable")})]}),"itinerary"===N&&(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-[rgba(25,45,98,0.08)]",children:[(0,r.jsx)("h3",{className:"text-[15px] font-semibold text-[var(--navy)] mb-3",children:s("cruisePanel.itinerary.title",{days:P})}),t.itinerary&&t.itinerary.length>0?(0,r.jsx)("ol",{className:"m-0 p-0 list-none",children:t.itinerary.map((e,a)=>(0,r.jsx)(f,{day:e,index:a,isLast:a===t.itinerary.length-1},a))}):(0,r.jsx)("div",{className:"text-[13px] text-[var(--navy)] opacity-65",children:s("cruisePanel.itinerary.unavailable")})]})]}),(0,r.jsx)(l.A,{variant:"inline"})]}),C&&(0,r.jsx)(o.A,{cabin:C,shipSlug:t.slug,onClose:()=>_(null)})]})}function f(e){let{day:t,index:a,isLast:i}=e,{t:s}=(0,d.Bd)(),o=s("cruisePanel.itinerary.dayN",{n:a+1});return(0,r.jsxs)("li",{className:`grid grid-cols-[52px_1fr] gap-4 py-4 ${i?"":"border-b border-[rgba(25,45,98,0.08)]"}`,children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("span",{className:"text-[9px] font-semibold tracking-[0.2em] uppercase text-[var(--navy)] opacity-55 mb-1",children:s("cruisePanel.itinerary.dayLabel")}),(0,r.jsx)("span",{className:"text-[26px] font-semibold leading-none text-[var(--navy)]",children:String(a+1).padStart(2,"0")})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-[15px] font-semibold text-[var(--navy)] m-0 mb-1.5 leading-snug",children:t.title||o}),t.location&&(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-[10px] font-semibold tracking-[0.12em] uppercase text-[var(--teal)] mb-2",children:[(0,r.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",children:[(0,r.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"}),(0,r.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),t.location]}),t.image_key&&(0,r.jsx)("div",{className:"relative aspect-[16/9] mb-2 overflow-hidden bg-[rgba(25,45,98,0.06)]",children:(0,r.jsx)(n.default,{src:(0,x.ZC)(t.image_key),alt:t.title||o,fill:!0,sizes:"(max-width: 768px) 100vw, 480px",style:{objectFit:"cover"},unoptimized:!0,placeholder:"blur",blurDataURL:u.P,onError:(0,u.m)("/placeholder-boat.svg")})}),t.description&&(0,r.jsx)("p",{className:"text-[13px] leading-[1.6] text-[var(--navy)] opacity-80 m-0 mb-2",children:t.description}),t.activities&&t.activities.length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.activities.map((e,t)=>(0,r.jsx)("span",{className:"text-[10px] font-semibold tracking-[0.08em] uppercase text-[var(--navy)] bg-[rgba(25,45,98,0.06)] px-2 py-1",children:e},t))})]})]})}function y(e){var t,a,i,n,o,l;let{cabin:b,isLowest:u,shipName:m,selectedTripDate:g,onOpen:v}=e,{t:f,locale:y}=(0,d.Bd)(),j=(0,p.Ab)(y),w=Array.from(new Set([b.image_main,...b.images||[]].filter(e=>!!e&&(0,x.VP)(e)).map(e=>(0,x.ZC)(e)))),k=u?(0,r.jsx)("span",{className:"absolute top-2 left-2 px-2 py-0.5 bg-[var(--coral)] text-[var(--white)] text-[10px] font-bold tracking-[0.1em] uppercase rounded z-10 pointer-events-none",children:f("cruisePanel.dates.lowest")}):null,N=w.map((e,t)=>({src:e,alt:b.cabin_name,overlay:0===t?k:void 0})),S=[];(null==(t=b.facilities)?void 0:t.balcony)&&S.push(f("cabinFeatures.balconyShort")),(null==(a=b.facilities)?void 0:a.seaview)&&S.push(f("cabinFeatures.seaViewShort")),(null==(i=b.facilities)?void 0:i.bathtub)&&S.push(f("cabinFeatures.bathtub")),(null==(n=b.facilities)?void 0:n.private_jacuzzi)&&S.push(f("cabinFeatures.jacuzziShort")),(null==(o=b.facilities)?void 0:o.large_bed)&&S.push(f("cabinFeatures.largeBedShort"));let[C,_]=(0,c.B)(),z=null==(l=((null==C?void 0:C.get("destinations"))||"").split(",")[0])?void 0:l.trim(),I=`/contact?method=whatsapp&subject=booking-inquiry&boat=${encodeURIComponent(m)}&cabin=${encodeURIComponent(b.cabin_name)}${g?`&date=${g}`:""}${z?`&destination=${encodeURIComponent(z)}`:""}`;return(0,r.jsxs)("div",{className:"relative rounded-md border border-[rgba(25,45,98,0.12)] overflow-hidden bg-[var(--white)] flex flex-col h-full",children:[_,(0,r.jsxs)("div",{className:"relative bg-[rgba(25,45,98,0.06)]",children:[N.length>0?(0,r.jsx)(h.xH,{images:N,ariaLabel:b.cabin_name,controls:"arrows+counter",aspectRatio:"4 / 3",sizes:"(max-width: 768px) 100vw, 360px",fallbackSrc:"/placeholder-cabin.svg"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"aspect-[4/3] flex items-center justify-center text-[10px] uppercase tracking-[0.18em] text-[var(--navy)] opacity-40",children:f("cabinCard.noPhoto")}),k]}),(0,r.jsxs)("div",{className:"md:hidden absolute inset-x-0 bottom-0 bg-gradient-to-t from-[rgba(25,45,98,0.92)] via-[rgba(25,45,98,0.45)] to-transparent flex flex-col p-3 pt-10 text-[var(--white)] pointer-events-none z-20",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("div",{className:"text-[14px] font-semibold truncate drop-shadow-[0_1px_3px_rgba(0,0,0,0.4)]",children:b.cabin_name}),b.price>0&&(0,r.jsx)("div",{className:"text-[14px] font-bold whitespace-nowrap drop-shadow-[0_1px_3px_rgba(0,0,0,0.4)]",children:j(b.price)})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mt-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 text-[11px] opacity-90",children:[(0,r.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"9",cy:"7",r:"4"})]}),f("cabinCard.sleeps",{n:b.total_capacity})]}),(0,r.jsxs)(s.A,{href:I,className:"pointer-events-auto inline-flex items-center gap-1.5 px-3 py-1.5 bg-[var(--coral)] text-[var(--white)] hover:opacity-90 text-[10px] font-semibold tracking-[0.18em] uppercase transition-opacity",children:[(0,r.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),f("cabinCard.inquireNow")]})]})]})]}),(0,r.jsxs)("div",{className:"hidden md:flex md:flex-col p-3 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mb-1",children:[(0,r.jsx)("div",{className:"text-[13px] font-semibold text-[var(--navy)] truncate",children:b.cabin_name}),b.price>0&&(0,r.jsx)("div",{className:"text-[13px] font-bold text-[var(--coral)] whitespace-nowrap",children:j(b.price)})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 text-[11px] text-[var(--navy)] opacity-65 mb-1.5",children:[(0,r.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,r.jsx)("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"9",cy:"7",r:"4"})]}),f("cabinCard.sleeps",{n:b.total_capacity})]}),S.length>0&&(0,r.jsx)("ul",{className:"space-y-0.5 mb-3",children:S.slice(0,2).map(e=>(0,r.jsxs)("li",{className:"text-[11px] text-[var(--navy)] opacity-80 flex items-start gap-1",children:[(0,r.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--teal)",strokeWidth:"3",className:"mt-1 shrink-0",children:(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,r.jsx)("span",{children:e})]},e))}),(0,r.jsxs)("div",{className:"flex justify-end gap-2 mt-auto",children:[(0,r.jsxs)("button",{type:"button",onClick:v,className:"inline-flex items-center gap-1.5 px-3 py-1.5 border border-[rgba(25,45,98,0.25)] text-[var(--navy)] hover:bg-[rgba(25,45,98,0.06)] rounded-md text-[10px] font-semibold tracking-[0.18em] uppercase transition-colors",children:[(0,r.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M21 21l-4.35-4.35M11 6a5 5 0 015 5"}),(0,r.jsx)("circle",{cx:"11",cy:"11",r:"8"})]}),f("cabinCard.viewDetails")]}),(0,r.jsxs)(s.A,{href:I,className:"inline-flex items-center gap-1.5 px-3 py-1.5 border border-[var(--coral)] text-[var(--coral)] hover:bg-[rgba(232,78,42,0.06)] rounded-md text-[10px] font-semibold tracking-[0.18em] uppercase transition-colors",children:[(0,r.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),f("cabinCard.inquireNow")]})]})]})]})}}}]);
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.