PageSourceSearch

https://app.metrix.finance/_next/static/chunks/0acg0yir~95px.js

js metrix.finance collected 2026-10-08 03:13:25 UTC 35,071 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,901058,271761,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(859346);e.s(["SidebarMain",0,function(e){let i,a,s,l,o=(0,r.c)(8);return o[0]!==e?({className:i,...a}=e,o[0]=e,o[1]=i,o[2]=a):(i=o[1],a=o[2]),o[3]!==i?(s=(0,n.cn)("relative flex w-full min-w-0 flex-1 flex-col border-soft border-l",i),o[3]=i,o[4]=s):s=o[4],o[5]!==a||o[6]!==s?(l=(0,t.jsx)("main",{className:s,"data-slot":"sidebar-main",...a}),o[5]=a,o[6]=s,o[7]=l):l=o[7],l}],901058);var i=e.i(657688),a=e.i(58022),s=e.i(530909);e.i(257457);var l=e.i(926195);e.s(["AppMobileHeader",0,function(){let e,n,o,c,d=(0,r.c)(7),{tierLevel:u,isLoading:m}=(0,l.useAuthorization)();return d[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(s.SidebarTrigger,{className:"h-8 w-8 cursor-pointer"}),n=(0,t.jsx)(i.default,{alt:"Metrix",height:20,src:"/metrix-logo.png",width:70}),d[0]=e,d[1]=n):(e=d[0],n=d[1]),d[2]!==m||d[3]!==u?(o=!m&&(0,t.jsx)(a.TierBadge,{tierLevel:u}),d[2]=m,d[3]=u,d[4]=o):o=d[4],d[5]!==o?(c=(0,t.jsxs)("header",{className:"sticky top-0 z-30 flex h-12 items-center gap-2 border-border border-b bg-background px-3 md:hidden",children:[e,n,o]}),d[5]=o,d[6]=c):c=d[6],c}],271761)},788712,e=>{"use strict";let t=(0,e.i(475254).default)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);e.s(["CircleDollarSign",0,t],788712)},292270,e=>{"use strict";let t=(0,e.i(475254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],292270)},450088,787850,931637,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),i=e.i(270756),a=e.i(522016),s=e.i(618566),l=e.i(755146),o=e.i(530909),c=e.i(22584),d=e.i(659119),u=e.i(926195),m=e.i(66552),h=e.i(859346);let f=(0,n.memo)(function(e){let d,f,b,j,y,S,k,N,v,_,T,A,C,w,I=(0,r.c)(88),{item:O}=e,M=(0,s.usePathname)(),{state:E,isMobile:L}=(0,o.useSidebar)(),[R,D]=(0,n.useState)(0),{hasTier:U,openUpgradeDialog:P}=(0,u.useAuthorization)(),{openDialog:B}=(0,m.useDialog)(),z=O.subItems&&O.subItems.length>0;I[0]!==z||I[1]!==O.subItems||I[2]!==M?(d=!!z&&(O.subItems?.some(e=>M===e.href)??!1),I[0]=z,I[1]=O.subItems,I[2]=M,I[3]=d):d=I[3];let q=d,H=M===O.href&&!q,G=O.icon;if(I[4]!==z||I[5]!==H||I[6]!==q||I[7]!==O.subItems?.[0]?.href||I[8]!==O.subItems?.length||I[9]!==M){let e=z&&(O.subItems?.length??0)>0?O.subItems?.[0]?.href.split("/").slice(0,-1).join("/")||"/":"";f=z&&(H||q||e&&"/"!==e&&M.startsWith(e)),I[4]=z,I[5]=H,I[6]=q,I[7]=O.subItems?.[0]?.href,I[8]=O.subItems?.length,I[9]=M,I[10]=f}else f=I[10];let F=f,{requiredTier:K}=O;I[11]!==U||I[12]!==K?(b=!!K&&!U(K),I[11]=U,I[12]=K,I[13]=b):b=I[13];let Q=b;I[14]!==O.comingSoon||I[15]!==O.href||I[16]!==O.label||I[17]!==B||I[18]!==M?(j=e=>{if(O.comingSoon){e.preventDefault(),B("comingSoon",{featureName:O.label});return}M===O.href&&e.preventDefault()},I[14]=O.comingSoon,I[15]=O.href,I[16]=O.label,I[17]=B,I[18]=M,I[19]=j):j=I[19];let V=j;I[20]!==U||I[21]!==B||I[22]!==P?(y=e=>{if(e.comingSoon)return{locked:!1,onClick:()=>B("comingSoon",{featureName:e.label})};let{requiredTier:t}=e;return t&&!U(t)?{locked:!0,onClick:()=>P(t)}:{locked:!1,href:e.href,onClick:e.href===c.ROUTES.AI_NEW()?x:void 0}},I[20]=U,I[21]=B,I[22]=P,I[23]=y):y=I[23];let W=y,Y=p;if("collapsed"===E&&!L&&z&&!Q){let e,r,n,s,c,d,u,m,f,x,p=`${M}:${R}`,b=H||q;I[24]!==V||I[25]!==O.comingSoon||I[26]!==O.href||I[27]!==M?(e=e=>(0,t.jsx)(a.default,{...e,href:O.href,onClick:t=>{e.onClick?.(t),V(t),O.comingSoon||M===O.href||D(g)}}),I[24]=V,I[25]=O.comingSoon,I[26]=O.href,I[27]=M,I[28]=e):e=I[28],I[29]!==b||I[30]!==e?(r=(0,t.jsx)(o.SidebarMenuButton,{className:"transition-all duration-200",isActive:b,render:e}),I[29]=b,I[30]=e,I[31]=r):r=I[31];let j=O.shimmer&&"metrix-ai-glint";return I[32]!==j?(n=(0,h.cn)(j),I[32]=j,I[33]=n):n=I[33],I[34]!==G||I[35]!==n?(s=(0,t.jsx)(G,{className:n}),I[34]=G,I[35]=n,I[36]=s):s=I[36],I[37]!==O.label?(c=(0,t.jsx)("span",{children:O.label}),I[37]=O.label,I[38]=c):c=I[38],I[39]!==s||I[40]!==c||I[41]!==r?(d=(0,t.jsxs)(l.DropdownMenuTrigger,{delay:150,nativeButton:!1,openOnHover:!0,render:r,children:[s,c]}),I[39]=s,I[40]=c,I[41]=r,I[42]=d):d=I[42],I[43]!==O.label?(u=(0,t.jsx)("h3",{className:"type-mono-xs px-1.5 pt-1.5 pb-1 font-medium text-base-surface uppercase",children:O.label}),I[43]=O.label,I[44]=u):u=I[44],I[45]!==O.subItems||I[46]!==W?(m=O.subItems?.map(e=>{let r=W(e);return(0,t.jsxs)(l.DropdownMenuItem,{render:Y(r),children:[e.label,r.locked&&(0,t.jsx)(i.Lock,{className:"ml-auto size-3! text-muted-foreground!"})]},e.label.toLowerCase())}),I[45]=O.subItems,I[46]=W,I[47]=m):m=I[47],I[48]!==u||I[49]!==m?(f=(0,t.jsxs)(l.DropdownMenuContent,{align:"start",side:"right",sideOffset:6,tone:"glass",children:[u,m]}),I[48]=u,I[49]=m,I[50]=f):f=I[50],I[51]!==d||I[52]!==f||I[53]!==p?(x=(0,t.jsx)(o.SidebarMenuItem,{children:(0,t.jsxs)(l.DropdownMenu,{children:[d,f]},p)}),I[51]=d,I[52]=f,I[53]=p,I[54]=x):x=I[54],x}I[55]!==V||I[56]!==Q||I[57]!==O.href||I[58]!==P||I[59]!==K?(S=e=>Q&&K?(0,t.jsx)("button",{...e,onClick:()=>P(K),type:"button"}):(0,t.jsx)(a.default,{...e,href:O.href,onClick:V}),I[55]=V,I[56]=Q,I[57]=O.href,I[58]=P,I[59]=K,I[60]=S):S=I[60];let X=O.label,$=O.shimmer&&"metrix-ai-glint";I[61]!==$?(k=(0,h.cn)($),I[61]=$,I[62]=k):k=I[62],I[63]!==G||I[64]!==k?(N=(0,t.jsx)(G,{className:k}),I[63]=G,I[64]=k,I[65]=N):N=I[65];let J=O.shimmer&&"metrix-ai-shimmer";return I[66]!==J?(v=(0,h.cn)(J),I[66]=J,I[67]=v):v=I[67],I[68]!==O.label||I[69]!==v?(_=(0,t.jsx)("span",{className:v,children:O.label}),I[68]=O.label,I[69]=v,I[70]=_):_=I[70],I[71]!==Q?(T=Q&&(0,t.jsx)(i.Lock,{className:"ml-auto size-3! text-muted-foreground!"}),I[71]=Q,I[72]=T):T=I[72],I[73]!==H||I[74]!==O.label||I[75]!==N||I[76]!==_||I[77]!==T||I[78]!==S?(A=(0,t.jsxs)(o.SidebarMenuButton,{className:"transition-all duration-200",isActive:H,render:S,tooltip:X,children:[N,_,T]}),I[73]=H,I[74]=O.label,I[75]=N,I[76]=_,I[77]=T,I[78]=S,I[79]=A):A=I[79],I[80]!==O.subItems||I[81]!==M||I[82]!==F||I[83]!==W?(C=F&&(0,t.jsx)(o.SidebarMenuSub,{children:O.subItems?.map(e=>{let r=W(e);return(0,t.jsx)(o.SidebarMenuSubItem,{children:(0,t.jsxs)(o.SidebarMenuSubButton,{isActive:M===e.href,render:Y(r),children:[(0,t.jsx)("span",{children:e.label}),r.locked&&(0,t.jsx)(i.Lock,{className:"ml-auto size-3! text-muted-foreground!"})]})},e.label.toLowerCase())})}),I[80]=O.subItems,I[81]=M,I[82]=F,I[83]=W,I[84]=C):C=I[84],I[85
1]!==A||I[86]!==C?(w=(0,t.jsxs)(o.SidebarMenuItem,{children:[A,C]}),I[85]=A,I[86]=C,I[87]=w):w=I[87],w});function x(){return(0,d.requestNewChat)()}function p(e){return r=>{let n=t=>{r.onClick?.(t),e.onClick?.()};return e.href?(0,t.jsx)(a.default,{...r,href:e.href,onClick:n}):(0,t.jsx)("button",{...r,onClick:n,type:"button"})}}function g(e){return e+1}e.s(["SidebarMenuLink",0,f],787850);let b=(0,n.memo)(function(e){let n,i,a,s,l=(0,r.c)(9),{label:c,items:d}=e;return l[0]!==c?(n=(0,t.jsx)(o.SidebarGroupLabel,{className:"font-mono uppercase",children:c}),l[0]=c,l[1]=n):n=l[1],l[2]!==d?(i=d.map(j),l[2]=d,l[3]=i):i=l[3],l[4]!==i?(a=(0,t.jsx)(o.SidebarGroupContent,{children:(0,t.jsx)(o.SidebarMenu,{className:"gap-2",children:i})}),l[4]=i,l[5]=a):a=l[5],l[6]!==n||l[7]!==a?(s=(0,t.jsxs)(o.SidebarGroup,{children:[n,a]}),l[6]=n,l[7]=a,l[8]=s):s=l[8],s});function j(e){return(0,t.jsx)(f,{item:e},e.label.toLowerCase())}e.s(["SidebarSection",0,b],450088);var y=e.i(519455),S=e.i(61203),k=e.i(471436),N=e.i(375679);e.s(["UpgradeSubscription",0,function(){let e,n,i,s,l,o,d,u,m=(0,r.c)(19),{user:f}=(0,k.useAuth)(),x=f?"Get Premium Plan":"Login to Metrix";m[0]!==x?(e=(0,t.jsx)("h5",{className:"type-heading-h5 font-medium",children:x}),m[0]=x,m[1]=e):e=m[1];let p=f?"Unlock the full Metrix toolkit":"Access all features";m[2]!==p?(n=(0,t.jsx)("p",{className:"type-paragraph-sm text-muted-foreground",children:p}),m[2]=p,m[3]=n):n=m[3],m[4]!==e||m[5]!==n?(i=(0,t.jsxs)("div",{className:"mb-[15px] flex flex-col gap-1",children:[e,n]}),m[4]=e,m[5]=n,m[6]=i):i=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,h.cn)((0,y.buttonVariants)({variant:"pure"}),"h-[34px] w-full"),m[7]=s):s=m[7],m[8]!==f?(l=f?(0,S.billingHref)():c.ROUTES.LOGIN(),m[8]=f,m[9]=l):l=m[9],m[10]!==f?(o=()=>{f&&(0,N.track)("upgrade_cta_click",{source:"sidebar_card"})},m[10]=f,m[11]=o):o=m[11];let g=f?"Upgrade":"Login";return m[12]!==l||m[13]!==o||m[14]!==g?(d=(0,t.jsx)(a.default,{className:s,href:l,onClick:o,children:g}),m[12]=l,m[13]=o,m[14]=g,m[15]=d):d=m[15],m[16]!==i||m[17]!==d?(u=(0,t.jsxs)("div",{className:"rounded-2xl bg-noise bg-radial-dark p-3.5 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.1)] group-data-[collapsible=icon]:hidden",children:[i,d]}),m[16]=i,m[17]=d,m[18]=u):u=m[18],u}],931637)},561659,e=>{"use strict";let t=(0,e.i(475254).default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",0,t],561659)},810980,25652,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,r],810980);let n=(0,t.default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,n],25652)},876115,738341,226907,208392,811107,620559,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(788712),i=e.i(561659),a=e.i(292270),s=e.i(475254);let l=(0,s.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),o=(0,s.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var c=e.i(618566),d=e.i(918306),u=e.i(58022),m=e.i(755146),h=e.i(530909),f=e.i(810980),x=e.i(753819),p=e.i(877237),g=e.i(341806),b=e.i(727938),j=e.i(279252),y=e.i(635279),S=e.i(669397),k=e.i(22584),N=e.i(812898);let v=Object.entries({insights:[{label:"Metrix AI",href:k.ROUTES.AI_NEW(),icon:d.AskAI,requiredTier:N.FEATURE_TIER_MAP.ai.page,shimmer:!0,subItems:[{label:"New chat",href:k.ROUTES.AI_NEW()},{label:"Library",href:k.ROUTES.AI_LIBRARY()}]},{label:"Home",href:k.ROUTES.DASHBOARD(),icon:b.DashboardIcon},{label:"Market",href:k.ROUTES.MARKET(),icon:j.MarketIcon}],defiTools:[{label:"Discover",href:k.ROUTES.DISCOVER_POOLS(),icon:x.AiSearchIcon,subItems:[{label:"Pools",href:k.ROUTES.DISCOVER_POOLS()},{label:"Lending",href:k.ROUTES.DISCOVER_LENDING()}]},{label:"Simulate",href:k.ROUTES.SIMULATE_POOLS(),icon:g.CoinsIcon,subItems:[{label:"Pools",href:k.ROUTES.SIMULATE_POOLS()},{label:"Lending",href:k.ROUTES.SIMULATE_LENDING()}]},{label:"Deploy",href:k.ROUTES.DEPLOY(),icon:y.RocketIcon,comingSoon:!0},{label:"Track",href:k.ROUTES.TRACK_POOLS(),icon:p.ArrowLeftDoubleIcon,subItems:[{label:"Pools",href:k.ROUTES.TRACK_POOLS()},{label:"Lending",href:k.ROUTES.TRACK_LENDING(),requiredTier:N.FEATURE_TIER_MAP.trackLending.lendingPositions}]}]}).map(([e,t])=>({id:e,items:t})),_=[{label:"Portfolio",href:k.ROUTES.PORTFOLIO(),icon:S.WalletIcon},{label:"Docs",href:k.ROUTES.DOCS(),icon:f.BookOpen}],T=[{label:"Settings",href:k.ROUTES.ACCOUNT(),icon:l},{label:"Metrix AI",href:k.ROUTES.ACCOUNT_METRIX_AI(),icon:d.AskAI},{label:"Subscription",href:k.ROUTES.ACCOUNT_SUBSCRIPTION(),icon:i.CreditCard}],A="https://affiliates.metrix.finance/signup",C="https://luminaryassets.com/privacy-policy",w="https://luminaryassets.com/terms-of-service";e.s(["ACCOUNT_SIDEBAR_ITEMS",0,T,"AFFILIATE_PROGRAM_URL",0,A,"OTHERS_SIDEBAR_ITEMS",0,_,"PRIVACY_URL",0,C,"SIDEBAR_SECTIONS",0,v,"TERMS_URL",0,w],738341);var I=e.i(471436),O=e.i(756847),M=e.i(511795);function E(){let e,t=(0,r.c)(2),n=(0,c.useRouter)();return t[0]!==n?(e=async()=>
1{if(O.isLuminaryAuth)return void window.location.assign(O.SSO_LOGOUT_PATH);let e=(0,M.createClient)();await e.auth.signOut(),n.push(k.ROUTES.LOGIN()),n.refresh()},t[0]=n,t[1]=e):e=t[1],e}e.s(["useSignOut",0,E],226907),e.i(257457);var L=e.i(926195);function R(){return window.open(A,"_blank","noopener,noreferrer")}e.s(["AccountMenu",0,function(){let e,s,f,x,p,g,b,j,y,S,N,v,_,T,A,O,M,D,U,P,B,z,q,H,G,F,K=(0,r.c)(44),Q=(0,c.useRouter)(),V=E(),{user:W}=(0,I.useAuth)(),{tierLevel:Y,isLoading:X}=(0,L.useAuthorization)(),$=W?.email??null;return K[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(m.DropdownMenuTrigger,{render:(0,t.jsxs)(h.SidebarMenuButton,{tooltip:"Account",children:[(0,t.jsx)(o,{}),(0,t.jsx)("span",{children:"Account"})]})}),K[0]=e):e=K[0],K[1]!==X||K[2]!==Y?(s=!X&&(0,t.jsx)(u.TierBadge,{className:"w-fit",tierLevel:Y}),K[1]=X,K[2]=Y,K[3]=s):s=K[3],K[4]!==$?(f=$&&(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:$}),K[4]=$,K[5]=f):f=K[5],K[6]!==s||K[7]!==f?(x=(0,t.jsxs)("div",{className:"flex flex-col gap-1 px-3 py-3",children:[s,f]}),K[6]=s,K[7]=f,K[8]=x):x=K[8],K[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(m.DropdownMenuSeparator,{}),K[9]=p):p=K[9],K[10]!==Q?(g=()=>Q.push(k.ROUTES.ACCOUNT()),K[10]=Q,K[11]=g):g=K[11],K[12]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(l,{}),j=(0,t.jsx)("span",{children:"Settings"}),K[12]=b,K[13]=j):(b=K[12],j=K[13]),K[14]!==g?(y=(0,t.jsxs)(m.DropdownMenuItem,{onClick:g,children:[b,j]}),K[14]=g,K[15]=y):y=K[15],K[16]!==Q?(S=()=>Q.push(k.ROUTES.ACCOUNT_METRIX_AI()),K[16]=Q,K[17]=S):S=K[17],K[18]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(d.AskAI,{}),v=(0,t.jsx)("span",{children:"Metrix AI"}),K[18]=N,K[19]=v):(N=K[18],v=K[19]),K[20]!==S?(_=(0,t.jsxs)(m.DropdownMenuItem,{onClick:S,children:[N,v]}),K[20]=S,K[21]=_):_=K[21],K[22]!==Q?(T=()=>Q.push(k.ROUTES.ACCOUNT_SUBSCRIPTION()),K[22]=Q,K[23]=T):T=K[23],K[24]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)(i.CreditCard,{}),O=(0,t.jsx)("span",{children:"Subscription"}),K[24]=A,K[25]=O):(A=K[24],O=K[25]),K[26]!==T?(M=(0,t.jsxs)(m.DropdownMenuItem,{onClick:T,children:[A,O]}),K[26]=T,K[27]=M):M=K[27],K[28]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsxs)(m.DropdownMenuItem,{onClick:R,children:[(0,t.jsx)(n.CircleDollarSign,{}),(0,t.jsx)("span",{children:"Affiliate Program"})]}),K[28]=D):D=K[28],K[29]!==_||K[30]!==M||K[31]!==y?(U=(0,t.jsxs)(m.DropdownMenuGroup,{children:[y,_,M,D]}),K[29]=_,K[30]=M,K[31]=y,K[32]=U):U=K[32],K[33]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(m.DropdownMenuSeparator,{}),K[33]=P):P=K[33],K[34]===Symbol.for("react.memo_cache_sentinel")?(B=(0,t.jsx)(a.LogOut,{}),z=(0,t.jsx)("span",{children:"Logout"}),K[34]=B,K[35]=z):(B=K[34],z=K[35]),K[36]!==V?(q=(0,t.jsx)(m.DropdownMenuGroup,{children:(0,t.jsxs)(m.DropdownMenuItem,{onClick:V,children:[B,z]})}),K[36]=V,K[37]=q):q=K[37],K[38]===Symbol.for("react.memo_cache_sentinel")?(H=(0,t.jsx)(m.DropdownMenuSeparator,{}),K[38]=H):H=K[38],K[39]===Symbol.for("react.memo_cache_sentinel")?(G=(0,t.jsxs)("div",{className:"flex items-center gap-3 px-3 py-2",children:[(0,t.jsx)("a",{className:"text-muted-foreground text-xs hover:text-foreground",href:C,rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"}),(0,t.jsx)("a",{className:"text-muted-foreground text-xs hover:text-foreground",href:w,rel:"noopener noreferrer",target:"_blank",children:"Terms of Service"})]}),K[39]=G):G=K[39],K[40]!==U||K[41]!==q||K[42]!==x?(F=(0,t.jsxs)(m.DropdownMenu,{children:[e,(0,t.jsxs)(m.DropdownMenuContent,{align:"end",className:"min-w-56",side:"top",tone:"glass",children:[x,p,U,P,q,H,G]})]}),K[40]=U,K[41]=q,K[42]=x,K[43]=F):F=K[43],F}],876115);var D=e.i(657688);e.s(["AppSidebarHeader",0,function(){let e,n,i,a,s,l,o,c=(0,r.c)(11),{tierLevel:d,isLoading:m}=(0,L.useAuthorization)();return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(D.default,{alt:"Metrix",className:"ml-2",height:24,src:"/metrix-logo.png",width:84}),c[0]=e):e=c[0],c[1]!==m||c[2]!==d?(n=!m&&(0,t.jsx)(u.TierBadge,{className:"ml-2",tierLevel:d}),c[1]=m,c[2]=d,c[3]=n):n=c[3],c[4]!==n?(i=(0,t.jsxs)("div",{className:"flex flex-1 items-center group-data-[collapsible=icon]:hidden",children:[e,n]}),c[4]=n,c[5]=i):i=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(h.SidebarTrigger,{className:"h-8 w-8 cursor-pointer group-data-[collapsible=icon]:hidden"}),c[6]=a):a=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(D.default,{alt:"Metrix",className:"object-contain object-center transition-opacity duration-200 group-hover:opacity-0",height:24,src:"/metrix-logo-icon.svg",unoptimized:!0,width:35}),c[7]=s):s=c[7],c[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsxs)("div",{className:"relative hidden h-8 w-8 items-center justify-center overflow-hidden group-data-[collapsible=icon]:flex",children:[s,(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:(0,t.jsx)(h.SidebarTrigger,{className:"h-8 w-8 cursor-pointer"})})]}),c[8]=l):l=c[8],c[9]!==i?(o=(0,t.jsx)(h.SidebarHeader,{children:(0,t.jsxs)("div",{className:"flex items-center justify-center py-1",children:[i,a,l]})}),c[9]=i,c[10]=o):o=c[10],o}],208392);var U=e.i(245423);let P=(0,s.default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]),B=(0,s.default)("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);var z=e.i(531278),q=e.i(271645),H=e.i(503116);let G=(0,s.default)("heart-pulse",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]]),F=(0,s.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),K=(0,s.default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]);var Q=e.i(581418),V=e.i(25652),W=e.i(252754),Y=e.i(297796),X=e.i(859346),$=e.i(858697);let J={analytics:F,price:V.TrendingUp,time:H.Clock,security:Q.ShieldCheck,payout:n.CircleDollarSign,wallet:W.Wallet,announcement:K,lending:G};function Z(e){let n,i,a,s,l,o,c,d,u,m,h=(0,r.c)(28),{notification:f,onSelect:x}=e,{id:p,title:g,description:b,createdAt:j,read:y,icon:S,tokens:k}=f,N=J[S];h[0]!==p||h[1]!==x?(n=()=>x(p),h[0]=p,h[1]=x,h[2]=n):n=h[2],h[3]!==N||h[4]!==k?(i=k?(0,t.jsx)(Y.TokenPairStack,{className:"shrink-0",size:24,token1Alt:k.token0Symbol??"Token 1",token1Logo:k.token0Logo,token2Alt:k.token1Symbol??"Token 2",token2Logo:k.token1Logo}):(0,t.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-soft text-muted-foreground",children:(0,t.jsx)(N,{className:"size-4"})}),h[3]=N,h[4]=k,h[5]=i):i=h[5];let v=y?"text-muted-foreground":"text-foreground";return h[6]!==v?(a=(0,X.cn)("truncate font-medium text-sm",v),h[6]=v,h[7]=a):a=h[7],h[8]!==a||h[9]!==g?(s=(0,t.jsx)("p",{className:a,children:g}),h[8]=a,h[9]=g,h[10]=s):s=h[10],h[11]!==b?(l=(0,t.jsx)("p",{className:"line-clamp-2 text-muted-foreground text-xs",children:b}),h[11]=b,h[12]=l):l=h[12],h[13]!==j?(o=(0,$.formatTimeAgo)(j),h[13]=j,h[14]=o):o=h[14],h[15]!==o?(c=(0,t.jsx)("span",{className:"type-label-xs-compact mt-0.5 text-muted-foreground",children:o}),h[15]=o,h[16]=c):c=h[16],h[17]!==s||h[18]!==l||h[19]!==c?(d=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[s,l,c]}),h[17]=s,h[18]=l,h[19]=c,h[20]=d):d=h[20],h[21]!==y?(u=!y&&(0,t.jsx)("span",{className:"mt-1.5 size-2 shrink-0 rounded-full bg-primary"}),h[21]=y,h[22]=u):u=h[22],h[23]!==n||h[24]!==u||h[25]!==i||h[26]!==d?(m=(0,t.jsxs)("button",{className:"flex w-full items-start gap-3 px-3 py-3 text-left transition-colors hover:bg-sidebar-accent",onClick:n,type:"button",children:[i,d,u]}),h[23]=n,h[24]=u,h[25]=i,h[26]=d,h[27]=m):m=h[27],m}var ee=e.i(522016),et=e.i(918789),er=e.i(742531),en=e.i(461869),ei=e.i(519455),ea=e.i(776639);let es={p:({children:e})=>(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-6 [&:not(:first-child)]:mt-2.5",children:e}),h1:({children:e})=>(0,t.jsx)("h1",{className:"type-heading-h6 mt-5 mb-2 font-medium text-foreground first:mt-0",children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"type-heading-h6 mt-5 mb-2 font-medium text-foreground first:mt-0",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"type-label-xs-compact mt-5 mb-2 font-medium text-muted-foreground uppercase tracking-wider first:mt-0",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"mt-4 mb-1.5 font-medium text-foreground text-sm first:mt-0",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"mt-2 mb-1 list-disc space-y-1.5 pl-5 marker:text-primary [&:not(:first-child)]:mt-2.5",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"mt-2 mb-1 list-decimal space-y-1.5 pl-5 marker:text-muted-foreground [&:not(:first-child)]:mt-2.5",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"pl-1 text-muted-foreground text-sm leading-6",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"font-medium text-foreground",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),a:({children:e,href:r})=>(0,t.jsx)("a",{className:en.textLinkClasses,href:r,rel:"noopener noreferrer",target:"_blank",children:e}),hr:()=>(0,t.jsx)("hr",{className:"my-4 border-border"}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:"my-3 rounded-lg border-primary/40 border-l-2 bg-soft/40 py-2 pr-3 pl-4 text-muted-foreground",children:e}),code:({children:e,className:r})=>r?(0,t.jsx)("code",{className:(0,X.cn)("font-mono text-xs",r),children:e}):(0,t.jsx)("code",{className:"rounded-md bg-soft/60 px-1.5 py-0.5 font-mono text-[0.85em] text-foreground",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"my-3 overflow-x-auto rounded-xl bg-soft/40 p-3 text-foreground text-xs",children:e}),table:({children:e})=>(0,t.jsx)("div",{className:"my-3 overflow-x-auto rounded-lg ring-1 ring-border",children:(0,t.jsx)("table",{className:"w-full border-collapse text-sm",children:e})}),thead:({children:e})=>(0,t.jsx)("thead",{className:"bg-soft/40 text-muted-foreground",children:e}),tr:({children:e})=>(0,t.jsx)("tr",{className:"border-border border-b last:border-0",children:e}),th:({children:e})=>(0,t.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:e}),td:({children:e})=>(0,t.jsx)("td",{className:"px-3 py-2 text-foreground",children:e})},el="h-[34px] flex-1 rounded-[10px]";function eo(e){let n,i,a,s,l,o,c,d,u=(0,r.c)(23),{notification:m,onClose:h}=e,f=m?.cta??null;u[0]!==h?(n=e=>{e||h()},u[0]=h,u[1]=n):n=u[1];let x=null!=m,p=null!=f;u[2]!==m?(i=m?.imageUrl?(0,t.jsx)("div",{className:"relative -mx-6 -mt-6 aspect-video w-[calc(100%+3rem)]",children:(0,t.jsx)(D.default,{alt:"",className:"object-cover",fill:!0,sizes:"(max-width: 640px) 100v
1w, 448px",src:m.imageUrl,unoptimized:!0})}):null,u[2]=m,u[3]=i):i=u[3];let g=m?.title;return u[4]!==g?(a=(0,t.jsx)(ea.DialogHeader,{children:(0,t.jsx)(ea.DialogTitle,{children:g})}),u[4]=g,u[5]=a):a=u[5],u[6]!==m?(s=m?.extendedDescription?(0,t.jsx)(et.default,{components:es,remarkPlugins:[er.default],children:m.extendedDescription}):null,u[6]=m,u[7]=s):s=u[7],u[8]!==s?(l=(0,t.jsx)("div",{className:"-mt-2 max-h-[min(26rem,58vh)] overflow-y-auto overscroll-contain",children:s}),u[8]=s,u[9]=l):l=u[9],u[10]!==f||u[11]!==h?(o=(0,t.jsx)(ea.DialogFooter,{className:"gap-4 sm:flex-row",children:f?(0,t.jsx)(ee.default,{className:(0,X.cn)((0,ei.buttonVariants)({variant:"pure"}),el),href:f.url,onClick:h,rel:f.external?"noopener noreferrer":void 0,target:f.external?"_blank":void 0,children:f.label}):(0,t.jsx)(ea.DialogClose,{render:(0,t.jsx)(ei.Button,{className:el,variant:"pure"}),children:"Got it"})}),u[10]=f,u[11]=h,u[12]=o):o=u[12],u[13]!==p||u[14]!==i||u[15]!==a||u[16]!==l||u[17]!==o?(c=(0,t.jsxs)(ea.DialogContent,{className:"sm:max-w-md",glow:"purple",showCloseButton:p,children:[i,a,l,o]}),u[13]=p,u[14]=i,u[15]=a,u[16]=l,u[17]=o,u[18]=c):c=u[18],u[19]!==n||u[20]!==c||u[21]!==x?(d=(0,t.jsx)(ea.Dialog,{onOpenChange:n,open:x,children:c}),u[19]=n,u[20]=c,u[21]=x,u[22]=d):d=u[22],d}var ec=e.i(487486),ed=e.i(337822),eu=e.i(677572),em=e.i(954616),eh=e.i(266027),ef=e.i(912598),ex=e.i(629524),ep=e.i(488387);function eg(e){var t;let r=e.metadata??{},n=!!(r.token0Symbol||r.token1Symbol||r.token0LogoUrl||r.token1LogoUrl);return{id:e.id,category:function(e){switch(e){case"price_alert":case"time_alert":case"lending_alert":return"alert";default:return"update"}}(e.type),title:e.title,description:e.message,extendedDescription:e.extendedDescription??null,imageUrl:e.imageUrl??null,autoOpen:e.autoOpen??!1,createdAt:new Date(e.createdAt).getTime(),read:e.read,icon:function(e){switch(e){case"announcement":return"announcement";case"time_alert":return"time";case"lending_alert":return"lending";default:return"price"}}(e.type),tokens:n?{token0Logo:r.token0LogoUrl??null,token1Logo:r.token1LogoUrl??null,token0Symbol:r.token0Symbol??null,token1Symbol:r.token1Symbol??null}:void 0,href:(t=e.type,"lending_alert"===t&&r.walletAddress&&r.protocol&&r.network&&r.marketId?k.ROUTES.TRACK_LENDING_DETAIL(r.walletAddress,r.protocol,r.network,encodeURIComponent(r.marketId)):null),cta:function(e){let t=e.ctaLabel?.trim(),r=e.ctaUrl?.trim();if(!(t&&r))return null;if(r.startsWith("/")&&!r.startsWith("//"))return{label:t,url:r,external:!1};let n=r.toLowerCase();return n.startsWith("https://")||n.startsWith("http://")?{label:t,url:r,external:!0}:null}(r)}}let eb=["notifications"];function ej(){let e,t,n,i,a,s=(0,r.c)(17),l=(0,ef.useQueryClient)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eb,queryFn:eN,staleTime:ex.CACHE.STALE_TIME,refetchInterval:6e4},s[0]=e):e=s[0];let o=(0,eh.useQuery)(e);s[1]!==l?(t={mutationFn:ek,onMutate:async e=>{await l.cancelQueries({queryKey:eb});let t=l.getQueryData(eb);if(t){let r=t.notifications.some(t=>t.id===e&&!t.read);l.setQueryData(eb,{notifications:t.notifications.map(t=>t.id===e?{...t,read:!0}:t),unreadCount:r?Math.max(0,t.unreadCount-1):t.unreadCount})}return{previous:t}},onError:(e,t,r)=>{r?.previous&&l.setQueryData(eb,r.previous)},onSettled:()=>{l.invalidateQueries({queryKey:eb})}},s[1]=l,s[2]=t):t=s[2];let c=(0,em.useMutation)(t);s[3]!==l?(n={mutationFn:eS,onMutate:async()=>{await l.cancelQueries({queryKey:eb});let e=l.getQueryData(eb);return e&&l.setQueryData(eb,{notifications:e.notifications.map(ey),unreadCount:0}),{previous:e}},onError:(e,t,r)=>{r?.previous&&l.setQueryData(eb,r.previous)},onSettled:()=>{l.invalidateQueries({queryKey:eb})}},s[3]=l,s[4]=n):n=s[4];let d=(0,em.useMutation)(n);s[5]!==o.data?.notifications?(i=o.data?.notifications??[],s[5]=o.data?.notifications,s[6]=i):i=s[6];let u=o.data?.unreadCount??0;return s[7]!==d.isPending||s[8]!==d.mutate||s[9]!==c.mutate||s[10]!==o.error||s[11]!==o.isError||s[12]!==o.isLoading||s[13]!==o.refetch||s[14]!==i||s[15]!==u?(a={notifications:i,unreadCount:u,isLoading:o.isLoading,isError:o.isError,error:o.error,refetch:o.refetch,markAsRead:c.mutate,markAllAsRead:d.mutate,isMarkingAll:d.isPending},s[7]=d.isPending,s[8]=d.mutate,s[9]=c.mutate,s[10]=o.error,s[11]=o.isError,s[12]=o.isLoading,s[13]=o.refetch,s[14]=i,s[15]=u,s[16]=a):a=s[16],a}function ey(e){return{...e,read:!0}}async function eS(){let e=await ep.sdk.notifications.markAllAsRead();if(!e.success||e.error)throw Error(e.error?.message??"Failed to mark all as read");return e}async function ek(e){let t=await ep.sdk.notifications.markAsRead(e);if(!t.success||t.error)throw Error(t.error?.message??"Failed to mark as read");return e}async function eN(){let e=await ep.sdk.notifications.query();if(e.error)throw Error(e.error.message);return{notifications:e.data.map(eg),unreadCount:e.unreadCount}}function ev(e){return"update"===e.category}function e_(e){return"alert"===e.category}function eT(){let e,n,i,a,s,l=(0,r.c)(11),{notifications:o,markAsRead:c}=ej(),[d,u]=(0,q.useState)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=new Set,l[0]=e):e=l[0];let m=(0,q.useRef)(e);l[1]!==o||l[2]!==d?(n=()=>
1{if(d)return;let e=o.find(e=>!e.read&&e.autoOpen&&e.extendedDescription&&!m.current.has(e.id));e&&(m.current.add(e.id),u(e))},i=[o,d],l[1]=o,l[2]=d,l[3]=n,l[4]=i):(n=l[3],i=l[4]),(0,q.useEffect)(n,i),l[5]!==c||l[6]!==d?(a=()=>{d&&!d.read&&c(d.id),u(null)},l[5]=c,l[6]=d,l[7]=a):a=l[7];let h=a;return l[8]!==h||l[9]!==d?(s=(0,t.jsx)(eo,{notification:d,onClose:h}),l[8]=h,l[9]=d,l[10]=s):s=l[10],s}e.s(["NotificationPanel",0,function(){let e,n,i,a,s,l,o,d,u,m,f,x,p,g,b,j,y,S,k,N,v,_,T,A,C,w,I,O=(0,r.c)(71),{notifications:M,unreadCount:E,isLoading:L,isError:R,markAsRead:D,markAllAsRead:H,isMarkingAll:G}=ej(),F=(0,c.useRouter)(),[K,Q]=(0,q.useState)("all"),[V,W]=(0,q.useState)(!1),[Y,$]=(0,q.useState)(null);O[0]!==M?(e=M.filter(e_),O[0]=M,O[1]=e):e=O[1];let J=e.length;O[2]!==M?(n=M.filter(ev),O[2]=M,O[3]=n):n=O[3];let ee=n.length;e:{let e;if("all"===K){i=M;break e}if(O[4]!==M||O[5]!==K){let t;O[7]!==K?(t=e=>e.category===K,O[7]=K,O[8]=t):t=O[8],e=M.filter(t),O[4]=M,O[5]=K,O[6]=e}else e=O[6];i=e}let et=i,er=E>0;O[9]!==D||O[10]!==M||O[11]!==F?(a=e=>{let t=M.find(t=>t.id===e);if(t){if(t.href){t.read||D(e),W(!1),F.push(t.href);return}t.extendedDescription?($(t),W(!1)):t.read||D(e)}},O[9]=D,O[10]=M,O[11]=F,O[12]=a):a=O[12];let en=a;O[13]!==D||O[14]!==Y?(s=()=>{Y&&!Y.read&&D(Y.id),$(null)},O[13]=D,O[14]=Y,O[15]=s):s=O[15];let ei=s;O[16]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(U.Bell,{}),O[16]=l):l=O[16],O[17]!==er||O[18]!==E?(o=er&&(0,t.jsx)("span",{className:"type-label-xs-compact absolute -right-1 -bottom-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 font-medium text-white ring-2 ring-sidebar",children:E>99?"99+":E}),O[17]=er,O[18]=E,O[19]=o):o=O[19],O[20]!==o?(d=(0,t.jsx)(ed.PopoverTrigger,{render:(0,t.jsxs)(h.SidebarMenuButton,{"aria-label":"Notifications",className:"relative w-8 shrink-0 justify-center overflow-visible",tooltip:"Notifications",children:[l,o]})}),O[20]=o,O[21]=d):d=O[21],O[22]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("p",{className:"font-medium text-sm",children:"Notifications"}),O[22]=u):u=O[22],O[23]!==er||O[24]!==E?(m=er&&(0,t.jsx)(ec.Badge,{className:"h-5 px-1.5",variant:"secondary",children:E}),O[23]=er,O[24]=E,O[25]=m):m=O[25],O[26]!==m?(f=(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[u,m]}),O[26]=m,O[27]=f):f=O[27];let ea=(!er||G)&&"pointer-events-none opacity-50";O[28]!==ea?(x=(0,X.cn)("flex items-center gap-1 text-muted-foreground text-xs transition-colors hover:text-foreground",ea),O[28]=ea,O[29]=x):x=O[29];let es=!er||G;return O[30]!==H?(p=()=>H(),O[30]=H,O[31]=p):p=O[31],O[32]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(B,{className:"size-3.5"}),O[32]=g):g=O[32],O[33]!==x||O[34]!==es||O[35]!==p?(b=(0,t.jsxs)("button",{className:x,disabled:es,onClick:p,type:"button",children:[g,"Mark all as read"]}),O[33]=x,O[34]=es,O[35]=p,O[36]=b):b=O[36],O[37]!==f||O[38]!==b?(j=(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 py-3",children:[f,b]}),O[37]=f,O[38]=b,O[39]=j):j=O[39],O[40]===Symbol.for("react.memo_cache_sentinel")?(y=e=>Q(e),O[40]=y):y=O[40],O[41]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(eu.TabsTrigger,{value:"all",children:"All"}),O[41]=S):S=O[41],O[42]!==J?(k=(0,t.jsxs)(eu.TabsTrigger,{value:"alert",children:["Alerts",(0,t.jsx)(ec.Badge,{className:"h-4 px-1",variant:"secondary",children:J})]}),O[42]=J,O[43]=k):k=O[43],O[44]!==ee?(N=(0,t.jsxs)(eu.TabsTrigger,{value:"update",children:["Updates",(0,t.jsx)(ec.Badge,{className:"h-4 px-1",variant:"secondary",children:ee})]}),O[44]=ee,O[45]=N):N=O[45],O[46]!==k||O[47]!==N?(v=(0,t.jsxs)(eu.TabsList,{className:"w-full",children:[S,k,N]}),O[46]=k,O[47]=N,O[48]=v):v=O[48],O[49]!==v||O[50]!==K?(_=(0,t.jsx)("div",{className:"px-3 pb-2",children:(0,t.jsx)(eu.Tabs,{onValueChange:y,value:K,children:v})}),O[49]=v,O[50]=K,O[51]=_):_=O[51],O[52]!==et||O[53]!==en||O[54]!==R||O[55]!==L?(T=(0,t.jsx)("div",{className:"max-h-[min(30rem,70vh)] overflow-y-auto overscroll-contain",children:L?(0,t.jsx)("div",{className:"flex items-center justify-center px-3 py-10",children:(0,t.jsx)(z.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):R?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 px-3 py-10 text-center",children:[(0,t.jsx)(P,{className:"size-6 text-muted-foreground"}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:"Could not load notifications."})]}):et.length>0?(0,t.jsx)("div",{className:"flex flex-col divide-y divide-border",children:et.map(e=>(0,t.jsx)(Z,{notification:e,onSelect:en},e.id))}):(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 px-3 py-10 text-center",children:[(0,t.jsx)(P,{className:"size-6 text-muted-foreground"}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:"No notifications here yet."})]})}
1),O[52]=et,O[53]=en,O[54]=R,O[55]=L,O[56]=T):T=O[56],O[57]!==j||O[58]!==_||O[59]!==T?(A=(0,t.jsxs)(ed.PopoverContent,{align:"end",className:"w-[360px] gap-0 overflow-hidden p-0",side:"right",sideOffset:12,children:[j,_,T]}),O[57]=j,O[58]=_,O[59]=T,O[60]=A):A=O[60],O[61]!==V||O[62]!==A||O[63]!==d?(C=(0,t.jsxs)(ed.Popover,{onOpenChange:W,open:V,children:[d,A]}),O[61]=V,O[62]=A,O[63]=d,O[64]=C):C=O[64],O[65]!==ei||O[66]!==Y?(w=(0,t.jsx)(eo,{notification:Y,onClose:ei}),O[65]=ei,O[66]=Y,O[67]=w):w=O[67],O[68]!==C||O[69]!==w?(I=(0,t.jsxs)(t.Fragment,{children:[C,w]}),O[68]=C,O[69]=w,O[70]=I):I=O[70],I}],811107),e.s(["NotificationAutoOpen",0,function(){let e,n=(0,r.c)(1),{user:i}=(0,I.useAuth)();return i?(n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(eT,{}),n[0]=e):e=n[0],e):null}],620559)},913970,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(530909);e.i(257457);var i=e.i(916144);e.i(145971);var a=e.i(993817);e.s(["AppProviders",0,function(e){let s,l=(0,r.c)(2),{children:o}=e;return l[0]!==o?(s=(0,t.jsx)(a.DialogProvider,{children:(0,t.jsx)(i.AuthorizationProvider,{children:(0,t.jsx)(n.SidebarProvider,{children:o})})}),l[0]=o,l[1]=s):s=l[1],s}])}]);

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.