PageSourceSearch

https://www.trafalgar.com/_next/static/chunks/6395.318794e5234f804b.js

js trafalgar.com collected 2026-09-24 17:42:44 UTC 25,423 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6395],{89471:function(e,t,a){a.d(t,{_:function(){return o}});var l=a(27573),r=a(42655),i=a(25579),n=a(52928),s=a(68769);let o=e=>{var t,a,o,x;let{url:d,className:c,children:p,target:u,onClick:m,style:b,cmsStyles:g,"data-testid":y,...f}=e,C=(0,r.WN)(d),h=b||(null==g?void 0:null===(t=g.text)||void 0===t?void 0:t.inline)?{...null!=b?b:{},...null!==(x=null==g?void 0:null===(a=g.text)||void 0===a?void 0:a.inline)&&void 0!==x?x:{}}:void 0,v=(0,i.m6)(c,null==g?void 0:null===(o=g.text)||void 0===o?void 0:o.css);return(0,l.jsx)(n.M,{condition:!!C,wrapper:e=>(0,l.jsx)(s.A,{url:C,className:v,target:u,onClick:m,style:h,"data-testid":y,...f,children:e}),children:p})}},96395:function(e,t,a){a.r(t),a.d(t,{DepartureDateDetails:function(){return es}});var l=a(27573),r=a(67367),i=a(88407),n=a(63483),s=a(28995),o=a(32061),x=a(89471);let d="Request more info",c="Book now";var p=a(44475);let u=(0,p.Zl)({DEFAULT:{bookButtonCx:"flex flex-1 items-center justify-center gap-2 rounded-full border border-primary-1 bg-primary-1 px-6 py-3 label-button-sm text-ui-white transition-opacity hover:opacity-90 md:px-[33px] md:py-[17px] md:label-button-base",bookArrowIconCx:"material-symbols-outlined !text-base leading-none",callUsButtonCx:"flex flex-1 items-center justify-center gap-2 rounded-full border border-primary-1 bg-primary-1 px-6 py-3 label-button-sm text-ui-white transition-opacity hover:opacity-90 md:px-[33px] md:py-[17px] md:label-button-base"},CH:{bookButtonCx:"flex flex-1 items-center justify-center gap-2 rounded-full border border-primary-2 bg-primary-2 px-[24px] py-[12px] label-button-sm text-ui-grey10 transition-opacity hover:opacity-90 md:px-[32px] md:py-[16px] md:label-button-base",bookArrowIconCx:"material-symbols-outlined !text-base leading-none",callUsButtonCx:"flex flex-1 items-center justify-center gap-2 rounded-full border border-primary-2 bg-primary-2 px-[24px] py-[12px] label-button-sm text-ui-grey10 transition-opacity hover:opacity-90 md:px-[32px] md:py-[16px] md:label-button-base"}}),m=e=>{let{showCallUs:t,callUsLabel:a,bookingEngineUrl:s,onCallUsClick:o,onBookNowClick:d,"data-testid":p="booking-cta"}=e,{callUsButtonCx:m,bookButtonCx:b,bookArrowIconCx:g}=u;return t?(0,l.jsx)(i.z,{type:"PRIMARY",size:"M",text:null!=a?a:"Call us",onClick:o,className:m,"data-testid":"".concat(p,"-call-us")}):(0,l.jsxs)(x._,{url:null!=s?s:void 0,className:b,"aria-label":c,onClick:d,"data-item-name":r.W.BOOK_NOW,"data-item-type":r.dmpgValues.itemType.BOOKING_INTEREST,"data-item-placement":r.jJ.SECTION,"data-item-text":c,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:c}),(0,l.jsx)("span",{className:g,"aria-hidden":"true",children:"arrow_forward"})]})},b=(0,p.Zl)({DEFAULT:{labelTextCx:"paragraph-xs text-ui-black md:paragraph-sm",discountBadgeCx:"label-button-xs rounded bg-accent-2 p-1 text-ui-black",totalLabelCx:"text-ui-black",totalPriceCx:"label-button-lg text-ui-black md:label-button-xl",requestButtonCx:"flex flex-1 items-center justify-center rounded-full border border-primary-1 px-6 py-3 label-button-sm text-primary-1 transition-opacity hover:opacity-80 no-underline md:px-[33px] md:py-[17px] md:label-button-base",requestButtonType:"SECONDARY",soldOutCx:"label-button-sm w-full rounded-full bg-ui-grey20 py-3 text-center text-ui-grey60",depositCopyCx:"label-primary-sm text-center text-ui-black",wrapperCx:"flex flex-col gap-5",pricingSectionCx:"flex flex-col gap-0",priceRowCx:"flex items-center justify-between py-0.5",discountLabelRowCx:"flex items-center gap-2",totalRowCx:"flex items-center justify-between pt-3",buttonsSectionCx:"flex flex-col gap-5",ctasRowCx:"flex flex-col gap-3 md:flex-row",totalLabelBoldCx:"label-button-lg leading-tight md:label-button-xl",totalLabelSubCx:"label-button-xs"},CH:{labelTextCx:"paragraph-xs text-ui-black md:paragraph-sm",discountBadgeCx:"rounded bg-accent-2 p-1 label-button-xs text-ui-black",totalLabelCx:"text-ui-black",totalPriceCx:"label-button-lg text-ui-black md:label-button-xl",requestButtonCx:"flex flex-1 items-center justify-center rounded-full border border-primary-2 px-[24px] py-[12px] label-button-sm text-primary-2 transition-opacity hover:opacity-80 no-underline md:px-[32px] md:py-[16px] md:label-button-base",requestButtonType:"SECONDARY",soldOutCx:"w-full rounded-full bg-ui-grey20 py-3 text-center label-button-sm text-ui-grey60",depositCopyCx:"paragraph-xs text-center text-ui-black md:paragraph-sm",wrapperCx:"flex flex-col gap-3 md:gap-5",pricingSectionCx:"flex flex-col gap-0",priceRowCx:"flex items-center justify-between py-0.5",discountLabelRowCx:"flex items-center gap-2",totalRowCx:"flex items-center justify-between pt-2 md:pt-3",buttonsSectionCx:"flex flex-col gap-4 md:gap-5",ctasRowCx:"flex flex-row gap-3 md:flex-row",totalLabelBoldCx:"title-lg md:title-xl",totalLabelSubCx:"title-lg md:title-xl"}});var g=a(60802),y=a(81737),f=a(2766);let C=()=>{let{tourData:e}=(0,o.Ix)();return{trackBookNowClick:t=>{let{departureDate:a,returnDate:l}=t,i=(0,y.bg)({tourType:null==e?void 0:e.tripType,isCruise:null==e?void 0:e.isCruise}),n=(0,y.tb)(null==e?void 0:e.id,i),s=(0,y.vO)(null==e?void 0:e.optionId),o=null!=n?"".concat(n):"";o&&(0,f.AB)({event:r.dmpgValues.event.BOOK_NOW,products:[o],assets:{products:[{tourID:o,...(0,g.AZ)(null==e?void 0:e.operating),...a&&{departureDate:a},...l&&{returnDate:l},quantity:1,variants:null!=s?[{tourOptionId:"".concat(s)}]:[]}]}})}}};var h=a(87413),v=a(25018),N=a(78905);let T=e=>{if(!e)return!1;let t=(0,v.D)(e);if(Number.isNaN(t.getTime()))return!1;let a=(0,N.w)(t,new Date);return a>=0&&a<7},j=(e,t)=>(null==e?void 0:e.trim().toLowerCase())===h.IC.ON_REQUEST||T(t),w=(e,t,a,l)=>
1[null!=e?e:t,[a,l].filter(Boolean).join(", ")].filter(Boolean).join(" - "),L=(e,t)=>{var a,l;if(!(null==e?void 0:e.length))return null;if(t){let a=e.find(e=>e.roomType===t);if(a)return a}return null!==(l=null!==(a=e.find(e=>e.bestPrice))&&void 0!==a?a:e[0])&&void 0!==l?l:null},A=(e,t)=>{if(!e||!t)return null;let a=e.match(/^([^0-9]+)/);if(!a)return null;let l=a[1],r=parseFloat(e.replace(/[^0-9.]/g,"")),i=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(r)||isNaN(i)||r<=i)return null;let n=Math.round((r-i)*100)/100,s=Number.isInteger(n)?n.toLocaleString():n.toFixed(2);return"-".concat(l).concat(s)},I=e=>{var t,a,x,c,p,u,g,y;let{bookingEngineUrl:f,depositCopy:h,availability:v,status:N,startDate:T,pricing:I,tripTitle:S,selectedRoomType:k,departureDate:D,returnDate:E,cabinType:B,callUsLabel:P,onRequestMoreInfo:R,"data-testid":O="booking-actions"}=e,_=(0,o.M7)(),{trackBookNowClick:U}=C(),F=L(I,k),M=null!==(x=null===(t=(null!==(a=null==F?void 0:F.priceBreakdownDiscounts)&&void 0!==a?a:[])[0])||void 0===t?void 0:t.value)&&void 0!==x?x:null,W=!!((null==F?void 0:F.priceOld)&&F.priceOld!==F.price),z=j(N,T),H=!!(null==F?void 0:F.percentagePriceDiscount)&&F.percentagePriceDiscount>0,Z=W?null==F?void 0:F.price:null!==(c=null==F?void 0:F.priceOld)&&void 0!==c?c:null==F?void 0:F.price,J=null!==(u=null!==(p=null==F?void 0:F.priceSaving)&&void 0!==p?p:A(null==F?void 0:F.priceOld,null==F?void 0:F.price))&&void 0!==u?u:M,V=w(S,"Total",k,B),{wrapperCx:q,pricingSectionCx:G,priceRowCx:K,labelTextCx:Y,discountLabelRowCx:$,discountBadgeCx:Q,totalRowCx:X,totalLabelCx:ee,totalLabelBoldCx:et,totalLabelSubCx:ea,totalPriceCx:el,buttonsSectionCx:er,ctasRowCx:ei,requestButtonCx:en,requestButtonType:es,soldOutCx:eo,depositCopyCx:ex}=b;return(0,l.jsxs)("div",{"data-testid":O,"data-cc":"trip-page-calendar-booking-actions",className:q,children:[!!F&&F&&(0,l.jsxs)("div",{className:G,children:[(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:V,className:Y}),(0,l.jsx)(n.x,{tagType:"SPAN",text:null!==(y=null!==(g=F.priceOld)&&void 0!==g?g:F.price)&&void 0!==y?y:"",className:Y})]}),W&&(0,l.jsxs)("div",{className:K,children:[(0,l.jsxs)("div",{className:$,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:"Discount",className:Y}),H&&(0,l.jsx)(n.x,{tagType:"SPAN",text:"".concat(F.percentagePriceDiscount,"% OFF"),className:Q})]}),J&&(0,l.jsx)(n.x,{tagType:"SPAN",text:J,className:Y})]}),(0,l.jsxs)("div",{className:X,children:[(0,l.jsxs)("span",{className:ee,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:"Total price",className:et})," ",(0,l.jsx)(n.x,{tagType:"SPAN",text:"(per person)",className:ea})]}),(0,l.jsx)(n.x,{tagType:"SPAN",text:null!=Z?Z:"",className:el})]})]}),(0,l.jsxs)("div",{className:er,children:["AVAILABLE"===v?(0,l.jsxs)("div",{className:ei,children:[(0,l.jsx)(i.z,{type:es,size:"M",text:d,onClick:R,className:en,"data-item-name":r.W.CHAT,"data-item-type":r.dmpgValues.itemType.BOOKING_INTEREST,"data-item-placement":r.jJ.SECTION,"data-item-text":d}),(0,l.jsx)(m,{showCallUs:z,callUsLabel:P,bookingEngineUrl:f,onCallUsClick:()=>{_((0,s.kS)({departureDate:null!=T?T:void 0})),_((0,s.dY)(!0))},onBookNowClick:()=>{U({departureDate:D,returnDate:E})},"data-testid":O})]}):(0,l.jsx)(n.x,{tagType:"P",text:"Sold Out",className:eo}),!!h&&(0,l.jsx)(n.x,{tagType:"P",text:h,className:ex})]})]})};var S=a(28929),k=a(25579);let D=(0,p.Zl)({DEFAULT:{toggleButtonCx:"label-button-xs flex items-center gap-1 text-primary-2",toggleLabelCx:"border-b-2 border-primary-2",contentTextCx:"paragraph-xs leading-relaxed text-primary-2",wrapperCx:"flex flex-col items-center gap-2",expandIconBaseCx:"material-symbols-outlined !text-base leading-none transition-transform",contentWrapperCx:"w-full rounded bg-ui-white p-2"},CH:{toggleButtonCx:"label-button-xs flex items-center gap-1 text-primary-2 hover:text-primary-1 transition-colors",toggleLabelCx:"border-b-2 border-primary-1 py-1 hover:border-primary-1 transition-colors",contentTextCx:"paragraph-xs leading-relaxed text-primary-2",wrapperCx:"flex flex-col items-center gap-2",expandIconBaseCx:"material-symbols-outlined !text-xs !h-3 w-3 !leading-none transition-transform",contentWrapperCx:"w-full rounded bg-ui-white p-2"}}),E=e=>{let{message:t,isExpanded:a,onToggle:r,"data-testid":i="further-information"}=e,{wrapperCx:s,toggleButtonCx:o,toggleLabelCx:x,expandIconBaseCx:d,contentWrapperCx:c,contentTextCx:p}=D,u=(0,k.m6)(d,a?"rotate-180":"");return(0,l.jsxs)("div",{"data-testid":i,className:s,children:[(0,l.jsxs)("button",{type:"button","data-cc":"further-info-toggle",className:o,onClick:r,"aria-expanded":a,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:"Further Information",className:x}),(0,l.jsx)("span",{className:u,"aria-hidden":"true",children:"expand_more"})]}),a&&(0,l.jsx)("div",{className:c,children:(0,l.jsx)(n.x,{...(0,S._B)(t),className:p})})]})};
1var B=a(5634),P=a(74444);let R=(e,t)=>{let a=(0,P.WU)((0,v.D)(e),"EEE, d MMM yyyy");return t?"".concat(a,", ").concat(t):a},O=(0,p.Zl)({DEFAULT:{wrapperCx:"flex flex-1 flex-col gap-1",labelRowCx:"flex items-center gap-1",iconCx:"material-symbols-outlined !text-base leading-none text-primary-2",labelCx:"paragraph-xs text-primary-2",subtitleRowCx:"flex items-center gap-1",subtitleCx:"label-button-sm italic text-primary-2",multiStartIconCx:"h-4 w-4 text-primary-2",dateCx:"label-button-xs text-ui-black",locationCx:"paragraph-xs text-ui-black"},CH:{wrapperCx:"flex flex-1 flex-col gap-1",labelRowCx:"flex items-center gap-1",iconCx:"material-symbols-outlined !h-4 !w-4 leading-none text-primary-1",labelCx:"paragraph-xs text-primary-2",subtitleRowCx:"flex items-center gap-1",subtitleCx:"title-secondary-xl italic text-primary-2",multiStartIconCx:"h-4 w-4 text-primary-1",dateCx:"pretitle-xs text-ui-black",locationCx:"paragraph-xs text-ui-black"}}),_=e=>{let{label:t,iconUrl:a,multiStartIconUrl:r,date:i,time:s,location:o,locationSlot:x,localTimePrefixLabel:d}=e,{wrapperCx:c,labelRowCx:p,iconCx:u,labelCx:m,subtitleRowCx:b,subtitleCx:g,multiStartIconCx:y,dateCx:f,locationCx:C}=O,h=R(i,s);return(0,l.jsxs)("div",{className:c,children:[(0,l.jsxs)("div",{className:p,children:[a&&(0,l.jsx)(B.J,{url:a,className:u}),(0,l.jsx)(n.x,{tagType:"SPAN",text:t,className:m})]}),(o||x)&&(0,l.jsx)("div",{className:b,children:null!=x?x:o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.x,{tagType:"P",text:o,className:g}),r&&(0,l.jsx)(B.J,{url:r,className:y})]})}),(0,l.jsx)(n.x,{tagType:"P",text:h,className:f}),o&&(0,l.jsx)(n.x,{tagType:"P",text:"".concat(null!=d?d:"(Local Time)"," ").concat(o),className:C})]})};var U=a(65649),F=a(65224),M=a(8467);let W=(0,p.Zl)({DEFAULT:{containerCx:"relative inline-flex",labelCx:"sr-only",triggerCx:"label-button-sm inline-flex items-center gap-1 whitespace-nowrap italic text-primary-2 underline",chevronCircleCx:"flex size-5 shrink-0 items-center justify-center rounded-full bg-primary-2 transition-transform duration-500 ease-in-out",chevronCx:"fill-ui-white size-3",listCx:"bg-ui-white relative left-0 top-full z-10 mt-2 min-w-[10rem] overflow-hidden rounded-lg border border-primary-2 shadow-md",listItemCx:"label-button-sm cursor-pointer px-4 py-2 text-primary-2 hover:bg-primary-2/10",selectedListItemCx:"bg-primary-2 text-ui-white hover:bg-primary-2"},CH:{containerCx:"relative inline-flex",labelCx:"sr-only",triggerCx:"title-secondary-xl inline-flex items-center gap-1 whitespace-nowrap italic text-primary-2 underline",chevronCircleCx:"flex size-5 shrink-0 items-center justify-center rounded-full bg-primary-2 transition-transform duration-500 ease-in-out",chevronCx:"fill-ui-white size-3",listCx:"bg-ui-white relative left-0 top-full z-10 mt-2 min-w-[10rem] overflow-hidden rounded-lg border border-primary-2 shadow-md",listItemCx:"label-button-sm cursor-pointer px-4 py-2 text-primary-1 hover:bg-primary-1/10",selectedListItemCx:"bg-primary-1 text-ui-white hover:bg-primary-1"}}),z="Start Point",H=e=>{var t,a;let{locations:i,selectedId:s,onChange:o,startPointLabel:x,"data-testid":d="start-location-dropdown"}=e,{open:c,setOpen:p,selected:u,handleCloseAutoFocus:m,handleSelect:b}=(0,M.o)(i,s,o),g=null!==(t=null==u?void 0:u.label)&&void 0!==t?t:"Select start location",y="".concat(null!=x?x:z,": ").concat(g),{containerCx:f,labelCx:C,triggerCx:h,chevronCircleCx:v,chevronCx:N,listCx:T,listItemCx:j,selectedListItemCx:w}=W;return(0,l.jsxs)("div",{"data-testid":d,className:f,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:null!=x?x:z,className:C}),(0,l.jsxs)(U.Dropdown,{open:c,onOpenChange:p,modal:!1,children:[(0,l.jsxs)(U.Dropdown.Trigger,{className:h,"aria-label":y,"data-cc":"start-location-selector","data-item-name":r.W.START_TRIP,"data-item-type":r.dmpgValues.itemType.BOOKING_INTEREST,"data-item-text":g,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:g}),(0,l.jsx)("span",{className:(0,k.m6)(v,c&&"rotate-180"),children:(0,l.jsx)(B.J,{name:"chevron--down1",className:N,"aria-hidden":!0,"data-testid":"".concat(d,"-chevron")})})]}),(0,l.jsx)(F.W,{options:i,selectedId:null!==(a=null==u?void 0:u.id)&&void 0!==a?a:"",onSelect:b,onCloseAutoFocus:m,listClassName:T,getItemClassName:e=>(0,k.m6)(j,e.id===(null==u?void 0:u.id)&&w),"data-cc":"start-location-listbox"})]})]})}
1,Z=(0,p.Zl)({DEFAULT:{routeCardCx:"flex items-center gap-4 rounded-xl p-4",arrowCircleCx:"flex size-5 shrink-0 items-center justify-center rounded-full bg-primary-2",wrapperCx:"flex flex-col gap-3",routeLegWrapperCx:"flex flex-1 flex-col gap-1",arrowIconCx:"material-symbols-outlined !text-base leading-none text-ui-white"},CH:{wrapperCx:"flex flex-col gap-3 rounded-xl bg-ui-grey10 p-4",routeCardCx:"flex items-center gap-3 md:gap-4",routeLegWrapperCx:"flex flex-1 flex-col gap-1",arrowCircleCx:"flex size-5 shrink-0 items-center justify-center rounded-full bg-primary-2",arrowIconCx:"material-symbols-outlined !text-base !h-4 w-4 !leading-none text-ui-white"}}),J=e=>{let{startDate:t,endDate:a,startTime:r,endTime:i,startLocation:n,endLocation:s,furtherInformationMessage:o,isFurtherInfoExpanded:x,isMultiStart:d,startLocations:c,selectedLocationId:p,tripStartText:u,tripEndText:m,tripStartIconUrl:b,tripEndIconUrl:g,multipleTripStartIconUrl:y,startPointLabel:f,localTimePrefixLabel:C,onToggleFurtherInfo:h,onLocationChange:v,"data-testid":N="route-details"}=e,{wrapperCx:T,routeCardCx:j,routeLegWrapperCx:w,arrowCircleCx:L,arrowIconCx:A}=Z,I=!!a;return(0,l.jsxs)("div",{"data-testid":N,className:T,children:[(0,l.jsxs)("div",{className:j,children:[(0,l.jsx)(_,{label:null!=u?u:"Start",iconUrl:d&&null!=y?y:b,date:t,time:r,location:n,locationSlot:d?(0,l.jsx)(H,{locations:c,selectedId:p,onChange:v,startPointLabel:f}):void 0,localTimePrefixLabel:C}),(0,l.jsx)("div",{className:L,children:(0,l.jsx)("span",{className:A,children:"arrow_forward"})}),I?(0,l.jsx)(_,{label:null!=m?m:"Finish",iconUrl:g,date:a,time:i,location:s,localTimePrefixLabel:C}):(0,l.jsx)("div",{className:w})]}),!!o&&(0,l.jsx)(E,{message:o,isExpanded:x,onToggle:h})]})};var V=a(60832);let q=(0,p.Zl)({DEFAULT:{triggerCx:"inline cursor-pointer underline text-inherit paragraph-sm hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current rounded-sm"},CH:{triggerCx:"inline cursor-pointer underline text-inherit label-button-xs hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current rounded-sm"}}),G=(e,t)=>{var a;let l=e.filter(e=>null!=e.roomType).filter((e,t,a)=>a.findIndex(t=>t.roomType===e.roomType)===t).map(e=>({name:e.roomType,price:e.price}));return l.length>0?l:t?[{name:t,price:null===(a=e[0])||void 0===a?void 0:a.price}]:[]},K=e=>{let{pricing:t,cabinType:a,"data-testid":r="cabin-info-modal"}=e,i=G(t,a);if(!i.length)return null;let{triggerCx:n}=q,s=i.map(e=>{var t;return{title:e.name,desc:null!==(t=e.price)&&void 0!==t?t:void 0}});return(0,l.jsx)(V.i,{title:"Cabin Types",items:s,"data-testid":"".concat(r,"-learn-more-modal"),children:(0,l.jsx)("button",{type:"button",className:n,"data-testid":r,children:"Learn more"})})};var Y=a(95183);let $=(0,p.Zl)({DEFAULT:{bannerCx:"paragraph-sm rounded-lg bg-primary-2/5 px-4 py-3 text-primary-2",wrapperCx:"flex flex-col gap-2",boatBannerCx:"paragraph-sm rounded-lg bg-ui-grey10 px-4 py-3 text-ui-black flex flex-col gap-3",boatBannerTextRowCx:"flex flex-wrap items-baseline gap-1 rounded bg-ui-white px-4 py-2",infoIconCx:"size-4 shrink-0 self-center fill-primary-1 [&_path]:fill-primary-1",infoTextCx:"label-primary-xs"},CH:{bannerCx:"paragraph-sm rounded-lg bg-primary-2/5 px-4 py-3 text-primary-2",wrapperCx:"flex flex-col gap-2",boatBannerCx:"paragraph-sm rounded-lg bg-ui-grey10 px-4 py-3 text-ui-black flex flex-col gap-3",boatBannerTextRowCx:"flex flex-wrap items-baseline gap-1 rounded bg-ui-white px-4 py-2",infoIconCx:"size-3 shrink-0 self-center [&_path]:fill-primary-3",infoTextCx:"label-primary-xs"}}),Q=e=>{let{panelVariant:t,pricing:a,cabinType:r,cabinTypeSelector:i,includedCabinSuffix:s,"data-testid":o="route-info-banner"}=e,{cabinTypes:x,selectedCabinTypeId:d,includedCabinTypeId:c,onCabinTypeChange:p}=i,u=t===h.$C.START_POINT||t===h.$C.START_AND_CABIN_SELECTION,m=t===h.$C.CABIN_SELECTION||t===h.$C.START_AND_CABIN_SELECTION;if(!u&&!m)return null;let b=!!(null==a?void 0:a.length)||!!r,{wrapperCx:g,bannerCx:y,boatBannerCx:f,boatBannerTextRowCx:C,infoIconCx:v,infoTextCx:N}=$;return(0,l.jsxs)("div",{"data-testid":o,className:g,children:[u&&(0,l.jsx)(n.x,{tagType:"P",text:"This trip departs from multiple locations. Select your preferred start point below.",className:y}),m&&(0,l.jsxs)("div",{className:f,children:[(0,l.jsxs)("div",{className:C,children:[(0,l.jsx)(B.J,{name:"info_outlined",className:v,"aria-hidden":!0,"data-testid":"".concat(o,"-info-icon")}),(0,l.jsx)(n.x,{tagType:"SPAN",className:N,text:"This is a small-group boat trip. Please choose your cabin type below."}),b&&(0,l.jsx)(K,{pricing:null!=a?a:[],cabinType:r})]}),x.length>0&&(0,l.jsx)(Y.G,{options:x,selectedId:d,includedId:c,includedSuffix:s,onChange:p})]})]})}
1,X=(0,p.Zl)({DEFAULT:{containerCx:"rounded-lg border border-primary-1 bg-primary-1/5 px-4 py-3",messageCx:"paragraph-sm text-primary-2"},CH:{containerCx:"rounded-lg border border-primary-1 bg-primary-1/5 px-4 py-3",messageCx:"paragraph-sm text-primary-2"}}),ee=e=>{let{message:t,"data-testid":a="special-departure-banner"}=e,{containerCx:r,messageCx:i}=X;return(0,l.jsx)("div",{"data-testid":a,className:r,children:(0,l.jsx)(n.x,{tagType:"P",text:t,className:i})})};var et=a(22672);let ea={[h.p2.DEALS_AVAILABLE]:"Deal Available",[h.p2.LAST_MINUTE_DEAL]:"Last Minute Deal"},el=(e,t)=>{if(!e)return null;let a=(0,P.WU)((0,v.D)(e),"d MMM yyyy");return t?"".concat(a," - ").concat((0,P.WU)((0,v.D)(t),"d MMM yyyy")):a},er=(0,p.Zl)({DEFAULT:{selectedLabelCx:"label-button-sm tracking-wide text-ui-black",cancelBorderCx:"label-button-sm border-b-2 border-primary-1 py-2 text-primary-2",cancelIconCx:"material-symbols-outlined !text-base leading-none text-primary-2",dividerCx:"border-b-0 mb-2 h-px bg-ui-grey20",flagCx:"label-button-xs rounded px-2 py-1 bg-primary-1 text-ui-white",tripTitleCx:"label-button-base text-primary-2 md:label-button-2xl",subtitleCx:"label-button-sm italic text-primary-2",dateRangeCx:"subtitle-base text-ui-black md:subtitle-lg",wrapperCx:"flex flex-col gap-1",headerRowCx:"flex items-center justify-between",closeButtonCx:"flex items-center gap-1 transition-opacity hover:opacity-70",flagsContainerCx:"mb-1 flex flex-wrap gap-1",titleRowCx:"flex items-center gap-3"},CH:{selectedLabelCx:"label-button-sm tracking-wide text-ui-black",cancelBorderCx:"border-b-2 border-primary-1 py-2 label-button-sm text-primary-2",cancelIconCx:"material-symbols-outlined !text-sm !h-3.5 leading-none fill-primary-3 w-3.5",dividerCx:"border-b-0 my-3 md:my-4 h-px bg-primary-3",flagCx:"label-primary-xs rounded p-1 bg-accent-2 text-ui-black",tripTitleCx:"title-xl text-primary-2 md:title-2xl",subtitleCx:"pretitle-xs md:pretitle-sm text-primary-2",dateRangeCx:"subtitle-base text-ui-black md:subtitle-lg",wrapperCx:"flex flex-col gap-1",headerRowCx:"flex items-center justify-between",closeButtonCx:"flex items-center gap-1 transition-opacity hover:opacity-70",flagsContainerCx:"mb-1 flex flex-wrap gap-1",titleRowCx:"flex items-center gap-2 md:gap-3 justify-between"}}),ei=e=>{let{tripTitle:t,subtitle:a,startDate:i,endDate:s,flagList:o,selectedTripLabel:x,cancelButtonText:d,cancelButtonIconUrl:c,onClose:p,"data-testid":u="trip-summary"}=e,m=el(i,s),b=!!(null==o?void 0:o.length),{wrapperCx:g,headerRowCx:y,selectedLabelCx:f,closeButtonCx:C,cancelBorderCx:h,cancelIconCx:v,dividerCx:N,flagsContainerCx:T,flagCx:j,titleRowCx:w,tripTitleCx:L,subtitleCx:A,dateRangeCx:I}=er;return(0,l.jsxs)("div",{"data-testid":u,className:g,children:[(0,l.jsxs)("div",{className:y,children:[(0,l.jsx)(n.x,{tagType:"P",text:null!=x?x:"Your selected trip",className:f}),(0,l.jsxs)("button",{type:"button",className:C,onClick:p,"aria-label":"Close departure details","data-cc":"trip-summary-close","data-item-name":r.W.GENERAL_LINK,"data-item-type":r.dmpgValues.itemType.GENERAL_INTERACTION,"data-item-text":null!=d?d:r.FJ.CANCEL,children:[(0,l.jsx)(n.x,{tagType:"SPAN",text:null!=d?d:r.FJ.CANCEL,className:h}),c?(0,l.jsx)(B.J,{url:c,className:v}):(0,l.jsx)(B.J,{name:"cancel",className:v})]})]}),(0,l.jsx)(et.i,{className:N}),b&&(0,l.jsx)("div",{className:T,children:o.map(e=>{let t=ea[e];return t?(0,l.jsx)(n.x,{tagType:"SPAN",text:t,className:j},e):null})}),(0,l.jsxs)("div",{className:w,children:[!!t&&(0,l.jsx)(n.x,{tagType:"H3",text:t,className:L}),a&&(0,l.jsx)(n.x,{tagType:"SPAN",text:a,className:A})]}),!!m&&(0,l.jsx)(n.x,{tagType:"P",text:m,className:I})]})},en=(0,p.Zl)({DEFAULT:{containerCx:"bg-ui-white flex h-full flex-col gap-3 rounded-xl px-4 py-6 md:gap-4 md:py-10"},CH:{containerCx:"bg-ui-white flex h-full flex-col gap-3 rounded-xl px-4 py-6 md:gap-4 md:py-10"}}),es=e=>{var t,a,r;let{departure:i,primaryDepartureStatus:n,tripTitle:s,panelVariant:o,startLocations:x,selectedLocationId:d,cabinTypeSelector:c,isMultiStart:p,isFurtherInfoExpanded:u,depositCopy:m,selectedTripLabel:b,cancelButtonText:g,cancelButtonIconUrl:y,tripStartText:f,tripEndText:C,tripStartIconUrl:v,tripEndIconUrl:N,multipleTripStartIconUrl:T,startPointLabel:j,localTimePrefixLabel:w,callUsLabel:L,includedCabinSuffix:A,onClose:S,onLocationChange:k,onToggleFurtherInfo:D,onRequestMoreInfo:E,"data-testid":B="departure-date-details"}
1=e,P=null!==(a=null!==(t=i.defaultRoomType)&&void 0!==t?t:i.cabinType)&&void 0!==a?a:null,R=o!==h.$C.DEFAULT,O=!!i.startDate,_=!!i.specialDepartureMessage,{containerCx:U}=en;return(0,l.jsxs)("div",{"data-testid":B,"data-cc":"trip-page-calendar-details",className:U,children:[(0,l.jsx)(ei,{tripTitle:s,subtitle:i.subtitle,startDate:i.startDate,endDate:i.endDate,flagList:null!==(r=i.flagList)&&void 0!==r?r:void 0,selectedTripLabel:b,cancelButtonText:g,cancelButtonIconUrl:y,onClose:S}),R&&(0,l.jsx)(Q,{panelVariant:o,pricing:i.pricing,cabinType:i.cabinType,cabinTypeSelector:c,includedCabinSuffix:A}),O&&(0,l.jsx)(J,{startDate:i.startDate,endDate:i.endDate,startTime:i.startTime,endTime:i.endTime,startLocation:i.startLocation,endLocation:i.endLocation,furtherInformationMessage:i.furtherInformationMessage,isFurtherInfoExpanded:u,isMultiStart:p,startLocations:x,selectedLocationId:d,tripStartText:f,tripEndText:C,tripStartIconUrl:v,tripEndIconUrl:N,multipleTripStartIconUrl:T,startPointLabel:j,localTimePrefixLabel:w,onToggleFurtherInfo:D,onLocationChange:k}),_&&(0,l.jsx)(ee,{message:i.specialDepartureMessage}),(0,l.jsx)(I,{bookingEngineUrl:i.bookingEngineUrl,depositCopy:m,availability:i.availability,status:null!=n?n:i.status,startDate:i.startDate,pricing:i.pricing,tripTitle:s,selectedRoomType:P,departureDate:i.startDate,returnDate:i.endDate,cabinType:i.cabinType,callUsLabel:L,onRequestMoreInfo:E})]})}}}]);

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.