1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4565,9225],{3757:()=>{},4489:(e,t,i)=>{Promise.resolve().then(i.bind(i,6422)),Promise.resolve().then(i.bind(i,4565)),Promise.resolve().then(i.bind(i,2994)),Promise.resolve().then(i.t.bind(i,3757,23))},4565:(e,t,i)=>{"use strict";i.r(t),i.d(t,{capture:()=>f,capturePageview:()=>b,identify:()=>y,initPostHog:()=>u,isPostHogConfigured:()=>c,isPostHogEnabled:()=>d,optOutPostHog:()=>x});var a=i(114),r=i(2994);let n="phc_sTCrfjmzijoMfFBWTBRkD6JcYSTm7YSN35kP47kCtmqb".trim(),s="https://eu.i.posthog.com".trim(),o=null,l=null,p=null;function c(){return n.length>0}function d(){return!!c()&&(0,a.vP)()}async function h(){await new Promise(e=>{let t=window.requestIdleCallback;t?t(()=>e(),{timeout:2e3}):window.setTimeout(e,1)});let{default:e}=await i.e(8229).then(i.bind(i,2535));return e.__loaded||e.init(n,{api_host:s,person_profiles:"always",autocapture:!0,capture_pageview:!1,capture_pageleave:!0,persistence:"localStorage+cookie",session_recording:{maskAllInputs:!0,maskTextSelector:"[data-ph-mask]"}}),o=e,m(e),e}function g(){return l||(d()?l=h():Promise.resolve(null))}function m(e){let t=(0,r.getOrCreateVisitorId)();t&&(e.register({kc_visitor_id:t}),e.setPersonProperties({kc_visitor_id:t}));try{var i;let t=null==(i=e.get_distinct_id)?void 0:i.call(e);t&&t!==p&&(p=t,(0,r.upsertVisitor)({posthog_distinct_id:t}))}catch{}}function u(){c()&&g().then(e=>{var t,i;if(e){if(!d()){null==(i=e.opt_out_capturing)||i.call(e);return}null==(t=e.opt_in_capturing)||t.call(e),m(e)}})}function x(){var e;null==o||null==(e=o.opt_out_capturing)||e.call(o)}async function b(e,t){let i=await g();i&&i.capture("$pageview",{$current_url:e,brand_slug:"komodocruises",...t})}function f(e,t){d()&&g().then(i=>{null==i||i.capture(e,t)})}function y(e,t){if(!d())return;let i=(e||"").trim();i&&g().then(e=>{if(!e)return;let a=(0,r.getOrCreateVisitorId)();e.identify(i,{email:i,...a?{kc_visitor_id:a}:{},...t})})}},6422:(e,t,i)=>{"use strict";i.d(t,{default:()=>u});var a=i(5155),r=i(2115),n=i(4193),s=i(5219),o=i(7819),l=i(6060),p=i(8275),c=i(7350),d=i(2641),h=i(7093),g=i(8229),m=i(1717);function u(e){var t;let i,l,d,{slug:g}=e,{t:u,locale:v}=(0,m.Bd)(),w=(0,h.Ab)(v),[S,k]=(0,r.useState)(null),[P,C]=(0,r.useState)([]),[z,W]=(0,r.useState)(!0),[N,R]=(0,r.useState)(null),T=["boat","itinerary","pricing"],[I,B]=(0,r.useState)("boat"),D=(0,r.useRef)(null),E=(0,r.useRef)(null),_=(0,r.useRef)(null);if((0,r.useEffect)(()=>{let e=window.location.hash.replace("#","");T.includes(e)&&B(e)},[]),(0,r.useEffect)(()=>{let e=_.current;if(_.current=I,null===e||e===I)return;window.location.hash!==`#${I}`&&window.history.replaceState(null,"",`#${I}`);let t=E.current;t&&t.scrollIntoView({behavior:"smooth",block:"start"})},[I]),(0,r.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await (0,c.ZP)(g);if(!e)return;t&&(k(t.ship),C(t.cabins))}catch{}finally{e&&W(!1)}})(),()=>{e=!1}},[g]),(0,r.useEffect)(()=>{S&&((0,n.ZB)({slug:S.slug,name:S.name,lowestPrice:S.lowestPrice,programType:S.programType||""}),(0,s.nX)({type:"product",ids:[S.boatId],name:S.name,category:S.destinations,value:S.lowestPrice,currency:"IDR"}))},[S]),z)return(0,a.jsxs)("div",{style:{minHeight:"80vh",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--bg-page)"},children:[(0,a.jsx)("div",{style:{width:48,height:48,borderRadius:"50%",border:"3px solid rgba(25,45,98,0.08)",borderTopColor:"var(--navy)",animation:"spin 0.9s linear infinite"}}),(0,a.jsx)("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})]});if(!S)return(0,a.jsxs)("div",{style:{minHeight:"60vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"0 24px",background:"var(--bg-page)"},children:[(0,a.jsx)("h1",{style:{color:"var(--navy)",fontSize:28,marginBottom:10},children:u("shipPage.notFound.title")}),(0,a.jsx)("p",{style:{color:"var(--text-body)",marginBottom:24},children:u("shipPage.notFound.desc")}),(0,a.jsx)(o.A,{href:"/ships",style:{background:"var(--coral)",color:"var(--white)",padding:"12px 28px",fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",textDecoration:"none"},children:u("shipPage.notFound.cta")})]});let U=S.imageMain||(null==(t=S.images)?void 0:t[0])||"/placeholder-boat.
1svg",A=(S.images||[]).filter(e=>e&&e!==U),$=S.lowestPrice>0,F=(i=new Set,l=[],(d=e=>{!e||i.has(e)||(i.add(e),l.push(e))})(U),A.forEach(d),l);return(0,a.jsxs)("div",{style:{background:"var(--bg-page)"},children:[(0,a.jsx)("style",{children:` 2 /* Mobile responsive overrides for inline-styled boat page sections */ 3 @media (max-width: 768px) { 4 .ship-hero-inner { padding: 70px 18px 40px !important; min-height: 56vh !important; } 5 .ship-breadcrumb { font-size: 10px !important; letter-spacing: 0.12em !important; gap: 6px !important; flex-wrap: wrap; } 6 .ship-hero-title-row { grid-template-columns: 1fr !important; gap: 18px !important; align-items: start !important; } 7 .ship-hero-title { font-size: clamp(32px, 9vw, 54px) !important; } 8 .ship-hero-subtitle { font-size: 14px !important; margin-top: 12px !important; } 9 .ship-hero-cta { padding: 13px 20px !important; font-size: 11px !important; align-self: stretch !important; justify-content: center; } 10 11 .ship-stats-grid { grid-template-columns: repeat(2, 1fr) !important; } 12 .ship-stats-cell { padding: 16px 10px !important; border-right: none !important; border-top: 1px solid rgba(255,255,255,0.06); } 13 .ship-stats-cell.cell-0, .ship-stats-cell.cell-1 { border-top: none; } 14 .ship-stats-cell.cell-0, .ship-stats-cell.cell-2 { border-right: 1px solid rgba(255,255,255,0.08) !important; } 15 .ship-stats-label { font-size: 9.5px !important; letter-spacing: 0.16em !important; margin-bottom: 6px !important; } 16 .ship-stats-value { font-size: 17px !important; } 17 18 .ship-gallery-pad { padding: 24px 16px 28px !important; } 19 .ship-gallery-header { margin-bottom: 18px !important; } 20 .ship-section-eyebrow { font-size: 10px !important; letter-spacing: 0.2em !important; } 21 .ship-section-title { font-size: 22px !important; line-height: 1.2 !important; } 22 23 .ship-pitch-pad { padding: 36px 18px !important; } 24 .ship-pitch-title { font-size: 22px !important; } 25 .ship-pitch-body { font-size: 14px !important; line-height: 1.65 !important; } 26 27 .ship-cabins-pad { padding: 48px 16px !important; } 28 .ship-cabins-header { margin-bottom: 24px !important; } 29 .ship-cabins-grid { grid-template-columns: 1fr !important; gap: 14px !important; } 30 31 .ship-amenities-pad { padding: 32px 16px !important; } 32 .ship-amenities-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; } 33 34 .ship-itin-pad { padding: 28px 16px 48px !important; } 35 .ship-itin-header { margin-bottom: 22px !important; } 36 .ship-itin-subtitle { font-size: 14px !important; } 37 38 .ship-charter-pad { padding: 28px 16px 48px !important; } 39 .ship-charter-header { margin-bottom: 24px !important; } 40 .ship-charter-tiers { grid-template-columns: 1fr !important; gap: 12px !important; margin-bottom: 28px !important; } 41 .ship-charter-tier { padding: 22px 18px 18px !important; } 42 .ship-charter-incl { padding: 22px 18px !important; grid-template-columns: 1fr !important; gap: 10px !important; } 43 } 44 @media (max-width: 420px) { 45 .ship-charter-tiers, .ship-amenities-grid { grid-template-columns: 1fr !important; } 46 } 47 `}),(0,a.jsxs)("section",{style:{position:"relative",minHeight:"62vh",overflow:"hidden",background:"var(--navy)"},children:[(0,a.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:`url('${U}')`,backgroundSize:"cover",backgroundPosition:"center"}}),(0,a.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(180deg, rgba(25,45,98,0.35) 0%, rgba(25,45,98,0.15) 40%, rgba(25,45,98,0.8) 78%, rgba(25,45,98,0.95) 100%)"}}),(0,a.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:3,background:"var(--gold)"}}),(0,a.jsxs)("div",{className:"ship-hero-inner",style:{position:"relative",maxWidth:1280,margin:"0 auto",padding:"100px 24px 56px",minHeight:"62vh",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,a.jsxs)("nav",{"aria-label":u("shipPage.breadcrumb.aria"),className:"ship-breadcrumb",style:{display:"flex",alignItems:"center",gap:10,fontSize:12,letterSpacing:"0.15em",textTransform:"uppercase",color:"rgba(255,255,255,0.65)"},children:[(0,a.jsx)(o.A,{href:"/",style:{color:"inherit",textDecoration:"none"},children:u("shipPage.breadcrumb.home")}),(0,a.jsx)("span",{style:{color:"var(--gold)"},children:"/"}),(0,a.jsx)(o.A,{href:"/ships",style:{color:"inherit",textDecoration:"none"},children:u("shipPage.breadcrumb.fleet")}),(0,a.jsx)("span",{style:{color:"var(--gold)"},children:"/"}),(0,a.jsx)("span",{style:{color:"var(--white)"},children:S.name})]}),(0,a.jsxs)("div",{className:"ship-hero-title-row",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:24,alignItems:"end"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{style:{display:"inline-block",fontSize:11,fontWeight:600,letterSpacing:"0.28em",textTransform:"uppercase",color:"var(--gold)",marginBottom:14},children:u("shipPage.hero.kicker")}),(0,a.jsx)("h1",{className:"ship-hero-title",style:{fontSize:"clamp(40px, 7vw, 84px)",lineHeight:1,fontWeight:600,color:"var(--white)",margin:0,letterSpacing:"-0.02em",textTransform:"uppercase",textShadow:"0 4px 30px rgba(0,0,0,0.35)"},children:S.name}),S.destinations&&(0,a.jsxs)("p",{className:"ship-hero-subtitle",style:{marginTop:16,fontSize:17,color:"rgba(255,255,255,0.82)",maxWidth:620,lineHeight:1.5},children:[S.tripName&&(0,a.jsxs)("span",{style:{color:"var(--gold)",fontWeight:600},children:[S.tripName," \xb7"," "]}),S.destinations]})]}),(0,a.jsxs)(o.A,{href:`/contact?method=whatsapp&subject=booking-inquiry&boat=${encodeURIComponent(S.name)}`,className:"ship-hero-cta",style:{background:"var(--coral)",color:"var(--white)",padding:"16px 28px",fontSize:12,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",textDecoration:"none",display:"inline-flex",alignItems:"center",gap:10,boxShadow:"0 8px 28px rgba(232,78,42,0.4)",whiteSpace:"nowrap"},children:[u("shipPage.hero.bookCta"),(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,a.jsx)("polyline",{points:"9 18 15 12 9 6"})})]})]})]})]}),(0,a.jsx)("section",{style:{background:"var(--navy)",borderTop:"1px solid rgba(212,175,55,0.2)"},children:(0,a.jsx)("div",{className:"ship-stats-grid",style:{maxWidth:1280,margin:"0 auto",padding:"0 24px",display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))"},children:[{label:u("shipPage.stats.guests"),value:S.totalCapacity>0?String(S.totalCapacity):"â"},{label:u("shipPage.stats.cabins"),value:S.cabinCount>0?String(S.cabinCount):"â"},{label:u("shipPage.stats.voyage"),value:S.tripDuration||"â"},{label:u("shipPage.stats.priceFrom"),value:$?w(S.lowestPrice):u("common.onRequest")}].map((e,t,i)=>(0,a.jsxs)("div",{className:`ship-stats-cell cell-${t}`,style:{padding:"28px 20px",borderRight:t<i.length-1?"1px solid rgba(255,255,255,0.08)":"none",textAlign:"center"},children:[(0,a.jsx)("div",{className:"ship-stats-label",style:{fontSize:11,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--gold)",fontWeight:600,marginBottom:10},children:e.label}),(0,a.jsx)("div",{className:"ship-stats-value",style:{fontSize:22,fontWeight:600,color:"var(--white)",letterSpacing:"-0.01em"},children:e.value})]},e.label))})}),(0,a.jsx)("div",{ref:E,"aria-hidden":"true",style:{height:0,scrollMarginTop:"var(--site-nav-h, 0px)"}}),(0,a.jsx)("nav",{ref:D,role:"tablist","aria-label":u("shipPage.tabsAria"),className:"sticky z-[5] bg-[var(--white)] border-b border-[rgba(25,45,98,0.08)] flex overflow-x-auto",style:{to
47p:"var(--site-nav-offset, 0px)",transition:"top 200ms ease"},children:[{key:"boat",label:u("shipPage.tabs.boat")},{key:"itinerary",label:u("shipPage.tabs.itinerary")},{key:"pricing",label:u("shipPage.tabs.pricing")}].map(e=>(0,a.jsx)("button",{type:"button",role:"tab","aria-selected":I===e.key,onClick:()=>B(e.key),className:`flex-1 min-w-max whitespace-nowrap px-4 py-3 text-[12px] font-semibold tracking-[0.18em] uppercase transition-colors ${I===e.key?"text-[var(--navy)] border-b-2 border-[var(--coral)]":"text-[var(--navy)] opacity-55 border-b-2 border-transparent hover:opacity-90"}`,children:e.label},e.key))}),"boat"===I&&(0,a.jsxs)(a.Fragment,{children:[A.length>0&&(0,a.jsx)("section",{style:{background:"var(--bg-page)"},children:(0,a.jsxs)("div",{className:"ship-gallery-pad",style:{maxWidth:1400,margin:"0 auto",padding:"32px 24px 40px"},children:[(0,a.jsxs)("div",{className:"ship-gallery-header",style:{maxWidth:680,marginBottom:28},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600,display:"block",marginBottom:10},children:u("shipPage.gallery.eyebrow")}),(0,a.jsx)("h2",{className:"ship-section-title",style:{fontSize:30,fontWeight:500,color:"var(--navy)",margin:0,letterSpacing:"-0.01em"},children:u("shipPage.gallery.title")})]}),(0,a.jsx)("div",{className:"ship-gallery",style:{display:"grid",gridTemplateColumns:"repeat(12, 1fr)",gridAutoRows:"200px",gap:10},children:A.map((e,t)=>{let i=F.indexOf(e);return(0,a.jsx)(b,{src:e,index:t,count:A.length,onClick:()=>R(i>=0?i:0)},`${e}-${t}`)})}),(0,a.jsx)("style",{children:` 48 @media (max-width: 768px) { 49 .ship-gallery { 50 grid-template-columns: repeat(2, 1fr) !important; 51 grid-auto-rows: 180px !important; 52 } 53 .ship-gallery > div { 54 grid-column: span 1 !important; 55 grid-row: span 1 !important; 56 } 57 } 58 `})]})}),S.description&&(0,a.jsx)("section",{style:{background:"var(--white)"},children:(0,a.jsxs)("div",{className:"ship-pitch-pad",style:{maxWidth:760,margin:"0 auto",padding:"56px 24px",textAlign:"center"},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{display:"inline-block",fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600,marginBottom:12},children:u("shipPage.vessel.eyebrow")}),(0,a.jsxs)("h2",{className:"ship-pitch-title",style:{fontSize:28,fontWeight:500,color:"var(--navy)",lineHeight:1.2,margin:"0 0 18px",letterSpacing:"-0.01em"},children:[u("shipPage.vessel.titleLead")," ",(0,a.jsx)("span",{style:{color:"var(--coral)"},children:u("shipPage.vessel.titleAccent")})]}),(0,a.jsx)("p",{className:"ship-pitch-body",style:{fontSize:15.5,lineHeight:1.7,color:"var(--text-body)",margin:0},children:S.description})]})}),P.length>0&&(0,a.jsx)(y,{cabins:P,shipSlug:S.slug}),S.facilityNames&&S.facilityNames.length>0&&(0,a.jsx)("section",{style:{background:"var(--bg-page)"},children:(0,a.jsxs)("div",{className:"ship-amenities-pad",style:{maxWidth:1100,margin:"0 auto",padding:"48px 24px"},children:[(0,a.jsxs)("div",{style:{marginBottom:18,display:"flex",alignItems:"baseline",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600},children:u("shipPage.amenities.eyebrow")}),(0,a.jsxs)("span",{style:{fontSize:12,color:"var(--text-muted)"},children:[S.facilityNames.length," ",u("shipPage.amenities.includedSuffix")]})]}),(0,a.jsx)("div",{className:"ship-amenities-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:8},children:S.facilityNames.map(e=>(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9,padding:"9px 12px",background:"var(--white)",border:"1px solid var(--border)"},children:[(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--teal)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,a.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,a.jsx)("span",{style:{fontSize:12.5,fontWeight:500,color:"var(--navy)",letterSpacing:.15},children:e})]},e))})]})}),(0,a.jsx)(j,{eyebrow:u("shipPage.ctaBoat.eyebrow"),title:u("shipPage.ctaBoat.title"),description:u("shipPage.ctaBoat.desc"),buttonLabel:u("shipPage.ctaBoat.btn"),href:`/contact?method=whatsapp&subject=itinerary-inquiry-${S.slug}&boat=${encodeURIComponent(S.name)}`})]}),"itinerary"===I&&(0,a.jsxs)(a.Fragment,{children:[S.itinerary&&S.itinerary.length>0&&(0,a.jsx)("section",{style:{background:"var(--white)"},children:(0,a.jsxs)("div",{className:"ship-itin-pad",style:{maxWidth:1100,margin:"0 auto",padding:"32px 24px 80px"},children:[(0,a.jsxs)("div",{className:"ship-itin-header",style:{textAlign:"center",maxWidth:680,margin:"0 auto 32px"},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600,display:"block",marginBottom:12}
58,children:u("shipPage.itinerarySection.eyebrow")}),(0,a.jsx)("h2",{className:"ship-section-title",style:{fontSize:32,fontWeight:500,color:"var(--navy)",margin:"0 0 12px",letterSpacing:"-0.01em"},children:u("shipPage.itinerarySection.title")}),(0,a.jsx)("p",{className:"ship-itin-subtitle",style:{fontSize:15,lineHeight:1.65,color:"var(--text-body)",margin:0},children:u("shipPage.itinerarySection.subtitle")})]}),(0,a.jsx)("ol",{style:{listStyle:"none",padding:0,margin:0},children:S.itinerary.map((e,t)=>(0,a.jsx)(p.s,{day:e,index:t,isLast:t===S.itinerary.length-1},t))})]})}),(0,a.jsx)(j,{eyebrow:u("shipPage.ctaItinerary.eyebrow"),title:u("shipPage.ctaItinerary.title"),description:u("shipPage.ctaItinerary.desc"),buttonLabel:u("shipPage.ctaItinerary.btn"),href:`/contact?method=whatsapp&subject=charter-inquiry-${S.slug}&boat=${encodeURIComponent(S.name)}¬e=${encodeURIComponent("Private charter")}`})]}),"pricing"===I&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{ship:S}),(0,a.jsx)(j,{eyebrow:u("shipPage.ctaPricing.eyebrow"),title:u("shipPage.ctaPricing.title"),description:u("shipPage.ctaPricing.desc"),buttonLabel:u("shipPage.ctaPricing.btn"),href:`/contact?method=whatsapp&subject=charter-quote-${S.slug}&boat=${encodeURIComponent(S.name)}¬e=${encodeURIComponent("Charter quote")}`})]}),null!==N&&F.length>0&&(0,a.jsx)(x,{images:F,startIndex:N,onClose:()=>R(null)}),(0,a.jsx)("span",{hidden:!0,children:u("nav.ships")})]})}function x(e){let{images:t,startIndex:i,onClose:n}=e,{t:s}=(0,m.Bd)(),[o,l]=(0,r.useState)(i),p=t.length>1,c=()=>l(e=>(e+1)%t.length),d=()=>l(e=>(e-1+t.length)%t.length);(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key?n():p&&"ArrowLeft"===e.key?d():p&&"ArrowRight"===e.key&&c()};return window.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=""}},[p,n]);let h=(0,r.useRef)(null);return(0,a.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":s("common.imageGallery"),onClick:n,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.94)",zIndex:1100,display:"flex",alignItems:"center",justifyContent:"center",padding:24,animation:"lbFadeIn 0.18s ease-out"},children:[(0,a.jsx)("button",{type:"button",onClick:n,"aria-label":s("common.close"),style:{position:"absolute",top:20,right:20,width:44,height:44,borderRadius:"50%",background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)",color:"#fff",cursor:"pointer",fontSize:22,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"\xd7"}),(0,a.jsxs)("div",{onClick:e=>e.stopPropagation(),onTouchStart:e=>{h.current=e.touches[0].clientX},onTouchEnd:e=>{if(null===h.current||!p)return;let t=e.changedTouches[0].clientX-h.current;t>40?d():t<-40&&c(),h.current=null},style:{position:"relative",width:"min(1200px, 92vw)",height:"82vh"}
58,children:[(0,a.jsx)("img",{src:t[o],alt:s("common.photoNofM",{n:o+1,m:t.length}),onError:(0,g.m)("/placeholder-boat.svg"),style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),d()},"aria-label":s("common.previous"),style:{position:"absolute",left:-64,top:"50%",transform:"translateY(-50%)",width:50,height:50,borderRadius:"50%",background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)",color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{d:"M15 18l-6-6 6-6"})})}),(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),c()},"aria-label":s("common.next"),style:{position:"absolute",right:-64,top:"50%",transform:"translateY(-50%)",width:50,height:50,borderRadius:"50%",background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)",color:"#fff",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("path",{d:"M9 18l6-6-6-6"})})}),(0,a.jsxs)("div",{style:{position:"absolute",bottom:-34,left:0,right:0,textAlign:"center",color:"rgba(255,255,255,0.7)",fontSize:13,fontWeight:500,letterSpacing:"0.05em"},children:[o+1," / ",t.length]})]})]}),(0,a.jsx)("style",{children:"@keyframes lbFadeIn { from { opacity: 0 } to { opacity: 1 } }"})]})}function b(e){let{src:t,index:i,count:n,onClick:s}=e,{t:o}=(0,m.Bd)(),[l,p]=(0,r.useState)(!1),c=[{col:"span 7",row:"span 2"},{col:"span 5",row:"span 1"},{col:"span 5",row:"span 1"},{col:"span 4",row:"span 1"},{col:"span 4",row:"span 1"},{col:"span 4",row:"span 1"}][i]||{col:"span 6",row:"span 1"},d=n<3?{col:"span 12",row:"span 2"}:c;return(0,a.jsxs)("div",{role:"button",tabIndex:0,"aria-label":o("common.openPhotoN",{n:i+1}),onClick:s,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s())},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{gridColumn:d.col,gridRow:d.row,position:"relative",overflow:"hidden",cursor:"zoom-in",background:"rgba(25,45,98,0.06)"},children:[(0,a.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:`url('${t}')`,backgroundSize:"cover",backgroundPosition:"center",transition:"transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94)",transform:l?"scale(1.08)":"scale(1)"}}),(0,a.jsx)("div",{style:{position:"absolute",inset:0,background:l?"linear-gradient(180deg, rgba(25,45,98,0) 0%, rgba(25,45,98,0.35) 100%)":"linear-gradient(180deg, rgba(25,45,98,0) 0%, rgba(25,45,98,0.15) 100%)",transition:"background 0.3s"}})]})}function f(e){let{ship:t}=e,{t:i}=(0,m.Bd)(),r=[{days:3,label:i("shipPage.charter.tiers.shortEscape")},{days:4,label:i("shipPage.charter.tiers.longWeekend"),popular:!0},{days:6,label:i("shipPage.charter.tiers.classicVoyage")},{days:8,label:i("shipPage.charter.tiers.grandExpedition")}],n=[i("shipPage.charter.inclusions.exclusive"),i("shipPage.charter.inclusions.allCabins"),i("shipPage.charter.inclusions.fullCrew"),i("shipPage.charter.inclusions.allMeals"),i("shipPage.charter.inclusions.snorkel"),i("shipPage.charter.inclusions.parkFees")];return(0,a.jsx)("section",{style:{background:"var(--white)"},children:(0,a.jsxs)("div",{className:"ship-charter-pad",style:{maxWidth:1280,margin:"0 auto",padding:"32px 24px 80px"},children:[(0,a.jsxs)("div",{className:"ship-charter-header",style:{textAlign:"center",maxWidth:720,margin:"0 auto 36px"},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600,display:"block",marginBottom:12},children:i("shipPage.charter.eyebrow")}),(0,a.jsx)("h2",{className:"ship-section-title",style:{fontSize:32,fontWeight:600,color:"var(--navy)",letterSpacing:"-0.01em",margin:"0 0 14px",lineHeight:1.15},children:i("shipPage.charter.titleFormat",{ship:t.name})}),(0,a.jsx)("p",{className:"ship-itin-subtitle",style:{fontSize:15,lineHeight:1.65,color:"var(--text-body)",margin:0},children:i("shipPage.charter.desc")})]}),(0,a.jsx)("div",{className:"ship-charter-tiers",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:16,marginBottom:40},children:r.map(e=>(0,a.jsxs)("div",{className:"ship-charter-tier",style:{position:"relative",background:"var(--white)",border:e.popular?"1.5px solid var(--coral)":"1px solid var(--border)",padding:"28px 22px 24px",display:"flex",flexDirection:"column",boxShadow:e.popular?"0 12px 32px rgba(232,78,42,0.10)":"0 2px 8px rgba(25,45,98,0.04)"},children:[e.popular&&(0,a.jsx)("span",{style:{position:"absolute",top:-10,left:22,background:"var(--coral)",color:"var(--white)",fontSize:10,fontWeight:700,letterSpacing:"0.18em",textTransform:"uppercase",padding:"4px 10px"},children:i("shipPage.charter.mostPopular")}),(0,a.jsx)("span",{style:{fontSize:10,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--text-muted)",fontWeight:600,marginBottom:8},children:e.label}),(0,a.jsx)("div",{style:{fontSize:30,fontWeight:600,color:"var(--navy)",lineHeight:1,marginBottom:6},children:i("shipPage.charter.daysFormat",{n:e.days})}),(0,a.jsx)("div",{style:{fontSize:13,color:"var(--text-muted)",marginBottom:20},children:i("shipPage.charter.wholeBoat")}),(0,a.jsx)("div",{style:{fontSize:22,fontWeight:600,color:"var(--coral)",lineHeight:1,marginBottom:4},children:i("common.onRequest")}),(0,a.jsx)("div",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:22},children:i("shipPage.charter.tailoredQuote")}),(0,a.jsx)(o.A,{href:`/contact?method=whatsapp&subject=charter-${t.slug}-${e.days}d`,style:{marginTop:"auto",background:e.popular?"var(--coral)":"transparent",color:e.popular?"var(--white)":"var(--navy)",border:e.popular?"1px solid var(--coral)":"1px solid var(--border-strong)",padding:"11px 16px",fontSize:11,fontWeight:700,letterSpacing:"0.15em",textTransform:"uppercase",textDecoration:"none",textAlign:"center"},children:i("shipPage.charter.requestQuote")})]},e.days))}),(0,a.jsxs)("div",{className:"ship-charter-incl",style:{background:"var(--bg-page)",padding:"32px 28px",display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"14px 28px"},children:[(0,a.jsx)("div",{style:{gridColumn:"1 / -1",marginBottom:4},children:(0,a.jsx)("span",{style:{fontSize:10,letterSpacing:"0.22em",textTransform:"uppercase",color:"var(--text-muted)",fontWeight:600},children:i("shipPage.charter.everyIncludes")})}),n.map(e=>(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,fontSize:13.5,color:"var(--navy)"},children:[(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--teal)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:(0,a.jsx)("polyline",{points:"20 6 9 17 4 12"})}),e]},e))]})]})})}function y(e){let{cabins:t,shipSlug:i}=e,{t:n}=(0,m.Bd)(),[s,o]=(0,r.useState)(null),p=(0,r.useMemo)(()=>(0,d.GD)(t),[t]);return(0,r.useEffect)(()=>
58{if(!s)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&o(null)};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[s]),(0,a.jsxs)("section",{style:{background:"var(--bg-page)"},children:[(0,a.jsxs)("div",{className:"ship-cabins-pad",style:{maxWidth:1280,margin:"0 auto",padding:"80px 24px"},children:[(0,a.jsxs)("div",{className:"ship-cabins-header",style:{maxWidth:680,marginBottom:40},children:[(0,a.jsx)("span",{className:"ship-section-eyebrow",style:{fontSize:11,letterSpacing:"0.25em",textTransform:"uppercase",color:"var(--teal)",fontWeight:600,display:"block",marginBottom:12},children:n("shipPage.cabinsSection.eyebrow")}),(0,a.jsx)("h2",{className:"ship-section-title",style:{fontSize:32,fontWeight:500,color:"var(--navy)",margin:0,letterSpacing:"-0.01em"},children:n("shipPage.cabinsSection.title")})]}),(0,a.jsx)("div",{className:"ship-cabins-grid",style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:18},children:p.map((e,t)=>(0,a.jsx)(v,{cabin:e,shipSlug:i,onOpen:()=>o(e)},`${e.cabin_id}-${t}`))})]}),s&&(0,a.jsx)(l.A,{cabin:s,shipSlug:i,onClose:()=>o(null)})]})}function v(e){var t,i,n,s,l;let{cabin:p,shipSlug:d,onOpen:g}=e,{locale:u}=(0,m.Bd)(),x=(0,h.Ab)(u),{t:b}=(0,m.Bd)(),[f,y]=(0,r.useState)(!1),v=p.image_main?(0,c.ZC)(p.image_main):"/placeholder-boat.svg",j=[];(null==(t=p.facilities)?void 0:t.seaview)&&j.push(b("cabinFeatures.seaView")),(null==(i=p.facilities)?void 0:i.balcony)&&j.push(b("cabinFeatures.balconyShort")),(null==(n=p.facilities)?void 0:n.bathtub)&&j.push(b("cabinFeatures.bathtub")),(null==(s=p.facilities)?void 0:s.private_jacuzzi)&&j.push(b("cabinFeatures.jacuzziShort")),(null==(l=p.facilities)?void 0:l.large_bed)&&j.push(b("cabinFeatures.largeBed"));let w=`/contact?method=whatsapp&subject=cabin-${d}-${encodeURIComponent(p.cabin_name)}`;return(0,a.jsxs)("div",{role:"button",tabIndex:0,"aria-label":b("cabinModal.ariaViewCabin",{name:p.cabin_name}),onClick:g,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),g())},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),style:{cursor:"pointer",display:"flex",flexDirection:"column",background:"var(--white)",border:`1px solid ${f?"var(--border-strong)":"var(--border)"}`,boxShadow:f?"0 12px 32px rgba(25,45,98,0.12)":"0 2px 8px rgba(25,45,98,0.04)",transform:f?"translateY(-3px)":"translateY(0)",transition:"all 0.3s",overflow:"hidden",textAlign:"left"},children:[(0,a.jsxs)("div",{style:{position:"relative",aspectRatio:"4 / 3",overflow:"hidden"},children:[(0,a.jsx)("div",{style:{position:"absolute",inset:0,backgroundImage:`url('${v}')`,backgroundSize:"cover",backgroundPosition:"center",transition:"transform 0.5s",transform:f?"scale(1.06)":"scale(1)"}}),(0,a.jsx)("div",{style:{position:"absolute",inset:0,background:f?"linear-gradient(180deg, rgba(25,45,98,0) 55%, rgba(25,45,98,0.55) 100%)":"linear-gradient(180deg, rgba(25,45,98,0) 60%, rgba(25,45,98,0.35) 100%)",transition:"background 0.3s"}})]}),(0,a.jsxs)("div",{style:{padding:"18px 20px 20px",display:"flex",flexDirection:"column",flex:1},children:[(0,a.jsx)("h3",{style:{fontSize:17,fontWeight:600,color:"var(--navy)",margin:"0 0 6px",letterSpacing:"-0.005em"},children:p.cabin_name}),(0,a.jsx)("div",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:12},children:b("cabinCard.sleeps",{n:p.total_capacity})}),j.length>0&&(0,a.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginBottom:14},children:j.slice(0,4).map(e=>(0,a.jsx)("span",{style:{fontSize:10,fontWeight:600,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--teal)",background:"rgba(10,158,168,0.08)",padding:"3px 8px"},children:e},e))}),(0,a.jsxs)("div",{style:{marginTop:"auto",paddingTop:12,borderTop:"1px solid var(--border)",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{style:{fontSize:10,letterSpacing:"0.15em",textTransform:"uppercase",color:"var(--text-muted)",fontWeight:600},children:b("shipPage.stats.priceFrom")}),(0,a.jsx)("div",{style:{fontSize:18,fontWeight:600,color:"var(--navy)",lineHeight:1,marginTop:3},children:p.price>0?x(p.price):b("common.onRequest")})]}),(0,a.jsxs)(o.A,{href:w,onClick:e=>e.stopPropagation(),"aria-label":b("cabinModal.ariaBookCabin",{name:p.cabin_name}),style:{fontSize:11,fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--white)",background:"var(--coral)",padding:"10px 14px",display:"inline-flex",alignItems:"center",gap:6,textDecoration:"none",transition:"transform 0.2s, box-shadow 0.2s",transform:f?"translateX(2px)":"translateX(0)",boxShadow:f?"0 6px 16px rgba(232,78,42,0.32)":"none"},children:[(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"
58currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M20.52 3.48A11.86 11.86 0 0 0 12.02 0C5.45 0 .1 5.34.1 11.92c0 2.1.55 4.15 1.6 5.96L0 24l6.27-1.64a11.9 11.9 0 0 0 5.74 1.46h.01c6.57 0 11.91-5.34 11.92-11.92a11.85 11.85 0 0 0-3.42-8.42zM12.02 21.8h-.01a9.86 9.86 0 0 1-5.03-1.38l-.36-.21-3.72.97 1-3.62-.24-.37a9.83 9.83 0 0 1-1.5-5.27c0-5.45 4.43-9.88 9.88-9.88 2.64 0 5.12 1.03 6.98 2.9a9.81 9.81 0 0 1 2.89 6.99c0 5.45-4.43 9.87-9.89 9.87zm5.42-7.4c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.66.15-.2.3-.76.97-.94 1.17-.17.2-.34.22-.64.07-.3-.15-1.26-.46-2.4-1.48-.89-.79-1.49-1.77-1.66-2.07-.17-.3-.02-.46.13-.61.13-.14.3-.36.45-.54.15-.18.2-.3.3-.5.1-.2.05-.38-.02-.53-.07-.15-.66-1.6-.91-2.18-.24-.57-.48-.5-.66-.5-.17 0-.36-.02-.56-.02-.2 0-.52.07-.79.37-.27.3-1.03 1.01-1.03 2.46s1.06 2.86 1.21 3.06c.15.2 2.09 3.19 5.06 4.47.71.3 1.26.49 1.69.63.71.22 1.35.19 1.86.12.57-.09 1.76-.72 2-1.42.25-.7.25-1.29.17-1.42-.07-.13-.27-.2-.57-.35z"})}),b("cabinModal.cta.bookCabin")]})]})]})]})}function j(e){let{eyebrow:t,title:i,description:n,buttonLabel:s,onClick:l,href:p,secondaryLabel:c,secondaryHref:d}=e,[h,g]=(0,r.useState)(null),m={background:"var(--yellow)",color:"var(--navy)",border:"none",borderRadius:5,padding:"16px 40px",fontSize:14,fontWeight:600,letterSpacing:2.5,textTransform:"uppercase",cursor:"pointer",transition:"transform 0.15s, box-shadow 0.15s",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",textDecoration:"none",display:"inline-flex",alignItems:"center",..."primary"===h?{transform:"scale(1.04)",boxShadow:"0 4px 12px rgba(0,0,0,0.2)"}:{}},u={background:"rgba(0,0,0,0.25)",color:"var(--white)",border:"1.5px solid rgba(255,255,255,0.3)",borderRadius:5,padding:"16px 40px",fontSize:14,fontWeight:500,letterSpacing:2.5,textTransform:"uppercase",cursor:"pointer",transition:"border-color 0.2s, transform 0.15s",display:"inline-flex",alignItems:"center",textDecoration:"none",..."secondary"===h?{borderColor:"rgba(255,255,255,0.6)",transform:"scale(1.03)"}:{}};return(0,a.jsxs)("section",{style:{position:"relative",overflow:"hidden",padding:"80px 0",color:"var(--white)",background:"linear-gradient(92deg, rgba(25,45,98,0.35) 0%, rgba(25,45,98,0) 30%, rgba(25,45,98,0) 70%, rgba(25,45,98,0.35) 100%), var(--coral)"},children:[(0,a.jsx)("style",{children:` 59 @keyframes tabCtaPulse { 60 0%, 100% { opacity: 1; } 61 50% { opacity: 0.6; } 62 } 63 @keyframes tabCtaShimmer { 64 0% { transform: translateX(-100%); } 65 100% { transform: translateX(100%); } 66 } 67 .tab-cta-dot { border-radius: 50% !important; } 68 @media (max-width: 560px) { 69 .tab-cta-buttons { 70 flex-direction: column !important; 71 align-items: stretch !important; 72 } 73 .tab-cta-buttons a, 74 .tab-cta-buttons button { 75 justify-content: center; 76 padding: 14px 24px !important; 77 font-size: 12px !important; 78 } 79 .tab-cta-wrap { padding: 0 20px !important; } 80 .tab-cta-title { font-size: 28px !important; } 81 } 82 `}),(0,a.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%)",animation:"tabCtaShimmer 4s ease-in-out infinite",pointerEvents:"none"}}),(0,a.jsxs)("div",{className:"tab-cta-wrap",style:{position:"relative",zIndex:1,maxWidth:640,margin:"0 auto",padding:"0 40px",textAlign:"center"},children:[(0,a.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,a.jsx)("div",{className:"tab-cta-dot",style:{width:7,height:7,background:"var(--gold)",animation:"tabCtaPulse 1.5s ease-in-out infinite",flexShrink:0}}),(0,a.jsx)("span",{style:{fontSize:11,letterSpacing:1.5,textTransform:"uppercase",color:"var(--white)",fontWeight:500,opacity:.75},children:t})]}),(0,a.jsx)("h2",{className:"tab-cta-title",style:{fontSize:42,fontWeight:600,color:"var(--white)",margin:"0 0 14px",letterSpacing:1,lineHeight:1.15,textTransform:"uppercase"},children:i}),(0,a.jsx)("p",{style:{fontSize:15,color:"rgba(255,255,255,0.75)",margin:"0 0 36px",lineHeight:1.65},children:n}),(0,a.jsxs)("div",{className:"tab-cta-buttons",style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[p?(0,a.jsx)(o.A,{href:p,onMouseEnter:()=>g("primary"),onMouseLeave:()=>g(null),style:m,children:s}):(0,a.jsx)("button",{type:"button",onClick:l,onMouseEnter:()=>g("primary"),onMouseLeave:()=>g(null),style:m,children:s}),c&&d&&(0,a.jsx)(o.A,{href:d,onMouseEnter:()=>g("secondary"),onMouseLeave:()=>g(null),style:u,children:c})]})]})]})}},7093:(e,t,i)=>{"use strict";i.d(t,{Ab:()=>h,FxProvider:()=>d});var a=i(5155),r=i(2115);let n={id:"IDR",en:"USD",de:"EUR",fr:"EUR",it:"EUR",es:"EUR",nl:"EUR",pt:"EUR",ja:"JPY",ko:"KRW",ru:"RUB","zh-CN":"CNY","zh-TW":"TWD",ar:"USD"},s={id:"id-ID",en:"en-US",de:"de-DE",fr:"fr-FR",it:"it-IT",es:"es-ES",nl:"nl-NL",pt:"pt-PT",ja:"ja-JP",ko:"ko-KR",ru:"ru-RU","zh-CN":"zh-CN","zh-TW":"zh-TW",ar:"ar-AE"},o={IDR:1,USD:1/17507,EUR:1/20585,JPY:1/111,KRW:1/11.78,RUB:1/238,CNY:1/2577,TWD:1/557},l="kc:fx";async function p(){try{let e=await fetch("https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/idr.json",{cache:"no-store"});if(e.ok){let t=await e.json();if(null==t?void 0:t.idr)return{IDR:1,USD:t.idr.usd??o.USD,EUR:t.idr.eur??o.EUR,JPY:t.idr.jpy??o.JPY,KRW:t.idr.krw??o.KRW,RUB:t.idr.rub??o.RUB,CNY:t.idr.cny??o.CNY,TWD:t.idr.twd??o.TWD}}}catch{}try{let e=await fetch("https://open.er-api.com/v6/latest/IDR",{cache:"no-store"});if(e.ok){let t=await e.json();if(null==t?void 0:t.rates)return{IDR:1,USD:t.rates.USD??o.USD,EUR:t.rates.EUR??o.EUR,JPY:t.rates.JPY??o.JPY,KRW:t.rates.KRW??o.KRW,RUB:t.rates.RUB??o.RUB,CNY:t.rates.CNY??o.CNY,TWD:t.rates.TWD??o.TWD}}}catch{}return null}let c=(0,r.createContext)({rates:o,isLoading:!1});function d(e){let{children:t}=e,[i,n]=(0,r.useState)(o),[s,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(l);if(!e)return null;let t=JSON.parse(e);if(!(null==t?void 0:t.rates)||"number"!=typeof t.ts)return null;return t}catch{return null}}();if(e&&Date.now()-e.ts<36e5)return void n(e.rates);e&&n(e.rates);let t=!1;return d(!0),p().then(e=>{if(!t&&e){n(e);try{window.localStorage.setItem(l,JSON.stringify({rates:e,ts:Date.now()}))}catch{}}}).finally(()=>{t||d(!1)}),()=>{t=!0}},[]),(0,a.jsx)(c.Provider,{value:{rates:i,isLoading:s},children:t})}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Contact for price",{rates:i}=(0,r.useContext)(c);return(0,r.useCallback)(a=>(function(e,t,i){let a,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Contact for price";if(0===e)return r;let{value:l,currency:p}={value:function(e){let t;if(0===e)return 0;let i=Math.abs(e);return Math.round(e/(t=i<50?1:i<100?5:i<1e3?10:i<1e4?50:i<1e5?100:i<1e6?1e3:1e4))*t}(e*(i[a=n[t]??"USD"]??o[a])),currency:a};return new Intl.NumberFormat(s[t]??"en-US",{style:"currency",currency:p,minimumFractionDigits:0,maximumFractionDigits:0}).format(l)})(a,e,i,t),[e,i,t])}}},e=>{e.O(0,[5964,9756,5772,3459,1717,2994,7819,7350,3001,8275,8441,6511,7358],()=>e(e.s=4489)),_N_E=e.O()}]);
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.