1/*! For license information please see 7504.25678dc202e116c937ee.js.LICENSE.txt */ 2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7504],{27504(e,t,r){r.r(t),r.d(t,{default:()=>fa});var a=r(96540),n=r(47767),l=r(71468),o=r(28178),i=r(38901),s=r(25704),c=r(3479),d=r(12073),u=r(91825),m=r(46942),p=r.n(m),h=r(40961),v=r(71056),f=r(99692),b=(r(59105),r(74848));const y=e=>{const{children:t,className:r,position:n,isOpen:l,animationDirection:o,overlayClassName:i,animationDurationMilis:s=500,showCloseButton:c,closeOnOverlay:d=!0,mountContent:u,fullScreen:m,fullWidth:y,isImportant:x,closeButtonClass:g,blockScroll:j,containerActive:C,setContainerActive:w,isOpening:k,setIsOpening:S,closeModal:A,ariaLabel:N,ariaLabelledBy:T,...P}=e,_=(0,a.useRef)(null),D=(0,a.useRef)(null);(0,a.useEffect)(()=>{_.current&&(_.current.style.transitionDuration=`${s}ms`,l&&(w(!0),setTimeout(()=>{w(!0)},10)))},[]),(0,a.useEffect)(()=>{if(!l)return;const e=e=>{"Escape"!==e.key&&"Esc"!==e.key||A(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l,A]),(0,f.r)(_,l),(0,a.useEffect)(()=>{l&&!C&&(S(!0),_.current&&(_.current.style.transitionDuration=`${s}ms`),setTimeout(()=>{w(!0)},10))},[l]);const M=e=>{e.preventDefault()};(0,a.useEffect)(()=>{const e=D.current;return j&&e&&e.addEventListener("touchmove",M,!1),()=>{e&&e.removeEventListener("touchmove",M,!1)}},[D.current,j]);const E=n?`modal--position-${n}`:null,L=p()("modal",{"modal--active":k,"modal--important":x},E,i),I=o?`modal__content--animate-${o}`:null,O=p()("modal__content",{"modal__content--active":C,"modal__content--active-flex":C,"modal__content--full-screen":m,"modal__content--full-width":y},I,r);return l||u?(0,b.jsxs)(a.Fragment,{children:[k&&(0,b.jsx)(v.X,{}),(k||u)&&h.createPortal((0,b.jsx)("div",{className:L,onClick:d?A:void 0,ref:D,children:(0,b.jsxs)("div",{...P,className:O,ref:_,onClick:e=>{e.stopPropagation()},role:"dialog","aria-modal":"true","aria-label":T?void 0:N||"Dialog","aria-labelledby":T,tabIndex:-1,children:[c&&(0,b.jsx)("button",{type:"button",className:`close-button ${g||""}`,onClick:A,style:{background:"transparent",border:0,padding:0,font:"inherit",color:"inherit",cursor:"pointer"},"aria-label":"Close",id:"close-button",children:(0,b.jsx)("i",{className:"fa fa-times","aria-hidden":"true"})}),t]})}),document.body)]}):null};y.displayName="ModalUnhandled";const x=a.memo(y);var g=r(47375);var j=r(44416);const C=e=>{const{children:t,CDNHostName:r,labels:o,showBookingWidget:i,isMobile:s,isTablet:c,isShoppingCart:u,title:m,item:h,closeBookingWidget:v}=e,f=s&&!c,y=(0,n.Zp)(),C=(0,n.zy)(),w=!u&&"/"!==C.pathname,k=(0,l.wA)();a.useEffect(()=>{h&&u&&k((0,d.J_)(history,h))},[]);const[S,A]=a.useState(!1),[N,T]=a.useState(!1),P=e=>{i&&(A(!1),setTimeout(()=>{T(!1),v()},500))},_=p()("bookingWidgetModal",{mobile:s,desktop:!s}),D=s?{}:{minHeight:385};return(0,b.jsx)(x,{id:"booking-widget",position:"center",isOpen:i,animationDirection:"up",showCloseButton:!1,containerActive:S,setContainerActive:A,isOpening:N,setIsOpening:T,fullScreen:f,closeModal:P,className:_,children:(0,b.jsxs)("div",{className:"bookingWidgetContainer",children:[(0,b.jsx)(g.A,{title:m}),(0,b.jsx)("div",{style:D,className:"bookingWidgetContent",children:t}),(0,b.jsx)(j.A,{canBack:w,canNext:!0,onBack:e=>{e?.preventDefault(),y(-1)},labels:o,cdnHostName:r,onCloseClick:P,isMobile:s})]})})};var w=r(62674);const k="brandContainer",S="brandTitle",A=e=>{const{title:t,text:r,isMobile:a}=e,n=(r||"").replace(/\u00a0/g," ");return a?(0,b.jsxs)("div",{className:k,children:[(0,b.jsx)("div",{className:S,children:(0,b.jsx)("b",{children:t})}),(0,b.jsx)("span",{children:n})]}):(0,b.jsxs)("div",{className:k,children:[(0,b.jsx)("span",{className:S,children:(0,b.jsx)("b",{children:t})}),(0,b.jsx)("span",{children:n})]})};var N=r(40261);const T={summaryItemContainerDesktop:"summaryItemContainerDesktop",summaryItemContainer:"summaryItemContainer",large:"large",summaryItemContent:"summaryItemContent",summaryItemText:"summaryItemText","no-cssgrid":"no-cssgrid"};var P=r(706);const _="19",D=({left:e,right:t,text:r})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("img",{width:_,height:_,alt:"info",role:"button",src:e}),(0,b.jsx)("span",{className:T.summaryItemText,dangerouslySetInnerHTML:{__html:r}}
2),(0,b.jsx)("img",{alt:"edit",width:_,height:_,src:t,role:"button"})]}),M=e=>{const{onClick:t,children:r,type:a,summaryItemText:n,cdnHostName:l}=e,o="citywonders",i=((e,t)=>{switch(e){case"CLOCK":return`images/${t}/icons/clock-alt-regular.svg`;case"CALENDAR":return`images/${t}/icons/calendar-alt-regular.svg`;default:return`images/${t}/icons/user-friends-solid.svg`}})(a,o),s=`${l}/${i}`,c=`${l}/images/${o}/icons/pencil-alt-solid.svg`,{summaryItemContent:d}=T;return r?(0,b.jsxs)(P.A,{onClick:t,className:p()(T.summaryItemContainer,"summaryItemContainer","large"),children:[(0,b.jsx)("div",{className:d,children:(0,b.jsx)(D,{left:s,text:n,right:c})}),r]}):(0,b.jsx)(P.A,{onClick:t,className:T.summaryItemContainer,children:(0,b.jsx)(D,{left:s,text:n,right:c})})},E=e=>1===e,L=(e,t=!0)=>{const r=(e,t)=>`${e} ${t}`;let a=e=>e;return t&&(a=e=>` - ${e}`),{getAdults:t=>{const a=E(t)?e.adult:e.adults;return r(t,a)},getChildren:t=>{if(0===t)return"";const n=E(t)?e.child:e.children;return a(r(t,n))},getInfants:t=>{if(0===t)return"";const n=E(t)?e.infant:e.infants;return a(r(t,n))}}},I=e=>{const{adults:t,children:r,infants:a}=(0,l.d4)(N.w),{labels:o,cdnHostName:i,ellipsis:s=!1}=e,c=L(o,!0);let d=`${c.getAdults(t)}${c.getChildren(r)}${c.getInfants(a)}`;s&&(d=d.substring(0,30).concat("..."));const u=(0,n.Zp)();return(0,b.jsx)(M,{onClick:e=>{u("/")},cdnHostName:i,summaryItemText:d})};var O=r(11968),R=r(95430),$=r(65895);const F=e=>{const t=(0,l.d4)($.n),{tourDate:r}=t,a=(0,n.Zp)();if(!r)return null;const{cdnHostName:o}=e,i=(e=>(0,O.GP)(e,R.K7))(r);return(0,b.jsx)(M,{onClick:()=>{a("/calendar")},type:"CALENDAR",cdnHostName:o,summaryItemText:i})};var B=r(87472),H=r(57959);const z="status",G="price",K="clock",W="left",U="right",q=e=>(0,b.jsxs)("li",{className:p()("itemPlaceholder"),children:[(0,b.jsxs)("div",{className:W,children:[(0,b.jsx)("div",{className:K,children:"clockholder"}),(0,b.jsx)("div",{className:z,children:"status"})]}),(0,b.jsx)("div",{className:U,children:(0,b.jsx)("div",{className:G,children:"pricephl"})})]}),X=a.memo(q);var Z=r(5556),V=r.n(Z);V().shape({adult:V().shape({maxAge:V().number,minAge:V().number,price:V().string}),child:V().shape({maxAge:V().number,minAge:V().number,price:V().string}),infant:V().shape({maxAge:V().number,minAge:V().number,price:V().string}),basePrice:V().string});const Y="AVAILABLE",J="AVAILABLE_PROMO";function Q(e,t){try{const r=parseFloat(e.price)*t,a=parseFloat(e.rrpPrice)*t;return{price:r,rrpPrice:a,saving:a-r}}catch(e){throw console.error(e),new Error("Function not implemented.")}}const ee=(e,t,r,a)=>{if(r){const{adults:r,children:a,infants:n}=e,l=function(e){const t=e;return function(e,a,n){!function(e,t,r){if(e+t+r<=0)throw new Error("No PAX were provided for Total Price calculation.");if(e<0||t<0||r<0)throw new Error("PAX counts cannot be negative.")}(e,a,n);const l=r(e,2),o=r(a,2-e),i=r(n,2-e-a);return{totalAdult:Q(t.Adult,l),totalChild:Q(t.Child,o),totalInfant:Q(t.Infant,i)}};function r(e,t){return e>t?t<0?e:e-t:0}}({Adult:t.adult,Child:t.child,Infant:t.infant})(r,a,n),o=parseFloat(t.basePrice)+l.totalAdult.price+l.totalChild.price+l.totalInfant.price,i=parseFloat(t.rrpBasePrice)+l.totalAdult.rrpPrice+l.totalChild.rrpPrice+l.totalInfant.rrpPrice;return{child:l.totalChild,adult:{price:parseFloat(t.basePrice)+l.totalAdult.price,rrpPrice:parseFloat(t.rrpBasePrice)+l.totalAdult.rrpPrice,saving:parseFloat(t.rrpBasePrice)+l.totalAdult.rrpPrice-(parseFloat(t.basePrice)+l.totalAdult.price)},total:{price:o,rrpPrice:i,saving:i-o},infantPricing:l.totalInfant.price}}const{adults:n,children:l}=e,o={price:parseFloat(t.adult.price)*n,rrpPrice:parseFloat(t.adult.rrpPrice)*n,saving:n*(parseFloat(t.adult.rrpPrice)-parseFloat(t.adult.price))},i={price:parseFloat(t.child.price)*l,rrpPrice:parseFloat(t.child.rrpPrice)*l,saving:l*(parseFloat(t.child.rrpPrice)-parseFloat(t.child.price))},s=parseFloat(t.infant.price)*e.infants;return{child:i,adult:o,total:{price:o.price+i.price+s,rrpPrice:o.rrpPrice+i.rrpPrice+s,saving:o.saving+i.saving},infantPricing:s}};var te=r(34847);const re=({cdnHostName:e})=>{const t=`${e}/images/icons/clock-regular-medium-gray.svg`;return(0,b.jsx)(te.A,{isCritical:!0,image:t,alt:"clock"})},ae=a.memo(re),ne=({labels:e,availableTickets:t})=>{const r=`${e.only} ${t}
2\n ${1===t?e.ticketLeft:e.ticketsLeft}`;return(0,b.jsx)("p",{className:p()(z,"statusLegend"),children:r})},le={tourStatusCell:"tourStatusCell",srOnly:"srOnly",status:"status",statusAvailable:"statusAvailable",statusSoldOut:"statusSoldOut"},oe="SOLDOUT",ie="TOOFEWTICKETS",se="ONLYONETICKETLEFT",ce=Y,de=J,ue={[ce]:"Available",[de]:"Available",[oe]:"Sold out",[ie]:"Few tickets left",[se]:"One ticket left"},me=({status:e,label:t})=>{const r=t||ue[e]||e;let a;switch(e){case J:case Y:a=le.statusAvailable;break;case oe:a=le.statusSoldOut;break;case ie:case se:a=le.statusFewTickets}return(0,b.jsxs)("div",{className:p()(le.status,a),children:[(0,b.jsx)("i",{style:H.lJ.statusIconWeight,className:"fa fa-circle","aria-hidden":"true"}),t?(0,b.jsx)("span",{children:t}):(0,b.jsx)("span",{className:le.srOnly,children:r})]})},pe=a.memo(me),he=({labels:e})=>(0,b.jsx)(b.Fragment,{children:(0,b.jsx)("p",{className:z,style:H.mj.legendContainer,children:e.soldOut})}),ve=({labels:e})=>(0,b.jsx)("p",{className:z,children:e.fewAvailability}),fe=({labels:e,availableTickets:t})=>{const r=`${e.only} ${t}\n ${1===t?e.ticketLeft:e.ticketsLeft}`;return(0,b.jsx)("p",{className:z,children:r})},be=({labels:e,status:t,availableTickets:r,isAvailable:a})=>a?0===r?(0,b.jsx)(he,{labels:e}):(0,b.jsx)(pe,{status:t,label:e.available}):(0,b.jsx)(ve,{labels:e}),ye=({labels:e,status:t,availableTickets:r,isAvailable:a})=>0===r?(0,b.jsx)(he,{labels:e}):a?r>6?(0,b.jsx)(pe,{status:t,label:e.available}):(0,b.jsx)(ne,{labels:e,availableTickets:r}):(0,b.jsx)(fe,{availableTickets:r,labels:e}),xe=e=>{const{isPrivate:t}=e;return t?(0,b.jsx)(be,{...e}):(0,b.jsx)(ye,{...e})},ge=a.memo(xe);var je=r(99928);const Ce=({selectedCurrencySymbol:e,selectedCurrency:t,rrpBasePrice:r,basePrice:a,availableTickets:n,labels:l})=>{const o=r!==a,i=!(!e||!t)&&(0,je.hn)(e,t),s=e;let c;o&&(c=(0,b.jsx)(b.Fragment,{children:`${s} ${(0,je.h2)(r.toFixed(2))}`}));const d=(0,b.jsxs)(b.Fragment,{children:[i&&(0,b.jsxs)("span",{style:{fontSize:"9px"},children:[i," "]}),`${s} ${(0,je.h2)(a.toFixed(2))}`]});let u="rrpBasePrice";return 0===n&&(u="rrpBasePriceSoldout"),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"totalPrice",children:l.total}),o&&(0,b.jsx)("div",{className:u,children:c}),(0,b.jsx)("div",{className:G,children:d})]})},we=a.memo(Ce),ke=({overrideTimeSlotsInfo:e,optionDepartTime:t})=>{const r=(0,l.d4)(i.f7),a=e||t;return(0,b.jsxs)("div",{className:K,children:[(0,b.jsx)(ae,{cdnHostName:r}),(0,b.jsx)("span",{children:a})]})},Se=e=>{const{optionDepartTime:t,labels:r,availableTickets:a,availabilityStatus:n,isAvailable:l,selectedCurrencySymbol:o,selectedCurrency:i,basePricing:s,variationLabel:c,conditionDescription:d,overrideTimeSlotsInfo:u,isPrivate:m,listTitle:h}=e,{total:v}=s,{price:f,rrpPrice:y}=v,x=c||d||h;let g=W;return x&&(g=p()(W,"withVariationLabel")),(0,b.jsxs)(b.Fragment,{children:[x&&(0,b.jsx)("div",{className:"variationLabel",children:(0,b.jsx)("span",{dangerouslySetInnerHTML:{__html:x}})}),(0,b.jsx)("div",{className:"container",children:(0,b.jsxs)("div",{className:"timePickerContent",children:[(0,b.jsxs)("div",{className:g,children:[(0,b.jsx)(ke,{overrideTimeSlotsInfo:u,optionDepartTime:t}),(0,b.jsx)(ge,{labels:r,availableTickets:a,status:n,isPrivate:m,isAvailable:l})]}),(0,b.jsx)("div",{className:U,children:(0,b.jsx)(we,{availableTickets:a,labels:r,selectedCurrencySymbol:o,selectedCurrency:i,rrpBasePrice:y,basePrice:f})})]})})]})},Ae=a.memo(Se),Ne=e=>{const{length:t}=e,r=p()("itemDisabled",{fourSlots:t>=4,oneSlot:1===t}),a=e.variationLabel||e.conditionDescription||e.overrideTimeSlotInfo||e.optionDepartTime||e.listTitle;return(0,b.jsx)("li",{title:a,className:r,children:(0,b.jsx)(Ae,{...e,isAvailable:!1})})},Te=e=>{const{onTimeClick:t,isSelected:r,length:a,...n}=e,l=p()("itemAvailable",{selected:r,fourSlots:a>=4,oneSlot:1===a}),o=e.variationLabel||e.conditionDescription||e.overrideTimeSlotInfo||e.optionDepartTime;return(0,b.jsx)("li",{title:o,onClick:t,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||t(e)},role:"button",tabIndex:0,className:l,children:(0,b.jsx)(Ae,{...n,isAvailable:!0})})},Pe=e=>{const{optionId:t,availabilityStatus:r,isPrivate:a,availableTickets:n,onClick:l,pax:o,tourPricing:i,...s}=e,c=o.adults+o.children,d=ee(o,i,a),u=((e,t)=>e===Y||t>0)(r,n)&&((e,t)=>e>=t)(n,c);return u?(0,b.jsx)(Te,{availableTickets:n,onTimeClick:e=>{e.preventDefault(),l(t)},optionId:t,availabilityStatus:r,isPrivate:a,basePricing:d,...s}):(0,b.jsx)(Ne,{availableTickets:n,availabilityStatus:r,basePricing:d,isPrivate:a,...s})},_e=a.memo(Pe),De=[1,2],Me=e=>{const{options:t,tour:r,length:a,labels:n,selectedCurrency:l,selectedCurrencySymbol:o,pax:i,onClick:s,tourOptionId:d}=e,{isPrivate:u}=r;if(void 0===t)return De.map(e=>(0,b.jsx)(X,{},e));const{overrideTimeSlotsInfo:m}=r,p=t.filter(e=>e.availableTickets>0),h=t.filter(e=>0===e.availableTickets);return(0,b.jsxs)(b.Fragment,{children:[p.sort((e,t)=>
2parseInt(e.optionDepartTime.substring(0,2))-parseInt(t.optionDepartTime.substring(0,2))).map(e=>{const t=d===e.optionId,{variationLabel:p,variationShortInfo:h}=(0,c.ZG)(r,e.productId),v=h||p;return(0,b.jsx)(_e,{overrideTimeSlotsInfo:m,variationLabel:v,length:a,labels:n,pax:i,isPrivate:u,selectedCurrency:l,selectedCurrencySymbol:o,onClick:s,isSelected:t,...e},e.optionId)}),h.sort((e,t)=>parseInt(e.optionDepartTime.substring(0,2))-parseInt(t.optionDepartTime.substring(0,2))).map(e=>{const t=d===e.optionId,{variationLabel:p,variationShortInfo:h}=(0,c.ZG)(r,e.productId),v=h||p;return(0,b.jsx)(_e,{overrideTimeSlotsInfo:m,variationLabel:v,length:a,labels:n,pax:i,isPrivate:u,selectedCurrency:l,selectedCurrencySymbol:o,onClick:s,isSelected:t,...e},e.optionId)})]})},Ee=a.memo(Me),Le=e=>{const{CDNHostName:t,tour:r,labels:a,isMobile:o}=e,i=(0,l.wA)(),s=(0,l.d4)(u.JD).tourOptions||[],c=(0,l.d4)(N.w),m=(0,n.Zp)(),{selectedCurrency:h,selectedCurrencySymbol:v}=(0,l.d4)(w.yl),{tourOptionId:f}=(0,l.d4)(u.JD),y=(0,l.d4)(w.rd);if(0===s.length||!Array.isArray(s))return(0,b.jsx)("div",{style:H.Y1.noOptionsContainer,children:(0,b.jsx)("div",{children:"No Options found"})});const x=s?s.length:0,g=p()("timePickerContainer",{oneItem:1===x,threeItems:3===x,isMobile:o}),j=o&&y.orientation===R.EP.landscape,C=H.N5.timePickerGrid(j,s.length,o);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"summaryItems",children:[(0,b.jsx)(I,{labels:a,cdnHostName:t}),(0,b.jsx)(F,{cdnHostName:t})]}),!o&&(0,b.jsx)("div",{className:"timePickerBreakingLine"}),(0,b.jsx)(B.A,{title:a.bookingTimeTitle}),(0,b.jsx)("div",{className:g,children:(0,b.jsx)("ul",{style:C,children:(0,b.jsx)(Ee,{onClick:e=>{i((0,d.I4)(e,m))},tour:r,length:x,pax:c,tourOptionId:f,options:s,labels:a,selectedCurrency:h,selectedCurrencySymbol:v})})}),!o&&(0,b.jsx)(A,{isMobile:!1,text:a.bookingTimeBrandText,title:a.bookingTimeBrandTitle})]})};var Ie=r(37440),Oe=r(54119),Re=r(24562),$e=r(89053),Fe=r(33707);const Be=e=>{const{adults:t,children:r,infants:a}=(0,l.d4)(N.w),o=(0,l.wA)(),{tour:i,labels:s,isMobile:d}=e,u=(0,c.Pe)(i),{isAdultOnly:m,infantNotAllowed:p,childAgeRangeMin:h,childAgeRangeMax:v,infantAgeRangeMin:f,infantAgeRangeMax:y,isPrivate:x,groupSize:g,groupSizeLabel:j}=u,C=(0,n.Zp)(),{adults:w,children:k,infants:S,bookingPaxTitle:T,bookingPaxBrandText:P,bookingPaxBrandTitle:_}=s;let D=g;g||(D=parseInt(j)),x&&(D=parseInt(g));const M=D||90,E=m?Ie.D7:M,L=m||p?Ie.D7:M,I=M,O=!m,R=!p&&(h||0)>0,$=p&&(h||0)>0;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(B.A,{title:T}),(0,b.jsxs)("ul",{className:Fe.A.paxSelectorContainer,children:[(0,b.jsx)($e.A,{label:w,value:t,onSelect:e=>o((0,Re.Vk)(e)),min:Ie.VR,max:I-r-a}),O&&(0,b.jsx)($e.A,{label:k,value:r,onSelect:e=>o((0,Re.dx)(e)),min:Ie.D7,max:E-t-a,ageRangeMin:h,ageRangeMax:v}),R&&(0,b.jsx)($e.A,{label:S,value:a,onSelect:e=>o((0,Re.zn)(e)),min:Ie.D7,ageRangeMin:f,ageRangeMax:y,max:L-r-t}),m&&(0,b.jsx)("li",{className:Fe.A.paxSelectorItem,children:s.adultOnly}),$&&(0,b.jsx)("li",{className:Fe.A.paxSelectorItem,children:s.infantNotAllowed}),(0,b.jsx)("li",{className:Fe.A.paxSelectorNext,children:(0,b.jsx)(Oe.A,{type:"button",className:"next",onClick:()=>{C("/calendar")},children:s.next})})]}),(0,b.jsx)(A,{text:P,isMobile:d,title:_})]})},He=a.memo(Be);var ze=r(27763),Ge=r(66304),Ke=r(60125),We=r(30127),Ue=r(36122),qe=r(8500);const Xe="mobile",Ze="icon",Ve="calendarDay",Ye="withTour",Je="number",Qe=e=>{const{labels:t,isPrivate:r,isMobile:a}=e,{selectedCurrencySymbol:n,selectedCurrency:o}=(0,l.d4)(w.yl),i=(!(!n||!o)&&(0,je.hn)(n,o),t.pricePerAdult),s=(0,qe.SO)()<1200;return(0,b.jsxs)("div",{children:[!r&&(a||s)&&(0,b.jsx)("small",{className:"pricePerAdult",children:(0,b.jsx)("div",{children:i})}),(0,b.jsxs)("div",{className:"footerContainer",children:[(0,b.jsx)(pe,{status:ce,label:t.available}),(0,b.jsx)(pe,{status:ie,label:t.fewAvailability}),(0,b.jsx)(pe,{status:oe,label:t.statusSoldOut||"Sold out"})]})]})},et=a.memo(Qe);var tt=r(11580),rt=r(80337),at=r(54352),nt=r(7685);var lt=r(26325);const ot=({handleNextMonth:e,handlePrevMonth:t,cdnHostName:r,monthFormat:n,canGoPrevMonth:l,handleToggleDropdown:o,isMenuOpen:i=!1,toggleRef:s})=>{const c=p()(Ze,{disabled:!l}),d=a.useMemo(()=>`${r}/images/citywonders/icons/calendar-regular.svg`,[r]),u=a.useCallback(e=>{e.preventDefault(),l&&t(e)},[t,l]),m=a.useCallback(t=>{t.preventDefault(),e(t)}
2,[e]);return(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:"8px",minHeight:"35px"},children:[(0,b.jsx)(P.A,{"aria-label":"previous","aria-disabled":!l,disabled:!l,className:c,onClick:u,children:(0,b.jsx)("i",{className:"fa fa-chevron-left"})}),(0,b.jsxs)("button",{ref:s,onClick:o,"aria-label":"select month","aria-haspopup":"true","aria-expanded":i,"aria-controls":"menu2",className:"toggleDropdownHandler",style:{display:"flex",alignItems:"center"},children:[(0,b.jsx)("div",{style:{minWidth:38},children:(0,b.jsx)("img",{alt:"calendar",src:d,style:{width:"19px",height:"19px"}})}),(0,b.jsx)("span",{className:"month",children:(0,Ue.toUpperCaseFirstChar)(n)})]}),(0,b.jsx)(P.A,{"aria-label":"next",className:Ze,onClick:m,children:(0,b.jsx)("i",{className:"fa fa-chevron-right"})})]})},it=a.memo(ot),st=e=>{const{cdnHostName:t,goPrevMonth:r,nextMonth:n,monthFormat:l,canGoPrevMonth:o,options:i,handleChangeMonth:s}=e,[c,d]=a.useState(!1),[u,m]=a.useState(!1),[h,v]=a.useState(!1),f=(0,a.useRef)(null),y=(0,a.useRef)(null),x=(e=!1)=>{m(!0),d(!1),setTimeout(()=>{v(!1),m(!1)},300),e&&y.current?.focus()},g=(0,a.useRef)(null);var j,C;j=g,C=()=>x(),a.useEffect(()=>{function e(e){j.current&&!j.current.contains(e.target)&&C()}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[j]);const w=e=>()=>{x(),s({value:e})};return(0,b.jsxs)("div",{ref:g,className:p()(T.summaryItemContainer,T.summaryItemContainerDesktop,"customSelectCalendar"),style:{position:"relative",width:"100%"},children:[(0,b.jsx)(it,{handleNextMonth:e=>{x(),n()},handlePrevMonth:e=>{x(),r(e)},cdnHostName:t,handleToggleDropdown:e=>{e.preventDefault(),c||h?x():(v(!0),m(!0),setTimeout(()=>{d(!0),m(!1),f.current?.querySelector('[role="menuitem"]')?.focus()},10))},monthFormat:l,canGoPrevMonth:o,isMenuOpen:c,toggleRef:y}),h&&(0,b.jsx)("div",{ref:f,role:"menu",id:"menu2","aria-label":l,onKeyDown:e=>{if(!f.current)return;if("Escape"===e.key)return e.preventDefault(),void x(!0);const t=Array.from(f.current.querySelectorAll('[role="menuitem"]')),r=t.indexOf(document.activeElement);"ArrowDown"===e.key?(e.preventDefault(),t[(r+1)%t.length]?.focus()):"ArrowUp"===e.key?(e.preventDefault(),t[(r-1+t.length)%t.length]?.focus()):"Home"===e.key?(e.preventDefault(),t[0]?.focus()):"End"===e.key&&(e.preventDefault(),t[t.length-1]?.focus())},className:p()("monthDropdown",{active:c}),children:i.map((e,t)=>(0,b.jsx)("div",{role:"menuitem","aria-label":e.value,tabIndex:0,onClick:w(e.key),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),w(e.key)())},className:"itemMonth",children:(0,Ue.toUpperCaseFirstChar)(e.value)},t))})]})},ct=e=>{const{currentMonth:t,prevMonth:r,nextMonth:a,handleChangeMonth:n,cdnHostName:l,canGoPrevMonth:o,options:i,currentCulture:s}=e,c=t instanceof Date?(0,O.GP)(t,R.d_,{locale:Ue.locales[s]}):t;return(0,b.jsx)("div",{className:"calendarHeader",children:(0,b.jsx)(st,{cdnHostName:l,goPrevMonth:e=>{e.preventDefault(),o&&r()},nextMonth:()=>{a()},monthFormat:c,canGoPrevMonth:o,options:i,handleChangeMonth:n})})},dt=a.memo(ct);var ut=r(31604),mt=r(36921);const pt=e=>{const{currentMonth:t,labels:r,prevMonth:a,nextMonth:n,handleChangeMonth:l,isPrivate:o,cdnHostName:i,options:s,currentCulture:c}=e,d=t||s&&s[0]?.key||new Date;let u;try{u=(0,O.GP)(d,R.d_,{locale:Ue.locales[c]})}catch(e){u=s&&s[0]?.value||"Select Month"}const m=(0,lt.W)((0,Ke.a)(d,1),(0,O.GP)(new Date((new Date).getFullYear(),(new Date).getMonth(),1),R._X))>=0;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"breakingLine"}),(0,b.jsx)("div",{className:p()("calendarHeaderItem","desktop","headerTitle"),children:(0,b.jsxs)("div",{children:[(0,b.jsxs)("h5",{style:{fontSize:mt.Il.main.fontSize,fontWeight:400,color:"#4a4a4a",textAlign:"center",margin:"0 auto"},children:[r.bookingCalendarTitle,(0,b.jsx)("div",{style:{margin:"0.4rem auto",maxWidth:"60px",borderBottom:"1px solid #767676"}})]}),!o&&(0,b.jsx)("div",{className:ut.A.subtitleMobile,children:r.pricePerAdult})]})}),(0,b.jsx)("div",{className:p()("calendarHeaderDesktop"),children:(0,b.jsx)(st,{cdnHostName:i,goPrevMonth:e
2=>{e.preventDefault(),m&&a()},nextMonth:n,monthFormat:u,canGoPrevMonth:m,options:s,handleChangeMonth:l})})]})},ht=a.memo(pt),vt=e=>{const{prevMonth:t,handleChangeMonth:r,currentMonth:n,nextMonth:o,isPrivate:i,options:s,cdnHostName:c,labels:d,currentCulture:u}=e,{isMobile:m}=(0,l.d4)(w.md),p=(0,a.useMemo)(()=>{const e=new Date;return new Date(e.getFullYear(),e.getMonth(),1)},[]),h=(0,a.useMemo)(()=>(0,lt.W)(n,p)>0,[n,p]),v=(0,a.useMemo)(()=>({currentMonth:n,prevMonth:t,nextMonth:o,options:s,canGoPrevMonth:h,cdnHostName:c,isPrivate:i,handleChangeMonth:r,labels:d,currentCulture:u}),[n,t,o,s,h,c,i,r,d,u]);return m?(0,b.jsx)(dt,{...v}):(0,b.jsx)(ht,{...v})},ft=a.memo(vt);var bt=r(16056),yt=r(91868),xt=r(16172),gt=r(88652),jt=r(47402);const Ct=e=>{const{children:t,isUnavailable:r,isOutOfMonth:a}=e,n=p()("day",{unavailable:r&&!a,outOfMonth:a});return(0,b.jsx)("span",{className:n,children:t})},wt=e=>{const{day:t,formattedDate:r,isToday:a,currentCulture:n,isActive:l}=e,o=p()({[Ve]:!0,today:a}),i=`${Pr(t,n)}, No tour available`;return(0,b.jsx)("li",{role:"gridcell","aria-label":i,"aria-current":a?"date":void 0,"data-date":(0,O.GP)(t,"yyyy-MM-dd"),tabIndex:l?0:-1,children:(0,b.jsx)("div",{className:o,children:(0,b.jsx)(Ct,{isUnavailable:!0,children:r})})})},kt=a.memo(wt),St=e=>e.toString().split(".")[0],At=({symbol:e})=>(0,b.jsx)(b.Fragment,{children:e}),Nt=e=>{const{basePrice:t,isPromo:r,isUnavailable:a}=e,{selectedCurrencySymbol:n}=(0,l.d4)(w.yl),o=p()("price",{unavailable:a,isPromo:r});return(0,b.jsxs)("span",{className:o,children:[(0,b.jsx)(At,{symbol:n}),St(t)]})};var Tt=r(22485);const Pt=()=>(0,b.jsx)("span",{className:"pricePlaceholder","aria-hidden":"true",children:(0,b.jsx)(Tt.Ay,{rows:1,color:"rgba(220, 220, 220, 0.8)",showLoadingAnimation:!0,type:"text",ready:!1,children:(0,b.jsx)("span",{})})}),_t=e=>{const{isSoldOut:t=!1,isPromo:r,isTooFewTickets:a=!1,isLoading:n,isSelected:l,isPrivate:o,basePrice:i}=e;return t||!n||l?t?(0,b.jsx)("div",{className:le.tourStatusCell,children:(0,b.jsx)(pe,{status:oe})}):o?a?(0,b.jsx)("div",{className:le.tourStatusCell,children:(0,b.jsx)(pe,{status:ie})}):(0,b.jsx)("div",{className:le.tourStatusCell,children:(0,b.jsx)(pe,{status:ce})}):(0,b.jsx)(Nt,{isPromo:!1,isUnavailable:!1,basePrice:i}):(0,b.jsx)(Pt,{})};function Dt(e){var t,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Dt(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}const Mt=function(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Dt(e))&&(a&&(a+=" "),a+=t);return a};var Et=r(17663);const Lt={core:!1,base:!1};function It({css:e,id:t="react-tooltip-base-styles",type:r="base",ref:a,state:n={}}){if(!e||"undefined"==typeof document||(void 0!==n[r]?n[r]:Lt[r]))return;if("core"===r&&"undefined"!=typeof process&&process.env&&process.env.REACT_TOOLTIP_DISABLE_CORE_STYLES)return;if("base"===r&&"undefined"!=typeof process&&process.env&&process.env.REACT_TOOLTIP_DISABLE_BASE_STYLES)return;"core"===r&&(t="react-tooltip-core-styles"),a||(a={});const{insertAt:l}=a;if(document.getElementById(t))return;const o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css","top"===l&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),void 0!==n[r]?n[r]=!0:Lt[r]=!0}const Ot=(0,Et.UU)({fallbackAxisSideDirection:"start"}),Rt=(0,Et.BN)({padding:5}),$t=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:a="top",offset:n=10,strategy:l="absolute",middlewares:o=[(0,Et.cY)(Number(n)),Ot,Rt],border:i,arrowSize:s=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};const c=[...o];return r?(c.push((0,Et.UE)({element:r,padding:5})),(0,Et.rD)(e,t,{placement:a,strategy:l,middleware:c}).then(({x:e,y:t,placement:r,middlewareData:a})=>{var n,l;const o={left:`${e}px`,top:`${t}px`,border:i}
2,{x:c,y:d}=null!==(n=a.arrow)&&void 0!==n?n:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==l?l:"bottom",m=i&&{borderBottom:i,borderRight:i};let p=0;if(i){const e=`${i}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:o,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=d?`${d}px`:"",right:"",bottom:"",...m,[u]:`-${s/2+p-1}px`},place:r}})):(0,Et.rD)(e,t,{placement:"bottom",strategy:l,middleware:c}).then(({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r}))},Ft=(e,t,r)=>{let a=null,n=e;const l=function(...e){a||(n.apply(this,e),a=setTimeout(()=>{a=null},t))};return l.cancel=()=>{a&&(clearTimeout(a),a=null)},l.setCallback=e=>{n=e},l},Bt=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r})},Ht=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Bt(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},zt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,Gt=e=>{e.current&&(clearTimeout(e.current),e.current=null)};var Kt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",content:"core-styles-module_content__BRKdB",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Wt={tooltip:"styles-module_tooltip__mnnfp",content:"styles-module_content__ydYdI",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ut=new Map;let qt=null;function Xt(e){const t=e.match(/^\[data-tooltip-id=(['"])((?:\\.|(?!\1).)*)\1\]$/);return t?t[2].replace(/\\(['"])/g,"$1"):null}function Zt(e){try{return{anchors:Array.from(document.querySelectorAll(e)),error:null}}catch(e){return{anchors:[],error:e instanceof Error?e:new Error(String(e))}}}function Vt(e,t){var r,a,n,l;const o=Zt(e),i=null!==(a=null===(r=o.error)||void 0===r?void 0:r.message)&&void 0!==a?a:null,s=null!==(l=null===(n=t.error)||void 0===n?void 0:n.message)&&void 0!==l?l:null;if(c=t.anchors,d=o.anchors,c.length===d.length&&c.every((e,t)=>e===d[t])&&i===s)return;var c,d;const u={...t,anchors:o.anchors,error:o.error};Ut.set(e,u),function(e){e.subscribers.forEach(t=>t(e.anchors,e.error))}(u)}let Yt=!1,Jt=null,Qt=!1;function er(e,t){let r=Ut.get(e);if(!r){const t=Zt(e);r={anchors:t.anchors,error:t.error,subscribers:new Set,tooltipId:Xt(e)},Ut.set(e,r)}return r.subscribers.add(t),qt||"undefined"==typeof MutationObserver||(qt=new MutationObserver(e=>{const t=function(e){var t;if(Ut.size<=4)return null;const r=new Set;for(const a of e){if("attributes"===a.type){const e=a.target,n=null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"data-tooltip-id");n&&r.add(n),a.oldValue&&r.add(a.oldValue);continue}if("childList"===a.type){const e=e=>{var t,a;for(let n=0;n<e.length;n++){const l=e[n];if(l.nodeType!==Node.ELEMENT_NODE)continue;const o=l,i=null===(t=o.getAttribute)||void 0===t?void 0:t.call(o,"data-tooltip-id");i&&r.add(i);const s=null===(a=o.querySelectorAll)||void 0===a?void 0:a.call(o,"[data-tooltip-id]");if(s){if(s.length>50)return!0;for(let e=0;e<s.length;e++){const t=s[e].getAttribute("data-tooltip-id");t&&r.add(t)}}}return!1};if(e(a.addedNodes)||e(a.removedNodes))return null;continue}}return r}(e);!function(e){if(e?(Jt||(Jt=new Set),e.forEach(e=>Jt.add(e))):Qt=!0,Yt)return;Yt=!0;const t=()=>{Yt=!1;const e=Qt,t=Jt;var r;Qt=!1,Jt=null,e?Ut.forEach((e,t)=>{Vt(t,e)}):t&&t.size>0&&(r=t,Ut.forEach((e,t)=>{(null===e.tooltipId||r.has(e.tooltipId))&&Vt(t,e)}))};"function"==typeof requestAnimationFrame?requestAnimationFrame(t):Prom
2ise.resolve().then(t)}(t)}),qt.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0})),t([...r.anchors],r.error),()=>{const r=Ut.get(e);r&&(r.subscribers.delete(t),0===r.subscribers.size&&Ut.delete(e),0===Ut.size&&qt&&(qt.disconnect(),qt=null))}}const tr=new Map;function rr(e,t){return`${e}:${t?"capture":"bubble"}`}function ar(e,t,r={}){const a=Boolean(r.capture),n=rr(e,a),l=function(e,t){const r=rr(e,t);let a=tr.get(r);if(!a){const n=new Set,l=e=>{n.forEach(t=>{t(e)})};a={handlers:n,dispatch:l,eventType:e,capture:t},tr.set(r,a),document.addEventListener(e,l,{capture:t})}return a}(e,a);return l.handlers.add(t),()=>{l.handlers.delete(t),0===l.handlers.size&&(tr.delete(n),document.removeEventListener(e,l.dispatch,{capture:a}))}}let nr=null;var lr=(0,a.memo)(({forwardRef:e,id:t,className:r,classNameArrow:n,variant:l="dark",portalRoot:o,anchorSelect:i,place:s="top",offset:c=10,openOnClick:d=!1,positionStrategy:u="absolute",middlewares:m,wrapper:p,delayShow:v=0,delayHide:f=0,autoClose:b,float:y=!1,hidden:x=!1,noArrow:g=!1,clickable:j=!1,openEvents:C,closeEvents:w,globalCloseEvents:k,imperativeModeOnly:S,style:A,position:N,afterShow:T,afterHide:P,disableTooltip:_,content:D,contentWrapperRef:M,isOpen:E,defaultIsOpen:L=!1,setIsOpen:I,previousActiveAnchor:O,activeAnchor:R,setActiveAnchor:$,border:F,opacity:B,arrowColor:H,arrowSize:z=8,role:G="tooltip"})=>{var K;const W=(0,a.useRef)(null),U=(0,a.useRef)(null),q=(0,a.useRef)(null),X=(0,a.useRef)(null),Z=(0,a.useRef)(null),V=(0,a.useRef)(null),[Y,J]=(0,a.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Q,ee]=(0,a.useState)(!1),[te,re]=(0,a.useState)(!1),[ae,ne]=(0,a.useState)(null),le=(0,a.useRef)(!1),oe=(0,a.useRef)(null),ie=(0,a.useRef)(!1),se=(0,a.useRef)(!1),ce=(0,a.useRef)({getBoundingClientRect:()=>({x:0,y:0,width:0,height:0,top:0,left:0,right:0,bottom:0})});zt(()=>(se.current=!0,()=>{se.current=!1}),[]);const de=(0,a.useCallback)(e=>{se.current&&(e&&re(!0),setTimeout(()=>{se.current&&(null==I||I(e),void 0===E&&ee(e))},10))},[E,I]);(0,a.useEffect)(()=>{if(t){if(Q){r(O);const a=e(R),n=[...new Set([...a,t])].filter(Boolean).join(" ");null==R||R.setAttribute("aria-describedby",n)}else r(R);return()=>{r(R),r(O)}}function e(e){var t;return(null===(t=null==e?void 0:e.getAttribute("aria-describedby"))||void 0===t?void 0:t.split(" "))||[]}function r(r){const a=e(r).filter(e=>e!==t);a.length?null==r||r.setAttribute("aria-describedby",a.join(" ")):null==r||r.removeAttribute("aria-describedby")}},[R,Q,t,O]),(0,a.useEffect)(()=>{if(void 0===E)return()=>null;E&&re(!0);const e=setTimeout(()=>{ee(E)},10);return()=>{clearTimeout(e)}},[E]),(0,a.useEffect)(()=>{if(Q!==le.current)if(Gt(V),le.current=Q,Q)null==T||T();else{if(null===nr){const e=getComputedStyle(document.body);nr=(e=>{const t=e.match(/^([\d.]+)(m?s)$/);if(!t)return 0;const[,r,a]=t;return Number(r)*("ms"===a?1:1e3)})(e.getPropertyValue("--rt-transition-show-delay"))}const e=nr;V.current=setTimeout(()=>{re(!1),ne(null),null==P||P()},e+25)}},[P,T,Q]),(0,a.useEffect)(()=>(Gt(Z),!Q||!b||b<=0||(Z.current=setTimeout(()=>{de(!1)},b)),()=>{Gt(Z)}),[R,b,de,Q]);const ue=(0,a.useCallback)(e=>{se.current&&J(t=>t.place===e.place&&t.tooltipStyles.left===e.tooltipStyles.left&&t.tooltipStyles.top===e.tooltipStyles.top&&t.tooltipStyles.border===e.tooltipStyles.border&&t.tooltipArrowStyles.left===e.tooltipArrowStyles.left&&t.tooltipArrowStyles.top===e.tooltipArrowStyles.top&&t.tooltipArrowStyles.right===e.tooltipArrowStyles.right&&t.tooltipArrowStyles.bottom===e.tooltipArrowStyles.bottom&&t.tooltipArrowStyles.borderBottom===e.tooltipArrowStyles.borderBottom&&t.tooltipArrowStyles.borderRight===e.tooltipArrowStyles.borderRight?t:e)},[]),me=(0,a.useRef)(te);me.current=te;const pe=(0,a.useCallback)((e=v)=>{q.current&&clearTimeout(q.current),me.current?de(!0):q.current=setTimeout(()=>{de(!0)},e)},[v,de]),he=(0,a.useCallback)((e=f)=>{X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{ie.current||de(!1)},e)},[f,de]),ve=(0,a.useCallback)(({x:e,y:t})=>{var r;ce.current.getBoundingClientRect=()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t}),$t({place:null!==(r=null==ae?void 0:ae.place)&&void 0!==r?r:s,offset:c,elementReference:ce.current,tooltipReference:W.current,tooltipArrowReference:U.current,strategy:u,middlewares:m,border:F,arrowSize:z}).then(e=>{ue(e)})},[null==ae?void 0:ae.place,s,c,u,m,F,z,ue]),fe=(0,a.useCallback)(()=>{var e,t;const r=null!==(e=null==ae?void 0:ae.position)&&void 0!==e?e:N;r?ve(r):y?oe.current&&ve(oe.current):(null==R?void 0:R.isConnected)&&$t({place:null!==(t=null==ae?void 0:ae.place)&&void 0!==t?t:s,offset:c,elementReference:R,tooltipReference:W.current,tooltipArrowReference:U.current,strategy:u,middlewares:m,border:F,arrowSize:z}).then(e=>{se.current&&ue(e)}
2)},[null==ae?void 0:ae.position,null==ae?void 0:ae.place,N,y,R,s,c,u,m,F,ve,ue,z]),be=(0,a.useCallback)(()=>{re(!1),de(!1),$(null),Gt(q),Gt(X),Gt(Z)},[de,$]),ye=te||L||Boolean(E)||Boolean(R)||Boolean(null==ae?void 0:ae.anchorSelect),{anchorElements:xe,selector:ge}=(({id:e,anchorSelect:t,imperativeAnchorSelect:r,activeAnchor:n,disableTooltip:l,onActiveAnchorRemoved:o,trackAnchors:i})=>{const[s,c]=(0,a.useState)([]),[d,u]=(0,a.useState)(null),m=(0,a.useRef)(null),p=(0,a.useMemo)(()=>(({id:e,anchorSelect:t,imperativeAnchorSelect:r})=>{var a;let n=null!==(a=null!=r?r:t)&&void 0!==a?a:"";return!n&&e&&(n=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),n})({id:e,anchorSelect:t,imperativeAnchorSelect:r}),[e,t,r]),h=(0,a.useMemo)(()=>s.filter(e=>!(null==l?void 0:l(e))),[s,l]),v=(0,a.useMemo)(()=>{if(!n||!p)return!1;try{return n.matches(p)}catch(e){return!1}},[n,p,h]);return(0,a.useEffect)(()=>p&&i?er(p,(e,t)=>{c(e),u(t)}):(c([]),void u(null)),[p,i]),(0,a.useEffect)(()=>{d&&m.current!==p&&(m.current=p)},[p,d]),(0,a.useEffect)(()=>{n&&(n.isConnected&&(h.includes(n)||v)||o())},[n,h,v,o]),{anchorElements:h,selector:p}})({id:t,anchorSelect:i,imperativeAnchorSelect:null==ae?void 0:ae.anchorSelect,activeAnchor:R,disableTooltip:_,onActiveAnchorRemoved:be,trackAnchors:ye});(({activeAnchor:e,anchorElements:t,anchorSelector:r,clickable:n,closeEvents:l,delayHide:o,delayShow:i,disableTooltip:s,float:c,globalCloseEvents:d,handleHideTooltipDelayed:u,handleShow:m,handleShowTooltipDelayed:p,handleTooltipPosition:h,hoveringTooltip:v,imperativeModeOnly:f,lastFloatPosition:b,openEvents:y,openOnClick:x,rendered:g,setActiveAnchor:j,show:C,tooltipHideDelayTimerRef:w,tooltipRef:k,tooltipShowDelayTimerRef:S,updateTooltipPosition:A})=>{const N=(0,a.useRef)(Ft(e=>{},50)),T=(0,a.useRef)(Ft(()=>{},50)),P=(0,a.useRef)(null),_=(0,a.useRef)(null),D=(0,a.useRef)(null),M=(0,a.useRef)(null);e!==D.current&&(D.current=e,P.current=Ht(e));const E=k.current;E!==M.current&&(M.current=E,_.current=Ht(E));const L=x||(null==y?void 0:y.click)||(null==y?void 0:y.dblclick)||(null==y?void 0:y.mousedown),I=(0,a.useMemo)(()=>{const e=y?{...y}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};return!y&&x&&Object.assign(e,{mouseenter:!1,focus:!1,click:!0}),f&&Object.assign(e,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),e},[y,x,f]),O=(0,a.useMemo)(()=>{const e=l?{...l}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};return!l&&x&&Object.assign(e,{mouseleave:!1,blur:!1}),f&&Object.assign(e,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),e},[l,x,f]),R=(0,a.useMemo)(()=>{const e=d?{...d}:{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:L||!1};return f&&Object.assign(e,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1}),e},[d,L,f]),$=(0,a.useRef)(e);$.current=e;const F=(0,a.useRef)(C);F.current=C;const B=(0,a.useRef)(t);B.current=t;const H=(0,a.useRef)(m);H.current=m;const z=(0,a.useRef)(h);z.current=h;const G=(0,a.useRef)(A);G.current=A;const K=(0,a.useRef)(()=>null),W=(0,a.useRef)(()=>{}),U=(0,a.useRef)(()=>{}),q=r?function(e){const t=e.match(/^\[data-tooltip-id=(['"])((?:\\.|(?!\1).)*)\1\]$/);return t?t[2].replace(/\\(['"])/g,"$1"):null}(r):null;K.current=e=>{var t,a;if(!(e instanceof Element&&e.isConnected))return null;const n=e;if(q){const e=function(e,t){let r=e;for(;r;){const e=r.dataset;if((null==e?void 0:e.tooltipId)===t)return r;r=r.parentElement}return null}(n,q);if(e&&!(null==s?void 0:s(e)))return e}else if(r)try{const e=null!==(t=n.matches(r)?n:n.closest(r))&&void 0!==t?t:null;if(e&&!(null==s?void 0:s(e)))return e}catch(e){return null}return null!==(a=B.current.find(e=>e===n||e.contains(n)))&&void 0!==a?a:null},W.current=e=>{e&&(e.isConnected?(null==s?void 0:s(e))||(i&&$.current&&e!==$.current?(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{j(e),m(!0)},i)):(j(e),i?p():m(!0)),w.current&&clearTimeout(w.current)):j(null))},U.current=()=>{n?u(o||100):o?u():m(!1),S.current&&clearTimeout(S.current)};const X=N.current,Z=T.current;X.setCallback(e=>W.current(e)),Z.setCallback(()=>U.current()),(0,a.useEffect)(()=>{const e=[],t=(t,r,a)=>{e.push(ar(t,r,a))},r=e=>{var t;return Boolean((null==e?void 0:e.target)instanceof Node&&(null===(t=$.current)||void 0===t?void 0:t.contains(e.target)))},a=e=>{Z.cancel(),X(e)},l=()=>{X.cancel(),Z()},o=()=>{t("mouseover",e=>{const t=K.current(e.target);t&&K.current(e.relatedTarget)!==t&&a(t)})},i=()=>{t("mouseout",e=>{const t=K.current(e.target);if(!t&&!r(e))return;const a=e.relatedTarget,n=t||$.current;a instanceof Node&&(null==n?void 0:n.contains(a))||l()})};I.mouseenter&&o(),O.mouseleave&&i(),I.mouseover&&o(),O.mouseout&&i(),I.focus&&t("focusin",e=>{a(K.current(e.target))}),(I.mouseenter||I.mouseover||I.focus)&&t("touchstart",e=>{a(K.current(e.target))}),O.blur&&t("focusout",e=>{const t=K.current(e.target);if(!t&&!r(e))return;const a=e.relatedTarget,n=t||$.current;a instanceof Node&&(null==n?void 0:n.contains(a))||l()});const s=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],d=["click","dblclick","mousedown","mouseup"],u=e=>{var t;const r=K.current(null!==(t=null==e?void 0:e.target)&&void 0!==t?t:null);r&&(F.current&&$.current===r||W.current(r))},m=e=>{F.current&&r(e)&&U.current()};
2Object.entries(I).forEach(([e,r])=>{r&&!s.includes(e)&&d.includes(e)&&t(e,u,{capture:!0})}),Object.entries(O).forEach(([e,r])=>{r&&!s.includes(e)&&d.includes(e)&&t(e,m,{capture:!0})}),c&&t("pointermove",e=>{const t=$.current;if(!t)return;if(K.current(e.target)!==t)return;const r=e,a={x:r.clientX,y:r.clientY};z.current(a),b.current=a});const p=k.current,h=()=>{v.current=!0},f=()=>{v.current=!1,U.current()},y=n&&(O.mouseout||O.mouseleave);return y&&(null==p||p.addEventListener("mouseover",h),null==p||p.addEventListener("mouseout",f)),()=>{e.forEach(e=>e()),y&&(null==p||p.removeEventListener("mouseover",h),null==p||p.removeEventListener("mouseout",f)),X.cancel(),Z.cancel()}},[I,O,c,n,g]),(0,a.useEffect)(()=>{const t=()=>{H.current(!1),Gt(S)},r=_.current,a=P.current;R.scroll&&(window.addEventListener("scroll",t),null==a||a.addEventListener("scroll",t),null==r||r.addEventListener("scroll",t));let n=null;R.resize?window.addEventListener("resize",t):e&&k.current&&(n=(0,Et.ll)(e,k.current,()=>G.current(),{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const l=e=>{"Escape"===e.key&&H.current(!1)};R.escape&&window.addEventListener("keydown",l);const o=e=>{var t,r;if(!F.current)return;const a=e.target;a instanceof Node&&a.isConnected&&((null===(t=k.current)||void 0===t?void 0:t.contains(a))||(null===(r=$.current)||void 0===r?void 0:r.contains(a))||B.current.some(e=>null==e?void 0:e.contains(a))||(H.current(!1),Gt(S)))};return R.clickOutsideAnchor&&window.addEventListener("click",o),()=>{R.scroll&&(window.removeEventListener("scroll",t),null==a||a.removeEventListener("scroll",t),null==r||r.removeEventListener("scroll",t)),R.resize&&window.removeEventListener("resize",t),n&&n(),R.escape&&window.removeEventListener("keydown",l),R.clickOutsideAnchor&&window.removeEventListener("click",o)}},[R,e])})({activeAnchor:R,anchorElements:xe,anchorSelector:ge,clickable:j,closeEvents:w,delayHide:f,delayShow:v,disableTooltip:_,float:y,globalCloseEvents:k,handleHideTooltipDelayed:he,handleShow:de,handleShowTooltipDelayed:pe,handleTooltipPosition:ve,hoveringTooltip:ie,imperativeModeOnly:S,lastFloatPosition:oe,openEvents:C,openOnClick:d,rendered:te,setActiveAnchor:$,show:Q,tooltipHideDelayTimerRef:X,tooltipRef:W,tooltipShowDelayTimerRef:q,updateTooltipPosition:fe});const je=(0,a.useRef)(fe);je.current=fe,(0,a.useEffect)(()=>{te&&fe()},[te,fe]),(0,a.useEffect)(()=>{if(!te||!(null==M?void 0:M.current))return()=>null;let e=null;const t=new ResizeObserver(()=>{e&&clearTimeout(e),e=setTimeout(()=>{se.current&&je.current(),e=null},0)});return t.observe(M.current),()=>{t.disconnect(),e&&clearTimeout(e)}},[D,M,te]),(0,a.useEffect)(()=>{var e;if(!L&&!Boolean(E))return;const t=(()=>{if(!R||!(null==ae?void 0:ae.anchorSelect))return!1;try{return R.matches(ae.anchorSelect)}catch(e){return!1}})();if(!R||!xe.includes(R)){if(t)return;$(null!==(e=xe[0])&&void 0!==e?e:null)}},[R,xe,L,null==ae?void 0:ae.anchorSelect,E,te,$]),(0,a.useEffect)(()=>(L&&de(!0),()=>{Gt(q),Gt(X),Gt(Z),Gt(V)}),[L,de]),(0,a.useEffect)(()=>{q.current&&(Gt(q),pe(v))},[v,pe]);const Ce=null!==(K=null==ae?void 0:ae.content)&&void 0!==K?K:D,we=null!=Ce,ke=Q&&void 0!==Y.tooltipStyles.left,Se=(0,a.useMemo)(()=>({...A,...Y.tooltipStyles,opacity:void 0!==B&&ke?B:void 0}),[A,Y.tooltipStyles,B,ke]),Ae=(0,a.useMemo)(()=>H?`linear-gradient(to right bottom, transparent 50%, ${H} 50%)`:void 0,[H]),Ne=(0,a.useMemo)(()=>({...Y.tooltipArrowStyles,background:Ae,"--rt-arrow-size":`${z}px`}),[Y.tooltipArrowStyles,Ae,z]);(0,a.useImperativeHandle)(e,()=>({open:e=>{let t=null;if(null==e?void 0:e.anchorSelect){try{t=document.querySelector(e.anchorSelect)}catch(e){return}if(!t)return}t&&$(t),ne(null!=e?e:null),(null==e?void 0:e.delay)?pe(e.delay):de(!0)},close:e=>{(null==e?void 0:e.delay)?he(e.delay):de(!1)},activeAnchor:R,place:Y.place,isOpen:Boolean(te&&!x&&we&&ke)})),(0,a.useEffect)(()=>()=>{Gt(q),Gt(X),Gt(Z),Gt(V)},[]);const Te=te&&!x&&we?a.createElement(p,{id:t,role:G,className:Mt("react-tooltip",Kt.tooltip,Wt.tooltip,Wt[l],r,`react-tooltip__place-${Y.place}`,Kt[ke?"show":"closing"],ke?"react-tooltip__show":"react-tooltip__closing","fixed"===u&&Kt.fixed,j&&Kt.clickable),onTransitionEnd:e=>{Gt(V),Q||"opacity"!==e.propertyName||(re(!1),ne(null),null==P||P())},style:Se,ref:W},a.createElement(p,{className:Mt("react-tooltip-content-wrapper",Kt.content,Wt.content)},Ce),a.createElement(p,{className:Mt("react-tooltip-arrow",Kt.arrow,Wt.arrow,n,g&&Kt.noArrow),style:Ne,ref:U})):null;return Te?o?(0,h.createPortal)(Te,o):Te:null});const or=new Map;let ir=null;const sr={attributes:!0,childList:!1,subtree:!1};function cr(e,t){const r=(ir||(ir=new MutationObserver(e=>{var t;for(const r of e){if("attributes"!==r.type||!(null===(t=r.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))continue;const e=r.target,a=or.get(e);a&&a.forEach(t=>t(e))}})),ir);let a=or.get(e);return a||(a=new Set,or.set(e,a),r.observe(e,sr)),a.add(t),()=>{const a=or.get(e);a&&(a.delete(t),0===a.size&&(or.delete(e),0===or.size?r.disconnect():(r.disconnect(),or.forEach((e,t)=>{r.observe(t,sr)}))))}}const dr=a.forwardRef(({id:e,anchorSelect:t,content:r,render:n,className:l,classNameArrow:o,variant:i="dark",portalRoot:s,place:c="top",offset:d=10,wrapper:u="div",children:m=null,openOnClick:p=!1,positionStrategy:h="absolute",middlewares:v,delayShow:f=0,delayHide:b=0,autoClose:y,float:x=!1,hidden:g=!1,noArrow:j=!1,clickable:C=!1,openEvents:w,closeEvents:k,globalCloseEvents:S,imperativeModeOnly:A=!1,style:N,position:T,isOpen:P,defaultIsOpen:_=!1,disableStyleInjection:D=!1,border:M,opacity:E,arrowColor:L,arrowSize:I,setIsOpen:O,afterShow:R,afterHide:$,disableTooltip:F,role:B="tooltip"},H)=>{var z,G,K,W,U,q,X,Z;const[V,Y]=(0,a.useState)(null),[J,Q]=(0,a.useState)({}),ee=(0,a.useRef)(null),te=(0,a.useRef)(D),re=(0,a.useCallback)(e=>{Y(t=>((null==e?void 0:e.isSameNode(t))||(ee.current=t),e))},[]),ae=e=>{const t=null==e?void 0:e.getAttributeNames().reduce((t,r)=>{var a;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(a=null==e?void 0:e.getAttribute(r))&&void 0!==a?a:null),t},{});return t};(0,a.useEffect)(()=>{te.current},[D]),(0,a.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))},[]),(0,a.useEffect)(()=>
2{if(!V)return Q({}),()=>{};const e=e=>{const t=ae(e);Q(e=>{const r=Object.keys(t),a=Object.keys(e);return r.length===a.length&&r.every(r=>t[r]===e[r])?e:t})};return e(V),cr(V,e)},[V,t]),(0,a.useEffect)(()=>{},[M,E,null==N?void 0:N.border,null==N?void 0:N.opacity]);const ne=V?ae(V):J,le=null!==(z=ne.content)&&void 0!==z?z:r,oe=null!==(G=ne.place)&&void 0!==G?G:c,ie=null!==(K=ne.variant)&&void 0!==K?K:i,se=null==ne.offset?d:Number(ne.offset),ce=null!==(W=ne.wrapper)&&void 0!==W?W:u,de=null!==(U=ne["position-strategy"])&&void 0!==U?U:h,ue=null==ne["delay-show"]?f:Number(ne["delay-show"]),me=null==ne["delay-hide"]?b:Number(ne["delay-hide"]),pe=null==ne["auto-close"]?y:Number(ne["auto-close"]),he=null==ne.float?x:"true"===ne.float,ve=null==ne.hidden?g:"true"===ne.hidden,fe=null!==(q=ne["class-name"])&&void 0!==q?q:null;let be=m;const ye=(0,a.useRef)(null);if(n){const e=n({content:null!==(Z=null!==(X=ne.content)&&void 0!==X?X:le)&&void 0!==Z?Z:null,activeAnchor:V});be=e?a.createElement("div",{ref:ye,className:"react-tooltip-content-wrapper"},e):null}else null!=le&&(be=le);const xe={forwardRef:H,id:e,anchorSelect:t,className:Mt(l,fe),classNameArrow:o,content:be,contentWrapperRef:ye,portalRoot:s,place:oe,variant:ie,offset:se,wrapper:ce,openOnClick:p,positionStrategy:de,middlewares:v,delayShow:ue,delayHide:me,autoClose:pe,float:he,hidden:ve,noArrow:j,clickable:C,openEvents:w,closeEvents:k,globalCloseEvents:S,imperativeModeOnly:A,style:N,position:T,isOpen:P,defaultIsOpen:_,border:M,opacity:E,arrowColor:L,arrowSize:I,setIsOpen:O,afterShow:R,afterHide:$,disableTooltip:F,activeAnchor:V,previousActiveAnchor:ee.current,setActiveAnchor:re,role:B};return a.createElement(lr,{...xe})});var ur=(0,a.memo)(dr);"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||It({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.core-styles-module_content__BRKdB{position:relative;z-index:1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out;will-change:opacity}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in;will-change:opacity}",type:"core"}),e.detail.disableBase||It({css:"\n.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;width:max-content}.styles-module_content__ydYdI{background:inherit;border-radius:inherit;padding:8px 16px}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})});const mr="onlyOneTooltip",pr="#777",hr="#528f53",vr=e=>t=>{"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),e?.(t))},fr=e=>{const t=a.useMemo(()=>({className:"redSoldoutTooltip",style:{backgroundColor:"white",color:"#c43232"},border:`1px solid ${pr}`}),[]);return(0,b.jsxs)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-selected":e.ariaSelected,"aria-current":e.ariaCurrent,"data-date":e.dataDate,"data-tooltip-content":e.dataTip,"data-tooltip-id":"sd_tp",onClick:e.onClick,onKeyDown:vr(e.onClick),children:[(0,b.jsx)(ur,{...t,id:"sd_tp",noArrow:!0}),e.children]})},br=e=>{const t=a.useMemo(()=>({className:"tooFewTooltip",style:{backgroundColor:"white",color:pr},border:`1px solid ${pr}`}),[]);return(0,b.jsxs)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-selected":e.ariaSelected,"aria-current":e.ariaCurrent,"data-date":e.dataDate,"data-tooltip-id":"fw_tp","data-tooltip-content":e.dataTip,onClick:e.onClick,onKeyDown:vr(e.onClick),children:[(0,b.jsx)(ur,{id:"fw_tp",...t,noArrow:!0}),e.children]})},yr=e=>{const t=a.useMemo(()=>({className:mr,style:{backgroundColor:"white",color:pr},border:`1px solid ${pr}`}),[]);return(0,b.jsxs)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-selected":e.ariaSelected,"aria-current":e.ariaCurrent,"data-date":e.dataDate,"data-tooltip-id":"oo_tp","data-tooltip-content":e.dataTip,onClick:e.onClick,onKeyDown:vr(e.onClick),children:[(0,b.jsx)(ur,{id:"oo_tp",...t,noArrow:!0}),e.children]})},xr=e=>(a.useMemo(()=>({className:mr,backgroundColor:"white",color:"white",border:!0,borderColor:hr,textColor:hr}),[]),(0,b.jsx)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-selected":e.ariaSelected,"aria-current":e.ariaCurrent,"data-date":e.dataDate,"data-for":"oo_tp","data-tip":e.dataTip,onClick:e.onClick,onKeyDown:vr(e.onClick),children:e.children})),gr=e=>(0,b.jsx)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-current":e.ariaCurrent,"data-date":e.dataDate,children:e.children}),jr=e=>(0,b.jsx)("li",{role:"gridcell",tabIndex:e.isActive?0:-1,"aria-label":e.ariaLabel,"aria-selected":e.ariaSelected,"aria-current":e.ariaCurrent,"data-date":e.dataDate,"data-for":"oo_available","data-tip":"oo_available",onClick:e.onClick,onKeyDown:vr(e.onClick),children:e.children}),Cr="TOO_FEW_TICKETS_LEFT",wr=e=>{const{formattedDate:t,tourPrice:r,day:n,onDateClick:i,selectedDate:s,isPrivate:c,isLoading:d,isToday:u,currentCulture:m,isActive:h}=e,v=Pr(n,m),f=(0,O.GP)(n,"yyyy-MM-dd"),y=u?"date":void 0,{baseAdultPrice
2:x,availabilityStatus:g,availableTickets:j}=r,C=a.useMemo(()=>parseFloat(x),[x]),k=s&&(0,gt.r)(n,s)||!1,S=k?", Selected":"",A=(0,l.d4)(o.IM),{isMobile:N}=(0,l.d4)(w.md),T=g===Cr,P=g===Cr&&1===j,_=g===oe,D=g===ce||g===de,M=D||_||!d,E=p()(Ve,{[Ye]:M,isLoading:d,selected:k&&!T,soldout:_,toofewtickets:T||P,today:u}),L=p()(Je,{disabled:!D}),I=()=>{D&&!d&&i(n)};if(N)return D?(0,b.jsx)(jr,{onClick:I,ariaLabel:`${v}, ${ue[ce]}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isSoldOut:_,isTooFewTickets:T||P,isPrivate:c,isLoading:d,isPromo:g===de,isSelected:k,basePrice:C})]})})}):(0,b.jsx)(gr,{ariaLabel:`${v}, No tour available`,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isSoldOut:_,isTooFewTickets:T||P,isLoading:d,isSelected:k,isPrivate:c,basePrice:C})]})})});if(_){const e={dataTip:A.soldOut};return(0,b.jsx)(fr,{...e,onClick:I,ariaLabel:`${v}, ${A.soldOut||ue[oe]}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isSoldOut:!0,isTooFewTickets:!1,isLoading:d,isSelected:k,basePrice:C})]})})})}if(T){if(c)return(0,b.jsx)(xr,{dataTip:"",onClick:I,ariaLabel:`${v}, ${ue[ie]}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:!0,children:t}),(0,b.jsx)(_t,{isSoldOut:!1,isTooFewTickets:!0,isPrivate:c,isLoading:d,isSelected:k,basePrice:C})]})})});const e={dataTip:`${A.only} ${j}\n ${1===j?A.ticketLeft:A.ticketsLeft}`};return(0,b.jsx)(br,{...e,onClick:I,ariaLabel:`${v}, ${e.dataTip}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isSoldOut:!1,isTooFewTickets:!0,isPrivate:c,isLoading:d,isSelected:k,basePrice:C})]})})})}if(P){const e={dataTip:A.onlyOneAvailabilityLeft};return(0,b.jsx)(yr,{...e,onClick:I,ariaLabel:`${v}, ${A.onlyOneAvailabilityLeft||ue[se]}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isSoldOut:_,isTooFewTickets:!0,isLoading:d,isPrivate:c,isSelected:k,basePrice:C})]})})})}return(0,b.jsx)(jr,{onClick:I,ariaLabel:`${v}, ${ue[g]||ue[ce]}${S}`,ariaSelected:k,ariaCurrent:y,dataDate:f,isActive:h,children:(0,b.jsx)("div",{className:E,children:(0,b.jsxs)("span",{className:L,children:[(0,b.jsx)(Ct,{isUnavailable:d,children:t}),(0,b.jsx)(_t,{isLoading:d,isPromo:g===de,isPrivate:c,isSelected:k,basePrice:C})]})})})},kr=a.memo(wr),Sr=e=>{const{day:t,selectedDate:r,formattedDate:a,tourPrice:n,isLoading:l,onDateClick:o,isPrivate:i,isToday:s,currentCulture:c,isActive:d}=e,{availabilityStatus:u}=n;return"UNAVAILABLE"===u?(0,b.jsx)(kt,{isToday:s,day:t,formattedDate:a,currentCulture:c,isActive:d}):(0,b.jsx)(kr,{selectedDate:r,day:t,isPrivate:i,isToday:s,isLoading:l,tourPrice:n,formattedDate:a,onDateClick:o,currentCulture:c,isActive:d})},Ar=a.memo(Sr),Nr=e=>{const{formattedDate:t,isToday:r,isUnavailable:a,isOutOfMonth:n,isLoading:l,accessibleLabel:o,onClick:i,isActive:s,dateKey:c}=e,d=p()({today:r},Ve);return(0,b.jsx)("li",{role:"gridcell","aria-label":n?void 0:o,"aria-hidden":!!n||void 0,"aria-current":r?"date":void 0,"data-date":c,tabIndex:n?-1:s?0:-1,onClick:i,onKeyDown:i?e=>{i&&("Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||(e.preventDefault(),i()))}:void 0,style:i?{cursor:"pointer"}:void 0,children:(0,b.jsx)("span",{className:d,children:(0,b.jsxs)("span",{className:Je,children:[!l&&(0,b.jsx)(Ct,{isUnavailable:a,isOutOfMonth:n,children:t}),l&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Ct,{isUnavailable:!0,children:t}),(0,b.jsx)(Pt,{})]})]})})})},Tr=a.memo(Nr),Pr=(e,t)=>(0,O.GP)(e,"EEEE, MMMM d, yyyy",{locale:Ue.locales[t]}),_r=e=>{const{day:t,currentCulture:r,isActive:a}=e,n=(0,O.GP)(t,"d"),l=Pr(t,r);return(0,b.jsx)(Tr,{isToday:!1,isUnavailable:!0,isOutOfMonth:!0,isLoading:!1,formattedDate:n,accessibleLabel:l,isActive:a,dateKey:(0,O.GP)(t,"yyyy-MM-dd")})},Dr=e=>
2{const{day:t,isToday:r,isLoading:a,currentCulture:n,isActive:l}=e,o=(0,O.GP)(t,"d"),i=Pr(t,n);return(0,b.jsx)(Tr,{isToday:r,isUnavailable:!0,isLoading:a,formattedDate:o,accessibleLabel:i,isActive:l,dateKey:(0,O.GP)(t,"yyyy-MM-dd")})},Mr=e=>{const{day:t,isToday:r,tourPrice:a,isLoading:n,isPrivate:l=!1,onDateClick:o,selectedDate:i,currentCulture:s,isActive:c}=e;if(!a)return(0,b.jsx)(Dr,{isLoading:n,isToday:r,day:t,currentCulture:s,isActive:c});const d=(0,O.GP)(t,"d");return(0,b.jsx)(Ar,{formattedDate:d,day:t,isToday:r,selectedDate:i,tourPrice:a,isPrivate:l,isLoading:n,onDateClick:o,currentCulture:s,isActive:c})},Er=a.memo(Mr),Lr=e=>{const{calendar:t,availability:r,activeDate:a,...n}=e;return(0,b.jsx)(b.Fragment,{children:t.map((e,t)=>{const l=((e,t)=>{const r=(0,O.GP)(e,R._X);if(!t||!t.availableDates)return{tourPrice:void 0,currentFormattedDate:r};const a=t.availableDates.find(e=>"string"==typeof e.date&&e.date===r);return{tourPrice:a,currentFormattedDate:r}})(e,r),{tourPrice:o}=l,i=!!a&&(0,gt.r)(e,a);return(0,b.jsx)(Ir,{day:e,tourPrice:o,isActive:i,...n},t)})})},Ir=e=>{const{day:t,today:r,onDateClick:n,isPrivate:l,monthStart:o,selectedDate:i,tourPrice:s,isLoading:c,currentCulture:d,isActive:u}=e,m=(0,a.useMemo)(()=>(0,yt.t)(t,o),[t,o]),{isBeforeToday:p,isToday:h}=(0,a.useMemo)(()=>({isBeforeToday:!(0,jt.d)(t,r),isToday:(0,gt.r)(t,r)}),[t,r]);return m?p&&!h?(0,b.jsx)(Dr,{isToday:!1,day:t,isLoading:!1,currentCulture:d,isActive:u}):(0,b.jsx)(Er,{day:t,isToday:h,isPrivate:l||!1,onDateClick:n,selectedDate:i||null,tourPrice:s,isLoading:c,currentCulture:d,isActive:u}):(0,b.jsx)(_r,{day:t,currentCulture:d,isActive:u})},Or=a.memo(Lr),Rr=({calendar:e,index:t,currentCulture:r})=>{const a=(0,O.GP)(e[t],"EEE",{locale:Ue.locales[r]}).substring(0,3),n=(0,O.GP)(e[t],"EEEE",{locale:Ue.locales[r]});return(0,b.jsx)("li",{role:"columnheader","aria-label":(0,Ue.toUpperCaseFirstChar)(n),"aria-rowindex":1,"aria-colindex":t+1,className:p()("daysOfWeek"),children:(0,Ue.toUpperCaseFirstChar)(a)},t)},$r=({calendar:e,currentCulture:t})=>{const r=Array.from(Array(7).keys());return(0,b.jsx)(b.Fragment,{children:r.map((r,a)=>(0,b.jsx)(Rr,{index:a,calendar:e,currentCulture:t},a))})},Fr=e=>{const{isLoading:t,availability:r,selectedDate:n,isPrivate:l,onDateClick:o,calendarMetaData:i,calendar:s,currentCulture:c}=e,{monthStart:d,today:u}=i,m=p()(i.weekCssClass),{gridRef:h,activeDate:v,onGridKeyDown:f}=((e,t,r,n,l)=>{const o=(0,a.useRef)(null),i=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>n&&(0,yt.t)(n,t)?n:(0,yt.t)(r,t)?r:t,[n,t,r]),[c,d]=(0,a.useState)(s);(0,a.useEffect)(()=>{d(s)},[t.getTime()]);const u=e=>{const t=(0,O.GP)(e,"yyyy-MM-dd");o.current?.querySelector(`[data-date="${t}"]`)?.focus()};return(0,a.useEffect)(()=>{l||i.current||(i.current=!0,requestAnimationFrame(()=>u(c)))},[l]),{gridRef:o,activeDate:c,onGridKeyDown:r=>{const a=r.target,n=a.getAttribute?.("data-date");if(!n)return;const l=e.find(e=>(0,O.GP)(e,"yyyy-MM-dd")===n);if(!l)return;let o;switch(r.key){case"ArrowRight":o=(0,xt.f)(l,1);break;case"ArrowLeft":o=(0,xt.f)(l,-1);break;case"ArrowDown":o=(0,xt.f)(l,7);break;case"ArrowUp":o=(0,xt.f)(l,-7);break;case"Home":o=(0,rt.k)(l);break;case"End":o=(0,at.$)(l);break;default:return}e.some(e=>(0,gt.r)(e,o))&&(0,yt.t)(o,t)&&(r.preventDefault(),d(o),requestAnimationFrame(()=>u(o)))}}})(s,d,u,n,t);return(0,b.jsx)("div",{className:"body",children:(0,b.jsxs)("ul",{ref:h,className:m,role:"grid","aria-label":"Availability calendar","aria-busy":t,onKeyDown:f,children:[(0,b.jsx)($r,{calendar:s,currentCulture:c}),(0,b.jsx)(Or,{monthStart:d,availability:r,isLoading:t,isPrivate:l,today:u,onDateClick:o,selectedDate:n,calendar:s,currentCulture:c,activeDate:v})]})})},Br=e=>{const{isLoading:t,availability:r,calendar:o,isPrivate:i,calendarMetaData:s,currentCulture:c}=e,u=(0,l.wA)(),m=(0,n.Zp)(),p=(0,a.useCallback)(e=>{u((0,bt.Pq)()),u((0,d.VN)(e,m))},[u,history]),{tourDate:h}=(0,l.d4)($.n),v=(0,a.useMemo)(()=>s,[s.monthStart,s.today,s.weekCssClass]),[f,y]=(0,a.useState)(""),x=(0,a.useRef)(t);return(0,a.useEffect)(()=>{t?y("Loading availabilityâ¦"):x.current&&y("Availability updated"),x.current=t},[t]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{"aria-live":"polite",style:Hr,children:f}),(0,b.jsx)(Fr,{calendar:o,isPrivate:i,calendarMetaData:v,isLoading:t,availability:r,onDateClick:p,selectedDate:h,currentCulture:c})]})},Hr={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},zr=a.memo(Br,(e,t)=>{const r=e.calendar!==t.calendar,a=e.availability!==t.availability,n=e.isLoading!==t.isLoading,l=e.isPrivate!==t.isPrivate,o=e.currentCulture!==t.currentCulture,i=e.calendarMetaData.monthStart.getTime()!==t.calendarMetaData.monthStart.getTime()||e.calendarMetaData.today.getTime()!==t.calendarMetaData.today.getTime()||e.calendarMetaData.weekCssClass!==t.calendarMetaData.weekCssClass;return!(r||a||n||l||o||i)}),Gr=(e,t)=>(0,a.useMemo)(()=>{const r=(0,ze.w)(e),a=((e,t=0)=>{const r=(0,tt.p)(e),a=(0,rt.k)(e,{weekStartsOn:t}),n=(0,at.$)(r,{weekStartsOn:t});return(0,nt.k)({start:a,end:n})})(r),n=((e,t)=>{const r=e.length/7;return{weekCssClass:p()({"grid-six-weeks":6===r,"grid-five-weeks":5===r}),weeks:r,monthStart:t,today:new Date}})(a,r);return{calendar:a,metaData:n,options:Array.from(Array(14).keys()).map(e=>{const r=(0,Ge.P)((0,O.GP)(new Date((new Date).getFullYear(),(new Date).getMonth(),1),R._X),e);return{value:(0,O.GP)(r,R.d_,{locale:Ue.locales[t]}),key:(0,O.GP)(r,R._X)}})}},[e,t]),Kr=({labels:e,CDNHostName:t})=>(0,b.jsx)("div",{className:"calendarSummaryItem",children:(0,b.jsx)(I,{labels:e,cdnHostName:t})}),Wr=({isMobile:e,labels:t,currentMonth:r,options:a,isPrivate:n,cdnH
2ostName:l,isLoading:o,availability:i,calendar:s,calendarMetaData:c,currentCulture:d,handleChangeMonth:u,prevMonth:m,nextMonth:h})=>(0,b.jsxs)("div",{className:p()("calendar",{[Xe]:e}),children:[(0,b.jsx)(ft,{labels:t,currentMonth:r,options:a,isPrivate:n,handleChangeMonth:u,prevMonth:m,nextMonth:h,cdnHostName:l,currentCulture:d}),(0,b.jsx)(zr,{isLoading:o,availability:i,isPrivate:n,calendar:s,calendarMetaData:c,currentCulture:d})]}),Ur=({CDNHostName:e,labels:t,isMobile:r,tour:n,origin:o})=>{const{isPrivate:s}=n,c=(0,l.d4)($.n),u=(0,l.d4)(We.Z6),m=(0,l.d4)(i.f7),p=(0,l.d4)(w.uM),{currentMonth:h,availability:v}=c,f=(0,l.wA)(),y=(e=>{const t=(0,l.wA)();return(0,a.useCallback)(t=>(0,d.Ay)(t,e),[e,t])})(o),{calendar:x,metaData:g,options:j}=Gr(h,p);((e,t,r)=>{(0,a.useEffect)(()=>{const a=(0,O.GP)(e,R._X);r(t(a))},[])})(h,y,f);const C=(0,a.useCallback)(()=>{const e=(0,Ge.P)(h,1),t=(0,O.GP)(e,R._X);f(y(t))},[h,y,f]),k=(0,a.useCallback)(()=>{const e=(0,Ke.a)(h,1);f(y((0,O.GP)(e,R._X)))},[h,y,f]),S=(0,a.useCallback)(e=>{const t=e.value;f(y(t))},[y,f]);return(0,b.jsxs)("div",{className:"calendarContainer",children:[(0,b.jsx)(Kr,{labels:t,CDNHostName:e}),(0,b.jsx)(Wr,{isMobile:r,labels:t,currentMonth:h,options:j,isPrivate:s,cdnHostName:m,isLoading:u,availability:v,calendar:x,calendarMetaData:g,currentCulture:p,handleChangeMonth:S,prevMonth:k,nextMonth:C}),(0,b.jsx)(et,{isMobile:r,isPrivate:s,labels:t})]})};var qr=r(68674),Xr=r(69989);const Zr={promo:"promo",spinnerContainer:"spinnerContainer",spinner:"spinner",priceContainer:"priceContainer",rrpBasePrice:"rrpBasePrice",fixedPrice:"fixedPrice",labelContainer:"labelContainer",timeSummaryTotal:"timeSummaryTotal",totalRrpBasePrice:"totalRrpBasePrice",totalLabel:"totalLabel",totalRrpPrice:"totalRrpPrice"};var Vr=r(48326);const Yr=e=>{const{cdnHostName:t,labels:r,tour:a}=e,{priceInfo:n}=a,{totAdults:l,totChild:o,totInfants:i}=n,s=L(r,!1),c=s.getAdults(l),d=s.getChildren(o),u=s.getInfants(i);return(0,b.jsx)(M,{type:"CLOCK",onClick:()=>{},cdnHostName:t,summaryItemText:"",children:(0,b.jsxs)("ul",{onClick:e=>e.stopPropagation(),children:[(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:c,labels:r})}),o>0&&(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:d,labels:r})}),i>0&&(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:u,labels:r})}),(0,b.jsx)(ea,{label:r.total,placeholder:!0})]})})},Jr=e=>{const{label:t,labels:r,currency:a,currencyPrefix:n,price:l,rrpPrice:o}=e;return 0===l?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:Zr.labelContainer,children:(0,b.jsx)("span",{children:t})}),(0,b.jsx)("div",{className:Zr.priceContainer,children:(0,b.jsx)("span",{className:Zr.fixedPrice,children:r.free})})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:Zr.labelContainer,children:(0,b.jsx)("span",{children:t})}),(0,b.jsxs)("div",{className:Zr.priceContainer,children:[o!==l&&(0,b.jsx)("span",{className:Zr.rrpBasePrice,children:`${a} ${o?.toFixed(2)}`}),l&&(0,b.jsxs)("span",{className:Zr.fixedPrice,children:[n&&(0,b.jsxs)("span",{style:{fontSize:"9px"},children:[n," "]}),`${a} ${(0,je.h2)(l.toFixed(2))}`]}),!l&&(0,b.jsx)("span",{className:Zr.spinnerContainer,children:(0,b.jsx)(Xr.A,{})})]})]})},Qr=e=>{const{children:t}=e;return(0,b.jsx)("li",{className:Zr.timeSummaryItem,children:t})},ea=e=>{const{label:t,currency:r,currencyPrefix:n,price:l,rrpPrice:o}=e,i=a.useMemo(()=>
2!(!l||!o)&&(0,je.h2)(o.toFixed(2))!==l,[l]);return(0,b.jsxs)("li",{className:Zr.timeSummaryTotal,children:[(0,b.jsx)("div",{className:Zr.totalLabel,children:(0,b.jsx)("span",{children:t})}),(0,b.jsxs)("div",{className:Zr.priceContainer,children:[i&&(0,b.jsx)("span",{className:Zr.totalRrpBasePrice,children:`${r} ${o.toFixed(2)}`}),l&&(0,b.jsxs)("span",{className:Zr.totalRrpPrice,children:[n&&(0,b.jsxs)("span",{style:{fontSize:"9px"},children:[n," "]}),`${r} ${l}`]}),!l&&(0,b.jsx)("span",{className:Zr.spinnerContainer,children:(0,b.jsx)(Xr.A,{})})]})]})},ta=e=>{const{cdnHostName:t,selectedCurrencySymbol:r,selectedCurrency:o,pax:i,labels:s,tourOption:c,isPrivate:d,tour:u}=e,m=!!r&&(0,je.hn)(r,o),p=c.optionDepartTime,h=a.useMemo(()=>{const{conditionDescription:e}=c,{overrideTimeSlotsInfo:t}=u;return t||(e?p+" - "+e:p)},[u,c]),{tourPricing:v}=c,f=ee(i,v,d),y=L(s,!1),x=y.getAdults(i.adults),g=y.getChildren(i.children),j=y.getInfants(i.infants),C=(0,n.Zp)(),w=(0,l.wA)(),k=(0,a.useCallback)(e=>{w((0,Vr.Pj)(void 0)),C("/time")},[w,C]),{adult:S,child:A,infantPricing:N,total:T}=f;return(0,b.jsx)(M,{type:"CLOCK",onClick:k,cdnHostName:t,summaryItemText:h,children:(0,b.jsxs)("ul",{onClick:e=>e.stopPropagation(),children:[(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:x,labels:s,price:S.price,rrpPrice:S.rrpPrice,currency:r,currencyPrefix:m})}),i.children>0&&(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:g,price:A.price,labels:s,rrpPrice:A.rrpPrice,currency:r,currencyPrefix:m})}),i.infants>0&&(0,b.jsx)(Qr,{children:(0,b.jsx)(Jr,{label:j,labels:s,price:N,rrpPrice:N,currency:r,currencyPrefix:m})}),T.price&&(0,b.jsx)(ea,{label:s.total,price:(0,je.h2)(T.price.toFixed(2)),rrpPrice:T.rrpPrice,currency:r,currencyPrefix:m}),0!==f.total.saving&&(0,b.jsxs)("li",{className:Zr.promo,children:[s.youSave," ",m&&(0,b.jsxs)("span",{style:{fontSize:"9px",display:"none"},children:[m," "]}),r,f.total.saving.toFixed(2)]})]})})},ra=a.memo(ta);var aa=r(81842),na=r(56262);const la=e=>{const{labels:t,isMobile:r,CDNHostName:n,tour:o}=e,i=(0,l.d4)(We._Y),s=(0,l.d4)(N.w),c=(0,l.d4)(u.Iz),{selectedCurrencySymbol:d,selectedCurrency:m}=(0,l.d4)(w.yl),{totalPrice:p}=(0,l.d4)(aa.GM),h=o,v=(0,l.wA)(),[f,y]=a.useState(!1),x=(!!d&&(0,je.hn)(d,m),{cdnHostName:n,tour:o}),{optionId:g}=c||{optionId:0},j=qr.I8.primary,C=qr.I8.primaryHover,k={width:"100%",padding:"0.75em 1em ",fontSize:"0.9rem",fontWeight:600,textAlign:"center",color:"#ffffff",backgroundColor:f?C:j,border:"none",borderRadius:mt.YK.xs,cursor:i?"not-allowed":"pointer",opacity:i?.6:1,transition:mt.bm.fast,boxShadow:mt.Eo.subtle,margin:"auto"};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"summaryContainer",children:[(0,b.jsx)(B.A,{title:t.bookingOverviewTitle}),(0,b.jsx)(I,{labels:t,...x}),(0,b.jsx)(F,{...x}),!!c&&(0,b.jsx)(ra,{labels:t,pax:s,tourOption:c,isPrivate:h.isPrivate,selectedCurrencySymbol:d,selectedCurrency:m,promoSavings:h.promoSavings,promoInfo:h.promoInfo,language:h.language,...x,isLoading:i}),!c&&(0,b.jsx)(Yr,{labels:t,...x}),(0,b.jsx)("button",{onClick:e=>{e.stopPropagation(),i||v((0,na.g)(g,p))},style:k,className:"summaryAddToCart",disabled:i,"aria-disabled":i,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:i&&t.addingToCart?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("i",{className:"fa fa-spinner fa-spin"}),"Â ",t.addingToCart]}):t.addToCart})]}),r&&(0,b.jsx)(A,{isMobile:!0,title:t.bookingOverviewBrandTitle,text:t.bookingOverviewBrandText})]})},oa=a.memo(la),ia=e=>(0,b.jsx)(Le,{...e}),sa=e=>(0,b.jsx)(Ur,{...e}),ca=e=>(0,b.jsx)(oa,{...e}),da=e=>(0,b.jsx)(He,{...e}),ua={"/":"bookingPaxTitle","/calendar":"bookingCalendarTitle","/time":"bookingTimeTitle","/summary":"bookingOverviewTitle"},ma={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},pa=({labels:e})=>{const t=(0,n.zy)(),r=ua[t.pathname],a=r?e[r]:"";return(0,b.jsx)("div",{role:"status","aria-live":"polite",style:ma,children:a})},ha=({screenProps:e})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(pa,{labels:e.labels}),(0,b.jsxs)(n.BV,{children:[(0,b.jsx)(n.qh,{path:"/",element:(0,b.jsx)(da,{...e})}),(0,b.jsx)(n.qh,{path:"/summary",element:(0,b.jsx)(ca,{...e})}),(0,b.jsx)(n.qh,{path:"/calendar",element:(0,b.jsx)(sa,{...e})}),(0,b.jsx)(n.qh,{path:"/time",element:(0,b.jsx)(ia,{...e})})]})]}),va=({isTablet:e,isMobile:t,labels:r,tour:a,isShoppingCart:n,CDNHostName:l,showBookingWidget:o,title:i,platform:c,screenProps:d,closeBookingWidget:u})=>(0,b.jsx)(C,{isTablet:e,closeBookingWidget:u,labels:r,item:a,isShoppingCart:n,CDNHostName:l,showBookingWidget:o,isMobile:t,title:i,children:(0,b.jsx)(s.A.Provider,{value:c,children:(0,b.jsx)(ha,{screenProps:d})})}),fa=e=>{const{showBookingWidget:t,isMobile:r=!1,isTablet:s=!1,selectedCurrency:m,tour:p,origin:h}=e,v=(0,l.d4)(o.IM),f=(0,l.d4)(i.f7),y=(0,l.d4)(u.Iz),x=(0,l.wA)(),g=a.useCallback(()=>x((0,d.KQ)()),[x]),j="shoppingCart"===h,C=((e,t,r)=>a.useMemo(()=>({isMobile:e,isTablet:t,CDNHostName:r}),[e,t,r]))(r,s,f),w=((e,t)=>a.useMemo(()=>{const{productTitle:r}=(0,c.ZG)(e,t?t.productId:null);return r},[e,t]))(p,y),k=a.useMemo(()=>({showBookingWidget:t,isMobile:r,isTablet:s,selectedCurrency:m,tour:p,origin:h,labels:v,CDNHostName:f,isShoppingCart:j}),[t,r,s,m,p,h,v,f,j]),S=j?["/summary"]:["/"];return t?(0,b.jsx)(n.fS,{initialEntries:S,future:{v7_relativeSplatPath:!0,v7_startTransition:!0},children:(0,b.jsx)(va,{isTablet:s,isMobile:r,labels:v,tour:p,isShoppingCart:j,CDNHostName:f,showBookingWidget:t,title:w,platform:C,screenProps:k,closeBookingWidget:g})}):null}}}]);
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.