PageSourceSearch

https://www.pgcruises.com/_next/static/chunks/8552.2c0f5e566f7ecddf.js

js pgcruises.com collected 2026-09-25 02:58:53 UTC 14,062 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8552],{24210:(e,a,l)=>{l.d(a,{N:()=>s});let s=e=>{let a="span";if("span"===e||"p"===e)return a;let l=["h1","h2","h3","h4","h5","h6","span"],s=l.indexOf(e);return -1===s||s===l.length-1?a:l[s+1]}},36249:(e,a,l)=>{l.d(a,{R:()=>m,q:()=>p});var s=l(54568),n=l(46350),t=l(61773),i=l(66050),r=l(34436),o=l(92903),d=l(91236),c=l(1934);let m=e=>{var a;let{image:l,headline:m,headlineTag:p="span",clickableText:x,link:u,label:b,children:f,isDisabled:h=!1,className:v,...j}=e,{translate:N}=(0,d.f)();return(0,s.jsxs)("div",{className:(0,n.cn)("relative w-full aspect-2/3 md:aspect-3/4 flex flex-col",v),...j,children:[b&&(0,s.jsx)("div",{className:"z-[1] absolute top-pon-medium-xs left-pon-medium-xs",children:(0,s.jsx)(r.A,{variant:"surface",content:b})}),h&&(0,s.jsx)("div",{className:"absolute inset-0 w-full h-full bg-[#0009148F] z-[2] flex justify-center\n          items-center",children:(0,s.jsx)(r.A,{type:"primary",content:null!==(a=null==N?void 0:N("cruise-card.sold-out"))&&void 0!==a?a:"Sold out",className:"py-pon-small-xxl px-pon-small-xxl"})}),(0,s.jsx)(t.default,{...l,role:"presentation",placeholder:"blur",blurDataURL:c.X,alt:(null==l?void 0:l.alt)||m,className:(0,n.cn)(null==l?void 0:l.className,"object-cover rounded-pon-sm")}),(0,s.jsxs)(i.U,{variant:"bottom-strong",className:"z-[3] flex-1 before:inset-auto before:bottom-0 before:left-0 before:h-[276px]\n          before:md:h-[332px] before:rounded-pon-sm p-pon-small-xxl md:p-pon-medium-xs\n          flex flex-col justify-end",children:[(0,s.jsx)(p,{className:"text-pon-label-semibold-lg text-pon-secondary-default pb-pon-medium-xs border-b\n            border-b-pon-static-secondary-surface",children:m}),f&&(0,s.jsx)("div",{children:f}),(0,s.jsx)(o.default,{state:"secondary",variant:"filled",size:"small",icon:"arrow-right",isModal:!u,linkModalType:"editorial",link:u||void 0,label:x,className:"w-full justify-between after:content-[''] after:h-full after:w-full\n            after:absolute after:top-0 after:left-0",containerIconClassName:"ml-auto!",iconClassName:"text-pon-on-bg-interactive-secondary-default size-5"})]})]})},p=e=>{let{text:a,value:l,className:t,...i}=e;return(0,s.jsxs)("div",{className:(0,n.cn)("text-pon-secondary-default",t),...i,children:[(0,s.jsx)("p",{className:"text-pon-label-regular-sm mb-pon-small-m",children:a}),(0,s.jsx)("p",{className:"text-pon-label-semibold-md",children:l})]})}},37348:(e,a,l)=>{l.d(a,{A:()=>c});var s=l(54568),n=l(7620),t=l(88264),i=l(57296),r=l(40770),o=l(18729);let d=e=>{let{initialIndex:a,dialogTitle:l,dialogDescription:d,items:c,renderItem:m,getItemLabel:p}=e,[x,u]=(0,i.A)({loop:!0,watchDrag:!1}),[b,f]=(0,n.useState)(a),h=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!u)return;u.scrollTo(a,!0),f(a);let e=()=>{f(u.selectedScrollSnap()),h.current&&h.current.scrollTo({top:0,behavior:"smooth"})};return u.on("select",e),()=>{u.off("select",e)}},[u,a]);let v=(0,n.useCallback)(()=>{u&&u.scrollPrev()},[u]),j=(0,n.useCallback)(()=>{u&&u.scrollNext()},[u]),N=p(b>0?c[b-1]:c[c.length-1]),y=p(b<c.length-1?c[b+1]:c[0]);return(0,s.jsxs)(t.Cf,{onCloseAutoFocus:e=>e.preventDefault(),children:[(0,s.jsxs)(t.c7,{children:[(0,s.jsx)(t.L3,{children:l}),(0,s.jsx)(t.rr,{children:d})]}),(0,s.jsx)(t.QV,{ref:h,children:(0,s.jsx)("div",{ref:x,className:"overflow-hidden",children:(0,s.jsx)("div",{className:"flex",children:c.map((e,a)=>(0,s.jsx)("div",{className:"w-full flex-none",children:m(e)},a))})})}),(0,s.jsxs)(t.Es,{className:"px-pon-small-xxl md:px-pon-medium-m",children:[(0,s.jsxs)("div",{className:"flex items-center gap-pon-small-xxl md:gap-pon-medium-m",children:[(0,s.jsx)(r.$n,{size:"icon",variant:"outlined-alt",onClick:v,children:(0,s.jsx)(o.A,{name:"arrow-left",className:"fill-pon-primary-default size-5"})}),(0,s.jsx)("p",{className:"text-pon-body-sm text-pon-primary-default",children:N})]}),(0,s.jsxs)("div",{className:"flex items-center gap-pon-small-xxl md:gap-pon-medium-m",children:[(0,s.jsx)("p",{className:"text-pon-body-sm text-pon-primary-default",children:y}),(0,s.jsx)(r.$n,{size:"icon",variant:"outlined-alt",onClick:j,children:(0,s.jsx)(o.A,{name:"arrow-right",className:"fill-pon-primary-default size-5"})})]})]})]})};
1d.displayName="CarouselDialog";let c=d},38552:(e,a,l)=>{l.d(a,{f:()=>D});var s=l(54568),n=l(7620),t=l(99474),i=l(36249),r=l(49791),o=l(88264),d=l(24210),c=l(62042),m=l(12268),p=l(80209),x=l(37348),u=l(41262),b=l(47442),f=l(56638),h=l(61773),v=l(58817);let j=e=>{var a;let{cabin:l}=e,n=(0,t.useTranslations)("cabins-dialog"),i="".concat(l.youtubeUrl&&l.mapImage?"basis-1/3":"basis-1/2"," max-w-none md:max-w-none"),o=(0,c.$V)(m.Kw.CABIN_VIEW_PHOTOS,m.xR.CABIN),d=(0,c.$V)(m.Kw.CABIN_VIEW_PLAN,m.xR.CABIN),p=(0,c.$V)(m.Kw.CABIN_VIEW_VIDEO,m.xR.CABIN),x={cabin_code:l.code,cabin_name:l.name};return(0,s.jsx)("div",{className:"mt-pon-medium-m md:mt-pon-medium-l pb-pon-medium-m md:pb-pon-medium-l border-b\n        border-pon-static-primary-surface-alt-2",children:(0,s.jsxs)(b.tU,{className:"w-full",defaultValue:"gallery",children:[(0,s.jsxs)(b.j7,{className:"w-full mb-pon-small-xxl md:mb-pon-medium-xs",children:[(0,s.jsx)(b.Xi,{className:i,value:"gallery",variant:"primary",onClick:()=>o(x),children:n("gallery-tab")}),l.mapImage&&(0,s.jsx)(b.Xi,{className:i,value:"cabin_plan",variant:"primary",onClick:()=>d(x),children:n("plan-tab")}),!!l.youtubeUrl&&(0,s.jsx)(b.Xi,{className:i,value:"cabin_video",variant:"primary",onClick:()=>p(x),children:n("video-tab")})]}),(0,s.jsxs)("div",{className:"w-full aspect-3/4 md:aspect-16/9",children:[(0,s.jsx)(b.av,{className:"h-full",value:"gallery",children:(0,s.jsx)(f.A,{children:l.images.map((e,a)=>{var n;return(0,s.jsx)(r.A7,{children:(0,s.jsx)("div",{className:"relative w-full h-full",children:(0,s.jsx)(h.default,{role:"presentation",...e,className:"object-cover",fill:!0,alt:null!==(n=e.alt)&&void 0!==n?n:l.name})})},a)})})}),l.mapImage&&(0,s.jsx)(b.av,{className:"h-full",value:"cabin_plan",children:(0,s.jsx)("div",{className:"relative w-full h-full",children:(0,s.jsx)(h.default,{role:"presentation",...l.mapImage,className:"object-contain",alt:null!==(a=l.mapImage.alt)&&void 0!==a?a:l.name})})}),l.youtubeUrl&&(0,s.jsx)(b.av,{className:"h-full",value:"cabin_video",children:(0,s.jsx)("div",{className:"relative w-full h-full",children:(0,s.jsx)(v.vL,{title:l.name,src:l.youtubeUrl,size:"fullsize",sandbox:"allow-scripts allow-same-origin allow-presentation"})})})]})]})})};j.displayName="CabinsDialogContentTabs";var N=l(48644),y=l(92207),g=l(73952),w=l(85516),C=l(40770),I=l(51999);let A=e=>{let{cabin:a}=e,l=(0,t.useTranslations)(),i=(0,c.$V)(m.Kw.CABIN_RESERVE,m.xR.CABIN),{setActiveDialog:r}=(0,p.P)(),{setDialogProperties:o,setOpen:d}=(0,y.WU)(),{getLink:x,pdpCabinsConfig:u}=(0,g.S)(),b=(0,n.useCallback)(()=>{let e=x(w.oH.quote),a=null==e?void 0:e.uuid;r(null),a&&(o({dialogType:"form",dialogLink:{id:a}}),d(!0))},[x,r,o,d]),f=(0,I.Q)(u);return(0,s.jsxs)("div",{className:"flex flex-col-reverse md:flex-row py-pon-medium-m ".concat(a.price&&"gap-pon-medium-m md:gap-pon-medium-xl"," border-b\n        border-pon-static-primary-surface-alt-2"),children:[(0,s.jsxs)("div",{className:"md:basis-2/3",children:[(0,s.jsx)("p",{className:"text-pon-label-regular-sm text-pon-primary-hover mb-pon-small-xxl",children:l("cabins-dialog.details")}),(0,s.jsx)("div",{className:"text-pon-body-sm text-pon-primary-default [&>ul]:list-disc [&>ul]:pl-5 *:pb-5",dangerouslySetInnerHTML:{__html:a.description}}),a.price&&(0,s.jsx)("p",{className:"text-pon-label-regular-sm text-pon-primary-disabled",children:l("general.price-details")})]}),(0,s.jsx)("div",{className:a.price?"border-b border-pon-static-primary-surface-alt-2 md:border-b-pon-none\n              pb-pon-medium-m":"",children:a.price&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-pon-label-regular-sm text-pon-primary-hover mb-pon-small-xxl",children:l("cabins-dialog.starting-price")}),(0,s.jsxs)("p",{className:"text-pon-label-semibold-lg text-pon-primary-default mb-pon-small-xl",children:[a.price,l("cabins-dialog.suffix-price")]}),!a.isDisabled&&(0,s.jsxs)("div",{className:"flex gap-pon-small-xl mt-pon-medium-xs",children:[(null==u?void 0:u.quote_cta)&&(0,s.jsx)(C.$n,{state:"primary",variant:f===I.o.QUOTE?"filled":"outlined-alt",onClick:b,children:l("header.request-a-quote")}),(null==u?void 0:u.book_cta)&&(0,s.jsx)(N.U,{variant:f===I.o.BOOKING?"filled":"outlined-alt",className:"w-fit",label:l("cta"),disabled:a.isDisabled,"aria-disabled":a.isDisabled,onBookClick:()=>i({cabin_code:a.code,cabin_name:a.name})})]})]})})]})};
1A.displayName="CabinsDialogContentDetails";let _=e=>{let{equipments:a}=e,l=(0,t.useTranslations)("cabins-dialog");return(0,s.jsxs)("div",{className:"mt-pon-medium-m",children:[(0,s.jsx)("p",{className:"text-pon-label-regular-sm text-pon-primary-hover mb-pon-small-xxl",children:l("equipments")}),(0,s.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-pon-medium-m",children:a.map((e,a)=>(0,s.jsxs)("li",{className:"flex items-center gap-pon-small-xl py-pon-small-xxl md:py-pon-medium-xs border-b\n            border-pon-static-primary-surface-alt-2 last:border-none\n            md:[&:nth-last-child(-n+2)]:border-none",children:[(0,s.jsx)(h.default,{role:"presentation",src:e.imageUrl,alt:e.label,width:32,height:32,sizes:"32px"}),(0,s.jsx)("p",{children:e.label})]},a))})]})};_.displayName="CabinsDialogContentEquipments";let k=e=>{let{cabin:a}=e,l=(0,t.useTranslations)("cabins");return(0,s.jsxs)("div",{className:"mx-pon-small-xxl md:mx-pon-medium-m mt-[44px] md:mt-pon-large-l mb-[22px]\n        md:mb-pon-medium-m",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between md:items-end gap-pon-medium-m",children:[(0,s.jsx)("p",{className:"text-pon-headline-lg basis-1/2",children:a.name}),(0,s.jsxs)("div",{className:"flex gap-pon-medium-l md:gap-pon-medium-xxl",children:[a.surface&&(0,s.jsx)(u.A,{number:a.surface,label:l("surface")}),a.maxOccupancy&&(0,s.jsx)(u.A,{number:a.maxOccupancy,label:l("guests")})]})]}),(0,s.jsx)(j,{cabin:a}),(0,s.jsx)(A,{cabin:a}),a.equipments.length>0&&(0,s.jsx)(_,{equipments:a.equipments})]})};k.displayName="CabinsDialogContent";let D=e=>{let{title:a,label:l,dialogTitle:u,cabins:b,className:f,parentPageType:h}=e,v=(0,t.useTranslations)("cabins"),[j,N]=(0,n.useState)(0),y=(0,n.useRef)([]),{activeDialog:g,setActiveDialog:w}=(0,p.P)(),C=(0,c.do)(),I=(0,n.useCallback)(e=>{if(e)w("cabins"),C("pdp"===h?m.u7.PDP_CABINS:m.u7.DIALOG_CABINS);else{w(null);let e=y.current[j];e&&requestAnimationFrame(()=>{let a=e.querySelector("button");a&&a.focus()}),N(0)}},[w,h,C,j]);return(0,s.jsxs)("div",{className:f,children:[(0,s.jsx)("p",{className:"text-pon-label-regular-sm text-pon-primary-hover text-center mb-pon-small-xxl\n          md:mb-pon-medium-xs",children:l}),(0,s.jsx)("h2",{className:"text-pon-headline-xl text-pon-primary-default text-center mb-pon-medium-xl\n          md:mb-pon-large-s",children:a}),(0,s.jsxs)(o.lG,{open:"cabins"===g,onOpenChange:I,children:[(0,s.jsx)(r.FN,{className:"3xl:container-pon 3xl:container-pon-no-margin",children:(0,s.jsx)(r.Wk,{children:b.map((e,a)=>(0,s.jsx)(r.A7,{onClick:()=>N(a),ref:e=>{y.current[a]=e},children:(0,s.jsx)(i.R,{isDisabled:e.isDisabled,headline:e.name,headlineTag:(0,d.N)("h2"),image:{...e.mainImage,alt:"".concat(v("carousel")," ").concat(e.name)},clickableText:e.price?v("price",{price:e.price}):v("cta"),children:(0,s.jsxs)("div",{className:"flex gap-pon-medium-l my-pon-medium-xs",children:[e.maxOccupancy&&(0,s.jsx)(i.q,{text:v("guests"),value:e.maxOccupancy}),e.surface&&(0,s.jsx)(i.q,{text:v("surface"),value:e.surface})]})})},a))})}),(0,s.jsx)(x.A,{initialIndex:j,dialogTitle:u,dialogDescription:l,items:b,renderItem:e=>(0,s.jsx)(k,{cabin:e}),getItemLabel:e=>e.name})]})]})}},47442:(e,a,l)=>{l.d(a,{Xi:()=>m,av:()=>p,j7:()=>d,tU:()=>o});var s=l(54568),n=l(86897),t=l(46350),i=l(7620),r=l(615);let o=e=>{let{children:a,...l}=e;return(0,s.jsx)(n.bL,{className:"data-[orientation=vertical]:flex",...l,children:a})},d=(0,i.forwardRef)((e,a)=>{let{className:l,...i}=e;return(0,s.jsx)(n.B8,{ref:a,className:(0,t.cn)("inline-flex items-stretch justify-center aria-[orientation=vertical]:flex-col",l),...i})});d.displayName=n.B8.displayName;let c=(0,r.F)("max-w-[101px] md:max-w-[168px] text-wrap data-[orientation=vertical]:w-full\n  data-[orientation=vertical]:h-pon-medium-xxl\n  data-[orientation=vertical]:justify-end inline-flex items-center justify-center\n  whitespace-nowrap px-pon-medium-m py-pon-small-xxl text-pon-label-semibold-sm\n  transition-all disabled:pointer-events-none\n  data-[orientation=horizontal]:border-b data-[orientation=vertical]:border-b-0\n  data-[orientation=vertical]:border-r data-[orientation=vertical]:text-right\n  hover:cursor-pointer",{variants:{variant:{primary:"text-pon-primary-disabled data-[state=active]:text-pon-primary-default\n        data-[orientation=horizontal]:border-b-pon-interactive-primary-alt-disabled\n        data-[orientation=vertical]:border-r-pon-interactive-primary-alt-disabled\n        data-[orientation=horizontal]:data-[state=active]:border-b-pon-interactive-primary-alt-focused\n        data-[orientation=vertical]:data-[state=active]:border-r-pon-interactive-primary-alt-focused",secondary:"text-pon-secondary-hover data-[state=active]:text-pon-secondary-default\n        data-[orientation=horizontal]:border-b-pon-static-secondary-surface-alt-2\n        data-[orientation=vertical]:border-r-pon-static-secondary-surface-alt-2\n        data-[orientation=horizontal]:data-[state=active]:border-b-pon-interactive-secondary-alt-focused\n        data-[orientation=vertical]:data-[state=active]:border-r-pon-interactive-secondary-alt-focused"}}}),m=(0,i.forwardRef)((e,a)=>{let{className:l,variant:i="primary",...r}=e;return(0,s.jsx)(n.l9,{ref:a,className:(0,t.cn)(c({variant:i}),l),...r})});m.displayName=n.l9.displayName;let p=(0,i.forwardRef)((e,a)=>{let{className:l,...t}=e;return(0,s.jsx)(n.UC,{ref:a,className:l,...t})});p.displayName=n.UC.displayName}}]);

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.