1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd682cfe-68c2-436e-b91b-eb0a115378b9",e._sentryDebugIdIdentifier="sentry-dbid-dd682cfe-68c2-436e-b91b-eb0a115378b9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[454],{24947:e=>{e.exports={"footer-tftp-disclosure":"FooterDisclosure_footer-tftp-disclosure__ofsXj","bao-footer-tftp-disclosure":"FooterDisclosure_bao-footer-tftp-disclosure__G5LnP"}},28634:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(26514),l=n(11538),o=n(39072),s=n(46225),r=n(75834),a=n(93477),c=n(95385),u=n(89642),d=n(18134),g=n.n(d),m=n(56518);let _=e=>{let{hideFDICLogo:t=!1}=e,{institution:n}=(0,a.Xn)(),{l10n:s}=(0,u.B2)(),{m:c}=(0,l.useBreakpoints)(),{long_name:d,member_dif:_,dif_logo_url:h,equal_housing_logo_url:p,fdic_ncua_logo_url:f,type:x,dao_footer_display_selector:v}=n,[b,y]=(0,r.useState)(!1),j="credit_union"===x,S=(0,i.jsxs)(i.Fragment,{children:["\xa9 ","".concat(new Date().getFullYear()," ").concat(d)]}),N=(null==v?void 0:v.show_powered_by_narmi_text)&&(0,i.jsx)(i.Fragment,{children:s.getString("footer-powered-by-narmi",null,"Powered by Narmi")}),C=(0,i.jsx)(m.A,{dao_footer_display_selector:v,isCreditUnion:j,member_dif:_}),w=(null==v?void 0:v.show_equal_housing_lender_text)?(0,i.jsxs)(i.Fragment,{children:["\xa0",s.getString("footer-membership-equal-housing",null,"Equal Housing Lender.")]}):null,I=(null==v?void 0:v.show_fdic_ncua_logo)&&f&&!t&&(0,i.jsx)("img",{style:{cursor:"pointer"},role:"presentation",alt:s.getString("footer-alt-member-bank",{membership:j?"NCUA":"FDIC"},"Member Bank: ".concat(j?"NCUA":"FDIC")),src:f,className:g()["footer-logo"],"data-testid":"fdic-ncua-footer-logo",onClick:()=>y(!0)}),k=(null==v?void 0:v.show_member_dif_logo)&&_&&h&&(0,i.jsx)("img",{alt:s.getString("footer-alt-dif",null,"Member Bank: Depositors Insurance Fund"),src:h,className:g()["footer-logo"],"data-testid":"member-dif-footer-logo"}),E=(null==v?void 0:v.show_equal_housing_lender_logo)&&(0,i.jsx)("img",{src:p||"/ehl_black.png",alt:s.getString("footer-alt-equal-housing",null,"Equal Housing Lender Logo"),className:g()["footer-logo"],"data-testid":"equal-housing-footer-logo"}),A=(0,i.jsx)("div",{className:"margin--left--xs",children:(0,i.jsxs)(l.ResponsiveFlex,{direction:"row",gapSize:"xxs",children:[I,k,E]})});return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"fontSize--xs margin--bottom--l","data-testid":"footer-long-name",style:{color:"var(--color-black)"},children:[c?(0,i.jsx)(l.SeparatorList,{items:[S,N,[C,w,A].filter(e=>!!e)].filter(e=>e),separator:"|"}):(0,i.jsxs)("div",{className:"ao-flex ao-align-center",style:{gap:"var(--space-xs)",flexDirection:"column"},children:[(0,i.jsx)("div",{className:g()["copyright-section"],children:(0,i.jsx)(l.SeparatorList,{items:[S,N].filter(e=>!!e),separator:"|"})}),(0,i.jsxs)("div",{className:"ao-flex ao-justify-center ao-align-center margin--bottom--xxs",children:[C,w]}),A]}),(0,i.jsx)(o.lG,{headerStyle:"plain",isOpen:b,onUserDismiss:()=>y(!1),children:(0,i.jsx)("img",{style:{maxWidth:"100%"},alt:s.getString("footer-alt-member-bank",{membership:j?"NCUA":"FDIC"},"Member Bank: ".concat(j?"NCUA":"FDIC")),src:f})})]})})};var h=n(68745);let p=()=>{let{institution:e}=(0,a.Xn)(),{l10n:t}=(0,u.B2)(),[n,s]=(0,r.useState)(!1),{help_email:c,help_phone:d,terms_url:g,privacy_url:m,dao_footer_display_selector:_}=e,p=(null==_?void 0:_.show_help_phone)&&d,f=(null==_?void 0:_.show_help_email)&&c,x=(p||f)&&(0,i.jsx)(l.Button,{kind:"plain",label:t.getString("footer-support",null,"Support"),testId:"footer-support",size:"xs",onClick:()=>s(!0)}),{showPrivacyPolicyLink:v,showTermsLink:b}=(0,h.A)(_,{privacyUrl:m,termsUrl:g}),y=[v&&(0,i.jsx)(l.Button,{label:t.getString("footer-privacy-policy",null,"Privacy Policy"),testId:"footer-privacy-policy",href:m,target:"_blank",rel:"noopener noreferrer",kind:"plain",as:"a",size:"xs"},"privacy"),b&&(0,i.jsx)(l.Button,{label:t.getString("footer-tos",null,"Terms"),testId:"footer-terms",href:g,target:"_blank",rel:"noopener noreferrer",kind:"plain",as:"a",size:"xs"},"terms")];return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.SeparatorList,{items:[x].concat(y).filter(e=>!!e),separator:"|"}),(0,i.jsxs)(o.lG,{headerStyle:"bordered",isOpen:n,onUserDismiss:()=>s(!1),children:[(0,i.jsx)(o.iX,{institution:{name:e.long_name,logo:e.logo_url},logoUrl:e.dao_website_flow_logo_nav_url}),(null==_?void 0:_.show_help_phone)&&d&&(0,i.jsxs)("div",{className:"margin--top--s fontWeight--semibold","data-testid":"footer-help-phone",children:[t.getString("footer-support-phone",null,"Call us:")," ",(0,i.jsx)("span",{className:"fontWeight--normal",children:d})]}),(null==_?void 0:_.show_help_email)&&c&&(0,i.jsxs)("div",{className:"margin--top--xs fontWeight--semibold","data-testid":"footer-help-email",children:[t.getString("footer-support-email",null,"Email us:")," ",(0,i.jsx)("a",{href:"mailto:".concat(c),target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("span",{className:"fontWeight--normal",children:c})})]})]})]})};var f=n(40489);let x=e=>{let{children:t,showDivider:n=!1,hideLogo:u=!1,hideFDICLogo:d=!1}=e,m=(0,s.useRouter)(),{institution:h}=(0,a.Xn)(),{s:x}
1=(0,l.useBreakpoints)(),{showLangSelect:v,localeCodes:b,localeNames:y,selectedLocale:j,setSelectedLocale:S}=(0,r.useContext)(c.k),N=!!h.dao_website_flow_logo_nav_url;return(0,i.jsxs)("div",{className:g()["app-background-layout"],children:[(0,i.jsxs)("div",{className:g()["top-section"],children:[(0,i.jsx)("div",{className:g()["header-container"],children:v&&(0,i.jsx)(o.T$,{localeCodes:b,localeNames:y,selectedLocale:j,onChange:e=>{S(e)},transparentBackground:!0,useMobileMenu:!x})}),(0,i.jsx)("div",{className:"".concat(g()["content-container"]," ").concat(u?g()["no-logo"]:""),children:(0,i.jsxs)(l.ResponsiveFlex,{direction:"column",gapSize:"xl",children:[!u&&(0,i.jsx)("div",{className:g()["logo-container"],children:(0,i.jsx)("a",{href:N?h.dao_website_flow_logo_nav_url:"/",target:N?"_blank":void 0,rel:N?"noopener noreferrer":void 0,"aria-label":"".concat(h.long_name," Logo"),children:(0,i.jsx)("img",{className:g()["logo-image"],src:h.logo_url,alt:"".concat(h.long_name," logo")})})}),(0,i.jsx)("div",{className:g()["contentCard-container"],children:(0,i.jsx)(l.ContentCard,{paddingSize:x?"l":"s",kind:n?"bordered":"elevated",children:n?(0,i.jsxs)(i.Fragment,{children:[r.Children.toArray(t)[0],(0,i.jsx)("div",{className:"".concat(g()["full-width-horizontal-divider"]," ").concat(x?g()["break-padding-l"]:g()["break-padding-s"])}),r.Children.toArray(t).slice(1)]}):t})},m.pathname)]})})]}),(0,i.jsxs)("div",{className:g()["footer-container"],children:[(0,i.jsx)(f.A,{}),(0,i.jsx)(p,{}),(0,i.jsx)(_,{hideFDICLogo:d})]})]})}}
1,40489:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(26514),l=n(89642),o=n(76715),s=n(24947),r=n.n(s);let a=e=>{var t;let{isBusiness:n}=e,{l10n:s}=(0,l.B2)(),{institution:a}=(0,o.A)();return(null==a||null==(t=a.features)?void 0:t.ao_use_landing_page_tftp_disclosure)?(0,i.jsx)("div",{className:"".concat(r()["footer-tftp-disclosure"]," ").concat(n?"".concat(r()["bao-footer-tftp-disclosure"]):""),children:s.getString("form-tftp-disclosure",null)}):null}},40953:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(26514),l=n(18134),o=n.n(l);let s=e=>{let{children:t}=e;return(0,i.jsx)("div",{className:o()["header-section"],children:(0,i.jsx)("h1",{className:"fontColor--heading fontWeight--bold fontFamily--body fontSize--l",children:t})})}},48135:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var i=n(67059),l=n(94264),o=n(26514),s=n(89642),r=n(11538),a=n(43644),c=n(39072),u=n(46225),d=n(75834),g=n(28634),m=n(40953),_=n(18134),h=n.n(_),p=n(93477),f=n(29250),x=n(64359),v=n(32250);let b={IMMIGRATING:"immigrating_to_us",WORK:"moving_to_us_for_work",STUDY:"moving_to_us_to_study",BUYING_PROPERTY:"buying_property_in_us",RECEIVING_INCOME:"receiving_income_from_property_in_us",FUNDS_INVESTED:"funds_invested_in_us",NONE_OF_ABOVE:"none_of_the_above"},y="Other",j=["CA","NJ","NY","TX","NV","WA","AZ"],S=x.x.filter(e=>j.includes(e.code)),N=e=>{let{displayText:t}=e;return(0,o.jsx)("div",{className:"margin--bottom--m fontWeight--semibold fontSize--m fontColor--heading","aria-label":t,children:(0,o.jsx)(f.A,{marginTopSize:"s",markdown:t,renderer:"span"})})},C=e=>{let{value:t,onChange:n,reasonValue:i,onReasonChange:l,stateValue:a,onStateChange:c,directorOrExecutiveOfficerValue:u,onDirectorOrExecutiveOfficerChange:g,foreignConsulateEmployeeValue:m,onForeignConsulateEmployeeChange:_}=e,{l10n:h}=(0,s.B2)(),p=(0,d.useCallback)(e=>n(e.target.value),[n]),f=(0,d.useCallback)(e=>null==g?void 0:g(e.target.value),[g]),x=(0,d.useCallback)(e=>null==_?void 0:_(e.target.value),[_]),j={[h.getString("eligibility-citizenship-us-citizen",null,"U.S. Citizen")]:v.zD,[h.getString("eligibility-citizenship-us-permanent",null,"U.S. Permanent Resident")]:v.hr,[h.getString("eligibility-citizenship-non-permanent",null,"Non-permanent resident")]:v.Ix},C={[h.getString("eligibility-questions-answer-yes",null,"Yes")]:"Yes",[h.getString("eligibility-questions-answer-no",null,"No")]:"No"},w=[{value:b.IMMIGRATING,label:h.getString("eligibility-nonpermanent-reason-immigrating",null,"I am immigrating to the U.S.")},{value:b.WORK,label:h.getString("eligibility-nonpermanent-reason-work",null,"I am moving to the U.S. for work")},{value:b.STUDY,label:h.getString("eligibility-nonpermanent-reason-study",null,"I am moving to the U.S. to study")},{value:b.BUYING_PROPERTY,label:h.getString("eligibility-nonpermanent-reason-buying-property",null,"I am buying property in the U.S.")},{value:b.RECEIVING_INCOME,label:h.getString("eligibility-nonpermanent-reason-receiving-income",null,"I am receiving income from property in the U.S.")},{value:b.FUNDS_INVESTED,label:h.getString("eligibility-nonpermanent-reason-funds-invested",null,"I have or will have funds invested in the U.S.")},{value:b.NONE_OF_ABOVE,label:h.getString("eligibility-nonpermanent-reason-none",null,"None of the above")}],I=t===v.Ix,k=t===v.zD||t===v.hr;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"question","data-testid":"citizenship-status-question",children:[(0,o.jsx)(N,{displayText:h.getString("eligibility-citizenship-question",null,"What is your citizenship status?")}),(0,o.jsx)(r.RadioButtons,{name:v.jK,value:t,onChange:p,options:j})]}),k&&c&&(0,o.jsxs)("div",{className:"question","data-testid":"resident-state-question",children:[(0,o.jsx)(N,{displayText:h.getString("eligibility-resident-state-question",null,"What state do you live in?")}),(0,o.jsxs)(r.Select,{name:v.mu,label:h.getString("eligibility-resident-state-select-label",null,"Select"),value:a,onChange:c,children:[S.map(e=>(0,o.jsx)(r.Select.Item,{value:e.code,searchValue:e.name,children:e.name},e.code)),(0,o.jsx)(r.Select.Item,{value:y,searchValue:"Other",children:h.getString("eligibility-resident-state-other",null,"Other")},y)]})]}),k&&g&&(0,o.jsxs)("div",{className:"question","data-testid":"director-or-executive-officer-question",children:[(0,o.jsx)(N,{displayText:h.getString("eligibility-director-or-executive-officer-question",null,"Are you a Director or Executive Officer of CTBC Bank USA?")}),(0,o.jsx)(r.RadioButtons,{name:v.cZ,value:u,onChange:f,options:C})]}),I&&l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"question","data-testid":"foreign-consulate-employee-question",children:[(0,o.jsx)(N,{displayText:h.getString("eligibility-foreign-consulate-employee-question",null,"Are you a Foreign Consulate Employee?")}),(0,o.jsx)(r.RadioButtons,{name:v.yB,value:m,onChange:x,options:C})]}),"Yes"===m&&(0,o.jsx)("div",{className:"question",children:(0,o.jsx)(r.Alert,{isActive:!0,isDismissable:!1,kind:"error",children:h.getString("eligibility-foreign-consulate-employee-alert",null,"Please visit a branch for service. We can't open an application for you online.")})}),(0,o.jsxs)("div",{className:"question","data-testid":"nonpermanent-reason-question",children:[(0,o.jsx)(N,{displayText:h.getString("eligibility-nonpermanent-reason-question",null,"Which of the following applies to you?")}
1),(0,o.jsx)(r.Select,{name:v.uo,label:h.getString("eligibility-nonpermanent-reason-select-label",null,"Select"),value:i,onChange:l,children:w.map(e=>(0,o.jsx)(r.Select.Item,{value:e.value,searchValue:e.label,children:e.label},e.value))})]})]})]})};var w=n(360),I=n(96235),k=n(21214),E=n(19312);let A=()=>{var e,t,n;let _=(0,u.useRouter)(),{l10n:f}=(0,s.B2)(),{messages:x}=(0,k.A)(),{sendNotification:b}=(0,c.M)(),{application:j,setApplication:S,eligibilityQuestions:N,institution:A}=(0,p.Xn)(),{joinEligibilityQuestions:B,collectEligibilityAnswers:D,filterActiveFormData:q,verifyAnswers:z,getActiveQuestions:O}=(0,E.A)(),{formData:F,onChange:U}=(0,c.O1)(),R=(0,d.useMemo)(()=>{var e,t,n;return null!=(n=null==A||null==(t=A.features)||null==(e=t.enable_account_opening_flows)?void 0:e.includes(a.Wk.NONPERMANENT_RESIDENT))&&n},[null==A||null==(e=A.features)?void 0:e.enable_account_opening_flows]),T=null==(n=null==A||null==(t=A.features)?void 0:t.enable_citizenship_status_question)||n,V=R&&T;(0,d.useEffect)(()=>{j.eligibility_answers.length&&(null==N?void 0:N.length)&&U(B(j,N))},[j,N,U]);let W=async e=>{let t=O(N,F),n=q(F,N),l=F[v.jK],o=[v.zD,v.hr].includes(l),s="Yes"===F[v.yB],r=F[v.mu]===y,a=D(n,N),{isEligible:c,hasNonpermanentResidentAnswer:u}=z(n,N),d=V?l===v.Ix:R&&u,g=V?[v.jK,...o?[v.mu,v.cZ]:[],...d?[v.yB,v.uo]:[]]:[];if(t.some(e=>!F[e.id])||g.some(e=>!F[e]))return e(f.getString("eligibility-questions-toast-error",null,"Please answer all questions."));let m=V&&(s||r||o&&u);if(c&&!m){j.state=v.gI.CREATING,S(j);let e={eligibility_answers:a?JSON.stringify(a):""};return V&&(F[v.jK]&&(e.citizenship_status=F[v.jK]),F[v.uo]&&(e.nonpermanent_reason=F[v.uo]),F[v.cZ]&&(e.director_or_executive_officer=F[v.cZ]),F[v.mu]&&(e.resident_state=F[v.mu]),F[v.yB]&&(e.foreign_consulate_employee=F[v.yB])),S({state:v.gI.CREATING,has_non_permanent_resident:d,metadata:(0,i._)({},j.metadata,e.citizenship_status&&{citizenship_status:e.citizenship_status},e.nonpermanent_reason&&{nonpermanent_reason:e.nonpermanent_reason},e.director_or_executive_officer&&{director_or_executive_officer:e.director_or_executive_officer},e.resident_state&&{resident_state:e.resident_state},e.foreign_consulate_employee&&{foreign_consulate_employee:e.foreign_consulate_employee})}),_.push({pathname:d?"/consumer/nonpermanent_contact_info":"/consumer/contact_info",query:e})}return _.push("/not_eligible")};return(0,o.jsxs)(g.A,{showDivider:!0,children:[(0,o.jsx)(m.A,{children:(0,o.jsx)(s.Oj,{id:"header-eligibility-questions-new-landing-page",children:"Let's make sure you're eligible"})}),(0,o.jsx)("div",{className:"".concat(h()["content-section"]," ").concat(h()["padding-top-only"]),children:(0,o.jsxs)(I.A,{nativeForm:!1,data:F,onChange:U,messages:x,children:[(0,o.jsxs)(r.ResponsiveFlex,{direction:"column",children:[V&&(0,o.jsx)(C,{value:F[v.jK],onChange:e=>{let t=(0,l._)((0,i._)({},F),{[v.jK]:e});delete t[v.cZ],delete t[v.yB],[v.zD,v.hr].includes(e)||delete t[v.mu],e!==v.Ix&&delete t[v.uo],U(t)},reasonValue:F[v.uo],onReasonChange:e=>{U((0,l._)((0,i._)({},F),{[v.uo]:e}))},stateValue:F[v.mu],onStateChange:e=>{U((0,l._)((0,i._)({},F),{[v.mu]:e}))},directorOrExecutiveOfficerValue:F[v.cZ],onDirectorOrExecutiveOfficerChange:e=>{U((0,l._)((0,i._)({},F),{[v.cZ]:e}))},foreignConsulateEmployeeValue:F[v.yB],onForeignConsulateEmployeeChange:e=>{U((0,l._)((0,i._)({},F),{[v.yB]:e}))}}),N.map(e=>(0,o.jsx)(w.A,{question:e,useShadedContainer:!1,currentValue:F[e.id],formData:F},e.id))]}),(0,o.jsx)("div",{className:"padding--top--xl",style:{paddingBottom:"28px"},children:(0,o.jsx)(r.Button,{label:f.getString("label-next-eligibility",null,"Next"),size:"m",onClick:()=>W(e=>{b({type:"negative",text:e})}),dangerouslyDisableShowLoading:!0})})]})})]})}},53406:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/consumer/eligibility",function(){return n(48135)}])}},e=>{e.O(0,[5689,636,6593,8792],()=>e(e.s=53406)),_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.