PageSourceSearch

https://posts.careerengine.us/_next/static/chunks/4473.e597fc89375341b6.js

js careerengine.us collected 2026-10-02 03:06:40 UTC 4,762 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4473],{1524:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(1847).A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},4473:(e,t,s)=>{s.r(t),s.d(t,{MarketData:()=>m});var a=s(5155);s(2115);var d=s(1524),r=s(1847);let n=(0,r.A)("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),c=(0,r.A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),i=(0,r.A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var l=s(1761),x=s(666);function m(e){let{name:t,marketData:s}=e,r=e=>e>=1e12?(e/1e12).toFixed(1)+"T":e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":e.toFixed(2),m=(e,t)=>"Billion USD"===t?"$".concat(e.toFixed(1),"B"):"Million USD"===t?"$".concat(e.toFixed(1),"M"):"USD"===t?"$".concat(r(e)):"CNY"===t?"\xa5".concat(r(e)):"".concat(r(e)," ").concat(t),o=[...s].sort((e,t)=>t.currentPrice-e.currentPrice);return(0,a.jsxs)(x.A,{name:t,iconElement:(0,a.jsx)(i,{className:"text-foreground font-semibold"}),children:[(0,a.jsx)("div",{className:"space-y-3",children:o.map((e,t)=>{var s,x,o;return(0,a.jsx)("div",{className:"p-4 bg-muted/30 rounded-lg border hover:shadow-sm transition-shadow",children:(0,a.jsx)("div",{className:"flex items-start justify-between gap-4",children:(0,a.jsxs)("div",{className:"flex items-start gap-3 flex-1",children:[(0,a.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-primary text-primary-foreground rounded-full flex items-center justify-center font-bold text-sm",children:t+1}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h5",{className:"font-semibold text-foreground text-lg",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground font-mono",children:e.symbol}),e.description&&(0,a.jsx)("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-1 rounded",children:e.description})]})]}),(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)("div",{className:"text-xl font-bold text-foreground flex items-center gap-1",children:m(e.currentPrice,e.currency)})})]}),(0!==e.change||0!==e.changePercent)&&(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1 rounded-lg border ".concat((s=e.change)>0?"bg-green-50 border-green-200":s<0?"bg-red-50 border-red-200":"bg-gray-50 border-gray-200"),children:[(x=e.change)>0?(0,a.jsx)(d.A,{className:"w-4 h-4 text-green-600"}):x<0?(0,a.jsx)(n,{className:"w-4 h-4 text-red-600"}):(0,a.jsx)(c,{className:"w-4 h-4 text-gray-400"}),(0,a.jsxs)("div",{className:"text-sm font-medium ".concat((o=e.change)>0?"text-green-600":o<0?"text-red-600":"text-gray-500"),children:[e.change>0?"+":"",m(e.change,e.currency),0!==e.changePercent&&(0,a.jsxs)("span",{className:"ml-2",children:["(",e.changePercent>0?"+":"",e.changePercent.toFixed(2),"%)"]})]})]}),e.lastUpdated&&(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:e.lastUpdated})]}),(e.volume||e.marketCap||e.peRatio)&&(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-1 md:grid-cols-3 gap-3 text-sm",children:[e.volume&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-muted rounded",children:[(0,a.jsx)(i,{className:"w-4 h-4 text-muted-foreground"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"交易量"}),(0,a.jsx)("div",{className:"font-medium",children:r(e.volume)})]})]}),e.marketCap&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-muted rounded",children:[(0,a.jsx)(l.A,{className:"w-4 h-4 text-muted-foreground"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"市值"}),(0,a.jsx)("div",{className:"font-medium",children:m(e.marketCap,e.currency)})]})]}),e.peRatio&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-muted rounded",children:[(0,a.jsx)(d.A,{className:"w-4 h-4 text-muted-foreground"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"市盈率"}),(0,a.jsx)("div",{className:"font-medium",children:e.peRatio.toFixed(2)})]})]})]})]})]})})},e.symbol)})}),0===s.length&&(0,a.jsxs)("div",{className:"text-center py-8 text-muted-foreground",children:[(0,a.jsx)(i,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),(0,a.jsx)("p",{children:"暂无市场数据"})]})]})}}}]);

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.