PageSourceSearch

https://jup.ag/assets/TokenPriceHoverCard-CvpIaA5V.js

js jup.ag collected 2026-10-01 10:12:20 UTC 21,858 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TokenPriceHoverCardChart-DCVJQub7.js","assets/rolldown-runtime--c01j_DQ.js","assets/vendor-tanstack-runtime-CoqVfl8L.js","assets/vendor-node-polyfills-BS_XxkKD.js","assets/vendor-react-runtime-Bi4aHhRv.js","assets/vendor-tanstack-runtime-lVbA50Qj.css","assets/es6-BNB0VtUp.js","assets/vendor-charts-CsgCo76d.js","assets/vendor-charts-BpNrPNXv.css","assets/prop-types-CmIhKMDO.js","assets/tiny-invariant-BsSsJV1A.js"])))=>i.map(i=>d[i]);
2import{n as e,o as t}from"./rolldown-runtime--c01j_DQ.js";import{$2 as n,$x as r,AF as i,AV as a,Ah as o,CR as s,EV as c,HC as l,Iz as u,JC as d,NF as f,NJ as p,Q2 as m,QU as h,SH as g,Sw as _,TV as v,XU as y,YU as b,ZD as x,ZU as S,_W as C,dG as ee,e_ as w,fM as te,fW as ne,gG as T,gJ as re,gy as ie,hG as ae,hH as E,hc as oe,hy as se,iC as ce,iW as le,jF as D,jh as ue,mG as de,mc as fe,ny as pe,pG as me,pY as he,pc as ge,rC as O,r_ as _e,tS as ve,tW as ye,ty as be,vY as k,wR as xe,wU as A,xH as Se,zA as Ce}from"./vendor-tanstack-runtime-CoqVfl8L.js";import{a as we,s as Te}from"./vendor-react-runtime-Bi4aHhRv.js";import{Ct as j,St as Ee,n as De,t as Oe,wt as ke,xt as Ae}from"./TokenSocials-C0X4yPud.js";import{n as je,t as Me}from"./UnderlyingMarketCapTooltipContent-DmHCE9tm.js";import{n as Ne,t as Pe}from"./TokenAddressCopyPopover-CGg4sVFB.js";import{n as Fe,t as M}from"./ContentDate-mmNAiZp6.js";import{n as Ie,t as N}from"./WaveChartSkeleton-EBYdb5uh.js";var P,F,I,L,R=e((()=>{P=`_popup_nrkqh_1`,F=`_popupFull_nrkqh_5`,I=`_primaryText_nrkqh_9`,L={popup:P,popupFull:F,primaryText:I}})),z,B,V,H,U,W,G,K,q,J,Y,X,Le,Z,Re,ze,Q,$,Be=e((()=>{re(),z=t(Te(),1),w(),ce(),_(),ke(),x(),u(),te(),he(),ve(),je(),Ae(),Ne(),De(),pe(),ue(),Fe(),f(),fe(),Ie(),se(),xe(),R(),B=we(),n(),V=ie(()=>m(()=>import(`./TokenPriceHoverCardChart-DCVJQub7.js`).then(e=>e.TokenPriceHoverCardChart),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),{loading:()=>(0,B.jsx)(N,{}),ssr:!1}),H=(0,z.createContext)(null),U=(0,z.createContext)(null),W=(0,z.createContext)(null),G=({children:e,switchDelay:t})=>{let n=A(),[r]=(0,z.useState)(()=>g()),[i]=(0,z.useState)(()=>T()),o=(0,z.useId)(),c=(0,z.useRef)(!1),l=(0,z.useMemo)(()=>({handle:i,groupId:o,resumeHoverDismissal:c}),[i,o]);return n?(0,B.jsx)(E.Group,{switchDelay:t,children:(0,B.jsx)(U.Provider,{value:l,children:(0,B.jsx)(J,{handle:i,groupId:o,resumeHoverDismissal:c,children:(0,B.jsx)(H.Provider,{value:r,children:(0,B.jsx)(E.Tooltip,{handle:r,children:({payload:t})=>(0,B.jsxs)(B.Fragment,{children:[e,(0,B.jsxs)(E.Content,{render:(0,B.jsx)(a.Root,{}),side:t?.side??`bottom`,sideOffset:8,className:s(L.popup,t?.variant===`full`&&L.popupFull,`overflow-hidden rounded-2xl`),collisionAvoidance:{side:`flip`,fallbackAxisSide:`none`},positionerClassName:`data-[closed]:invisible data-[anchor-hidden]:pointer-events-none data-[anchor-hidden]:invisible`,children:[(0,B.jsx)(a.Viewport,{className:`min-h-0 overscroll-contain`,children:(0,B.jsx)(a.Content,{children:(0,B.jsx)(Se,{className:`h-auto overflow-hidden`,children:t?.kind===`stock`?(0,B.jsx)(Y,{stock:t.stock,status:t.status,variant:`minimal`}):t?(0,B.jsx)(Z,{tokenId:t.tokenId,token:t.token,variant:t.variant}):null})})}),(0,B.jsx)(a.Scrollbar,{scrollbarSize:`thin`})]})]})})})})})}):e},K=({tokenId:e,token:t,variant:n=`minimal`,side:r,children:i})=>{let o=A(),c=(0,z.useContext)(H);return o?c?(0,B.jsx)(E.Trigger,{render:i,handle:c,payload:{kind:`token`,tokenId:e,token:t,variant:n,side:r}}):(0,B.jsxs)(E.Tooltip,{children:[(0,B.jsx)(E.Trigger,{render:i}),(0,B.jsxs)(E.Content,{render:(0,B.jsx)(a.Root,{}),side:r??`bottom`,sideOffset:8,className:s(L.popup,n===`full`&&L.popupFull,`overflow-hidden rounded-2xl`),collisionAvoidance:{side:`flip`,fallbackAxisSide:`none`},children:[(0,B.jsx)(a.Viewport,{className:`min-h-0 overscroll-contain`,children:(0,B.jsx)(a.Content,{children:(0,B.jsx)(Z,{tokenId:e,token:t,variant:n})})}),(0,B.jsx)(a.Scrollbar,{scrollbarSize:`thin`})]})]}):i},q=({stock:e,status:t,variant:n=`full`,children:r})=>{let i=A(),a=(0,z.useContext)(H),o=(0,z.useContext)(U),[c]=(0,z.useState)(()=>T()),l=(0,z.useId)(),u=(0,z.useRef)(!1),d=o?.handle??c,f=o?.groupId??l,p=o?.resumeHoverDismissal??u;if(!i)return r;if(n===`minimal`)return a?(0,B.jsx)(E.Trigger,{render:r,handle:a,payload:{kind:`stock`,stock:e,status:t,variant:n}}):(0,B.jsxs)(E.Tooltip,{children:[(0,B.jsx)(E.Trigger,{render:r}),(0,B.jsx)(E.Content,{side:`bottom`,sideOffset:8,className:s(L.popup,`roun
2ded-2xl`),collisionAvoidance:{side:`flip`},children:(0,B.jsx)(Y,{stock:e,status:t,variant:`minimal`})})]});let m=(0,B.jsx)(E.Trigger,{render:r,nativeButton:!1,role:`link`,"data-stock-preview-group":f,className:`focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary`,handle:d,payload:{stock:e,status:t},onPointerLeave:e=>{if(!p.current||(e.relatedTarget instanceof Element?e.relatedTarget.closest(`[data-stock-preview-group]`):null)?.getAttribute(`data-stock-preview-group`)===f)return;let t=Array.from(e.currentTarget.ownerDocument.querySelectorAll(`[data-stock-preview]`)).find(e=>e.getAttribute(`data-stock-preview-group`)===f);t&&!t.contains(t.ownerDocument.activeElement)&&d.close()},onFocus:e=>{e.relatedTarget instanceof Element&&e.relatedTarget.closest(`[data-stock-preview]`)||d.open(e.currentTarget.id)},onClick:e=>e.preventBaseUIHandler(),onKeyDown:e=>{e.key===` `&&e.preventBaseUIHandler()},onKeyUp:e=>{e.key===` `&&e.preventBaseUIHandler()}});return o?m:(0,B.jsx)(J,{handle:d,groupId:f,resumeHoverDismissal:p,children:m})},J=({handle:e,groupId:t,resumeHoverDismissal:n,children:r})=>{let[i,a]=(0,z.useState)(null),o=(0,z.useRef)(null),c=(0,z.useRef)(null),l=(0,z.useRef)(null),u=(0,z.useRef)(!1),d=(0,z.useRef)(!1),f=(0,z.useRef)(null),p=(0,z.useRef)(!1),m=i!==null;return(0,z.useEffect)(()=>{if(!m)return;let e=c.current?.ownerDocument;if(!e)return;let t=e=>{l.current={x:e.clientX,y:e.clientY}},n=e=>{e.relatedTarget||(l.current=null)};return e.addEventListener(`pointermove`,t,!0),e.addEventListener(`pointerdown`,t,!0),e.addEventListener(`pointerout`,n,!0),()=>{e.removeEventListener(`pointermove`,t,!0),e.removeEventListener(`pointerdown`,t,!0),e.removeEventListener(`pointerout`,n,!0)}},[m]),(0,B.jsx)(W.Provider,{value:({trigger:e,...t})=>{n.current=!1,l.current=null,o.current=e,a({...t,open:!0})},children:(0,B.jsx)(E.Popover,{handle:e,onOpenChange:(e,t)=>
2{if(i&&!(u.current&&!e&&t.reason===`imperative-action`)||e&&d.current||e&&t.reason===`trigger-hover`&&o.current===document.activeElement){t.cancel();return}t.trigger instanceof HTMLElement&&(f.current=t.trigger),e||(n.current=!1),p.current=!e&&t.reason===`escape-key`},children:({payload:m})=>(0,B.jsxs)(B.Fragment,{children:[r,(0,B.jsx)(E.Content,{ref:c,"data-stock-preview":``,"data-stock-preview-group":t,"aria-label":m?`${m.stock.symbol} stock preview`:`Stock preview`,initialFocus:!1,onPointerLeave:r=>{let a=r.relatedTarget instanceof Element?r.relatedTarget.closest(`[data-stock-preview-group]`):null;n.current&&!i&&a?.getAttribute(`data-stock-preview-group`)!==t&&!r.currentTarget.contains(r.currentTarget.ownerDocument.activeElement)&&e.close()},finalFocus:()=>p.current?(d.current=!0,f.current?.focus({preventScroll:!0}),d.current=!1,!1):!1,arrow:!0,side:`bottom`,sideOffset:8,className:s(L.popup,L.popupFull,`data-[side=bottom]:data-[starting-style]:translate-none data-[side=top]:data-[starting-style]:translate-none rounded-2xl border-0 px-2 py-1 shadow-md outline-1 outline-border duration-150 data-[ending-style]:scale-90 data-[starting-style]:scale-90 motion-reduce:transition-none motion-reduce:data-[ending-style]:scale-100 motion-reduce:data-[starting-style]:scale-100`),positionerClassName:`data-instant:transition-none transition-[top,right,bottom,left] duration-150 ease-out motion-reduce:transition-none`,hideWhenDetached:!0,collisionAvoidance:{side:`flip`},children:(0,B.jsx)(ae,{className:`motion-reduce:[&[data-activation-direction]>div[data-previous]]:translate-none size-auto transition-[width,height] duration-150 ease-out motion-reduce:transition-none motion-reduce:[&>div]:transition-none`,children:m?(0,B.jsx)(Y,{stock:m.stock,status:m.status},m.stock.symbol):null})}),(0,B.jsx)(b,{open:i?.open??!1,onOpenChange:e=>{e||a(e=>e?{...e,open:!1}:null)},onOpenChangeComplete:e=>{e||a(null)},children:(0,B.jsxs)(h,{"aria-describedby":void 0,finalFocus:t=>t===`mouse`||t===`touch`||t===`pen`?(o.current=null,requestAnimationFrame(()=>{let r=c.current;if(!r||o.current)return;let i=l.current;if(t!==`touch`&&i&&r.contains(r.ownerDocument.elementFromPoint(i.x,i.y))){n.current=!0;return}u.current=!0,e.close(),u.current=!1}),!1):o.current,className:`motion-reduce:transition-none motion-reduce:data-[ending-style]:scale-100 motion-reduce:data-[starting-style]:scale-100`,children:[(0,B.jsxs)(ye,{children:[(0,B.jsxs)(le,{children:[(0,B.jsx)(`span`,{translate:`no`,children:i?.symbol}),` news`]}),(0,B.jsx)(S,{})]}),(0,B.jsxs)(y,{tabIndex:0,role:`region`,"aria-label":`News summary`,className:`space-y-3 p-4 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary`,children:[(0,B.jsx)(M,{value:i?.updatedAt,className:`text-xs text-muted-foreground`}),(0,B.jsx)(`p`,{className:`wrap-anywhere whitespace-pre-wrap text-sm leading-relaxed text-foreground`,children:i?.summary})]})]})})]})})})},Y=(0,z.memo)(({stock:e,status:t,variant:n=`full`})=>(0,B.jsxs)(c,{className:`flex flex-col gap-2 px-1 py-2 motion-reduce:[&_*]:animate-none motion-reduce:[&_*]:after:animate-none`,style:{width:n===`minimal`?240:280},translate:`no`,children:[(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,B.jsx)(ge,{logo:oe({stock:e}),size:`sm`}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,B.jsx)(`span`,{className:s(`truncate text-sm font-semibold leading-tight`,n===`minimal`?L.primaryText:`text-foreground`),children:e.symbol}),(0,B.jsx)(`span`,{className:s(`max-w-28 truncate text-xs`,n===`minimal`?`text-faint-foreground`:`text-muted-foreground`),translate:t?`yes`:`no`,children:t===`pending`?`Loading details…`:t===`unavailable`?`Details unavailable`:e.name})]})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 flex-col items-end gap-0.5`,children:[t===`pending`?(0,B.jsx)(v,{className:`h-4 w-16`}):(0,B.jsx)(i,{className:s(`text-sm font-medium leading-tight`,n===`minimal`?L.primaryText:`text-foreground`),format:`price`,num:e.price,prefix:`$`}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,B.jsx)(`span`,{className:`text-muted-foreground`,children:`24h`}),(0,B.jsx)(`span`,{className:s(D(e.priceChange24h)),children:k(e.priceChange24h===void 0?void 0:e.priceChange24h/100,{maximumFractionDigits:2})})]})]})]}),(0,B.jsx)(`div`,{className:s(`flex w-full`,n===`minimal`?`h-12`:`h-17`),children:t===`pending`?(0,B.jsx)(N,{}):t===`unavailable`?(0,B.jsx)(`span`,{className:`self-center text-xs text-muted-foreground`,translate:`yes`,children:`Open the stock page for details.`}):(0,B.jsx)(X,{symbol:e.symbol,priceChange24h:e.priceChange24h,showDate:n===`full`})}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,B.jsx)(`span`,{className:s(`text-xs`,n===`minimal`?`text-faint-foreground`:`text-muted-foreground`),children:`Market Cap`}),t===`pending`?(0,B.jsx)(v,{className:`h-5 w-20`}):(0,B.jsx)(i,{className:s(`text-sm font-medium`,n===`minimal`?L.primaryText:`text-foreground`),format:`compact`,num:e.mcap,prefix:`$`})]}),(0,B.jsxs)(`div`,{className:`flex flex-col items-end gap-0.5`,children:[(0,B.jsx)(`span`,{className:s(`text-xs`,n===`minimal`?`text-faint-foreground`:`text-muted-foreground`),children:`24h Volume`}),t===`pending`?(0,B.jsx)(v,{className:`h-5 w-20`}):(0,B.jsx)(i,{className:s(`text-sm font-medium`,n===`minimal`?L.primaryText:`text-foreground`),format:`compact`,num:e.volume})]})]}),n===`minimal`?null:t===`pending`?(0,B.jsx)(Q,{}):(0,B.jsx)(Le,{stock:e})]}
2)),X=({symbol:e,priceChange24h:t,showDate:n=!0})=>{let{data:r,status:i}=p({...O.stockPreviewChart({symbol:e}),select:e=>e.bars}),a=r?.[0],o=r?.at(-1),s=r&&r.length>1&&a&&o,c=s?new Date(o.time*1e3).toLocaleDateString(`en-US`,{day:`numeric`,month:`short`,year:`numeric`,timeZone:`UTC`}):void 0;return(0,B.jsxs)(`div`,{className:`flex w-full flex-col gap-1`,children:[(0,B.jsx)(`div`,{className:`h-12 w-full`,children:s?(0,B.jsx)(`div`,{role:`img`,"aria-label":`${e} 1-day price chart, ${c} UTC`,children:(0,B.jsx)(V,{data:r,priceChange24h:t})}):i===`pending`?(0,B.jsx)(`div`,{role:`status`,"aria-label":`Loading stock chart`,children:(0,B.jsx)(N,{})}):(0,B.jsx)(`div`,{className:`flex h-full items-center text-xs text-muted-foreground`,translate:`yes`,children:`Chart unavailable`})}),n?(0,B.jsx)(`div`,{className:`h-4 text-xs text-muted-foreground`,children:c?`1D · ${c} UTC`:null}):null]})},Le=({stock:e})=>{let t=(0,z.useContext)(W),n=(0,z.useRef)(null),[r,i]=(0,z.useState)(!1),a=e.variants?.find(e=>e.issuer===d.XSTOCKS)?.mint,{data:o,status:s}=p({...j.news(a),retry:1}),c=o?.status===`found`?o:void 0,l=c?.updatedAt?Date.now()-Date.parse(c.updatedAt):NaN,u=l>=0&&l<=10080*60*1e3?c?.summary.trim():void 0,f=!!a&&s===`pending`,m=!f&&!u&&!e.description?.trim(),{data:h,status:g}=p({...O.stockRwa({symbol:e.symbol.toLowerCase()}),enabled:m,select:e=>e.description?.trim()}),_=u||e.description?.trim()||h;return(0,z.useLayoutEffect)(()=>{let e=n.current;if(!u||!e)return;let t=()=>{i(e.scrollHeight>e.clientHeight+1||e.scrollWidth>e.clientWidth+1)};t();let r=new ResizeObserver(t);r.observe(e);let a=e.ownerDocument.fonts;return a.addEventListener(`loadingdone`,t),()=>{r.disconnect(),a.removeEventListener(`loadingdone`,t)}},[u]),f||m&&g===`pending`?(0,B.jsx)(Q,{}):_?(0,B.jsxs)(`div`,{className:`flex flex-col gap-1.5 rounded-xl bg-muted/30 p-2.5`,translate:`yes`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center justify-between gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-xs font-medium text-muted-foreground`,children:[(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`iconify size-3.5 shrink-0 bg-station-gradient ph--star-four-fill`}),u?(0,B.jsx)(`span`,{children:`Recent Happenings`}):(0,B.jsxs)(`span`,{children:[`About `,(0,B.jsx)(`span`,{translate:`no`,children:e.symbol})]})]}),u?(0,B.jsx)(M,{value:c?.updatedAt,className:`shrink-0 text-xs text-faint-foreground`}):null]}),(0,B.jsx)(`p`,{ref:n,className:`line-clamp-3 text-xs leading-relaxed text-mid-foreground`,children:_}),u&&t&&r?(0,B.jsxs)(`button`,{type:`button`,"aria-haspopup":`dialog`,onClick:n=>t({symbol:e.symbol,summary:u,updatedAt:c?.updatedAt??void 0,trigger:n.currentTarget}),className:`min-h-6 self-start rounded text-xs font-medium text-primary underline underline-offset-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`,children:[`Read more`,(0,B.jsxs)(`span`,{className:`sr-only`,children:[` `,`about `,(0,B.jsx)(`span`,{translate:`no`,children:e.symbol}),` news`]})]}):null]}):null},Z=(0,z.memo)(({tokenId:e,token:t,variant:n=`minimal`})=>{let{data:r,status:i}=Ce(t?void 0:e),a=t??r??void 0;return!a||!t&&i===`pending`?(0,B.jsx)(Re,{variant:n}):(0,B.jsx)(ze,{token:a,tokenId:e,variant:n})}),Re=({variant:e})=>(0,B.jsxs)(`div`,{className:`flex flex-col gap-2 px-1 py-2`,style:{width:e===`full`?280:240},children:[(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,B.jsx)(v,{className:`size-8 shrink-0 rounded-full`}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,B.jsx)(v,{className:`h-4 w-16`}),e===`full`?(0,B.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,B.jsx)(v,{className:`size-3.5 rounded-full`}),(0,B.jsx)(v,{className:`size-3.5 rounded-full`}),(0,B.jsx)(v,{className:`size-3.5 rounded-full`})]}):(0,B.jsx)(v,{className:`h-3 w-24`})]})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 flex-col items-end gap-1`,children:[(0,B.jsx)(v,{className:`h-4 w-16`}),(0,B.jsx)(v,{className:`h-3 w-12`})]})]}),(0,B.jsx)(N,{}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,B.jsx)(v,{className:`h-3 w-16`}),(0,B.jsx)(v,{className:`h-4 w-20`})]}),(0,B.jsxs)(`div`,{className:`flex flex-col items-end gap-1`,children:[(0,B.jsx)(v,{className:`h-3 w-16`}),(0,B.jsx)(v,{className:`h-4 w-20`})]})]}),e===`full`?(0,B.jsx)(Q,{}):null]}),ze=(0,z.memo)(({token:e,tokenId:t,variant:n})=>{let{price:a}=_e(t),{data:c,status:l}
2=p(j.news(n===`full`?t:void 0)),u=c?.status===`found`&&c.summary?c:null,d=l===`error`||l===`success`&&c?.status!==`pending`,{content:f,isLoading:m,updatedAt:h}=Ee(n===`full`&&d&&!u?t:void 0),g=u?.summary??f,_=u?u.updatedAt:h,y=n===`full`&&(l===`pending`||!u&&m),b=e.stats24h?.priceChange,x=e.circSupply&&a?e.circSupply*a:e.realtimeMcap,S=(0,z.useMemo)(()=>{if(e.stats24h)return(e.stats24h.buyVolume??0)+(e.stats24h.sellVolume??0)},[e.stats24h]),w=r(e)!=null||e.stockData?.mcap!=null;return(0,B.jsxs)(`div`,{className:`flex flex-col gap-2 px-1 py-2`,style:{width:n===`full`?280:240},children:[(0,B.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,B.jsx)(be,{token:e,className:`shrink-0 rounded-full`,hideLaunchpad:!0}),(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,B.jsx)(`span`,{className:s(`truncate text-sm font-semibold leading-tight`,L.primaryText),translate:`no`,children:e.symbol}),n===`full`?(0,B.jsx)(Pe,{assetId:e.id,assetName:e.name,assetSymbol:e.symbol,children:(0,B.jsx)(C,{name:`Address`,copyText:e.id,tooltip:!1,className:`flex size-4 shrink-0 items-center justify-center p-0 text-neutral-500 hover:text-neutral-300`,children:(0,B.jsx)(C.Icon,{className:`size-3`})})}):null]}),n===`full`?(0,B.jsx)(Oe,{token:e,className:`min-h-4`}):(0,B.jsx)(ne,{address:e.id,chars:4,className:`text-xs text-neutral-500 hover:text-neutral-300`})]})]}),(0,B.jsxs)(`div`,{className:`flex shrink-0 flex-col items-end gap-0.5`,children:[(0,B.jsx)(o,{tokenId:t,amount:1,format:`price`,className:s(`text-sm font-medium leading-tight`,L.primaryText),fallback:{loading:(0,B.jsx)(v,{className:`h-4 w-16`})}}),(0,B.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,B.jsx)(`span`,{className:`text-neutral-400`,children:`24h`}),(0,B.jsx)(`span`,{className:s(D(b)),children:k(b===void 0?void 0:b/100,{maximumFractionDigits:2})})]})]})]}),(0,B.jsx)($,{tokenId:t,priceChange24h:b}),(0,B.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[w?(0,B.jsxs)(ee,{modal:!1,children:[(0,B.jsx)(de,{openOnHover:!0,className:`decoration-neutral-500/30 w-fit text-xs text-neutral-500 underline decoration-dotted underline-offset-[3px] hover:text-neutral-300 hover:decoration-current`,children:`UMC`}),(0,B.jsx)(me,{arrow:!0,side:`top`,children:(0,B.jsx)(Me,{underlyingSymbol:e.stockData?.underlyingSymbol})})]}):(0,B.jsx)(`span`,{className:`text-xs text-neutral-500`,children:`Market Cap`}),(0,B.jsx)(i,{className:s(`text-sm font-medium`,L.primaryText),num:w?e.stockData?.mcap:x??e.mcap,prefix:`$`,format:`compact`})]}),(0,B.jsxs)(`div`,{className:`flex flex-col items-end gap-0.5`,children:[(0,B.jsx)(`span`,{className:`text-xs text-neutral-500`,children:`24h Volume`}),(0,B.jsx)(i,{className:s(`text-sm font-medium`,L.primaryText),num:S,prefix:`$`,format:`compact`})]})]}),y?(0,B.jsx)(Q,{}):null,n===`full`&&g?(0,B.jsxs)(`div`,{className:`flex flex-col gap-1.5 rounded-xl bg-muted/30 p-2.5`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center justify-between gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-xs font-medium text-muted-foreground`,children:[(0,B.jsx)(`span`,{className:`iconify size-3.5 shrink-0 bg-station-gradient ph--star-four-fill`}),u?(0,B.jsx)(`span`,{className:`min-w-0 truncate`,children:`Recent Happenings`}):(0,B.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[(0,B.jsx)(`span`,{className:`shrink-0`,children:`About`}),(0,B.jsx)(`span`,{className:`min-w-0 truncate`,translate:`no`,children:e.symbol})]})]}),(0,B.jsx)(M,{value:_,className:`shrink-0 text-xs text-faint-foreground`})]}),(0,B.jsx)(`p`,{className:`line-clamp-5 text-xs leading-relaxed text-mid-foreground`,children:g})]}):null]})}),Q=()=>(0,B.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-xl bg-muted/30 p-2.5`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,B.jsx)(`span`,{"aria-hidden":`true`,className:`iconify size-3.5 shrink-0 bg-muted ph--star-four-fill`}),(0,B.jsx)(v,{className:`h-3 w-24`})]}),(0,B.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,B.jsx)(v,{className:`h-3 w-full`}),(0,B.jsx)(v,{className:`h-3 w-11/12`}),(0,B.jsx)(v,{className:`h-3 w-3/5`})]})]}),$=(0,z.memo)(({tokenId:e,priceChange24h:t})=>{let n=(0,z.useMemo)(()=>Math.floor(Date.now()/1e3),[]),{data:r,status:i}=p({...O.tokenChart({tokenId:e,interval:l.FIFTEEN_MINUTE,candles:96,to:n*1e3,type:`price`}),staleTime:300*1e3});
2return i===`pending`?(0,B.jsx)(N,{}):i===`error`?(0,B.jsx)(`div`,{className:`flex h-12 w-full items-center justify-center`,children:(0,B.jsx)(`span`,{className:`text-xs text-neutral-500`,children:`Chart unavailable`})}):!r||r.length<=1?(0,B.jsx)(`div`,{className:s(`relative h-12 w-full`,!r||r.length===0?`text-neutral-600`:D(t)),children:(0,B.jsx)(`div`,{className:`absolute left-0 right-0 top-1/2 h-0.5 -translate-y-1/2 bg-current opacity-40`})}):(0,B.jsx)(V,{data:r,priceChange24h:t})})}));export{L as a,Be as i,K as n,R as o,G as r,q as t};

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.