1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"80ef2cdf9e309e2aad9550e3141d0d77395a37e3"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:finviz":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8656bf62-58e0-482f-8d6c-578339a9ae0d",e._sentryDebugIdIdentifier="sentry-dbid-8656bf62-58e0-482f-8d6c-578339a9ae0d")}catch(e){}}(),(self.webpackChunkFinvizModern=self.webpackChunkFinvizModern||[]).push([[733],{57010(e,t,s){s.d(t,{O7:()=>l,a3:()=>d,iW:()=>u,qK:()=>m});s(15724);var n=s(63696),r=s(11894),i=s(62540);const l="df0d0d52-cc7f-11e8-82a5-0abbb61c4a6a";var o=function(e){return e.IC_TickerInContent="IC_D_3x3",e.IC_Statements="IC_D_300x60",e.IC_Groups="IC_D_300x250",e}(o||{});const a={[o.IC_TickerInContent]:{placements:3,style:{width:970,minHeight:250}},[o.IC_Statements]:{placements:1,style:{width:300,minHeight:60}},[o.IC_Groups]:{placements:1,style:{width:336,minHeight:280}}},c=r.gi()===r.wZ.InvestingChannel;function d(){var e;return{create:function(){try{c&&window.InvestingChannelQueue?.push(()=>{let t=window.FINVIZ_IC_UAT_CONFIG??{};e=window.InvestingChannel?.UAT.Run(l,t)})}catch(e){console.error(e)}},destroy:function(){try{c&&window.InvestingChannelQueue?.push(()=>{e?.destroy()})}catch(e){console.error(e)}}}}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.useLayoutEffect(()=>{const e=d();return e.create(),()=>e.destroy()},e),c}function m(e){let{name:t,position:s=1,...n}=e;const r=o[t],l=a[r],d=`${r}_${Math.min(Math.max(s,1),l.placements)}`;return c?(0,i.jsx)("div",{...n,id:d,style:{...n.style,...l.style}}):null}},66374(e,t,s){s.d(t,{V:()=>r});var n=s(63696);function r(e,t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=n.useRef(null);n.useEffect(()=>{setTimeout(()=>{let e=document.querySelector(".is-error input");const t=document.activeElement;r.current!==t?(t?.classList.contains("is-error")&&(e=t),r.current=e,e?.blur?.(),setTimeout(()=>{s&&e?.scrollIntoView({block:"center"}),e?.focus?.()})):r.current=null},t||0)},[s,t,e])}},94648(e,t,s){s.d(t,{X:()=>u,k:()=>f});var n=s(22132),r=s(4452),i=s.n(r),l=s(63696),o=s(78898),a=s(55422),c=s(11508),d=s(62540);const u="Youâve reached the transaction limit for this portfolio. Remove trades or tickers to add more.";function m(e){let{buttonElement:t,className:s,onIsInteractingChange:r}=e;const o=(0,a.i8)({placement:"bottom",showTimeout:300}),c=n.O$(o,"mounted");return l.useEffect(()=>{r?.(c)},[r,c]),(0,d.jsxs)("div",{className:i()("flex",s),children:[(0,d.jsxs)("div",{className:"relative",children:[t,(0,d.jsx)(a.k$,{state:o,"aria-label":u,className:"absolute top-0 right-0 bottom-0 left-0"})]}),(0,d.jsx)(a.m_,{state:o,className:"w-52",children:u})]})}function f(e){let{"data-testid":t,label:s="Trade",leftContent:n="add",canAddTransactions:r=!0,onClick:i,className:l,wrapperClassName:a}=e;const{isActive:u=!0,setIsInteracting:f}=(0,c.BH)(),h=(0,d.jsx)(o.$n,{type:"button",className:l,disabled:!r,onClick:i,"data-testid":t,leftContent:n,children:s});return!r&&u?(0,d.jsx)(m,{className:a,buttonElement:h,onIsInteractingChange:f}):h}},93327(e,t,s){s.d(t,{$:()=>b,P:()=>y});var n=s(63696),r=s(65227),i=s(64964),l=s(81761),o=s(53150),a=s(78898),c=s(12845),d=s(57550),u=s(55422),m=s(66374),f=s(85670),h=s(92024),p=s(17110),x=s(41382),v=s(25877),g=s(94648),j=s(62540);function y(e){let{value:t,setValue:s,errors:r,setErrors:c,canAddTickers:d=!0,onAddTickerSubmit:p}=e;(0,m.V)(r);const x=(0,u.i8)({placement:"bottom",showTimeout:300}),v=n.useRef(e=>{const t=e.currentTarget.value;s(t),t.length&&!(0,l.oi)(t,!0,[h.C])||c(e=>e.tickers?{...e,tickers:void 0}:e)}),y=void 0!==r?.tickers,b=!d;return(0,j.jsxs)("div",{className:"relative w-70",children:[b&&(0,j.jsx)(u.k$,{state:x,"aria-label":g.X,className:"absolute top-0 right-0 bottom-0 left-0 z-10"}),(0,j.jsx)(i.v4,{children:(0,j.jsx)(o.XyA,{isMultiTicker:!0,specialSymbols:h.Pi,instrument:f.CM.Stock,open:!y&&void 0,hasSearchIcon:!1,isShowAllVisible:!1,isSearchItemLink:!1,inputProps:{value:t,name:h.lB,inputClass:"!pr-24",className:y?"is-error":void 0,onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()}},onActiveValueChange:e=>{s(e),c({})},onTickerSelected:e=>{s(e),p(e)},inputComponent:(0,j.jsx)(o.gjT,{error:y,placeholder:"AAPL, MSFT, $CASH, â¦",onChange:v.current,disabled:b,showTooltipOnHover:y,tooltipSettings:{color:"red",className:"max-w-64"},children:r.tickers})})}),(0,j.jsx)(a.$n,{size:"small",theme:"blue",className:"absolute top-0.5 right-0.5 rounded-l-none text-sm mobile:h-7",rounding:"small",children:"Add Tickers"}),b&&(0,j.jsx)(u.m_,{state:x,className:"w-52",children:g.X})]})}function b(e){let{portfolioId:t,classNames:s,canAddTickers:i}=e;const[o,a]=n.useState(""),[u,m]=n.useState({tickers:void 0}),f=(0,x.y)(),g=(0,p.m)(v.LN.AddTickers),b=(0,c.hN)();n.useEffect(()=>{a(""),m({tickers:void 0})},[t]),n.useEffect(()=>{g&&(g.isNotification&&g.message?m({tickers:g.message}):g.isNotification?b.show((0,j.jsx)(d.l,{message:g.message}),{position:c.Hl.TopRight}):a(""))},[g,b]);const k=n.useCallback(e=>{const s="string"==typeof e,n=s?void 0:e,r=s?e:o;n?.preventDefault();const i=(0,l.oi)(r??"",!0,[h.C]);if(!i)return m({tickers:h.dc});f(v.LN.AddTickers,{tickers:i,portfolioId:t},{method:"post"})},[o,t,f]);
1return(0,j.jsx)(r.lV,{onSubmit:k,"data-testid":"add-tickers",className:s,children:(0,j.jsx)(y,{value:o,setValue:a,errors:u,setErrors:m,canAddTickers:i,onAddTickerSubmit:k})})}},11508(e,t,s){s.d(t,{BH:()=>l,Tz:()=>o});var n=s(63696),r=s(62540);const i=n.createContext({isActive:void 0,setIsInteracting:void 0,setIsInView:void 0});function l(){return n.useContext(i)}const o=e=>{let{children:t,hasAlwaysActiveOverride:s=!1}=e;const[l,o]=n.useState(!1),[a,c]=n.useState(!1),d=n.useMemo(()=>({isActive:s||l||a,setIsInteracting:o,setIsInView:c}),[s,a,l]);return(0,r.jsx)(i.Provider,{value:d,children:t})}},30073(e,t,s){s.d(t,{R:()=>g});var n=s(63696),r=s(53150),i=s(57297),l=s(74601),o=s(5868),a=s(88601),c=s(85670),d=s(35721),u=s(62540);const m="hideRedesignButton",f=(0,l.Fr)(),h=(0,d.kc)(),p=()=>window.location.reload();function x(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;window.gtag?.("event","click",{event_category:"feature_tryout",event_label:e,value:t,eventCallback:null===s?void 0:s??p})}function v(e){let{id:t,leftContent:s="gift",isVisible:l,enableFeatureTooltip:p,disableFeatureTooltip:v,actions:g,children:j,...y}=e;const{hasDarkTheme:b,hasRedesignEnabled:k}=(0,a.t0)(e=>({hasDarkTheme:e.hasDarkTheme,hasRedesignEnabled:e.hasRedesignEnabled}));l??=!0!==h?.redesign&&!b;const[w,N]=n.useState(!1),T=n.useRef(void 0),C=n.useRef(0),I=n.useRef("true"===(0,i.Ri)(m)),{cta:_="Keep the New Portfolio",revert:A="Revert to Legacy Theme"}=g??{},S=n.useRef(async e=>{N(!0),T.current=o._$("featureFlags",(0,d.kr)({...h,...e})),await T.current,T.current=void 0}),E=n.useCallback(async()=>{const e=!k;await S.current({...h,[t]:Number(e)}),x(t,e)},[t,k]),R=n.useCallback(async()=>{await o._$(m),await S.current({...h,[c.TO.RedesignedPages]:!1,[t]:!0}),x(t,"keep_on_page_only")},[t]);n.useEffect(()=>()=>T.current?.cancel?.(),[]);return(!I.current||!k)&&l?k?(0,u.jsxs)(r.pbl,{placement:"bottom-end",children:[(0,u.jsx)(r.Wvm,{state:void 0,render:(0,u.jsx)(r.$nd,{theme:"chipTransparent",leftContent:"help",...y,children:"Layout Options"})}),(0,u.jsxs)(r.AMh,{state:void 0,className:"w-72 p-4",children:[v,(0,u.jsxs)("div",{className:"flex flex-col justify-stretch space-y-1 text-center",children:[(0,u.jsx)(r.$nd,{theme:"blue",onClick:R,disabled:w,children:_}),(0,u.jsx)(r.$nd,{theme:"link",onClick:E,disabled:w,children:A}),(0,u.jsxs)(r.fzL,{size:"tiny",className:"leading-4 text-muted",children:["You can always toggle the design changes later on",(0,u.jsx)("br",{}),"the"," ",(0,u.jsx)("a",{className:"tab-link",target:"_blank",href:"/feature_preview",children:"Feature Preview"})," ","page."]})]})]})]}):(0,u.jsxs)(r.Bcw,{placement:"bottom",children:[(0,u.jsx)(r.k$k,{state:void 0,render:(0,u.jsx)(r.$nd,{type:"button",rounding:"none",theme:k?"chipTransparent":"blue",className:"font-sans",disabled:w,onClick:()=>{f&&C.current<1?C.current+=1:E()},leftContent:w?(0,u.jsx)(r.vX2,{delayComponent:(0,u.jsx)(r.Int,{name:s}),children:(0,u.jsx)(r.y$y,{width:16})}):s,...y,children:j})}),(0,u.jsx)(r.m_M,{state:void 0,className:"flex font-sans",onClose:()=>C.current=0,children:p})]}):null}function g(e){return(0,u.jsx)(v,{id:c.TO.PortfolioRedesign,actions:{pageOnly:"Keep only on Portfolio"},enableFeatureTooltip:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"w-72 p-2 pr-4",children:[(0,u.jsx)(r.DZT,{level:5,className:"m-0",children:"Try the All-New Portfolio"}),(0,u.jsxs)(r.fzL,{size:"small",className:"p-0",children:["Enable the improved Finviz experience",(0,u.jsx)("br",{})," to get these new features:"]}),(0,u.jsxs)("ul",{className:"list-disc py-4 pl-6",children:[(0,u.jsx)("li",{children:"Reorder Portfolios & Tickers"}),(0,u.jsx)("li",{children:"Create Watchlists Faster"}),(0,u.jsx)("li",{children:"View Portfolio by Ticker"}),(0,u.jsx)("li",{children:"Edit Transactions In-place"}),(0,u.jsx)("li",{children:"Use Improved Bulk-edit Tools"})]})]}),(0,u.jsxs)("picture",{children:[(0,u.jsx)("source",{srcSet:"/img/portfolio-preview/screenshot.webp"}),(0,u.jsx)("img",{src:"/img/portfolio-preview/screenshot.jpg",className:"my-1 h-60 rounded-sm object-cover",alt:"Redesigned portfolio preview"})]})]}),disableFeatureTooltip:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.DZT,{level:5,className:"m-0",children:"Introducing the Redesigned Portfolio"}),(0,u.jsx)(r.fzL,{size:"small",className:"p-0 text-muted",children:"The all-new portfolio features a refreshed de
1sign and a slew of new features:"}),(0,u.jsxs)("ul",{className:"list-disc pt-2 pb-4 pl-3.5 text-sm marker:text-muted-2",children:[(0,u.jsx)("li",{children:"Reorder Portfolios & Tickers"}),(0,u.jsx)("li",{children:"Create Watchlists Faster"}),(0,u.jsx)("li",{children:"View Portfolio by Ticker"}),(0,u.jsx)("li",{children:"Edit Transactions In-place"}),(0,u.jsx)("li",{children:"Use Improved Bulk-edit Tools"})]})]}),...e,children:"Try the All-New Portfolio!"})}},17110(e,t,s){s.d(t,{m:()=>r});var n=s(65227);function r(e){const t=(0,n.mP)();return t&&Array.isArray(e)&&e.includes(t.kind)?t:t?.kind===e?t.payload:null}},41382(e,t,s){s.d(t,{y:()=>l});var n=s(63696),r=s(65227),i=s(57490);function l(){const e=(0,r.of)(),{data:t}=(0,i.TT)();return n.useCallback((s,n,r)=>{e({kind:s,payload:n,portfolioId:t.selectedPortfolio},{...r,encType:"application/json"})},[t.selectedPortfolio,e])}},48156(e,t,s){s.r(t),s.d(t,{default:()=>b});var n=s(63696),r=s(65227),i=s(57010),l=s(64964),o=s(81761),a=s(12845),c=s(57550),d=s(16745),u=s(93327),m=s(53150),f=s(92024),h=s(62540);function p(e){let{errors:t,setErrors:s,ref:r}=e;const i=n.useRef(e=>{const t=e.currentTarget.value;(0,o.oi)(t,!0,[f.C])&&s(e=>e.portfolioName?{...e,portfolioName:void 0}:e)}),l=void 0!==t.portfolioName;return(0,h.jsx)(m.gjT,{ref:r,name:f.c,size:"medium",placeholder:"New Portfolio",autoFocus:!0,onChange:i.current,maxLength:30,className:l?"is-error":void 0,error:l,tooltipSettings:{color:"red",placement:"right"},children:t.portfolioName})}var x=s(30073),v=s(17110),g=s(41382),j=s(25877);function y(e){let{children:t}=e;return(0,h.jsx)("span",{className:"font-semibold",children:t})}function b(){const e=n.useRef(null),t=(0,a.hN)(),s=(0,g.y)(),m=(0,i.iW)(),b=(0,v.m)(j.LN.AddTickers),[k,w]=n.useState({}),N=(0,r.LG)(),[T,C]=n.useState(""),I=n.useRef(null),_=n.useCallback(e=>{w(e),e.portfolioName&&I.current?.focus()},[]);n.useEffect(()=>{b&&b.hasOwnProperty("isNotification")?t.show((0,h.jsx)(c.l,{message:b.message}),{position:a.Hl.TopRight}):_(b??{})},[b,_,t]);const A=t=>{t?.preventDefault();const n=e.current;if(!n)return;const r=n.elements.namedItem(f.lB),i=n.elements.namedItem(f.c);if(!r||!i)return;const l=function(e,t){let s,n;const r=(0,o.oi)(t,!0,[f.C]);return e.trim()||(s=f.$s),t&&r||(n=f.dc),s||n?{portfolioName:s,tickers:n}:void 0}(i.value,r.value);l?_(l):s(j.LN.AddTickers,{tickers:(0,o.oi)(r.value,!0,[f.C]),portfolioName:i.value.trim()},{method:"post"})};return(0,h.jsxs)(r.lV,{ref:e,"data-testid":"create-portfolio-form",method:"post",className:"flex flex-1 flex-col",onSubmit:A,children:[(0,h.jsx)("div",{className:"px-2",children:(0,h.jsxs)("div",{className:"fv-container flex h-12 px-0 py-2 text-center",children:[(0,h.jsx)("div",{className:"relative w-[220px]",children:(0,h.jsx)(l.v4,{children:(0,h.jsx)(p,{ref:I,errors:k,setErrors:w})})}),(0,h.jsx)("div",{className:"flex grow items-center justify-end",children:(0,h.jsx)(x.R,{size:"medium"})})]})}),(0,h.jsx)("div",{className:"flex flex-1 flex-col border-y border-y-gray-100 bg-gray-50 px-2 font-sans dark:border-y-gray-700 dark:bg-gray-900",children:(0,h.jsxs)("div",{className:"fv-container flex flex-1 flex-col px-0 py-2",children:[(0,h.jsx)(u.P,{value:T,setValue:C,errors:k,setErrors:w,onAddTickerSubmit:()=>A()}),0===N.length&&(0,h.jsxs)("div",{className:"relative m-auto rounded-lg",children:[(0,h.jsx)("img",{className:"rounded-lg",alt:"Portfolio Banner",srcSet:(S="/img/portfolio-banner",E="jpg",S+"."+E+" 1x,"+S+"@2x."+E+" 2x"),width:872,height:242,"data-testid":"create-portfolio-banner"}),(0,h.jsxs)("div",{className:"absolute top-0 left-0 flex h-full flex-col items-center justify-center pl-5 text-gray-50",children:[(0,h.jsxs)(d.DZ,{level:2,className:"m-0",children:["Create your first portfolio,",(0,h.jsx)("br",{})," take control of your investment strategy"]}),(0,h.jsxs)("ul",{className:"mt-3 list-disc text-sm",children:[(0,h.jsx)("li",{children:"Use Portfolio as a filter in Full-screen Charts and Screener"}),(0,h.jsxs)("li",{children:["Check your investment performance with ",(0,h.jsx)(y,{children:"interactive maps"})]}),(0,h.jsxs)("li",{children:["Stay up-to-date on ",(0,h.jsx)(y,{children:"market news related to your stocks"})]}),(0,h.jsxs)("li",{children:["Set ",(0,h.jsx)(y,{children:"alerts"}
1)," for breaking news, new analyst ratings,",(0,h.jsx)("br",{})," and insider trading updates"]}),(0,h.jsxs)("li",{children:["Keep track of your ",(0,h.jsx)(y,{children:"stock transactions"})]})]})]})]}),m&&(0,h.jsx)(i.qK,{name:"IC_TickerInContent",className:"relative mx-auto flex w-full items-center justify-center overflow-hidden"})]})})]});var S,E}}}]); 2//# sourceMappingURL=733.v1.34e7ce78.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.