PageSourceSearch

https://www.tradingwizard.ai/_next/static/chunks/3223.698df2240bd14100.js

js tradingwizard.ai collected 2026-10-01 23:54:26 UTC 11,381 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1b795b10-0d01-4a07-9548-f0cb9f06ca25",e._sentryDebugIdIdentifier="sentry-dbid-1b795b10-0d01-4a07-9548-f0cb9f06ca25")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3223],{3223:(e,t,s)=>{s.r(t),s.d(t,{MarketTrackPage:()=>v});var n=s(95155),l=s(12115),a=s(36489),r=s(11685),i=s(38142);s(68214);var o=s(68758);s(90924);var c=s(35967),d=s(99708),x=s(52987),m=s(95740),h=s(1524),p=s(26921),u=s(81142);let b=e=>{switch((e||"").toLowerCase()){case"bullish":return{label:"Bullish",tone:"#0cc575"};case"bearish":return{label:"Bearish",tone:"#ed5572"};default:return{label:"Neutral",tone:"rgba(255,255,255,0.45)"}}},g=e=>null!=e&&Number.isFinite(e)&&0!==e?e<1?e.toFixed(4):e<100?e.toFixed(2):e.toLocaleString("en-US",{maximumFractionDigits:2*(e<1e4)}):"—",f="Upgrade to see why this moved and what to do next.";function y(e){let{events:t,onOpenChart:s,onAskKai:l,isPro:a=!0}=e,r=e=>{var t;if(!a||e._gated){try{window.dispatchEvent(new CustomEvent("tw-upgrade-modal"))}catch(e){}return}s(e.symbol,null==(t=e.assetRef)?void 0:t.exchange)};return(0,n.jsxs)("div",{className:"rounded-2xl border border-theme bg-theme-secondary overflow-hidden",children:[(0,n.jsx)("div",{className:"hidden",children:t.map(e=>{var t;let s=(e.changePercent||0)>=0,a=e.aiExplanation||e.actionSentence||e.detailedExplanation||"",o=b(e.sentiment);return(0,n.jsxs)("div",{className:"p-3.5",onClick:()=>r(e),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)(i.AssetIcon,{symbol:e.symbol,icon:null==(t=e.assetRef)?void 0:t.icon,size:"sm"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-[14px] font-bold text-theme-primary",children:e.symbol}),(0,n.jsx)("span",{className:"text-[10px] font-bold uppercase",style:{color:o.tone},children:o.label})]}),e.name&&(0,n.jsx)("span",{className:"text-[11px] text-theme-tertiary truncate block",children:e.name})]}),(0,n.jsxs)("div",{className:"text-right shrink-0",children:[(0,n.jsx)("div",{className:"text-[14px] font-bold font-mono tabular-nums text-theme-primary",children:e.currentPrice?(0,n.jsxs)(n.Fragment,{children:["$",(0,n.jsx)(u.s,{text:g(e.currentPrice)})]}):"—"}),(0,n.jsxs)("div",{className:"text-[11px] font-bold font-mono tabular-nums",style:{color:s?"#0cc575":"#ed5572"},children:[s?"+":"",(e.changePercent||0).toFixed(2),"%"]})]})]}),(a||e._gated)&&(0,n.jsx)("p",{className:"mt-2 text-[12px] text-theme-secondary leading-snug line-clamp-2 ".concat(e._gated?"blur-[3px] select-none":""),children:e._gated?f:a}),(0,n.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{onClick:()=>r(e),className:"inline-flex items-center gap-1.5 h-8 px-3 rounded-lg text-[11px] font-bold bg-[#33E89E] hover:bg-[#33E89E] text-black transition-colors",children:e._gated?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{className:"w-3 h-3",strokeWidth:2.75})," Unlock"]}):(0,n.jsxs)(n.Fragment,{children:["Analyze ",(0,n.jsx)(x.A,{className:"w-3 h-3",strokeWidth:2.75})]})}),(0,n.jsxs)("button",{onClick:()=>l("Why did ".concat(e.symbol," move ").concat(s?"+":"").concat((e.changePercent||0).toFixed(2),"%? Is there a setup worth taking?")),className:"inline-flex items-center gap-1.5 h-8 px-2.5 rounded-lg text-[11px] font-bold text-theme-secondary hover:text-theme-primary hover:bg-theme-overlay-hover transition-colors",children:[(0,n.jsx)(m.A,{className:"w-3 h-3"})," Kai"]})]})]},e._id||e.symbol)})}),(0,n.jsx)("div",{className:"block",children:(0,n.jsx)(c.XI,{children:(0,n.jsx)(c.XI.ScrollContainer,{children:(0,n.jsxs)(c.XI.Content,{"aria-label":"Market movers",onRowAction:e=>{let s=t.find(t=>String(t._id||t.symbol)===String(e));s&&r(s)},className:"min-w-[900px]",children:[(0,n.jsxs)(c.XI.Header,{children:[(0,n.jsx)(c.XI.Column,{id:"mover",isRowHeader:!0,className:"min-w-[180px]",children:"Mover"}),(0,n.jsx)(c.XI.Column,{id:"price",className:"w-[120px] text-right",children:"Price"}),(0,n.jsx)(c.XI.Column,{id:"chg",className:"w-[100px] text-right",children:"24h"}),(0,n.jsx)(c.XI.Column,{id:"move",className:"w-[110px]",children:"Move"}),(0,n.jsx)(c.XI.Column,{id:"sentiment",className:"w-[110px]",children:"Sentiment"}),(0,n.jsx)(c.XI.Column,{id:"why",className:"min-w-[320px]",children:"Why it moved"}),(0,n.jsx)(c.XI.Column,{id:"action",className:"w-[160px] text-right",children:"Action"})]}),(0,n.jsx)(c.XI.Body,{children:t.map(e=>{var t;let s=(e.changePercent||0)>
1=0,a=e.aiExplanation||e.actionSentence||e.detailedExplanation||"",o=(e=>{switch((e||"medium").toLowerCase()){case"critical":return{label:"Critical",tone:"#FF3B30"};case"high":return{label:"High",tone:"#f56900"};case"low":return{label:"Low",tone:"#6dd98f"};default:return{label:"Medium",tone:"#FFB020"}}})(e.significance),y=b(e.sentiment);return(0,n.jsxs)(c.XI.Row,{id:e._id||e.symbol,className:"cursor-pointer transition-colors",children:[(0,n.jsx)(c.XI.Cell,{children:(0,n.jsxs)("div",{className:"flex items-center gap-2.5 py-1",children:[(0,n.jsx)(i.AssetIcon,{symbol:e.symbol,icon:null==(t=e.assetRef)?void 0:t.icon,size:"sm"}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("span",{className:"block text-[14px] font-bold text-theme-primary leading-tight",children:e.symbol}),e.name&&(0,n.jsx)("span",{className:"block text-[11px] text-theme-tertiary truncate max-w-[150px]",children:e.name})]})]})}),(0,n.jsx)(c.XI.Cell,{className:"text-right text-[13px] font-bold font-mono tabular-nums text-theme-primary",children:e.currentPrice?(0,n.jsxs)(n.Fragment,{children:["$",(0,n.jsx)(u.s,{text:g(e.currentPrice)})]}):"—"}),(0,n.jsx)(c.XI.Cell,{className:"text-right",children:(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-[12px] font-bold font-mono tabular-nums",style:{color:s?"#0cc575":"#ed5572"},children:[s?(0,n.jsx)(h.A,{className:"w-3 h-3",strokeWidth:2.5}):(0,n.jsx)(p.A,{className:"w-3 h-3",strokeWidth:2.5}),s?"+":"",(e.changePercent||0).toFixed(2),"%"]})}),(0,n.jsx)(c.XI.Cell,{children:(0,n.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-semibold",style:{color:o.tone},children:[(0,n.jsx)("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:o.tone},"aria-hidden":!0}),o.label]})}),(0,n.jsx)(c.XI.Cell,{className:"text-[11px] font-semibold",style:{color:y.tone},children:y.label}),(0,n.jsx)(c.XI.Cell,{children:(0,n.jsx)("p",{className:"text-[12px] text-theme-secondary leading-snug line-clamp-2 max-w-[380px] ".concat(e._gated?"blur-[3px] select-none":""),children:e._gated?f:a||"—"})}),(0,n.jsx)(c.XI.Cell,{className:"text-right",children:(0,n.jsxs)("div",{className:"inline-flex items-center gap-1.5",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{onClick:()=>l("Why did ".concat(e.symbol," move ").concat(s?"+":"").concat((e.changePercent||0).toFixed(2),"%? Is there a setup worth taking?")),"aria-label":"Ask Wiz",className:"w-8 h-8 rounded-lg text-theme-tertiary hover:text-theme-primary hover:bg-theme-overlay-hover inline-flex items-center justify-center transition-colors",children:(0,n.jsx)(m.A,{className:"w-3.5 h-3.5"})}),(0,n.jsx)("button",{onClick:()=>r(e),className:"inline-flex items-center gap-1.5 h-8 px-3 rounded-lg text-[11px] font-bold bg-[#33E89E] hover:bg-[#33E89E] text-black transition-colors",children:e._gated?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{className:"w-3 h-3",strokeWidth:2.75})," Unlock"]}):(0,n.jsxs)(n.Fragment,{children:["Analyze ",(0,n.jsx)(x.A,{className:"w-3 h-3",strokeWidth:2.75})]})})]})})]},e._id||e.symbol)})})]})})})})]})}let j=[{id:"all",label:"All types"},{id:"crypto",label:"Crypto"},{id:"stock",label:"Stock"},{id:"forex",label:"Forex"},{id:"futures",label:"Futures"},{id:"etf",label:"ETF"},{id:"index",label:"Index"}];function v(e){let{bots:t,watchlistSymbols:s,onOpenChart:i,onAskKai:c,onAddToWatchlist:d,onOpenBots:x}=e,{data:m}=(0,a.useSession)(),h=!(null==m?void 0:m.user),{isPro:p}=(0,r.k)(),[u,b]=(0,l.useState)([]),[g,f]=(0,l.useState)(!0),[v,w]=(0,l.useState)(""),[N,k]=(0,l.useState)("all"),[C,I]=(0,l.useState)("all");(0,l.useEffect)(()=>{if(h)return void f(!1);let e=!1;f(!0);let t=new URLSearchParams({limit:"50"});return fetch("/api/market-track?".concat(t),{cache:"no-store"}).then(e=>e.ok?e.json():{events:[]}).then(t=>{e||b(Array.isArray(null==t?void 0:t.events)?t.events:[])}).catch(()=>{}).finally(()=>{e||f(!1)}),()=>{e=!0}},[h]);let X=(0,l.useMemo)(()=>u.filter(e=>{var t,s,n,l;let a=null!=(s=null!=(t=e.changePercent)?t:e.changePercentage)?s:0;if("up"===C&&a<0||"down"===C&&a>=0||"all"!==N&&(0,o.EX)(null!=(l=null!=(n=e.marketType)?n:e.assetType)?l:e.type)!==N)return!1;if(v.trim().length>0){let t=v.trim().toUpperCase();if(!(e.symbol||"").toUpperCase().includes(t))return!1}return!0}),[u,C,v,N]),E=(0,l.useMemo)(()=>{let e={};for(let n of u){var t,s;let l=(0,o.EX)(null!=(s=null!=(t=n.marketType)?t:n.assetType)?s:n.type);l&&(e[l]=(e[l]||0)+1)}return e},[u]);(0,l.useMemo)(()=>{let e=new Map;for(let s of t||[]){let t=((null==s?void 0:s.symbol)||"").toUpperCase();t&&(null==s?void 0:s.isGlobal)&&!e.has(t)&&e.set(t,s)}return e},[t]),(0,l.useMemo)(()=>new Set((s||[]).map(e=>e.toUpperCase())),[s]);let F=!h&&!p;return F&&X.slice(0,2),F&&X.slice(2,6),(0,n.jsxs)("div",{"data-tour":"market-track-page",className:"flex flex-col gap-4 px-4 md:px-6 pt-8 md:pt-10 pb-6 md:pb-8 overflow-y-auto h-full bg-theme-primary max-w-[1200px] mx-auto w-full",children:[(0,n.jsxs)("header",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("h1",{className:"text-[22px] md:text-[28px] font-bold -tracking-[0.01em] text-theme-primary leading-none",children:"Market Track"}),(0,n.jsx)("p",{className:"text-[13px] text-theme-secondary leading-snug",children:"What moved \xb7 why it matters \xb7 what to do next. Wiz watches every tracked market for unusual moves and explains each one."})]}),(0,n.jsx)("div",{className:"flex items-center gap-1.5 flex-wrap",children:j.map(e=>{let t=N===e.id;return(0,n.jsxs)("button",{type:"button",onClick:()=>k(e.id),className:"px-2.5 h-7 rounded-lg text-[11px] font-bold uppercase tracking-[0.14em] transition-colors ".concat(t?"bg-white/[0.10] text-theme-primary":"text-theme-tertiary hover:text-theme-primary hover:bg-white/[0.04]"),children:[e.label,"all"!==e.id&&E[e.id]?(0,n.jsx)("span",{className:"ml-1.5 text-[10px] font-mono tabular-nums ".concat(t?"text-theme-secondary":"text-theme-tertiary"),children:E[e.id]}):null]},e.id)})}),h?(0,n.jsx)("div",{className:"rounded-2xl border border-theme bg-theme-secondary p-8 text-center text-[13px] text-theme-secondary",children:"Sign in to see live market movers and why they moved."}):g?(0,n.jsx)("div",{className:"rounded-2xl border border-theme bg-theme-secondary p-8 text-center text-[13px] text-theme-tertiary",children:"Loading movers…"}):0===X.length?(0,n.jsx)("div",{className:"rounded-2xl border border-theme bg-theme-secondary p-8 text-center text-[13px] text-theme-secondary",children:"No unusual moves right now. Wiz is still watching, and the next one lands here."}):(0,n.jsx)(y,{events:X,onOpenChart:i,onAskKai:c,isPro:p})]})}}}]);

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.