1!function(){try{var 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]="578e087a-3a4d-4804-89b3-44884d081474",e._sentryDebugIdIdentifier="sentry-dbid-578e087a-3a4d-4804-89b3-44884d081474")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4393],{47974:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(14294).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},55958:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(14294).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},59007:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(14294).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},69684:(e,t,s)=>{s.d(t,{y:()=>a});function a(e,t){if(!t||0===t.length)return;let s=Object.keys(t[0]),a=new Blob([[s.join(","),...t.map(e=>s.map(t=>{var s;let a=String(null!=(s=e[t])?s:"").replace(/"/g,'""');return a.includes(",")||a.includes("\n")||a.includes('"')?'"'.concat(a,'"'):a}).join(","))].join("\n")],{type:"text/csv;charset=utf-8;"}),n=URL.createObjectURL(a),r=document.createElement("a");r.setAttribute("href",n),r.setAttribute("download",e),r.style.visibility="hidden",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}},84393:(e,t,s)=>{s.r(t),s.d(t,{EventGuestsTab:()=>_});var a=s(95155),n=s(12115),r=s(95604),l=s(5351),i=s(53489),d=s(6943),o=s(69684),c=s(77776),u=s(13406),x=s(27314),m=s(72251),h=s(55958),p=s(20146),b=s(74640),g=s(50984),f=s(18155),k=s(26615),y=s(13630),v=s(47974),j=s(89679),N=s(59007);let A=(0,s(14294).A)("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);var w=s(27500),E=s(92033),B=s(64269),F=s(15894),C=s(6259);function S(e){var t,s,l,i;let{guest:d,isOwner:o,isEditor:c,isCompleted:u,handleUpdateGuestStatus:S,handleRemoveGuest:M,sendingGuestInviteId:D,handleSendGuestInvite:I,setEditingGuest:_,setIsEditGuestOpen:G}=e,L=(0,r.useTranslations)("EventMissionControl"),[T,R]=(0,n.useState)(!1),[O,P]=(0,n.useState)(!1),U=async()=>{if(!d.guestToken)return;let e=window.location.origin,t="".concat(e,"/en/events/rsvp/guest/").concat(d.guestToken);try{await navigator.clipboard.writeText(t),R(!0),(0,F.oR)({title:L("copyPersonalLinkToast"),description:L("copyPersonalLinkToastDesc")}),setTimeout(()=>R(!1),2e3)}catch(e){(0,F.oR)({variant:"destructive",title:L("copyPersonalLinkFailed")})}},z=!!(null==(t=d.dietaryInfo)?void 0:t.trim()),H=!!(null==(s=d.note)?void 0:s.trim()),q=+!!z+ +!!H,V=!!(d.email||d.phone);return(0,a.jsxs)("div",{className:"rounded-[20px] border border-[#EBEBEB] bg-white p-4 shadow-[0_2px_12px_rgba(0,0,0,0.08)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center bg-[#F5F5F5] dark:bg-neutral-800",style:{borderRadius:"40% 40% 50% 50% / 30% 30% 70% 70%"},children:(0,a.jsx)(x.A,{className:"h-5 w-5 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate font-semibold text-[#171717] dark:text-neutral-100",children:d.name}),d.plusOnes>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-xs text-[#8A8A80] dark:text-neutral-400",children:["+",d.plusOnes," guests"]}),d.plusOneNames&&d.plusOneNames.length>0&&(0,a.jsxs)("p",{className:"text-xs leading-snug text-[#8A8A80] dark:text-neutral-400 break-words",children:["(",d.plusOneNames.join(", "),")"]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(o||c)&&!u&&(0,a.jsx)("button",{type:"button",onClick:U,disabled:!d.guestToken,className:"rounded-full border border-[#
1EBEBEB] p-1.5 text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] focus:ring-0 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-800 shrink-0 disabled:opacity-40 disabled:cursor-not-allowed","aria-label":L("copyPersonalLink"),title:L("copyPersonalLink"),children:T?(0,a.jsx)(m.A,{className:"h-4 w-4 text-green-500","aria-hidden":!0}):(0,a.jsx)(h.A,{className:"h-4 w-4","aria-hidden":!0})}),(o||c)&&!u&&(0,a.jsxs)(C.rI,{modal:!1,children:[(0,a.jsx)(C.ty,{asChild:!0,children:(0,a.jsx)("button",{type:"button",className:"rounded-full border border-[#EBEBEB] p-1.5 text-[#6B6B6B] transition-colors hover:bg-[#F9F9F9] focus:ring-0 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-800 shrink-0","aria-label":"Guest actions",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})}),(0,a.jsxs)(C.SQ,{align:"end",className:"z-50 rounded-2xl border border-[#EBEBEB] bg-white p-1 shadow-[0_2px_12px_rgba(0,0,0,0.08)] dark:border-neutral-700 dark:bg-neutral-900",children:[(0,a.jsxs)(C._2,{onClick:()=>{_(d),G(!0)},className:"rounded-xl p-3 text-xs font-medium normal-case",children:[(0,a.jsx)(b.A,{className:"mr-2 h-4 w-4 text-[#8A8A80] dark:text-neutral-400"})," Edit"]}),(0,a.jsxs)(C._2,{onClick:()=>S(d.id,"ATTENDING"),className:"rounded-xl p-3 text-xs font-medium normal-case",children:[(0,a.jsx)(g.A,{className:"mr-2 h-4 w-4 text-primary"})," Set Attending"]}),(0,a.jsxs)(C._2,{onClick:()=>S(d.id,"MAYBE"),className:"rounded-xl p-3 text-xs font-medium normal-case",children:[(0,a.jsx)(f.A,{className:"mr-2 h-4 w-4 text-amber-500"})," ",L("setMaybe")]}),(0,a.jsxs)(C._2,{onClick:()=>S(d.id,"DECLINED"),className:"rounded-xl p-3 text-xs font-medium normal-case",children:[(0,a.jsx)(k.A,{className:"mr-2 h-4 w-4 text-red-500"})," Set Declined"]}),(0,a.jsx)(C.mB,{className:"my-1 h-px bg-[#EBEBEB] dark:bg-neutral-700"}),(0,a.jsxs)(C._2,{onClick:()=>M(d.id),className:"rounded-xl p-3 text-xs font-medium normal-case text-red-600",children:[(0,a.jsx)(y.A,{className:"mr-2 h-4 w-4"})," Remove"]})]})]})]})]}),(0,a.jsxs)("div",{className:(0,B.cn)("mt-3 space-y-1.5",!V&&0===q&&"hidden"),children:[d.email&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-[#8A8A80] dark:text-neutral-400",children:[(0,a.jsx)(v.A,{className:"size-3.5 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{className:"min-w-0 truncate",children:d.email})]}),d.phone&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-[#8A8A80] dark:text-neutral-400",children:[(0,a.jsx)(j.A,{className:"size-3.5 shrink-0","aria-hidden":!0}),(0,a.jsx)("span",{children:d.phone})]}),q>0&&(0,a.jsxs)("div",{className:"pt-0.5",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>P(e=>!e),className:"inline-flex items-center gap-1 text-xs text-[#8A8A80] transition-colors hover:text-[#171717] dark:text-neutral-400 dark:hover:text-neutral-200","aria-expanded":O,children:[(0,a.jsx)("span",{children:O?L("hideDetails"):1===q?L("moreDetailsSingle",{count:1}):L("moreDetailsPlural",{count:q})}),(0,a.jsx)(N.A,{className:(0,B.cn)("h-3.5 w-3.5 transition-transform duration-200",O&&"rotate-180"),"aria-hidden":!0})]}),O&&(0,a.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[z&&(0,a.jsxs)("div",{className:"flex items-start gap-1.5 text-sm text-[#8A8A80] dark:text-neutral-400",children:[(0,a.jsx)(A,{className:"mt-0.5 size-3.5 shrink-0 text-primary","aria-hidden":!0}),(0,a.jsx)("span",{className:"leading-snug",children:d.dietaryInfo})]}),H&&(0,a.jsxs)("div",{className:"flex items-start gap-1.5 text-sm text-[#8A8A80] dark:text-neutral-400",children:[(0,a.jsx)(w.A,{className:"mt-0.5 size-3.5 shrink-0 text-blue-500","aria-hidden":!0}),(0,a.jsxs)("span",{className:"leading-snug",children:[(0,a.jsxs)("span",{className:"font-medium text-[#171717] dark:text-neutral-200",children:[L("guestNotePrefix"),":"," "]}),d.note.trim()]})]})]})]})]}),(0,a.jsx)("div",{className:"mt-3 border-t border-[#EBEBEB] pt-3 dark:border-neutral-800",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:["ATTENDING"===(i=null!=(l=d.status)?l:"PENDING")?(0,a.jsx)("span",{className:"rounded-full bg-[#F0FAF0] text-[#4CAF50] text-xs px-2 py-0.5 dark:bg-green-950/30 dark:text-green-400",children:L("guestStatusAttending")}):"MAYBE"===i?(0,a.jsx)("span",{className:"rounded-full bg-[#FAEEDA] text-[#854F0B] text-xs px-2 py-0.5 dark:bg-amber-950/30 dark:text-amber-400",children:L("guestStatusMaybe")}):"DECLINED"===i?(0,a.jsx)("span",{className:"rounded-full bg-[#FFF0F0] text-[#EF4444] text-xs px-2 py-0.5 dark:bg-red-950/30 dark:text-red-400",children:L("guestStatusDeclined")}):(0,a.jsx)("span",{className:"rounded-full bg-[#F5F5F5] text-[#8A8A80] dark:bg-neutral-800 dark:text-neutral-400 text-xs px-2 py-0.5",children:L("guestStatusInvited")}),o&&!u&&d.email&&(0,a.jsxs)("button",{type:"button",onClick:()=>I(d.id),disabled:D===d.id||!!d.invitedAt,className:"inline-flex items-center gap-1.5 rounded-full bg-[#171717] px-3 py-1.5 text-xs font-semibold text-white transition-opacity hover:opacity-90 dark:bg-neutral-100 dar
1k:text-[#171717] disabled:cursor-not-allowed disabled:opacity-60",children:[D===d.id?(0,a.jsx)(E.A,{className:"h-3.5 w-3.5 animate-spin"}):null,d.invitedAt?L("inviteSent"):L("sendInvite")]})]})})]})}var M=s(30926);let D=(0,M.createServerReference)("7082452e974832b1e731bd5919750e5276050986fc",M.callServer,void 0,M.findSourceMapURL,"getEventGuestsPageAction"),I=(0,M.createServerReference)("408966e869ff700b8334a7233f64e59390554ddf2e",M.callServer,void 0,M.findSourceMapURL,"getAllEventGuestsAction");function _(e){var t;let{isOwner:s,isEditor:x,isNGOMission:m,isCompleted:h,event:p,guests:b,handleUpdateGuestStatus:g,handleRemoveGuest:f,sendingGuestInviteId:k,handleSendGuestInvite:y,setIsAddGuestOpen:v,setEditingGuest:j,setIsEditGuestOpen:N}=e,A=(0,r.useTranslations)("EventMissionControl"),w=(0,r.useTranslations)("Common"),[E,B]=(0,n.useState)(b),[F,C]=(0,n.useState)(null!=(t=null==p?void 0:p.guestsHasMore)&&t),[M,_]=(0,n.useState)(!1),[G,L]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;B(b),C(null!=(e=null==p?void 0:p.guestsHasMore)&&e)},[b,null==p?void 0:p.guestsHasMore]);let T=async()=>{if(!M&&F&&(null==p?void 0:p.id)){_(!0);try{let t=await D(p.id,E.length);if(t.success&&t.data){var e;B(e=>[...e,...t.data]),C(null!=(e=t.hasMore)&&e)}}finally{_(!1)}}},R=async()=>{L(!0);try{var e,t;let s=E;if(F||(null==p||null==(e=p.guestStats)?void 0:e.totalCount)&&p.guestStats.totalCount>E.length){let e=await I(p.id);e.success&&e.data&&(s=e.data)}let a="".concat(A("exportGuestsFilename"),"-").concat(null==(t=p.title)?void 0:t.toLowerCase().replace(/\s+/g,"-"),"-").concat((0,c.GP)(new Date,"yyyy-MM-dd"),".csv"),n=s.map(e=>({Name:e.name,Status:e.status,PlusOnes:e.plusOnes,DietaryInfo:e.dietaryInfo||"",Email:e.email||""}));(0,o.y)(a,n)}finally{L(!1)}};return(0,a.jsxs)(u.av,{value:"guests",className:"mt-0 focus-visible:outline-none space-y-10",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between animate-in fade-in slide-in-from-right-4 duration-500",children:[(0,a.jsxs)("h3",{className:"text-xl font-bold normal-case text-[#171717] dark:text-neutral-100 flex items-center gap-3",children:[(0,a.jsx)(l.A,{className:"h-7 w-7 text-primary","aria-hidden":!0})," ",m?A("guestMatrixHeading"):A("menuGuestsDefault")]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[E.length>0&&(0,a.jsxs)("button",{type:"button",onClick:R,disabled:G,className:"flex items-center gap-2 rounded-full bg-[#171717] text-white px-4 py-2 text-sm font-semibold active:scale-95 transition-all disabled:opacity-50 dark:bg-neutral-100 dark:text-[#171717]",children:[(0,a.jsx)(i.A,{className:"h-4 w-4"}),G?"...":A("exportGuests")]}),(s||x)&&!h&&(0,a.jsx)("button",{type:"button",onClick:()=>v(!0),className:"rounded-full bg-[#171717] text-white text-xs font-semibold px-4 py-2 transition-opacity hover:opacity-90 dark:bg-neutral-100 dark:text-[#171717]",children:m?A("newRegistrationBtn"):A("registerGuestBtnDefault")})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:E.length>0?E.map(e=>(0,a.jsx)(S,{guest:e,isOwner:s,isEditor:x,isCompleted:h,handleUpdateGuestStatus:g,handleRemoveGuest:f,sendingGuestInviteId:k,handleSendGuestInvite:y,setEditingGuest:j,setIsEditGuestOpen:N},e.id)):(0,a.jsxs)("div",{className:"col-span-full flex flex-col items-center gap-4 py-20 text-center text-[#8A8A80] dark:text-neutral-400",children:[(0,a.jsx)(d.A,{className:"mx-auto mb-2 h-16 w-16 opacity-40","aria-hidden":!0}),(0,a.jsx)("p",{className:"text-sm font-normal normal-case",children:"No guests registered yet."})]})}),F&&E.length>0&&(0,a.jsx)("div",{className:"mt-6 flex justify-center",children:(0,a.jsx)("button",{type:"button","data-testid":"load-more-guests-btn",onClick:T,disabled:M,className:"rounded-full border border-[#EBEBEB] bg-white px-6 py-2.5 text-sm font-semibold text-[#171717] transition-colors hover:bg-[#F9F9F9] disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 dark:hover:bg-neutral-800",children:M?"...":w("loadMore")||"Load More"})})]})}},89679:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(14294).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])}}]);
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.