1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="93ca9d2e-c5c2-2788-2cf6-4d65c1999514")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940247,e=>{"use strict";var t=e.i(220568);e.s(["ChevronRightLargeIcon",()=>t.default])},99550,e=>{"use strict";var t=e.i(91285);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let n=(0,t.cn)("prose focus:outline-none max-w-full","prose-pre:border prose-pre:overflow-x-auto prose-pre:w-full prose-pre:max-w-full","prose-code:break-words prose-code:whitespace-pre-wrap","prose-headings:font-title","prose-li:marker:text-current"),r=(0,t.cn)(n,"prose-zinc dark:prose-invert prose-pre:border-cv-neutral-850"),i={editor:(0,t.cn)(r,"notion-prose"),html:r,chat:(0,t.cn)(n,"chat-prose prose-pre:border-border-strong text-message-15"),published:(0,t.cn)("notion-prose text-sans-16 text-fg-subtle","[&_strong]:text-fg [&_b]:text-fg [&_h1]:text-fg [&_h2]:text-fg [&_h3]:text-fg [&_h4]:text-fg [&_h5]:text-fg [&_h6]:text-fg","prose-img:image-rim")};e.s(["config",0,i])},310312,e=>{"use strict";var t=e.i(540005),a=e.i(933818),n=e.i(136115),r=e.i(112622),i=e.i(50270);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let l=i.z.object({event:i.z.object({id:i.z.string(),title:i.z.string(),startDateTime:i.z.string(),endDateTime:i.z.string(),location:i.z.string(),type:i.z.string().nullish(),venue:i.z.string().nullish(),city:i.z.string().nullish(),descriptionSummary:i.z.string().nullish(),timeZone:i.z.string().nullish(),slug:i.z.string().nullish(),isPlatformHackathon:i.z.boolean().nullish()}),media:i.z.array(i.z.unknown()).nullish()}),o=i.z.array(l),u=i.z.array(i.z.string());try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let c={async getHostedEvents(e,t,a,i){let s=await (0,n.throwOnError)(r.getUserHostedEvents)(e,t,a,i);return o.parse(s.data.events),s},async getAttendedEvents(e,t,a){let i=await (0,n.throwOnError)(r.getUserAttendedEvents)(e,t,a);return o.parse(i.data.events),i},async getEventDates(e,t){let a=await (0,n.throwOnError)(r.getUserEventDates)(e,t);return u.parse(a.data.dates),a}};try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let y=24;e.s(["eventQueries",0,{hosted:({limit:e=y,onlyPast:a,filters:n}={})=>(0,t.infiniteQueryOptions)({queryKey:["userHostedEvents",a,n],queryFn:({pageParam:t})=>c.getHostedEvents(e,t,a,n),staleTime:3e5,initialPageParam:0,getNextPageParam:e=>e.hasMore?e.nextOffset:void 0,select:e=>({pages:e.pages,pageParams:e.pageParams,success:!0,data:{events:e.pages.flatMap(e=>e.data.events),totalCount:e.pages[e.pages.length-1]?.totalCount||e.pages[0]?.totalCount}})}),attended:({limit:e=y,filters:a}={})=>(0,t.infiniteQueryOptions)({queryKey:["userAttendedEvents",a],queryFn:({pageParam:t})=>c.getAttendedEvents(e,t,a),staleTime:3e5,initialPageParam:0,getNextPageParam:e=>e.hasMore?e.nextOffset:void 0,select:e=>({pages:e.pages,pageParams:e.pageParams,success:!0,data:{events:e.pages.flatMap(e=>e.data.events)}})}),eventDates:(e,t=!0,n=!1)=>(0,a.queryOptions)({queryKey:["userEventDates",e,n],queryFn:()=>c.getEventDates(e,n).then(e=>e.data.dates),enabled:t,staleTime:3e5})},"getEventHostedListRootQueryKey",0,()=>["userHostedEvents"]],310312)},332496,e=>{"use strict";var t=e.i(966643),a=e.i(136115),n=e.i(933818),r=e.i(621482),i=e.i(266027),s=e.i(912598),l=e.i(310312),o=e.i(112622),u=e.i(120418);try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["publicUserProfileQuery",0,(e,t)=>(0,n.queryOptions)({queryKey:["publicUserProfile",e],queryFn:async({signal:t})=>(await (0,a.throwOnError)(o.getUserProfile)(e,{cache:"no-store",signal:t})).data.profile,initialData:t,initialDataUpdatedAt:0,refetchOnMount:"always"}),"useFollowStatus",0,(e,t)=>{let{enabled:a=!0,...n}=t||{},r=u.userQueries.followStatus(e);return(0,i.useQuery)({...r,enabled:(r.enabled??!0)&&a,...n})},"useFollowersYouKnow",0,(e,t)=>{let{limit:n=25,enabled:i=!0,offsetBias:l=0}=t||{},d=(0,s.useQueryClient)();return(0,r.useInfiniteQuery)({...u.userQueries.followersYouKnow(e,n),queryFn:async({pageParam:t})=>{if(!e)throw Error("Target user id not defined");let r=await (0,a.throwOnError)(()=>(0,o.getFollowersYouKnow)(e,n,t-l))();
2return r.data.followersYouKnow.forEach(e=>{d.setQueryData(u.userQueries.followStatus(e.userId).queryKey,{success:!0,message:"",data:{followsTargetUser:!0,targetUserFollows:!1}})}),r},enabled:!!e&&i})},"useGitHubContributions",0,e=>(0,i.useQuery)(u.userQueries.gitHubContributions(e)),"useSearchUserFollowers",0,(e,t,a)=>{let{limit:n=25,enabled:i=!0}=a||{},s=u.userQueries.searchFollowers(e,t,n);return(0,r.useInfiniteQuery)({...s,enabled:(s.enabled??!0)&&i})},"useSearchUserFollowing",0,(e,t,a)=>{let{limit:n=25,enabled:i=!0}=a||{},s=u.userQueries.searchFollowing(e,t,n);return(0,r.useInfiniteQuery)({...s,enabled:(s.enabled??!0)&&i})},"useSearchUserHostedEventAttendees",0,(e,t)=>{let{limit:a=25,enabled:n=!0,...i}=t||{},s=u.userQueries.searchHostedEventAttendees(e,a);return(0,r.useInfiniteQuery)({...s,enabled:(s.enabled??!0)&&n,...i})},"useUserAttendedEvents",0,e=>{let{limit:t=24,enabled:a=!0,filters:n,...i}=e||{};return(0,r.useInfiniteQuery)({...l.eventQueries.attended({limit:t,filters:n}),enabled:a,retry:!1,...i})},"useUserFollowCounts",0,(e,t)=>{let{enabled:a=!0,...n}=t||{},r=u.userQueries.followCounts(e);return(0,i.useQuery)({...r,enabled:(r.enabled??!0)&&a,...n})},"useUserFollowers",0,(e,n)=>{let{limit:i=25,enabled:l=!0}=n||{},d=(0,s.useQueryClient)(),{profile:c}=(0,t.useAuth)();return(0,r.useInfiniteQuery)({...u.userQueries.followers(e,i),queryFn:async({pageParam:t})=>{if(!e)throw Error("Target user id not defined");let n=await (0,a.throwOnError)(()=>(0,o.getUserFollowers)(e,i,t))(),r=c?.userId===e;return n.data.followers.forEach(e=>{"boolean"==typeof e.followsRequestingUser&&d.setQueryData(u.userQueries.followStatus(e.userId).queryKey,{success:!0,message:"",data:{followsTargetUser:e.followsRequestingUser,targetUserFollows:r}})}),n},enabled:!!e&&l})},"useUserFollowing",0,(e,t)=>{let{limit:n=25,enabled:i=!0,offsetBias:l=0}=t||{},d=(0,s.useQueryClient)();return(0,r.useInfiniteQuery)({...u.userQueries.following(e,n,l),queryFn:async({pageParam:t})=>{if(!e)throw Error("Target user id not defined");let r=await (0,a.throwOnError)(()=>
2(0,o.getUserFollowing)(e,n,t-l))();return r.data.following.forEach(e=>{"boolean"==typeof e.followsRequestingUser&&d.setQueryData(u.userQueries.followStatus(e.userId).queryKey,{success:!0,message:"",data:{followsTargetUser:e.followsRequestingUser,targetUserFollows:!1}})}),r},enabled:!!e&&i})},"useUserHostedEventAttendees",0,e=>{let{limit:t=25,enabled:a=!0,...n}=e||{},i=u.userQueries.hostedEventAttendees(t);return(0,r.useInfiniteQuery)({...i,enabled:(i.enabled??!0)&&a,...n})},"useUserHostedEventIds",0,e=>{let{enabled:t=!0,filters:a,...n}=e||{},r=u.userQueries.hostedEventIds(a);return(0,i.useQuery)({...r,enabled:(r.enabled??!0)&&t,...n})},"useUserHostedEvents",0,e=>{let{limit:t=24,enabled:a=!0,onlyPast:n,filters:i,...s}=e||{};return(0,r.useInfiniteQuery)({...l.eventQueries.hosted({limit:t,onlyPast:n,filters:i}),enabled:a,retry:!1,...s})},"useUserProfile",0,(e,t)=>{let{enabled:a=!0,...n}=t||{},r=u.userQueries.profile(e);return(0,i.useQuery)({...r,enabled:(r.enabled??!0)&&a,...n})},"useUserSearch",0,(e,t)=>{let{limit:a=25,enabled:n=!0,...i}=t||{},s=u.userQueries.userSearch(e,a);return(0,r.useInfiniteQuery)({...s,enabled:(s.enabled??!0)&&n,...i})}])},702123,e=>{"use strict";var t=e.i(873487);try{var a=window;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let n={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},r=e=>{if("string"!=typeof e)return null;let t=e.trim();return t&&"unknown"!==t.toLowerCase()?t:null},i=(e,a,r)=>"US"===r?[e,a?n[a.toLowerCase()]??(2===a.length?a.toUpperCase():a):null].filter(Boolean).join(", ")||"USA":[e??a,r?(0,t.getCountry)(r)?.name??r:null].filter(Boolean).join(", ");e.s(["getAppliedFromLocation",0,e=>{let a=r(e.inferredCity),n=r(e.inferredRegion),s=r(e.inferredCountryCode),l=s?s.toUpperCase():null,o=r(e.appliedFromTimeZone),u=o&&"na"!==o.toLowerCase()?o:null,d=u?(0,t.getCountryForTimezone)(u):null,c=!!(l&&d?.id&&l!==d.id),p=i(a,n,l);if(c){let e=i(null,null,d?.id??null);return p?`${e} (via VPN in ${p})`:`${e} (via VPN)`}return i(a,n,l??d?.id??null)||"Unknown"},"getRestrictedCountryLabel",0,e=>{let a=r(e.appliedFromRestrictedCountry)?.toUpperCase();if(!a)return null;let n=(0,t.getCountry)(a)?.name;return n?`Applied from ${n} (${a})`:`Applied from ${a}`},"optimisticallyUpdateApplicant",0,({oldData:e,oldApplicant:t,updatedApplicant:a,prevStatus:n})=>e?{pages:e.pages.map((e,r)=>{let i=e.data.all.findIndex(e=>e.id===a.data.id),s=e.data.all[i],l={...t,...a.data},o=e,u=0,d=0,c=0;if("pending"===n?u-=1:"denied"===n?d-=1:"approved"===n&&(c-=1),"pending"===a.data.status?u+=1:"denied"===a.data.status?d+=1:"approved"===a.data.status&&(c+=1),o={...o,data:{...o.data,pendingCount:o.data.pendingCount+u,deniedCount:o.data.deniedCount+d,approvedCount:o.data.approvedCount+c}},!s)return o;let p=[...e.data.all];p[i]=l;let y=e.data[s.status],v=y.findIndex(e=>e.id===a.data.id),g=[...y];return g.splice(v,1),{...e,data:{...e.data,all:p,[s.status]:g,pendingCount:e.data.pendingCount+u,deniedCount:e.data.deniedCount+d,approvedCount:e.data.approvedCount+c}}}),pageParams:e.pageParams}:e])},500797,e=>{"use strict";var t=e.i(136115),a=e.i(487987),n=e.i(330847),r=e.i(647761);try{var i=window;i._sentryModuleMetadata=i._sentryModuleMetadata||{},i._sentryModuleMetadata[(new i.Error).stack]=Object.assign({},i._sentryModuleMetadata[(new i.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["getPrevNextApplicant",0,function(e,t){let i,s=t.searchTerm.trim()?t.searchTerm:void 0,l=t.filter,o=a=>s?e.getQueryData(r.eventApplicationQueries.searchApplicants(t.eventId,s,a).queryKey):e.getQueryData(r.eventApplicationQueries.applicants(t.eventId,a).queryKey);if(s){let e=o(void 0);if(!e)return{nextApplicant:void 0,previousApplicant:void 0};i=[...e.pages.flatMap(e=>e.data.approved),...e.pages.flatMap(e=>e.data.denied),...e.pages.flatMap(e=>e.data.pending),...e.pages.flatMap(e=>e.data.all.filter(a.isInvitationEntry))]}else if("invited"===l){let r=e.getQueryData(n.eventInvitationQueries.list(t.eventId,{status:"invited"}).queryKey);if(!r)return{nextApplicant:void 0,previousApplicant:void 0};i=r.pages.flatMap(e=>e.data.invitations.map(a.toInvitationEntry))}else{let e=o(l)??o(void 0);if(!e)return{nextApplicant:void 0,previousApplicant:void 0};i=e.pages.flatMap(e=>e.data[l])}let u=i.findIndex(e=>e.id===t.applicant.id);return -1===u?{nextApplicant:void 0,previousApplicant:void 0}
2:{nextApplicant:i[u+1],previousApplicant:i[u-1]}},"primeApplicantDetail",0,function(e,a,n){let i=r.eventApplicationQueries.applicant(a,n.id);void 0===e.getQueryData(i.queryKey)&&e.setQueryData(i.queryKey,(0,t.success)(n,"Applicant fetched successfully"),{updatedAt:0})},"trimInfiniteQueryToFirstPage",0,function(e){return!e||e.pages.length<=1?e:{pages:e.pages.slice(0,1),pageParams:e.pageParams.slice(0,1)}}])},158682,615391,e=>{"use strict";var t=e.i(702123),a=e.i(954616),n=e.i(912598),r=e.i(618566),i=e.i(846696),s=e.i(120418),l=e.i(647761),o=e.i(500797),u=e.i(438847),d=e.i(487987),c=e.i(282287);try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let y=["approved","pending","invited","denied"];try{var v=window;v._sentryModuleMetadata=v._sentryModuleMetadata||{},v._sentryModuleMetadata[(new v.Error).stack]=Object.assign({},v._sentryModuleMetadata[(new v.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let g=({allowInvited:e=!1}={})=>{let t=(0,c.useApplicantDefaultFilter)(),[a,n]=(0,u.useQueryState)("search",u.parseAsString.withDefault("")),[r,i]=(0,u.useQueryState)("filter",(0,u.parseAsStringLiteral)(y).withDefault(t));return{searchTerm:a,filter:y.includes(r)&&(e||"invited"!==r)?r:t,setSearchTerm:n,setFilter:i}};e.s(["useApplicantNavigation",0,(e,t)=>{let a=(0,r.useParams)(),i=g({allowInvited:!!(e&&(0,d.isInvitationEntry)(e))}),s=(0,n.useQueryClient)(),l=t??a?.slug;if(l&&e)return(0,o.getPrevNextApplicant)(s,{applicant:e,eventId:l,filter:i.filter,searchTerm:i.searchTerm})},"useApplicantsParams",0,g],615391);var w=e.i(121377);try{var f=window;f._sentryModuleMetadata=f._sentryModuleMetadata||{},f._sentryModuleMetadata[(new f.Error).stack]=Object.assign({},f._sentryModuleMetadata[(new f.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["useApplyToEvent",0,e=>{let t=(0,w.useRevalidateApplicationAssociatedQueries)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.applyToEvent(),mutationKey:e,onSuccess:(e,{eventId:a})=>{t(a)}})},"useApproveByRank",0,function(e){let t=(0,n.useQueryClient)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.approveByRank(e),onSuccess:()=>{t.invalidateQueries({queryKey:(0,l.getApplicantRankingRankedByEventQueryKey)(e),exact:!1}),t.invalidateQueries({queryKey:l.eventApplicationQueries.counts(e).queryKey})}})},"useRankedApplicantStatus",0,function(e){let t=(0,n.useQueryClient)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.rankedApplicantStatus(e),onSuccess:()=>{t.invalidateQueries({queryKey:(0,l.getApplicantRankingRankedByEventQueryKey)(e),exact:!1}),t.invalidateQueries({queryKey:l.eventApplicationQueries.counts(e).queryKey})}})},"useStartApplicantRanking",0,function(e){let t=(0,n.useQueryClient)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.startApplicantRanking(e),onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:l.applicantRankingQueries.progress(e).queryKey}),t.invalidateQueries({queryKey:(0,l.getApplicantRankingRankedByEventQueryKey)(e),exact:!1})])}})},"useToggleApplicantBlacklist",0,e=>{let t=(0,n.useQueryClient)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.toggleApplicantBlacklist(e),onSuccess:(a,{blacklist:n,stillBlockedByCoHost:r})=>{t.invalidateQueries({queryKey:(0,l.getEventApplicationApplicantsRootQueryKey)(e),exact:!1}),t.invalidateQueries({queryKey:(0,l.getEventApplicationSearchApplicantsRootQueryKey)(e),exact:!1}),t.invalidateQueries({queryKey:(0,l.getApplicantRankingRankedByEventQueryKey)(e),exact:!1}),t.invalidateQueries({queryKey:(0,l.getEventApplicationApplicantRootQueryKey)(e),exact:!1}),i.toast.success(n?"Blocked":r?"Your block was removed. Still blocked by a co-host.":"Unblocked")},onError:(e,{blacklist:t})=>{i.toast.error(`Failed to ${t?"block":"unblock"} applicant`)}})},"useUnregisterFromEvent",0,()=>{let e=(0,w.useRevalidateApplicationAssociatedQueries)(),t=(0,n.useQueryClient)();return(0,a.useMutation)({...l.eventApplicationMutationOptions.unregisterFromEvent(),onSuccess:(a,{eventId:n})=>{e(n),t.invalidateQueries({queryKey:(0,s.getUserAttendedEventsQueryKey)()}),i.toast.success("Successfully unregistered from event")},onError:e=>{i.toast.error(e.message||"Failed to unregister from event")}})},"useUpdateApplicantStatus",0,(e,i)=>{let s=(0,n.useQueryClient)(),u=(0,r.useParams)(),{filter:d,searchTerm:c}=g(),p=c.trim()||"invited"===d?void 0:d;return(0,a.useMutation)({...i,...l.eventApplicationMutationOptions.updateApplicantStatus(e),onMutate:async a=>{if(!e)return;let{nextApplicant:n}=(0,o.getPrevNextApplicant)(s,{eventId:u?.slug||"",applicant:e,filter:d,searchTerm:c}),r=l.eventApplicationQueries.applicants(u?.slug,void 0),y=l.eventApplicationQueries.applicants(u?.slug,e.status),v=l.eventApplicationQueries.applicants(u?.slug,a),g=l.eventApplicationQueries.searchApplicants(u?.slug,c,p);await s.cancelQueries({queryKey:r.queryKey}),await s.cancelQueries({queryKey:y.queryKey}),await s.cancelQueries({queryKey:v.queryKey}),await s.cancelQueries({queryKey:g.queryKey});let w={all:s.getQueryData(r.queryKey),prevStatusFiltered:s.getQueryData(y.queryKey),search:s.getQueryData(g.queryKey),updatedStatusFiltered:s.getQueryData(v.queryKey)},f={success:!0,message:"Status updated successfully",data:{...e,status:a,updatedAt:new Date().toISOString()}},m=e.status;return s.setQueryData(r.queryKey,a=>(0,t.optimisticallyUpdateApplicant)({oldData:a,oldApplicant:e,updatedApplicant:f,prevStatus:m})),s.setQueryData(y.queryKey,a=>(0,t.optimisticallyUpdateApplicant)({oldData:a,oldApplicant:e,updatedApplicant:f,prevStatus:m})),s.setQueryData(v.queryKey,a=>(0,t.optimisticallyUpdateApplicant)({oldData:a,oldApplicant:e,updatedApplicant:f,prevStatus:m})),s.setQueryData(g.queryKey,a=>(0,t.optimisticallyUpdateApplicant)({oldData:a,oldApplicant:e,updatedApplicant:f,prevStatus:m})),n&&i?.onSuccess?.({nextApplicant:n}),{previousData:w,prevStatus:m,optimisticUpdatedApplicant:f}},onError:(t,a,n)=>{if(n?.previousData&&e){let e=l.eventApplicationQueries.applicants(u?.slug,void 0),t=l.eventApplicationQueries.applicants(u?.slug,n.prevStatus),r=l.eventApplicationQueries.searchApplicants(u?.slug,c,p),i=l.eventApplicationQueries.applicants(u?.slug,a);n.previousData.all&&s.setQueryData(e.queryKey,n.previousData.all),n.previousData.prevStatusFiltered&&s.setQueryData(t.queryKey,n.previousData.prevStatusFiltered),void 0!==n.previousData.search&&s.setQueryData(r.queryKey,n.previousData.search),n.previousData.updatedStatusFiltered&&s.setQueryData(i.queryKey,n.previousData.updatedStatusFiltered)}i?.onError?.(t)},onSuccess:t=>{if(!e)return;let a=l.eventApplicationQueries.applicants(u?.slug,void 0),n=l.eventApplicationQueries.applicants(u?.slug,t.prevStatus),r=l.eventApplicationQueries.applicants(u?.slug,t.updatedApplicant.data.status);s.refetchQueries({queryKey:a.queryKey}),s.refetchQueries({queryKey:n.queryKey}),s.refetchQueries({queryKey:r.queryKey}),s.refetchQueries({queryKey:l.eventApplicationQueries.applicant(u?.slug,e.id).queryKey}),s.refetchQueries({queryKey:l.eventApplicationQueries.searchApplicants(u?.slug,c,p).queryKey}),s.invalidateQueries({queryKey:l.eventApplicationQueries.counts(u?.slug).queryKey}),s.removeQueries({predicate:e=>{if("searchEventApplicants"!==e.queryKey[0]||e.queryKey[1]!==u?.slug)return!1;let t=e.queryKey[2],a=e.queryKey[3];return t!==c||a!==p}})}})}],158682)},648563,e=>{"use strict";var t=e.i(271645);try{var a="u">typeof window?window:e.g;a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[(new a.Error).stack]=Object.assign({},a._sentryModuleMetadata[(new a.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}function n(e,t){let a;return(...n)=>{window.clearTimeout(a),a=window.setTimeout(()=>e(...n),t)}}let r=["x","y","top","bottom","left","right","width","height"];e.s(["default",0,function({debounce:e,scroll:a,polyfill:i,offsetSize:s}={debounce:0,scroll:!1,offsetSize:!1}){var l,o,u;let d=i||("u"<typeof window?class{}:window.ResizeObserver);if(!d)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[c,p]=(0,t.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}
2),y=(0,t.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:c,orientationHandler:null}),v=e?"number"==typeof e?e:e.scroll:null,g=e?"number"==typeof e?e:e.resize:null,w=(0,t.useRef)(!1);(0,t.useEffect)(()=>(w.current=!0,()=>void(w.current=!1)));let[f,m,h]=(0,t.useMemo)(()=>{let e=()=>{let e,t;if(!y.current.element)return;let{left:a,top:n,width:i,height:l,bottom:o,right:u,x:d,y:c}=y.current.element.getBoundingClientRect(),v={left:a,top:n,width:i,height:l,bottom:o,right:u,x:d,y:c};y.current.element instanceof HTMLElement&&s&&(v.height=y.current.element.offsetHeight,v.width=y.current.element.offsetWidth),Object.freeze(v),w.current&&(e=y.current.lastBounds,t=v,!r.every(a=>e[a]===t[a]))&&p(y.current.lastBounds=v)};return[e,g?n(e,g):e,v?n(e,v):e]},[p,s,v,g]);function M(){y.current.scrollContainers&&(y.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",h,!0)),y.current.scrollContainers=null),y.current.resizeObserver&&(y.current.resizeObserver.disconnect(),y.current.resizeObserver=null),y.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",y.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",y.current.orientationHandler))}function b(){y.current.element&&(y.current.resizeObserver=new d(h),y.current.resizeObserver.observe(y.current.element),a&&y.current.scrollContainers&&y.current.scrollContainers.forEach(e=>e.addEventListener("scroll",h,{capture:!0,passive:!0})),y.current.orientationHandler=()=>{h()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",y.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",y.current.orientationHandler))}return l=h,o=!!a,(0,t.useEffect)(()=>{if(o)return window.addEventListener("scroll",l,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",l,!0)},[l,o]),u=m,(0,t.useEffect)(()=>(window.addEventListener("resize",u),()=>void window.removeEventListener("resize",u)),[u]),(0,t.useEffect)(()=>{M(),b()},[a,h,m]),(0,t.useEffect)(()=>M,[]),[e=>{e&&e!==y.current.element&&(M(),y.current.element=e,y.current.scrollContainers=function e(t){let a=[];if(!t||t===document.body)return a;let{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(e=>"auto"===e||"scroll"===e)&&a.push(t),[...a,...e(t.parentElement)]}(e),b())},c,f]}])},148295,455985,e=>{"use strict";var t=e.i(843476),a=e.i(846932),n=e.i(498013),r=e.i(91285),i=e.i(278077),s=e.i(511706);try{var l=window;l._sentryModuleMetadata=l._sentryModuleMetadata||{},l._sentryModuleMetadata[(new l.Error).stack]=Object.assign({},l._sentryModuleMetadata[(new l.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["EventIslandShell",0,function({children:e,animateEntrance:l=!0}){let o=(0,n.usePrefersReducedMotion)();return(0,t.jsxs)(a.motion.div,{"data-slot":"event-island-root",variants:o?s.islandReducedMotionEntranceVariants:s.islandEntranceVariants,initial:!!l&&"initial",animate:"animate",transition:o?s.islandReducedMotionEntranceTransition:s.islandEntranceTransition,style:{willChange:o?void 0:"transform"},className:"relative z-30 w-fit min-w-0 max-w-full pointer-events-auto origin-center cv-glass-controls motion-reduce:transform-none!",children:[(0,t.jsx)(a.motion.div,{"aria-hidden":!0,"data-slot":"event-island-surface",layout:!o,layoutAnchor:{x:.5,y:.5},transition:s.islandLayoutTransition,style:{borderRadius:s.ISLAND_SURFACE_RADIUS_PX},className:(0,r.cn)("absolute inset-0 pointer-events-none bg-bg/50 backdrop-blur-150",(0,i.cvElevation)({elevation:"floating",boundary:"default"}))}),(0,t.jsx)("div",{"data-slot":"event-island-content",className:"relative z-10 flex gap-1 p-1 min-w-0 max-w-full overflow-x-auto overflow-y-clip no-scrollbar roun
2ded-300 has-[[data-slot=event-island-views]]:p-0 has-[[data-slot=event-island-views]]:overflow-visible",children:e})]})}],148295);var o=e.i(88653),u=e.i(464978),d=e.i(271645),c=e.i(648563);try{var p=window;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}function y({children:e,layoutId:i}){let l=(0,u.useIsPresent)(),o=(0,n.usePrefersReducedMotion)(),[d,p]=(0,c.default)({offsetSize:!0});return(0,t.jsx)(a.motion.div,{ref:d,"data-slot":"event-island-view","data-present":l,"aria-hidden":!l||void 0,inert:!l,layout:!o,layoutId:o?void 0:i,transition:s.islandViewTransition,initial:"initial",animate:"animate",exit:"exit",style:{width:!l&&p.width?p.width:void 0,willChange:o?void 0:"transform"},className:(0,r.cn)("min-w-0 p-1 overflow-x-auto overflow-y-clip no-scrollbar motion-reduce:transform-none!",l?"relative max-w-full":"pointer-events-none absolute top-0 left-0 w-max"),children:(0,t.jsx)(a.motion.div,{layout:!o&&"position",transition:s.islandViewTransition,variants:o?s.islandReducedMotionViewVariants:s.islandControlVariants,style:{willChange:o?void 0:"transform"},className:"relative flex w-max items-center gap-1 motion-reduce:transform-none!",children:e})})}e.s(["EventIslandView",0,function({children:e,viewKey:a}){let n=(0,d.useId)();return(0,t.jsx)("div",{"data-slot":"event-island-views",className:"relative flex min-w-0 max-w-full",children:(0,t.jsx)(o.AnimatePresence,{initial:!1,children:(0,t.jsx)(y,{layoutId:n,children:e},a)})})}],455985)},511706,e=>{"use strict";try{var t=window;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}let a={type:"tween",duration:.32,ease:[.25,.65,.3,1.1]},n=[.25,.46,.45,.94],r={duration:.15,ease:n};e.s(["ISLAND_SURFACE_RADIUS_PX",0,14,"islandControlVariants",0,{initial:{opacity:0}
2,animate:{opacity:1,transition:{opacity:{duration:.14,delay:.06,ease:n}}},exit:{opacity:0,transition:{opacity:{duration:.1,delay:0,ease:"linear"}}}},"islandEntranceTransition",0,{duration:.22,ease:[.19,1,.22,1]},"islandEntranceVariants",0,{initial:{opacity:0,y:12},animate:{opacity:1,y:0}},"islandItemVariants",0,{initial:{opacity:0},animate:{opacity:1}},"islandLayoutTransition",0,a,"islandReducedMotionEntranceTransition",0,r,"islandReducedMotionEntranceVariants",0,{initial:{opacity:0},animate:{opacity:1}},"islandReducedMotionViewVariants",0,{initial:{opacity:0},animate:{opacity:1,transition:r},exit:{opacity:0,transition:r}},"islandSnapSpring",0,{type:"spring",stiffness:500,damping:38,mass:.8},"islandSpring",0,{type:"spring",stiffness:1e3,damping:45,mass:.5},"islandViewTransition",0,{layout:a}])},977019,e=>{"use strict";var t=e.i(133919);e.s(["BanIcon",()=>t.default])},681047,649522,e=>{"use strict";var t=e.i(843476),a=e.i(91285),n=e.i(966643),r=e.i(278077),i=e.i(746798);try{var s=window;s._sentryModuleMetadata=s._sentryModuleMetadata||{},s._sentryModuleMetadata[(new s.Error).stack]=Object.assign({},s._sentryModuleMetadata[(new s.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["BlacklistedTooltip",0,function({blacklistInfo:e,children:s}){let{profile:l}=(0,n.useAuth)(),o=e?.note?.trim(),u=e?.blacklistingHostIds,d=!!(u?.length&&l?.userId&&!u.includes(l.userId));return(0,t.jsx)(i.TooltipProvider,{delayDuration:0,children:(0,t.jsxs)(i.Tooltip,{children:[(0,t.jsx)(i.TooltipTrigger,{asChild:!0,children:s}),(0,t.jsxs)(i.TooltipContent,{side:"left",align:"start",sideOffset:4,className:(0,a.cn)("flex w-55 flex-col items-start gap-1 rounded-[14px] bg-cv-neutral-900 px-3.5 py-2.75",(0,r.cvElevation)({elevation:"floating",boundary:"filled"})),"data-testid":"blacklisted-tooltip",children:[(0,t.jsx)("p",{className:"whitespace-nowrap text-sans-13 font-medium-plus leading-130 text-fg",children:"Blocked"}),(0,t.jsx)("p",{className:"line-clamp-2 text-sans-13 font-normal leading-140 text-fg-soft",children:o||(d?"A co-host blocked them. Only they know why.":"No reason added.")})]})]})})}],681047);var l=e.i(271645),o=e.i(851648),u=e.i(158682);try{var d=window;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["useApplicantActionModals",0,function({applicantId:e,applicantName:a,eventSlug:r,blacklistInfo:i,onDeny:s,onApproveOnce:d}){let{mutate:c,isPending:p}=(0,u.useToggleApplicantBlacklist)(r),{profile:y}=(0,n.useAuth)(),v=!!(y?.userId&&(i?.blacklistingHostIds?i.blacklistingHostIds.includes(y.userId):i?.isBlacklisted)),[g,w]=(0,l.useState)(""),[f,m]=(0,l.useState)(!1),[h,M]=(0,l.useState)(!1),[b,A]=(0,l.useState)(!1);return{modals:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ConfirmationDialog,{open:f,onOpenChange:m,overlayClassName:"z-modal",title:`Block ${a}?`,description:"This blocks them from every event you host. You can unblock them at any time.",primaryLabel:"Block",onPrimary:()=>c({applicantId:e,blacklist:!0,note:g.trim()||void 0},{onSuccess:()=>m(!1)}),destructive:!0,loading:p,"data-testid":"blacklist-add-confirm",children:(0,t.jsx)("textarea",{value:g,onChange:e=>w(e.target.value),maxLength:1e3,"aria-label":"Reason (optional)",placeholder:"Add a reason (optional)",className:"input-ring-keyboard block h-20.75 w-full resize-none rounded-200 bg-cv-neutral-850 px-4 py-3 text-sans-15 leading-140 text-fg placeholder:text-muted-fg","data-testid":"blacklist-reason-input"})}),(0,t.jsx)(o.ConfirmationDialog,{open:h,onOpenChange:M,overlayClassName:"z-modal",title:`Deny ${a}?`,description:v?"They'll be notified they were denied for this event.":"They'll be notified they were denied for this event. Deny & Block also applies the block to every event you host, but they're never told about it.",primaryLabel:"Deny",onPrimary:()=>{M(!1),s()},secondaryAction:v?void 0:{label:"Deny & Block",onClick:()=>{M(!1),s(),c({applicantId:e,blacklist:!0})}},destructive:!0,"data-testid":"deny-confirm"}),(0,t.jsx)(o.ConfirmationDialog,{open:b,onOpenChange:A,overlayClassName:"z-modal",title:`${a} Is Blocked`,description:v?"You blocked them. Approving lets them into this event only; they remain blocked from your future events.":"A co-host blocked them, not you. Approving lets them into this event only; the co-host's block remains.",primaryLabel:"Deny",onPrimary:()=>{A(!1),s()},secondaryAction:{label:"Approve Once",onClick:()=>{A(!1),d()}}
2,destructive:!0,"data-testid":"blacklisted-applicant-warning"})]}),isBlacklistPending:p,blacklistedByMe:v,openBlacklistConfirm:()=>{w(""),m(!0)},openDenyConfirm:()=>M(!0),openBlacklistWarning:()=>A(!0),removeFromBlacklist:()=>c({applicantId:e,blacklist:!1,stillBlockedByCoHost:!!(y?.userId&&i?.blacklistingHostIds?.some(e=>e!==y.userId))})}}],649522)},25841,e=>{"use strict";var t=e.i(827085),a=e.i(750048);try{var n=window;n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[(new n.Error).stack]=Object.assign({},n._sentryModuleMetadata[(new n.Error).stack],{"_sentryBundlerPluginAppKey:cerebralvalley-web-client":!0})}catch(e){}e.s(["useIsInternalUser",0,function(){let{isLoaded:e,user:n}=(0,t.useUser)();return{isLoaded:e,isInternal:(0,a.isInternalEmail)(n?.primaryEmailAddress?.emailAddress)}}])}]); 3 4//# debugId=93ca9d2e-c5c2-2788-2cf6-4d65c1999514
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.