PageSourceSearch

https://cryptonary.com/assets/HomePreviewMobileHomeTabs-D9jbsTr6.js

js cryptonary.com collected 2026-09-24 22:11:06 UTC 19,945 bytes, 1 lines download raw bytes

1import{j as e,J as b}from"./index-CKoX0LkU.js";import{r as h,i as H,A as Z,o as ee}from"./ui-icons-DZ-xAQXe.js";import{N as M}from"./NavLink-CRLt1h0k.js";import{S as te}from"./StatsBarCustomizeModal-CvZSwiai.js";import{S as N}from"./skeleton-DOmRfbex.js";import{u as se}from"./useFeedPreferences-BAJH5jY5.js";import{c as $,e as ne,f as q,g as re}from"./useCoinGecko-3QWWD8g0.js";import{u as U,a as z,M as oe,b as ie}from"./useMarketMood-N3jsoUvn.js";import{u as ae}from"./usePortfolio-BWWYGEtS.js";import{H as le}from"./HomePreviewContentCalendar-BNJgnL81.js";import{L as ce,a as de,b as ue}from"./LiveMarketPrice-CFaUagel.js";import{p as u}from"./home-startup-core-thq0voGQ.js";import"./useDebounce-zWiN8Ve5.js";import"./AssetLogo-DjngBS3e.js";import"./dialog-ChdxGrhY.js";import"./index-BOL8mCBz.js";import"./index-Dtk1Y1Tp.js";import"./useQueries-CjwwB2py.js";import"./useTrackToolInteraction-5CfF9KTp.js";import"./useGamification-DsP50ahU.js";import"./useResearchArticles-BNW-g7pZ.js";import"./postgrestError-CxH23hHs.js";import"./useAdminActivityLogs-DInH6-sY.js";import"./useContentCalendar-C15JrANv.js";import"./edgeFunctionError-D885XrGM.js";import"./contentCalendarArticleLink-DEc9JMoN.js";import"./researchUtils-CzRyNiGl.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;
1n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="c4eaa3ee-3496-490c-a9fd-31c56696a4e8",t._sentryDebugIdIdentifier="sentry-dbid-c4eaa3ee-3496-490c-a9fd-31c56696a4e8")}catch{}})();const me=[];function W(t,n=136,s=34){if(t.length<2)return"";const o=Math.min(...t),l=Math.max(...t)-o||1;return t.map((a,p)=>{const j=p/(t.length-1)*n,m=s-(a-o)/l*(s-6)-3;return`${p===0?"M":"L"}${j.toFixed(1)} ${m.toFixed(1)}`}).join(" ")}function xe(t){return t.length?t.reduce((n,s,o)=>{if(o===0)return`M ${s.x.toFixed(1)} ${s.y.toFixed(1)}`;const r=t[o-1],l=(r.x+s.x)/2;return`${n} C ${l.toFixed(1)} ${r.y.toFixed(1)}, ${l.toFixed(1)} ${s.y.toFixed(1)}, ${s.x.toFixed(1)} ${s.y.toFixed(1)}`},""):""}function he(t,n,s,o=8,r=6){if(t.length<2)return[];const l=Math.min(...t),p=Math.max(...t)-l||1,j=n-o*2,m=s-r*2;return t.map((f,g)=>{const v=o+g/(t.length-1)*j,d=r+(1-(f-l)/p)*m;return{x:v,y:d}})}const pe=[1,1.09,1.05,1.2,1.16,1.31,1.27,1.43];function fe(){const s=he(pe,132,42,8,6),o=xe(s),r=s[s.length-1];return e.jsxs("div",{className:"mt-1.5 w-[8.25rem] overflow-hidden bg-[linear-gradient(135deg,hsl(var(--warning)/0.07)_0%,hsl(var(--background)/0.46)_50%,hsl(var(--success)/0.
1075)_100%)] px-2 py-1.5 text-success dark:bg-[linear-gradient(135deg,hsl(var(--warning)/0.10)_0%,hsl(0_0%_0%/0.48)_52%,hsl(var(--success)/0.10)_100%)]",children:[e.jsx("div",{className:"flex items-center justify-start gap-2",children:e.jsx("span",{className:"text-[9px] font-semibold uppercase tracking-[0.12em] text-muted-foreground/80",children:u("home.surface.preview.fdda4c")})}),e.jsxs("svg",{viewBox:"0 0 132 58","aria-hidden":!0,className:"mt-0.5 block h-[50px] w-full",preserveAspectRatio:"none",children:[o?e.jsxs(e.Fragment,{children:[e.jsx("path",{d:o,fill:"none",stroke:"currentColor",strokeWidth:"7",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.08"}),e.jsx("path",{d:o,fill:"none",stroke:"currentColor",strokeWidth:"2.35",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.82"})]}):null,r?e.jsx("circle",{cx:r.x,cy:r.y,r:"3.4",fill:"currentColor",stroke:"hsl(var(--background))",strokeWidth:"2"}):null,e.jsx("text",{x:"124",y:"55",textAnchor:"end",className:"fill-success text-[10px] font-semibold tabular-nums",children:u("home.surface.8_6.a24042")})]})]})}function ge(t){return!!(t!=null&&t.holdings.some(n=>n.quantity>0))}function be(t){const n=Number(t.quantity),s=Number(t.totalCost);return!Number.isFinite(n)||n<=0||!Number.isFinite(s)||s<=0?0:s/n}function je(t){return typeof t=="number"&&Number.isFinite(t)?t:null}function ve(t){const n=je(t);if(n==null)return q(t).replace(/^\$/,"");const s=Math.abs(n);return s>=100?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):s>=10?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:3}):s>=1?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:4}):s>=.01?n.toLocaleString(void 0,{minimumFractionDigits:4,maximumFractionDigits:5}):n.toLocaleString(void 0,{minimumFractionDigits:6,maximumFractionDigits:6})}function we(t,n=1){const s=t??0;return`${s>=0?"+":""}${s.toFixed(n)}%`}function Ne({value:t,updatedAt:n}){return e.jsx(ue,{value:t,formattedValue:ve(t),updatedAt:n,className:"whitespace-nowrap text-[17px] font-semibold leading-none tracking-[-0.015em] text-foreground tabular-nums transition-colors"})}function _e(){return e.jsxs("section",{className:"relative -mx-3 min-h-[8.25rem] w-auto overflow-hidden border-b border-border/40 bg-[linear-gradient(120deg,hsl(var(--warning)/0.08)_0%,hsl(var(--warning)/0.035)_48%,hsl(var(--background))_82%,hsl(var(--success)/0.
1025)_100%)] px-3 pb-3 pt-1 dark:bg-[linear-gradient(120deg,hsl(var(--warning)/0.12)_0%,hsl(28_95%_46%/0.06)_44%,hsl(0_0%_0%/0.92)_78%,hsl(var(--success)/0.05)_100%)]","aria-hidden":!0,children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(N,{className:"h-3.5 w-3.5 rounded-sm"}),e.jsx(N,{className:"h-3 w-20 rounded-sm"})]}),e.jsx(N,{className:"h-7 w-8 rounded-md"})]}),e.jsxs("div",{className:"flex items-start justify-between gap-3 pb-0.5 pt-1",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx(N,{className:"h-5 w-40 rounded-sm"}),e.jsx(N,{className:"mt-2 h-3 w-full max-w-[18.5rem] rounded-sm"}),e.jsx(N,{className:"mt-1.5 h-3 w-2/3 max-w-[13rem] rounded-sm"})]}),e.jsx("div",{className:"mt-0.5 w-[8.25rem] shrink-0",children:e.jsx(N,{className:"h-[75px] w-full rounded-md"})})]})]})}function ke({firstItemOffset:t=!1}){return e.jsx("div",{className:"flex gap-0 overflow-hidden","aria-hidden":!0,children:Array.from({length:4}).map((n,s)=>e.jsxs("div",{className:b("grid h-14 w-24 shrink-0 grid-rows-[10px_22px_15px] content-center gap-y-1 border-r border-border/35 px-2",s===0&&!t&&"pl-0"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsx(N,{className:"h-2.5 w-9 rounded-sm"}),e.jsx(N,{className:"h-2 w-6 rounded-sm"})]}),e.jsx(N,{className:"h-4 w-16 rounded-sm"}),e.jsx(N,{className:"mt-0.5 h-2.5 w-9 rounded-sm"})]},s))})}function ye(){const[t,n]=h.useState(!0),{portfolios:s,isLoading:o}=ae(),r=h.useMemo(()=>{if(s.length)return s.find(i=>ge(i))??s[0]},[s]),l=(r==null?void 0:r.holdings)??me,a=h.useMemo(()=>l.filter(i=>i.quantity>0),[l]),p=a.length>0,j=h.useMemo(()=>a.map(i=>i.coinId),[a]),{data:m,isLoading:f}=$(j),g=h.useMemo(()=>{const i=new Map;return((m==null?void 0:m.coins)??[]).forEach(x=>i.set(x.id,x)),i},[m==null?void 0:m.coins]),v=h.useMemo(()=>a.map(i=>{const x=g.get(i.coinId),E=(x==null?void 0:x.price)??be(i),A=i.quantity*E;return{holding:i,coin:x,value:A}}).filter(i=>i.value>0).sort((i,x)=>x.value-i.value),[a,g]),d=h.useMemo(()=>v.reduce((i,x)=>i+x.value,0),[v]),S=h.useMemo(()=>a.map(i=>({coinId:i.coinId,quantity:i.quantity})),[a]),{data:C,isLoading:T}=ne(S,"7"),k=h.useMemo(()=>d<=0?0:v.reduce((x,E)=>{var L;const A=((L=E.coin)==null?void 0:L.change_24h)??0;return x+E.value*(A/100)},0)/d*100,[v,d]),w=h.useMemo(()=>{const i=C.map(L=>L.value).filter(L=>Number.isFinite(L)&&L>0);if(i.length>=2)return i;if(d<=0)return[];const x=d/(1+k/100||1),E=d-x,A=Math.abs(E)*.18;return Array.from({length:7},(L,J)=>{const R=J/6,Q=Math.sin(R*Math.PI*2)*A;return Math.max(0,x+E*R+Q)})},[k,C,d]),I=W(w),_=w[w.length-1]??null,c=w.length?Math.min(...w):0,y=(w.length?Math.max(...w):1)-c||1,D=w.length>1?136:0,O=_==null?17:34-(_-c)/y*28-3,P=k>=0;return o?e.jsx(_e,{}):!p||d<=0?e.jsxs("section",{"aria-label":u("home.surface.portfolio.de43fd"),className:"relative -mx-3 w-auto overflow-hidden border-b border-border/40 bg-[linear-gradient(120deg,hsl(var(--warning)/0.12)_0%,hsl(var(--warning)/0.055)_48%,hsl(var(--background))_82%,hsl(var(--success)/0.
1035)_100%)] px-3 pb-3 pt-1 dark:bg-[linear-gradient(120deg,hsl(var(--warning)/0.20)_0%,hsl(28_95%_46%/0.10)_44%,hsl(0_0%_0%/0.92)_78%,hsl(var(--success)/0.08)_100%)]",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("button",{type:"button",onClick:()=>n(i=>!i),className:"flex min-w-0 items-baseline gap-2 text-left","aria-expanded":t,children:[e.jsx(H,{className:b("mt-px h-3.5 w-3.5 shrink-0 self-center text-muted-foreground/60 transition-transform",t&&"rotate-90"),"aria-hidden":!0}),e.jsx("p",{className:"font-heading text-[13px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:u("home.surface.portfolio.de43fd")})]}),e.jsxs(M,{to:"/tools/portfolio?add=holding",className:"inline-flex min-h-8 items-center gap-1 text-[12px] font-semibold text-foreground transition-colors hover:text-success active:text-success",children:[u("home.surface.add.9dc3aa"),e.jsx(Z,{className:"h-3 w-3","aria-hidden":!0})]})]}),t?e.jsx(M,{to:"/tools/portfolio?add=holding",className:"group block pb-0.5 pt-1 outline-none transition-opacity active:opacity-80",children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"font-heading text-[20px] font-semibold leading-tight tracking-[-0.02em] text-foreground",children:u("home.portfolio.emptyTitle")}),e.jsx("p",{className:"mt-1 max-w-[18.5rem] text-[12px] leading-snug text-muted-foreground/85",children:u("home.portfolio.emptyDescription")})]}),e.jsx("span",{className:"mt-0.5 flex shrink-0 flex-col items-end text-foreground transition-colors group-active:text-success",children:e.jsx(fe,{})})]})}):null]}):e.jsxs("section",{"aria-label":u("home.surface.portfolio.de43fd"),className:"relative w-full overflow-hidden border-b border-border/40 pb-2.5 pt-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("button",{type:"button",onClick:()=>n(i=>!i),className:"flex min-w-0 items-baseline gap-2 text-left","aria-expanded":t,children:[e.jsx(H,{className:b("mt-px h-3.5 w-3.5 shrink-0 self-center text-muted-foreground/60 transition-transform",t&&"rotate-90"),"aria-hidden":!0}),e.jsx("p",{className:"font-heading text-[13px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:u("home.surface.portfolio.de43fd")})]}),e.jsx(M,{to:"/tools/portfolio",className:"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md text-[13px] font-medium text-muted-foreground/70 transition-colors hover:text-foreground","aria-label":u("home.surface.open_portfolio.5fddb2"),children:e.jsx("span",{"aria-hidden":!0,children:"→"})})]}),t?e.jsxs(M,{to:"/tools/portfolio",className:"grid grid-cols-[minmax(6.5rem,1fr)_minmax(7.25rem,9rem)] items-end gap-4 rounded-md pt-0 outline-none transition-colors active:bg-muted/20 min-[390px]:gap-5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-heading text-[32px] font-semibold leading-none tracking-[-0.03em] text-[hsl(var(--success))] tabular-nums sm:text-[38px]",children:q(d)}),e.jsxs("p",{className:b("mt-1 font-heading text-[14px] font-semibold leading-none tabular-nums tracking-[0.01em]",P?"text-success":"text-destructive"),children:[P?"▲":"▼"," ",Math.abs(k).toFixed(2),"%"]})]}),e.jsxs("svg",{viewBox:"0 0 140 38","aria-hidden":!0,className:b("mb-0.5 h-[38px] w-full overflow-visible",P?"text-success":"text-destructive",T&&"opacity-55"),preserveAspectRatio:"none",children:[I?e.jsx("path",{d:I,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.78"}):null,_!=null?e.jsx("circle",{cx:D,cy:O,r:"2.5",fill:"currentColor"}):null]})]}):null]})}function Le(t){var n;return{id:t.id,ticker:((n=t.symbol)==null?void 0:n.toUpperCase())??t.id.toUpperCase(),price:t.price,change24h:t.change_24h??0}}const Me=["bitcoin","ethereum","hyperliquid","solana"],V=["bitcoin","solana","hyperliquid","ethereum"],Y="grid h-14 w-24 shrink-0 snap-start grid-rows-[10px_22px_15px] content-center gap-y-1 overflow-hidden border-r border-border/35 px-2 transition-colors active:bg-muted/25",G="block truncate text-[10px] font-semibold uppercase leading-none tracking-[0.06em] text-muted-foreground
1/75",Se="whitespace-nowrap text-[17px] font-semibold leading-none tracking-[-0.015em] text-foreground tabular-nums",K="pt-0.5 text-[11px] font-semibold leading-none tabular-nums";function X({values:t,positive:n,dashed:s=!1}){const o=n?[1,1.1,1.06,1.16,1.13,1.22]:[1.22,1.17,1.19,1.08,1.11,1.02],r=W(t.length>=2?t:o,26,10);return e.jsx("svg",{viewBox:"0 0 26 10","aria-hidden":!0,className:b("h-2.5 w-[26px] shrink-0",n?"text-success":"text-destructive"),preserveAspectRatio:"none",children:e.jsx("path",{d:r,fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:s?"2 2":void 0})})}function Ce(t){const n=t.slice(0,4),s=n.length===0,o=n.length===V.length&&n.every((r,l)=>r===V[l]);return s||o?Me:n}function B(){const{data:t,isLoading:n}=U(),{data:s=[]}=z(7),o=(t==null?void 0:t.score)??null,r=s.map(d=>d.score).filter(Number.isFinite),l=r.length>=2?r:o!=null?[o-2,o-1,o-3,o-1,o]:[],a=l[0]??null,p=l[l.length-1]??null,j=a!=null&&p!=null?p>=a:!0,m=r.length>=2?r[r.length-2]:o!=null&&(t==null?void 0:t.delta_1d)!=null?o-t.delta_1d:null,f=o!=null?Math.round(o-(m??o)):null,g=(f??0)>0,v=(f??0)<0;return e.jsxs(M,{to:"/tools/cpt-index",className:b(Y,"pl-0"),children:[e.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-1",children:[e.jsx("span",{className:G,children:u("home.surface.cpt_index.9e9602")}),e.jsx(X,{values:l,positive:j,dashed:n&&l.length<2})]}),e.jsx("p",{className:Se,children:o!=null?Math.round(o):"--"}),f!=null?e.jsxs("p",{className:b(K,g?"text-success":v?"text-destructive":"text-muted-foreground"),children:[g?"+":"",f]}):null]})}function Ie({includeCptIndexCard:t=!1}){const{preferences:n,update:s,isLoading:o}=se(),[r,l]=h.useState(!1),[a,p]=h.useState(!0),[j,m]=h.useState(!0),f=h.useRef(null),g=Ce(n.dashboard_coin_ids),v={...n,dashboard_coin_ids:g},{data:d,isLoading:S,dataUpdatedAt:C}=$(g,{enabled:a&&j,staleTimeMs:ce,refetchIntervalMs:de,sharedDashboard:!0}),{valuesById:T,pendingById:k}=re(g,"7"),w=new Map(((d==null?void 0:d.coins)??[]).map(c=>[c.id,c])),I=g.map(c=>w.get(c)).filter(c=>!!c),_=o||S;return h.useEffect(()=>{const c=f.current;if(!c||typeof IntersectionObserver>"u")return;const F=new IntersectionObserver(([y])=>m(y.isIntersecting),{rootMargin:"240px 0px"});return F.observe(c),()=>F.disconnect()},[]),e.jsxs(e.Fragment,{children:[e.jsxs("section",{ref:f,className:"-mx-3 border-b border-border/40 px-3 pb-1 pt-1","aria-label":u("home.surface.watchlist.673eb2"),children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsxs("button",{type:"button",onClick:()=>p(c=>!c),className:"flex min-h-8 min-w-0 items-center gap-2 text-left","aria-expanded":a,children:[e.jsx(H,{className:b("h-3.5 w-3.5 shrink-0 text-muted-foreground/60 transition-transform",a&&"rotate-90"),"aria-hidden":!0}),e.jsx("span",{className:"text-[12px] font-semibold uppercase tracking-[0.09em] text-muted-foreground/75",children:u("home.surface.watchlist.673eb2")})]}),e.jsx("button",{type:"button",onClick:()=>l(!0),className:"inline-flex h-8 w-8 shrink-0 items-center justify-end text-muted-foreground/65 transition-colors hover:text-foreground","aria-label":u("home.watchlist.customize"),children:e.jsx(ee,{className:"h-3.5 w-3.5","aria-hidden":!0})})]}),a&&_&&I.length===0?e.jsxs("div",{className:"flex snap-x overflow-x-auto [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[t?e.jsx(B,{}):null,e.jsx(ke,{firstItemOffset:t})]}):a?e.jsxs("div",{className:"flex snap-x overflow-x-auto [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[t?e.jsx(B,{}):null,I.map((c,F)=>{const y=Le(c),D=y.change24h>=0,O=T.get(c.id)??[],P=k.get(c.id)&&O.length<2;return e.jsxs(M,{to:`/markets/${c.id}`,className:b(Y,F===0&&!t&&"pl-0"),children:[e.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-1",children:[e.jsx("span",{className:G,children:y.ticker}),e.jsx(X,{values:O,positive:D,dashed:!!P})]}),e.jsx(Ne,{value:y.price,updatedAt:C}),e.jsx("p",{className:b(K,D?"text-success":"text-destructive"),children:we(y.change24h,1)})]},c.id)})]}):null]}),e.jsx(te,{open:r,onOpenChange:l,preferences:v,title:u("home.watchlist.customize"),description:"Pick up to four assets for the mobile watchlist.",maxCoinSlots:4,onSave:async c=>{await s(c)}})]})}function Ee(){const[t,n]=h.useState(!0),{data:s}=U(),{data:o=[]}
1=z(7),r=(s==null?void 0:s.score)??null,l=o.map(_=>_.score).filter(Number.isFinite),a=l.length>=2?l:r!=null?[r-2,r-3,r-1,r-4,r-2,r-1,r]:[],p=l.length>=2?l[l.length-2]:r!=null&&(s==null?void 0:s.delta_1d)!=null?r-s.delta_1d:null,j=r!=null&&p!=null?Math.round(r-p):(s==null?void 0:s.delta_1d)??null,m=j??0,f=m>0,g=m<0,v=f?"text-success":g?"text-destructive":"text-muted-foreground",d=W(a),S=a[a.length-1]??null,C=a.length?Math.min(...a):0,k=(a.length?Math.max(...a):1)-C||1,w=a.length>1?136:0,I=S==null?17:34-(S-C)/k*28-3;return e.jsxs("section",{"aria-label":u("home.surface.cpt_index.9e9602"),className:"relative w-full overflow-hidden border-b border-border/40 pb-2 pt-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("button",{type:"button",onClick:()=>n(_=>!_),className:"flex min-w-0 items-baseline gap-2 text-left","aria-expanded":t,children:[e.jsx(H,{className:b("mt-px h-3.5 w-3.5 shrink-0 self-center text-muted-foreground/60 transition-transform",t&&"rotate-90"),"aria-hidden":!0}),e.jsx("span",{className:"font-heading text-[13px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:u("home.surface.cpt_index.9e9602")})]}),e.jsxs(M,{to:"/tools/cpt-index",className:"inline-flex min-h-8 items-center gap-1 text-[13px] font-medium tabular-nums text-muted-foreground/70 transition-colors hover:text-foreground",children:[u("home.surface.7d.5be57e")," ",e.jsx("span",{"aria-hidden":!0,children:"→"})]})]}),t?e.jsxs(M,{to:"/tools/cpt-index",className:"grid grid-cols-[auto_minmax(4.75rem,1fr)_minmax(7.25rem,9rem)] items-end gap-4 rounded-md pt-0 outline-none transition-colors active:bg-muted/20 min-[390px]:gap-5",children:[e.jsx("div",{className:"font-heading text-[40px] font-semibold leading-none tracking-[-0.03em] text-foreground tabular-nums sm:text-[46px]",children:r!=null?Math.round(r):"--"}),e.jsxs("div",{className:"mb-0.5 min-w-0 pl-0.5",children:[s?e.jsxs("p",{className:"mb-1 flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-[11px] font-medium leading-none text-muted-foreground/85",children:[e.jsx("span",{className:"truncate",children:oe[s.band]}),e.jsx("span",{className:"text-muted-foreground/35","aria-hidden":!0,children:"·"}),e.jsx("span",{className:"truncate",children:ie[s.market_trend]})]}):null,j!=null?e.jsxs("p",{className:b("font-heading text-[14px] font-semibold leading-none tabular-nums tracking-[0.01em]",f?"text-success":"text-destructive"),children:[f?"▲":"▼"," ",Math.abs(Math.round(j))]}):null]}),e.jsxs("svg",{viewBox:"0 0 140 38","aria-hidden":!0,className:b("mb-0.5 h-[38px] w-full overflow-visible",v),preserveAspectRatio:"none",children:[d?e.jsx("path",{d,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.78"}):null,S!=null?e.jsx("circle",{cx:w,cy:I,r:"2.5",fill:"currentColor"}):null]})]}):null]})}function it({includePortfolio:t=!0,includeCptIndexHero:n=!0,includeCptIndexInWatchlist:s=!1}){return e.jsxs(e.Fragment,{children:[t?e.jsx(ye,{}):null,n?e.jsx(Ee,{}):null,e.jsx(Ie,{includeCptIndexCard:s}),e.jsx(le,{})]})}export{it as HomePreviewMobileHomeTabs};

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.