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]="c3cf2834-aded-4dda-9cc7-fb5cfc62fbbf",e._sentryDebugIdIdentifier="sentry-dbid-c3cf2834-aded-4dda-9cc7-fb5cfc62fbbf")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3436],{4540:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(55004),n=a(54595),r=a(14232),l=a(88992);function i(e){let{attendee:t,event:a,onSave:i}=e,d=(0,l.mN)({defaultValues:{answers:{_:{}},lineItems:[],note:"",waitlisted:"false",payStatus:"NONE",rsvpReply:"YES",status:"NONE"}}),{setValue:o}=d,[c,u]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(t){a&&(0,n.ky)(d,a.questions,t.answers),o("waitlisted",t.waitlisted?"true":"false"),o("payStatus",t.payStatus),o("note",t.note),o("status",t.status),o("rsvpReply",t.rsvpReply);let e=(t.lineItems??[]).filter(e=>null!==e.variantId).map(e=>({variantId:e.variantId,quantity:e.quantity}));o("lineItems",function(e,t,a){if(!e)return a;let n=(0,s.s7)(e,a,t.payStatus);return"YES"!==t.rsvpReply?n:(0,s.Fo)(e,n)}(a,t,e))}},[t]);let m=d.watch("rsvpReply");async function h(e){let{answers:t,lineItems:a,rsvpReply:r,waitlisted:l,payStatus:d,...o}=e,c=o;if(t){let e=(0,n.NH)(t);c={...c,answers:e}}a&&a.length>0&&(c={...c,lineItems:a}),r&&(c={...c,rsvpReply:r}),void 0!==l&&(c={...c,waitlisted:"true"===l}),d&&!(0,s.P9)(d)&&"YES"===r&&(c={...c,payStatus:d}),i&&(await i(c)?u("success"):u("error"))}return(0,r.useEffect)(()=>{if("YES"!==m||!a||(d.getValues("lineItems")??[]).length>0)return;let e=(0,s.Jk)(a);e.length>0&&o("lineItems",e)},[m,a]),{form:d,onFormSubmit:h,reset:function(){d.reset(),u(null)},resetResult:function(){u(null)},result:c}}},6675:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(37876),n=a(82037),r=a(55004),l=a(80229);function i(e){let{attendee:t,bgClass:a,className:i}=e,d=0;return t.amount&&(d=parseFloat(t.amount)),(0,s.jsxs)(n.Ex,{type:(0,r.M8)(t.payStatus),bgClass:a,className:i,"data-sentry-element":"Badge","data-sentry-component":"PayStatusBadge","data-sentry-source-file":"PayStatusBadge.tsx",children:[(0,r.z0)(t.payStatus)," ",d>0&&t.amount&&(0,l.o5)(t.amount)]})}},7802:(e,t,a)=>{a.d(t,{A:()=>f});var s=a(37876),n=a(25268),r=a(48230),l=a.n(r);function i(e){let{children:t,className:a,member:n}=e;return(0,s.jsx)(l(),{href:`/members/${n.id}`,className:a,prefetch:!1,"data-sentry-element":"Link","data-sentry-component":"ProfileLink","data-sentry-source-file":"ProfileLink.tsx",children:t})}var d=a(50834),o=a(80229),c=a(31808),u=a(13220),m=a(83731),h=a(43982),p=a(76019);let x={BANNED:"Banned",INACTIVE:"Inactive member",NON_MEMBER:"Non-member"};function f(e){let{children:t,className:a,attendee:r,upperRightCorner:l}=e,{member:f}=r,y=(0,u.Jc)().tagGroups.filter(e=>"MEMBER"===e.purpose&&["READ_WRITE","READ_ONLY"].includes(e.othersAccess)),g=f?.memberTags?.map(e=>e.tag)||[],v=(0,c.Z)(y,g);return(a=(0,o.Wd)(a,"AttendeeItemCard text-black rounded-2xl border-new-gray-100 shadow-gf-lg bg-white"),f)?(0,s.jsxs)("div",{className:a,"data-sentry-component":"AttendeeItemCard","data-sentry-source-file":"AttendeeItemCard.tsx",children:[(0,s.jsxs)("div",{className:"flex flex-row w-full relative",children:[(0,s.jsx)("div",{className:"pt-4 pb-2 pl-4",children:(0,s.jsx)(i,{member:f,"data-sentry-element":"ProfileLink","data-sentry-source-file":"AttendeeItemCard.tsx",children:(0,s.jsx)(n.A,{photoUrl:f.profile?.photo?.url,photoSize:100,"data-sentry-element":"MemberPhoto","data-sentry-source-file":"AttendeeItemCard.tsx"})})}),(0,s.jsxs)("div",{className:"p-4 flex-grow",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(i,{member:f,className:"a","data-sentry-element":"ProfileLink","data-sentry-source-file":"AttendeeItemCard.tsx",children:(0,s.jsx)("div",{className:"font-bold",children:f.name})}),(0,s.jsx)(d.A,{pronouns:(f.profile?.pronounItems||[]).map(e=>e.label),"data-sentry-element":"Pronouns","data-sentry-source-file":"AttendeeItemCard.tsx"})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-1",children:["ACTIVE"!==f.status&&(0,s.jsx)(p.A,{size:"sm",marginBottom:"mb-0",marginRight:"mr-0",children:x[f.status]}),f.title&&(0,s.jsx)("div",{className:"text-sm text-secondary-600",children:f.title}),f.joinedGroupOn&&(0,s.jsxs)("div",{className:"text-sm",children:["Joined ",(0,h.Yq)(f.joinedGroupOn)]})]}),v.length>0&&(0,s.jsx)("div",{className:"col-span-3 md:col-span-6 md:col-start-2",children:(0,s.jsx)(m.A,{member:f})})]}),l&&(0,s.jsx)("div",{className:"absolute top-4 right-2",children:l})]}),(0,s.jsx)("div",{className:"pt-0 p-4",children:t})]}):null}},14176:(e,t,a)=>{a.d(t,{A:()=>m});var s=a(37876),n=a(81077),r=a(5811),l=a(4540),i=a(28418),d=a(44226),o=a(14232),c=a(82037),u=a(24117);let m=(0,r.PA)(function(e){let{attendee:t,editable:a,event:r,onRequestEdit:m,themeArea:h}=e,{form:p,onFormSubmit:x}=(0,l.A)({attendee:t,event:r,onSave:j}),{setValue:f,watch:y}=p,[g,v]=(0,o.useState)(!1);async function j(t){return!e.onSave||await e.onSave(t)}async function A(){await j({waitlisted:!1}),v(!1)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row flex-wrap justify-center gap-2 mt-2",children:[(0,s.jsxs)(c.tA,{onClick:()=>m(),themeArea:h,className:"min-w-60","data-sentry-element":"SecondaryButton","data-sentry-source-file":"AttendeeItemButtons.tsx",children:[(0,s.jsx)(u.A,{className:"fill-current color-white","data-sentry-element":"EditPropertiesIcon","data-sentry-source-file":"AttendeeItemButtons.tsx"}),"Details"]}
1),a&&"NOSHOW"!==y("status")&&"true"!==y("waitlisted")&&(0,s.jsxs)(i.rA,{onClick:function(){let e=y("status");f("status",e="ATTENDED"===y("status")?"NONE":"ATTENDED"),x({status:e})},themeArea:h,bgColorClass:"ATTENDED"===y("status")?"bg-green-600":"bg-gray",type:"button",children:["ATTENDED"===y("status")?(0,s.jsx)(n.A,{className:"w-6 h-6 fill-current"}):(0,s.jsx)("input",{type:"checkbox",className:"w-5 h-5"}),"Attended"]}),a&&"ATTENDED"!==y("status")&&(0,s.jsx)(s.Fragment,{children:"true"===y("waitlisted")?(0,s.jsx)(i.rA,{onClick:()=>v(!0),children:"Take off waitlist..."}):(0,s.jsxs)(i.rA,{onClick:function(){let e=y("status");f("status",e="NOSHOW"===y("status")?"NONE":"NOSHOW"),x({status:e})},bgColorClass:"NOSHOW"===y("status")?"bg-spp-red":"bg-gray",colorClass:"NOSHOW"===y("status")?"bg-spp-red":"bg-gray",children:["NOSHOW"===y("status")?(0,s.jsx)(n.A,{className:"w-6 h-6 fill-current"}):(0,s.jsx)("input",{type:"checkbox",className:"w-5 h-5"}),"No Show"]})})]}),(0,s.jsx)(d.$,{isOpen:g,onClose:()=>v(!1),onConfirm:A,themeArea:h,"data-sentry-element":"WaitlistRemovalModal","data-sentry-source-file":"AttendeeItemButtons.tsx"})]})})},19984:(e,t,a)=>{a.d(t,{R:()=>n});var s=a(37876);function n(e){let{checked:t,id:a,onChange:n}=e;return(0,s.jsx)("input",{type:"checkbox",style:{width:"20px",height:"20px"},className:"inline-block",checked:t||!1,id:a,onChange:()=>n&&n(!t),"data-sentry-component":"LargeCheckbox","data-sentry-source-file":"LargeCheckbox.tsx"})}},31808:(e,t,a)=>{function s(e,t){return e.map(e=>({...e,tags:t.filter(t=>t.tagGroupId===e.id)}))}a.d(t,{Z:()=>s,c:()=>n});let n=[{slug:"red",name:"Red",value:"#F44336"},{slug:"pink",name:"Pink",value:"#E81E63"},{slug:"purple",name:"Purple",value:"#9C27B0"},{slug:"deep-purple",name:"Deep Purple",value:"#673AB7"},{slug:"indigo",name:"Indigo",value:"#3F51B5"},{slug:"blue",name:"Blue",value:"#2196F3"},{slug:"light-blue",name:"Light Blue",value:"#03A9F4"},{slug:"cyan",name:"Cyan",value:"#00BCD4"},{slug:"teal",name:"Teal",value:"#009688"},{slug:"green",name:"Green",value:"#4CAF50"},{slug:"light-green",name:"Light Green",value:"#8BC34A"},{slug:"lime",name:"Lime",value:"#CDDC39"},{slug:"yellow",name:"Yellow",value:"#FFEB3B"},{slug:"amber",name:"Amber",value:"#FFC107"},{slug:"orange",name:"Orange",value:"#FF9800"},{slug:"deep-orange",name:"Deep Orange",value:"#FF5722"}]},34493:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(37876),n=a(14232),r=a(78248),l=a(7802),i=a(14176),d=a(76019),o=a(14938),c=a(40843),u=a(78950),m=a(65930),h=a(10290),p=a(43982),x=a(21993),f=a(38367),y=a(6675);function g(e){let{attendee:t,event:a,themeArea:g,onChange:v,editable:j,onCheckedChange:A}=e,w=!0===e.checked,[b,N]=(0,n.useState)(!1),[C,{data:E}]=(0,r._)(h.HI,{fetchPolicy:"network-only"});(0,n.useEffect)(()=>{b&&t.member.id&&C({variables:{memberId:t.member.id,limit:50,offset:0}})},[b,t.member.id,C]);let k=E?.listMemberAttendances?.results?.map(e=>({id:e.id,event:{id:e.event.id,endAt:(0,p._U)(e.event.endAt),startAt:(0,p._U)(e.event.startAt),status:e.event.status,title:e.event.title},payStatus:e.payStatus?.toLowerCase(),rsvpReply:e.rsvpReply?.toLowerCase(),status:e.status?.toLowerCase(),waitlisted:e.waitlisted}));return(0,s.jsxs)(l.A,{attendee:t,className:"AttendeeItem",upperRightCorner:(0,s.jsx)(c.A,{attendee:t,checked:w,onChange:(e,t)=>
1A&&A(e,t)}),"data-sentry-element":"AttendeeItemCard","data-sentry-component":"AttendeeItem","data-sentry-source-file":"AttendeeItem.tsx",children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap",children:["NO"===t.rsvpReply&&(0,s.jsx)(d.A,{children:"Not Going"}),"MAYBE"===t.rsvpReply&&(0,s.jsx)(d.A,{children:"Maybe Going"}),"INVITED"===t.rsvpReply&&(0,s.jsx)(d.A,{children:"Invited"}),t.waitlisted&&"YES"===t.rsvpReply&&(0,s.jsx)(d.A,{type:"warn",children:"Waitlisted"}),(0,s.jsx)(f.A,{attendee:t,"data-sentry-element":"PriceOptionBadge","data-sentry-source-file":"AttendeeItem.tsx"}),!(0,o.fP)(a)&&(0,s.jsx)(y.A,{attendee:t}),t.note&&(0,s.jsx)(d.A,{type:"warn",onClick:()=>e.onRequestEdit?.(),className:"cursor-pointer",children:"Note"}),t.ticketQuantity>1&&(0,s.jsxs)(d.A,{children:[t.ticketQuantity," attendees"]})]}),(0,s.jsxs)("div",{className:"text-gray-darker",children:["Registered:"," ",(0,p.Yq)(t.createdAt,x.i$+" "+x.DC)]})]}),(0,s.jsx)(i.A,{attendee:t,editable:j,event:a,themeArea:g,onRequestEdit:()=>e.onRequestEdit?.(),onSave:function(e){return v(t,e)},"data-sentry-element":"AttendeeItemButtons","data-sentry-source-file":"AttendeeItem.tsx"}),(0,s.jsx)(u.A,{isOpen:b,onClose:()=>N(!1),title:`Attendance History - ${t.member.name}`,themeArea:g,"data-sentry-element":"SimpleModal","data-sentry-source-file":"AttendeeItem.tsx",children:(0,s.jsxs)("div",{className:"space-y-4 max-h-[60vh] overflow-y-auto",children:[k&&k.map(e=>(0,s.jsx)(m.A,{attendance:e},e.id)),k&&0===k.length&&(0,s.jsx)("p",{children:"No attendance records found."}),!k&&(0,s.jsx)("p",{children:"Loading..."})]})})]})}},38367:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(37876),n=a(82037),r=a(80229);function l(e){let{attendee:t}=e,a=t.lineItems??[];return(0,s.jsxs)(n.Ex,{"data-sentry-element":"Badge","data-sentry-component":"PriceOptionBadge","data-sentry-source-file":"PriceOptionBadge.tsx",children:["Option: ",function(){if(0===a.length)return"None";if(1===a.length){let e=a[0].variant;return e?`${e.name} - ${(0,r.o5)(e.amount)}`:"Ticket"}return`${a.length} options`}()]})}},40843:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(37876),n=a(19984);function r(e){let{attendee:t,checked:a,onChange:r}=e;return(0,s.jsx)("div",{style:{width:"30px",height:"30px"},className:"bg-white flex bg-opacity-50","data-sentry-component":"AttendeeCheckbox","data-sentry-source-file":"AttendeeCheckbox.tsx",children:(0,s.jsx)(n.R,{checked:a,onChange:()=>r&&r(t,!a),"data-sentry-element":"LargeCheckbox","data-sentry-source-file":"AttendeeCheckbox.tsx"})})}},44226:(e,t,a)=>{a.d(t,{$:()=>l});var s=a(37876);a(14232);var n=a(78950),r=a(28418);function l({isOpen:e,onClose:t,onConfirm:a,themeArea:l}){return(0,s.jsxs)(n.A,{isOpen:e,onClose:t,showCloseButton:!0,title:"Take Attendee Off Waitlist",themeArea:l,"data-sentry-element":"SimpleModal","data-sentry-component":"WaitlistRemovalModal","data-sentry-source-file":"WaitlistRemovalModal.tsx",children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("p",{className:"p",children:"When the attendee is taken of the waitlist:"}),(0,s.jsxs)("ul",{className:"ul",children:[(0,s.jsx)("li",{className:"li",children:"They will receive an email notification informing them that they are now confirmed for the event."}),(0,s.jsx)("li",{className:"li",children:"If they owe money for the event, and they registered themselves, they will be charged automatically, and a receipt will be emailed to them."})]}),(0,s.jsx)("p",{className:"p",children:"Do you want to take this attendee off the waitlist?"})]}),(0,s.jsx)(r.fC,{cancel:{onClick:t,label:"Cancel"},themeArea:l,onClick:a,"data-sentry-element":"SubmitButtonRow","data-sentry-source-file":"WaitlistRemovalModal.tsx",children:"Confirm"})]})}},47390:(e,t,a)=>{a.d(t,{A:()=>x});var s=a(37876),n=a(14232),r=a(80229),l=a(47983),i=a(49995),d=a(39200),o=a.n(d),c=a(10969),u=a(72569),m=a(60549);function h(e){let{value:t,onChange:a}=e,n=(0,u.Eh)(),r=(0,c.SJ)(n).replace("form-component","");return r=r.split(" ").filter(e=>!e.startsWith("px-")).join(" "),e.disabled&&(r=r.replace(/\bbg-\w+/g,""),r=(0,i.A)(r,"bg-secondary-100")),r=(0,i.A)(r,e.addClassName),(0,s.jsx)("div",{className:r,"data-sentry-component":"DateFieldBasic","data-sentry-source-file":"DateFieldBasic.tsx",children:(0,s.jsx)(o(),{selected:t,disabled:e.disabled,showIcon:!0,icon:(0,s.jsx)(m.A,{className:"w-6 h-6 text-primary-900"}),onChange:a,dateFormat:"MMMM dd, yyyy",wrapperClassName:"grow",popperClassName:"font-montserrat","data-sentry-element":"DatePicker","data-sentry-source-file":"DateFieldBasic.tsx"})})}let p=function(e){let{date:t,disabled:a,onChange:n}=e;return(0,s.jsx)("input",{"aria-label":"Time",type:"time",className:"min-w-[10rem] px-2 py-[0.35rem] rounded-lg border border-secondary-300 text-secondary-600",value:`${t?String(t.getHours()).padStart(2,"0"):""}
1:${t?String(t.getMinutes()).padStart(2,"0"):""}`,onChange:e=>{try{if(!t)return;let a=new Date(t),s=parseInt(e.target.value.split(":")[0]),r=parseInt(e.target.value.split(":")[1]);isNaN(s)||isNaN(r)||(a.setHours(s),a.setMinutes(r),n(a))}catch(e){}},disabled:a,"data-sentry-component":"TimeFieldBasic","data-sentry-source-file":"TimeFieldBasic.tsx"})};function x(e){let t,a,{date:i,disabled:d=!1}=e;[t,a]=(0,n.useState)(null);let o=(0,n.useRef)(new Date),c=(0,n.useRef)(null),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{"hour"===t&&c&&c.current?document.activeElement!==c.current&&c.current.focus():"minute"===t&&u&&u.current&&document.activeElement!==u.current&&u.current.focus()}),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:(0,r.Wd)("flex flex-wrap justify-start items-center gap-4",d&&"disabled"),children:[(0,s.jsx)("div",{children:(0,s.jsx)(h,{disabled:e.readonly,value:i,onChange:function(t){var s;(s=t)&&(o.current=new Date,e.onChange&&e.onChange(s)),a("hour")},addClassName:"bg-white rounded-lg py-1","data-sentry-element":"DateFieldBasic","data-sentry-source-file":"DateTimeControl.tsx"})}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(p,{date:i,onChange:t=>{a("minute"),e.onChange&&e.onChange(t)},"data-sentry-element":"TimeFieldBasic","data-sentry-source-file":"DateTimeControl.tsx"}),(0,s.jsx)(l.A,{date:i,textClassName:"text-gray-darker text-sm","data-sentry-element":"TimezoneOffset","data-sentry-source-file":"DateTimeControl.tsx"})]})]})})}},65930:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(37876),n=a(82037),r=a(21993),l=a(43982),i=a(14938),d=a(48230),o=a.n(d);let c=({attendance:e})=>{let t=(0,i.ul)(e.event);return(0,s.jsxs)("div",{className:"border rounded-lg shadow p-2","data-sentry-component":"AttendanceCard","data-sentry-source-file":"AttendanceCard.tsx",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(o(),{href:`/events/${e.event.id}`,className:"a","data-sentry-element":"Link","data-sentry-source-file":"AttendanceCard.tsx",children:[e.event.title,"canceled"===e.event.status?" (canceled)":""]})}),(0,s.jsxs)("div",{children:[(0,l.Yq)(e.event.startAt,`${r.i$} ${r.DC}`),"canceled"===e.event.status&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(n.Ex,{type:"warn",withDot:!0,children:"canceled"})]}),"canceled"!==e.event.status&&t&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(n.Ex,{type:"warn",withDot:!0,children:"future"})]})]}),(0,s.jsxs)("div",{children:["Attendance status:"," ",(0,s.jsx)(n.Ex,{type:function(e){return e.waitlisted||"noshow"===e.status?"warn":"attended"===e.status?"success":"default"}(e),withDot:!0,"data-sentry-element":"Badge","data-sentry-source-file":"AttendanceCard.tsx",children:e.waitlisted?"waitlisted":e.status.toLowerCase()})]}),(0,s.jsxs)("div",{children:["Pay status: ",(0,s.jsx)(n.Ex,{withDot:!0,"data-sentry-element":"Badge","data-sentry-source-file":"AttendanceCard.tsx",children:e.payStatus.toLowerCase()})]})]},e.id)}},83731:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(37876),n=a(76019),r=a(13220),l=a(31808),i=a(14232);function d(e){let{member:t}=e,a=(0,r.Jc)().tagGroups.filter(e=>"MEMBER"===e.purpose&&["READ_WRITE","READ_ONLY"].includes(e.othersAccess)),d=t?.memberTags?.map(e=>e.tag)||[],c=(0,l.Z)(a,d);return(0,s.jsx)(s.Fragment,{children:c.map(e=>(0,s.jsx)(i.Fragment,{children:e.tags.map(t=>(0,s.jsxs)(n.A,{bgClass:"",className:"inline-flex items-center justify-between gap-2",children:[(0,s.jsx)(o,{tagGroup:e}),t.value]},t.value))},e.id))})}let o=({tagGroup:e})=>(0,s.jsx)("span",{className:"inline-block rounded-full w-2 h-2",style:{backgroundColor:e.color},"data-sentry-component":"Dot","data-sentry-source-file":"MemberTagsList.tsx",children:"\xa0"})},93436:(e,t,a)=>{a.d(t,{m:()=>s.A,qT:()=>n.A,Dt:()=>r.A,OB:()=>p,kb:()=>N,QP:()=>I});var s=a(34493),n=a(7802),r=a(47390),l=a(37876),i=a(14232),d=a(54587),o=a.n(d),c=a(78248),u=a(61745),m=a(97574),h=a(13220);function p(e){let t=(0,h.lF)(),[a,s]=(0,i.useState)(null),[n,r]=(0,i.useState)(""),[d]=(0,c._)(m.hk,{fetchPolicy:"no-cache"});if(!t)return null;function p(e){if(!t)return null;d({variables:{query:e,limit:20}}).then(({data:e})=>s(e?.searchEventImages?.results||[]))}return(0,l.jsxs)("div",{"data-sentry-component":"EventImagePicker","data-sentry-source-file":"EventImagePicker.tsx",children:[(0,l.jsx)("p",{className:"p mt-0",children:"Choose existing event image"}),(0,l.jsx)(u.A,{onChange:function(e){let t=e.target.value;r(t),p(t)},value:n,placeholder:"Search by event titleâ¦",onFocus:function(){p("")},onBlur:function(){setTimeout(()=>{s(null)},100)},"data-sentry-element":"TextInput","data-sentry-source-file":"EventImagePicker.tsx"}),a&&0===a.length&&(0,l.jsx)("p",{className:"p",children:"No results"}),a&&(0,l.jsx)("div",{className:"mt-2",children:a.map(t=>(0,l.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:()=>{e.onImageSelected(t)},children:(0,l.jsx)(o(),{src:t.thumbUrl,style:{height:"40px"},className:"mr-2 mb-2 h-10 w-auto",alt:"Event image thumbnail",width:0,height:0,sizes:"40px"})},t.id))})]})}
1var x=a(79560),f=a(1815),y=a(20437),g=a(70274),v=a(14668),j=a(97624),A=a(72569),w=a(28418),b=a(94829);function N(e){let t=i.createRef(),{jwt:a}=e,s=(0,y.q)(),n=(0,A.Eh)(),[r,d]=(0,i.useState)(null);async function c(){d(null);let n=await function(){s.reset(),d(null);let e=t&&t.current,n=e&&e.files&&e.files[0];if(n&&a)return s.wrapCall(e=>(0,f.IA)(e,n))}();return!!n&&(n.error||e.onUpload(n.data),!0)}function u(){s.reset(),d(null),t.current&&t.current.click()}return(0,l.jsxs)("div",{className:"flex flex-col gap-2","data-sentry-component":"EventPhotoUpload","data-sentry-source-file":"EventPhotoUpload.tsx",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(x.A,{onChange:c,className:"hidden",inputRef:t,onError:e=>d(e),"data-sentry-element":"FileInput","data-sentry-source-file":"EventPhotoUpload.tsx"}),s.processing&&(0,l.jsx)(o(),{src:"/static/images/progress-circle.gif",style:{width:"30px",height:"30px"},alt:"Uploading...",width:30,height:30})||(0,l.jsxs)("div",{children:["admin"===n?(0,l.jsxs)(v.A,{themeArea:n,onClick:u,className:"mr-2 mb-2",colorStyle:"primary",children:[(0,l.jsx)(j.A,{className:"h-5 w-5"}),"Upload photo"]}):(0,l.jsxs)(w.rA,{onClick:u,className:"mr-2 mb-2",children:[(0,l.jsx)(j.A,{className:"h-5 w-5"}),"Upload photo"]}),(0,l.jsxs)("ul",{className:"p text-gray-darker list-disc pl-4",children:[(0,l.jsx)("li",{children:"Upload an image with a 16:9 aspect ratio (width / height)"}),(0,l.jsx)("li",{children:"Uploaded images are cropped to fit 16:9"}),(0,l.jsx)("li",{children:"Larger images are resized to a recommended size"}),(0,l.jsx)("li",{children:"1024x576 pixels is a recommended upload size"}),(0,l.jsx)("li",{children:"If the image has text within it, make sure the text doesn't go near the image edges"})]})]})]}),r&&(0,l.jsx)(b.A,{type:"warning",onClose:()=>d(null),children:r}),(0,l.jsx)(g.A,{error:s.errorResponse,"data-sentry-element":"ApiErrors","data-sentry-source-file":"EventPhotoUpload.tsx"})]})}var C=a(9327),E=a(10290),k=a(49995);function I(e){let{displayedValueClass:t,venue:a}=e,s=(0,h.lF)(),[n,r]=(0,i.useState)([]),[d,o]=(0,i.useState)(!1),u=(0,i.useRef)(null),[m]=(0,c._)(E.WB,{fetchPolicy:"no-cache"});return(0,l.jsxs)("div",{id:e.id,"data-sentry-component":"VenueSearch","data-sentry-source-file":"VenueSearch.tsx",children:[!d&&(0,l.jsx)("div",{onClick:function(){o(!0),setTimeout(()=>{let e=u&&u.current;e&&e.focus()},100)},className:(0,k.A)("form-component border border-gray",t),children:a&&a.name||(0,l.jsx)("div",{className:"text-gray",children:"Search venue by nameâ¦"})}),d&&(0,l.jsx)(C.EM,{onItemSelected:function(t){e.onVenueSelected&&e.onVenueSelected(t),o(!1)},onSearch:function(e){s&&m({variables:{query:e}}).then(({data:e})=>{r(e?.searchVenues2||[])})},items:n,placeholder:"Search venue by nameâ¦",inputRef:u,onCancel:()=>o(!1),mapResultItem:e=>(0,l.jsxs)(l.Fragment,{children:[e.name," ",(0,l.jsxs)("span",{className:"text-gray-dark",children:["- ",e.address1]})]}),childrenAfter:(0,l.jsx)(C.Tw,{item:{id:"new",name:"â Add new venue"},onClick:()=>e.onNewVenueRequested&&e.onNewVenueRequested()})})]})}},97624:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(14232);let n=s.forwardRef(function({title:e,titleId:t,...a},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M12 3.75a.75.75 0 01.75.75v6.75h6.75a.75.75 0 010 1.5h-6.75v6.75a.75.75 0 01-1.5 0v-6.75H4.5a.75.75 0 010-1.5h6.75V4.5a.75.75 0 01.75-.75z",clipRule:"evenodd"}))})}}]); 2//# sourceMappingURL=3436-c944799bb7deaf9d.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.