PageSourceSearch

https://clickholdings.com.hk/assets/stock-CrPKsK6U.js

js clickholdings.com.hk collected 2026-10-04 13:31:00 UTC 4,177 bytes, 1 lines download raw bytes

1import{r as i,u,g,T as r,j as t,P as p,S as f}from"./main-tVJvHoBe.js";const h="-$0.24",v="—",b="N/A",j={price:0,change:0,changePct:0,open:0,high:0,low:0,volume:0,avgVolume:0,prevClose:0,fiftyTwoWeekHigh:0,fiftyTwoWeekLow:0,marketCap:0,sector:"",industry:"",exchange:"",currency:"USD",marketState:"CLOSED",fetchedAt:"",error:null},y=e=>typeof e=="number"?e>0?e:"—":e||"—",w=e=>e<=0?"—":e>=1e9?`$${(e/1e9).toFixed(2)}B`:e>=1e6?`$${(e/1e6).toFixed(2)}M`:e>=1e3?`$${(e/1e3).toFixed(1)}K`:`$${e.toFixed(0)}`,N=e=>e<=0?"—":e>=1e9?`${(e/1e9).toFixed(2)}B`:e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString();function $(){const[e,o]=i.useState(j),s=u(g);i.useEffect(()=>{let a=!1;const l=async()=>{try{const x=await s();a||o(x)}catch{}};l();const m=setInterval(l,6e4);return()=>{a=!0,clearInterval(m)}},[s]);const c=e.price>0?e.marketCap/e.price:0,n=[{label:"Market Cap",value:w(e.marketCap)},{label:"Volume",value:e.volume>0?e.volume.toLocaleString():"—"},{label:"Avg Volume",value:e.avgVolume>0?e.avgVolume.toLocaleString():"—"},{label:"52-Week Range",value:e.fiftyTwoWeekHigh>0?`$${e.fiftyTwoWeekLow.toFixed(2)} — $${e.fiftyTwoWeekHigh.toFixed(2)}`:"—"},{label:"Dividend Yield",value:v},{label:"P/E Ratio",value:b},{label:"EPS (TTM)",value:h},{label:"Shares Outstanding",value:N(c)},{label:"Prev. Close",value:e.prevClose>0?`$${e.prevClose.toFixed(2)}`:"—"},{label:"Sector",value:y(e.sector)}],d=`https://www.tradingview.com/widgetembed/?${new URLSearchParams({symbol:`NASDAQ:${r.symbol}`,interval:"D",timezone:"Etc/UTC",theme:"light",style:"1",locale:"en",enable_publishing:"false",hide_top_toolbar:"false",hide_legend:"false",allow_symbol_change:"true"}).toString()}`;return t.jsxs("div",{children:[t.jsx(p,{eyebrow:"Stock Information",title:`${r.exchange}: ${r.symbol}`,desc:"Real-time pricing, charting, and key trading statistics for Click Holdings Limited."}),t.jsxs("div",{className:"mx-auto max-w-7xl px-6 py-12",children:[t.jsxs("div",{className:"grid gap-6 lg:grid-cols-[1fr_320px]",children:[t.jsxs("div",{className:"border border-border bg-surface",children:[t.jsxs("div",{className:"bg-brushed flex items-center justify-between border-b border-border px-4 py-3",children:[t.jsx("div",{className:"font-mono text-[10px] uppercase tracking-[0.25em] text-muted-foreground",children:"TradingView · Live Chart"}),t.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-[10px] uppercase tracking-wider text-primary",children:[t.jsx("span",{className:"h-1.5 w-1.5 animate-pulse bg-primary"})," Streaming"]})]}),t.jsx("iframe",{title:"TradingView Advanced Chart",src:d,sandbox:"allow-scripts allow-same-origin allow-popups",referrerPolicy:"no-referrer",loading:"lazy",style:{height:520,width:"100%",border:0,display:"block"}})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(f,{}),t.jsxs("div",{className:"border border-border bg-surface p-5",children:[t.jsx("div",{className:"font-mono text-[10px] uppercase tracking-[0.25em] text-muted-foreground",children:"Company"}),t.jsx("div",{className:"mt-1 text-base font-bold",children:r.company}),t.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-3 font-mono text-xs",children:[t.jsxs("div",{children:[t.jsx("div",{className:"text-muted-foreground",children:"Exchange"}),t.jsx("div",{className:"font-bold",children:r.exchange})]}),t.jsxs("div",{children:[t.jsx("div",{className:"text-muted-foreground",children:"Symbol"}),t.jsx("div",{className:"font-bold",children:r.symbol})]})]})]})]})]}),t.jsxs("div",{className:"mt-12",children:[t.jsxs("div",{className:"mb-6",children:[t.jsx("div",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-primary",children:"Trading Data"}),t.jsx("h2",{className:"mt-1 text-2xl font-bold",children:"Key Statistics"})]}),t.jsx("div",{className:"grid grid-cols-2 gap-px bg-border md:grid-cols-4",children:n.map(a=>t.jsxs("div",{className:"bg-surface p-5",children:[t.jsx("div",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-muted-foreground",children:a.label}),t.jsx("div",{className:"mt-2 font-mono text-xl font-bold tabular-nums",children:a.value})]},a.label))})]})]})]})}export{$ as component};

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.