1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f9c333d6-aff0-4b75-8385-6bdd73a8ea39",e._sentryDebugIdIdentifier="sentry-dbid-f9c333d6-aff0-4b75-8385-6bdd73a8ea39")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8680],{1413:(e,t,n)=>{n.d(t,{A:()=>o});var s=n(37876),r=n(49995),a=n(82037),i=n(60711),l=n(10969);function o({active:e,bgClass:t,className:n,disabled:o,tag:d,tagGroups:c,onClick:u,onMouseDown:m}){let x="#ddd",p=d.tagGroup||c?.find(e=>e.id===d.tagGroupId);if(p?.color&&!1!==e){x=p.color;let e=(0,i.$C)(x);(0,i.cP)(e)}let f=x;return(0,s.jsx)(a.Ex,{className:(0,r.A)(l.Ay.badge,!o&&(u||m)&&"cursor-pointer",n),bgClass:t,onClick:!o&&u?()=>u(d):void 0,onMouseDown:!o&&m?()=>m(d):void 0,withDot:!0,dotColor:f,"data-sentry-element":"Badge","data-sentry-component":"Tag2Item","data-sentry-source-file":"Tag2Item.tsx",children:d.value})}},22469:(e,t,n)=>{n.d(t,{A:()=>o,X:()=>l});var s=n(37876),r=n(9370);let a="duplicate";function i(e){let{event:t,hasEventsAccess:n,hasFinancesAccess:s,memberDraftsEnabled:r,withoutEditItems:i,withoutCancelItem:l,duplicateInAdmin:o,editQueryString:d="",onCancelEvent:c}=e,u=t.id,{canManageAttendance:m,canSendAnnouncements:x,canUpdateEvent:p}=t.selfPermissions,f=new Date(t.endAt).valueOf()<new Date().valueOf(),h=!i;return[h&&p&&{key:"edit",label:"Edit event",href:`/events/${u}/edit${d}`},h&&n&&{key:"admin-edit",label:"Admin edit event",href:`/_admin/events/${u}`},m&&{key:"attendance",label:"Manage attendance",href:`/events/${u}/attendance`},(m||s)&&{key:"totals",label:"Event totals",href:`/events/${u}/summary`},x&&{key:"announce",label:"Contact attendees",href:`/events/${u}/announcements/new`},!l&&"CANCELED"!==t.status&&!f&&p&&{key:"cancel",label:"Cancel event",...c?{onClick:c}:{href:`/events/${u}/cancel`}},{key:a,label:"Duplicate event",href:o||!r&&n?`/_admin/events/new?fromEventId=${u}`:`/events/new?fromEventId=${u}`}].filter(e=>!!e)}function l(e){return i(e).some(e=>e.key!==a)}function o(e){return(0,s.jsx)(s.Fragment,{children:i(e).map(({key:e,label:t,href:n,onClick:a})=>(0,s.jsx)(r.A,{href:n,onClick:a,label:t,isDropDownItem:!0},e))})}},26541:(e,t,n)=>{n.d(t,{A:()=>i});var s=n(83073),r=n(14232),a=n(13220);function i(e=!0){let[t,n]=(0,r.useState)(null),l=(0,a.IG)(),o=(0,s.A)(),[d,c]=(0,r.useState)(!1);window.gfSetPaymentMethodsSimulateError=c,(0,r.useEffect)(()=>{e&&l&&!t&&(o.loading||s());async function s(){let e=await o.loadPaymentMethods(d?{simulateError:!0}:{});e&&n(e)}},[t,e,l]);let u=t?.find(e=>e.isDefault)??t?.[0];return{apiError:o.apiError,initialPaymentMethod:u,paymentMethods:t,loading:o.loading,reset:()=>n(null)}}},44952:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(37876),r=n(49995);function a(e){let{className:t,icon:n,children:a,childrenClassName:i,style:l,"data-testid":o,iconPaddingTop:d="pt-1"}=e;return(0,s.jsxs)("div",{className:(0,r.A)("flex",t),style:l,"data-testid":o,"data-sentry-component":"EventDetailItem","data-sentry-source-file":"EventDetailItem.tsx",children:[(0,s.jsx)("div",{className:(0,r.A)(d,"w-8"),children:n}),(0,s.jsx)("div",{className:(0,r.A)("leading-normal",i),children:a})]})}},49338:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(37876);function r(e){let{className:t,style:n}=e;return(0,s.jsx)("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:"50px",height:"50px",className:t,style:n,...{},title:"Volunteer","data-sentry-element":"svg","data-sentry-component":"VolunteerIcon","data-sentry-source-file":"VolunteerIcon.tsx",children:(0,s.jsx)("path",{d:"M 25 0 C 22.800781 0 21 1.800781 21 4 L 21 4.53125 C 20.371094 4.179688 19.679688 4 19 4 C 18.0625 4 17.085938 4.308594 16.3125 4.96875 C 15.539063 5.628906 15 6.699219 15 7.9375 L 15 29.25 L 11.75 25.375 C 11.730469 25.351563 11.710938 25.332031 11.6875 25.3125 C 9.9375 23.5625 7.0625 23.5625 5.3125 25.3125 C 3.589844 27.035156 3.582031 29.839844 5.25 31.59375 L 5.3125 31.6875 L 16.8125 46.5 C 18.515625 48.699219 21.125 50 23.90625 50 L 32 50 C 36.957031 50 41 45.957031 41 41 L 41 13 C 41 10.800781 39.199219 9 37 9 C 36.265625 9 35.59375 9.214844 35 9.5625 L 35 6 C 35 3.800781 33.199219 2 31 2 C 30.167969 2 29.394531 2.246094 28.75 2.6875 C 28.203125 1.128906 26.738281 0 25 0 Z M 25 2 C 26.117188 2 27 2.882813 27 4 L 27 22 C 27.003906 22.0625 27.015625 22.125 27.03125 22.1875 C 27.046875 22.285156 27.078125 22.378906 27.125 22.46875 C 27.164063 22.558594 27.21875 22.644531 27.28125 22.71875 C 27.328125 22.765625 27.382813 22.808594 27.4375 22.84375 C 27.46875 22.867188 27.5 22.886719 27.53125 22.90625 C 27.621094 22.953125 27.714844 22.984375 27.8125 23 C 27.945313 23.027344 28.085938 23.027344 28.21875 23 C 28.320313 22.972656 28.414063 22.929688 28.5 22.875 C 28.519531 22.867188 28.542969 22.855469 28.5625 22.84375 C 28.621094 22.796875 28.671875 22.746094 28.71875 22.6875 C 28.792969 22.625 28.855469 22.550781 28.90625 22.46875 C 28.953125 22.371094 28.984375 22.265625 29 22.15625 C 29.003906 22.105469 29.003906 22.050781 29 22 L 29 6 C 29 4.882813 29.882813 4 31 4 C 32.117188 4 33 4.882813 33 6 L 33 22 C 33.003906 22.0625 33.015625 22.125 33.03125 22.1875 C 33.046875 22.285156 33.078125 22.378906 33.125 22.46875 C 33.164063 22.558594 33.21875 22.644531 33.28125 22.71875 C 33.328125 22.765625 33.382813 22.808594 33.4375 22.84375 C 33.46875 22.867188 33.5 22.886719 33.53125 22.90625 C 33.621094 22.953125 33.714844 22.984375 33.8
1125 23 C 33.945313 23.027344 34.085938 23.027344 34.21875 23 C 34.320313 22.972656 34.414063 22.929688 34.5 22.875 C 34.519531 22.867188 34.542969 22.855469 34.5625 22.84375 C 34.621094 22.796875 34.671875 22.746094 34.71875 22.6875 C 34.792969 22.625 34.855469 22.550781 34.90625 22.46875 C 34.953125 22.371094 34.984375 22.265625 35 22.15625 C 35.003906 22.105469 35.003906 22.050781 35 22 L 35 13 C 35 11.882813 35.882813 11 37 11 C 38.117188 11 39 11.882813 39 13 L 39 41 C 39 44.878906 35.878906 48 32 48 L 23.90625 48 C 21.742188 48 19.699219 46.992188 18.375 45.28125 L 6.8125 30.375 C 6.785156 30.339844 6.753906 30.308594 6.71875 30.28125 C 5.734375 29.296875 5.734375 27.703125 6.71875 26.71875 C 7.703125 25.734375 9.296875 25.734375 10.28125 26.71875 L 15.25 32.65625 C 15.523438 32.96875 15.960938 33.078125 16.351563 32.929688 C 16.738281 32.785156 16.996094 32.414063 17 32 L 17 7.9375 C 17 7.253906 17.25 6.820313 17.625 6.5 C 18 6.179688 18.539063 6 19 6 C 19.460938 6 20 6.175781 20.375 6.5 C 20.75 6.824219 21 7.265625 21 8 L 21 22 C 20.992188 22.308594 21.128906 22.601563 21.367188 22.796875 C 21.601563 22.992188 21.917969 23.066406 22.21875 23 C 22.320313 22.972656 22.414063 22.929688 22.5 22.875 C 22.519531 22.867188 22.542969 22.855469 22.5625 22.84375 C 22.621094 22.796875 22.671875 22.746094 22.71875 22.6875 C 22.898438 22.503906 22.996094 22.257813 23 22 L 23 4 C 23 2.882813 23.882813 2 25 2 Z M 24.875 29 C 22.1875 29 20 31.1875 20 33.875 C 20 35.242188 20.558594 36.488281 21.46875 37.375 L 28 43.90625 L 34.53125 37.375 C 35.441406 36.488281 36 35.242188 36 33.875 C 36 31.1875 33.8125 29 31.125 29 C 29.90625 29 28.855469 29.539063 28 30.28125 C 27.144531 29.539063 26.09375 29 24.875 29 Z M 24.875 31 C 25.828125 31 26.65625 31.472656 27.1875 32.1875 L 28 33.25 L 28.8125 32.1875 C 29.34375 31.472656 30.171875 31 31.125 31 C 32.734375 31 34 32.265625 34 33.875 C 34 34.691406 33.667969 35.441406 33.125 35.96875 L 28 41.0625 L 22.875 35.96875 C 22.332031 35.441406 22 34.691406 22 33.875 C 22 32.265625 23.265625 31 24.875 31 Z","data-sentry-element":"path","data-sentry-source-file":"VolunteerIcon.tsx"})})}},49510:(e,t,n)=>{n.d(t,{T:()=>s});function s(e){return`https://www.meetup.com/${e}/`}},62849:(e,t,n)=>{n.d(t,{A:()=>x});var s=n(37876),r=n(65708),a=n(33211),i=n(62933),l=n(1324),o=n(49338),d=n(14938),c=n(44952);let u={HOST:(0,s.jsx)(r.A,{className:"size-4"}),VOLUNTEER:(0,s.jsx)(o.A,{className:"size-4"}),PRESENTER:(0,s.jsx)(a.A,{className:"size-4"}),VENUE_HOST:(0,s.jsx)(i.A,{className:"size-4"}),STAFF:(0,s.jsx)(l.A,{className:"size-4"})},m={HOST:"host-attendee",VOLUNTEER:"volunteer-attendee",PRESENTER:"presenter-attendee",VENUE_HOST:"venue-host-attendee",STAFF:"staff-attendee"};function x({role:e}){return(0,s.jsxs)(c.A,{className:"text-[var(--group-accent-text)]",childrenClassName:"",icon:u[e],"data-testid":m[e],"data-sentry-element":"EventDetailItem","data-sentry-component":"StaffRoleBadge","data-sentry-source-file":"StaffRoleBadge.tsx",children:["You are a ",d.OI[e].noun]})}},77018:(e,t,n)=>{n.d(t,{A:()=>m});var s=n(37876),r=n(49823),a=n(49995),i=n(47027),l=n(63815),o=n(80229);function d({event:e,lineItems:t,onChange:n,variant:r,eventVariantIds:d}){let c=r.perRecipientMinQuantity??0,u=r.perRecipientMaxQuantity??null,m=Math.max(1,c),x=t.find(e=>e.variantId===r.id),p=void 0!==x,f=x?.quantity??m,h="number"==typeof r.originalQuantity&&"number"==typeof r.soldQuantity&&r.originalQuantity<=r.soldQuantity,y=e.rsvpRules?.waitlisting==="AUTO"&&e.rsvpRules?.waitlistType==="PER_VARIANT",g=r.waitlistQuantity??0,v=h&&!y;function j(){v||p||n([...t.filter(e=>!d.includes(e.variantId)),{variantId:r.id??"",quantity:m}])}function b(e){p&&n(t.map(t=>t.variantId===r.id?{...t,quantity:e}:t))}return(0,s.jsx)("div",{role:"radio","aria-checked":p,"aria-disabled":v,tabIndex:v?-1:0,onClick:j,onKeyDown:e=>{(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),j())},className:(0,a.A)("flex flex-col gap-2 border rounded-lg p-4 cursor-pointer",p?"border-[var(--group-accent)] ring-2 ring-[var(--group-accent-light)]":"border-[var(--group-border-color)]",v&&"opacity-50 cursor-not-allowed"),"data-testid":`event-variant-row-${r.id}`,"data-sentry-component":"EventVariantRadioRow","data-sentry-source-file":"EventVariantRadioRow.tsx",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-1",children:[(0,s.jsx)("span",{className:(0,a.A)("w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0",p?"border-[var(--group-accent)]":"border-[var(--group-border-color)]"),"aria-hidden":"true",children:p&&(0,s.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-[var(--group-accent)]"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,s.jsx)(l.A,{className:"size-5 shrink-0 text-[var(--group-accent-text)]","data-sentry-element":"TicketIcon","data-sentry-source-file":"EventVariantRadioRow.tsx"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-bold",children:r.name})," ",(0,s.jsx)("span",{className:"text-sm",children:"- ticket"}),!r.enabled&&(0,s.jsx)("span",{className:"ml-2 text-xs uppercase font-bold text-orange-warn",children:"Disabled"})]})]}),h&&y&&(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsx)("div",{className:"uppercase text-orange-warn font-bold text-sm",children:"Waitlist Only"}),(0,s.jsx)(i.A,{className:"text-sm mt-1",as:"p",children:0===g?"This option is sold out.":1===g?"There's currently 1 person on the waitlist for this option.":`There are currently ${g} people on the waitlist for this option.`})]})]})]}),(0,s.jsx)("span",{className:"text-sm font-medium",children:(0,o.o5)(r.amount)}),v?(0,s.jsx)("span",{className:"text-sm text-secondary-600",children:"Sold out"}):p?(0,s.jsxs)("div",{className:"flex items-center gap-2",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button",onClick:()=>b(Math.max(m,f-1)),disabled:f<=m,className:(0,a.A)("w-8 h-8 rounded-full border font-bold text-lg flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":`Decrease quantity for ${r.name}`,children:"â"}),(0,s.jsx)("span",{className:"w-6 text-center font-semibold",children:f}),(0,s.jsx)("button",{type:"button",onClick:()=>b(null!==u?Math.min(u,f+1):f+1),disabled:null!==u&&f>=u,className:(0,a.A)("w-8 h-8 rounded-full border font-bold text-lg flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":`Increase quantity for ${r.name}`,children:"+"})]}):null]})})}var c=n(47301);function u({event:e,lineItems:t,onChange:n,variant:d}){let u=t.find(e=>e.variantId===d.id),m=d.perRecipientMinQuantity??0,x=d.perRecipientMaxQuantity??null,p=u?.quantity??m,f
1="number"==typeof d.originalQuantity&&"number"==typeof d.soldQuantity&&d.originalQuantity<=d.soldQuantity,h=e.rsvpRules?.waitlisting==="AUTO"&&e.rsvpRules?.waitlistType==="PER_VARIANT";function y(e){let s=t.filter(e=>e.variantId!==d.id);e>0&&s.push({variantId:d.id??"",quantity:e}),n(s)}let g=d.waitlistQuantity??0;return(0,s.jsx)("div",{className:(0,a.A)("flex flex-col gap-2 border rounded-lg p-4",f&&!h&&"opacity-50"),"data-sentry-component":"VariantQuantitySelector","data-sentry-source-file":"VariantQuantitySelector.tsx",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-x-2",children:[d.purpose===r.YF.GENERIC?(0,s.jsx)(c.A,{className:"size-5 shrink-0 text-[var(--group-accent-text)]"}):(0,s.jsx)(l.A,{className:"size-5 shrink-0 text-[var(--group-accent-text)]"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-bold",children:d.name})," ",(0,s.jsx)("span",{className:"text-sm",children:d.purpose===r.YF.GENERIC?"- add-on":"- ticket"}),!d.enabled&&(0,s.jsx)("span",{className:"ml-2 text-xs uppercase font-bold text-orange-warn",children:"Disabled"})]})]}),f&&h&&(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsx)("div",{className:"uppercase text-orange-warn font-bold text-sm",children:"Waitlist Only"}),(0,s.jsx)(i.A,{className:"text-sm mt-1",as:"p",children:0===g?"This option is sold out.":1===g?"There's currently 1 person on the waitlist for this option.":`There are currently ${g} people on the waitlist for this option.`})]})]}),(0,s.jsx)("span",{className:"text-sm font-medium",children:(0,o.o5)(d.amount)}),f&&!h?(0,s.jsx)("span",{className:"text-sm text-secondary-600",children:"Sold out"}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y(Math.max(m,p-1)),disabled:p<=m,className:(0,a.A)("w-8 h-8 rounded-full border font-bold text-lg flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":`Decrease quantity for ${d.name}`,children:"â"}),(0,s.jsx)("span",{className:"w-6 text-center font-semibold",children:p}),(0,s.jsx)("button",{type:"button",onClick:()=>y(null!==x?Math.min(x,p+1):p+1),disabled:null!==x&&p>=x,className:(0,a.A)("w-8 h-8 rounded-full border font-bold text-lg flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":`Increase quantity for ${d.name}`,children:"+"})]})]})})}function m({event:e,variants:t,lineItems:n,onChange:a}){let i=e.rsvpRules?.maxEventVariantCount===1,l=t.filter(e=>e.purpose===r.YF.EVENT).map(e=>e.id).filter(Boolean);return(0,s.jsx)(s.Fragment,{children:t.map(t=>i&&t.purpose===r.YF.EVENT?(0,s.jsx)(d,{event:e,lineItems:n,onChange:a,variant:t,eventVariantIds:l},t.id):(0,s.jsx)(u,{event:e,lineItems:n,onChange:a,variant:t},t.id))})}},78680:(e,t,n)=>{n.d(t,{A:()=>na});var s=n(37876),r=n(14232),a=n(89099),i=n(48230),l=n.n(i),o=n(91074);function d(e){let{persons:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map(e=>(0,s.jsx)(u,{...e},e.id))})}function c(e){let{memberId:t,children:n}=e;return t?(0,s.jsx)(l(),{href:`/members/${e.memberId}`,prefetch:!1,"data-sentry-element":"Link","data-sentry-component":"PersonLink","data-sentry-source-file":"PersonCard.tsx",children:n}):(0,s.jsx)("span",{title:"non-member",children:n})}function u(e){return(0,s.jsx)(c,{memberId:e.memberId,"data-sentry-element":"PersonLink","data-sentry-component":"PersonCard","data-sentry-source-file":"PersonCard.tsx",children:(0,s.jsxs)("div",{className:"flex flex-row flex-wrap justify-center items-start w-12 mx-2",children:[(0,s.jsx)(o.A,{url:e.photoUrl,size:e.photoSize,"data-sentry-element":"PersonPhoto","data-sentry-source-file":"PersonCard.tsx"}),(0,s.jsx)("p",{className:"p leading-none text-center",style:{fontSize:"12px"},children:e.name})]})})}function m({event:e}){let t=e.attendees?.map(e=>({id:e.id,memberId:e.member?.id||null,name:e.member?.name||"",photoUrl:e.member?.profile?.photo?.thumbUrl||null}))||[];return(0,s.jsx)("div",{className:"flex flex-row flex-wrap","data-sentry-component":"EventParticipants","data-sentry-source-file":"EventParticipants.tsx",children:(0,s.jsx)(d,{persons:t,"data-sentry-element":"PersonsList","data-sentry-source-file":"EventParticipants.tsx"})})}function x(e){let{className:t,event:n,eventAccess:r}=e;return"CANCELED"!==n.status&&r.isActiveMember?(0,s.jsxs)("div",{className:t||"","data-sentry-component":"RegistrationSection","data-sentry-source-file":"RegistrationSection.tsx",children:[(0,s.jsx)("div",{className:"mb-4",children:(n.waitlistCount??0)>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h2",{className:"h2",style:{marginBottom:0},children:["Going (",n.goingCount,")"]}),(0,s.jsxs)("h2",{className:"h2",style:{marginTop:0},children:["Waitlist (",n.waitlistCount,")"]})]}):(0,s.jsxs)("h2",{className:"h2",style:{marginBottom:0},children:["Attendees (",n.goingCount,")"]})}),(0,s.jsx)(m,{event:n,"data-sentry-element":"EventParticipants","data-sentry-source-file":"RegistrationSection.tsx"}),(n.goingCount??0)+(n.maybeRsvpCount??0)+(n.waitlistCount??0)>0?(0,s.jsx)(l(),{href:`/events/${n.id}/attendees`,className:"a",children:"See all attendees"}):null]}):null}var p=n(13220),f=n(77162);function h(e){let{className:t,event:n,eventAccess:a,registration:i}=e,{description:o}=n,[d,c]=(0,r.useState)(!0),u=(0,p.lF)();return(0,s.jsxs)("div",{className:`${t||""} md:px-0`,"data-sentry-component":"DescriptionSection","data-sentry-source-file":"DescriptionSection.tsx",children:[(0,s.jsx)("h3",{className:"text-lg font-bold mt-4 mb-0",children:"Details"}),(0,s.jsxs)("div",{className:`${d&&"expandable-text"} mb-4`,children:[n.description&&(0,s.jsx)(f.A,{format:n.descriptionFormat,text:n.description}),d&&(0,s.jsx)("div",{className:"read-more-new absolute bottom-0 left-0 w-full text-center pt-16",style:{background:"linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--group-primary-card-background-color) 100%)"},children:"\xa0"})]}),a.isPublicEvent||u?a.isPublicEvent||a.isActiveMember||i?.invited?d&&o?(0,s.jsx)("div",{className:"expandable-text-read-more cursor-pointer text-center text-sm uppercase mb-6",onClick:()=>c(!d),children:"Read more"}):null:(0,s.jsxs)("p",{className:"p",children:["Details for this event are only available to current members. Please head on over to the"," ",(0,s.jsx)(l(),{href:"/members/dues",className:"a",children:"dues page"})," ","to renew your membership."]}):(0,s.jsx)("p",{className:"p",children:"Details for this event are only available to current, logged-in members."})]})}function y({address:e,children:t}){if(e){let n=encodeURIComponent(e),r=`https://www.google.com/maps/place/${n}`;return(0,s.jsx)("a",{href:r,target:"_blank",className:"a",rel:"noreferrer","aria-label":"to external website",children:t})}return(0,s.jsx)("div",{className:"text-gray-darker","data-sentry-component":"AddressLink","data-sentry-source-file":"AddressLink.tsx",children:t})}var g=n(40820),v=n(55642),j=n(42935);function b({children:e}){return(0,s.jsx)("div",{style:{width:"20px",minWidth:"20px",height:"20px"},className:"mt-1","data-sentry-component":"LogisticsIcon","data-sentry-source-file":"EventLocation.tsx",children:e})}function N(){return(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs text-[var(--group-page-background-text-color-muted)]",title:"Only registered attendees, event staff, and organizers can see this.","data-sentry-component":"HiddenFromOthers","data-sentry-source-file":"EventLocation.tsx",children:[(0,s.jsx)(g.A,{className:"size-3","data-sentry-element":"LockClosedIcon","data-sentry-source-file":"EventLocation.tsx"}),(0,s.jsx)("span",{children:"Hidden from non-attendees"})]})}function w({icon:e,children:t}){return(0,s.jsxs)("div",{className:"flex gap-3","data-sentry-component":"WithheldNotice","data-sentry-source-file":"EventLocation.tsx",children:[(0,s.jsx)(b,{"data-sentry-element":"LogisticsIcon","data-sentry-source-file":"EventLocation.tsx",children:e}),(0,s.jsxs)("div",{className:"running-text text-sm",children:[(0,s.jsx)(g.A,{className:"size-4 inline-block align-text-bottom mr-1 opacity-55","data-sentry-element":"LockClosedIcon","data-sentry-source-file":"EventLocation.tsx"}),t]})]})}function A(e){let{event:t,eventAccess:n}=e,{venue:r,howToFindUs:a,onlineLink:i}=t,l=r?.address1,o=!!r&&r.hasAddress,d="";r?.city&&(d+=r?.city),r?.state&&(d+=`, ${r?.state.toUpperCase()}`),r?.postCode&&(d+=` ${r?.postCode}`);let c=r?.name;c===l&&(c="");let u=l;d&&(u+=`, ${d}`);let m=t.endAt.valueOf()<new Date().valueOf();return t.isPublic||n.isActiveMember?(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex gap-3 justify-between",children:[(0,s.jsx)("div",{className:"logistics-icon",style:{width:"20px",minWidth:"20px",height:"20px"},children:(0,s.jsx)(v.A,{className:"size-5"})}),(0,s.jsxs)("div",{className:"grow",children:[c&&(0,s.jsx)("div",{className:"mb-1",children:c}),(0,s.jsxs)(y,{address:u,children:[l&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"leading-none",children:l}),(0,s.jsx)("br",{})]}),r?.city&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"leading-none",children:d}),(0,s.jsx)("br",{})]})]}),a&&(0,s.jsx)("div",{className:"mt-2 mb-2 text-sm",children:a}),t.isAddressHidden&&(0,s.jsx)(N,{})]})]})}),t.addressWithheld&&!m&&(0,s.jsx)(w,{icon:(0,s.jsx)(v.A,{className:"size-5"}),children:"Address will be emailed to attendees"}),i&&!m&&(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)(b,{children:(0,s.jsx)(j.A,{className:"size-5"})}),(0,s.jsxs)("div",{children:[o?null:(0,s.jsx)("div",{children:r?.name}),(0,s.jsx)("a",{href:i,className:"a running-text text-sm leading-3",target:"_blank","aria-label":"to external website",rel:"noreferrer",children:i}),t.onlineLinkHidden&&(0,s.jsx)(N,{})]})]}),t.onlineLinkWithheld&&!m&&(0,s.jsx)(w,{icon:(0,s.jsx)(j.A,{className:"size-5"}),children:"Video link will be emailed to attendees"})]}):null}var E=n(10969),C=n(5811),S=n(43371),R=n(49510),I=n(14938);let T="Registration for this event has closed.";function k(e){if(!e)return null;let t="string"==typeof e?new Date(e):e;return Number.isNaN(t.getTime())?null:t}function P(e,t=new Date){let n=k(e?.registrationClosesAt);return!!n&&t>=n}function L(e){return e?.rsvpReply!=="YES"}function M(e,t,n=new Date){return L(t)&&function(e,t=new Date){return P(e,new Date(t.getTime()+5e3))}(e,n)}var D=n(28418);let F=(0,C.PA)(function(e){let{event:t,registration:n}=e,r=(0,p.sj)(),i=r?.syncEnabled||!1,o=(0,p.IG)(),d=(0,p.lF)(),c=E.Ay.modalStyle,u=(0,a.useRouter)(),m="string"==typeof u.query.pay?u.query.pay:void 0;function x(e){return t.signupUrl?(0,s.jsx)(D.rA,{href:t.signupUrl,target:"_blank",rel:"noreferrer","aria-label":"to external website","data-sentry-element":"ActionButton","data-sentry-component":"externalLink","data-sentry-source-file":"RsvpSection.tsx",children:e}):null}if((0,I.ey)(t)||!P(t)&&(0,I.kd)(t)&&!(0,I.uB)(t,n))return null;if(i)return(0,s.jsxs)(s.Fragment,{children:[r?.groupSlug&&(0,s.jsxs)(s.Fragment,{children:[t.isPublic&&(0,s.jsx)("div",{className:"mb-2",children:"Existing members:"}),(0,s.jsx)("div",{children:(0,s.jsx)(D.rA,{href:(0,R.T)(r.groupSlug),target:"_blank","aria-label":"to external website",rel:"noreferrer",children:"Register on Meetup"})})]}),(0,s.jsx)("div",{className:"mb-6",children:t.isPublic?t.signupUrl?(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsx)("div",{className:"font-bold mb-2",children:"Non-members, sign up here to register:"}),(0,s.jsx)("div",{children:x("Non-member ticket")})]}):(0,s.jsxs)("div",{className:"mt-4 mb-2",children:[(0,s.jsx)("span",{className:"font-bold",children:"Non-members,"})," please refer to the event description for details on how to attend."]}):null})]});if(!t.isPublic&&!o)return(0,s.jsx)("div",{className:"mt-4 mb-2",children:"This event is only available to logged-in members."});if(o){if(!o.email)return(0,s.jsxs)("p",{"data-sentry-component":"emailRegistrationRequired","data-sentry-source-file":"RsvpSection.tsx",children:["You must register your email address before you can register for the event.",(0,s.jsx)(l(),{href:"/members/account",className:"a",target:"_blank","aria-label":"to external website","data-sentry-element":"Link","data-sentry-source-file":"RsvpSection.tsx",children:"Please register your email address here."})]});else if(!t.isPublic&&!(0,S.DT)(o)&&!t.registration?.invited)return(0,s.jsx)("div",{className:"mb-2","data-sentry-component":"currentMembersOnly","data-sentry-source-file":"RsvpSection.tsx",children:d&&(0,s.jsxs)("p",{children:["To register, please visit the"," ",(0,s.jsx)(l(),{href:"/members/dues",className:"a",children:"dues page"})," ","to renew your membership."]})})}else if((0,I.lv)(t))return(0,s.jsx)("div",{children:x("Get Tickets")});return function(){let r="Register";n?.id&&n?.rsvpReply&&!["INVITED","NO"].includes(n?.rsvpReply)?r="Update Registration":(0,I.FI)(t)&&(r="Register to Waitlist"),c={...c,content:{...c.content,maxWidth:"400px"}};let a=n?.rsvpReply==="YES",i=n?.payStatus,l=i&&!["PAID","EXEMPT"].includes(i),o=P(t);return(a&&l||m)&&o&&!(0,I.fP)({feeAmount:t.feeAmount})?(0,s.jsx)("div",{className:"flex flex-col gap-y-2",children:(0,s.jsxs)(D.rA,{onClick:e.onRsvpClick,withGroupFlow:!0,"data-id":"payment-button",children:[" ","Payment"," "]})}):o?null:(0,s.jsx)("div",{className:"flex flex-col gap-y-2",children:(0,s.jsx)(D.rA,{onClick:e.onRsvpClick,withGroupFlow:!0,"data-id":"register-button",children:r})})}()});var O=n(78950),Y=n(94085),q=n(82738),U=n(54587),z=n.n(U),V=n(80229);function B({children:e,href:t,download:n}){return(0,s.jsx)(D.rA,{href:t,download:n,rel:"noopener noreferrer",target:"_blank","aria-label":"to external website","data-sentry-element":"ActionButton","data-sentry-component":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:e})}function _({src:e}){return(0,s.jsx)(z(),{src:e,style:{height:"40px"},alt:"Calendar provider logo",width:0,height:0,sizes:"40px",className:"h-10 w-auto","data-sentry-element":"Image","data-sentry-component":"Logo","data-sentry-source-file":"AddToCalendar.tsx"})}function $({children:e}){return(0,s.jsx)("div",{className:"text-center flex-grow","data-sentry-component":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:e})}function H(e){let{venue:t}=e;return t&&t.hasAddress?K(t).replace("\n",", "):""}function W(e){let t=H(e);return t||(e.onlineLink?e.onlineLink:e.venue?K(e.venue):"")}function G(e,t){return`${t}/events/${e}`}function Q(e,t){return[G(e.id,t),!e.onlineLink||!H(e)?"":`Online: ${e.onlineLink}
1`,(0,V.xv)((0,V.G9)(e.description||""),600).trim()].filter(Boolean)}function J(e,t){return Q(e,t).join("\n\n")}function K(e){let t=e.name;if(e.address1&&(t+=`, ${e.address1}`,e.city)){if(t+=`, ${e.city}`,e.state){let n=2===e.state.length?e.state.toUpperCase():e.state;t+=`, ${n}`}e.postCode&&(t+=` ${e.postCode}`)}return t}function Z({event:e}){let t=(0,p.Jc)(),n=(0,p.KE)();function r(e){return e.toISOString().replace(/[:-]/g,"").replace(/\.\d+/,"")}function a(e){return e.toISOString().replace(/\.\d+/,"")}function i(e){return Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&")}function l(e,t){return{body:Q(e,t).map(e=>e.replace(/\n/g,"<br />\n")).join("<br /><br />\n"),enddt:a(e.endAt),location:W(e),path:"/calendar/action/compose",rru:"addevent",startdt:e.startAt&&a(e.startAt),subject:e.title}}let o="data:text/calendar;charset=utf-8,"+encodeURIComponent((function(e,t){let n=J(e,t);return new q.Component({name:"VCALENDAR",properties:[new q.Property({name:"VERSION",value:2})],components:[new q.Component({name:"VEVENT",properties:[new q.Property({name:"DTSTAMP",value:r(new Date)}),new q.Property({name:"DTSTART",parameters:{TZID:Intl.DateTimeFormat().resolvedOptions().timeZone},value:e.startAt}),new q.Property({name:"DTEND",parameters:{TZID:Intl.DateTimeFormat().resolvedOptions().timeZone},value:e.endAt}),new q.Property({name:"SUMMARY",value:e.title}),new q.Property({name:"DESCRIPTION",value:n}),new q.Property({name:"CREATED",value:e.publishedAt&&r(e.publishedAt)}),new q.Property({name:"LOCATION",value:W(e)}),new q.Property({name:"URL",value:e.onlineLink}),new q.Property({name:"UID",value:`event_${e.id}@groupflow.app`})]})]})})(e,n).toString());return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"h2",style:{marginTop:0},children:e.title}),(0,s.jsx)("p",{className:"p",children:"Add this event to your calendar:"}),(0,s.jsxs)("div",{style:{width:"300px"},className:"flex flex-col items-stretch gap-3 mx-auto mt-8",children:[(0,s.jsxs)(B,{href:function(e,t,n){let s=W(e),a=G(e.id,n),i=Q(e,n).join("\n\n"),l=(e.startAt&&r(e.startAt))+"/"+(e.endAt&&r(e.endAt)),o=[["location",s],["action","TEMPLATE"],["sprop",`name:${t.name}`],["sprop",`website:${a}`],["details",i],["text",e.title],["dates",l]].map(([e,t])=>encodeURIComponent(e)+"="+encodeURIComponent(t)).join("&"),d="https://calendar.google.com/calendar/r/eventedit";return Y.m0&&(d="https://calendar.google.com/calendar/render"),`${d}?${o}`}(e,t,n),"data-sentry-element":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:[(0,s.jsx)(_,{src:"https://mp1md-pub.s3.us-west-2.amazonaws.com/images/google_calendar_8_2x.png","data-sentry-element":"Logo","data-sentry-source-file":"AddToCalendar.tsx"}),(0,s.jsx)($,{"data-sentry-element":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:"Google Calendar"})]}),(0,s.jsxs)(B,{href:function(e,t){let n=l(e,t);return`https://outlook.live.com/calendar/0/deeplink/compose?${i(n)}`}(e,n),"data-sentry-element":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:[(0,s.jsx)(_,{src:"https://mp1md-pub.s3.us-west-2.amazonaws.com/icons/outlook-icon.png","data-sentry-element":"Logo","data-sentry-source-file":"AddToCalendar.tsx"}),(0,s.jsx)($,{"data-sentry-element":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:"Outlook Live"})]}),(0,s.jsxs)(B,{href:function(e,t){let n=l(e,t);return`https://outlook.office.com/calendar/0/deeplink/compose?${i(n)}`}(e,n),"data-sentry-element":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:[(0,s.jsx)(_,{src:"https://mp1md-pub.s3.us-west-2.amazonaws.com/icons/office365-icon.png","data-sentry-element":"Logo","data-sentry-source-file":"AddToCalendar.tsx"}),(0,s.jsx)($,{"data-sentry-element":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:"Office 365"})]}),(0,s.jsxs)(B,{href:o,download:`event-${e.id}.ics`,"data-sentry-element":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:[(0,s.jsx)(_,{src:"https://mp1md-pub.s3.us-west-2.amazonaws.com/icons/calendar-80.png","data-sentry-element":"Logo","data-sentry-source-file":"AddToCalendar.tsx"}),(0,s.jsx)($,{"data-sentry-element":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:"iCalendar: Outlook, Apple Calendar, etc."})]}),(0,s.jsxs)(B,{href:function(e,t){let n=J(e,t),s=i({in_loc:W(e),v:60,VIEW:"d",TYPE:20,TITLE:e.title,ST:e.startAt&&r(e.startAt),ET:e.endAt&&r(e.endAt),URL:G(e.id,t),DESC:n});return`http://calendar.yahoo.com?${s}`}(e,n),"data-sentry-element":"LinkButton","data-sentry-source-file":"AddToCalendar.tsx",children:[(0,s.jsx)(_,{src:"https://mp1md-pub.s3.us-west-2.amazonaws.com/icons/yahoo-icon-2.png","data-sentry-element":"Logo","data-sentry-source-file":"AddToCalendar.tsx"}),(0,s.jsx)($,{"data-sentry-element":"ButtonLabel","data-sentry-source-file":"AddToCalendar.tsx",children:"Yahoo Calendar"})]})]})]})}function X({isOpen:e,onClose:t,event:n}
1){return(0,s.jsx)(O.A,{isOpen:e,onClose:t,contentStyle:{top:"1em",bottom:"1em"},"data-sentry-element":"SimpleModal","data-sentry-component":"AddToCalendarModal","data-sentry-source-file":"AddToCalendarModal.tsx",children:(0,s.jsx)(Z,{event:n,"data-sentry-element":"AddToCalendar","data-sentry-source-file":"AddToCalendarModal.tsx"})})}function ee(){let[e,t]=(0,r.useState)(!1);return{isOpen:e,openModal:()=>t(!0),closeModal:()=>t(!1)}}function et(e){let{className:t,style:n}=e;return(0,s.jsx)("svg",{fill:"#000000",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",style:n,className:t,title:"Holding hands icon",...{},"data-sentry-element":"svg","data-sentry-component":"HoldingHandsIcon","data-sentry-source-file":"HoldingHandsIcon.tsx",children:(0,s.jsx)("path",{d:"M 6 2 A 2 2 0 0 0 4 4 A 2 2 0 0 0 6 6 A 2 2 0 0 0 8 4 A 2 2 0 0 0 6 2 z M 18 2 A 2 2 0 0 0 16 4 A 2 2 0 0 0 18 6 A 2 2 0 0 0 20 4 A 2 2 0 0 0 18 2 z M 5 8 C 3.895 8 3 8.895 3 10 L 3 16 L 3 21 C 3 21.552 3.448 22 4 22 C 4.552 22 5 21.552 5 21 L 5 16 L 7 16 L 7 21 C 7 21.552 7.448 22 8 22 C 8.552 22 9 21.552 9 21 L 9 15 L 9 12.169922 L 11.292969 14.464844 C 11.683969 14.855844 12.317031 14.855844 12.707031 14.464844 L 15 12.169922 L 15 16 L 15 21 C 15 21.552 15.448 22 16 22 C 16.552 22 17 21.552 17 21 L 17 16 L 19 16 L 19 21 C 19 21.552 19.448 22 20 22 C 20.552 22 21 21.552 21 21 L 21 15 L 21 10 C 21 8.895 20.105 8 19 8 L 17 8 C 16.443981 8 15.942484 8.2278028 15.580078 8.59375 L 15.578125 8.5917969 L 12 12.171875 L 8.4140625 8.5859375 L 8.3886719 8.5585938 L 8.3847656 8.5625 C 8.0252039 8.2161403 7.5389664 8 7 8 L 5 8 z","data-sentry-element":"path","data-sentry-source-file":"HoldingHandsIcon.tsx"})})}var en=n(21993),es=n(43982),er=n(44952),ea=n(62849),ei=n(86331),el=n(49338),eo=n(34824),ed=n(42461),ec=n(71658),eu=n(35141),em=n(49995);let ex=(0,C.PA)(function(e){let{className:t,event:n,eventAccess:r,registration:a}=e,{isOpen:i,openModal:l,closeModal:o}=ee(),d=(0,p.Jc)(),c=d?.features.volunteersEnabled,u=(0,p.IG)(),m=(0,I.Eq)(n?.staff,u?.id);if(!n)return(0,s.jsx)("h1",{className:"h1",children:"Event"});if(!n.startAt)return null;let x=n.feeAmount;x=x&&"0.00"!==x?`${(0,V.o5)(n.feeAmount)}`:"FREE";let f=(0,I.ey)(n),h=n.startAt>new Date;return(0,s.jsxs)("div",{className:`flex flex-col gap-3 border border-[var(--group-primary-card-line-color)] p-5 ${t||""}`,"data-sentry-component":"EventLogistics","data-sentry-source-file":"EventLogistics.tsx",children:[(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[(0,s.jsx)(ed.A,{className:"size-4","data-sentry-element":"CalendarIcon","data-sentry-source-file":"EventLogistics.tsx"}),(0,s.jsx)("div",{className:"text-sm",children:(0,es.Yq)(n.startAt,en.bN)})]}),(0,s.jsx)("div",{className:"hidden md:block text-lg font-bold text-[var(--group-heading-text-color)]",children:n.title}),(0,s.jsx)(er.A,{icon:(0,s.jsx)(ec.A,{className:"size-6"}),iconPaddingTop:"pt-0",childrenClassName:"","data-sentry-element":"EventDetailItem","data-sentry-source-file":"EventLogistics.tsx",children:(0,s.jsx)("div",{className:"font-bold",children:x})}),function(){let e=a?.rsvpReply==="YES",t=e&&a?.waitlisted;return m||e?(0,s.jsxs)(s.Fragment,{children:[m&&(0,s.jsx)(ea.A,{role:m}),t&&(0,s.jsx)(er.A,{className:"text-[var(--group-accent-text)]",childrenClassName:"",icon:(0,s.jsx)(eo.A,{className:"h-4 w-4"}),"data-testid":"waitlisted-attendee",children:"You are waitlisted"}),e&&!t&&(0,s.jsx)(er.A,{className:"text-[var(--group-accent-text)]",childrenClassName:"",icon:(0,s.jsx)(ei.A,{className:"h-4 w-4"}),"data-testid":"registered-attendee",children:"You are registered"})]}):null}(),(0,s.jsx)("div",{className:"logistics-description leading-normal",children:(0,s.jsxs)("div",{className:"logistics-action flex flex-col items-stretch mt-2 mb-4",children:[(0,s.jsx)(F,{event:n,registration:a,onRsvpClick:()=>e.onRsvpClick&&e.onRsvpClick(),"data-sentry-element":"RsvpSection","data-sentry-source-file":"EventLogistics.tsx"}),function(){let e,t="mt-4";if(f)return(0,s.jsx)("div",{className:(0,em.A)(t,"font-bold"),children:"This event is canceled"});if((0,I.kd)(n))return(0,s.jsx)("div",{className:(0,em.A)(t,"font-bold"),children:"RSVPs are closed at this time"});let a=n.spotsLeft;return(0===a&&"AUTO"===(0,I.mf)(n)?e="Event is currently waitlist only":"number"==typeof a&&(e=`${a} ${1===a?"spot":"spots"} left`),h&&n.rsvpRules?.rsvpLimit!==null&&n.rsvpRules?.rsvpLimit!==void 0&&(r.isActiveMember||r.isPublicEvent)&&e)?(0,s.jsx)("div",{className:(0,em.A)(t,"text-red-danger"),children:e}):null}()]})}),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{className:"logistics-icon logistics-timing-icon",children:(0,s.jsx)(eu.A,{className:"size-5","data-sentry-element":"ClockIcon","data-sentry-source-file":"EventLogistics.tsx"})}),(0,s.jsxs)("div",{className:"logistics-timing leading-tight",children:[(0,s.jsx)("div",{className:"text-sm",children:(0,es.Yq)(n.startAt,en.bN)}),(0,s.jsxs)("div",{className:"text-sm",children:[(0,s.jsx)("div",{children:(0,es.Yq)(n.startAt,en.DC)}),(0,s.jsxs)("div",{children:["To"," ",n.endAt.getDay()!==n.startAt.getDay()?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,es.Yq)(n.endAt,"EEEE, MMM dd")]}):null,(0,s.jsx)("br",{}),(0,es.Yq)(n.endAt,en.DC)]}),h&&(0,s.jsx)("button",{className:"a inline-block mt-1",onClick:e=>{e.preventDefault(),l()},children:"Add to calendar"})]}),(0,s.jsx)(X,{isOpen:i,onClose:o,event:n,"data-sentry-element":"AddToCalendarModal","data-sentry-source-file":"EventLogistics.tsx"})]})]}),h&&c&&(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{children:(0,s.jsx)(el.A,{className:"fill-current size-5"})}),(0,s.jsx)("div",{children:n.volunteersNeeded&&n.volunteersNeeded>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"Volunteers wanted"}),(0,s.jsx)("p",{children:"Contact hosts for volunteer info"})]}):(0,s.jsx)("p",{className:"text-gray-dark",children:"No open volunteer opportunities."})})]}),h&&(()=>{let e=(0,I.Qb)(n);return null==e?null:(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("div",{children:(0,s.jsx)(et,{className:"fill-current"})}),(0,s.jsx)("div",{children:(0,s.jsxs)("p",{children:[(0,s.jsx)("code",{children:e})," ",1===e?"guest":"guests"," ","allowed"]})})]})})(),(0,s.jsx)(A,{event:n,eventAccess:r,"data-sentry-element":"EventLocation","data-sentry-source-file":"EventLogistics.tsx"})]})});function ep({event:e}){let t=e?.image?.url;return t?(0,s.jsx)(z(),{className:"w-full rounded-xl",src:t,alt:"Event photo",width:400,height:300,"data-sentry-element":"Image","data-sentry-component":"EventPhoto","data-sentry-source-file":"EventPhoto.tsx"}):null}var ef=n(14766),eh=n(44910),ey=n(22469),eg=n(63009),ev=n(39114);let ej=(0,C.PA)(function(e){let{event:t}=e,n=(0,p.IG)(),{eventsConfig:{memberDraftsEnabled:r}}=(0,p.Jc)();return(0,s.jsx)("div",{className:"mb-4 p-5","data-sentry-component":"OrganizerToolsDropdown","data-sentry-source-file":"OrganizerToolsDropdown.tsx",children:(0,s.jsxs)(ef.W1,{as:"div",className:"relative","data-sentry-element":"Menu","data-sentry-source-file":"OrganizerToolsDropdown.tsx",children:[(0,s.jsxs)(ef.IU,{className:"flex justify-center items-center gap-2 w-full font-medium text-[var(--group-accent-text)]","data-sentry-element":"MenuButton","data-sentry-source-file":"OrganizerToolsDropdown.tsx",children:[(0,s.jsx)(eh.A,{className:"size-4","data-sentry-element":"WrenchIcon","data-sentry-source-file":"OrganizerToolsDropdown.tsx"}),(0,s.jsx)("span",{children:"Organizer tools"})]}),(0,s.jsx)(eg.A,{anchor:"bottom","data-sentry-element":"StyledMenuItems","data-sentry-source-file":"OrganizerToolsDropdown.tsx",children:(0,s.jsx)(ey.A,{event:t,hasEventsAccess:(0,ev.hN)(n,"events"),hasFinancesAccess:(0,ev.hN)(n,"finances"),memberDraftsEnabled:r,"data-sentry-element":"OrganizerToolsMenuItems","data-sentry-source-file":"OrganizerToolsDropdown.tsx"})})]})})});var eb=n(46078),eN=n(21542),ew=n(93544);let eA=function(e){let{forum:t,targetMessageId:n}=e,{permissions:r}=t;return(0,s.jsxs)("div",{className:"max-w-md mx-auto","data-sentry-component":"EventDiscussion","data-sentry-source-file":"EventDiscussion.tsx",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,s.jsx)("h2",{className:"h2",children:"Discussion"}),(0,s.jsx)(ew.A,{forum:t,canModerate:r?.canModerate,"data-sentry-element":"DiscussionActions","data-sentry-source-file":"EventDiscussion.tsx"})]}),(0,s.jsx)("div",{className:"mb-8",children:(0,s.jsx)(eN.A,{className:"px-2 mb-8",forum:t,targetMessageId:n,scrollToComposerOnLoad:!1,"data-sentry-element":"Messages","data-sentry-source-file":"EventDiscussion.tsx"})})]})};function eE(e){let{memberId:t,onClick:n,children:r,className:a}=e;return n?(0,s.jsx)("button",{type:"button",onClick:n,className:(0,em.A)(a,"text-left rounded","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2"),children:r}):t?(0,s.jsx)(l(),{href:`/members/${t}`,className:a,"data-sentry-element":"Link","data-sentry-component":"PersonWrapper","data-sentry-source-file":"VerticalPersonCard.tsx",children:r}):(0,s.jsx)("span",{title:"non-member",children:r})}function eC(e){return(0,s.jsxs)(eE,{memberId:e.memberId,onClick:e.onClick,className:"flex flex-row items-center gap-2 w-64","data-sentry-element":"PersonWrapper","data-sentry-component":"VerticalPersonCard","data-sentry-source-file":"VerticalPersonCard.tsx",children:[(0,s.jsx)(o.A,{url:e.photoUrl,size:e.photoSize,"data-sentry-element":"PersonPhoto","data-sentry-source-file":"VerticalPersonCard.tsx"}),(0,s.jsxs)("div",{className:"flex flex-col gap-0.5 leading-none",children:[(0,s.jsx)("span",{style:{fontSize:"12px"},children:e.name}),e.subtitle&&(0,s.jsx)("span",{className:"text-gray-darker",style:{fontSize:"11px"}
1,children:e.subtitle})]})]})}function eS(e){let{persons:t}=e;return(0,s.jsx)("div",{className:"flex flex-col gap-2","data-sentry-component":"VerticalPersonsList","data-sentry-source-file":"VertialPersonsList.tsx",children:t.map(e=>(0,s.jsx)(eC,{...e},e.id))})}function eR({isOpen:e,onClose:t,event:n,onSelectStaff:r}){let a=(n.staff||[]).map(e=>{let t=e.member?.id??null;return{id:t??e.id,memberId:t,name:e.displayName||e.member?.name||"",subtitle:(0,I.Td)(e.role),photoUrl:e.photo?.thumbUrl||e.member?.profile?.photo?.thumbUrl||null,onClick:()=>r(e)}});return(0,s.jsx)(O.A,{isOpen:e,onClose:t,title:"Event staff","data-sentry-element":"SimpleModal","data-sentry-component":"EventStaffModal","data-sentry-source-file":"EventStaffModal.tsx",children:(0,s.jsx)(eS,{persons:a,"data-sentry-element":"VerticalPersonsList","data-sentry-source-file":"EventStaffModal.tsx"})})}var eI=n(82037);function eT({onClose:e,staff:t}){if(!t)return null;let n=t.member,r=t.displayName||n?.name||"",a=t.photo?.thumbUrl||n?.profile?.photo?.thumbUrl||null,i=t.bio||n?.profile?.intro||null,d=(0,I.Td)(t.role),c=n?.status==="ACTIVE"&&!!n?.id;return(0,s.jsx)(O.A,{isOpen:!0,onClose:e,title:"Staff details","data-sentry-element":"SimpleModal","data-sentry-component":"StaffDetailModal","data-sentry-source-file":"StaffDetailModal.tsx",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,s.jsx)(o.A,{url:a,size:"medium","data-sentry-element":"PersonPhoto","data-sentry-source-file":"StaffDetailModal.tsx"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("div",{className:"text-lg",children:r}),(0,s.jsx)(eI.Ex,{type:"default","data-sentry-element":"Badge","data-sentry-source-file":"StaffDetailModal.tsx",children:d})]})]}),i&&(0,s.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:i}),c&&(0,s.jsxs)("div",{className:"flex flex-row gap-4 items-start",children:[(0,s.jsx)(l(),{href:`/members/${n?.id}?noSplash=true`,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-700 underline",children:"View profile"}),(0,s.jsx)(l(),{href:`/members/messages/${n?.id}?noSplash=true`,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary-700 underline",children:"Send message"})]})]})})}function ek({event:e}){let t=e?.staff||[],n=t.filter(e=>e.featured),[a,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(null);if(!n.length)return null;let d=n.map(e=>{let t=e.member?.id??null;return{id:t??e.id,memberId:t,name:e.displayName||e.member?.name||"",subtitle:(0,I.Td)(e.role),photoUrl:e.photo?.thumbUrl||e.member?.profile?.photo?.thumbUrl||null,onClick:()=>o(e)}}),c=t.length>n.length;return(0,s.jsxs)("div",{className:"flex flex-col gap-2","data-sentry-component":"EventHosts","data-sentry-source-file":"EventHosts.tsx",children:[(0,s.jsx)("h3",{className:"text-lg",children:"Hosted by"}),(0,s.jsx)(eS,{persons:d,"data-sentry-element":"VerticalPersonsList","data-sentry-source-file":"EventHosts.tsx"}),c&&(0,s.jsxs)("button",{type:"button",className:"text-sm text-primary-700 underline self-start",onClick:()=>i(!0),children:["See all ",t.length," staff"]}),(0,s.jsx)(eR,{isOpen:a,onClose:()=>{i(!1),o(null)},event:e,onSelectStaff:o,"data-sentry-element":"EventStaffModal","data-sentry-source-file":"EventHosts.tsx"}),(0,s.jsx)(eT,{onClose:()=>o(null),staff:l,"data-sentry-element":"StaffDetailModal","data-sentry-source-file":"EventHosts.tsx"})]})}function eP({event:e}){let t="CANCELED"===e.status;return(0,s.jsxs)("h1",{className:"text-center text-[2.125rem] font-bold text-[var(--group-heading-text-color)]","data-sentry-component":"EventTitle","data-sentry-source-file":"EventTitle.tsx",children:[(0,s.jsx)("span",{className:`${t&&"line-through"}`,children:e.title}),t&&" Canceled"]})}var eL=n(1413),eM=n(76019);function eD(e){let{className:t,event:n}=e,[a,i]=(0,r.useState)(),l=(0,p.IB)();function o(e){i(e)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`flex flex-wrap ${t||""} gap-2`,children:[n.isPublic&&(0,s.jsx)(eM.A,{withDot:!0,title:"Open to the general public",type:"success",bgClass:"",children:"public"}),n.tags?.map(e=>(0,s.jsx)(eL.A,{tag:e,onClick:o,tagGroups:l,bgClass:""},e.id))]}),(0,s.jsx)(O.A,{isOpen:!!a,onClose:()=>i(void 0),"data-sentry-element":"SimpleModal","data-sentry-source-file":"EventTags.tsx",children:a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h3",{className:"h3",children:[l.find(e=>e.id===a.tagGroupId)?.title,":"]}
1),(0,s.jsx)(eL.A,{tag:a,tagGroups:l,bgClass:""})]})})]})}var eF=n(85819),eO=n(10290),eY=n(88129);function eq({attachment:e,canManage:t,onClick:n,onRemove:r}){let{image:a}=e,i=a.thumbInfo?.width||150,l=a.thumbInfo?.height||150;return(0,s.jsxs)("div",{className:"relative group","data-sentry-component":"EventAttachmentItem","data-sentry-source-file":"EventAttachmentItem.tsx",children:[(0,s.jsx)("button",{onClick:n,className:"block rounded overflow-hidden cursor-pointer hover:opacity-90 transition-opacity",type:"button",children:(0,s.jsx)(z(),{src:a.thumbUrl||a.url,alt:"Event attachment",width:150,height:150/(i/l),className:"object-cover w-full aspect-square","data-sentry-element":"Image","data-sentry-source-file":"EventAttachmentItem.tsx"})}),t&&r&&(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),r()},className:"absolute top-1 right-1 p-1 bg-black/50 rounded opacity-0 group-hover:opacity-100 transition-opacity hover:bg-black/70",type:"button","aria-label":"Remove attachment",children:(0,s.jsx)(eY.A,{className:"h-4 w-4 text-white"})})]})}var eU=n(24073),ez=n(68720);function eV({attachments:e,currentIndex:t,onClose:n,onNavigate:r}){let a=e[t];if(!a)return null;let{image:i}=a,l=e.length>1;return(0,s.jsx)(O.A,{isOpen:!0,onClose:n,withBodyStyle:!1,"data-sentry-element":"SimpleModal","data-sentry-component":"EventAttachmentLightbox","data-sentry-source-file":"EventAttachmentLightbox.tsx",children:(0,s.jsxs)("div",{className:"flex items-center justify-center p-4 relative",children:[l&&(0,s.jsx)("button",{onClick:function(){r(0===t?e.length-1:t-1)},className:"absolute left-2 p-2 bg-black/50 rounded-full hover:bg-black/70 transition-colors",type:"button","aria-label":"Previous image",children:(0,s.jsx)(eU.A,{className:"h-6 w-6 text-white"})}),(0,s.jsx)(z(),{src:i.url,alt:"Event attachment",width:i.info?.width||800,height:i.info?.height||600,className:"max-w-full max-h-[80vh] object-contain","data-sentry-element":"Image","data-sentry-source-file":"EventAttachmentLightbox.tsx"}),l&&(0,s.jsx)("button",{onClick:function(){r(t===e.length-1?0:t+1)},className:"absolute right-2 p-2 bg-black/50 rounded-full hover:bg-black/70 transition-colors",type:"button","aria-label":"Next image",children:(0,s.jsx)(ez.A,{className:"h-6 w-6 text-white"})}),l&&(0,s.jsxs)("div",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 text-white bg-black/50 px-2 py-1 rounded text-sm",children:[t+1," / ",e.length]})]})})}var eB=n(35739),e_=n(79560),e$=n(1815),eH=n(94829);function eW({onUpload:e,disabled:t}){let n=r.createRef(),a=(0,p.QU)(),[i,l]=(0,r.useState)(!1),[o,d]=(0,r.useState)(null);async function c(t){d(null),l(!0);try{let n=await (0,e$.cp)(a,t);if(n.error)return d("Failed to upload image"),!1;{let t=n.data;return await e(t.id),!0}}catch{return d("Failed to upload image"),!1}finally{l(!1),n.current&&(n.current.value="")}}return(0,s.jsxs)("div",{"data-sentry-component":"EventAttachmentUpload","data-sentry-source-file":"EventAttachmentUpload.tsx",children:[(0,s.jsx)(e_.A,{onChange:c,className:"hidden",inputRef:n,onError:e=>d(e),"data-sentry-element":"FileInput","data-sentry-source-file":"EventAttachmentUpload.tsx"}),i?(0,s.jsx)("div",{className:"flex items-center justify-center w-[150px] h-[150px] border-2 border-dashed border-gray-300 rounded",children:(0,s.jsx)(z(),{src:"/static/images/progress-circle.gif",alt:"Uploading...",width:30,height:30})}):(0,s.jsx)("button",{onClick:function(){d(null),n.current&&n.current.click()},disabled:t,type:"button",className:"flex items-center justify-center w-[150px] h-[150px] border-2 border-dashed border-gray-300 rounded hover:border-gray-400 hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:(0,s.jsxs)("div",{className:"flex flex-col items-center text-gray-500",children:[(0,s.jsx)(eB.A,{className:"h-8 w-8"}),(0,s.jsx)("span",{className:"text-sm mt-1",children:"Add Photo"})]})}),o&&(0,s.jsx)(eH.A,{type:"warning",onClose:()=>d(null),className:"mt-2",children:o})]})}function eG({event:e,canManage:t,onAttachmentsChange:n}){let[a,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(null),{addAttachment:d,removeAttachment:c,loading:u}=function({eventId:e,onUpdate:t}){let[n,{loading:s}]=(0,eF.X)(eO.H);return{addAttachment:async function(s){return!(await n({variables:{id:e,input:{newAttachments:[{imageId:s}]}}},"updateEvent2")).hasError&&(t?.(),!0)},removeAttachment:async function(s){return!(await n({variables:{id:e,input:{attachmentIdsToRemove:[s]}}},"updateEvent2")).hasError&&(t?.(),!0)},reorderAttachments:async function(s){return!(await n({variables:{id:e,input:{attachmentsOrder:s}}},"updateEvent2")).hasError&&(t?.(),!0)},loading:s}}({eventId:e.id,onUpdate:n}),m=e.attachments||[],x=a?m:m.slice(0,6),p=m.length>6,f=m.length-6;if(0===m.length&&!t)return null;async function h(e){confirm("Remove this photo from the event?")&&await c(e)}return(0,s.jsxs)("div",{className:"EventAttachmentsGallery mt-8 px-2","data-sentry-component":"EventAttachmentsGallery","data-sentry-source-file":"EventAttachmentsGallery.tsx",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Event Photos"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:[x.map((e,n)=>(0,s.jsx)(eq,{attachment:e,canManage:t,onClick:()=>o(n),onRemove:()=>h(e.id)},e.id)),t&&(0,s.jsx)(eW,{onUpload:d,disabled:u})]}),p&&!a&&(0,s.jsxs)("button",{onClick:()=>i(!0),type:"button",className:"mt-3 text-sm text-blue-600 hover:text-blue-800 hover:underline",children:["Show ",f," more photo",1!==f?"s":""]}),a&&p&&(0,s.jsx)("button",{onClick:()=>i(!1),type:"button",className:"mt-3 text-sm text-blue-600 hover:text-blue-800 hover:underline",children:"Show less"}),null!==l&&(0,s.jsx)(eV,{attachments:m,currentIndex:l,onClose:()=>o(null),onNavigate:o})]})}let eQ=(0,C.PA)(function(e){let{className:t,event:n,eventAccess:r,registration:a,style:i,messageId:l,onAttachmentsChange:o}=e,{eventsConfig:{memberDraftsEnabled:d}}=(0,p.Jc)(),c=(0,p.sj)(),u=(0,p.IG)(),m=(0,S.DT)(u),f=n.selfPermissions.canUpdateEvent,y=(0,eb.A)({eventId:n.id,forumPurpose:"EVENT",member:u,permissions:{canModerate:f}}),g=null;return n.id&&(g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ex,{onRsvpClick:()=>e.onRsvpClick&&e.onRsvpClick(),registration:a,event:n,eventAccess:r}),d&&r.isActiveMember||f?(0,s.jsx)(ej,{event:n}):null]})),(0,s.jsxs)("div",{className:t||"",style:i,"data-sentry-component":"EventDetails","data-sentry-source-file":"EventDetails.tsx",children:[(0,s.jsxs)("div",{className:"flex justify-between pb-8",children:[(0,s.jsxs)("div",{className:"shrink overflow-x-auto",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-4 mb-4",children:[(0,s.jsx)(ep,{event:n,"data-sentry-element":"EventPhoto","data-sentry-source-file":"EventDetails.tsx"}),(0,s.jsx)(eP,{event:n,"data-sentry-element":"EventTitle","data-sentry-source-file":"EventDetails.tsx"}),(0,s.jsx)(ek,{event:n,"data-sentry-element":"EventHosts","data-sentry-source-file":"EventDetails.tsx"}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(eD,{event:n,"data-sentry-element":"EventTags","data-sentry-source-file":"EventDetails.tsx"})})]}),(0,s.jsx)("div",{className:"md:hidden",children:g}),(0,s.jsx)(h,{event:n,eventAccess:r,registration:a,"data-sentry-element":"DescriptionSection","data-sentry-source-file":"EventDetails.tsx"}),(0,s.jsx)(x,{event:n,eventAccess:r,className:"mt-8 px-2","data-sentry-element":"RegistrationSection","data-sentry-source-file":"EventDetails.tsx"})]}),(0,s.jsx)("div",{className:"hidden md:block md:min-w-xs md:pl-6",style:{maxWidth:"23em"},children:g})]}),(0,s.jsx)(eG,{event:n,canManage:f,onAttachmentsChange:o,"data-sentry-element":"EventAttachmentsGallery","data-sentry-source-file":"EventDetails.tsx"}),!c?.syncEnabled&&u&&m&&(0,s.jsx)(eA,{forum:y,targetMessageId:l})]})});var eJ=n(44302),eK=n(20437),eZ=n(70274),eX=n(6795),e0=n(33556),e5=n(18334),e2=n(3768),e1=n(33709),e3=n(31167),e4=n(27514),e8=n(16305),e6=n(88992),e7=n(55004),e9=n(94741),te=n(54595),tt=n(94674),tn=n(62584),ts=n(55494),tr=n(28250),ta=n(32762),ti=n(77235),tl=n(26541),to=n(14402),td=n(1376);function tc(e){let{usingRsvp:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eZ.A,{error:t.apiError,"data-sentry-element":"ApiErrors","data-sentry-source-file":"RsvpError.tsx"}),t.genericError&&(0,s.jsx)(eH.A,{type:"warning",children:t.genericError})]})}var tu=n(81077),tm=n(63815),tx=n(25898),tp=n(57700),tf=n(87232),th=n(98027),ty=n(63853);function tg(e){let{className:t,style:n,...r}=e;return(0,s.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"1024px",height:"1024px",viewBox:"0 0 1024 1024",preserveAspectRatio:"xMidYMid meet",style:n,className:t,...r,"data-sentry-element":"svg","data-sentry-component":"TransferTicketIcon","data-sentry-source-file":"TransferTicketIcon.tsx",children:(0,s.jsxs)("g",{fill:"currentColor","data-sentry-element":"g","data-sentry-source-file":"TransferTicketIcon.tsx",children:[(0,s.jsx)("path",{d:"M181 738.50 c-0.40 -0.25 -1.95 -0.50 -3.45 -0.50 -1.50 0 -3.40 -0.20 -4.25 -0.45 -0.85 -0.25 -2.8
10 -0.70 -4.30 -1.05 -3.20 -0.65 -6.35 -1.45 -7.75 -2 -0.55 -0.25 -2.35 -0.90 -4 -1.50 -1.65 -0.60 -4 -1.55 -5.25 -2.10 -1.25 -0.55 -2.80 -1.30 -3.50 -1.60 -0.70 -0.30 -1.35 -0.65 -1.50 -0.80 -0.15 -0.15 -1.25 -0.80 -2.50 -1.45 -6.80 -3.65 -20.45 -14.75 -23.55 -19.15 -0.65 -0.90 -2.25 -3 -3.55 -4.60 -1.35 -1.65 -2.40 -3.30 -2.40 -3.65 0 -0.35 -0.20 -0.65 -0.40 -0.65 -0.50 0 -3.90 -5.75 -6.20 -10.50 -3.65 -7.60 -4.85 -10.60 -6.20 -15.35 -1.90 -6.95 -2.15 -8.15 -2.35 -9.75 -0.10 -0.95 -0.30 -1.95 -0.50 -2.25 -0.20 -0.35 -0.40 -2.10 -0.45 -3.90 0 -1.80 -0.25 -3.40 -0.45 -3.55 -0.55 -0.35 -0.60 -64.55 -0.05 -64.90 0.20 -0.10 0.45 -0.95 0.50 -1.80 0.30 -3.70 6.30 -11.90 10.85 -14.80 5.70 -3.60 7.30 -3.90 23.75 -4.20 12.65 -0.25 14.55 -0.35 16.75 -1.25 1.40 -0.55 2.60 -1.15 2.65 -1.35 0.10 -0.25 0.50 -0.40 0.85 -0.40 1.10 0 5 -2.35 7.25 -4.35 0.70 -0.65 1.40 -1.15 1.60 -1.15 0.60 0 5.55 -5 7.20 -7.25 0.80 -1.10 1.95 -2.50 2.60 -3.15 0.60 -0.65 1.10 -1.35 1.10 -1.60 0 -0.25 0.30 -0.75 0.65 -1.10 1.30 -1.35 4.70 -8.80 6.30 -13.90 2.55 -8.15 2.55 -8.20 2.55 -10.40 0 -1.10 0.25 -2.20 0.50 -2.35 0.65 -0.40 0.65 -12.95 -0.05 -16.35 -0.30
1-1.45 -0.75 -3.90 -1.05 -5.40 -0.25 -1.50 -0.65 -3.20 -0.90 -3.75 -1.05 -2.90 -2.15 -6.15 -2.35 -7.10 -0.15 -0.65 -0.45 -1.15 -0.70 -1.15 -0.25 0 -0.45 -0.35 -0.45 -0.85 0 -0.80 -4.15 -8.35 -5.20 -9.45 -0.30 -0.35 -1 -1.25 -1.55 -2 -2.40 -3.35 -6.25 -7.40 -9.25 -9.65 -0.95 -0.70 -2 -1.55 -2.35 -1.85 -0.95 -0.90 -8.90 -4.70 -11.80 -5.60 -2.20 -0.70 -4.50 -0.85 -15.35 -0.70 -7 0.05 -13.20 -0.05 -13.75 -0.30 -0.55 -0.25 -1.90 -0.75 -3 -1.10 -2.95 -0.90 -4.75 -1.70 -4.75 -2.10 0 -0.25 -0.30 -0.40 -0.65 -0.40 -0.85 0 -5.70 -4.60 -7.65 -7.25 -2.10 -2.85 -3.40 -5.85 -4.05 -9.50 -0.60 -3.25 -0.75 -63.35 -0.15 -63.95 0.25 -0.25 0.50 -2.25 0.50 -4.35 0 -2.15 0.25 -4.05 0.50 -4.20 0.30 -0.15 0.50 -1.10 0.50 -2.10 0 -1 0.20 -2.50 0.50 -3.35 0.25 -0.85 1.40 -4.60 2.55 -8.30 2.20 -7.05 5.80 -15.15 9.05 -20.25 2.10 -3.30 2.55 -3.95 5 -7.20 0.90 -1.20 2 -2.65 2.40 -3.25 1.10 -1.55 12.35 -12.80 12.85 -12.80 0.20 0 1.15 -0.70 2.10 -1.50 0.90 -0.85 1.85 -1.50 2 -1.50 0.15 0 0.85 -0.50 1.55 -1.15 0.70 -0.65 2.25 -1.70 3.50 -2.40 1.25 -0.65 2.35 -1.30 2.50 -1.45 0.15 -0.15 1.30 -0.85 2.65 -1.50 1.30 -0.70 2.35 -1.40 2.35 -1.60 0 -0.25 0.35 -0.40 0.75 -0.40 0.40 0 2.25 -0.70 4.10 -1.55 5.05 -2.30 10 -4.15 12.40 -4.60 0.55 -0.10 1.35 -0.30 1.75 -0.45 1.60 -0.60 6.50 -1.40 12.75 -2.15 5.80 -0.70 31.35 -0.75 233 -0.60 192.70 0.15 227 0.30 229.85 0.90 1.80 0.40 3.50 0.85 3.70 1.10 0.20 0.20 1.05 0.35 1.85 0.35 1.45 0 4.60 0.70 6.60 1.50 0.55 0.20 1.80 0.65 2.75 1 1.65 0.60 2.35 0.85 6.90 2.80 5.30 2.30 12.95 6.65 15.40 8.80 0.55 0.50 1.30 0.90 1.60 0.90 0.35 0 0.60 0.20 0.60 0.40 0 0.20 0.65 0.75 1.45 1.25 2.10 1.25 13.35 12.55 16.05 16.10 2.85 3.75 5.05 7.10 6.55 9.85 0.65 1.20 1.35 2.25 1.50 2.40 0.15 0.15 0.55 1.05 0.95 2 0.40 0.95 0.80 1.85 0.95 2 0.30 0.25 1.25 2.25 2 4.15 0.20 0.60 0.65 1.70 1 2.50 1.15 2.80 1.45 3.65 2.10 5.85 0.35 1.25 0.80 2.45 1.05 2.75 0.20 0.25 0.40 1.20 0.40 2.05 0 0.90 0.20 1.80 0.50 1.95 0.25 0.15 0.50 1.30 0.50 2.50 0 1.20 0.20 2.25 0.45 2.35 0.30 0.10 0.65 1.75 0.80 3.65 0.60 6.35 1.25 64.80 0.80 69.30 -0.45 4.10 -2.70 10.95 -3.55 10.95 -0.25 0 -0.55 0.40 -0.70 0.90 -0.70 2.05 -6.45 7.15 -10.05 8.85 -3.65 1.70 -5.90 1.95 -20 1.95 -8.15 0.05 -14.30 0.25 -14.75 0.55 -0.40 0.25 -1.10 0.50 -1.50 0.60 -1.45 0.20 -4.50 1.30 -4.50 1.65 0 0.20 -0.90 0.65 -2 1 -1.10 0.35 -2 0.85 -2 1.10 0 0.20 -0.30 0.40 -0.65 0.40 -0.80 0 -7.65 5.25 -9.75 7.45 -1.65 1.80 -1.95 2.20 -5.50 6.80 -2.10 2.70 -6.10 10.55 -6.10 11.90 0 0.45 -0.20 0.85 -0.50 0.85 -0.25 0 -0.50 0.55 -0.50 1.20 0 0.70 -0.20 1.35 -0.45 1.50 -0.25 0.15 -0.55 0.90 -0.70 1.65 -0.15 0.80 -0.55 2.40 -0.85 3.65 -0.25 1.25 -0.75 3.50 -1.10 5 -0.70 3.40 -1 18.40 -0.35 18.80 0.25 0.15 0.45 1.35 0.45 2.70 0 1.35 0.20 2.55 0.45 2.70 0.20 0.15 0.55 1.20 0.75 2.30 0.35 2.20 1.45 5.80 2.60 8.50 1.30 2.90 5.15 10.50 5.70 11.15 0.30 0.30 1.35 1.75 2.40 3.15 3 4.05 4.15 5.30 8.10 8.65 3.30 2.75 10.45 6.85 14.50 8.30 0.70 0.25 7.80 0.60 15.75 0.80 14.25 0.30 18 0.65 18.55 1.50 0.15 0.25 0.55 0.45 0.95 0.45 1.10 0 5.85 3.10 8.05 5.25 4 3.95 6.30 8.25 7.50 14 0.80 3.65 0.90 64.60 0.15 64.85 -0.25 0.10 -0.50 1.70 -0.55 3.55 -0.05 1.85 -0.25 3.50 -0.50 3.65 -0.20 0.15 -0.40 1.25 -0.40 2.45 0 1.20 -0.20 2.35 -0.50 2.50 -0.25 0.15 -0.50 1.05 -0.50 2 0 0.95 -0.20 1.85 -0.50 2 -0.25 0.15 -0.50 0.85 -0.50 1.55 0 0.65 -0.20 1.60 -0.45 2.10 -0.25 0.45 -0.75 1.85 -1.10 3.10 -0.35 1.25 -0.80 2.45 -1.05 2.75 -0.20 0.25 -0.40 0.85 -0.40 1.35 0 0.50 -0.20 0.90 -0.50 0.90 -0.25 0 -0.50 0.35 -0.50 0.80 0 2.20 -8.85 17.45 -12.30 21.15 -0.65 0.70 -1.20 1.50 -1.20 1.75 0 0.55
1-12.25 12.80 -12.85 12.80 -0.20 0 -1 0.50 -1.65 1.15 -1.95 1.70 -5.85 4.35 -6.45 4.35 -0.30 0 -0.55 0.15 -0.55 0.40 0 0.20 -1.05 0.90 -2.35 1.60 -1.35 0.65 -2.50 1.35 -2.65 1.55 -0.40 0.45 -8.85 4.45 -9.45 4.45 -0.30 0 -0.95 0.20 -1.45 0.45 -2.75 1.40 -6.50 2.60 -13.55 4.35 -9.30 2.25 -1.40 2.20 -241.05 2.20 -144.25 0 -226 -0.20 -226.50 -0.50z m452.50 -59.20 c2.05 -0.40 4.45 -0.95 5.35 -1.20 1.55 -0.50 6.65 -3.05 7.15 -3.60 0.15 -0.15 1.25 -1.05 2.50 -2 2.45 -1.90 4.45 -4 4.50 -4.70 0 -0.25 0.40 -0.80 0.95 -1.25 1.35 -1.20 5.05 -9.15 5.05 -10.85 0 -0.85 0.25 -1.75 0.50 -2 0.35 -0.35 0.45 -5.40 0.40 -14.20 l-0.15 -13.65 -3.25 -1 c-1.80 -0.50 -4.35 -1.40 -5.75 -1.95 -1.35 -0.55 -2.95 -1.20 -3.50 -1.40 -3.60 -1.40 -13.80 -6.35 -14.25 -6.95 -0.15 -0.15 -1.20 -0.80 -2.40 -1.45 -2.65 -1.45 -10.05 -6.25 -11.30 -7.35 -0.30 -0.25 -2.25 -1.95 -4.30 -3.70 -4.40 -3.75 -9.85 -9.25 -13 -13.05 -1.25 -1.50 -2.35 -2.85 -2.55 -3 -1.40 -1.25 -9.05 -13.85 -11.95 -19.80 -3.85 -7.85 -4.05 -8.25 -5.05 -11.45 -0.35 -1.10 -0.80 -2.20 -0.95 -2.50 -0.20 -0.25 -0.60 -1.50 -0.95 -2.75 -0.35 -1.25 -0.85 -2.80 -1.10 -3.50 -0.40 -1.35 -2.15 -8.65 -2.70 -11.50 -0.20 -0.95 -0.45 -2.85 -0.60 -4.25 -0.10 -1.35 -0.45 -3 -0.80 -3.65 -0.80 -1.70 -0.80 -22.95 0.10 -29.60 0.80 -6.20 3.45 -17.85 5.05 -22.25 0.20 -0.55 0.85 -2.55 1.45 -4.50 1.25 -3.85 2.50 -6.70 5.95 -13.50 1.25 -2.45 2.50 -5 2.80 -5.60 0.30 -0.65 0.70 -1.15 0.95 -1.15 0.20 0 0.35 -0.20 0.35 -0.50 0 -0.40 3.40 -6 4.40 -7.25 0.20 -0.25 0.95 -1.30 1.60 -2.25 0.70 -0.95 1.35 -1.85 1.50 -2 0.15 -0.15 1.05 -1.25 2 -2.50 0.95 -1.25 4.35 -4.85 7.55 -8 6.75 -6.65 7.30 -7.10 10.70 -9.60 1.35 -1.05 2.75 -2.05 3 -2.25 4.30 -3.35 12.80 -8.20 19.50 -11.15 1.40 -0.60 3.20 -1.40 4 -1.75 0.85 -0.40 3.65 -1.40 6.25 -2.25 2.60 -0.90 5.35 -1.85 6.15 -2.10 l1.35 -0.50 0 -13.10 c0 -10.10 -0.15 -13.75 -0.75 -16.05 -1 -3.80 -4.45 -11.15 -5.50 -11.55 -0.40 -0.15 -0.75 -0.60 -0.75 -0.95 0 -0.85 -4.90 -5.65 -6.10 -6.05 -0.50 -0.15 -0.90 -0.45 -0.90 -0.70 0 -0.50 -6.15 -3.50 -7.20 -3.50 -0.45 0 -0.80 -0.20 -0.80 -0.45 0 -0.25 -0.95 -0.60 -2.10 -0.80 -3.75 -0.70 -449.30 -0.85 -451.90 -0.20 -6.25 1.60 -9.95 3.20 -13.25 5.75 -2.95 2.20 -5.15 4.45 -6.75 6.70 -0.65 0.95 -1.35 1.85 -1.50 2 -0.65 0.60 -3.05 5.95 -4 9.05 -0.85 2.80 -0.75 30 0.10 30.50 0.35 0.20 2.80 1.05 5.40 1.95 5.45 1.85 7.30 2.65 14.25 6.05 4.90 2.40 13.20 7.15 13.75 7.85 0.15 0.20 1.60 1.25 3.20 2.35 1.65 1.10 3.45 2.45 4.05 3 0.55 0.55 1.80 1.60 2.75 2.30 1.85 1.40 10.40 9.85 11.25 11.10 0.30 0.40 1.45 1.95 2.65 3.40 3.75 4.75 4.35 5.55 4.80 6.50 0.25 0.55 0.65 0.95 0.90 0.95 0.20 0 0.40 0.25 0.40 0.50 0 0.30 0.90 1.85 2 3.45 1.10 1.60 2 3.15 2 3.45 0 0.30 0.20 0.60 0.40 0.70 0.60 0.20 7.35 14.10 8.60 17.65 0.90 2.60 3.10 9.35 4.50 14 0.65 2.20 2.35 10.90 3 15.50 0.90 6.25 0.15 33.05 -1 34.50 -0.20 0.30 -0.40 1.30 -0.40 2.30 -0.05 0.95 -0.40 3 -0.80 4.50 -0.40 1.50 -1.20 4.50 -1.80 6.65 -0.60 2.15 -1.60 5.30 -2.30 6.95 -0.65 1.65 -1.20 3.45 -1.20 3.95 0 0.50 -0.20 0.90 -0.50 0.90 -0.25 0 -0.50 0.35 -0.50 0.75 0 1.05 -6.65 14.55 -7.55 15.25 -0.15 0.15 -0.70 1 -1.15 1.95 -1.15 2.20 -3.70 5.80 -7.40 10.45 -1.20 1.50 -2.60 3.30 -3.15 4 -1.25 1.60 -7 7.25 -9.75 9.60 -1.15 0.95 -2.35 2 -2.65 2.25 -0.35 0.30 -1.75 1.35 -3.10 2.35 -1.40 1.05 -2.75 2.05 -3 2.25 -3.85 2.95 -15.30 9.45 -20.85 11.85 -1.05 0.45 -2.65 1.15 -3.50 1.55 -0.90 0.35 -4.25 1.55 -7.40 2.55 -3.15 1.05 -5.95 2.05 -6.15 2.25 -0.40 0.30 -0.55 26.40 -0.20 28.55 0.10 0.50 0.30 1.05 0.50 1.20 0.20 0.20 0.35 0.80 0.35 1.30 0 1.10 3 7.55 3.60 7.80 0.20 0.10 0.40 0.50 0.40 0.85 0 0.85 7.75 8.60 9 9 0.55 0.15 1 0.55 1 0.80 0 0.25 0.40 0.45 0.90 0.45 0.45 0 1.55 0.40 2.35 0.90 1.50 0.90 3.70 1.65 7.50 2.55 1.25 0.25 87.35 0.45 224 0.50 188.20 0 222.55 -0.10 225.75 -0.65z","data-sentry-element":"path","data-sentry-source-file":"TransferTicketIcon.tsx"}),(0,s.jsx)("path",{d:"M811.75 656.45 c-0.80 -0.25 -2.30 -0.70 -3.25 -1 -2.70 -0.85 -4.50 -1.65 -4.50 -2.05 0 -0.25 -0.30 -0.40 -0.60 -0.40 -0.65 0 -3.90 -2.50 -5.30 -4 -2.75 -3.05 -4.10 -4.80 -4.10 -5.35 0 -0.35 -0.20 -0.65 -0.50 -0.65 -0.25 0 -0.50 -0.40 -0.50 -0.90 0 -0.50 -0.20 -1.10 -0.40 -1.35 -1.15 -1.35 -1.85 -5.40 -1.85 -10.75 0 -4.80 0.20 -6.35 1.25 -9.35 0.65 -2 1.40 -3.65 1.60 -3.65 0.25 0 0.40 -0.30 0.40 -0.60 0 -0.35 0.55 -1.30 1.25 -2.10 0.70 -0.80 1.25 -1.65 1.25 -1.85 0 -0.45 3.40 -3.85 41.70 -41.65 16.65 -16.45 30.30 -30.10 30.30 -30.35 0 -0.25 -36.10 -0.45 -83.75 -0.45 -82.50 0 -87.50 -0.10 -88.75 -1.50 -0.15 -0.20 -1.05 -0.60 -2 -1 -5.95 -2.35 -12.50 -10.05 -14.45 -17 -1.25 -4.65 -1.85 -11.75 -1 -12.30 0.25 -0.15 0.45 -0.90 0.45 -1.70 0 -0.80 0.25 -1.60 0.50 -1.75 0.30 -0.15 0.50 -0.75 0.50 -1.30 0 -1 1.85 -5 2.50 -5.45 0.20 -0.15 0.70 -0.95 1.15 -1.75 0.85 -1.65 4.65 -5.05 7.35 -6.55 0.95 -0.50 1.85 -1.05 2 -1.20 0.15 -0.20 1.50 -0.75 3 -1.25 2.65 -0.95 5.10 -1 88.35 -1.25 l85.60 -0.25 -35.20 -35.45 c-19.40 -19.45 -35.25 -35.55 -35.25 -35.80 0 -0.20 -0.55 -1 -1.25 -1.80 -0.70 -0.80 -1.25 -1.75 -1.25 -2.05 0 -0.35 -0.20 -0.65 -0.50 -0.65 -0.25 0 -0.50 -0.45 -0.50 -1 0 -0.55 -0.20 -1 -0.50 -1 -0.25 0 -0.50 -0.35 -0.50 -0.75 0 -0.40 -0.20 -1.15 -0.45 -1.65 -2.20 -4.30 -2.20 -15.90 0 -20.20 0.25 -0.50 0.45 -1.20 0.45 -1.60 0 -0.40 0.15 -0.80 0.40 -0.90 0.20 -0.05 0.90 -1.15 1.55
1-2.40 1.30 -2.30 3 -4.20 6.05 -6.45 0.95 -0.70 1.85 -1.40 2 -1.55 0.65 -0.65 4.70 -2.50 5.50 -2.50 0.55 0 1.05 -0.20 1.20 -0.45 0.60 -0.95 7.85 -1.45 12.20 -0.85 2.60 0.35 3.10 0.50 5.45 1.70 0.65 0.35 1.35 0.60 1.65 0.60 2.15 0 11.20 8.70 66.60 64.25 32.95 33 59.90 60.15 59.90 60.35 0 0.15 0.30 0.65 0.65 1 1.20 1.35 2.55 4 4.40 8.90 0.85 2.15 0.95 12.35 0.15 14.05 -0.30 0.65 -1.20 2.65 -2 4.45 -0.80 1.75 -2.45 4.45 -3.65 6 -3 3.70 -100.75 101.10 -120.60 120.10 -2.85 2.75 -8.55 5.60 -12.90 6.40 -3.30 0.60 -9.75 0.60 -11.80 -0.05z","data-sentry-element":"path","data-sentry-source-file":"TransferTicketIcon.tsx"})]})})}var tv=n(21684);let tj=function({usingRsvp:e,member:t}){let{event:n,form:a,handleSubmit:i,registration:l,isActiveMember:o,isPenultimateStep:d,transferAllowed:c}=e,{watch:u}=a,m=(0,I.Eq)(n?.staff,t?.id),x=!!m,p=m?I.OI[m].noun:null,f=l?.rsvpReply==="YES",h=!!l?.transferredToRegistrationId,y=x&&!f&&!h,g=n?.rsvpRules?.unregistrationsAllowed!==!1||l?.rsvpReply!=="YES",v="PAID"===l?.payStatus&&"YES"!==u("rsvpReply"),j=(0,r.useRef)(null);async function b(t){if(a.setValue("rsvpReply",t),!await a.trigger("rsvpReply"))return!1;let n=a.getValues();n={...n,rsvpReply:t};let s=await e.submitScreen(e7.mb.RsvpReply,n);return"boolean"==typeof s&&s}let N=(0,ty.YQ)(b,1e3,{leading:!0});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Event Registration","data-sentry-element":"ModalHeading","data-sentry-source-file":"RsvpReplyScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:i(e7.mb.RsvpReply),className:E.Ay.formClass,"data-testid":"rsvp-reply-screen",ref:j,children:[y?(0,s.jsx)(D.fh,{children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("p",{className:"mb-2",children:["You are a ",p," for this event. Are you sure you want to register as an attendee?"]}),(0,s.jsx)(D.rA,{onClick:()=>b("YES"),disabled:e.loading,loading:"YES"===u("rsvpReply")&&e.loading,"data-testid":"going-button",type:"button",children:"Register as attendee"})]})}):(0,s.jsxs)(s.Fragment,{children:[x&&m&&(0,s.jsx)(D.fh,{children:(0,s.jsx)(ea.A,{role:m})}),l&&(0,s.jsxs)(D.fh,{children:[(0,s.jsx)("p",{className:"mb-1",children:"Your current registration status:"}),(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-x-2 items-center",children:[(0,s.jsx)(tm.A,{className:"size-4 text-[var(--group-accent-text)]"}),(0,s.jsx)("span",{className:"font-bold text-sm text-[var(--group-heading-text-color)]",children:(0,e7.HS)(l)}),(0,s.jsx)(th.A,{className:"size-4 text-[var(--group-accent-text)]"}),(0,s.jsx)("span",{className:"font-bold text-sm text-[var(--group-heading-text-color)]",children:(0,I.e4)(l.payStatus)})]})]}),(0,s.jsxs)(D.fh,{children:[h&&(0,s.jsx)("p",{children:"You have transferred your ticket to another attendee. Re-registration is not supported at this time. Please contact the hosts if you have any questions."}),!h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("p",{className:"mb-2 text-center",children:"Please select your attendance preference for the event."}),(0,s.jsxs)(D.rA,{onClick:()=>b("YES"),disabled:l?.rsvpReply==="YES"&&d||e.loading,loading:"YES"===u("rsvpReply")&&e.loading,"data-testid":"going-button",type:"button",children:[l?.rsvpReply==="YES"&&d&&(0,s.jsx)(tu.A,{className:"w-4 h-4","data-testid":"current-rsvp-reply-icon"}),l?.rsvpReply==="YES"&&!d&&(0,s.jsx)(tx.A,{className:"w-4 h-4","data-testid":"current-rsvp-reply-icon"}),l?.rsvpReply!=="YES"||d?"Going":"Update registration"]}),c&&(0,s.jsxs)(D.rA,{onClick:()=>e.handleTransferStart(),"data-testid":"transfer-button",type:"button",loading:e.loading,children:[(0,s.jsx)(tg,{className:"size-6"}),"Transfer my ticket"]}),g&&(0,s.jsxs)(eI.tA,{onClick:()=>b("NO"),"data-testid":"not-going-button",type:"button",loading:"NO"===u("rsvpReply")&&e.loading,children:[!x&&l?.rsvpReply==="NO"&&(0,s.jsx)(tu.A,{className:"w-4 h-4","data-testid":"current-rsvp-reply-icon"}),!x&&l?.rsvpReply!=="NO"&&(0,s.jsx)(tp.A,{className:"size-4","data-testid":"current-rsvp-reply-icon"}),x?"Unregister":"Not going"]}),g&&!x&&(0,s.jsx)("button",{className:"inline-flex justify-center items-center gap-2 h-[2.75rem] font-semibold text-secondary-800 hover:text-black transition",onClick:()=>N("MAYBE"),"data-testid":"maybe-button",disabled:e.loading,type:"button",children:"MAYBE"===u("rsvpReply")&&e.loading?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tv.A,{className:"h-5 w-5 mr-2"})," Loadingâ¦"]}):(0,s.jsxs)(s.Fragment,{children:[l?.rsvpReply==="MAYBE"&&(0,s.jsx)(tu.A,{className:"w-4 h-4","data-testid":"current-rsvp-reply-icon"}),"Remind me later"]})})]}),!g&&(0,s.jsx)("div",{className:"mt-4 p-3 bg-yellow-50 border border-yellow-200 rounded-md text-sm text-gray-700",children:(0,s.jsxs)("p",{children:["This event's policy does not allow unregistering from the event."," ",l?.payStatus==="PAID"&&o?"If you need to transfer your ticket, please use the transfer option above.":"Please contact the event host if you need assistance."]})}),function(){if(!n)return!1;
1let e=u("lineItems")||[],t=Math.max(1,(0,I.E6)(e,n.variants));return(0,I.W2)({event:n,registration:l,rsvpReply:u("rsvpReply"),totalQuantity:t})}()&&(0,s.jsx)("div",{className:"text-red-danger",children:"You will be put on the waitlist."})]})]}),v&&!h&&(0,s.jsx)("p",{children:"Note: You've already paid for this event, and you are changing your RSVP reply to not-going. Please see the event description for the refund policy for this event. Contact the host if you have any questions."})]}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"RsvpReplyScreen.tsx"})]})]})},tb=function({loading:e,onNextStep:t,onPreviousStep:n,submitLabel:r,disabled:a}){return(0,s.jsx)(D.fC,{onClick:t,cancel:n?{onClick:n,label:"Back"}:void 0,label:r||"Next",disabled:a,saving:e,submitButtonType:"submit",submitDataTestId:"next-button","data-sentry-element":"SubmitButtonRow","data-sentry-component":"NewWizardButtons","data-sentry-source-file":"NewWizardButtons.tsx"})};var tN=n(3558);let tw=function({usingRsvp:e}){let{event:t,form:n,handleSubmit:r,previousStep:a}=e;if(!t)return console.warn("No event"),null;let i=t.questions?.filter(e=>e.active&&e.memberVisible)||[];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Questions","data-sentry-element":"ModalHeading","data-sentry-source-file":"QuestionsScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:r(e7.mb.Questions),className:E.Ay.formClass,"data-testid":"questions-screen",children:[(0,s.jsx)("div",{className:"flex flex-col gap-y-6",children:t.questions&&t.questions.length>0&&(0,s.jsx)(D.fh,{children:(0,s.jsx)("div",{className:"flex flex-col gap-y-6",children:(0,s.jsx)(tN.A,{questions:i,hookForm:n,version:2})})})}),Object.keys(n.formState.errors).length>0&&(0,s.jsx)(eH.A,{type:"warning",children:"Please address the issues above."}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"QuestionsScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>a(),loading:e.loading,submitLabel:e.submitLabel,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"QuestionsScreen.tsx"})]})]})},tA=function({usingRsvp:e}){let t,{event:n,form:r,handleSubmit:a,isPenultimateStep:i,registration:l,previousStep:o}=e,{watch:d,setValue:c}=r;if(!n)return console.warn("No event"),null;let u=(0,I.lD)(n);if(!u)return console.warn("HeadcountScreen rendered for an event that doesn't qualify"),null;i&&(t="Submit Registration",l?.rsvpReply==="YES"&&(t="Update Registration"));let m=Math.max(1,u.perRecipientMinQuantity??0),x=u.perRecipientMaxQuantity??null,p=d("lineItems")||[],f=p.find(e=>e.variantId===u.id),h=f?.quantity??m;function y(e){if(!u?.id)return;let t=p.filter(e=>e.variantId!==u.id);c("lineItems",e>0?[...t,{variantId:u.id,quantity:e}]:t)}let g=h>m,v=null===x||h<x,j=h>=m;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"How many people are attending?","data-sentry-element":"ModalHeading","data-sentry-source-file":"HeadcountScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:a(e7.mb.Headcount),className:E.Ay.formClass,"data-testid":"headcount-screen",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-6 py-4",children:[(0,s.jsx)("button",{type:"button",onClick:()=>y(h-1),disabled:!g,className:(0,em.A)("w-12 h-12 rounded-full border font-bold text-2xl flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":"Decrease number of attendees",children:"â"}),(0,s.jsx)("span",{className:"w-12 text-center text-3xl font-semibold","aria-live":"polite",children:h}),(0,s.jsx)("button",{type:"button",onClick:()=>y(h+1),disabled:!v,className:(0,em.A)("w-12 h-12 rounded-full border font-bold text-2xl flex items-center justify-center","border-[var(--group-border-color)] text-[var(--group-heading-text-color)]","hover:bg-[var(--group-accent-ultralight)] disabled:opacity-40 disabled:cursor-not-allowed"),"aria-label":"Increase number of attendees",children:"+"})]}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"HeadcountScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>o(),loading:e.loading,submitLabel:t,disabled:!j,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"HeadcountScreen.tsx"})]})]})};function tE(e){let{orderValues:t}=e;return(0,s.jsxs)(s.Fragment,{children:[t.items.map((e,t)=>(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("div",{children:e.description}),(0,s.jsx)("div",{className:"text-right",children:(0,V.o5)(e.subtotal)})]},t)),(0,s.jsx)("div",{className:"col-span-2 align-bottom text-right border-t",children:(0,V.o5)(t.total)})]})}var tC=n(77018),tS=n(47027);let tR=function({usingRsvp:e}){let t,{event:n,form:r,getOrderValues:a,handleSubmit:i,isPenultimateStep:l,registration:o,previousStep:d}=e,{watch:c}=r;if(!n)return console.warn("No event"),null;l&&(t="Submit Registration",o?.rsvpReply==="YES"&&(t="Update Registration"));let u=!!o?.payStatus&&(0,e7._v)(o.payStatus),m=(0,I.AM)(n),x=(0,I.CQ)(n),p=[...m,...x],f=n.rsvpRules?.maxEventVariantCount===1,h=c("lineItems")||[],y=h.length>0,g=h.flatMap(e=>{let t=(n.variants??[]).find(t=>
1t.id===e.variantId);return t?[{variant:t,quantity:e.quantity}]:[]}),v=p.every(e=>{let t=e.perRecipientMinQuantity??0;if(0===t)return!0;let n=h.find(t=>t.variantId===e.id);return(n?.quantity??0)>=t}),j=u||y&&v,b=a(),N=y&&b.total>0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Choose your option","data-sentry-element":"ModalHeading","data-sentry-source-file":"PricingScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:i(e7.mb.Pricing),className:E.Ay.formClass,"data-testid":"pricing-screen",children:[u&&g.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(D.Dk,{children:"Your price option"}),g.map(({variant:e,quantity:t})=>(0,s.jsxs)("div",{className:"flex items-center justify-between gap-x-2",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-bold",children:e.name}),t>1&&(0,s.jsxs)("span",{className:"text-sm",children:[" \xd7 ",t]})]}),(0,s.jsx)("span",{className:"text-sm font-medium",children:(0,V.o5)(e.amount)})]},e.id)),(0,s.jsx)(tS.A,{as:"p",children:"Already paid â contact an organizer to change your price option."})]}),!u&&m.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",role:f?"radiogroup":void 0,"aria-label":f?"Select a pricing option for the event":void 0,children:[(0,s.jsx)(D.Dk,{children:"Select a pricing option for the event"}),(0,s.jsx)(tC.A,{event:n,variants:m,lineItems:h,onChange:e=>r.setValue("lineItems",e)})]}),!u&&x.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(D.Dk,{children:"Add-ons"}),(0,s.jsx)(tC.A,{event:n,variants:x,lineItems:h,onChange:e=>r.setValue("lineItems",e)})]}),N&&(0,s.jsxs)("div",{children:[(0,s.jsx)(D.Dk,{children:"Total"}),(0,s.jsx)("div",{className:"grid grid-cols-2 max-w-[20rem]",children:(0,s.jsx)(tE,{orderValues:b})})]}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"PricingScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>d(),loading:e.loading,submitLabel:t,disabled:!j,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"PricingScreen.tsx"})]})]})};var tI=n(54914),tT=n(49385),tk=n(86346),tP=n(9095);let tL=(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"When registering, a temporary authorization may be placed on your card for the full event amount to confirm the card is valid. Your card will only be charged if you are moved off the waitlist or when charges are processed before the event."}),tM=(0,C.PA)(function(e){let{event:t,shouldBeWaitlisted:n}=e,r=(0,p.Jc)(),{chargeTimeOffset:a}=r.eventsConfig;if(n)return tL;let i=(0,I.g2)(t,r);if(!i)return null;let l=new Date().valueOf();if(t.realtimeCharge)return tL;if(i<l)return null;if(0===a)return(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[tL,(0,s.jsxs)("p",{className:"text-sm",children:["Your card will be charged at the ",(0,s.jsx)("i",{children:"start of the event"}),"."]})]});let o=60*Math.abs(a),d=(0,es.YI)(o);return(0,s.jsxs)("div",{className:"flex flex-col gap-1","data-sentry-component":"ChargeInformation","data-sentry-source-file":"ChargeInformation.tsx",children:[tL,(0,s.jsxs)("p",{className:"text-sm",children:["Your card will be charged approximately ",d," ",a>0?"after":"before"," the event starts."]})]})}),tD=({event:e,paymentProvider:t,usingRsvp:n})=>{let{form:r,usingSquare:a,shouldBeWaitlisted:i,cardError:l,handleSquareInitError:o}=n,{watch:d}=r;return(0,s.jsxs)("div",{"data-sentry-component":"PaymentForm","data-sentry-source-file":"PaymentForm.tsx",children:[(0,s.jsx)(tP.A,{size:"sm",className:"mb-4","data-sentry-element":"SectionHeading","data-sentry-source-file":"PaymentForm.tsx",children:"Enter payment details"}),(0,s.jsx)(tM,{event:e,shouldBeWaitlisted:i(),"data-sentry-element":"ChargeInformation","data-sentry-source-file":"PaymentForm.tsx"}),"stripe"===t&&(0,s.jsx)(tI.A,{usingStripe:n.usingRsvpStripe.usingStripe}),"square"===t&&(0,s.jsx)(tT.A,{submitTokenRequest:a.submitTokenRequest,error:l,onInitError:o}),(0,s.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(tk.A,{label:"Keep this card on file",name:"cardIsPermanent",hookForm:r,"data-sentry-element":"CheckboxWithLabel3","data-sentry-source-file":"PaymentForm.tsx"})}),d("cardIsPermanent")&&(0,s.jsx)(tk.A,{label:"Make this card the default.",name:"cardIsDefault",hookForm:r})]})]})};var tF=n(92697);let tO=(0,C.PA)(function(e){let{usingRsvp:t}=e,{event:n,initialPaymentMethod:a,showingPaymentForm:i,onTogglePaymentForm:l,paymentProvider:o,paymentMethods:d,shouldBeWaitlisted:c}=t,u=(0,r.useRef)(t);u.current=t;let m=t.form.watch("paymentMethodId"),x=(0,r.useRef)(!1),p=(0,r.useRef)(o);p.current=o,(0,r.useEffect)(()=>{x.current&&"stripe"===p.current?setTimeout(()=>{u.current.handlePaymentMethodChange(m)},500):x.current=!0},[m]);
1let f=t.form.watch("cardIsPermanent"),h=t.form.watch("cardIsDefault"),y=(0,r.useRef)(!1);return((0,r.useEffect)(()=>{y.current&&"stripe"===p.current?setTimeout(()=>{u.current.saveCardOptions({cardUseType:f?"PERMANENT":"TEMPORARY",cardMakeDefault:(0,V.yG)(h)})},500):y.current=!0},[f,h]),n)?(0,s.jsxs)("section",{"data-sentry-component":"PaymentSection","data-sentry-source-file":"PaymentSection.tsx",children:[i&&(0,s.jsx)(tD,{event:n,paymentProvider:o,usingRsvp:t}),!i&&d&&d.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(tP.A,{size:"sm",children:"Choose your payment option"}),(0,s.jsx)(tM,{event:n,shouldBeWaitlisted:c()}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(tF.A,{paymentMethods:d,form:t.form}),(0,s.jsx)("div",{className:"mt-4",children:"To use a different or updated card, choose âAdd a new payment methodâ below and enter it here."})]}),(0,s.jsx)("div",{children:(0,s.jsx)(eI.tA,{onClick:function(){l(!0),t.form.setValue("paymentMethodId",null)},children:"Add a new payment method"})})]}),i&&d&&d.length>0&&(0,s.jsx)("div",{className:"flex justify-center mt-4",children:(0,s.jsx)(eI.tA,{onClick:function(){l(!1),a&&t.form.setValue("paymentMethodId",a.id)},children:"Use an existing payment method"})})]}):null});function tY(e){let{usingRsvp:t}=e,{event:n,getOrderValues:r,registration:a,shouldBeWaitlisted:i}=t,l=r();return n?(0,s.jsxs)("section",{className:"border-b border-secondary-200 pb-4","data-sentry-component":"OrderReviewSection","data-sentry-source-file":"OrderReviewSection.tsx",children:[(0,s.jsx)(tP.A,{size:"sm","data-sentry-element":"SectionHeading","data-sentry-source-file":"OrderReviewSection.tsx",children:"Order summary"}),(0,s.jsx)("div",{className:(0,em.A)("mt-4",E.Ay.formClass),children:!(0,I.fP)(n)&&(0,s.jsx)(s.Fragment,{children:n.paymentBypassed?(0,s.jsx)(D.fh,{children:(0,s.jsx)(D.Dk,{children:n.signupUrl?(0,s.jsxs)(s.Fragment,{children:["Further information about this event, and possible registration can be found at"," ",(0,s.jsx)("a",{className:"a",rel:"noreferrer noopener",children:n.signupUrl})]}):(0,s.jsx)(s.Fragment,{children:"Payment will be collected at the event."})})}):(0,s.jsx)(s.Fragment,{children:a?.payStatus==="PAID"?(0,s.jsxs)(D.fh,{children:[(0,s.jsx)(D.Dk,{children:"Payment Status:"}),(0,s.jsx)("p",{children:"Payment has already been processed."})]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(D.fh,{children:(0,s.jsxs)("div",{className:"mt-4 grid grid-cols-[auto_1fr]",children:[(0,s.jsx)(tE,{orderValues:l}),l.tax>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:["Tax (",l.taxRate,"%)"]}),(0,s.jsx)("div",{className:"align-bottom text-right",children:(0,V.o5)(l.tax)}),(0,s.jsx)("div",{children:(0,s.jsx)("b",{children:"Total due"})})]})]})})})})})}),i()&&(0,s.jsxs)(D.fh,{children:[(0,s.jsx)(D.Dk,{children:"Waitlist"}),(0,s.jsx)("p",{children:"You will be put on the waitlist."})]})]}):null}var tq=n(90115);let tU=function({usingRsvp:e}){let{event:t,handleSubmit:n,registration:r,previousStep:a}=e;if(!t)throw Error("No event");let i=e.shouldPromptForPayment(),l="Submit Registration";return r?.rsvpReply==="YES"&&(l="Update Registration"),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Payment","data-sentry-element":"ModalHeading","data-sentry-source-file":"PaymentScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:n(e7.mb.Payment),className:E.Ay.formClass,"data-testid":"payment-screen",children:[function(e,t=new Date){let n=k(e?.startAt);return!!n&&t>=n&&!P(e,t)}(t)&&(0,s.jsxs)(tq.A,{type:"warning",title:"This event has already started",className:"mb-2",children:["It began at ",(0,es.fU)(t.startAt),". You can still register, but part of the event has already taken place."]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(tP.A,{size:"sm",className:"mb-3","data-sentry-element":"SectionHeading","data-sentry-source-file":"PaymentScreen.tsx",children:"Event"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-secondary-200 pb-4",children:[(0,s.jsx)("p",{className:"font-bold",children:t.title}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(ed.A,{className:"size-5","data-sentry-element":"CalendarIcon","data-sentry-source-file":"PaymentScreen.tsx"}),(0,s.jsx)("span",{children:(0,es.Yq)(t.startAt,"EEE, MMM d, yyyy")})]})]})]}),(0,s.jsx)(tY,{usingRsvp:e,"data-sentry-element":"OrderReviewSection","data-sentry-source-file":"PaymentScreen.tsx"}),i&&(0,s.jsx)(tO,{usingRsvp:e}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"PaymentScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>a(),loading:e.loading,submitLabel:l,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"PaymentScreen.tsx"})]})]})};var tz=n(5710);function tV(e){let{venue:t}=e;if(!t)return[];
1let n=[[t.city,t.state?.toUpperCase()].filter(Boolean).join(", "),t.postCode].filter(Boolean).join(" ");return[t.name===t.address1?"":t.name,t.address1,n].filter(e=>!!e)}function tB({event:e,registration:t}){let n=e.image?.url||"/static/images/event-placeholder.jpeg",{isOpen:r,openModal:a,closeModal:i}=ee(),l=(0,I.yM)(t);return(0,s.jsxs)("div",{className:"flex flex-col gap-y-4","data-sentry-component":"SuccessEventDetails","data-sentry-source-file":"SuccessEventDetails.tsx",children:[(0,s.jsx)(z(),{src:n,alt:"Event photo",className:"rounded-xl w-full max-h-[13rem] object-cover",width:400,height:300,"data-sentry-element":"Image","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsx)("div",{className:"text-center text-lg font-bold",children:e.title}),(0,s.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-2",children:[(0,s.jsx)(ed.A,{className:"size-5 mt-[0.125rem]","data-sentry-element":"CalendarIcon","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsxs)("span",{className:"flex gap-8",children:[(0,es.Yq)(e.startAt,"EEE, MMM d, yyyy")," ",(0,s.jsx)("button",{className:"a text-sm",onClick:a,children:"Add to calendar"})]}),(0,s.jsx)(eu.A,{className:"size-5 mt-[0.125rem]","data-sentry-element":"ClockIcon","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsx)(tz.A,{dateTime:e.startAt,"data-sentry-element":"TimeWithOffset","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsx)(v.A,{className:"size-5 mt-[0.125rem]","data-sentry-element":"MapPinIcon","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsxs)("span",{className:"",children:[tV(e).map((e,t)=>(0,s.jsx)("div",{children:e},t)),e.howToFindUs&&(0,s.jsx)("div",{className:"text-sm",children:e.howToFindUs}),e.onlineLink&&(0,s.jsx)("div",{children:(0,s.jsx)("a",{href:e.onlineLink,className:"a",target:"_blank","aria-label":"to external website",rel:"noreferrer",children:e.onlineLink})}),!e.onlineLink&&!e.howToFindUs&&0===tV(e).length&&(0,s.jsx)("div",{children:"Location not provided"})]}),(0,s.jsx)(tm.A,{className:"size-5 text-[var(--group-accent-text)] mt-[0.125rem]","data-sentry-element":"TicketIcon","data-sentry-source-file":"SuccessEventDetails.tsx"}),(0,s.jsx)("span",{className:"font-bold text-sm text-[var(--group-heading-text-color)]",children:(0,e7.HS)(t)}),!e.paymentBypassed&&l>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(th.A,{className:"size-5 text-[var(--group-accent-text)] mt-[0.125rem]"}),(0,s.jsx)("span",{className:"font-bold text-sm text-[var(--group-heading-text-color)]",children:(0,I.fP)({feeAmount:e.feeAmount})?"Free":t?.payStatus==="NONE"?"Payment will be charged automatically":(0,I.e4)(t?.payStatus)})]})]}),(0,s.jsx)(X,{isOpen:r,onClose:i,event:e,"data-sentry-element":"AddToCalendarModal","data-sentry-source-file":"SuccessEventDetails.tsx"})]})}var t_=n(65887);function t$({event:e,registration:t}){let n=(0,r.useRef)(null),a=t?.rsvpReply;(0,r.useEffect)(()=>{if("YES"===a&&!n.current){let e=n.current?n.current:new t_.A;n.current=e,e.addConfetti()}},[a]);let i=!!e&&e.paymentBypassed&&!e.signupUrl&&!(0,I.fP)(e);return(0,s.jsxs)("div",{"data-testid":"registered-success","data-sentry-component":"SuccessRegistrationDetails","data-sentry-source-file":"SuccessRegistrationDetails.tsx",children:[(0,s.jsx)(tf.A,{title:"Registration is complete","data-sentry-element":"ModalHeading","data-sentry-source-file":"SuccessRegistrationDetails.tsx"}),(0,s.jsx)(tB,{event:e,registration:t,"data-sentry-element":"SuccessEventDetails","data-sentry-source-file":"SuccessRegistrationDetails.tsx"}),(0,s.jsx)(D.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"SuccessRegistrationDetails.tsx",children:(0,s.jsx)("div",{className:"text-center",children:function(){if(!e)return"Your registration is submitted";let n="Your registration is submitted";return e.paymentBypassed&&e.signupUrl?n="Your registration on this website is submitted":i&&(n="Your RSVP is recorded"),t?.rsvpReply==="MAYBE"&&(n="Successfully registered to receive a reminder of this event."),n}()})}),t?.waitlisted&&t?.rsvpReply==="YES"&&(0,s.jsx)(tq.A,{type:"warning",title:"You are on the waitlist",contentFullWidth:!0,children:"You are on the waitlist. You will be automatically notified by email when you are moved to the 'going' list."}),(0,I.lv)(e)&&(0,s.jsx)(tq.A,{type:"warning",title:"Important",contentFullWidth:!0,children:(0,s.jsxs)("div",{className:"flex flex-col items-start",children:[(0,s.jsx)("p",{className:"mb-4",children:"This event requires registration on an external site."}),(0,s.jsx)(D.rA,{href:e.signupUrl,rel:"noopener noreferer",target:"_blank","aria-label":"to external website",children:t?.rsvpReply==="YES"?(0,s.jsx)(s.Fragment,{children:" Click here to register on the external site "}):(0,s.jsxs)(s.Fragment,{children:["Click here to manage your registration on the external site"," "]})})]})}),(0,s.jsx)("p",{className:"text-center",children:i?"Payment will be collected at the event.":"Your registration has been processed."})]})}function tH(){return(0,s.jsxs)("div",{"data-sentry-component":"TicketTransferred","data-sentry-source-file":"TicketTransferred.tsx",children:[(0,s.jsx)(tf.A,{title:"Ticket successfully transferred","data-sentry-element":"ModalHeading","data-sentry-source-file":"TicketTransferred.tsx"}),(0,s.jsx)("p",{children:"The recipient will receive an email with the transfer details."})]})}function tW(){return(0,s.jsxs)("div",{"data-sentry-component":"Unregistered","data-sentry-source-file":"Unregistered.tsx",children:[(0,s.jsx)(tf.A,{title:"Successfully unregistered","data-sentry-element":"ModalHeading","data-sentry-source-file":"Unregistered.tsx"}),(0,s.jsx)("p",{children:"You have been successfully unregistered from this event."})]})}
1var tG=n(22767);function tQ(){return(0,s.jsxs)("div",{"data-sentry-component":"RemindMe","data-sentry-source-file":"RemindMe.tsx",children:[(0,s.jsx)(tf.A,{title:"Remind Me Later","data-sentry-element":"ModalHeading","data-sentry-source-file":"RemindMe.tsx"}),(0,s.jsx)("div",{children:"You have been registered to receive a reminder of this event."})]})}let tJ=function({usingRsvp:e}){let t,{registration:n,event:r,loading:a,orderReadyStatus:i,genericError:l}=e;if(!r)return console.warn("No event or registration",{event:r,registration:n}),null;let o=!!n?.transferredToRegistrationId;return"waiting"===i||a?("not_started"!==i||a||console.warn("Not started",{orderReadyStatus:i}),t="WAITING"):"timeout"===i?t="TIMEOUT":"error"===i?t="ERROR":o?t="TICKET_TRANSFERRED":n?.rsvpReply==="NO"?t="UNREGISTERED":n?.rsvpReply==="YES"?t="REGISTERED":n?.rsvpReply==="MAYBE"?t="REMIND_ME":n?(console.warn("Unknown success case",{registration:n}),e5.wd("Unknown success case",{level:"error",extra:{registration:n,orderReadyStatus:i,loading:a,ticketTransferred:o}}),t="ERROR"):t="WAITING",(0,s.jsxs)("div",{"data-testid":"success-screen",className:E.Ay.formClass,"data-sentry-component":"SuccessScreen","data-sentry-source-file":"SuccessScreen.tsx",children:["WAITING"===t&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center mt-4 gap-4",children:[(0,s.jsx)("div",{children:"Loading your registration..."}),(0,s.jsx)(tG.A,{})]}),"TIMEOUT"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-center",children:"We are experiencing problems processing your registration."}),(0,s.jsx)("p",{className:"text-center",children:"If you don't receive an email confirmation in the next few minutes, please refresh this page and register again."})]}),"ERROR"===t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-center",children:"Your registration failed."}),l&&(0,s.jsxs)("p",{className:"text-center",children:[(0,s.jsx)("span",{className:"font-bold",children:"Reason:"})," ",(0,s.jsx)("span",{children:l})]})]}),"REGISTERED"===t&&(0,s.jsx)(t$,{event:r,registration:n}),"TICKET_TRANSFERRED"===t&&(0,s.jsx)(tH,{}),"UNREGISTERED"===t&&(0,s.jsx)(tW,{}),"REMIND_ME"===t&&(0,s.jsx)(tQ,{}),!(0,I.lv)(r)&&(0,s.jsx)("div",{className:"flex justify-center mt-8",children:(0,s.jsx)(eI.tA,{onClick:()=>e.exit(),"data-testid":"dismiss-button",children:"Dismiss"})})]})};var tK=n(5055),tZ=n(95885),tX=n(85287);function t0({usingRsvp:e}){let{handleSubmit:t}=e,{handleEmailChange:n,tempEmail:r,maxContactsError:a}=e.usingLogin,i=(0,tZ.A)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Event Registration","data-sentry-element":"ModalHeading","data-sentry-source-file":"EmailScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:t(e7.mb.Email),className:E.Ay.formClass,"data-testid":"email-screen",children:[(0,s.jsxs)(D.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"EmailScreen.tsx",children:[(0,s.jsx)(D.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"EmailScreen.tsx",children:"Please enter your email address"}),(0,s.jsx)(D.ks,{type:"email",name:"email",onChange:n,value:r,ref:i,placeholder:"Email address","data-sentry-element":"TextInput","data-sentry-source-file":"EmailScreen.tsx"})]}),a?(0,s.jsx)(tX.A,{}):(0,s.jsx)(tc,{usingRsvp:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)(tS.A,{"data-sentry-element":"HelpText","data-sentry-source-file":"EmailScreen.tsx",children:"We'll send you a verification code to confirm your email address."}),(0,s.jsx)(tb,{onPreviousStep:()=>e.previousStep(),loading:e.loading,submitLabel:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tK.A,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Send the code"})]}),"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"EmailScreen.tsx"})]})]})]})}var t5=n(33881);function t2({usingRsvp:e}){let{handleSubmit:t}=e,{email:n,authCode:r,onAuthCodeChange:a,codeRef:i,verifyMemberAuthCodeState:l}=e.usingLogin;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Event Registration","data-sentry-element":"ModalHeading","data-sentry-source-file":"LoginCodeScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:t(e7.mb.Code),"data-testid":"login-code-screen",children:[(0,s.jsx)("h2",{children:"Code"}),(0,s.jsx)("p",{children:"Please enter the code to continue"}),(0,s.jsx)(eH.A,{"data-sentry-element":"Flash","data-sentry-source-file":"LoginCodeScreen.tsx",children:(0,s.jsxs)("span",{children:["We sent you an email to ",(0,s.jsx)("b",{children:n})]})}),(0,s.jsx)("p",{className:"p",children:"Please look for the email we sent, and read the code from it."}),(0,s.jsxs)(D.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"LoginCodeScreen.tsx",children:[(0,s.jsx)(D.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"LoginCodeScreen.tsx",children:"Enter the code from the email:"}),(0,s.jsx)(D.ks,{type:"number",onChange:a,value:r,ref:i,"data-sentry-element":"TextInput","data-sentry-source-file":"LoginCodeScreen.tsx"}),(0,s.jsx)(t5.A,{mutationInfo:l,className:"mt-2","data-sentry-element":"AshMutationErrors","data-sentry-source-file":"LoginCodeScreen.tsx"})]}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"LoginCodeScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>e.previousStep(),loading:e.loading,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"LoginCodeScreen.tsx"})]})]})}var t1=n(90425),t3=n(8153);function t4({usingRsvp:e}){let{accountForm:t,handleSubmit:n,usingLogin:r}=e,{account:a}=r;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Event Registration","data-sentry-element":"ModalHeading","data-sentry-source-file":"NameScreen.tsx"}),(0,s.jsxs)("form",{onSubmit:n(e7.mb.Name),"data-testid":"name-screen",className:E.Ay.formClass,children:[(0,s.jsxs)(D.fh,{"data-sentry-element":"FormRow","data-sentry-source-file":"NameScreen.tsx",children:[(0,s.jsx)(D.Dk,{"data-sentry-element":"RowLabel","data-sentry-source-file":"NameScreen.tsx",children:"Please provide your name"}),(0,s.jsx)(t1.A,{form:t,focusOnLoad:!0,"data-sentry-element":"NameField","data-sentry-source-file":"NameScreen.tsx"})]}),!a?.emailOptInAnswer&&(0,s.jsx)(D.fh,{children:(0,s.jsx)(t3.A,{label:"Email me when there are new events and announcements",register:t.register("emailOptIn")})}),(0,s.jsx)(tc,{usingRsvp:e,"data-sentry-element":"RsvpError","data-sentry-source-file":"NameScreen.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>e.previousStep(),loading:e.loading,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"NameScreen.tsx"})]})]})}var t8=n(72569),t6=n(20174),t7=n(71879),t9=n(54823),ne=n(49823);function nt(e){let{usingRsvp:t}=e,{form:n,previousStep:a,handleSubmit:i,event:l}=t,o=(0,E.CI)((0,t8.Eh)()).cardAccentTextColor,d=l?.rsvpRules?.waitlistType??t9.e.SINGLE,[c,u]=(0,r.useState)(null),[m,x]=(0,r.useState)([]),p=t.registration?.lineItems?.find(e=>e.variant?.purpose===ne.YF.EVENT)?.variantId??null,f=d===t9.e.PER_VARIA
1NT?!(l&&p):!l,h={eventId:t.event?.id||"event-not-loaded",sortBy:"RSVP_DATE_ASC",filter:{waitlisted:{eq:!0},rsvpReply:{eq:"YES"}}};d===t9.e.PER_VARIANT&&(h={...h,lineItemVariantId:p||"variant-not-loaded"});let y=(0,e3.I)(eO.dc,{variables:h,skip:f,onCompleted:e=>{x(e.listAttendees.results.map(eO.DT))}}),g=y.data?.listAttendees.results,v=(0,e7.Nx)({waitlistLoaded:!!y.data,waitlistedCount:g?.length??0,memberSelected:!!c});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tf.A,{title:"Transfer Ticket","data-sentry-element":"ModalHeading","data-sentry-source-file":"TransferTicket.tsx"}),(0,s.jsxs)("form",{onSubmit:i(e7.mb.TransferTicket),className:(0,em.A)(E.Ay.formClass,"min-h-[20rem]"),"data-testid":"transfer-ticket-screen",children:[(0,s.jsx)("h2",{children:"Transfer Ticket"}),!c&&(0,s.jsxs)(s.Fragment,{children:[v.showEmptyWaitlist&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"p",children:"There are no waitlisted members to transfer your ticket to."}),(0,s.jsxs)("p",{className:"p",children:["If you know a member who would want your ticket, you can ask them register for"," ",d===t9.e.PER_VARIA
1NT?"your same ticket option":"this event",". After they've added themselves to the waitlist, you can transfer your ticket to them."]})]}),v.showWaitlist&&(0,s.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,s.jsx)("div",{className:"font-bold text-secondary-800",children:"Waitlisted Registrants"}),(0,s.jsx)("div",{children:"Select a waitlisted registrant to transfer your ticket to:"}),(0,s.jsx)("div",{className:"text-sm",children:"Waitlisted registrants below are listed longest-waiting first."}),(0,s.jsx)("div",{className:"flex flex-col gap-y-2 border-t-2 border-l-2 border-b border-r p-4 max-h-[200px] overflow-y-auto bg-secondary-50",children:m?.map(e=>(0,s.jsx)("div",{className:"border hover:bg-[var(--group-accent-ultralight)] bg-white p-2 rounded-lg",children:(0,s.jsx)(t6.A,{member:(0,S.RY)(e.member),onClick:()=>{u((0,S.RY)(e.member)),n.setValue("transferTicketToMemberId",e.member.id)}},e.id)},e.id))})]})]}),c&&(0,s.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,s.jsxs)("div",{className:"border border-[var(--group-accent)] bg-[var(--group-accent-ultralight)] p-4 rounded-lg shadow-md relative",children:[(0,s.jsx)("div",{className:"font-bold",children:"Selected Member"}),(0,s.jsx)(t7.A,{className:(0,em.A)("w-6 h-6 absolute top-4 right-4",o)}),(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(t6.A,{member:c})})]}),(0,s.jsx)("div",{children:(0,s.jsx)(eI.tA,{onClick:()=>u(null),children:"Choose a different member"})})]}),(0,s.jsxs)("div",{className:"flex flex-col justify-end gap-2 grow",children:[(0,s.jsx)(tc,{usingRsvp:t,"data-sentry-element":"RsvpError","data-sentry-source-file":"TransferTicket.tsx"}),(0,s.jsx)(tb,{onPreviousStep:()=>a(),loading:t.loading,submitLabel:"Transfer ticket",disabled:!v.canTransfer,"data-sentry-element":"NewWizardButtons","data-sentry-source-file":"TransferTicket.tsx"})]})]})]})}let nn=function(e){let{usingRsvp:t}=e,{step:n}=t,r=(0,p.IG)();return(0,s.jsxs)(O.A,{isOpen:t.modalOpen,onClose:()=>t.exit(),showCloseButton:!0,withBodyStyle:!1,bodyClassName:"p-6 pt-0 max-w-[448px] mx-auto","data-testid":"rsvp-modal","data-sentry-element":"SimpleModal","data-sentry-component":"RsvpModal","data-sentry-source-file":"RsvpModal.tsx",children:[n===e7.mb.Email&&(0,s.jsx)(t0,{usingRsvp:t}),n===e7.mb.Code&&(0,s.jsx)(t2,{usingRsvp:t}),n===e7.mb.Name&&(0,s.jsx)(t4,{usingRsvp:t}),n===e7.mb.RsvpReply&&(0,s.jsx)(tj,{usingRsvp:t,member:r}),n===e7.mb.TransferTicket&&(0,s.jsx)(nt,{usingRsvp:t}),n===e7.mb.Questions&&(0,s.jsx)(tw,{usingRsvp:t}),n===e7.mb.Headcount&&(0,s.jsx)(tA,{usingRsvp:t}),n===e7.mb.Pricing&&(0,s.jsx)(tR,{usingRsvp:t}),n===e7.mb.Payment&&(0,s.jsx)(tU,{usingRsvp:t}),n===e7.mb.Success&&(0,s.jsx)(tJ,{usingRsvp:t})]})};var ns=n(88239);let nr=(0,C.PA)(function(){let e=(0,p.Jc)().eventsConfig.eventsEmail,t=(0,a.useRouter)(),n=t.query.listPath,i=t.query.id,l=i&&i.match(/^\d+$/),o="string"==typeof t.query.messageId?t.query.messageId:void 0,[d,c]=(0,r.useState)(null),u=(0,e1.kH)(),m=(0,eK.q)(),[x,f]=(0,r.useState)(null),[h,y]=(0,r.useState)(!1),g="string"==typeof t.query.authCode?t.query.authCode:void 0,v="string"==typeof t.query.email?t.query.email:void 0,j=(0,eK.q)(),b=(0,e0.v)(),N="string"==typeof t.query.msg?t.query.msg:void 0,[w,A]=(0,r.useState)(N),C=u.user,R=C?.status==="ACTIVE"?eO.rV:eO.gb,[k,D]=(0,r.useState)(!1),F=(0,r.useCallback)(e=>{if(y(!0),e?.getEvent2){let t=(0,eO.Ds)(e.getEvent2);f(t),c(t.registration)}D(!1)},[f,c,y,D]),Y=(0,e3.I)(R,{fetchPolicy:"network-only",variables:{id:i},onCompleted:F,skip:u.loading||!l}),q=function(e){let{event:t,eventId:n,loading:s,onUpdate:i,registration:l,enabled:o}=e,[d,c]=(0,r.useState)(!1),u=(0,p.Jc)(),m=(0,e8.A)(),x=(0,e4.A)({checkoutName:"EVENT_REGISTRATION",eventParams:{eventId:n,version:2},usingAttempt:m}),f=(0,e6.mN)({defaultValues:e7.JC}),h=(0,e6.mN)({defaultValues:{name:"",emailOptIn:!0}}),y=(0,p.lF)(),g=(0,p.IG)(),v=(0,r.useRef)((0,V.gZ)()),{handlePaymentMethodChange:j,onTogglePaymentForm:b,showingPaymentForm:N,usingRsvpPaymentMethods:w,usingRsvpStripe:A,usingSquare:E}=function(e){let{enabled:t,event:n,eventId:s,eventRegistrationValues:i,getIntentIdempotencyKey:l,handlePaymentSuccess:o,handlePaymentReturnFailed:d,modalOpen:c,registration:u,rsvpForm:m,usingCart:x}=e,f=(0,tl.A)(t&&c),[h,y]=(0,r.useState)(!0),g=function(e){let{cardSaveOptions:t,event:n,eventId:s,eventRegistrationValues:i,onSuccessShowRequested:l,onReturnFailed:o,usingCart:d,enabled:c=!0,getIntentIdempotencyKey:u,getSelectedPaymentMethodId:m,registration:x}=e,f=(0,r.useRef)(!1),h=(0,a.useRouter)(),y=(0,p.KE)(),g=(0,p.Jc)(),v="2"===h.query.rsvp,j=y+`/events/${s}?rsvp=2&noSplash=true`,b="setup";n&&(b=(0,I.bA)(n,g)?"payment":"setup");let N=(0,to.A)({getClientSecret:w,onReturnCompleted:A,onReturnFailed:o,onIntentInvalidated:d.clearIntentSecret,enabled:c,intentType:b,isUrlReturnedFromStripe:v,returnUrl:j,fetchDeclineReason:d.fetchDeclineReason});async function w(){if(!n)throw Error("No event");let e=d.cart?.metadata?.clientSecret;if(e)return e;if(M(n,x))throw Error(T);let{eventRegistration:s,lines:r}=i();if(0===function(e){if(!n)return 0;let t=n.variants??[];return e.reduce((e,n)=>{let s=t.find(e=>e.id===n.variantId);return e+(s&&parseFloat(s.amount)||0)*(n.quantity??0)},0)}(r))return;let a=n.realtimeCharge,l=t(),o=m?.(),c={chargeInSession:a,...l,idempotencyKey:u()},p=await d.upsertCart({eventRegistration:s,lines:r,intent:c,...o&&{paymentMethodId:o}});return p.metadata?.clientSecret}async function A(e){l(),f.current=!0}let E=N.loading,C=N.apiError;return{clearIntentSecret:d.clearIntentSecret,onStripeReturnCompleted:A,reset:function(){f.current=!1},usingStripe:N,loading:E,apiError:C,confirmPayment:N.confirmPayment,getLastFailure:N.getLastFailure}}({event:n,eventId:s,eventRegistrationValues:i,getIntentIdempotencyKey:l,onSuccessShowRequested:o,onReturnFailed:d,usingCart:x,enabled:t,cardSaveOptions:function(){let e=m.watch;return{cardIsDefault:(0,V.yG)(e("cardIsDefault")),cardUseType:e("cardIsPermanent")?"PERMANENT":"TEMPORARY"}},getSelectedPaymentMethodId:()=>m.watch("paymentMethodId"),registration:u}),v=(0,td.b)(),{paymentMethods:j}=f,b=(0,r.useRef)(N);function N(e){g.usingStripe.setStripeElements(null),g.clearIntentSecret(),y(e)}return b.current=N,(0,r.useEffect)(()=>{j&&j.length>0&&b.current(!1)},[j]),{handlePaymentMethodChange:function(e){return x.updatePaymentMethod(e)},onTogglePaymentForm:N,showingPaymentForm:h,usingRsvpPaymentMethods:f,usingRsvpStripe:g,usingSquare:v}}({enabled:o,event:t,eventId:n,eventRegistrationValues:function(){let e=f.watch,{answers:t}=(0,te.oi)({answers:e("answers")}),s=e("lineItems")||[],r={answers:t,eventId:n,rsvpReply:e("rsvpReply")||void 0};return{eventRegistration:r=Object.fromEntries(Object.entries(r).filter(([e,t])=>void 0!==t)),lines:s.map(e=>({variantId:e.variantId,quantity:e.quantity}))}},getIntentIdempotencyKey:()=>v.current,handlePaymentSuccess:ef,handlePaymentReturnFailed:ep,modalOpen:d,registration:l,rsvpForm:f,usingCart:x}),[C,S]=(0,r.useState)(null),[R,k]=(0,r.useState)(null),{initialPaymentMethod:D,paymentMethods:F,reset:O}=w,Y=x.cart,q=(0,r.useCallback)(()=>
1{if(!t)throw Error("No event");let e=(0,e7.yN)(t,e7.JC,D?.id,l,void 0,F);f.reset(e)},[t,D,F,l,f]),U=function(e){let{cart:t,event:n,group:s,paymentMethods:r,payStatus:a,rsvpForm:i}=e;return{shouldBeWaitlisted:function(){if(!n)return!1;let e=i.watch("rsvpReply");if(!e)return!1;let t=i.watch("lineItems")||[],s=(0,I.E6)(t,n.variants)||1;return(0,I.d1)({event:n,rsvpReply:e,totalQuantity:s})},getOrderValues:function(){if(!n)throw Error("No event");let e=(0,ti.eW)(n.variants??[],i.watch("lineItems")||[]);return t&&parseFloat(t.lineItemsTotal||"0")>0?(0,ta.t_)(t,e):(0,ti.O3)(e,s)},getFormOrderTotal:function(){if(!n)return 0;let e=(0,ti.eW)(n.variants??[],i.watch("lineItems")||[]);return(0,ti.O3)(e,s).total},currentPaymentMethod:function(){if(!r)return console.log("No payment methods loaded"),null;if(!i.watch("paymentMethodId"))return null;let e=r.find(e=>e.id===i.watch("paymentMethodId"));return e||console.log("No payment method for",i.watch("paymentMethodId")),e||null},shouldPromptForPayment:function(){return!(!n||n.paymentBypassed||a&&(0,e7.qh)(a))}}}({cart:Y,event:t,group:u,paymentMethods:F,rsvpForm:f,payStatus:l?.payStatus||null}),z=(0,I.IU)({event:t,registration:l,memberStatus:g?.status}),B=function(e){let{clearErrors:t,enabled:n,event:s,hasName:a,isLoggedIn:i,onOpen:l,onClose:o,populateForm:d,registration:c,setGenericError:u,skipPayment:m,transferAllowed:x}=e,[p,f]=(0,r.useState)(!1),h=function(e){let{event:t,isLoggedIn:n,hasName:s,skipPayment:a,transferAllowed:i,transferringTicket:l}=e,o=!1;if(t){let e=t.questions?.filter(e=>e.active);o=(e?.length??0)>0}let d=(0,I.YW)(t),c=(0,I.pO)(t)||d||(0,I.OF)(t),u=!d,m=function(e){let{steps:t}=e,[n,s]=(0,r.useState)(null),a=(0,r.useRef)(t);return{isPenultimateStep:function(){if(!n)return!1;let e=t.indexOf(n);return -1!==e&&e===t.length-2},jumpToFirstStep:function(){a.current=t,s(t[0])},jumpToStep:function(e,n){return(a.current=t,-1===(n??t).indexOf(e))?(console.warn("Step not found",e),!1):(s(e),!0)},next:function(){let e=a.current;if(a.current=t,!n){let e=t[0];return e?(s(e),!0):(console.warn("No steps provided"),!1)}let r=t.indexOf(n);if(-1===r&&t.length>0){let a=(r=e.indexOf(n))+1,i=e[a];return -1===t.indexOf(i)?s(t[0]):s(i),!0}if(-1===r)return!1;let i=r+1;return i>=t.length?(console.warn("No next step after",n),!1):(s(t[i]),!0)},previous:function(){let e=a.current;if(a.current=t,!n)return!1;let r=t.indexOf(n);if(-1===r){if(-1===(r=e.indexOf(n)))return!1;let a=e[r-1];return -1===t.indexOf(a)?s(t[0]):s(a),!1}let i=r-1;return i<0?(console.warn("No previous step before",n),!1):(s(t[i]),!0)},reset:()=>{s(null),a.current=t},step:n}}({steps:(0,r.useMemo)(()=>(0,e7.HF)({isLoggedIn:n,beforeRegistrationCutoff:!t||!P(t),hasQuestions:o,hasName:s,skipPayment:a,transferAllowed:i,transferringTicket:l,skipPricing:c,skipHeadcount:u}),[n,t,s,o,a,i,l,c,u])});return{isPenultimateStep:m.isPenultimateStep,jumpToFirstStep:m.jumpToFirstStep,jumpToStep:function(e,s){if(s){let r=(0,e7.HF)({isLoggedIn:n,beforeRegistrationCutoff:!t||!P(t),hasQuestions:o,skipPayment:a,transferAllowed:i,transferringTicket:l,skipPricing:c,skipHeadcount:u,...s});return m.jumpToStep(e,r)}return m.jumpToStep(e)},next:function(){return m.next()},previous:function(){return m.previous()},reset:m.reset,step:m.step}}({event:s,hasName:a,isLoggedIn:i,skipPayment:m,transferAllowed:x,transferringTicket:p}),y=(0,r.useRef)(t);y.current=t;let g=(0,r.useRef)(d);g.current=d;let v=h.isPenultimateStep();function j(e,n){t(),h.jumpToStep(e,n)||(console.warn("No next step"),u("No next step"))}function b(){o()}return{handleTransferStart:function(){f(!0),j(e7.mb.TransferTicket,{transferringTicket:!0})},isPenultimateStep:v,show:(0,r.useCallback)((e,t=!0,s=!0)=>{!1!==n&&(s&&y.current(),t&&g.current(),e?h.jumpToStep(e):h.jumpToFirstStep(),l())},[n,h,l]),previousStep:function(){f(!1),t(),h.previous()||b()},nextStep:function(){if(t(),function(e,t,n=new Date){return L(t)&&P(e,n)}(s,c))return void u(T);h.next()||(console.warn("No next step"),u("No next step"))},jumpToStep:j,exit:b,wizard:h}}({enabled:o,event:t,registration:l,skipPayment:(0,e7.th)({event:t,registration:l,orderTotal:t?U.getFormOrderTotal():0,lineItemCount:(f.watch("lineItems")||[]).length}),transferAllowed:z,hasName:!!(g?.name||h.watch("name")),isLoggedIn:!!y,onOpen:()=>{c(!0)},onClose:()=>{c(!1),eh(),O(),f.reset(e7.JC),K.reset(),x.reset(),m.endAttempt(),v.current=(0,V.gZ)()},clearErrors:eh,populateForm:q,setGenericError:S}),{handleTransferStart:_,isPenultimateStep:$,jumpToStep:H,nextStep:W,previousStep:G,show:Q,exit:J,wizard:K}=B,Z=function(e){let{accountForm:t,enabled:n,event:s,eventId:a,group:i,isPenultimateStep:l,jumpToStep:o,member:d,nextStep:c,onUpdate:u,registration:m,rsvpForm:x,showingPaymentForm:f,usingAttempt:h,usingCart:y,usingSquare:g,confirmPayment:v,getLastFailure:j,getFormOrderTotal:b,setGenericError:N,setCardError:w}=e,A=(0,p.QU)(),E="square"===i.paymentProvider?"square":"stripe",C=(0,r.useRef)(!1),S=(0,r.useRef)(null);function R(e,t){(0,tn.w)(A,{flow:"event_registration",step:e,provider:E,attemptId:h.attemptId(),errorCode:t?.code??null,failureStage:t?.stage??null})}function I(){!(0>
1=b())&&(h.startAttempt(),C.current||(C.current=!0,R("started")))}let[k,P]=(0,eF.X)(eO.wq),[L,D]=(0,eF.X)(eO.v2),[F,O]=(0,r.useState)(!1),Y=(0,e9.o)({source:"EVENT_REGISTRATION",skipLogin:!0,submitOnSix:!1}),[q,U]=(0,eF.X)(ts.DO);async function z(e,t){if(!n)return!1;if("email"===e)return B();if("code"===e)return _();if("name"===e)return $();if("rsvpReply"===e)return H(t);if("transferTicket"===e)return W(t);else if("questions"===e)return G(t);else if("pricing"===e||"headcount"===e)return Q(t);else if("payment"===e)return J(t);return!0}async function B(){await Y.handleSubmitEmail()&&c()}async function _(){let e=await Y.handleVerifyMemberAuthCode();if(e.success){let{accessToken:t,account:n}=e;if(!t)throw Error("No access token");if(!n)throw Error("No account");n.name?(await Y.login(t),o(e7.mb.RsvpReply)):c()}}async function $(){let e=t.watch("name");if(!e)return void t.setError("name",{type:"required"});if(d){let n={name:e,emailOptIn:t.watch("emailOptIn")};(await q({variables:{input:n}},"confirmAccount")).hasError||c()}else await Y.saveName({name:e,emailOptIn:t.watch("emailOptIn")})&&await Y.login()&&c()}async function H(e){let{rsvpReply:t}=e;if(t){if(l){await X(e)&&c();return}"YES"===t?c():await X({rsvpReply:t})&&o(e7.mb.Success)}}async function W(e){let{transferTicketToMemberId:t}=e;t&&await ee(t)&&c()}async function G(e){if(l){await X(e)&&c();return}c()}async function Q(e){if(I(),l){await X(e)&&c();return}e.lineItems&&0!==e.lineItems.length&&c()}async function J(e){if(M(s,m))return void N(T);if(I(),0===b()){await X(e)&&c();return}if("stripe"===i.paymentProvider)R("payment_submitted"),await K()||R("failed",j()??{stage:"unknown",code:null});else if("square"===i.paymentProvider)if(f){let t=await Z(e);if(t&&t.data){let n=t.data;await X(e,n.id)?c():R("failed",{stage:"order",code:null})}else R("failed",S.current??{stage:"unknown",code:null})}else R("payment_submitted"),await X(e)?c():R("failed",{stage:"order",code:null})}async function K(){return v()}async function Z(e){try{N(null),w(null),S.current=null;let t=await (0,tr.ls)(g.loadSquareCardNonce,()=>R("payment_submitted"));if(!t.ok){let n=t.response;console.warn("Error loading Square card nonce",n),S.current=t.failure;let s="There was an issue processing your payment. ";if(n.error&&n.requestErrors.length>0){let e=n.requestErrors.map(e=>e.title).join(", ");s+=`Please check your card details: ${e}`}else n.error&&0===n.status||!navigator.onLine?s+="Please check your internet connection and try again.":s+="Please verify your card information and try again, or contact support if the issue persists.";return w(s),e5.Cp(Error("Error authorizing Square payment method"),{extra:{formValues:e,cart:y.cart,squareError:n,errorType:"square_card_nonce_failed"}}),!1}let n=t.nonce,s={useType:e.cardIsPermanent?"PERMANENT":"TEMPORARY",isDefault:(0,V.yG)(e.cardIsDefault),nonce:n},r=await y.upsertCart({paymentMethod:s});if(!r||!r.data){let t=r?.errors?.[0]?.shortMessage||r?.errors?.[0]?.message||"Unable to process payment. Please try again or contact support if the issue continues.";return w(t),S.current={stage:"cart_save",code:(0,tr.gc)(r)},e5.Cp(Error("Error creating Square payment cart"),{extra:{formValues:e,cartResult:r,errorType:"square_cart_failed"}}),!1}return r}catch(t){return console.error("Unexpected error in Square payment processing",t),S.current={stage:"unknown",code:null},N("An unexpected error occurred while processing your payment. Please try again or contact support."),e5.Cp(t,{extra:{formValues:e,cart:y.cart,errorType:"square_unexpected_error"}}),!1}}async function X(e,t,n){let s={};if(e){let t=function(e,t){let n={};return t.forEach(t=>{t in e&&(n[t]=e[t])}),n}(e,["rsvpReply","answers","paymentMethodId"]);if(s={...s,...t,eventId:a},e.lineItems&&e.lineItems.length>0&&(s={...s,lineItems:e.lineItems}),e.answers){let{answers:t}=(0,te.oi)({answers:e.answers});s={...s,answers:t}}}t?s={...s,cartId:t}:y.cart?.id&&(s={...s,cartId:y.cart.id}),(n||F)&&(s={...s,simulateError:!0});let r=await k({variables:{input:s}},"upsertRegistration");return r.hasError?(e5.Cp(Error("Error upserting registration"),{extra:{result:r}}),console.error("Error upserting registration",r),!1):(u(),y.reset(),!0)}async function ee(e){let t=await L({variables:{eventId:a,input:{toMemberId:e}}},"transferTicket");return t.hasError?(e5.Cp(Error("Error transferring ticket"),{extra:{result:t}}),console.error("Error transferring ticket",t),!1):(u(),y.reset(),!0)}window.gfSetRegistrationSimulateError=O;let et=null;return Y.apiError?et=Y.apiError:(0,tt.Ko)(P)?et=(0,tt.g5)(P):(0,tt.Ko)(D)?et=(0,tt.g5)(D):(0,tt.Ko)(U)&&(et=(0,tt.g5)(U)),{apiError:et,resetErrors:function(){P.reset(),Y.resetErrors(),D.reset(),U.reset()},loading:Y.loading||P.loading||D.loading||U.loading,reset:function(){P.reset(),Y.reset(),D.reset(),U.reset()},handleSubmit:function(e){return x.handleSubmit(t=>{z(e,t)})},submitOrder:X,submitScreen:z,trackEventReg:R,usingLogin:Y}}({accountForm:h,enabled:o??!1,event:t,eventId:n,group:u,isPenultimateStep:$,jumpToStep:H,member:g,nextStep:W,onUpdate:i,registration:l,rsvpForm:f,showingPaymentForm:N,usingAttempt:m,usingCart:x,usingSquare:E,confirmPayment:A.confirmPayment,getLastFailure:A.getLastFailure,getFormOrderTotal:U.getFormOrderTotal,setGenericError:S,setCardError:k}),{handleSubmit:X,submitScreen:ee}=Z,{openCartChannel:et}=(0,p.h)(),en=null;Z.apiError?en=Z.apiError:w.apiError?en=w.apiError:A.apiError?en=A.apiError:E.apiError?en=E.apiError:x.apiError&&(en=x.apiError);let es=s||Z.loading||w.loading||A.loading||E.loading||x.loading,er="Next";$&&(er="Submit Registration",l?.rsvpReply==="YES"&&(er="Update Registration"));let ea=(0,r.useRef)(et);ea.current=et;
1let[ei,el]=(0,r.useState)("not_started"),eo=(0,r.useRef)(ei);eo.current=ei;let ed=(0,r.useRef)(el);ed.current=el;let ec=(0,r.useRef)(null),eu=(0,r.useRef)(i);function em(e,t){let n="error";"success"===e&&(i(),n="ready"),el(n),"error"===e&&t?.errorMessage&&S(t.errorMessage),ec.current&&(clearTimeout(ec.current),ec.current=null)}eu.current=i;let ex=(0,r.useRef)(em);async function ep(e){B.show(e7.mb.Payment,!1,!1);let t=await x.loadCart();m.adoptAttemptId(t?.attemptId),Z.trackEventReg("failed",e)}async function ef(){B.show(e7.mb.Success,!1,!1);let e=await x.loadCart();if(!e)return void i();el("waiting"),ec.current&&clearTimeout(ec.current),ea.current(e.id,{orderCreated:()=>{ex.current("success")},orderFailed:e=>{ex.current("error",e)}}),ec.current=setTimeout(()=>{"waiting"===eo.current?ed.current("timeout"):(ed.current("ready"),eu.current()),ec.current=null},5e3)}function eh(){S(null),k(null),x.clearErrors(),Z.resetErrors(),E.reset(),A.reset()}ex.current=em;let ey=(0,r.useRef)(q);return ey.current=q,(0,r.useEffect)(()=>{t&&F&&ey.current()},[t,F,D]),{accountForm:h,apiError:en,currentPaymentMethod:U.currentPaymentMethod,initialPaymentMethod:D,event:t,exit:J,form:f,genericError:C,cardError:R,getOrderValues:U.getOrderValues,handleSubmit:X,handlePaymentMethodChange:j,handleSquareInitError:function(e){Z.trackEventReg("failed",{stage:"card_init",code:e.name||null})},handleTransferStart:_,isActiveMember:g?.status==="ACTIVE",transferAllowed:z,isPenultimateStep:$,loading:es,modalOpen:d,onTogglePaymentForm:b,orderReadyStatus:ei,registration:l,paymentMethods:F,paymentProvider:u.paymentProvider,previousStep:G,saveCardOptions:x.saveCardOptions,shouldBeWaitlisted:U.shouldBeWaitlisted,show:()=>Q(void 0,!0),showingPaymentForm:N,shouldPromptForPayment:U.shouldPromptForPayment,step:K.step,submitScreen:ee,submitLabel:er,usingLogin:Z.usingLogin,usingSquare:E,usingRsvpStripe:A}}({eventId:i,event:x,loading:Y.loading||k,registration:d,enabled:!!l,onUpdate:()=>U()}),U=async()=>{D(!0),F((await Y.refetch()).data)},z=(0,r.useCallback)(async(e,t)=>{if(!u)return;let n=await j.wrapCall(n=>(0,eX.j)(n,{email:e,authCode:t})),s="";if(n.error)s="Failed to log in with the given code";else{let{accessToken:e}=n.data;b.login(e),await u.loadUser(),s="Your email address is verified. You may continue to register for this event."}window.location.href=`/events/${i}?msg=${escape(s)}`},[u,j,b,i]);(0,r.useEffect)(()=>{g&&v&&z(v,g)},[g]),(0,r.useEffect)(()=>{l||e5.wd("Invalid Event ID in URI",{extra:{eventId:i}})},[l]),(0,r.useEffect)(()=>{let e=new URLSearchParams(document.location.search);if(e.get("listPath")){e.delete("listPath");let t=e.toString(),n=t?`?${t}`:"",s=window.location.pathname+n;window.history.replaceState(s,"",s)}},[window.location.search]);let B=u&&u.user,_={isActiveMember:B&&(0,S.DT)(B)||!1,isPublicEvent:x?.isPublic||!1},$={};return(!h||x)&&(!x||x.isPublic||x.registration?.invited)||($={emailRequired:!0,memberStatusRequired:"ACTIVE"}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ns.A,{"data-sentry-element":"PaymentScript","data-sentry-source-file":"EventDetailPage.tsx"}),(0,s.jsx)(e2.A,{className:(0,em.A)("EventDetailPage"),backButton:{href:"string"==typeof n?n:"/events",label:"Events"},accessRequirements:$,windowTitle:x?.title,"data-sentry-element":"MainContent","data-sentry-source-file":"EventDetailPage.tsx",children:(0,s.jsx)("div",{className:(0,em.A)(E.Ay.primaryCard,"flex flex-col gap-4","md:max-w-screen-lg","mt-0","md:mb-6"),children:(0,s.jsx)("div",{className:(0,em.A)("p-4"),children:(0,s.jsxs)("section",{children:[(0,s.jsx)(eZ.A,{error:m.errorResponse,"data-sentry-element":"ApiErrors","data-sentry-source-file":"EventDetailPage.tsx"}),(0,s.jsxs)(O.A,{isOpen:!!w,onClose:()=>{A(void 0)},"data-sentry-element":"SimpleModal","data-sentry-source-file":"EventDetailPage.tsx",children:[(0,s.jsx)("div",{className:"font-bold h2",children:"Success"}),(0,s.jsx)("div",{className:"mb-8",children:"Your email address is verified. You may continue to register for this event."})]}),!l&&(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"font-bold text-lg mb-4",children:"Invalid Event Link"}),(0,s.jsxs)("p",{children:["The link that brought you to this page is invali
1d. Please email"," ",(0,s.jsx)("a",{href:`mailto:${e.address}`,className:"a",children:e.address}),", and provide details on the link you followed to get here."]})]}),x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eJ.A,{title:x.title}),(0,s.jsx)(nn,{usingRsvp:q}),(0,s.jsx)(eQ,{className:"transition origin-top motion-reduce:transition-none",style:{height:"auto"},event:x,registration:d,onRsvpClick:function(){q.show(),U()},eventAccess:_,messageId:o,onAttachmentsChange:U})]})]})})})})]})});nr.metaData=()=>({contentShowControls:!1});let na=nr}}]); 2//# sourceMappingURL=8680-2f937da980fdf424.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.