PageSourceSearch

https://risksmith.com/_next/static/chunks/pages/app/login-62a0a245c5849fe1.js

js risksmith.com collected 2026-10-08 07:36:38 UTC 8,968 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4858],{10095:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var s=i(9008),r=i.n(s),a=i(11163),n={siteTitle:"RiskSmith",siteTitleAlt:"RiskSmith",siteDescription:"RiskSmith measures the exposure you're actually carrying — every position, and the whole portfolio — in dollars. No predictions, no price targets. Check your portfolio free.",siteKeywords:"investing, risk management, histograms, risk",siteUrl:"https://risksmith.com",userTwitter:"risksmithhq",shareTitle:"RiskSmith",shareDescription:"RiskSmith measures the exposure you're actually carrying — every position, and the whole portfolio — in dollars. No predictions, no price targets. Check your portfolio free.",shareImage:"/og-shape-of-risk.png",shareImageWidth:1200,shareImageHeight:630},o=i(85893),l=e=>{let t,i,s,l,c,h,m,u,{metaData:d,pageSEO:p,noIndex:g=!1}=e;t=n.siteTitle,i=n.siteDescription;let x=n.siteKeywords;s=n.shareTitle,l=n.shareDescription,c=n.shareDescription,h=n.siteUrl+n.shareImage;let f=n.shareImageWidth,y=n.shareImageHeight,{asPath:w}=(0,a.useRouter)();m="".concat(n.siteUrl).concat(w);let j=[{"@context":"http://schema.org","@type":"WebSite",url:n.siteUrl,name:n.siteTitle,alternateName:n.siteTitleAlt?n.siteTitleAlt:""}];return d&&p&&(t="".concat(d.title," | ").concat(n.siteTitle),i=d.description,s=t,h&&(h=d.shareImage),l=i,c=i,u=g?"noindex":"index",j.push({"@context":"http://schema.org","@type":"WebPage",url:m,name:d.title},{"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,item:{"@id":n.siteUrl,name:n.siteTitle}},{"@type":"ListItem",position:2,item:{"@id":m,name:d.title}}]})),(0,o.jsxs)(r(),{children:[(0,o.jsx)("title",{children:t}),(0,o.jsx)("meta",{name:"image",content:h}),(0,o.jsx)("meta",{name:"description",content:i}),(0,o.jsx)("meta",{name:"keywords",content:x}),(0,o.jsx)("meta",{name:"robots",content:u}),(0,o.jsx)("script",{type:"application/ld+json",children:JSON.stringify(j)}),(0,o.jsx)("meta",{property:"og:type",content:"website"}),(0,o.jsx)("meta",{property:"og:title",content:s}),(0,o.jsx)("meta",{property:"og:url",content:m}),(0,o.jsx)("meta",{property:"og:image",content:h}),(0,o.jsx)("meta",{property:"og:image:width",content:String(f)}),(0,o.jsx)("meta",{property:"og:image:height",content:String(y)}),(0,o.jsx)("meta",{property:"og:description",content:l}),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,o.jsx)("meta",{name:"twitter:creator",content:n.userTwitter?n.userTwitter:""}),(0,o.jsx)("meta",{name:"twitter:title",content:s}),(0,o.jsx)("meta",{name:"twitter:image",content:h}),(0,o.jsx)("meta",{name:"twitter:description",content:c})]})}},92935:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return N}});var s=i(89956),r=i(54383),a=i(87066),n=i(83977),o=i(24367),l=i(25675),c=i.n(l),h=i(41664),m=i.n(h),u=i(11163),d=i(62231),p=i(33242),g=i(76806),x=i(10095),f=i(98803),y=i(53640),w=i(77781),j=i(85893);let A=i(83454).env.NEXT_PUBLIC_FIREBASE_API_URL||"https://".concat(f.wk.region,"-").concat(f.ZP.options.projectId,".cloudfunctions.net"),k={title:"Login",description:"Login -- Creating a great portfolio takes work. We'll help you get started, by guiding you through creating a team of stocks that's optimized to win, and then giving you the tools to manage it for the long haul."};function N(){let e=(0,u.useRouter)(),t=(0,r.useRef)(null),i=(0,r.useRef)(null),[l,h]=(0,r.useState)(!1),[N]=(0,r.useGlobal)("currentUser"),{referralSourceId:b,referralEntityId:R,referralEntityEmail:I,referralReturnURL:T}=e.query,E=(0,r.useCallback)(async()=>{if((0,o.JB)(f.I8,window.location.href)){if(!I)return;let e=Array.isArray(I)?I[0]:I;try{let t=await (0,o.P6)(f.I8,e,window.location.href);t&&(T?window.location.href=[T,T.includes("?")?"&":"?","finiacUserId=".concat(t.user.uid)].join(""):window.location.href="/app/p")}catch(i){t.current&&(t.current.value=e)}}},[I,T]),S=(0,r.useCallback)(async()=>{if((0,o.JB)(f.I8,window.location.href))return!1;I&&null===N&&await a.Z.request({method:"GET",url:"".concat(A,"/authAPI-authAPI/stub_user"),params:{referralSourceId:b,referralEntityId:R,referralEntityEmail:I,referralReturnURL:T}})}
1,[N,I,R,T,b]);async function L(e){if(e.preventDefault(),t.current&&i.current)try{h(!0),await (0,y.x4)(t.current.value,i.current.value),h(!1)}catch(e){if(e instanceof n.ZR)return await (0,p.fz)("SIGN IN ERROR","Incorrect email or password.","error");await (0,p.fz)("SIGN IN ERROR","The service is not working. Try again later.","error")}finally{h(!1)}}async function v(){try{await (0,y.Cb)()}catch(t){let e=t instanceof Error?t.message:String(t);(0,p.fz)("GOOGLE LOGIN ERROR",e,"error")}}async function B(){try{await (0,y.DA)(),e.push("/app/profile")}catch(t){let e=t instanceof Error?t.message:String(t);(0,p.fz)("TWITTER LOGIN ERROR",e,"error")}}async function _(){try{await (0,y.eu)(),e.push("/app/profile")}catch(t){let e=t instanceof Error?t.message:String(t);(0,p.fz)("FACEBOOK LOGIN ERROR",e,"error")}}return((0,r.useEffect)(()=>{S()},[S]),(0,r.useEffect)(()=>{let t=document.body.classList,i=e.pathname.split("/"),s=i.length,r=i[s-1];return t.add(r),E(),()=>{t.remove(r)}},[]),(0,r.useEffect)(()=>{},[N,e]),I)?(0,j.jsx)(d.Z,{children:(0,j.jsx)("main",{className:"mx-auto flex w-full max-w-7xl flex-grow flex-col justify-center px-6 lg:px-8",children:(0,j.jsxs)("div",{className:"py-16",children:[(0,j.jsx)("div",{className:"flex flex-shrink-0 justify-center mb-12",children:(0,j.jsx)(c(),{src:w.Z,alt:"RiskSmith logos",className:"auth-logo",width:256,height:85,style:{maxWidth:"100%",height:"auto"}})}),(0,j.jsxs)("div",{className:"text-center",children:[(0,j.jsx)("h1",{className:"mt-2 text-4xl font-bold tracking-tight text-white sm:text-5xl",children:"Welcome To RiskSmith"}),(0,j.jsxs)("p",{className:"mt-2 text-base text-gray-500",children:["Check your ",I," email account to finish logging in."]})]})]})})}):(0,j.jsxs)(d.Z,{children:[(0,j.jsx)(x.Z,{metaData:k,pageSEO:!0}),(0,j.jsx)(g.W2,{className:"h-screen overflow-auto",children:(0,j.jsxs)("div",{className:"grid items-center w-full h-full gap-2 lg:grid-cols-2",children:[(0,j.jsxs)("div",{className:"px-12 lg:col-span-1",children:[(0,j.jsx)(c(),{className:"auth-logo",src:w.Z,width:180,height:30,alt:"RiskSmith Logo",itemType:"https://schema.org/logo",itemScope:!0,style:{maxWidth:"100%",height:"auto"}}),(0,j.jsx)("h1",{className:"my-12 text-2xl",children:"Welcome back to RiskSmith!"}),(0,j.jsxs)(g.l0,{onSubmit:L,children:[(0,j.jsxs)(g.l0.Group,{className:"mb-6 space-y-2",id:"email",children:[(0,j.jsx)(g.l0.Label,{children:"Email"}),(0,j.jsx)(g.l0.Control,{type:"email",ref:t,required:!0})]}),(0,j.jsxs)(g.l0.Group,{className:"space-y-2",id:"password",children:[(0,j.jsx)(g.l0.Label,{children:"Password"}),(0,j.jsx)(g.l0.Control,{type:"password",ref:i,"aria-describedby":"passwordHelpBlock",required:!0}),(0,j.jsx)(g.l0.Text,{className:"text-sm text-gray-730",children:"a minimum of 6 characters required"})]}),(0,j.jsx)(g.zx,{disabled:l,type:"submit",className:"flex mt-10 mb-8 py-2.5 px-6 text-lg font-extrabold rounded-md",children:"Log In"})]}),(0,j.jsx)("div",{className:"border-t border-t-gray-750"}),(0,j.jsx)(s.GoogleLoginButton,{onClick:v,className:"GoogleLoginButton",children:(0,j.jsx)("span",{children:"Log In w/ Google"})}),(0,j.jsx)(s.TwitterLoginButton,{onClick:B,className:"TwitterLoginButton",style:{display:"none"},children:(0,j.jsx)("span",{children:"Log In w/ Twitter"})}),(0,j.jsx)(s.FacebookLoginButton,{onClick:_,className:"FacebookLoginButton",style:{display:"none"},children:(0,j.jsx)("span",{children:"Log In w/ Facebook"})}),(0,j.jsxs)("div",{className:"flex mt-12 underline",children:[(0,j.jsx)("span",{className:"pr-12",children:(0,j.jsx)(m(),{href:"/app/signup",children:"Sign up now for free!"})}),(0,j.jsx)("span",{children:(0,j.jsx)(m(),{href:"/app/forgot-password",children:"Forgot your password?"})})]})]}),(0,j.jsx)("div",{className:"px-8 lg:h-full lg:col-span-1 sm:flex auth-sidebar",children:(0,j.jsxs)("div",{className:"flex flex-col hidden place-self-center lg:block",children:[(0,j.jsx)("h1",{className:"mb-4 text-3xl sidebar-quote",children:"The common thing all great investors share is a commitment to risk management."}),(0,j.jsxs)("p",{children:["Jack Schwager, author of",(0,j.jsx)("em",{children:"Market Wizards"})]})]})})]})})]})}},4279:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/login",function(){return i(92935)}])},77781:function(e,t){"use strict";t.Z={src:"/_next/static/media/risksmith-logo-on-dark.4f5e2ad6.png",height:61,width:420,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAMAAADU3h9xAAAAD1BMVEX////+///W8+L///9KyX6lEN37AAAABXRSTlNXYWtr0xaTkM8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAARSURBVHicY2BhYmRkYGBmAAAASAAMDaqH
1QAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:1}}},function(e){e.O(0,[1664,5675,1630,876,9956,4312,2231,2888,9774,179],function(){return e(e.s=4279)}),_N_E=e.O()}]);

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.