1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2286],{12286:(e,t,s)=>{s.d(t,{A4:()=>k,Bi:()=>O,G_:()=>S,HI:()=>C,Mz:()=>g,QY:()=>F,R0:()=>b,Rl:()=>z,U5:()=>_,YM:()=>y,ZN:()=>L,d5:()=>E,dN:()=>w,es:()=>P,hR:()=>A,ij:()=>j,kz:()=>N,n3:()=>p,nl:()=>Q,s9:()=>v,yt:()=>u});var r=s(31901),n=s(27529),a=s(63380),i=s.n(a),l=s(3096),d=s(48912),o=s(7793),c=s(24202),x=s(70067),m=s(54733);function u(e,t){let s=e?.tooltipTextObj;return"function"==typeof s?s(t):s??void 0}function p({tooltip:e,children:t}){if(!e?.text&&!e?.title)return t;let{lede:s,paragraphs:n}=function(e=""){let[t,...s]=String(e).split(/(?<=[.!?])\s+(?=[A-Z0-9"'(])/).filter(Boolean),r=[];for(let e=0;e<s.length;e+=2)r.push(s.slice(e,e+2).join(" "));return{lede:t??"",paragraphs:r}}(e.text);return(0,r.jsx)(o.T2,{className:"max-w-[320px] px-4 py-3",content:(0,r.jsxs)("div",{children:[e.title&&(0,r.jsx)("div",{className:"mb-1.5 border-b border-sr-border-2 pb-1.5 text-[12px] font-semibold text-sr-text",children:e.title}),s&&(0,r.jsx)("p",{className:"font-medium leading-[1.55] text-sr-text",children:s}),n.length>0&&(0,r.jsx)("div",{className:"mt-1.5 space-y-2 font-normal leading-[1.55] text-sr-text-muted",children:n.map((e,t)=>(0,r.jsx)("p",{children:e},t))})]}),children:t})}let f=[{label:"Assets",href:"/assets/all",key:"assets"},{label:"Providers",href:"/providers/all",key:"providers"}],h={assets:"Assets",defi:"DeFi",providers:"Providers"};function b({active:e,title:t,intro:s,rightSlot:n,glyph:a="â"}){return(0,r.jsxs)("div",{className:"flex flex-col gap-3 pt-6 font-sr-sans",children:[(0,r.jsx)(o.nc,{items:[{label:"Staking Rewards",href:"/"},{label:"Discover"},{label:h[e],current:!0}]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[(0,r.jsxs)("h1",{className:"flex items-center gap-[11px] text-[28px] font-bold tracking-[-0.025em] text-sr-text",children:[(0,r.jsx)("span",{className:"grid h-[30px] w-[30px] place-items-center rounded-[8px] bg-sr-surface-3 text-[16px] text-sr-brand",children:a}),t]}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"inline-flex rounded-sr-md border border-sr-border bg-sr-surface-2 p-[2px]",children:f.map(t=>(0,r.jsx)(i(),{href:t.href,"aria-current":t.key===e?"page":void 0,className:(0,d.cn)("rounded-sr-sm px-3 py-[6px] font-sr-mono text-[11px] font-medium tracking-[0.04em] transition-colors",t.key===e?"bg-sr-brand font-semibold text-white":"text-sr-text-subtle hover:text-sr-text"),children:t.label},t.key))}),n]})]}),s&&(0,r.jsx)("p",{className:"max-w-[680px] text-[13.5px] leading-[1.55] text-sr-text-muted",children:s})]})}let g=e=>(0,m.aj)(e,{precision:2,forcePrecision:!1,allowEmpty:!1,withAbbreviation:!0,showApproximation:!1,prefix:"$",showPlus:!1}),w=({children:e})=>(0,r.jsx)("b",{className:"font-semibold text-sr-text",children:e}),j=e=>(0,d.cn)("-mb-px whitespace-nowrap border-b-2 px-3 py-2 font-sr-mono text-[11px] uppercase tracking-[0.05em] transition-colors",e?"border-sr-brand font-semibold text-sr-brand":"border-transparent text-sr-text-subtle hover:text-sr-text"),v=(e,t,s)=>{(0,n.useEffect)(()=>{if(!t)return;let r=t=>{e.some(e=>e.current?.contains(t.target))||s()},n=e=>{"Escape"===e.key&&s()};return document.addEventListener("mousedown",r),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",n)}},[e,t,s])},N="sticky left-0 z-[5] w-[200px] flex-none self-stretch md:static md:w-auto md:min-w-[250px] md:flex-1 md:shrink-0",y=`${N} flex items-center gap-2.5 bg-sr-surface-2 pl-4 md:bg-transparent`,k=(e,t)=>{let s=Math.max(1,t),r=e<s;return Math.min(e%s,r?10:12)*(r?20:40)},E=({columns:e,metricGroups:t,compact:s})=>(0,r.jsxs)("div",{className:(0,d.cn)("flex items-center gap-3 border-b border-sr-border-2 bg-sr-surface pr-4 last:border-b-0",s?"min-h-10 py-1":"min-h-14 py-2"),children:[(0,r.jsxs)("div",{className:`${N} flex items-center gap-2.5 bg-sr-surface pl-4 md:bg-transparent`,children:[(0,r.jsx)("span",{className:"h-3 w-2 rounded bg-sr-surface-3"}),(0,r.jsx)("span",{className:(0,d.cn)("rounded-full bg-sr-surface-3",s?"h-5 w-5":"h-[26px] w-[26px]")}),(0,r.jsx)("span",{className:"h-3 w-28 rounded bg-sr-surface-3"})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center justify-end gap-5",children:e.map(e=>(0,r.jsx)("div",{style:{width:(0,x.f)(t.find(t=>
1t.key===e),!0)},className:"flex justify-end",children:(0,r.jsx)("span",{className:"h-3 w-3/5 rounded bg-sr-surface-3"})},e))}),(0,r.jsx)("span",{className:"w-6 shrink-0"})]}),C="overflow-hidden rounded-sr-sm border border-sr-border bg-sr-surface font-sr-sans shadow-sr",L="border-b border-sr-border bg-sr-surface-2 px-4 py-3",S="-mx-4 overflow-x-auto px-4 md:mx-0 md:px-0",z="w-max min-w-full md:w-full",A="flex flex-1 shrink-0 items-center gap-2.5 min-w-[210px]",F="flex shrink-0 items-center justify-end gap-5";function O({label:e,sortKey:t,sort:s,onSort:n,sortable:a=!0,align:i="right",style:l,className:o,tooltip:c}){let x=s?.key===t,m=!!(c?.text||c?.title);return(0,r.jsx)(p,{tooltip:c,children:(0,r.jsxs)("button",{type:"button",onClick:()=>a&&n?.(t),disabled:!a,style:l,className:(0,d.cn)("flex w-full shrink-0 items-center gap-1 font-sr-mono text-[10px] font-medium uppercase leading-tight tracking-[0.08em] transition-colors","center"===i?"justify-center":"left"===i?"justify-start":"justify-end",x?"text-sr-brand":"text-sr-text-faint",a&&"hover:text-sr-text-muted",m?"cursor-help":a&&"cursor-pointer",o),children:[e,x&&(0,r.jsx)("span",{className:"text-[9px]",children:"asc"===s.dir?"â²":"â¼"})]})})}function P({children:e,align:t="right",className:s,style:n,tooltip:a}){return(0,r.jsx)(p,{tooltip:a,children:(0,r.jsx)("div",{style:n,className:(0,d.cn)("font-sr-mono text-[10px] font-medium uppercase tracking-[0.08em] text-sr-text-faint","center"===t?"text-center":"left"===t?"text-left":"text-right",a?.text||a?.title?"cursor-help":"",s),children:e})})}function Q({onLoadMore:e}){let{paginationParams:t,setPaginationParams:s,hasMore:a,isLoadingMore:i}=(0,c.v)(),[l,d]=(0,n.useTransition)();if(!a)return null;let x=Number(t?.page??0),m=l||i;return(0,r.jsxs)("div",{className:"mt-6 flex justify-center",children:[(0,r.jsx)(o.cN,{variant:"ghost",onClick:()=>{m||(e?.(x+1),d(()=>s({...t,page:x+1})))},disabled:m,"aria-busy":m||void 0,className:"w-[148px] disabled:opacity-100",children:m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"h-3 w-3 animate-spin rounded-full border-[1.5px] border-current border-t-transparent motion-reduce:animate-none"}),"Loading"]}):"Load More â"}),(0,r.jsx)("span",{"aria-live":"polite",className:"sr-only",children:m?"Loading more rows":""})]})}function R({open:e,onOpenChange:t,title:s,children:n,footer:a}){return(0,r.jsx)(l.bL,{open:e,onOpenChange:t,children:(0,r.jsxs)(l.ZL,{children:[(0,r.jsx)(l.hJ,{className:"fixed inset-0 z-[70] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0"}),(0,r.jsxs)(l.UC,{"aria-describedby":void 0,className:"fixed inset-x-0 bottom-0 z-[70] max-h-[85vh] overflow-y-auto rounded-t-[18px] border-t border-sr-border bg-sr-surface p-5 font-sr-sans shadow-sr data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom",children:[(0,r.jsx)("div",{className:"mx-auto mb-4 h-1 w-10 rounded-full bg-sr-border-2"}),(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsx)(l.hE,{className:"text-[15px] font-bold tracking-[-0.01em] text-sr-text",children:s}),(0,r.jsx)(l.bm,{"aria-label":"Close",className:"grid h-7 w-7 place-items-center rounded-sr-sm font-sr-mono text-[13px] text-sr-text-faint transition-colors hover:bg-sr-surface-2 hover:text-sr-text",children:"â"})]}),n,a]})]})})}function _({search:e,children:t}){let[s,a]=(0,n.useState)(!1),i=n.Children.map(t,e=>(0,n.isValidElement)(e)&&(e.type===o.OO||e.type?.liftsIntoSrSheet===!0)?(0,n.cloneElement)(e,{contentClassName:(0,d.cn)("z-[130] w-[var(--radix-select-trigger-width)]",e.props.contentClassName)}):e);return(0,r.jsxs)("div",{className:"flex flex-col gap-2 font-sr-sans md:flex-row md:items-center md:gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 md:contents",children:[e&&(0,r.jsx)("div",{className:"grow md:w-full md:max-w-[280px] md:grow-0",children:e}),(0,r.jsx)(o.cN,{variant:"ghost",className:"h-10 shrink-0 md:hidden",onClick:()=>a(!0),children:"â Filters"})]}),(0,r.jsx)("div",{className:"hidden md:flex md:flex-row md:flex-wrap md:items-center md:gap-3",children:t}
1),(0,r.jsx)(R,{open:s,onOpenChange:a,title:"Filters",footer:(0,r.jsx)(o.cN,{className:"mt-5 w-full",onClick:()=>a(!1),children:"Show results"}),children:(0,r.jsx)("div",{className:"flex flex-col gap-3 [&>*]:w-full [&_[role=combobox]]:w-full",children:i})})]})}},24202:(e,t,s)=>{s.d(t,{B:()=>o,v:()=>c});var r=s(31901),n=s(27529),a=s(4956),i=s(85160),l=s(28825);let d=(0,n.createContext)({}),o=({pageSize:e=i.q2.Twenty,withPerformanceMetric:t=!1,children:s,minRowWidthPx:o=1024,isRewardOptionsTable:c=!1})=>{let x=(0,l.usePathname)(),m=((e=768)=>{let{width:t}=(()=>{let[e,t]=(e=>{var t;let s,r=(0,n.useRef)(0),[a,i]=(0,n.useState)(e),l=(0,n.useCallback)(e=>{cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{i(e)})},[]);return t=()=>{cancelAnimationFrame(r.current)},(s=(0,n.useRef)(t)).current=t,(0,n.useEffect)(()=>()=>s.current(),[]),[a,l]})({width:window.innerWidth,height:window.innerHeight});return(0,n.useEffect)(()=>{{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[!0,t]),e})();return t>=e})(o),u=!c||m,[p,f]=(0,n.useState)(u?i.Qg.List:i.Qg.Grid);(0,n.useEffect)(()=>{f(u?i.Qg.List:i.Qg.Grid)},[u]);let[h,b]=(0,n.useState)({page:0,pageSize:(0,a.Oo)(e)}),[g,w]=(0,n.useState)(null);(0,n.useEffect)(()=>{b({page:0,pageSize:(0,a.Oo)(e)})},[x,e]);
1let[j,v]=(0,n.useState)(!1),N=null!==g&&Number(h?.page??0)>g;return(0,r.jsx)(d.Provider,{value:{selectedTableView:u?p:i.Qg.Grid,setSelectedTableView:f,showTableConfig:u,paginationParams:h,setPaginationParams:b,hasMore:j,setHasMore:v,loadedPage:g,setLoadedPage:w,isLoadingMore:N,withPerformanceMetric:t,pageSize:e},children:s})},c=()=>(0,n.useContext)(d)},70067:(e,t,s)=>{s.d(t,{f:()=>a,x:()=>n});var r=s(85160);function n(e,t){let s=e?.width?parseInt(e.width,10):0;return t?e?.width:e?.width?`${s-50}px`:void 0}function a(e,t){return n(e,t)??r.KK}}}]);
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.