PageSourceSearch

https://finviz.com/assets/dist/7131.v1.37dcc132.js

js finviz.com collected 2026-09-24 08:31:40 UTC 10,141 bytes, 2 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"80ef2cdf9e309e2aad9550e3141d0d77395a37e3"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:finviz":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="33124c48-2adb-471f-b584-0869a9e84680",t._sentryDebugIdIdentifier="sentry-dbid-33124c48-2adb-471f-b584-0869a9e84680")}catch(t){}}(),(self.webpackChunkFinvizModern=self.webpackChunkFinvizModern||[]).push([[7131],{77195(t,e,a){a.r(e),a.d(e,{default:()=>A});a(14846),a(6211),a(94364),a(5673),a(30164),a(21279);var s=a(12091),i=a(63696),n=a(65227),r=a(13838),l=a(69557),o=a(11371),c=a(57833),d=a(67741),u=a(19622),h=a(91264),f=a(85670),m=a(35721),w=a(78898),p=a(8524),g=a(5655),y=a(53759),b=a(83048),T=a(62540);const x=[],E=["last","change","changePct"];function $(t){let{label:e="Loading watchlist"}=t;return(0,T.jsx)("div",{role:"status","aria-label":e,className:"flex justify-center p-6",children:(0,T.jsx)(g.y,{})})}function v(t){let{message:e,onRetry:a}=t;return(0,T.jsxs)("div",{role:"alert",className:"space-y-2 p-3 text-sm",children:[(0,T.jsx)("p",{children:e}),(0,T.jsx)(w.$n,{onClick:a,children:"Retry"})]})}function j(t){return"number"==typeof t&&Number.isFinite(t)?t:null}function k(t){let{watchlistId:e,name:a}=t;const i=(0,c.o5)({watchlistId:e,initialData:void 0,initialDataUpdatedAt:0}),n=!i.isPreviousData&&!!i.data?.items.length,r=(0,s.I)({queryKey:["sidebar-watchlist-quotes",e],queryFn:async t=>{let{signal:a}=t;const s=(0,u.V3)(e,E),i=()=>s.cancel?.();a?.addEventListener("abort",i,{once:!0});try{const t=await s;if(!t?.isSuccess)throw new Error("Unable to load watchlist prices");return t.quotes}finally{a?.removeEventListener("abort",i)}},enabled:n,refetchInterval:5e3,refetchIntervalInBackground:!1,useErrorBoundary:!1});if(i.isLoading||i.isPreviousData)return(0,T.jsx)($,{});if(i.isError)return(0,T.jsx)(v,{message:"Unable to load this watchlist.",onRetry:()=>{i.refetch()}});if(!n)return(0,T.jsxs)("div",{className:"space-y-2 p-3 text-sm text-muted",children:[(0,T.jsx)("p",{children:"This watchlist has no tickers."}),(0,m.wX)(f.TO.Watchlist)&&(0,T.jsx)(w.$n,{as:"a",href:`/watchlist?w=${e}`,children:"Open Watchlist"})]});if(r.isLoading)return(0,T.jsx)($,{label:"Loading watchlist prices"});if(r.isError)return(0,T.jsx)(v,{message:"Unable to load watchlist prices.",onRetry:()=>{r.refetch()}});const l=new Map(r.data?.map(t=>[(0,h._z)(t),t])),o=i.data.items.map(t=>{const e=l.get((0,h._z)(t));return{ticker:t.ticker,assetClass:t.assetClass??f.Hj.Stocks,name:t.name??t.ticker,price:j(e?.last),change:j(e?.change),changePercent:j(e?.changePct),colorFlag:t.colorFlag}});return(0,T.jsx)(b.U,{rows:o,label:a})}function S(){const{close:t,isCloseVisible:e}=(0,r.VF)(),[a,s]=(0,n.ok)(),{state:c,setState:u}=(0,l.b)("sidebarPanel:watchlist:selected",null),h=(0,d.s)({initialData:x,initialDataUpdatedAt:0}),g=h.data??x,b=Number(a.get(o.Gr)),E=g.find(t=>{let{id:e}=t;return e===b})??g.find(t=>{let{id:e}=t;return e===c})??g[0],j=E?.id;return(0,i.useEffect)(()=>{if(null!=j&&(c!==j&&u(j),a.get(o.Gr)!==String(j))){const t=new URLSearchParams(a);t.set(o.Gr,String(j)),s(t,{replace:!0})}},[j,c,u,a,s]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(r.Gh,{onClose:t,isCloseVisible:e,className:"gap-1",children:[E?(0,T.jsx)(p.l,{"aria-label":"Watchlist","data-testid":"sidebar-watchlist-select",items:g.map(t=>{let{id:e,name:a}=t;return{value:e,label:a}}),value:E.id,onChange:t=>{const e=new URLSearchParams(a);e.set(o.Gr,String(t.value)),s(e,{replace:!0})},size:"medium",className:"min-w-0 flex-1",comboBox:!1}):(0,T.jsx)("span",{className:"flex-1 text-sm",children:"Watchlist"}),(0,T.jsx)(y.Fq,{})]}),(0,T.jsx)(r.P_,{className:"min-h-0 flex-1 !p-0","data-testid":"sidebar-watchlist-body",children:h.isLoading?(0,T.jsx)($,{label:"Loading watchlists"}):h.isError?(0,T.jsx)(v,{message:"Unable to load watchlists.",onRetry:()=>{h.refetch()}}):E?(0,T.jsx)(k,{watchlistId:E.id,name:E.name},E.id):(0,T.jsxs)("div",{className:"space-y-2 p-3 text-sm text-muted",children:[(0,T.jsx)("p",{children:"No watchlists yet."}),(0,m.wX)(f.TO.Watchlist)&&(0,T.jsx)(w.$n,{as:"a",href:"/watchlist",children:"Create a Watchlist"})]})})]})}function A(){return(0,T.jsx)(y.Ob,{storageKey:"sidebarPanel:watchlist:columns",children:(0,T.jsx)(S,{})})}},11371(t,e,a){a.d(e,{$_:()=>g,EJ:()=>w,Ex:()=>f,Fy:()=>$,GP:()=>v,Gr:()=>m,HO:()=>c,Mm:()=>i,R3:()=>o,RM:()=>u,Tx:()=>l,W4:()=>T,WZ:()=>b,_A:()=>r,aA:()=>y,aC:()=>d,c0:()=>h,i:()=>n,kP:()=>E,sS:()=>p,tm:()=>x});var s=a(36470);const i={watchlists:[],limits:{maxWatchlists:1/0,maxItems:1/0}},n="Watchlist",r=50,l=2e3,o=3e4,c=6e4,d=6e4,u=200,h={showDrawings:!1},f="watchlist",m="w",w="t",p="tab",g="o",y="flag",b="p",T="ta",x="dr",E="page",$=[{id:s.$.Charts,label:"Charts"},{id:s.$.Snapshot,label:"Snapshot"},{id:s.$.News,label:"News"}],v=s.$.News},57833(t,e,a){a.d(e,{_Y:()=>r,me:()=>l,o5:()=>o});var s=a(12091),i=a(11371),n=a(19622);const r=["watchlist-items"],l=t=>[...r,t];function o(t){let{watchlistId:e,initialData:a,initialDataUpdatedAt:r,checkVersion:o}=t;return(0,s.I)({queryKey:l(e),queryFn:async()=>{const t=await(0,n.Cl)(e);if(o?.(t?.version))return new Promise(()=>{});if(!t?.isSuccess)throw new Error("Failed to load watchlist items");return{items:t.items,newsFilterTickers:t.newsFilterTickers}},enabled:null!=e,initialData:a,initialDataUpdatedAt:r,staleTime:i.R3,keepPreviousData:!0,useErrorBoundary:!1})}},67741(t,e,a){a.d(e,{A:()=>r,s:()=>l});var s=a(12091),i=a(11371),n=a(19622);const r=["watchlists"];function l(t){let{initialData:e,initialDataUpdatedAt:a}=t;return(0,s.I)({queryKey:r,queryFn:async()=>{const t=await(0,n.ND)();if(!t?.isSuccess)throw new Error("Failed to load watchlists");return t.watchlists},initialData:e.length>0?e:void 0,initialDataUpdatedAt:e.length>0?a:void 0,staleTime:i.R3,useErrorBoundary:!1})}},19622(t,e,a){a.d(e,{Cl:()=>n,DZ:()=>j,K7:()=>u,LL:()=>f,ND:()=>i,Qi:()=>g,RI:()=>T,V3:()=>r,Y5:()=>x,Z2:()=>y,aR:()=>v,gK:()=>b,h6:()=>l,jE:()=>E,jP:()=>o,nW:()=>c,nv:()=>m,sb:()=>h,v:()=>w,vS:()=>p,wj:()=>$,zq:()=>d});a(66184),a(14846),a(94364);var s=a(5868);function i(){return(0,s.AT)("/api/watchlists",{method:"GET"})}function n(t){return(0,s.AT)(`/api/watchlists/${t}/items`,{method:"GET"})}function r(t,e){return(0,s.AT)(`/api/watchlists/${t}/quotes?f=${e.join(",")}`,{method:"GET"})}function l(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const a=e.length>0?`?t=${e.join(",")}`:"";return(0,s.AT)(`/api/watchlists/${t}/news${a}
1`,{method:"GET"})}function o(t,e,a){return(0,s.AT)(`/api/watchlists/${t}/ticker-hover?t=${encodeURIComponent(e)}&assetClass=${a}`,{method:"GET"},!0)}function c(t,e){return(0,s.AT)(`/api/watchlists/${t}/ticker-news?t=${e}`,{method:"GET"})}function d(t,e){return(0,s.AT)(`/api/watchlists/${t}/charts`,{method:"GET",query:{page:e.page,pageSize:e.pageSize,period:e.period,ta:e.isTA?"1":"0",drawings:e.showDrawings?"1":"0",...e.dateRange?{dateRange:e.dateRange}:{},w:e.dimensions.width,h:e.dimensions.height,bw:e.dimensions.barWidth,bm:e.dimensions.barMargin,bb:e.dimensions.barBorder}},!0)}function u(t,e){return(0,s.AT)(`/api/watchlists/${t}/snapshot`,{method:"GET",query:{page:e.page,pageSize:e.pageSize,period:e.period,ta:e.isTA?"1":"0",drawings:e.showDrawings?"1":"0",...e.dateRange?{dateRange:e.dateRange}:{},columns:e.columns.join(",")}},!0)}function h(t){return(0,s.AT)("/api/watchlists",{method:"POST",body:JSON.stringify({name:t})},!0)}function f(t){return(0,s.AT)(`/api/watchlists/${t}/duplicate`,{method:"POST"},!0)}function m(t,e){return(0,s.AT)(`/api/watchlists/${t}/items`,{method:"POST",body:JSON.stringify({tickers:e})},!0)}function w(t,e,a){return(0,s.AT)(`/api/watchlists/${t}/items/${encodeURIComponent(e)}?assetClass=${a}`,{method:"DELETE"},!0)}function p(t){return(0,s.AT)(`/api/watchlists/${t}/items`,{method:"DELETE"},!0)}function g(t,e){return(0,s.AT)(`/api/watchlists/${t}`,{method:"PUT",body:JSON.stringify({name:e})},!0)}function y(t){return(0,s.AT)(`/api/watchlists/${t}`,{method:"DELETE"},!0)}function b(t){return(0,s.AT)(`/api/watchlists/${t}/note`,{method:"GET"})}function T(t,e){return(0,s.AT)(`/api/watchlists/${t}/order`,{method:"PUT",body:JSON.stringify(e.map(t=>{let{ticker:e,assetClass:a}=t;return{ticker:e,assetClass:a}}))},!0)}function x(t){return(0,s.AT)("/api/watchlists/order",{method:"PUT",body:JSON.stringify(t)},!0)}function E(t,e){return(0,s.AT)(`/api/watchlists/${t}/note`,{method:"PUT",body:JSON.stringify({note:e})},!0)}function $(t,e,a,i){return(0,s.AT)(`/api/watchlists/${t}/items/${encodeURIComponent(e)}/note?assetClass=${a}`,{method:"PUT",body:JSON.stringify({note:i}),keepalive:!0},!0)}function v(t,e){return(0,s.AT)(`/api/alerts/ticker?t=${encodeURIComponent(t)}&assetClass=${e}`,{method:"GET"},!0)}function j(t){return(0,s.AT)("/api/alerts/ticker",{method:"PUT",body:JSON.stringify(t)},!0)}},36470(t,e,a){a.d(e,{H:()=>s.Hj,$:()=>i});var s=a(85670);let i=function(t){return t.Charts="charts",t.Snapshot="snapshot",t.News="news",t}({})},91264(t,e,a){a.d(e,{JI:()=>r,So:()=>h,YE:()=>u,_z:()=>l,hY:()=>c,m_:()=>d,nQ:()=>o});a(14846),a(27458),a(94364),a(36241),a(85151),a(49122),a(75183),a(40520),a(32495),a(72371);var s=a(81761),i=a(35721),n=a(36470);function r(t){let{assetClass:e}=t;return null==e||e===n.H.Stocks}function l(t){return r(t)?t.ticker:`${t.assetClass}:${t.ticker}`}function o(t){return(0,i.ao)(t.ticker,t.assetClass)}function c(t){return new Set(t.map(t=>o(t).toUpperCase()))}function d(t,e){const a=[...new Set((0,s.zH)(t,!0).split(",").filter(Boolean))];return{tickers:a,newTickers:a.filter(t=>!e.has(t)),duplicateTickers:a.filter(t=>e.has(t))}}function u(t){return r(t)||t.assetClass===n.H.Index}function h(t){return t.assetClass===n.H.Index?o(t):t.ticker}}}]);
2//# sourceMappingURL=7131.v1.37dcc132.js.map

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.