PageSourceSearch

https://www.syraa.fun/assets/SolanaTokenDetailPage-BpjpNizM.js

js syraa.fun collected 2026-10-07 23:55:21 UTC 6,291 bytes, 1 lines download raw bytes

1import{j as e}from"./remotion-D54tqFOj.js";import{x as S}from"./vendor-charts-CXpta1tX.js";import{c as A,b as D,a as T,S as U}from"./SolanaTokenDetailExtras-BcmJTSQp.js";import{pr as E,kL as P,pA as B,gD as t,l8 as N,cm as d,ll as v,lb as x,cX as h,cW as u,aQ as p,lr as f,aA as L,dq as k,lm as R,lo as M,aL as _,i$ as I,I as O,D as G,cI as $,iK as q,iZ as g,lC as F,lA as H,lB as K}from"./index-O9bDP4Mv.js";import{A as j}from"./arrow-left-DwFIIVWN.js";import"./tokensDossierApi-D0lQHxBz.js";import"./chart-candlestick-BH5ilByw.js";import"./useUserWalletBalance-COgl7n1_.js";import"./tokenBalances-IxVgQQqq.js";function Q({src:i,symbol:a}){const[r,n]=S.useState(!1),s=(a||"?").slice(0,1).toUpperCase();return!i||r?e.jsx("span",{className:"inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-full border border-mm-border bg-mm-surface-strong text-base font-semibold text-mm-text-muted","aria-hidden":!0,children:s}):e.jsx("img",{src:i,alt:"",width:48,height:48,className:"h-12 w-12 shrink-0 rounded-full bg-mm-surface-strong object-cover",onError:()=>n(!0)})}function b({label:i,value:a}){return e.jsxs("div",{className:F,children:[e.jsx("p",{className:H,children:i}),e.jsx("p",{className:t(K,"text-base sm:text-lg"),children:a})]})}function w(i){return i.length<=12?i:`${i.slice(0,6)}…${i.slice(-6)}`}function te(){const{mint:i}=E(),a=i?decodeURIComponent(i).trim():"",r=!!(a&&P(a)),n=B(r?a:void 0),s=n.data;if(!a||!r)return e.jsx("div",{className:t(f,p,u,h),children:e.jsxs("div",{className:t(x,"p-5 sm:p-6"),children:[e.jsx("p",{className:"text-sm font-medium text-mm-text",children:"Missing or invalid mint"}),e.jsx("p",{className:t(N,"mt-1"),children:"Open a token from the Solana desk on home."}),e.jsxs(d,{to:"/",className:t(v,"mt-4 inline-flex w-auto px-5"),children:[e.jsx(j,{className:"h-4 w-4","aria-hidden":!0}),"Back to desk"]})]})});if(n.isLoading&&!s)return e.jsx(L,{});if(n.isError||!s)return e.jsx("div",{className:t(f,p,u,h),children:e.jsxs("div",{className:t(x,"p-5 sm:p-6"),children:[e.jsx("p",{className:"text-sm font-medium text-mm-text",children:"Could not load this token"}),e.jsx("p",{className:t(N,"mt-1"),children:n.error instanceof Error?n.error.message:"Market data timed out. Try again."}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",className:t(R,"w-auto min-w-[7rem] px-5"),onClick:()=>void n.refetch(),children:[e.jsx(k,{className:"mr-1.5 h-4 w-4","aria-hidden":!0}),"Retry"]}),e.jsxs(d,{to:"/",className:t(v,"inline-flex w-auto px-5"),children:[e.jsx(j,{className:"h-4 w-4","aria-hidden":!0}),"Back"]})]})]})});const l=s.priceChange24hPct,m=l!=null&&l>0,o=l!=null&&l<0,y=m?O:o?G:$,c=n.isFetching,C=async()=>{try{await navigator.clipboard.writeText(a)}catch{}};return e.jsx("div",{className:t(f,p,u,h,"gap-4"),children:e.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:gap-5",children:[e.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-4 self-start lg:order-2 lg:sticky lg:top-4 lg:w-[20rem]",children:[e.jsx(A,{mint:a,symbol:s.symbol,name:s.name,image:s.image,priceUsd:s.priceUsd,sourceUrl:s.sourceUrl}),e.jsx(D,{token:s})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-4 lg:order-1",children:[e.jsxs("section",{className:t(x,"overflow-hidden"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-mm-border/70 px-3 py-2 sm:px-4",children:[e.jsxs(d,{to:"/",className:t("inline-flex min-h-10 items-center gap-1.5 rounded-lg px-1.5 text-sm font-medium text-mm-text-muted","transition-colors hover:text-mm-text","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mm-accent"),children:[e.jsx(j,{className:"h-4 w-4","aria-hidden":!0}),"Desk"]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("p",{className:t(M,"hidden truncate sm:block"),children:"Solana desk"}),e.jsx("button",{type:"button",className:t("inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-lg","text-mm-text-muted transition-colors hover:bg-mm-surface-strong hover:text-mm-text","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mm-accent","disabled:pointer-events-none disabled:opacity-40",c&&"opacity-70"),onClick:()=>{n.refetch()}
1,"aria-label":"Refresh token",disabled:c,children:e.jsx(k,{className:t("h-4 w-4",c&&"animate-spin"),"aria-hidden":!0})})]})]}),e.jsxs("div",{className:"p-4 sm:p-5",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 sm:gap-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(Q,{src:s.image,symbol:s.symbol}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[e.jsx("h1",{className:"font-display text-xl font-semibold tracking-tight text-mm-text sm:text-2xl",children:s.symbol}),e.jsx("span",{className:"truncate text-sm text-mm-text-soft",children:s.name})]}),e.jsxs("button",{type:"button",onClick:()=>void C(),className:t("mt-1 inline-flex min-h-8 items-center gap-1.5 rounded-md px-0.5","font-mono text-[11px] text-mm-text-muted hover:text-mm-text","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mm-accent"),"aria-label":`Copy mint ${w(a)}`,children:[e.jsx(_,{className:"h-3 w-3","aria-hidden":!0}),w(a)]})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"font-mono text-xl font-semibold tabular-nums tracking-tight text-mm-text sm:text-2xl",children:I(s.priceUsd)}),e.jsxs("p",{className:t("mt-0.5 inline-flex items-center justify-end gap-0.5 font-mono text-sm font-semibold tabular-nums",m&&"text-mm-buy",o&&"text-mm-sell",!m&&!o&&"text-mm-text-muted"),children:[e.jsx(y,{className:"h-4 w-4","aria-hidden":!0}),q(l),e.jsxs("span",{className:"sr-only",children:[m?"up":o?"down":"unchanged"," in the last 24 hours"]})]})]})]}),e.jsx("div",{className:"mt-3",children:e.jsx(T,{mint:a})}),e.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-2 sm:gap-3",children:[e.jsx(b,{label:"Market cap",value:g(s.marketCapUsd)}),e.jsx(b,{label:"24h volume",value:g(s.volume24hUsd)}),e.jsx(b,{label:"Liquidity",value:g(s.liquidityUsd)})]})]})]}),e.jsx(U,{mint:a,symbol:s.symbol,name:s.name,height:520,defaultInterval:"5"})]})]})})}export{te as default};

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.