1import{r as S}from"./chunk-Dcu9hI9-.js";import{t as w}from"./react-CqeGHJAE.js";import{i as u,w as k}from"./css-BI25t2_E.js";import{t as N}from"./jsx-runtime-DoKUXCib.js";import{s as n,t as i}from"./text-BpRBiHmR.js";import{t as a}from"./css-BB3L8JiN.js";import{h as c,n as I}from"./button-content-CArmp3f0.js";import{t as p}from"./link-button-2UIiaZk0.js";import{t as B}from"./image-Bu7zadH5.js";import{n as D}from"./use-locale-href-CZbQgfJS.js";import{t as M}from"./link-CFAnt1fh.js";import{r as f}from"./formatted-CuXxd418.js";import{n as h,t as b}from"./event-time-D6xYhBtQ.js";import{n as L}from"./stacked-avatars-y1gra2dm.js";import{t as E}from"./availability-label-CUtKnXJd.js";var j=S(w(),1),e=N();function ge(t){const l=(0,j.useId)();if(t.events.length===0)return null;const{seeAllHref:s,seatCounterVisibility:d}=t,r=t.variant??"default";return(0,e.jsxs)(c,{as:"section",gap:"xlarge","aria-labelledby":l,children:[(0,e.jsxs)("div",{className:z,children:[(0,e.jsx)(i,{as:"h2",id:l,style:"subheadline-large",children:(0,e.jsx)(n,{id:"FRjR71",defaultMessage:[{type:0,value:"Upcoming dates"}]})}),r==="expanded"&&s&&(0,e.jsx)(M,{to:s,style:"body-large-regular",children:(0,e.jsx)(n,{id:"LJxQbl",defaultMessage:[{type:0,value:"See all dates"}]})})]}),(0,e.jsx)("ol",{className:u(C,r==="expanded"?_:R),children:t.variant==="expanded"?t.events.map(o=>(0,e.jsx)("li",{className:u(y,H),children:(0,e.jsx)(v,{variant:"expanded",event:o,seatCounterVisibility:d})},o.eventId)):t.events.map(o=>(0,e.jsx)("li",{className:u(y,A),children:(0,e.jsx)(v,{variant:"default",event:o,seatCounterVisibility:d})},o.eventId))}),r==="default"&&s&&(0,e.jsx)(p,{href:s,appearance:"secondary",size:"large",className:$,children:(0,e.jsx)(n,{id:"4+fIBo",defaultMessage:[{type:0,value:"See all dates"}]})})]})}function v(t){const{event:l,variant:s,seatCounterVisibility:d}=t,r=l.status==="soldOut",o=l.checkoutHref,g=t.variant==="expanded"?{href:t.event.experienceHref,show:!0}:{href:o,show:!r};return(0,e.jsxs)("article",{className:u(T,s==="expanded"?U:F),children:[g.show&&(0,e.jsx)(k,{to:g.href,className:V,children:(0,e.jsx)(I,{children:t.variant==="expanded"?(0,e.jsx)(n,{id:"dmE1DK",defaultMessage:[{type:0,value:"View "},{type:1,value:"experienceName"}],values:{experienceName:t.event.experienceName}}):(0,e.jsx)(n,{id:"wUBBmh",defaultMessage:[{type:0,value:"Book this date"}]})})}),t.variant==="expanded"&&(0,e.jsx)(W,{src:t.event.experienceImageUrl??null}),(0,e.jsxs)(c,{gap:"xsmall",className:P,children:[t.variant==="expanded"&&(0,e.jsxs)(c,{direction:"row",align:"center",gap:"small",children:[(0,e.jsx)(i,{as:"p",style:"subheadline-small",children:t.event.experienceName}),l.locales.length>0&&(0,e.jsx)(L,{locales:l.locales})]}),s==="default"?(0,e.jsx)(b,{sessions:l.sessions,children:({title:m,details:x})=>(0,e.jsxs)(c,{gap:"tiny",className:h,children:[(0,e.jsx)(i,{as:"p",style:"subheadline-small",color:r?"tertiary":void 0,className:r?J:void 0,children:m}),x&&(0,e.jsx)(i,{as:"p",style:"body-large-regular",color:r?"tertiary":"secondary",children:x})]})}):(0,e.jsx)(b,{sessions:l.sessions,children:({title:m,details:x})=>(0,e.jsxs)("div",{className:u(X,h),children:[(0,e.jsx)(i,{as:"p",style:"body-large-regular",children:m}),x&&(0,e.jsx)(i,{as:"p",style:"body-large-regular",children:x})]})}),s==="default"?(l.location||r)&&(0,e.jsxs)("div",{className:K,children:[l.location&&(0,e.jsx)(i,{as:"p",style:"body-large-regular",color:r?"tertiary":"secondary",className:G,children:(0,e.jsx)(f,{location:l.location})}),r&&(0,e.jsx)(i,{as:"p",style:"body-large-regular",color:"tertiary",className:Q,children:(0,e.jsx)(n,{id:"vkADjj",defaultMessage:[{type:0,value:"Sold out"}]})})]}):l.location&&(0,e.jsx)(i,{as:"p",style:"body-large-regular",color:"secondary",className:a({overflow:"hidden"}),children:(0,e.jsx)(f,{location:l.location})})]}),s==="expanded"&&(0,e.jsx)("div",{className:Y,children:(0,e.jsx)(E,{status:l.status,availableSeats:l.availableSeats,seatCounterVisibility:d,hideSeatCount:l.hideSeatCount,textStyle:"body-large-regular"})}),s==="expanded"&&(0,e.jsx)("div",{className:Z,children:(0,e.jsx)(p,{href:o,appearance:"primary",size:"large",disabled:r,children:(0,e.jsx)(n,{id:"Jkd60M",defaultMessage:[{type:0,value:"Book"}]})})})]})}function W({src:t}
1){const[l,s]=(0,j.useState)(!1);return(0,e.jsx)("div",{className:q,children:t!==null&&!l&&(0,e.jsx)(B,{src:t,alt:"",width:113,height:113,className:O,onError:()=>s(!0)})})}var z=a({display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:"medium",width:"full"}),C=a({listStyle:"none",margin:"none",padding:"none",display:"flex",gap:"medium",width:"full",minWidth:"[0]",overflowX:{base:"auto",tablet:"visible"},scrollSnapType:{base:"[x mandatory]",tablet:"[none]"},scrollPaddingInline:{base:"small",tablet:"none"},paddingTop:{base:"small",tablet:"none"},paddingBottom:{base:"large",tablet:"none"},marginTop:{base:"-small",tablet:"none"},marginBottom:{base:"-large",tablet:"none"}}),R=a({flexDirection:"row"}),_=a({flexDirection:{base:"row",tablet:"column"}}),y=a({flexShrink:0,scrollSnapAlign:{base:"start",tablet:"none"}}),A=a({width:{base:"[min(85%, 320px)]",tablet:"[auto]"},flexBasis:{base:"[auto]",tablet:"[0]"},flexGrow:{base:0,tablet:1},minWidth:{tablet:"[0]"}}),H=a({width:{base:"[min(85%, 320px)]",tablet:"full"},flexShrink:{base:0,tablet:1},minWidth:{tablet:"[0]"}}),T=a({position:"relative",height:"full",minWidth:"[0]",background:"surface.raised",padding:"large",borderRadius:"large",shadow:"large",overflow:"hidden",display:"flex"}),F=a({flexDirection:"column",maxW:"[570px]"}),U=a({flexDirection:{base:"column",tablet:"row"},alignItems:{tablet:"center"},gap:{base:"xsmall",tablet:"medium"}}),V=a({position:"absolute",inset:"[0]",zIndex:"[1]",borderRadius:"large",_focusVisible:{outline:"[2px solid]",outlineColor:"border.focus",outlineOffset:"[-2px]"}}),q=a({display:{base:"none",tablet:"block"},position:"relative",zIndex:"[2]",flexShrink:0,width:"[113px]",aspectRatio:"[1]",borderRadius:"small",overflow:"hidden",background:"surface.background"}),O=a({width:"full",height:"full",objectFit:"cover"}),P=a({position:"relative",zIndex:"[2]",flex:"1",minWidth:"[0]",pointerEvents:"none"}),X=a({display:"flex",flexDirection:{base:"column",tablet:"row"},gap:{base:"none",tablet:"[12px]"}}),J=a({textDecoration:"line-through"}),K=a({display:"flex",flexDirection:"row",alignItems:"start",gap:"small"}),G=a({minWidth:"[0]",overflow:"hidden"}),Q=a({flexShrink:0,whiteSpace:"nowrap",marginLeft:"auto"}),Y=a({display:{base:"none",tablet:"flex"},position:"relative",zIndex:"[2]",flexShrink:0,pointerEvents:"none"}),Z=a({display:{base:"none",tablet:"flex"},position:"relative",zIndex:"[2]",flexShrink:0}),$=a({alignSelf:{base:"stretch",tablet:"flex-start"}});function fe({locale:t,heading:l,body:s,ctaLabel:d}){return(0,e.jsxs)(c,{as:"section",gap:"xlarge",className:a({paddingY:{base:"3xlarge",tablet:"[175px]"},paddingX:"medium",textAlign:"center"}),children:[(0,e.jsxs)(c,{gap:"small",align:"center",className:a({maxWidth:"[600px]",marginX:"auto"}),children:[(0,e.jsx)(i,{as:"h2",style:"subheadline-large",children:l??(0,e.jsx)(n,{id:"DngFMn",defaultMessage:[{type:0,value:"Are you looking for a private event?"}]})}),(0,e.jsx)(i,{as:"p",style:"body-large-regular",color:"secondary",children:s??(0,e.jsx)(n,{id:"nw8b4K",defaultMessage:[{type:0,value:"We can arrange private events for larger groups, such as companies or friend groups. Leave us your details and we'll get back to you as soon as possible."}]})})]}),(0,e.jsx)("span",{children:(0,e.jsx)(p,{href:D(t,"/request"),appearance:"primary",size:"large",children:d??(0,e.jsx)(n,{id:"HuPHB6",defaultMessage:[{type:0,value:"Send request"}]})})})]})}export{ge as n,fe as t}; 2 3//# sourceMappingURL=private-event-cta-Bpo_aq-x.js.map
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.