PageSourceSearch

https://open.firstcitizens.org/_next/static/chunks/pages/consumer/locate_application_code-f027088cb024cb19.js

js firstcitizens.org collected 2026-10-02 15:02:19 UTC 4,134 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a6401509-efe7-4387-a4c7-cb93c21047c9",e._sentryDebugIdIdentifier="sentry-dbid-a6401509-efe7-4387-a4c7-cb93c21047c9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9498],{41104:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>v});var i=t(67059),a=t(26514),r=t(89642),o=t(11538),c=t(39072),s=t(46225),d=t(75834),l=t(28634),u=t(40953),m=t(18134),_=t.n(m),p=t(93477),h=t(86737),f=t(96235),g=t(21214),y=t(28187);let v=()=>{var e;let n=(0,s.useRouter)(),{l10n:t}=(0,r.B2)(),{messages:m}=(0,g.A)(),v=(0,y.A)(),{formData:b,onChange:x}=(0,c.O1)(),{setIsLoading:j}=(0,c.nk)(),{application:w,setApplication:k,fetchExistingCoreIdAccounts:N,checkProductEligibility:C}=(0,p.Xn)(),{sendNotification:O}=(0,c.M)(),E=null==(e=w.applicants[0])?void 0:e.email,S=(0,d.useRef)(!1),D=async e=>{if(S.current||void 0===b.verification_code)return;S.current=!0,j(!0);let{tax_id:a,date_of_birth:r,primary_account_number:o}=w.applicants[0];try{let e=await v("account_opening/consumer_accounts",{method:"POST",rawResponse:!0},{email:E,verification_code:b.verification_code.trim(),ssn:a,dob:r,primary_account_number:o,user_category:"personal",metadata:w.metadata}),t=await C(e.data.application);k((0,i._)({existing_user:!0},t)),201===e.status?n.push("/consumer/contact_info"):n.push("/welcome_back")}catch(e){O({type:"negative",text:t.getString("error-invalid-verification-code",null,"Invalid code. Please make sure you have entered it correctly.")})}finally{S.current=!1,e&&e(),j(!1)}},I=async()=>{try{let{applicants:e}=w,n=e[0],{code:i}=await v("account_opening/consumer/verify_applicant/",{method:"POST"},(null==n?void 0:n.tax_id)?{first_name:n.first_name,last_name:n.last_name,email:n.email,ssn:n.tax_id,dob:n.date_of_birth,primary_account_number:n.primary_account_number,user_category:"personal"}:{email:n.email});await N(),k({code:i}),O({type:"success",text:t.getString("notification-code-resent",null,"Code resent")})}catch(e){O({type:"negative",text:t.getString("error-notification-generic",null,"Something went wrong")})}};return(0,a.jsxs)(l.A,{showDivider:!0,children:[(0,a.jsx)(u.A,{children:w.is_returning?(0,a.jsx)(r.Oj,{id:"heading-enter-code-returning-applicant",children:"Looks like you already started an application"}):(0,a.jsx)(r.Oj,{id:"heading-verify-email",children:"Verify your email"})}),(0,a.jsx)("div",{className:_()["content-section"],children:(0,a.jsxs)(f.A,{data:b,onChange:x,messages:m,children:[(0,a.jsx)("div",{className:"fontColor--secondary",children:w.is_returning?(0,a.jsx)(r.Oj,{id:"subheading-enter-code-returning-applicant",children:"For returning applicants, we need to verify your email. Enter the code that was emailed to you."}):(0,a.jsxs)("div",{className:"sentry-mask fontSize--m fontWeight--body",children:[(0,a.jsx)("div",{className:"fontColor--secondary",children:(0,a.jsx)(r.Oj,{id:"subheading-enter-code-sent-to-email",children:"Enter the code sent to"})}),(0,a.jsx)("strong",{className:"fontColor--heading",children:E})]})}),w.code&&(0,a.jsx)("div",{className:"margin--top--l",children:(0,a.jsx)(r.Oj,{id:"subheading-enter-code-applicant-demo",vars:{code:w.code},elems:{button:(0,a.jsx)(o.Button,{kind:"plain",onClick:e=>{e.preventDefault(),S.current=!1,x({verification_code:""}),setTimeout(()=>{x({verification_code:w.code})},50)}})},children:(0,a.jsx)(a.Fragment,{children:"For this demo, please enter <button>".concat(w.code,"</button> below")})})}),(0,a.jsx)("div",{className:"margin--top--l",children:(0,a.jsx)(h.w,{value:b.verification_code,onComplete:e=>{x({verification_code:e}),D()}})}),(0,a.jsx)("div",{className:"margin--top--l",children:(0,a.jsx)(o.Button,{kind:"plain",label:t.getString("label-resend-code",null,"Resend code"),size:"s",type:"button",onClick:I})})]})})]})}},56718:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/consumer/locate_application_code",function(){return t(41104)}])}},e=>{e.O(0,[2957,636,6593,8792],()=>
1e(e.s=56718)),_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.