1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[18157],{777739(e,t,l){var n=l(310770),a=l(296540);const s={isInsufficientRatedStocks:!1,currentFlow:null,startPlaidFlow:n.l,startStocksFlow:n.l,resetCurrentFlow:n.l,continueCurrentFlow:n.l,stocks:[],setStocks:n.l,syncStatus:null},r=(0,a.createContext)(s);l.d(t,["I",0,r])},135101(e,t,l){l.d(t,["m",0,"portfolio_health_check"])},536464(e,t,l){l.r(t),l.d(t,{Component:()=>C});var n=l(296540),a=l(447274),s=l(934503),r=l(70133),i=l(891305),o=l(913490),c=l(658700),d=l(211866),u=l(783940),m=l(639613),g=l(750782),h=l(427443),p=l(634164),x=l(365440),f="gAdCc",v=l(474848);const j=e=>{let t=e.onClick;return(0,h.G)().isMdScreen?(0,v.jsx)("button",{className:(0,p.$)(f,"absolute right-18 z-1 text-medium-r text-share-link"),"data-test-id":"cancel-button",type:"button",onClick:t,children:"Cancel"}):(0,v.jsx)(x.J,{rootClassName:[f,"absolute right-18 z-1 text-medium-r text-share-link"],onClick:t})};var b=l(135101),w=l(777739),k=l(385929);const C=()=>{const e=(0,i.Jq)(),t=(0,h.G)().isMdScreen,l=(0,c.Zp)(),p=(0,n.use)(w.I),x=p.currentFlow,f=p.continueCurrentFlow,C=p.resetCurrentFlow,y=p.syncStatus,N=p.isInsufficientRatedStocks,$=(0,n.useCallback)(()=>{l(s.pM,{replace:!0})},[l]),S=(0,n.useCallback)(()=>{k.c.trackEvent({action:"dismiss",type:"registration",source:`registration:popup:${b.m}`}),C(),l(r.z.PHC,{replace:!0})},[C,l]),L=(0,n.useCallback)(()=>{k.c.trackEvent({action:"click",type:"back_from_save_results",source:b.m}),l(r.z["PHC.addStocks"],{replace:!0})},[l]),z=(0,n.useCallback)(()=>{(0,o.V)({essentials:!1,dailyPreMarket:!1})},[]);return(0,n.useEffect)(()=>{e&&f()},[f,e]),N&&"error"===y?(0,v.jsx)(c.C5,{replace:!0,to:r.z["PHC.startCheck"]}):x?"pending"===y||"success"===y?(0,v.jsx)(g.o,{syncStatus:y,onAnimationDone:$}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(m.p,{canonicalUrl:`${a.jg}${r.z["PHC.saveResults"]}`,description:"After linking your portfolio, adding stocks, and assessing your stock portfolio's health score, save your results in your Seeking Alpha account for future reference.",title:"Portfolio Health Check | Save Results"}),(0,v.jsxs)("div",{className:"h-full bg-share-bg-2 px-24 pt-safe-offset-18 md:px-72 md:pt-64 lg:flex",children:[t&&"stocks"===x?(0,v.jsx)("button",{className:"absolute left-72 top-64 text-medium-r text-share-link",type:"button",onClick:L,children:"Back"}):null,(0,v.jsx)(j,{onClick:S}),e?null:(0,v.jsx)("div",{className:"m-auto shrink-0",children:(0,v.jsx)(u.S,{verifyWithPasscode:!0,ariaDialogLabelId:"save-results-modal",renderHeader:e=>{let t=e.ariaDialogLabelId;return(0,v.jsx)(d.Y,{ariaDialogLabelId:t,rootClassName:"mb-28 md:mb-24",tag:"h1",title:"Save Your Results"})},triggeredBy:b.m,onVerificationSuccess:z})})]})]}):(0,v.jsx)(c.C5,{replace:!0,to:r.z["PHC.startCheck"]})}},211866(e,t,l){var n=l(634164),a=l(474848);const s={8:"mb-8",12:"mb-12"};l.d(t,["Y",0,e=>{let t=e.text,l=e.title,r=e.rootClassName,i=e.extraClassName,o=e.tag,c=void 0===o?"h3":o,d=e.ariaDialogLabelId,u=e.bottomOffset,m=void 0===u?8:u;return(0,a.jsxs)("div",{className:(0,n.$)("text-center",r),children:[(0,a.jsx)(c,{className:(0,n.$)("mb-8 text-4x-large-2-b md:text-5x-large-b",m?s[m]:"",i),"data-test-id":"header-title",id:d,children:l}),t?(0,a.jsx)("p",{children:t}):null]})}])},639613(e,t,l){l.d(t,{p:()=>x}),l(218111),l(720116),l(161701),l(725440),l(879978),l(962953);var n=l(285917),a=l(237533),s=l(447274),r=l(796345),i=l(195304),o=l(40476),c=l(398410),d=l(640243);const u=l.p+"static/images/alpha.55faee941.png",m=l.p+"static/images/logo-1200.97d05f9dd.jpg";var g=l(474848);const h={id:"nWbHTm"},p={id:"UluY-T"},x=e=>{var t;let l=e.title,x=void 0===l?h:l,f=e.description,v=void 0===f?p:f,j=e.canonicalUrl,b=e.noIndex,w=e.noFollow,k=e.noArchive,C=e.titleTemplate,y=e.hasLargeImagePreview,N=e.ogTags,$=e.links;const S=(0,n.uB)()._,L=null==N||null===(t=N.find(e=>"property"in e&&"og:image"===e.property))||void 0===t?void 0:t.content,z=(0,o.Z)(x)?S(x):x,A=(0,o.Z)(v)?S(v):v,I=j?(e=>e===s.jg||e.startsWith(`${s.jg}/`)||e.startsWith(`${s.jg}?`)||e.startsWith(`${s.jg}#`)?`${(0,d.M)(()=>{var e;const t=null===(e=c.L.preloadedMeta)||void 0===e?void 0:e.subdomain;return t?`https://${t}.${r.lV}`:s.jg},()=>(0,i.zk)().location.origin)}${e.slice(s.jg.length)}`:e)(j):j,M=null!=C?C:String(`%s | ${S({id:"y3HbR5"})}`),H=function(e,t,l,n){return[e&&"noindex",t&&"nofollow",l&&"noarchive",n&&"max-image-preview:large"].filter(
1Boolean).join(", ")}(b,w,k,y),R=[I&&!b?{rel:"canonical",href:I}:null,...null!=$?$:[]].filter(Boolean),P=z&&(M?M.replaceAll("%s",z):z),T=[...(null==N?void 0:N.map(e=>({...e,content:(0,o.Z)(e.content)?S(e.content):e.content})))||[{property:"og:type",content:"website"},{property:"og:image",content:`${s.jg}${m}`},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},P?{property:"og:title",content:P}:null,A?{property:"og:description",content:A}:null,j?{property:"og:url",content:j}:null],H?{content:H,name:"robots"}:null,P?{name:"twitter:title",content:P}:null,...A?[{name:"description",content:A},{name:"twitter:description",content:A}]:[],...L?[{name:"twitter:card",content:"summary_large_image"},{name:"twitter:image",content:L}]:[{name:"twitter:card",content:"summary"},{name:"twitter:image",content:`${s.jg}${u}`},{property:"twitter:image:width",content:"1080"},{property:"twitter:image:height",content:"1080"}]].filter(Boolean);return[P,...R,...T].filter(Boolean).length?(0,g.jsxs)(a.p3,{children:[P?(0,g.jsx)("title",{children:P}):null,R.map((e,t)=>(0,g.jsx)("link",{...e},t)),T.map((e,t)=>(0,g.jsx)("meta",{...e},t))]}):null}},888046(e,t,l){l.d(t,{m:()=>r});var n=l(634164),a=l(599683),s=l(474848);const r=e=>{let t=e.contentClassName,l=e.buttonLabel,r=e.rootClassName,i=e.children,o=e.dataTestId,c=e.onCancel,d=e.ref;return(0,s.jsxs)("div",{className:(0,n.$)("relative",r),"data-test-id":o,ref:d,children:[(0,s.jsx)("div",{className:(0,n.$)("mx-auto flex grow flex-col","qPMOL",t),children:i}),c?(0,s.jsx)(a.Z,{buttonLabel:l,rootClassName:"absolute top-32 right-18 md:top-64 md:right-70",typographyClassName:"md:text-medium-r text-medium-b",onClick:c}):null]})}},750782(e,t,l){l.d(t,{o:()=>v});var n=l(205544),a=l(285917),s=l(310770),r=l(634164),i=l(296540),o=l(46039),c=l(888046),d=l(474848);const u=e=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:53,height:42,fill:"none","aria-hidden":"true",...e,children:(0,d.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M47.921 11.022a1.33 1.33 0 0 0 0-1.885L44.15 5.365a1.333 1.333 0 0 0-1.886 0L20.58 27.05 10.209 16.68a1.333 1.333 0 0 0-1.886 0l-3.771 3.77a1.335 1.335 0 0 0 0 1.886l15.085 15.085c.52.52 1.365.52 1.886 0zM24.351 40.25a5.333 5.333 0 0 1-7.542 0L1.724 25.164a5.333 5.333 0 0 1 0-7.542l3.77-3.771a5.333 5.333 0 0 1 7.543 0l7.543 7.542L39.436 2.537a5.333 5.333 0 0 1 7.542 0l3.772 3.771a5.333 5.333 0 0 1 0 7.543z",clipRule:"evenodd"})}),m=e=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:41,height:42,fill:"none","aria-hidden":"true",...e,children:(0,d.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M14.843 21 4.473 31.37a1.334 1.334 0 0 0 0 1.887l3.77 3.77a1.333 1.333 0 0 0 1.886 0L20.5 26.658l10.37 10.37a1.334 1.334 0 0 0 1.887 0l3.77-3.77a1.333 1.333 0 0 0 0-1.886L26.158 21l10.37-10.37a1.334 1.334 0 0 0 0-1.887l-3.77-3.77a1.333 1.333 0 0 0-1.886 0L20.5 15.342 10.13 4.973a1.333 1.333 0 0 0-1.887 0l-3.77 3.77a1.333 1.333 0 0 0 0 1.886zm-13.2-7.542a5.333 5.333 0 0 1 0-7.543l3.772-3.771a5.333 5.333 0 0 1 7.542 0L20.5 9.686l7.542-7.542a5.333 5.333 0 0 1 7.543 0l3.771 3.771a5.333 5.333 0 0 1 0 7.542L31.814 21l7.542 7.543a5.333 5.333 0 0 1 0 7.542l-3.771 3.771a5.333 5.333 0 0 1-7.543 0L20.5 32.314l-7.542 7.542a5.333 5.333 0 0 1-7.543 0l-3.771-3.771a5.333 5.333 0 0 1 0-7.542L9.186 21z",clipRule:"evenodd"})}),g=e=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:49,height:48,fill:"none","aria-hidden":"true",...e,children:(0,d.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M20.5 20H5.833c-.736 0-1.333.597-1.333 1.333v5.334c0 .736.597 1.333 1.333 1.333H20.5v14.667c0 .736.597 1.333 1.333 1.333h5.334c.736 0 1.333-.597 1.333-1.333V28h14.667c.736 0 1.333-.597 1.333-1.333v-5.334c0-.736-.597-1.333-1.333-1.333H28.5V5.333C28.5 4.597 27.903 4 27.167 4h-5.334c-.736 0-1.333.597-1.333 1.333zm-4-14.667A5.333 5.333 0 0 1 21.833 0h5.334A5.333 5.333 0 0 1 32.5 5.333V16h10.667a5.333 5.333 0 0 1 5.333 5.333v5.334A5.333 5.333 0 0 1 43.167 32H32.5v10.66
17A5.333 5.333 0 0 1 27.167 48h-5.334a5.333 5.333 0 0 1-5.333-5.333V32H5.833A5.333 5.333 0 0 1 .5 26.667v-5.334A5.333 5.333 0 0 1 5.833 16H16.5z",clipRule:"evenodd"})}),h={pending:(0,d.jsx)(g,{className:"JQgtk"}),error:(0,d.jsx)(m,{}),success:(0,d.jsx)(u,{})},p={pending:"Nefzp",error:"qMMkc",success:"jn3MB"},x=e=>{let t=e.diagnosticStatus,l=void 0===t?"pending":t;return(0,d.jsxs)("div",{className:(0,r.$)("An6QI","relative flex items-center justify-center"),children:[(0,d.jsx)("div",{className:(0,r.$)("absolute left-0 top-0 -z-1 size-full rounded-full","lXOK_",p[l])}),h[l]]})},f=[{id:"zd_l3q"},{id:"s4GUPa"},{id:"LjJMlC"}],v=e=>{let t=e.syncStatus,l=e.onAnimationDone,u=e.ref,m=e.children;const g=(0,a.uB)()._,h=(0,i.useState)(null!=t?t:"pending"),p=(0,n.A)(h,2),v=p[0],j=p[1],b=(0,i.useState)(f[0]),w=(0,n.A)(b,2),k=w[0],C=w[1],y=(0,i.useState)(!1),N=(0,n.A)(y,2),$=N[0],S=N[1],L=(0,i.useRef)(0);(0,o.B)(()=>{const e=setInterval(()=>{if(L.current===f.length-1)return clearInterval(e),void S(!0);L.current=L.current+1,C(f[L.current])},1333);return()=>{clearInterval(e)}}),(0,i.useEffect)(()=>{if("success"===t&&$){j("success");const e=setTimeout(()=>{null==l||l()},2e3);return()=>{clearTimeout(e)}}return s.l},[t,l,$]);const z="error"===t?"error":v;return(0,d.jsxs)(c.m,{contentClassName:"items-center",dataTestId:"sync-animation",ref:u,rootClassName:"z-1 flex grow items-center justify-center bg-share-bg-2",children:[(0,d.jsx)("h1",{className:"text-5x-large-b",children:(0,d.jsx)(a.x6,{id:"M1N7RO"})}),(0,d.jsx)("div",{className:(0,r.$)("dwipn","mb-64"),children:(0,d.jsx)(x,{diagnosticStatus:z})}),(0,d.jsxs)("span",{className:"text-x-large-r",children:["pending"===z&&g(k),"success"===z&&(0,d.jsx)(a.x6,{id:"-sErTo"}),"error"===z&&(0,d.jsx)(a.x6,{id:"nwtY4N"})]}),m]})}}}]);
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.