PageSourceSearch

https://meet.com/_next/static/chunks/1790-3acbac605dd20dab.js

js meet.com collected 2026-10-04 03:59:08 UTC 34,565 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1790],{4781:(e,t,s)=>{s.d(t,{A:()=>r});var n,a,l=s(55729);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)({}).hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(null,arguments)}let r=function(e){return l.createElement("svg",i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=l.createElement("path",{d:"M11 17C14.3137 17 17 14.3137 17 11C17 7.68629 14.3137 5 11 5C7.68629 5 5 7.68629 5 11C5 14.3137 7.68629 17 11 17Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),a||(a=l.createElement("path",{d:"M20 20L16 16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}},11790:(e,t,s)=>{s.d(t,{R:()=>z});var n=s(6029),a=s(55729),l=s(81278),i=s(35921),r=s(67497),c=s(73510),d=s(63242),o=s(90033),u=s(50212),x=s(11083),m=s(53662),p=s(58578),h=s(7194),v=s(84668),b=s(27914),g=s(1985),y=s(4781),f=s(47275),j=s(24686);let N=[v.Gender.MALE,v.Gender.FEMALE,v.Gender.OTHER,v.Gender.PREFER_NOT_TO_SAY],k="inline-flex min-h-11 items-center justify-center gap-2 rounded-full bg-background-surface px-4 py-2 text-sm text-text-primary transition-colors hover:bg-background-secondary/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50 disabled:cursor-not-allowed disabled:opacity-50",A="inline-flex min-h-11 items-center justify-center gap-2 rounded-full bg-interactive-primary px-5 py-2 text-sm text-text-on-primary transition-colors hover:bg-interactive-primary-hover hover:text-text-on-primary-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50 disabled:cursor-not-allowed disabled:bg-interactive-primary/30 disabled:text-text-on-primary/60 disabled:hover:bg-interactive-primary/30",S="text-xs font-medium uppercase tracking-[0.12em] text-text-secondary",C="w-full rounded-xl bg-background-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-tertiary focus:outline-none focus:ring-0 border-0",w=e=>"string"==typeof e?e:Array.isArray(e)?e[0]:void 0,E=e=>{var t;return null!=(t=e.user.display_name)?t:e.user.username},M=e=>e.waitlist_status===v.EventWaitlistStatus.PENDING?"Pending":e.waitlist_status===v.EventWaitlistStatus.DENIED?"Denied":e.waitlist_status===v.EventWaitlistStatus.APPROVED?"Approved":e.status===v.EventAttendeeStatus.GOING?"Going":e.status===v.EventAttendeeStatus.MAYBE?"Maybe":e.status===v.EventAttendeeStatus.CANT_GO?"Can't go":"Invited",I=e=>({userId:e.user.id,name:E(e),username:e.user.username,avatarUrl:(0,h.cG1)({user:e.user,fallback:h.AAV.avatar.default,variant:"sm"}),statusLabel:M(e)}),T=()=>(0,n.jsx)("span",{"aria-label":"Loading recipients",className:"inline-block size-3 rounded-full border-2 border-text-tertiary/30 border-t-text-secondary motion-safe:animate-spin"}),G=e=>{let{count:t,selectedGuestCount:s,isLoading:a}=e,l=(null!=t?t:0)>0||s>0,i=s>0&&void 0!==t?"".concat(t," + ").concat(s):"".concat(null!=t?t:0);return(0,n.jsxs)("div",{className:"inline-flex min-h-9 shrink-0 items-center gap-1.5 rounded-full px-2.5 text-xs text-text-tertiary","aria-live":"polite",children:[(0,n.jsx)("span",{children:"Total:"}),a?(0,n.jsx)(T,{}):(0,n.jsx)("span",{className:(0,u.A)("font-medium",l?"text-text-secondary":"text-status-warning"),children:i})]})},F=e=>{let{title:t,children:s}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:(0,u.A)(S,"mb-2"),children:t}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:s})]})},L=e=>{let{label:t,selected:s,onClick:a}=e;return(0,n.jsx)("button",{type:"button",onClick:a,className:(0,u.A)("inline-flex min-h-11 items-center rounded-full bg-background-inverse/[0.06] px-4 py-2 text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50",s?"bg-background-secondary text-text-primary":"text-text-secondary hover:bg-background-secondary/45 hover:text-text-primary"),children:t})},O=e=>{let{children:t,isOpen:s,onClick:a,disabled:l=!1}=e;return(0,n.jsxs)("button",{type:"button","aria-pressed":s,onClick:a,disabled:l,className:(0,u.A)("inline-flex min-h-11 shrink-0 items-center gap-2 rounded-full px-4 py-2 text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50",s?"bg-background-secondary text-text-primary":"bg-background-surface text-text-secondary hover:bg-background-secondary/50 hover:text-text-primary",l&&"cursor-default hover:bg-background-secondary/60 hover:text-text-secondary"),children:[(0,n.jsx)("span",{children:t}),!l&&(0,n.jsx)(x.A,{"aria-hidden":"true",className:(0,u.A)("size-4 shrink-0 text-text-tertiary transition-transform",s&&"rotate-180")}
1)]})},P=e=>{let{label:t,isOpen:s,onClick:a}=e;return(0,n.jsxs)("div",{className:"inline-flex min-h-11 shrink-0 items-center gap-2 rounded-full bg-background-surface py-1 pl-4 pr-1.5 text-sm text-text-secondary",children:[(0,n.jsx)("span",{className:"text-text-secondary",children:"To:"}),(0,n.jsxs)("button",{type:"button","aria-pressed":s,"aria-label":"To: ".concat(t),onClick:a,className:(0,u.A)("inline-flex min-h-9 items-center gap-2 rounded-full px-3 font-medium text-text-primary transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50",s?"bg-background-secondary":"bg-background-primary/55 hover:bg-background-secondary/70"),children:[(0,n.jsx)("span",{children:t}),(0,n.jsx)(x.A,{"aria-hidden":"true",className:(0,u.A)("size-4 shrink-0 text-text-tertiary transition-transform",s&&"rotate-180")})]})]})},D=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:"mt-4 space-y-5 pt-4 sm:pt-5",children:t})},_=e=>{let{label:t,value:s,onClick:a}=e;return(0,n.jsxs)("button",{type:"button",onClick:a,className:"flex min-h-14 w-full items-center justify-between gap-4 rounded-2xl bg-background-secondary/45 px-4 text-left",children:[(0,n.jsx)("span",{className:"text-sm text-text-secondary",children:t}),(0,n.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-2 font-medium text-sm text-text-primary",children:[(0,n.jsx)("span",{className:"truncate",children:s}),(0,n.jsx)(x.A,{"aria-hidden":"true",className:"size-4 shrink-0 -rotate-90 text-text-tertiary"})]})]})},R=e=>{let{value:t,onChange:l,disabled:i,autoFocus:r=!0,surface:c="card"}=e,[d,o]=(0,a.useState)(null),x="inline"===c;return((0,a.useEffect)(()=>{if(d)return;let e=!0;return Promise.all([s.e(8635),s.e(8213),s.e(9456),s.e(9559)]).then(s.bind(s,89559)).then(t=>{e&&o(()=>t.EventDescriptionEditorImpl)}),()=>{e=!1}},[d]),d)?(0,n.jsx)("div",{className:(0,u.A)("overflow-hidden",x?"h-[292px] bg-transparent sm:h-[296px]":"h-[300px] rounded-3xl bg-background-surface sm:h-[320px]"),children:(0,n.jsx)(d,{label:"Message",value:t,onChange:l,placeholder:"Write a blast to your guests...",disabled:i,textareaClassName:"!min-h-[180px] !max-h-[180px] sm:!min-h-[220px] sm:!max-h-[220px]",autoFocus:r,onDone:()=>void 0,hideDoneButton:!0,toolbarVariant:"blast"})}):(0,n.jsxs)("div",{className:(0,u.A)("flex animate-pulse flex-col gap-4 p-4",x?"h-[292px] bg-transparent sm:h-[296px]":"h-[300px] rounded-3xl bg-background-inverse/[0.035] sm:h-[320px]"),children:[(0,n.jsx)("div",{className:"h-10 w-64 rounded-xl bg-background-inverse/10"}),(0,n.jsx)("div",{className:"h-6 w-full rounded bg-background-inverse/10"}),(0,n.jsx)("div",{className:"h-6 w-[82%] rounded bg-background-inverse/10"}),(0,n.jsx)("div",{className:"h-6 w-[54%] rounded bg-background-inverse/10"})]})},z=e=>{var t,s;let{event:z,isComposerOpen:B=!1,onComposerOpenChange:W,presentation:H="modal"}=e,U=(0,l.useRouter)(),q=(0,i.S)(),V=o.FH.useUtils(),Q="inline"===H,Y=(0,a.useMemo)(()=>{let e=w(U.query.attendeeStatus);return e&&Object.values(v.EventAttendeeStatus).includes(e)?e:void 0},[U.query.attendeeStatus]),J=(0,a.useMemo)(()=>{let e=w(U.query.waitlistStatus);return e&&Object.values(v.EventWaitlistStatus).includes(e)?e:void 0},[U.query.waitlistStatus]),$=(0,a.useMemo)(()=>{let e=w(U.query.gender);return(e=>void 0!==e&&N.includes(e))(e)?e:void 0},[U.query.gender]),K=(0,a.useMemo)(()=>w(U.query.inviterId),[U.query.inviterId]),Z=(0,a.useMemo)(()=>(e=>{let t=w(e);return t?t.split(",").map(e=>e.trim()).filter(Boolean):[]})(U.query.tags),[U.query.tags]),X=(0,a.useMemo)(()=>{let e=w(U.query.checkedInOnly);return"1"===e||"true"===e},[U.query.checkedInOnly]),ee=void 0!==Y||void 0!==J||void 0!==$||void 0!==K||Z.length>0||X,[et,es]=(0,a.useState)("CUSTOM"),[en,ea]=(0,a.useState)(null!=(t=w(U.query.search))?t:""),[el,ei]=(0,a.useState)(Y?[Y]:ee?[]:h.YtH),[er,ec]=(0,a.useState)(J?[J===v.EventWaitlistStatus.APPROVED?h.Lzr:J]:ee?[]:h.SeB),[ed,eo]=(0,a.useState)($),[eu,ex]=(0,a.useState)(K),[em,ep]=(0,a.useState)(Z),[eh,ev]=(0,a.useState)(X),[eb,eg]=(0,a.useState)([]),[ey,ef]=(0,a.useState)(""),[ej,eN]=(0,a.useState)(""),[ek,eA]=(0,a.useState)(""),[eS,eC]=(0,a.useState)(""),[ew,eE]=(0,a.useState)([v.DeliveryChannel.EMAIL]),[eM,eI]=(0,a.useState)(!1),[eT,eG]=(0,a.useState)(!1),[eF,eL]=(0,a.useState)(!1),[eO,eP]=(0,a.useState)(null),[eD,e_]=(0,a.useState)("compose"),eR=(0,d.d)(en,250,""),ez=e=>{Q||null==W||W(e),e||(eP(null),e_("compose"))},eB=Q||B,eW=(0,h.NkW)(ej),eH=eW.trim().length>0,{data:eU,isLoading:eq}=o.FH.eventBlasts.getComposerConfig.useQuery({eventId:z.id},{enabled:eB}),eV=null==eU?void 0:eU.defaults,eQ=null==eU?void 0:eU.capabilities,eY=(0,a.useMemo)(()=>{var e;return new Map((null!=(e=null==eQ?void 0:eQ.deliveryChannelAvailability)?e:[]).map(e=>[e.channel,e]))},[null==eQ?void 0:eQ.deliveryChannelAvailability]),eJ=(0,a.useMemo)(()=>h.mcS.filter(e=>{var t;let s=eY.get(e.channel);return s?s.enabled:(null!=(t=null==eQ?void 0:eQ.deliveryChannels)?t:[]).includes(e.channel)}),[null==eQ?void 0:eQ.deliveryChannels,eY]);(0,a.useEffect)(()=>{var e,t,s,n,a;
1if(!eU||eF)return;let l=null!=(t=null==eV?void 0:eV.deliveryChannels)?t:[v.DeliveryChannel.EMAIL],i=new Set(eJ.map(e=>e.channel)),r=l.filter(e=>i.has(e)),c=null==(e=eJ[0])?void 0:e.channel;eC(null!=(s=eU.testEmailDefault)?s:""),eE(r.length>0?r:c?[c]:[]),eI(null!=(n=null==eV?void 0:eV.includeQr)&&n),eG(null!=(a=null==eV?void 0:eV.includeAppleWallet)&&a),eL(!0)},[eJ,eF,eU,eV]);let e$=(0,a.useMemo)(()=>({...(0,h.JET)({attendeeStatuses:el,waitlistFilters:er,checkedIn:eh}),inviterId:eu,gender:ed,tags:em.length>0?em:void 0}),[el,eh,ed,eu,em,er]),eK=(0,a.useMemo)(()=>({search:eR.trim()||void 0,searchInviteLinks:!1}),[eR]),eZ=(0,a.useMemo)(()=>(0,h.hKn)(et,e$),[e$,et]),eX=en.trim().length>0,e0=(e=>{let t="CUSTOM"===e.recipientPreset?(e=>{let t=(0,h.vUt)(e.filters),s=(0,h.vUt)((0,h.JET)({attendeeStatuses:h.YtH,waitlistFilters:h.SeB,checkedIn:!1}));return(0,h.teW)(e)&&t===s?"Confirmed guests":(0,h.H3r)(e)&&0===t?"All guests":e.filters.checkedIn&&(0,h.vUt)({checkedIn:!0})===(0,h.vUt)(e.filters)?"Checked in":"Filtered guests"})({attendeeStatuses:e.attendeeStatuses,waitlistFilters:e.waitlistFilters,checkedIn:e.checkedIn,filters:e.customFilters}):(0,h.Zjh)(e.recipientPreset);return e.selectedGuestCount>0?"".concat(t," + ").concat(e.selectedGuestCount," selected"):t})({recipientPreset:et,customFilters:e$,attendeeStatuses:el,waitlistFilters:er,checkedIn:eh,selectedGuestCount:eb.length}),e1=(0,a.useMemo)(()=>({eventId:z.id,...eZ,page:1,limit:1,orderBy:"updated_at",orderDir:"desc"}),[eZ,z.id]),{data:e2,isFetching:e5}=o.FH.eventAttendees.getGuestList.useQuery(e1,{enabled:eB}),e3=(0,a.useMemo)(()=>({eventId:z.id,...eK,page:1,limit:8,orderBy:"updated_at",orderDir:"desc"}),[z.id,eK]),e4="audience"===eO||"audience"===eD,e6=eB&&eX&&e4,{data:e7,isFetching:e9}=o.FH.eventAttendees.getGuestList.useQuery(e3,{enabled:e6}),e8=(0,a.useMemo)(()=>({eventId:z.id,page:1,limit:50,orderBy:"updated_at",orderDir:"desc"}),[z.id]),{data:te}=o.FH.eventAttendees.getGuestList.useQuery(e8,{enabled:eB&&e4}),tt=o.FH.eventBlasts.preview.useMutation({onError:e=>(0,o.JA)(e,"Unable to build the blast preview.")}),ts=o.FH.eventBlasts.send.useMutation({onSuccess:e=>{p.Ay.success("Blast queued for ".concat(e.audience.totalRecipients," recipient").concat(1===e.audience.totalRecipients?"":"s")),V.eventBlasts.listHistory.invalidate({eventId:z.id})},onError:e=>(0,o.JA)(e,"Failed to send the blast.")}),tn=o.FH.eventBlasts.sendTestEmail.useMutation({onSuccess:e=>{p.Ay.success("Sent test email to ".concat(e.email))},onError:e=>(0,o.JA)(e,"Failed to send the test email.")}),ta=()=>{tt.reset()},tl=e=>{eP(t=>t===e?null:e)},ti=()=>{es("CUSTOM"),ta()},tr=e=>{ei(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),ti()},tc=e=>{ec(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),ti()},td=(0,a.useMemo)(()=>{var e;let t=new Map;for(let s of null!=(e=null==te?void 0:te.attendees)?e:[])s.invited_by&&!t.has(s.invited_by.id)&&t.set(s.invited_by.id,s.invited_by);return Array.from(t.values())},[null==te?void 0:te.attendees]),to=(0,a.useMemo)(()=>eb.map(e=>e.userId),[eb]),tu=(0,a.useMemo)(()=>new Set(to),[to]),tx=(0,a.useMemo)(()=>{var e;return null!=(e=null==e7?void 0:e7.attendees)?e:[]},[null==e7?void 0:e7.attendees]),tm=(0,a.useMemo)(()=>tx.filter(e=>!tu.has(e.user.id)),[tx,tu]),tp=(0,a.useMemo)(()=>(0,h.$je)({eventTitle:z.title,defaults:eV,input:{emailSubject:ey,emailBody:ej,shortMessage:ek,deliveryChannels:ew,includeQr:eM,includeAppleWallet:eT}}),[eV,ew,ej,ey,z.title,eT,eM,ek]),th=()=>({eventId:z.id,audienceLabel:e0,attendees:{selectionMode:"ALL_MATCHING",...eZ,includeUserIds:to,excludeUserIds:[]},compose:tp}),tv=()=>!!eH||(p.Ay.error("Write a message before sending a blast."),!1),tb=()=>tN?(p.Ay.error("Still checking recipients."),!1):!!tk||(p.Ay.error("No guests match this audience."),!1),tg=async()=>{let e;if(!tv()||!(ew.length>0||(p.Ay.error("No delivery channels are enabled for this blast."),0))||!tb())return;try{e=await tt.mutateAsync(th())}catch(e){return}if(0===e.audience.totalRecipients)return void p.Ay.error("No guests match this audience.");let t=e.warnings.length>0?"\n\n".concat(e.warnings.join("\n")):"";if("Send Blast"===await q({title:"Send blast to ".concat(e.audience.totalRecipients," recipient").concat(1===e.audience.totalRecipients?"":"s","?"),body:["Audience: ".concat(e0),"Delivery: ".concat(tI),tA?"Email-capable: ".concat(e.audience.emailCapableRecipients):null,tS?"Push-capable: ".concat(e.audience.pushCapableRecipients):null,tC?"SMS-capable: ".concat(e.audience.smsCapableRecipients):null,tw?"WhatsApp-capable: ".concat(e.audience.whatsappCapableRecipients):null].filter(
1Boolean).join("\n").concat(t),ok:"Send Blast",cancel:"Cancel",transitionStyle:"fade"})){try{await ts.mutateAsync(th())}catch(e){return}eN(""),ef(""),eA(""),eP(null),ez(!1),ta()}},ty=async()=>{var e;if(!tv()||!tb())return;if(!ew.includes(v.DeliveryChannel.EMAIL))return void p.Ay.error("Turn on email delivery before sending a test email.");let t=eS.trim();if(!t)return void p.Ay.error("Enter a test email address in Options.");let s=tt.data;if(!s)try{s=await tt.mutateAsync(th())}catch(e){return}let n=null==(e=s.emailPreviews[0])?void 0:e.kind;if(!n)return void p.Ay.error("No supported email recipient type is available for a test send.");try{await tn.mutateAsync({...th(),testEmail:t,previewKind:n})}catch(e){return}},tf=(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("div",{className:"space-y-3",children:(0,n.jsxs)("select",{"aria-label":"Inviter",name:"blastInviter",value:null!=eu?eu:"",onChange:e=>{ex(e.target.value||void 0),ti()},className:C,children:[(0,n.jsx)("option",{value:"",children:"All inviters"}),td.map(e=>{var t;return(0,n.jsx)("option",{value:e.id,children:null!=(t=e.display_name)?t:"Unnamed"},e.id)})]})}),(0,n.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,n.jsxs)(F,{title:"RSVP",children:[(0,n.jsx)(L,{label:"Going",selected:el.includes(v.EventAttendeeStatus.GOING),onClick:()=>tr(v.EventAttendeeStatus.GOING)}),(0,n.jsx)(L,{label:"Maybe",selected:el.includes(v.EventAttendeeStatus.MAYBE),onClick:()=>tr(v.EventAttendeeStatus.MAYBE)}),(0,n.jsx)(L,{label:"Can't go",selected:el.includes(v.EventAttendeeStatus.CANT_GO),onClick:()=>tr(v.EventAttendeeStatus.CANT_GO)}),(0,n.jsx)(L,{label:"Invited",selected:el.includes(v.EventAttendeeStatus.INVITED),onClick:()=>tr(v.EventAttendeeStatus.INVITED)})]}),(0,n.jsxs)(F,{title:"Approval",children:[(0,n.jsx)(L,{label:"Accepted",selected:er.includes(h.Lzr),onClick:()=>tc(h.Lzr)}),(0,n.jsx)(L,{label:"Pending",selected:er.includes(v.EventWaitlistStatus.PENDING),onClick:()=>tc(v.EventWaitlistStatus.PENDING)}),(0,n.jsx)(L,{label:"Denied",selected:er.includes(v.EventWaitlistStatus.DENIED),onClick:()=>tc(v.EventWaitlistStatus.DENIED)})]}),(0,n.jsxs)(F,{title:"Gender",children:[(0,n.jsx)(L,{label:"Male",selected:ed===v.Gender.MALE,onClick:()=>{eo(ed===v.Gender.MALE?void 0:v.Gender.MALE),ti()}}),(0,n.jsx)(L,{label:"Female",selected:ed===v.Gender.FEMALE,onClick:()=>{eo(ed===v.Gender.FEMALE?void 0:v.Gender.FEMALE),ti()}}),(0,n.jsx)(L,{label:"Other",selected:ed===v.Gender.OTHER,onClick:()=>{eo(ed===v.Gender.OTHER?void 0:v.Gender.OTHER),ti()}}),(0,n.jsx)(L,{label:"Prefer not to say",selected:ed===v.Gender.PREFER_NOT_TO_SAY,onClick:()=>{eo(ed===v.Gender.PREFER_NOT_TO_SAY?void 0:v.Gender.PREFER_NOT_TO_SAY),ti()}})]}),(0,n.jsx)(F,{title:"Other",children:(0,n.jsx)(L,{label:"Checked in",selected:eh,onClick:()=>{ev(e=>!e),ti()}})})]}),(0,n.jsx)(j.$,{eventId:z.id,selectedTags:em,onTagsChange:e=>{ep(e),ti()}}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(y.A,{className:"absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary"}),(0,n.jsx)("input",{"aria-label":"Search guests",name:"blastGuestSearch",type:"search",autoComplete:"off",enterKeyHint:"search",value:en,onChange:e=>{ea(e.target.value),ta()},placeholder:"Search guests to add...",className:(0,u.A)(C,"py-2 pl-9 pr-3")})]}),eb.length>0&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("p",{className:S,children:"Selected guests"}),(0,n.jsx)("div",{className:"space-y-2",children:eb.map(e=>(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl bg-background-secondary/45 p-2 pr-3",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,n.jsx)("img",{src:e.avatarUrl,alt:"",className:"h-avatar-half w-avatar-half shrink-0 rounded-full bg-interactive-primary object-cover",onError:e=>{e.currentTarget.src=h.AAV.avatar.default}}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate font-medium text-sm text-text-primary",children:e.name}),(0,n.jsxs)("p",{className:"mt-0.5 truncate text-xs text-text-tertiary",children:["@",e.username," \xb7 ",e.statusLabel]})]})]}),(0,n.jsx)("button",{type:"button","aria-label":"Remove ".concat(e.name),onClick:()=>{var t;return t=e.userId,void(eg(e=>e.filter(e=>e.userId!==t)),ta())},className:"flex size-8 shrink-0 items-center justify-center rounded-full text-status-error transition-colors hover:bg-background-primary/65",children:(0,n.jsx)(f.A,{className:"size-4"})})]}
1,e.userId))})]}),eX&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,n.jsx)("p",{className:S,children:"Matching guests"}),e9?(0,n.jsx)(T,{}):tm.length>0?(0,n.jsx)("button",{type:"button",onClick:()=>{0!==tm.length&&(eg(e=>{let t=new Set(e.map(e=>e.userId)),s=tm.map(I).filter(e=>!t.has(e.userId));return s.length>0?[...e,...s]:e}),ta())},className:"font-medium text-xs text-interactive-primary transition-opacity hover:opacity-80",children:"Add all"}):null]}),(0,n.jsxs)("div",{className:"space-y-2",children:[tm.map(e=>(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl p-2 transition-colors hover:bg-background-surface",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[(0,n.jsx)("img",{src:(0,h.cG1)({user:e.user,fallback:h.AAV.avatar.default,variant:"sm"}),alt:"",className:"h-avatar-half w-avatar-half shrink-0 rounded-full bg-interactive-primary object-cover",onError:e=>{e.currentTarget.src=h.AAV.avatar.default}}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"truncate font-medium text-sm text-text-primary",children:E(e)}),(0,n.jsxs)("p",{className:"mt-0.5 truncate text-xs text-text-tertiary",children:["@",e.user.username," \xb7 ",M(e)]})]})]}),(0,n.jsx)("button",{type:"button","aria-label":"Add ".concat(E(e)),onClick:()=>(e=>{let t=I(e);eg(e=>e.some(e=>e.userId===t.userId)?e:[...e,t]),ta()})(e),className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-background-secondary text-text-primary transition-colors hover:bg-background-secondary/75",children:(0,n.jsx)(g.A,{className:"size-4"})})]},e.id)),!e9&&0===tm.length&&(0,n.jsx)("p",{className:"rounded-2xl bg-background-surface px-4 py-3 text-sm text-text-tertiary",children:tx.length>0?"All matching guests added.":"No guests match this search."})]})]})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,n.jsx)("button",{type:"button",onClick:()=>{es("CUSTOM"),ea(""),ei([]),ec([]),eo(void 0),ex(void 0),ep([]),ev(!1),eg([]),ta()},className:k,children:"Clear filters"})})]}),tj=null==e2?void 0:e2.total,tN=eB&&(e5||void 0===tj),tk=!tN&&((null!=tj?tj:0)>0||eb.length>0),tA=ew.includes(v.DeliveryChannel.EMAIL),tS=ew.includes(v.DeliveryChannel.PUSH),tC=ew.includes(v.DeliveryChannel.SMS),tw=ew.includes(v.DeliveryChannel.WHATSAPP),tE=[tS?"Push":null,tC?"SMS":null,tw?"WhatsApp":null].filter(e=>null!==e),tM=tE.length>1?"".concat(tE.slice(0,-1).join(", ")," and ").concat(tE.at(-1)):null!=(s=tE[0])?s:"",tI=ew.map(h.gcm).join(" + ")||"No delivery channels",tT=ey.trim()||(null==eV?void 0:eV.emailSubject)||"Event Update: ".concat(z.title),tG=eH&&ew.length>0&&tk&&"audience"!==eO&&!eq&&!tt.isPending&&!ts.isPending,tF=eH&&tA&&tk&&"audience"!==eO&&!eq&&!tt.isPending&&!ts.isPending&&!tn.isPending,tL="compose"===eD?void 0:(0,n.jsx)("button",{type:"button",onClick:()=>e_("compose"),"aria-label":"Back to blast composer",className:"flex size-6 items-center justify-center text-text-primary sm:hidden",children:(0,n.jsx)(m.A,{"aria-hidden":"true",className:"size-5"})}),tO=(0,n.jsxs)("div",{className:"space-y-5",children:[tA&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{htmlFor:"blastSubject",className:S,children:"Email subject"}),(0,n.jsx)("input",{id:"blastSubject","aria-label":"Blast subject",name:"blastSubject",type:"text",value:ey,onChange:e=>{ef(e.target.value),ta()},placeholder:tT,className:C})]}),tA&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{htmlFor:"blastTestEmail",className:S,children:"Test email"}),(0,n.jsx)("input",{id:"blastTestEmail","aria-label":"Test email address",name:"blastTestEmail",type:"email",value:eS,onChange:e=>eC(e.target.value),placeholder:"[email protected]",className:C}),(0,n.jsx)("p",{className:"text-xs text-text-tertiary",children:"Used when you tap Send test."})]}),eJ.length>1&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("p",{className:S,children:"Delivery"}),(0,n.jsx)("div",{className:"grid gap-2 sm:grid-cols-2",children:eJ.map(e=>{let t=ew.includes(e.channel);return(0,n.jsx)("button",{type:"button",onClick:()=>(e=>{let t=eY.get(e);if(t&&!t.enabled){var s;p.Ay.error(null!=(s=t.disabledReason)?s:"".concat((0,h.gcm)(e)," is unavailable."));return}eE(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),ta()}
1)(e.channel),className:(0,u.A)("rounded-2xl p-3 text-left text-sm transition-colors",t?"bg-background-secondary text-text-primary":"text-text-secondary hover:bg-background-secondary/60 hover:text-text-primary"),children:e.label},e.channel)})}),(0,n.jsxs)("p",{className:"text-xs text-text-tertiary",children:["Current: ",tI]})]}),tA&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("p",{className:"text-sm text-text-secondary",children:"Ticket links are included only in email blasts sent to guests marked Going and approved."}),(0,n.jsxs)("div",{className:"",children:[(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4 py-3 text-sm text-text-primary",children:[(0,n.jsx)("span",{children:"Ticket link or QR"}),(0,n.jsx)(c.A,{checked:eM,onChange:e=>{eI(e.target.checked),ta()}})]}),(0,n.jsxs)("label",{className:(0,u.A)("flex items-center justify-between gap-4 py-3 text-sm text-text-primary",(!(null==eQ?void 0:eQ.appleWalletEnabled)||eQ.rotatingQrEnabled)&&"opacity-50"),children:[(0,n.jsx)("span",{children:"Apple Wallet"}),(0,n.jsx)(c.A,{checked:eT,disabled:!(null==eQ?void 0:eQ.appleWalletEnabled)||eQ.rotatingQrEnabled,onChange:e=>{eG(e.target.checked),ta()}})]})]})]}),(tS||tC||tw)&&(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{htmlFor:"blastShortMessage",className:S,children:"Short message"}),(0,n.jsx)("textarea",{id:"blastShortMessage","aria-label":"Short message for ".concat(tM),name:"blastShortMessage",value:ek,maxLength:500,rows:4,onChange:e=>{eA(e.target.value),ta()},placeholder:eW.slice(0,500)||(null==eV?void 0:eV.pushBody)||"Short message",className:(0,u.A)(C,"resize-none")}),(0,n.jsxs)("p",{className:"text-xs text-text-tertiary",children:["Used for ",tM,". Leave blank to use the first 500 characters of the main message."]})]})]}),tP=(0,n.jsxs)(n.Fragment,{children:["compose"===eD&&(0,n.jsxs)("div",{className:(0,u.A)("sm:hidden",Q?"":"space-y-4 p-4"),children:[(0,n.jsx)(R,{value:ej,disabled:ts.isPending||tn.isPending,autoFocus:!Q,surface:Q?"inline":"card",onChange:e=>{eN(e),ta()}}),(0,n.jsxs)("div",{className:(0,u.A)("space-y-3",Q&&"p-4"),children:[Q?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"shrink-0 text-sm text-text-secondary",children:"To:"}),(0,n.jsxs)("button",{type:"button",onClick:()=>e_("audience"),className:"inline-flex min-h-9 min-w-0 flex-1 items-center justify-center gap-2 rounded-full bg-background-secondary px-3 font-medium text-sm text-text-primary transition-colors hover:bg-background-secondary/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50",children:[(0,n.jsx)("span",{className:"truncate",children:e0}),(0,n.jsx)(x.A,{"aria-hidden":"true",className:"size-4 shrink-0 -rotate-90 text-text-tertiary"})]}),(0,n.jsx)("button",{type:"button",onClick:()=>e_("options"),className:"inline-flex min-h-9 shrink-0 items-center justify-center gap-2 rounded-full px-3 text-sm text-text-secondary transition-colors hover:bg-background-secondary/55 hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-interactive-primary/50",children:"Options"})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 px-1 text-xs text-text-tertiary",children:[(0,n.jsx)("span",{children:"Total recipients"}),(0,n.jsx)(G,{count:tj,selectedGuestCount:eb.length,isLoading:tN})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_,{label:"To:",value:e0,onClick:()=>e_("audience")}),(0,n.jsx)(_,{label:"Options",value:tA?"Email settings":tI,onClick:()=>e_("options")}),(0,n.jsxs)("div",{className:"flex items-center justify-between rounded-2xl bg-background-secondary/35 px-4 py-3 text-sm",children:[(0,n.jsx)("span",{className:"text-text-secondary",children:"Total recipients"}),(0,n.jsx)(G,{count:tj,selectedGuestCount:eb.length,isLoading:tN})]})]}),!eq&&0===eJ.length&&(0,n.jsx)("div",{className:"rounded-2xl bg-status-warning/10 p-3 text-sm text-text-secondary",children:"No delivery channels are enabled for event blasts in this workspace."}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[tA&&(0,n.jsx)("button",{type:"button",onClick:()=>void ty(),disabled:!tF,className:k,children:tn.isPending?"Sending...":"Send test"}),(0,n.jsxs)("button",{type:"button",onClick:()=>void tg(),disabled:!tG,className:(0,u.A)(A,!tA&&"col-span-2"),children:[(0,n.jsx)(b.A,{className:"size-4"}),ts.isPending?"Sending...":Q?"Send blast":"Send"]})]})]})]}),"audience"===eD&&(0,n.jsxs)("div",{className:"space-y-5 px-4 pb-4 sm:hidden",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 px-1 text-sm",children:[(0,n.jsx)("span",{className:"truncate text-text-secondary",children:e0}),(0,n.jsx)(G,{count:tj,selectedGuestCount:eb.length,isLoading:tN})]}),tf,(0,n.jsx)("button",{type:"button",onClick:()=>e_("compose"),className:(0,u.A)(A,"w-full"),children:"Done"})]}),"options"===eD&&(0,n.jsxs)("div",{className:"space-y-5 px-4 pb-4 sm:hidden",children:[tO,(0,n.jsx)("button",{type:"button",onClick:()=>e_("compose"),className:(0,u.A)(A,"w-full"),children:"Done"})]}),(0,n.jsxs)("div",{className:(0,u.A)("hidden sm:block",Q?"":"space-y-4 px-3 pb-4 sm:px-6 sm:pb-6"),children:[(0,n.jsx)(R,{value:ej,disabled:ts.isPending||tn.isPending,autoFocus:!Q,onChange:e=>{eN(e),ta()},surface:Q?"inline":"card"}),(0,n.jsxs)("div",{className:(0,u.A)(Q?"p-4":"space-y-4"),children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,n.jsxs)("div",{className:"scrollbar-secondary -mx-1 flex max-w-full flex-nowrap items-center gap-2 overflow-x-auto px-1 pb-1 sm:mx-0 sm:flex-wrap sm:overflow-visible sm:px-0 sm:pb-0",children:[(0,n.jsx)(P,{label:e0,isOpen:"audience"===eO,onClick:()=>tl("audience")}),(0,n.jsx)(O,{isOpen:"options"===eO,onClick:()=>tl("options"),children:"Options"}),(0,n.jsx)(G,{count:tj,selectedGuestCount:eb.length,isLoading:tN})]}),(0,n.jsx)("div",{className:"flex w-full gap-2 sm:w-auto",children:"audience"===eO?(0,n.jsxs)("button",{type:"button",onClick:()=>eP(null),className:(0,u.A)(k,"flex-1 sm:flex-none"),children:["Done",(0,n.jsx)(x.A,{"aria-hidden":"true",className:"size-4 rotate-180 text-text-tertiary"})]}):(0,n.jsxs)(n.Fragment,{children:[tA&&(0,n.jsx)("button",{type:"button",onClick:()=>void ty(),disabled:!tF,className:(0,u.A)(k,"flex-1 sm:flex-none"),children:tn.isPending?"Sending...":"Send test"}),(0,n.jsxs)("button",{type:"button",onClick:()=>void tg(),disabled:!tG,className:(0,u.A)(A,"flex-1 sm:flex-none"),children:[(0,n.jsx)(b.A,{className:"size-4"}),ts.isPending?"Sending...":Q?"Send blast":"Send"]})]})})]}),!eq&&0===eJ.length&&(0,n.jsx)("div",{className:"mt-3 rounded-2xl bg-status-warning/10 p-3 text-sm text-text-secondary",children:"No delivery channels are enabled for event blasts in this workspace."}),"audience"===eO&&(0,n.jsx)(D,{children:tf}),"options"===eO&&(0,n.jsx)(D,{children:tO})]})]})]});return Q?(0,n.jsx)("div",{className:"mb-7 w-full overflow-hidden rounded-[18px] bg-background-inverse/[0.055] backdrop-blur-xl",children:tP}):(0,n.jsx)(r.aF,{isOpen:B,onClose:()=>ez(!1),leftAction:tL,header:"audience"===eD?"To":"options"===eD?"Options":"New blast",isCentered:!0,mobilePresentation:"fullScreen",transitionStyle:"fade",panelClassName:"scrollbar-hide !bg-background-primary sm:!h-auto sm:max-h-[88vh] sm:max-w-[980px] sm:flex-none",backdropClassName:"!bg-background-inverse/75 backdrop-blur-sm data-[open]:!opacity-100",children:tP})}},24686:(e,t,s)=>{s.d(t,{$:()=>c});var n=s(6029),a=s(55729),l=s(91705),i=s(28801),r=s(90033);let c=e=>{let{eventId:t,selectedTags:s,onTagsChange:c}=e,[d,o]=(0,a.useState)(!1),[u,x]=(0,a.useState)(""),{data:m,isLoading:p}=r.FH.eventAttendees.getEventTags.useQuery({eventId:t},{enabled:!0});(0,a.useEffect)(()=>{let e=e=>{e.target.closest("[data-tag-filter]")||o(!1)};if(d)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[d]);let h=(0,a.useMemo)(()=>{var e,t;return u?null!=(e=null==m?void 0:m.tags.filter(e=>e.tag.toLowerCase().includes(u.toLowerCase())))?e:[]:null!=(t=null==m?void 0:m.tags)?t:[]},[null==m?void 0:m.tags,u]),v=e=>{s.includes(e)?c(s.filter(t=>t!==e)):c([...s,e])},b=s.length>0;return(0,n.jsxs)("div",{className:"relative w-full","data-tag-filter":!0,children:[(0,n.jsxs)("button",{onClick:()=>o(!d),className:"flex w-full items-center justify-between gap-2 rounded-xl border px-3 py-2 font-medium text-sm transition-colors ".concat(b?"bg-background-surface text-text-primary":"text-text-secondary hover:bg-background-muted"," "),children:[(0,n.jsx)("span",{children:"Tags"}),b&&(0,n.jsx)("span",{className:"rounded-full bg-background-secondary px-1.5 py-0.5 text-xs text-text-primary",children:s.length})]}),b&&(0,n.jsx)("div",{className:"mt-2 flex flex-wrap gap-1",children:s.map(e=>(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-background-secondary px-2 py-1 text-xs text-text-primary",children:[e,(0,n.jsx)("button",{onClick:()=>v(e),className:"rounded-full p-0.5 transition-colors hover:bg-background-surface/20",children:(0,n.jsx)(i.A,{className:"size-2.5"})})]},e))}),d&&(0,n.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-2 w-64 roun
1ded-2xl bg-background-surface shadow-xl",children:[(0,n.jsx)("div",{className:"p-3",children:(0,n.jsx)("input",{type:"text",value:u,onChange:e=>x(e.target.value),placeholder:"Search tags...",className:"w-full rounded-lg border-0 bg-background-primary px-3 py-2 text-sm outline-none placeholder:text-text-secondary",autoFocus:!0})}),(0,n.jsx)("div",{className:"max-h-64 overflow-y-auto p-2",children:p?(0,n.jsx)("div",{className:"px-3 py-4 text-center text-sm text-text-secondary",children:"Loading tags..."}):0===h.length?(0,n.jsx)("div",{className:"px-3 py-4 text-center text-sm text-text-secondary",children:(null==m?void 0:m.tags.length)===0?"No tags available":"No matching tags"}):h.map(e=>{let{tag:t,count:a}=e,i=s.includes(t);return(0,n.jsxs)("button",{onClick:()=>v(t),className:"flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-sm transition-colors hover:bg-background-muted/20",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"flex size-4 items-center justify-center rounded border ".concat(i?"bg-status-success":""," "),children:i&&(0,n.jsx)(l.A,{className:"size-3 text-solid-white"})}),(0,n.jsx)("span",{className:"font-medium",children:t})]}),(0,n.jsx)("span",{className:"text-xs text-text-secondary",children:a})]},t)})}),(0,n.jsx)("div",{className:"p-3",children:(0,n.jsx)("button",{onClick:()=>{c([])},disabled:!b,className:"w-full rounded-lg py-2 text-center font-medium text-sm text-text-secondary transition-colors hover:bg-background-muted disabled:cursor-not-allowed disabled:opacity-50",children:"Clear all"})})]})]})}},63242:(e,t,s)=>{s.d(t,{d:()=>a});var n=s(55729);
1function a(e,t,s){let[a,l]=(0,n.useState)(s),i=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{if(!i.current&&e!==s){i.current=!0,l(e);return}if(e===s){i.current=!1,l(e);return}let n=setTimeout(()=>{l(e)},t);return()=>{clearTimeout(n)}},[e,t,s]),a}}}]);

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.