1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6422,85851],{6067:(e,t,a)=>{a.d(t,{NC:()=>N,R0:()=>g,d$:()=>h,kH:()=>m});var i=a(93410),s=a(30702),n=a(66197);let l=[/^\/events(?:\/[^/?#]+)?(?:[?#].*)?$/i,/^\/events\/edit\/[^/?#]+(?:\/[^/?#]+)?(?:[?#].*)?$/i,/^\/community\/[^/?#]+(?:\/(?:about|discussions|events|gallery|members|moderation|reviews|rules|welcome))?(?:[?#].*)?$/i,/^\/community\/[^/?#]+\/admin(?:\/[^/?#]+)*(?:[?#].*)?$/i,/^\/my-tournaments(?:[?#].*)?$/i,/^\/community\/(?:discover|trending)(?:[?#].*)?$/i,/^\/settings(?:\/(?:billing|blocked-muted|notifications|payout|preferences|privacy|security|subscriptions|add-password-otp))?(?:[?#].*)?$/i,/^\/user(?:[?#].*)?$/i,/^\/my-clubs(?:\/activity)?(?:[?#].*)?$/i,/^\/chat(?:[?#].*)?$/i,/^\/leaderboard(?:[?#].*)?$/i,/^\/rewards(?:\/(?:shop|history|invite))?(?:[?#].*)?$/i,/^\/referrals(?:[?#].*)?$/i,/^\/orders\/[^/?#]+(?:\/tickets)?(?:[?#].*)?$/i,/^\/ticket\/[^/?#]+(?:[?#].*)?$/i,/^\/blog(?:\/[^/?#]+)?(?:[?#].*)?$/i,/^\/payment(?:\/(?:cancel|fail|success|success-order))?(?:[?#].*)?$/i,/^\/payment\/venue\/(?:cancel|fail|success)(?:[?#].*)?$/i,/^\/venues(?:\/[^/?#]+)?(?:[?#].*)?$/i,/^\/venue-inbox(?:[?#].*)?$/i,/^\/venue-bookings(?:[?#].*)?$/i,/^\/my-venues(?:\/[^/?#]+)?(?:[?#].*)?$/i,/^\/checkout(?:[?#].*)?$/i,/^\/scanner(?:\/event-details\/[^/?#]+)?(?:[?#].*)?$/i,/^\/event-review\/[^/?#]+(?:[?#].*)?$/i,/^\/invite(?:-hosts\/i|\/community)\/[^/?#]+(?:[?#].*)?$/i,/^\/create(?:EventSuccess)?(?:[?#].*)?$/i,/^\/@[^/?#]+(?:\/(?:activity|moments|story-wall))?(?:[?#].*)?$/i],o=new Set(["shop","invite","history"]);function r(e){let t=e.indexOf("?"),a=(t>=0?e.slice(0,t):e).replace(/\/+$/,"")||"/",s=new URLSearchParams(t>=0?e.slice(t+1):"");if("/user"===a)switch(s.get("menu")){case"Rewards":return"/rewards";case"Referrals":return"/rewards/invite";case"Leaderboard":return"/leaderboard";case"RewardShop":return"/rewards/shop";default:return null}if("/referrals"===a||a.startsWith("/referrals/"))return"/rewards/invite";if("/leaderboard"===a){let a=(s.get("tab")||"").toLowerCase();if("league"===a)return"/leaderboard?tab=league";if("friends"===a)return"/leaderboard?tab=friends";if("region"===a||s.has("type")){let e=(0,i.sx)(s.get("board")||s.get("type"));return"/leaderboard?tab=season&board=".concat(e)}let n=t>=0?e.slice(t).split("#")[0]:"";return"/leaderboard".concat(n)}if("/leaderboards/league/me"===a)return"/leaderboard?tab=league";if(a.startsWith("/leaderboards/seasons/")){let e=a.split("/")[4];return"attendees"===e||"teams"===e||"clubs"===e?"/leaderboard?tab=season&board=".concat(e):"/leaderboard?tab=season"}if(a.startsWith("/leaderboards/")){let e=a.split("/").filter(Boolean).pop()||"";return e.includes("host")||e.includes("communit")?"/leaderboard?tab=season&board=clubs":e.includes("attend")?"/leaderboard?tab=season&board=attendees":"/leaderboard"}if("/rewards"===a)return"/rewards";if(a.startsWith("/rewards/")){let e=a.slice(9).split("/")[0];return o.has(e)?a:"/rewards"}return null}let c=new Set(["PAYMENT_SUCCESS","PAYMENT_FAILED","PAYMENT_CONFIRMATION","REFUND_PROCESSED","MEMBERSHIP_PAYMENT_SUCCESS","MEMBERSHIP_PAYMENT_FAILED","MEMBERSHIP_RENEWAL_SUCCESS","MEMBERSHIP_RENEWAL_FAILED","MEMBERSHIP_RENEWED","MEMBERSHIP_RENEWAL_REMINDER","MEMBERSHIP_CANCELLED","MEMBERSHIP_TIER_UPGRADED","MEMBERSHIP_TIER_DOWNGRADED"]),E=new Set(["PASSWORD_RESET","CHANGE_PASSWORD","UPDATE_PASSWORD"]),d=new Set(["PAYOUT","PAYOUT_UNDER_REVIEW","PAYOUT_APPROVED","PAYOUT_PROCESSING","PAYOUT_PAID","PAYOUT_REJECTED"]);function _(e){if(!e)return null;let t=e.trim();if(!t)return null;try{if(t.startsWith("http://")||t.startsWith("https://")){let e=new URL(t);return"".concat(e.pathname).concat(e.search).concat(e.hash)}}catch(e){return t}return t.startsWith("/")?t:/^event\/[^/?#]+\/friend\/[^/?#]+(?:[?#].*)?$/i.test(t)?"/".concat(t):null}function u(e){var t;return null!=(t=_(e.link))?t:_(e.imgUrl)}function N(e){var t,a,i,s,n,l,o;let r=null==(t=e.type)?void 0:t.toUpperCase(),c=null!=(n=null==(a=e.title)?void 0:a.toLowerCase())?n:"",E=null!=(l=null==(i=e.message)?void 0:i.toLowerCase())?l:"",d=null!=(o=null==(s=u(e))?void 0:s.toLowerCase())?o:"",_=c.includes("event")||E.includes("event")||d.startsWith("/events/"),N=/\b(delet(?:e|ed|ion)|remov(?:e|ed|al)|cancel(?:led|ed|ation))\b/.test(c)||/\b(delet(?:e|ed|ion)|remov(?:e|ed|al)|cancel(?:led|ed|ation))\b/.test(E);return _&&N&&("INFO"===r||"SUCCESS"===r||"ERROR"===r||"EVENT_CANCELLED"===r)}function m(e){let t=u(e);if(!t)return null;let a=t.match(/^\/posts?\/([^/?#]+)(?:\/comments\/[^/?#]+)?(?:[?#].*)?$/i);if(a)return{id:a[1],kind:"post"};let i=t.match(/^\/pulses?\/([^/?#]+)(?:\/comments\/[^/?#]+)?(?:[?#].*)?$/i);if(i)return{id:i[1],kind:"pulse"};let s=t.match(/^\/(?:recaps?|recap-posts)\/([^/?#]+)(?:\/comments\/[^/?#]+)?(?:[?#].*)?$/i);return s?{id:s[1],kind:"recap"}:null}function T(e){return l.some(t=>t.test(e))}function g(e){var t,a,i,l,o,_,N,m,g,h,A,O,b,M,p,I,R,x,v,w,C,S,D,U,y;let f=u(e),P=null!=(a=null==(t=e.type)?void 0:t.toUpperCase())?a:"";if("LEADERBOARD_RANK_JUMP"===P||"LEADERBOARD_TOP_10"===P||"LEADERBOARD_RANK_UP"===P)return f&&r(f)||"/leaderboard";if("STREAK_DANGER"===P||"STREAK_MILESTONE"===P||"TIER_UPGRADE"===P||"BADGE_EARNED"===P||"ONBOARDING_COMPLETE"===P)return"/rewards";if("REFERRAL_SIGNUP"===P||"REFERRAL_REWARD"===P)return"/rewards/invite";if("CHALLENGE_COMPLETED"===P)return f&&"/rewards/shop"===r(f)?"/rewards/shop":"/rewards";if("LEAGUE_WEEK_STARTED"===P||"LEAGUE_WEEK_ENDED"===P||"LEAGUE_PROMOTION"===P||"LEAGUE_DEMOTION"===P)return"/leaderboard?tab=league";if("COMMUNITY_AFFILIATE_REQUEST_RECEIVED"===P||"COMMUNITY_AFFILIATE_REQUEST_APPROVED"===P||"COMMUNITY_AFFILIATE_REQUEST_REJECTED"===P||"COMMUNITY_AFFILIATE_REQUEST_CANCELLED"===P||"COMMUNITY_HOST_REQUEST_RECEIVED"===P||"COMMUNITY_HOST_REQUEST_APPROVED"===P||"COMMUNITY_HOST_REQUEST_DECLINED"===P||"COMMUNITY_HOST_REQUEST_CANCELLED"===P){let t=null!=(g=null==f||null==(i=f.match(/^\/community\/([^/?#]+)/))?void 0:i[1])?g:null,a="string"==typeof(null==(l=e.data)?void 0:l.affiliate_community_slug)&&e.data.affiliate_community_slug||"string"==typeof(null==(o=e.data)?void 0:o.parent_community_slug)&&e.data.parent_community_slug||"string"==typeof(null==(_=e.data)?void 0:_.community_slug)&&e.data.community_slug||"string"==typeof(null==(N=e.data)?void 0:N.affiliate_community_id)&&e.data.affiliate_community_id||"string"==typeof(null==(m=e.data)?void 0:m.parent_community_id)&&e.data.parent_community_id||t;if(a)return"/community/".concat(a,"/admin/events#clubs")}if("EVENT_COMMUNITY_REQUEST_RECEIVED"===P||"EVENT_COMMUNITY_REQUEST_APPROVED"===P||"EVENT_COMMUNITY_REQUEST_REJECTED"===P||"EVENT_COMMUNITY_REQUEST_CANCELLED"===P){if(f&&T(f))return f;let t="string"==typeof(null==(h=e.data)?void 0:h.community_slug)&&e.data.community_slug||"string"==typeof(null==(A=e.data)?void 0:A.community_id)&&e.data.community_id||null,a="string"==typeof(null==(O=e.data)?void 0:O.event_slug)&&e.data.event_slug||"string"==typeof(null==(b=e.data)?void 0:b.event_id)&&e.data.event_id||null;if(t){let e="EVENT_COMMUNITY_REQUEST_RECEIVED"===P?"#incoming-requests":"";return"/community/".concat(t,"/admin/events").concat(e)}if(a)return"/events/edit/".concat(a,"/community")}if("TOURNAMENT_HOST_ASSIGNED"===P)return f&&T(f)?f:"/my-tournaments";if(P.startsWith("TOURNAMENT_")){let t="string"==typeof(null==(M=e.data)?void 0:M.community_slug)&&e.data.community_slug||"string"==typeof(null==(p=e.data)?void 0:p.community_id)&&e.data.community_id||null,a="string"==typeof(null==(I=e.data)?void 0:I.tournament_id)&&e.data.tournament_id?e.data.tournament_id:null,i="string"==typeof(null==(R=e.data)?void 0:R.match_id)&&e.data.match_id?e.data.match_id:null;if(t&&a)return"TOURNAMENT_MATCH_DISPUTED"===P?"/community/".concat(t,"/admin/tournaments/").concat(a,"#disputes"):i?(0,n.ED)(t,a,{matchId:i}
1):"TOURNAMENT_BRACKET_POSTED"===P||"TOURNAMENT_ROUND_COMPLETE"===P||"TOURNAMENT_COMPLETED"===P?(0,n.ED)(t,a,{section:"bracket"}):(0,n.ED)(t,a);if(t)return"/community/".concat(t,"/tournaments")}if(c.has(P))return"/settings/billing";if(E.has(P))return"/settings/security";if(d.has(P))return"/settings/payout";if("RSVP_CONFIRMATION"===P)return"/user?menu=Tickets";if("COMMUNITY_NEW_JOIN_REQUEST"===P){let t="string"==typeof(null==(x=e.data)?void 0:x.community_slug)&&e.data.community_slug||"string"==typeof(null==(v=e.data)?void 0:v.community_id)&&e.data.community_id||(null==f||null==(w=f.match(/\/admin\/communities\/([^/?#]+)/i))?void 0:w[1])||null;if(t)return"/community/".concat(t,"/admin/membership#join-applications")}if("FRIEND_GOING_TO_EVENT"===P){let t=null==f?void 0:f.match(/^\/event\/([^/?#]+)\/friend\/[^/?#]+([?#].*)?$/i);if(t)return"/events/".concat(t[1]).concat(null!=(D=t[2])?D:"");let a="string"==typeof(null==(C=e.data)?void 0:C.event_id)&&e.data.event_id?e.data.event_id:null;if(a)return"/events/".concat(a);let i="string"==typeof(null==(S=e.data)?void 0:S.event_title)&&e.data.event_title?e.data.event_title:null;if(i)return"/events/".concat(i.toLowerCase().trim().replace(/['"]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""))}if(!f)return null;let j=r(f);if(j)return j;let L=f.match(/^\/dashboard\/events\/([^/?#]+)([?#].*)?$/i);if(L)return"/events/edit/".concat(L[1]).concat(null!=(U=L[2])?U:"");let V=f.match(/^\/users\/([^/?#]+)([?#].*)?$/i);if(V)return"".concat((0,s.D)(V[1])).concat(null!=(y=V[2])?y:"");let Y=f.match(/^\/moments\/([^/?#]+)([?#].*)?$/i);if(Y&&e.userId)return"".concat((0,s.D)(e.userId),"?momentId=").concat(Y[1]);let F=f.match(/^\/posts?\/([^/?#]+)(?:\/comments\/[^/?#]+)?([?#].*)?$/i);if(F)return"/user?postId=".concat(F[1]);let k=f.match(/^\/pulses?\/([^/?#]+)(?:\/comments\/[^/?#]+)?([?#].*)?$/i);if(k)return"/user?pulseId=".concat(k[1]);let G=f.match(/^\/(?:recaps?|recap-posts)\/([^/?#]+)(?:\/comments\/[^/?#]+)?([?#].*)?$/i);if(G)return"/user?postId=".concat(G[1]);let H=f.match(/^\/stories\/([^/?#]+)([?#].*)?$/i);return H?"/user?storyId=".concat(H[1]):"/notifications"===f?"/user?menu=Notifications":T(f)?f:null}function h(e){return u(e)}},20138:(e,t,a)=>{a.d(t,{v:()=>i});let i=a(95125).A.create({baseURL:"https://api.eventa.live",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json"}});i.interceptors.request.use(e=>{let t=localStorage.getItem("access_token");return t&&3===t.split(".").length&&(e.headers.Authorization="Bearer ".concat(t)),e},e=>Promise.reject(e)),i.interceptors.response.use(e=>e,e=>Promise.reject(e))},38037:(e,t,a)=>{a.d(t,{E:()=>g});var i=a(95155),s=a(12115),n=a(1968),l=a(1213),o=a(35299),r=a(51834),c=a(71458),E=a(80367),d=a(65659),_=a(24102),u=a(29922),N=a(68002),m=a(71211),T=a(12697);function g(e){let{notification:t,target:a,open:g,onOpenChange:h}=e,A=(0,l.d4)(e=>{var t;return null==e||null==(t=e.auth)?void 0:t.user}),O=!!(g&&(null==a?void 0:a.kind)==="post"&&a.id),b=!!(g&&(null==a?void 0:a.kind)==="post"&&a.id),M=!!(g&&(null==a?void 0:a.id)&&("pulse"===a.kind||"post"===a.kind)),p=!!(g&&(null==a?void 0:a.id)&&("recap"===a.kind||"post"===a.kind)),I=!!(g&&(null==a?void 0:a.id)&&"post"===a.kind),{data:R}=(0,u.aC)({sort:"ranked",limit:50},{skip:!O}),{data:x}=(0,u.aC)({sort:"latest",limit:50},{skip:!O}),{currentData:v,isFetching:w}=(0,N.yv)((null==a?void 0:a.id)||"",{skip:!b}),{currentData:C,isFetching:S}=(0,m.zK)((null==a?void 0:a.id)||"",{skip:!M}),{currentData:D,isFetching:U}=(0,T.bT)((null==a?void 0:a.id)||"",{skip:!p}),{currentData:y,isFetching:f}=(0,N.c5)((null==a?void 0:a.id)||"",{skip:!I}),P=(0,s.useMemo)(()=>(null==a?void 0:a.kind)==="post"?function(e){var t,a,i,s;if(!e)return null;let l=null!=(a=null==e?void 0:e.data)?a:e;if(!l)return null;let o=l.actor||l.user||l.user_id||{},r=o.name||[o.first_name,o.last_name].filter(Boolean).join(" ")||l.name||"Unknown",c=o.id||o._id||("string"==typeof l.user_id?l.user_id:null==(t=l.user_id)?void 0:t._id)||"",E=l.media||l.media_items||[],d=Array.isArray(E)?E.map(e=>({url:(0,_.O2)(e.url||e.image_url),thumbnailUrl:e.thumbnail_url?(0,_.O2)(e.thumbnail_url):void 0,mediaType:e.media_type||"image"})).filter(e=>e.url):[];!d.length&&(l.cover_image||l.image_url)&&d.push({url:(0,_.O2)(l.cover_image||l.image_url),mediaType:l.media_type||"image"});let u=null!=(s=null!=(i=function(e){if(!Array.isArray(e)||0===e.length)return;let t=e.map(e=>{var t;let a=String((null==e?void 0:e.community_id)||(null==e?void 0:e.id)||(null==e?void 0:e._id)||"");return a?{community_id:a,name:(null==e?void 0:e.name)||(null==e?void 0:e.title)||"Community",slug:null!=(t=null==e?void 0:e.slug)?t:null,icon_url:(null==e?void 0:e.icon_url)||(null==e?void 0:e.icon)||(null==e?void 0:e.community_icon)||null}:null}
1).filter(Boolean);return t.length?t:void 0}(l.community_tags))?i:function(e){var t;let a=String((null==e?void 0:e.id)||(null==e?void 0:e._id)||"");if(a)return[{community_id:a,name:(null==e?void 0:e.name)||"Community",slug:null!=(t=null==e?void 0:e.slug)?t:null,icon_url:(null==e?void 0:e.icon_url)||(null==e?void 0:e.icon)||null}]}(l.community))?s:void 0;return{id:String(l.feed_item_id||l.id||l._id),objectId:l.object_id||l._id,objectModel:l.object_model||"Post",feedType:l.type||"create_post",userId:c,name:r,handle:o.username,avatarUrl:(0,_.O2)(o.image||o.profile_image),isGoldMember:!1,timeLabel:l.created_at?(0,n.m)(new Date(l.created_at),{addSuffix:!0}):"",caption:l.content||l.caption||"",feeling:l.feeling,location:l.location,mentionIds:Array.isArray(l.mentions)?l.mentions.map(e=>e.user_id||e.id||e._id).filter(Boolean):void 0,mentionUsers:Array.isArray(l.mentions)?l.mentions.map(e=>({id:e.user_id||e.id||e._id,name:e.name||e.username||"",profile_image:e.profile_image})).filter(e=>e.id):void 0,communityTags:u,eventTags:l.event_tags,media:d,likes:l.reaction_count||0,comments:l.comment_count||0,hasReacted:l.has_reacted,latestComment:l.latest_comment,isDiscovery:l.is_discovery,discoveryReason:l.discovery_reason}}(v):null,[v,a]),j=(0,s.useMemo)(()=>(null==a?void 0:a.kind)==="pulse"||(null==a?void 0:a.kind)==="post"?function(e){var t;if(!(null==e?void 0:e._id))return null;let a=e.author||e.actor||e.user||e.user_id,i=a?{id:a.id||a._id||("string"==typeof a?a:e.user_id),name:a.name||[a.first_name,a.last_name].filter(Boolean).join(" ")||"Unknown",image:(0,_.O2)(a.image||a.profile_image),is_verified:null!=(t=a.is_verified)&&t,username:a.username,community_role:a.community_role,custom_badge:a.custom_badge}:null;return{id:e._id,type:"poll"===e.pulse_type?"pulse_poll":"live_pulse"===e.pulse_type?"pulse_live":"create_pulse",actor:i,object_id:e._id,object_model:"PulsePost",created_at:e.created_at,content:e.content,media:e.media||[],mentions:e.mentions,hashtags:e.hashtags,community_tags:e.community_tags,event_tags:e.event_tags,community:e.community,event:e.event,pulse_type:e.pulse_type,lifespan:e.lifespan,expires_at:e.expires_at,poll:e.poll,is_carousel:e.is_carousel,is_live:e.is_live,link_preview_url:e.link_preview_url,reaction_count:e.reaction_count,comment_count:e.comment_count,share_count:e.share_count,has_reacted:e.has_reacted,is_saved:e.is_saved,card_type:"pulse"}}(C):null,[C,a]),L=(0,s.useMemo)(()=>(null==a?void 0:a.kind)==="recap"||(null==a?void 0:a.kind)==="post"?function(e){var t;if(!(null==e?void 0:e._id))return null;let a=e.author||e.actor||e.user||e.user_id,i=a?{id:a.id||a._id||("string"==typeof a?a:e.user_id),name:a.name||[a.first_name,a.last_name].filter(Boolean).join(" ")||"Unknown",image:(0,_.O2)(a.image||a.profile_image),is_verified:null!=(t=a.is_verified)&&t,username:a.username,community_role:a.community_role,custom_badge:a.custom_badge}:null;return{id:e._id,type:"create_recap",actor:i,object_id:e._id,object_model:"RecapPost",created_at:e.created_at,content:e.content,media:e.media||[],mentions:e.mentions,hashtags:e.hashtags,community:e.community,event:e.event,reaction_count:e.reaction_count,comment_count:e.comment_count,share_count:e.share_count,has_reacted:e.has_reacted,is_saved:e.is_saved,is_carousel:e.is_carousel,rating:e.rating,event_snapshot:e.event_snapshot,card_type:"recap"}}(D):null,[D,a]),V=(0,s.useMemo)(()=>(null==a?void 0:a.kind)==="post"?function(e){var t,a;if(!(null==e?void 0:e._id))return null;let i=(Array.isArray(e.media_items)&&e.media_items.length>0?e.media_items:e.image_url?[{url:e.image_url,media_type:e.media_type||"image",thumbnail_url:null!=(a=e.thumbnail_url)?a:null}]:[]).map(e=>({url:(0,_.O2)(e.url||e.image_url),thumbnailUrl:e.thumbnail_url?(0,_.O2)(e.thumbnail_url):void 0,mediaType:e.media_type||"image"})).filter(e=>e.url);return{id:String(e._id),objectId:e._id,objectModel:"UserMoment",feedType:"post_moment",userId:"string"==typeof e.user_id?e.user_id:(null==(t=e.user_id)?void 0:t._id)||"",name:"Moment",avatarUrl:void 0,isGoldMember:!1,timeLabel:e.created_at?(0,n.m)(new Date(e.created_at),{addSuffix:!0}):"",caption:e.caption||"",feeling:e.feeling,location:e.location,media:i,likes:e.reaction_count||0,comments:0,hasReacted:!1}}(y):null,[y,a]),Y=(0,s.useMemo)(()=>{var e,t,i;return(null==a?void 0:a.id)&&"post"===a.kind&&null!=(i=[...null!=(e=null==R?void 0:R.data)?e:[],...null!=(t=null==x?void 0:x.data)?t:[]].find(e=>e.object_id===a.id))?i:null},[null==x?void 0:x.data,null==R?void 0:R.data,a]),F=(null==A?void 0:A.profile_image)?(0,_.O2)(A.profile_image):void 0;return(0,i.jsx)(r.lG,{open:g,onOpenChange:h,children:(0,i.jsxs)(r.Cf,{className:"max-h-[90vh] overflow-hidden border border-border-subtle bg-[#14151a] p-0 text-text-strong shadow-[0_25px_70px_-15px_rgba(0,0,0,0.9)] sm:max-w-2xl",children:[(0,i.jsx)(r.c7,{className:"border-b border-border-subtle px-5 py-4",children:(0,i.jsx)(r.L3,{className:"text-lg font-black tracking-tight text-text-strong",children:(null==t?void 0:t.t
1itle)||"Post notification"})}),(0,i.jsx)("div",{className:"max-h-[calc(90vh-72px)] overflow-y-auto p-4",children:w||S||U||f?(0,i.jsx)("div",{className:"flex min-h-[280px] items-center justify-center",children:(0,i.jsx)(o.A,{className:"h-7 w-7 animate-spin text-slate-600 dark:text-slate-500"})}):(null==Y?void 0:Y.object_model)==="PulsePost"?(0,i.jsx)(E.e,{item:Y,currentUserId:null==A?void 0:A._id,currentUserAvatar:F,defaultShowComments:!0}):(null==Y?void 0:Y.object_model)==="RecapPost"?(0,i.jsx)(d.O,{item:Y,currentUserId:null==A?void 0:A._id,currentUserAvatar:F}):Y?(0,i.jsx)(c.z,{post:(0,_.Fm)(Y),currentUserId:null==A?void 0:A._id,currentUserAvatar:F,latestComment:Y.latest_comment,defaultShowComments:!0}):(null==a?void 0:a.kind)==="recap"&&L?(0,i.jsx)(d.O,{item:L,currentUserId:null==A?void 0:A._id,currentUserAvatar:F}):j?(0,i.jsx)(E.e,{item:j,currentUserId:null==A?void 0:A._id,currentUserAvatar:F,defaultShowComments:!0}):L?(0,i.jsx)(d.O,{item:L,currentUserId:null==A?void 0:A._id,currentUserAvatar:F}):P?(0,i.jsx)(c.z,{post:P,currentUserId:null==A?void 0:A._id,currentUserAvatar:F,latestComment:P.latestComment,defaultShowComments:!0}):V?(0,i.jsx)(c.z,{post:V,currentUserId:null==A?void 0:A._id,currentUserAvatar:F}):(0,i.jsx)("div",{className:"flex min-h-[220px] items-center justify-center text-center text-sm text-text-slate-4",children:"This post could not be loaded."})})]})})}},44463:(e,t,a)=>{a.d(t,{Fv:()=>E,a_:()=>d,oY:()=>c,zz:()=>_});var i=a(22454),s=a(99776),n=a(80549),l=a(44517),o=a(20138),r=a(12115);function c(e){let t=(0,i.I)({queryKey:["invitedGuests",e.eventId],queryFn:async()=>o.v.get("/invite-guests/?eventId=".concat(e.eventId))});return{invitedGuests:(0,r.useMemo)(()=>{if(!t.isSuccess)return[];let e=t.data.data;return(e&&"data"in e&&e.data?e.data:e).invited||[]},[t.data,t.isSuccess]),invitedGuestsQuery:t}}function E(e){let t=(0,s.jE)();return(0,n.n)({mutationFn:t=>{let a={eventId:e.eventId,...t};return o.v.post("/invite-guests/send-invite",a)},onSuccess:a=>{l.default.success(a.data.message||"Event guests invited successfully!"),t.invalidateQueries({queryKey:["invitedGuests",e.eventId]})},onError:e=>{var t,a;l.default.error((null==(a=e.response)||null==(t=a.data)?void 0:t.message)||"Failed to invite event guests. Please try again.")}})}function d(e){let t=(0,s.jE)();return(0,n.n)({mutationFn:e=>o.v.post("/invite-guests/decline/".concat(e.inviteId)),onSuccess:a=>{var i;let s;l.default.success((null==(i=a.data)?void 0:i.message)||"Guest invitation declined"),s=e.eventId,t.invalidateQueries({queryKey:["invitedGuests",s]})},onError:e=>{var t,a;l.default.error((null==(a=e.response)||null==(t=a.data)?void 0:t.message)||"Failed to decline guest invitation. Please try again.")}})}function _(){return(0,n.n)({mutationFn:e=>{let{eventId:t}=e;return o.v.post("/invite-guests/decline-by-event/".concat(t))}})}},48316:(e,t,a)=>{a.d(t,{RT:()=>eo,YA:()=>el,m5:()=>ei,o6:()=>en});var i=a(95155);a(12115);var s=a(85998),n=a(42529),l=a(6132),o=a(23327),r=a(5370),c=a(6983),E=a(18756),d=a(5937),_=a(37586),u=a(56154),N=a(83457),m=a(64399),T=a(38104),g=a(94260),h=a(85871),A=a(36100),O=a(92284),b=a(29502),M=a(78519),p=a(91761),I=a(1524),R=a(96583),x=a(12181),v=a(78874),w=a(91169),C=a(39347),S=a(23664),D=a(4788),U=a(48648),y=a(38392),f=a(6613),P=a(37397),j=a(30924),L=a(78862),V=a(42196),Y=a(7658),F=a(45345),k=a(26921),G=a(26983),H=a(52472),W=a(95740),B=a(52056),Q=a(18154),$=a(15088),K=a(24589),q=a(6926),J=a(68695),z=a(4475),X=a(14122),Z=a(16485);let ee={icon:(0,i.jsx)(s.A,{className:"h-4 w-4"}),bg:"bg-slate-500",color:"text-white"},et={SUCCESS:{icon:(0,i.jsx)(n.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},ERROR:{icon:(0,i.jsx)(l.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},INFO:{icon:(0,i.jsx)(o.A,{className:"h-4 w-4"}),bg:"bg-cyan-500",color:"text-white"},PASSWORD_RESET:{icon:(0,i.jsx)(r.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},COMMENT_REPLY:{icon:(0,i.jsx)(c.A,{className:"h-4 w-4"}),bg:"bg-indigo-500",color:"text-white"},COMMENT_MENTION:{icon:(0,i.jsx)(E.A,{className:"h-4 w-4"}),bg:"bg-violet-500",color:"text-white"},MOMENT_COMMENT:{icon:(0,i.jsx)(d.A,{className:"h-4 w-4"}),bg:"bg-pink-500",color:"text-white"},MOMENT_COMMENT_REPLY:{icon:(0,i.jsx)(c.A,{className:"h-4 w-4"}),bg:"bg-pink-500",color:"text-white"},POST_COMMENT:{icon:(0,i.jsx)(_.A,{className:"h-4 w-4"}),bg:"bg-indigo-500",color:"text-white"},PULSE_COMMENT:{icon:(0,i.jsx)(u.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},POST_MENTION:{icon:(0,i.jsx)(E.A,{className:"h-4 w-4"}),bg:"bg-violet-500",color:"text-white"},POST_REACTION:{icon:(0,i.jsx)(N.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},MOMENT_REACTION:{icon:(0,i.jsx)(N.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},STORY_REACTION:{icon:(0,i.jsx)(N.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},EVENT_CANCELLED:{icon:(0,i.jsx)(m.A,{className:"h-4 w-4"}),bg:"bg-red-500",color:"text-white"},RSVP_CONFIRMATION:{icon:(0,i.jsx)(T.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},RSVP_REJECTED:{icon:(0,i.jsx)(g.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},EVENT_UPDATED:{icon:(0,i.jsx)(h.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},EVENT_PUBLISHED:{icon:(0,i.jsx)(A.A,{className:"h-4 w-4"}),bg:"bg-blue-600",color:"text-white"},EVENT_UNPUBLISHED:{icon:(0,i.jsx)(O.A,{className:"h-4 w-4"}),bg:"bg-slate-600",color:"text-white"},EVENT_REMINDER:{icon:(0,i.jsx)(b.A,{className:"h-4 w-4"}),bg:"bg-orange-500",color:"text-white"},EVENT_CREATED_DRAFT:{icon:(0,i.jsx)(A.A,{className:"h-4 w-4"}),bg:"bg-slate-500",color:"text-white"},PAYMENT_SUCCESS:{icon:(0,i.jsx)(n.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},PAYMENT_FAILED:{icon:(0,i.jsx)(l.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},PAYMENT_CONFIRMATION:{icon:(0,i.jsx)(M.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},REFUND_PROCESSED:{icon:(0,i.jsx)(p.A,{className:"h-4 w-4"}),bg:"bg-emerald-600",color:"text-white"},MEMBERSHIP_TIER_UPGRADED:{icon:(0,i.jsx)(I.A,{className:"h-4 w-4"}),bg:"bg-amber-400",color:"text-black"},NEW_FOLLOWER:{icon:(0,i.jsx)(R.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},new_follower:{icon:(0,i.jsx)(R.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},FOLLOW_REQUEST:{icon:(0,i.jsx)(R.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},FOLLOW_REQUEST_ACCEPTED:{icon:(0,i.jsx)(x.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},COMMUNITY_APPLICATION_APPROVED:{icon:(0,i.jsx)(n.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},COMMUNITY_APPLICATION_REJECTED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_INVITE:{icon:(0,i.jsx)(w.A,{className:"h-4 w-4"}),bg:"bg-amber-400",color:"text-black"},COMMUNITY_ROLE_GRANTED:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-amber-400",color:"text-black"},EVENT_TEAM_ROLE_GRANTED:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},EVENT_INVITE:{icon:(0,i.jsx)(S.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},EVENT_COMMUNITY_REQUEST_RECEIVED:{icon:(0,i.jsx)(D.A,{className:"h-4 w-4"}),bg:"bg-sky-500",color:"text-white"},EVENT_COMMUNITY_REQUEST_APPROVED:{icon:(0,i.jsx)(U.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},EVENT_COMMUNITY_REQUEST_REJECTED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},EVENT_COMMUNITY_REQUEST_CANCELLED:{icon:(0,i.jsx)(y.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},COMMUNITY_AFFILIATE_REQUEST_RECEIVED:{icon:(0,i.jsx)(U.A,{className:"h-4 w-4"}),bg:"bg-sky-500",color:"text-white"},COMMUNITY_AFFILIATE_REQUEST_APPROVED:{icon:(0,i.jsx)(U.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},COMMUNITY_AFFILIATE_REQUEST_REJECTED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_AFFILIATE_REQUEST_CANCELLED:{icon:(0,i.jsx)(y.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},COMMUNITY_HOST_REQUEST_RECEIVED:{icon:(0,i.jsx)(f.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},COMMUNITY_HOST_REQUEST_APPROVED:{icon:(0,i.jsx)(f.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},COMMUNITY_HOST_REQUEST_DECLINED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_HOST_REQUEST_CANCELLED:{icon:(0,i.jsx)(y.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},TOURNAMENT_HOST_ASSIGNED:{icon:(0,i.jsx)(P.A,{className:"h-4 w-4"}),bg:"bg-amber-400",color:"text-black"},EVENT_COMMUNITY_DISCONNECTED:{icon:(0,i.jsx)(j.A,{className:"h-4 w-4"}),bg:"bg-slate-500",color:"text-white"},EVENT_RSVP_CANCELLED:{icon:(0,i.jsx)(g.A,{className:"h-4 w-4"}),bg:"bg-rose-600",color:"text-white"},event_reminder:{icon:(0,i.jsx)(b.A,{className:"h-4 w-4"}),bg:"bg-orange-500",color:"text-white"},new_event:{icon:(0,i.jsx)(A.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},announcement:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},COMMENT_ON_POST:{icon:(0,i.jsx)(_.A,{className:"h-4 w-4"}),bg:"bg-indigo-500",color:"text-white"},REPLY_TO_COMMENT:{icon:(0,i.jsx)(L.A,{className:"h-4 w-4"}),bg:"bg-indigo-600",color:"text-white"},MENTION_IN_COMMENT:{icon:(0,i.jsx)(E.A,{className:"h-4 w-4"}),bg:"bg-purple-600",color:"text-white"},REACTION_TO_MOMENT:{icon:(0,i.jsx)(N.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_MOMENT_REACTION:{icon:(0,i.jsx)(N.A,{className:"h-4 w-4"}),bg:"bg-pink-500",color:"text-white"},COMMUNITY_MOMENT_COMMENT:{icon:(0,i.jsx)(d.A,{className:"h-4 w-4"}),bg:"bg-indigo-500",color:"text-white"},COMMUNITY_MOMENT_NEW:{icon:(0,i.jsx)(V.A,{className:"h-4 w-4"}),bg:"bg-teal-500",color:"text-white"},MOMENT_NEW:{icon:(0,i.jsx)(V.A,{className:"h-4 w-4"}),bg:"bg-teal-500",color:"text-white"},FRIEND_GOING_TO_EVENT:{icon:(0,i.jsx)(Y.A,{className:"h-4 w-4"}),bg:"bg-teal-500",color:"text-white"},FRIEND_REQUEST:{icon:(0,i.jsx)(R.A,{className:"h-4 w-4"}),bg:"bg-purple-500",color:"text-white"},FRIEND_REQUEST_ACCEPTED:{icon:(0,i.jsx)(x.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},EVENT_FRIEND_INVITE:{icon:(0,i.jsx)(S.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},HOST_FRIEND_INVITE:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},HOST_INVITATION:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},HOST_INVITATION_ACCEPTED:{icon:(0,i.jsx)(x.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},HOST_INVITATION_DECLINED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_INVITE_ACCEPTED:{icon:(0,i.jsx)(x.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},COMMUNITY_INVITE_DECLINED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},COMMUNITY_NEW_EVENT:{icon:(0,i.jsx)(A.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},COMMUNITY_NEW_POST:{icon:(0,i.jsx)(_.A,{className:"h-4 w-4"}),bg:"bg-sky-500",color:"text-white"},COMMUNITY_NEW_MENTION:{icon:(0,i.jsx)(E.A,{className:"h-4 w-4"}),bg:"bg-fuchsia-500",color:"text-white"},GUEST_INVITE_ACCEPTED:{icon:(0,i.jsx)(T.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},GUEST_INVITE_DECLINED:{icon:(0,i.jsx)(g.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},POST_COMMUNITY_TAG:{icon:(0,i.jsx)(F.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},MEMBERSHIP_PAYMENT_SUCCESS:{icon:(0,i.jsx)(M.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},MEMBERSHIP_PAYMENT_FAILED:{icon:(0,i.jsx)(M.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},MEMBERSHIP_TIER_DOWNGRADED:{icon:(0,i.jsx)(k.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},MEMBERSHIP_RENEWAL_REMINDER:{icon:(0,i.jsx)(G.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},BADGE_EARNED:{icon:(0,i.jsx)(H.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},TIER_UPGRADE:{icon:(0,i.jsx)(I.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},STREAK_MILESTONE:{icon:(0,i.jsx)(W.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},CHALLENGE_COMPLETED:{icon:(0,i.jsx)(n.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},CHALLENGE_EXPIRED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},LEADERBOARD_TOP_10:{icon:(0,i.jsx)(C.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},LEADERBOARD_RANK_JUMP:{icon:(0,i.jsx)(I.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},STREAK_DANGER:{icon:(0,i.jsx)(B.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},LEAGUE_WEEK_STARTED:{icon:(0,i.jsx)(G.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},LEAGUE_WEEK_ENDED:{icon:(0,i.jsx)(G.A,{className:"h-4 w-4"}),bg:"bg-purple-500",color:"text-white"},LEAGUE_PROMOTION:{icon:(0,i.jsx)(I.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},LEAGUE_DEMOTION:{icon:(0,i.jsx)(k.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},TOURNAMENT_REGISTRATION_OPEN:{icon:(0,i.jsx)(f.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},TOURNAMENT_CHECK_IN_OPEN:{icon:(0,i.jsx)(Q.A,{className:"h-4 w-4"}),bg:"bg-orange-500",color:"text-white"},TOURNAMENT_ROSTER_INVITE:{icon:(0,i.jsx)($.A,{className:"h-4 w-4"}),bg:"bg-indigo-500",color:"text-white"},TOURNAMENT_BRACKET_POSTED:{icon:(0,i.jsx)(f.A,{className:"h-4 w-4"}),bg:"bg-violet-500",color:"text-white"},TOURNAMENT_MATCH_READY:{icon:(0,i.jsx)(P.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},TOURNAMENT_RESULT_REPORTED:{icon:(0,i.jsx)(K.A,{className:"h-4 w-4"}),bg:"bg-cyan-500",color:"text-white"},TOURNAMENT_RESULT_CONFIRMED:{icon:(0,i.jsx)(n.A,{className:"h-4 w-4"}),bg:"bg-emerald-600",color:"text-white"},TOURNAMENT_MATCH_DISPUTED:{icon:(0,i.jsx)(q.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"},TOURNAMENT_DISPUTE_RESOLVED:{icon:(0,i.jsx)(q.A,{className:"h-4 w-4"}),bg:"bg-slate-500",color:"text-white"},TOURNAMENT_ROUND_COMPLETE:{icon:(0,i.jsx)(u.A,{className:"h-4 w-4"}),bg:"bg-blue-500",color:"text-white"},TOURNAMENT_COMPLETED:{icon:(0,i.jsx)(f.A,{className:"h-4 w-4"}),bg:"bg-yellow-500",color:"text-black"},TOURNAMENT_WAITLIST_PROMOTED:{icon:(0,i.jsx)(J.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},TOURNAMENT_MOVED_TO_WAITLIST:{icon:(0,i.jsx)(z.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-black"},TOURNAMENT_ENTRY_REFUNDED:{icon:(0,i.jsx)(X.A,{className:"h-4 w-4"}),bg:"bg-sky-500",color:"text-white"},RSVP:{icon:(0,i.jsx)(T.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},WAITLIST:{icon:(0,i.jsx)(G.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},WELCOME:{icon:(0,i.jsx)(W.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},WARNING:{icon:(0,i.jsx)(B.A,{className:"h-4 w-4"}),bg:"bg-amber-500",color:"text-white"},POINTS_EARNED:{icon:(0,i.jsx)(p.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},BADGE_UNLOCKED:{icon:(0,i.jsx)(H.A,{className:"h-4 w-4"}),bg:"bg-primary",color:"text-black"},MEMBERSHIP_RENEWED:{icon:(0,i.jsx)(Z.A,{className:"h-4 w-4"}),bg:"bg-emerald-500",color:"text-white"},MEMBERSHIP_CANCELLED:{icon:(0,i.jsx)(v.A,{className:"h-4 w-4"}),bg:"bg-rose-500",color:"text-white"}},ea=[[["EVENT_CANCELLED","RSVP_CONFIRMATION","RSVP_REJECTED","EVENT_UPDATED","EVENT_PUBLISHED","EVENT_UNPUBLISHED","EVENT_REMINDER","EVENT_CREATED_DRAFT","EVENT_RSVP_CANCELLED","EVENT_INVITE","EVENT_FRIEND_INVITE","HOST_FRIEND_INVITE","HOST_INVITATION","HOST_INVITATION_ACCEPTED","HOST_INVITATION_DECLINED","GUEST_INVITE_ACCEPTED","GUEST_INVITE_DECLINED","EVENT_TEAM_ROLE_GRANTED","RSVP","WAITLIST","event_reminder","new_event","event_update"],{label:"Event",className:"bg-blue-500/15 text-blue-400"}
1],[["EVENT_COMMUNITY_REQUEST_RECEIVED","EVENT_COMMUNITY_REQUEST_APPROVED","EVENT_COMMUNITY_REQUEST_REJECTED","EVENT_COMMUNITY_REQUEST_CANCELLED","EVENT_COMMUNITY_DISCONNECTED","COMMUNITY_NEW_EVENT"],{label:"Event-Club",className:"bg-cyan-500/15 text-cyan-400"}],[["COMMUNITY_NEW_JOIN_REQUEST"],{label:"New Member",className:"bg-orange-500/15 text-orange-400"}],[["FRIEND_GOING_TO_EVENT"],{label:"Friends",className:"bg-teal-500/15 text-teal-400"}],[["POST_COMMUNITY_TAG"],{label:"Tagged",className:"bg-rose-500/15 text-rose-400"}],[["NEW_FOLLOWER","new_follower","FOLLOW_REQUEST","FOLLOW_REQUEST_ACCEPTED","FRIEND_REQUEST","FRIEND_REQUEST_ACCEPTED"],{label:"Social",className:"bg-purple-500/15 text-purple-400"}],[["POST_COMMENT","POST_MENTION","POST_REACTION","COMMENT_REPLY","COMMENT_MENTION","MOMENT_COMMENT","MOMENT_COMMENT_REPLY","MOMENT_REACTION","STORY_REACTION","PULSE_COMMENT","COMMENT_ON_POST","REPLY_TO_COMMENT","MENTION_IN_COMMENT","REACTION_TO_MOMENT","COMMUNITY_MOMENT_REACTION","COMMUNITY_MOMENT_COMMENT","COMMUNITY_MOMENT_NEW","MOMENT_NEW","COMMUNITY_NEW_MENTION"],{label:"Activity",className:"bg-violet-500/15 text-violet-400"}],[["PAYMENT_SUCCESS","PAYMENT_FAILED","PAYMENT_CONFIRMATION","REFUND_PROCESSED","MEMBERSHIP_PAYMENT_SUCCESS","MEMBERSHIP_PAYMENT_FAILED"],{label:"Payment",className:"bg-emerald-500/15 text-emerald-400"}],[["COMMUNITY_INVITE","COMMUNITY_APPLICATION_APPROVED","COMMUNITY_APPLICATION_REJECTED","COMMUNITY_INVITE_ACCEPTED","COMMUNITY_INVITE_DECLINED","COMMUNITY_TIER_UPDATED","COMMUNITY_NEW_POST","COMMUNITY_ROLE_GRANTED","COMMUNITY_AFFILIATE_REQUEST_RECEIVED","COMMUNITY_AFFILIATE_REQUEST_APPROVED","COMMUNITY_AFFILIATE_REQUEST_REJECTED","COMMUNITY_AFFILIATE_REQUEST_CANCELLED","COMMUNITY_HOST_REQUEST_RECEIVED","COMMUNITY_HOST_REQUEST_APPROVED","COMMUNITY_HOST_REQUEST_DECLINED","COMMUNITY_HOST_REQUEST_CANCELLED"],{label:"Community",className:"bg-amber-500/15 text-amber-400"}],[["MEMBERSHIP_TIER_UPGRADED","MEMBERSHIP_TIER_DOWNGRADED","MEMBERSHIP_RENEWED","MEMBERSHIP_CANCELLED","MEMBERSHIP_RENEWAL_REMINDER","POINTS_EARNED","BADGE_UNLOCKED","BADGE_EARNED","TIER_UPGRADE","STREAK_MILESTONE","CHALLENGE_COMPLETED","CHALLENGE_EXPIRED","LEADERBOARD_TOP_10","LEADERBOARD_RANK_JUMP","STREAK_DANGER","LEAGUE_WEEK_STARTED","LEAGUE_WEEK_ENDED","LEAGUE_PROMOTION","LEAGUE_DEMOTION"],{label:"Membership",className:"bg-yellow-500/15 text-yellow-400"}],[["TOURNAMENT_REGISTRATION_OPEN","TOURNAMENT_CHECK_IN_OPEN","TOURNAMENT_ROSTER_INVITE","TOURNAMENT_BRACKET_POSTED","TOURNAMENT_MATCH_READY","TOURNAMENT_RESULT_REPORTED","TOURNAMENT_RESULT_CONFIRMED","TOURNAMENT_MATCH_DISPUTED","TOURNAMENT_DISPUTE_RESOLVED","TOURNAMENT_ROUND_COMPLETE","TOURNAMENT_COMPLETED","TOURNAMENT_HOST_ASSIGNED","TOURNAMENT_WAITLIST_PROMOTED","TOURNAMENT_MOVED_TO_WAITLIST","TOURNAMENT_ENTRY_REFUNDED"],{label:"Tournament",className:"bg-orange-500/15 text-orange-400"}],[["announcement","INFO","SUCCESS","ERROR","WARNING","PASSWORD_RESET","WELCOME"],{label:"System",className:"bg-slate-500/15 text-slate-400"}]],ei=new Set(["NEW_FOLLOWER","new_follower","FOLLOW_REQUEST","FOLLOW_REQUEST_ACCEPTED","FRIEND_REQUEST","FRIEND_REQUEST_ACCEPTED","FRIEND_GOING_TO_EVENT","COMMENT_REPLY","COMMENT_MENTION","MOMENT_COMMENT","MOMENT_COMMENT_REPLY","POST_COMMENT","POST_MENTION","POST_REACTION","POST_COMMUNITY_TAG","MOMENT_REACTION","STORY_REACTION","COMMENT_ON_POST","REPLY_TO_COMMENT","MENTION_IN_COMMENT","REACTION_TO_MOMENT","EVENT_INVITE","EVENT_FRIEND_INVITE","COMMUNITY_INVITE","COMMUNITY_NEW_JOIN_REQUEST","COMMUNITY_MOMENT_REACTION","COMMUNITY_MOMENT_COMMENT","HOST_FRIEND_INVITE","HOST_INVITATION","COMMUNITY_ROLE_GRANTED","EVENT_TEAM_ROLE_GRANTED","HOST_INVITATION_ACCEPTED","HOST_INVITATION_DECLINED","EVENT_CREATED_DRAFT","EVENT_UPDATED","EVENT_PUBLISHED","EVENT_UNPUBLISHED","EVENT_CANCELLED","RSVP_CONFIRMATION","RSVP_REJECTED","EVENT_REMINDER"]),es=new Set(["HOST_FRIEND_INVITE","HOST_INVITATION","EVENT_INVITE","EVENT_FRIEND_INVITE","EVENT_TEAM_ROLE_GRANTED"]);function en(e){var t,a;if(es.has(e.type)){let a=null==(t=e.data)?void 0:t.event_image;if("string"==typeof a&&""!==a.trim())return a}return null!=(a=e.imgUrl)?a:null}function el(e){for(let[t,a]of ea)if(t.includes(e))return a;return null}let eo=e=>et[e]||ee},74948:(e,t,a)=>{a.d(t,{V:()=>d});var i=a(95155),s=a(72473),n=a(93499),l=a(51834),o=a(3998),r=a(48316),c=a(6067),E=a(64269);function d(e){let{notification:t,open:a,onOpenChange:d}=e;if(!t)return null;let _=(0,r.RT)(t.type),u=(0,r.YA)(t.type),N=(0,c.d$)(t);return(0,i.jsx)(l.lG,{open:a,onOpenChange:d,children:(0,i.jsxs)(l.Cf,{className:"border border-border-subtle bg-[#14151a] text-text-strong shadow-[0_25px_70px_-15px_rgba(0,0,0,0.9)] sm:max-w-lg",children:[(0,i.jsx)(l.c7,{children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("div",{className:(0,E.cn)("flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl",_.bg),children:(0,i.jsx)("span",{className:_.color,children:_.icon})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)(l.L3,{className:"text-xl font-black tracking-tight text-text-strong",children:t.title||"Notification"}),(0,i.jsx)(l.rr,{className:"mt-1 text-sm text-text-slate-4",children:"This notification does not currently map to a page in the app, so we are showing its details here."})]})]})}),(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)("div",{className:"rounded-2xl border border-border-subtle bg-surface-glass-soft p-4",children:(0,i.jsx)("p",{className:"text-sm leading-relaxed text-text-slate-2",children:t.message})}),(0,i.jsxs)("div",{className:"grid gap-3 text-sm text-text-slate-3",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-4 roun
1ded-xl bg-surface-glass-soft px-3 py-2",children:[(0,i.jsx)("span",{className:"text-slate-600 dark:text-slate-500",children:"Type"}),(0,i.jsx)("span",{className:"truncate font-semibold text-text-slate-2",children:t.type})]}),(0,i.jsxs)("div",{className:"flex items-center justify-between gap-4 rounded-xl bg-surface-glass-soft px-3 py-2",children:[(0,i.jsx)("span",{className:"text-slate-600 dark:text-slate-500",children:"Created"}),(0,i.jsx)("span",{className:"font-semibold text-text-slate-2",children:function(e){if(!e)return"Unknown time";let t=new Date(e);return Number.isNaN(t.getTime())?"Unknown time":(0,s.GP)(t,"PPP p")}(t.createdAt)})]}),u&&(0,i.jsxs)("div",{className:"flex items-center justify-between gap-4 rounded-xl bg-surface-glass-soft px-3 py-2",children:[(0,i.jsx)("span",{className:"text-slate-600 dark:text-slate-500",children:"Category"}),(0,i.jsx)("span",{className:(0,E.cn)("rounded-full px-2.5 py-0.5 text-[11px] font-bold uppercase tracking-wide",u.className),children:u.label})]}),(0,i.jsxs)("div",{className:"rounded-xl bg-surface-glass-soft px-3 py-2",children:[(0,i.jsx)("p",{className:"text-slate-600 dark:text-slate-500",children:"Notification ID"}),(0,i.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-text-slate-3",children:t._id})]}),N&&(0,i.jsxs)("div",{className:"rounded-xl bg-surface-glass-soft px-3 py-2",children:[(0,i.jsx)("p",{className:"text-slate-600 dark:text-slate-500",children:"Original target"}),(0,i.jsx)("p",{className:"mt-1 break-all font-mono text-xs text-text-slate-3",children:N})]})]}),(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsxs)(o.$,{type:"button",variant:"outline",className:"border-border-subtle bg-surface-glass text-text-strong hover:bg-surface-glass-strong hover:text-text-strong",onClick:()=>d(!1),children:[(0,i.jsx)(n.A,{className:"h-4 w-4"}),"Close"]})})]})]})})}},81043:(e,t,a)=>{a.d(t,{KW:()=>i,mb:()=>s});let{useAcceptHostInviteMutation:i,useDeclineHostInviteMutation:s,useDeclineHostInviteByTokenMutation:n}=a(55334).q.injectEndpoints({overrideExisting:!0,endpoints:e=>({acceptHostInvite:e.mutation({query:e=>{let{eventId:t}=e;return{url:"/invite-hosts/".concat(t,"/accept"),method:"POST",requiresAuth:!0}},invalidatesTags:(e,t,a)=>{let{eventId:i}=a;return[{type:"notification",id:"LIST"},{type:"EventMembers",id:i},{type:"eventDetails",id:i}]}}),declineHostInvite:e.mutation({query:e=>{let{eventId:t}=e;return{url:"/invite-hosts/".concat(t,"/decline"),method:"POST",requiresAuth:!0}},invalidatesTags:(e,t,a)=>{let{eventId:i}=a;return[{type:"notification",id:"LIST"},{type:"EventMembers",id:i}]}}),declineHostInviteByToken:e.mutation({query:e=>{let{eventId:t,token:a}=e;return{url:"/invite-hosts/".concat(t,"/decline-token"),method:"POST",body:{token:a}}},invalidatesTags:[{type:"notification",id:"LIST"}]})})})},85851:(e,t,a)=>{a.d(t,{Br:()=>c,Hv:()=>d,LM:()=>_,MS:()=>m,Ph:()=>u,RI:()=>T,Xl:()=>g,Z$:()=>p,_m:()=>N,createCommunity:()=>l,e3:()=>A,getCommunityById:()=>o,joinCommunity:()=>E,l9:()=>I,mH:()=>r,rf:()=>O,v1:()=>h,y$:()=>M,zN:()=>b});var i=a(74037),s=a(77142);let n="".concat((0,s.$)(),"/communities"),l=async(e,t)=>{var a,s;let l=new FormData;return l.append("name",e.name),l.append("description",e.description),e.short_description&&l.append("short_description",e.short_description),e.category_id&&l.append("category_id",e.category_id),l.append("privacy",e.privacy),e.currency_code&&l.append("currency_code",e.currency_code),void 0!==e.manual_approval&&l.append("manual_approval",String(e.manual_approval)),e.tiers&&l.append("tiers",JSON.stringify(e.tiers)),e.tags&&l.append("tags",e.tags.join(",")),(null==(a=e.location)?void 0:a.latitude)&&(null==(s=e.location)?void 0:s.longitude)&&l.append("location",JSON.stringify(e.location)),t&&l.append("icon",t),(await (0,i.K)({url:n,method:"POST",data:l,headers:{requiresAuth:!0,"Content-Type":"multipart/form-data"}})).data},o=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e),method:"GET",headers:{requiresAuth:!1,optionalAuth:!0}})).data,r=async e=>(await (0,i.K)({url:"".concat(n,"/slug/").concat(e),method:"GET",headers:{requiresAuth:!1,optionalAuth:!0}})).data,c=async e=>{let t=new URLSearchParams;return(null==e?void 0:e.category)&&t.append("category",e.category),(null==e?void 0:e.search)&&t.append("search",e.search),(null==e?void 0:e.tags)&&e.tags.length>0&&t.append("tags",e.tags.join(",")),(null==e?void 0:e.featured)&&t.append("featured","true"),(null==e?void 0:e.page)&&t.append("page",String(e.page)),(null==e?void 0:e.limit)&&t.append("limit",String(e.limit)),(null==e?void 0:e.sort)&&t.append("sort",e.sort),(await (0,i.K)({url:"".concat(n,"/discover?").concat(t.toString()),method:"GET",headers:{requiresAuth:!1,optionalAuth:!0}})).data},E=async(e,t)=>{let a={};return(null==t?void 0:t.message)&&(a.message=t.message),(null==t?void 0:t.answers
1)&&t.answers.length>0&&(a.answers=t.answers),(await (0,i.K)({url:"".concat(n,"/").concat(e,"/join"),method:"POST",data:Object.keys(a).length>0?a:void 0,headers:{requiresAuth:!0}})).data},d=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/leave"),method:"POST",headers:{requiresAuth:!0}})).data,_=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/welcome-seen"),method:"POST",headers:{requiresAuth:!0}})).data,u=async(e,t,a,s,l)=>{var o,r;let c=new FormData;return t.name&&c.append("name",t.name),t.slug&&c.append("slug",t.slug),t.description&&c.append("description",t.description),t.short_description&&c.append("short_description",t.short_description),t.category_id&&c.append("category_id",t.category_id),t.privacy&&c.append("privacy",t.privacy),t.currency_code&&c.append("currency_code",t.currency_code),void 0!==t.manual_approval&&c.append("manual_approval",String(t.manual_approval)),t.tiers&&c.append("tiers",JSON.stringify(t.tiers)),t.tags&&c.append("tags",t.tags.join(",")),t.social_links&&c.append("social_links",JSON.stringify(t.social_links)),t.rules&&c.append("rules",JSON.stringify(t.rules)),(null==(o=t.location)?void 0:o.latitude)&&(null==(r=t.location)?void 0:r.longitude)&&c.append("location",JSON.stringify(t.location)),void 0!==t.theme&&c.append("theme",t.theme),void 0!==t.icon_video_url&&c.append("icon_video_url",t.icon_video_url),a&&c.append("icon",a),s&&c.append("cover",s),l&&c.append("icon_video",l),(await (0,i.K)({url:"".concat(n,"/").concat(e),method:"PUT",data:c,headers:{requiresAuth:!0,"Content-Type":"multipart/form-data"}})).data},N=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/list-publicly"),method:"POST",headers:{requiresAuth:!0}})).data,m=async()=>(await (0,i.K)({url:"".concat(n,"/me/my-clubs"),method:"GET",headers:{requiresAuth:!0}})).data,T=async()=>(await (0,i.K)({url:"".concat(n,"/personal"),method:"POST",headers:{requiresAuth:!0}})).data,g=async(e,t)=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/pin"),method:"POST",data:{state:t},headers:{requiresAuth:!0}})).data,h=async(e,t)=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/mute"),method:"POST",data:t,headers:{requiresAuth:!0}})).data,A=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/invite-link"),method:"GET",headers:{requiresAuth:!0}})).data,O=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,t=arguments.length>1?arguments[1]:void 0,a=new URLSearchParams({limit:String(e)});return t&&a.set("cursor",t),(await (0,i.K)({url:"".concat((0,s.$)(),"/users/me/feed?").concat(a.toString()),method:"GET",headers:{requiresAuth:!0}})).data},b=async(e,t)=>{let a=new URLSearchParams;return(null==t?void 0:t.page)&&a.set("page",String(t.page)),(null==t?void 0:t.limit)&&a.set("limit",String(t.limit)),(null==t?void 0:t.upcoming_only)!==void 0&&a.set("upcoming_only",String(t.upcoming_only)),(await (0,i.K)({url:"".concat(n,"/").concat(e,"/events").concat(a.toString()?"?".concat(a.toString()):""),method:"GET"})).data},M=async(e,t)=>(await (0,i.K)({url:"".concat(n,"/").concat(e,"/invite/respond"),method:"POST",data:{status:t},headers:{requiresAuth:!0}})).data,p=async e=>(await (0,i.K)({url:"".concat(n,"/").concat(e),method:"DELETE",headers:{requiresAuth:!0}})).data,I=async(e,t)=>{let a=new URLSearchParams;return(null==t?void 0:t.page)&&a.append("page",String(t.page)),(null==t?void 0:t.limit)&&a.append("limit",String(t.limit)),(null==t?void 0:t.search)&&a.append("search",t.search),(await (0,i.K)({url:"".concat(n,"/").concat(e,"/members?").concat(a.toString()),method:"GET",headers:{requiresAuth:!0}})).data}}}]);
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.