1"use strict";(globalThis.webpackChunkUniqueName_product_flows=globalThis.webpackChunkUniqueName_product_flows||[]).push([[7802],{61316:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(67294),o=r(12438),a=r(56807),i=r(43369);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=function(e){var t=e.children,r=e.error,l=e.label,u=e.onChange,c=e.placeholder,d=e.value,f=e.isRequired,p=void 0!==f&&f,m=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["children","error","label","onChange","placeholder","value","isRequired"]),h=""+(c||l),b=h+" "+(p?" *":"");return n.createElement(i.Z,s({rightIcon:o.Z,error:r,tag:"select",className:a.Z["input-field"],onChange:u,value:d,label:h,placeholder:h,isRequired:p,"aria-required":p},m),n.createElement("option",{value:"",disabled:!0},b),t)};l.Option=function(e){var t=e.children,r=e.value,o=e.disabled,a=void 0!==o&&o;return n.createElement("option",{value:r,disabled:a},t)},l.GroupOption=function(e){var t=e.children,r=e.label;return n.createElement("optgroup",{label:r},t)};const u=l},42926:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(67294),o=r(33175),a=r(43369);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=function(e){var t=e.value,r=void 0===t?"":t,s=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["value"]),l=(0,o.Z)(),u=l.formatMessage,c=l.formatPostalCode;return n.createElement(a.Z,i({},s,{value:r,formatInput:function(e){return c(e,{abbr:!0})},label:u({id:"components.inputs.zipInput.postalCodeLabel"})}))}},38990:(e,t,r)=>{r.d(t,{Z:()=>m,i:()=>f});var n=r(43369),o=r(8207),a=r(68438),i=r(99669),s=r(67294);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t=c(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}const f=e=>({required:e,validate:t=>{const r=t.split("@"),n=r[r.length-1];return Boolean(i.CU.test(t)&&!a.BAD_EMAIL_DOMAINS.includes(n))||e}});let p=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=u(this,t,[e])).state={email:e.initialEmail||"",error:""},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,(o=[{key:"setError",value:function(e){this.setState({error:e})}},{key:"setEmail",value:function(e){this.setState({email:e})}},{key:"validate",value:function(){const e=this.props.intl.formatMessage({id:"productFlows.components.common.emailField.invalidEmailAddress.error.text"}),{errorMessage:t=e}=this.props,{email:r}=this.state,n=!0===f(t).validate(r);return n||this.setError(t),{values:n?{email:r}:{},isValid:n}}},{key:"render",value:function(){const{error:e,email:t}=this.state,{formName:r="",label:o,intl:a,flowCopy:i}=this.props,l=r&&`${r}-email`;return s.createElement(n.Z,{isRequired:!0,"data-testid":"email-field","data-tracking-event":"user_typed_email","data-nid-target":l,error:e,label:o||i?.email_placeholder?.value||a.formatMessage({id:"productFlows.components.c
1ommon.emailField.email.label"}),onChange:e=>{this.setEmail(e),this.setError("")},value:t,name:"email",autoComplete:"email",type:"email",isDisabled:this.props.isDisabled})}}])&&l(r.prototype,o),a&&l(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,a}(s.Component);const m=(0,o.Z)(p,{forwardRef:!0})},41313:(e,t,r)=>{r.d(t,{N:()=>c,Z:()=>f});var n=r(52893),o=r(9604),a=r(33175),i=r(62945),s=r(57199),l=r(38660),u=r(67294);const c={lastFourSsn:""},d=(e,t)=>({required:!!t&&e,pattern:{value:/^[0-9]{4}$/,message:e}});const f=function(e){let{name:t="lastFourSsn",control:r,formName:c,initialLastFourSsn:f,isRequired:p=!0,isDisabled:m,hasShowHideInput:h,trackInteractionData:b,label:g,placeholder:v,className:y,errorMessage:w}=e;const _=(0,a.Z)(),F=w||_.formatMessage({id:"productFlows.common.lastFourSsnField.invalidSsn.error.text"}),O=c&&`${c}-last-four-ssn`,k=(0,i.Em)({id:"productFlows.common.lastFourSsnField.ssn.label"}),S=g||_.formatMessage(window.isRufus?(0,i.Em)({id:"productFlows.rufus.common.lastFourSsnField.ssn.label"}):k);return"US"===_.countryCode?u.createElement(s.Z.Field,{name:t,control:r,rules:d(F,p),render:e=>{let{field:t,fieldState:{isDirty:r,error:a}}=e;return u.createElement(l.Z,{className:y,FormV2Field:n.Z,trackInteractionData:b,isDirty:r,isRequired:p,isShowHideInput:h,maxLength:4,"data-testid":"last-four-ssn-field","data-nid-target":O,error:a?.message,label:S,onChange:t.onChange,rightIcon:o.Z,value:f||t.value,isDisabled:m,placeholder:v})}}):null}},2414:(e,t,r)=>{r.r(t),r.d(t,{SignUpFormLegacyBridge:()=>k,default:()=>S,mapDispatchToProps:()=>F,mapStateToProps:()=>_,mergeProps:()=>O});var n=r(33175),o=r(8207),a=r(84432),i=r(89845),s=r(71479),l=r(62139),u=r(43733),c=r(4589),d=r(47222),f=r(56246),p=r(10268),m=r(40927),h=r(80340),b=r(7181),g=r(67294),v=r(50558);const y=["savedFields","rootFlow"];function w(){return w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}const _=e=>{const t=(0,b.R)("globalData",e.orchestrator)?.identity?.merchant?.isB2B,r=(0,b.R)(u.tL,e.orchestrator),n=r?.showFirstForm,o=r?.error?.message,a=(0,b.R)("globalData",e.orchestrator)?.savedFields??{},i=(0,b.R)("globalData",e.orchestrator)?.identity?.rootFlow,s=(0,b.R)("globalData",e.orchestrator)?.identity?.subFlow,l=r?.actions?.submit_signup?.path??"",c=r?.actions?.back_to_phone_number?.path??"",d=r?.data?.fields_to_collect;return{savedFields:a,rootFlow:i,subFlow:s,showFirstForm:n,signUpError:o,submitUrl:l,backToSignInUrl:c,isB2B:t,showEmailField:!d||d.includes("EMAIL")}},F=(e,t)=>{const{intl:{countryCode:r,countryConfig:{links:n}}}=t,o=s.Q[r];return{goToSignInRequestDispatchFn:t=>e((0,l.$f)({submitUrl:t})),onSubmitDispatchFn:t=>{let{firstName:a,lastName:i,suffix:s,email:c,phoneNumber:d,dateOfBirth:f,lastFourSsn:m,fullSsn:b,marketingEmailOptInChecked:g,countryOfCitizenship:v,submitUrl:y}=t;const w=m?"ssn_last_4":"ssn",_=m||b,F=m?{lastFourSsn:m}:{fullSsn:b};(0,h.KZ)("verification_decision_reached"),e((0,l.Bq)(u.tL,{submitUrl:y,data:{},method:"POST",pollingConfig:{}})),e((0,l.QK)({isSignUp:!0,subStepBackground:u.tL,savedFields:Object.assign({firstName:a,lastName:i,suffix:s,email:c,phoneNumber:d,dateOfBirth:f,marketingEmailOptInChecked:g},o.lastFourNin&&F)})),e((0,l.Zg)(["first_name"],a)),e((0,l.Zg)(["last_name"],i)),e((0,l.Zg)(["suffix"],s)),c&&e((0,l.Zg)(["email"],c)),e((0,l.Zg)(["phone_number"],d)),e((0,l.Zg)(["dob"],f)),o.lastFourNin&&e((0,l.Zg)([w],_));const O=[{type:"tos",url:n.termsUrl,evidence:(0,p.IG)([`[data-testid="${p.VJ}"]`,`[data-testid="${p.hM}"]`,`[data-testid="${p.Q}"]`,`[data-testid="${p.DO}"]`]),evidence_type:"html"}];e((0,l.Zg)(["disclosures"],O)),e((0,l.Zg)(["is_personalized_services_active"],o.personalizedServices)),e((0,l.Zg)(["credit_disclosure_shown"],!0)),o.marketingEmailOptIn&&e((0,l.Zg)(["is_marketing_email_opt_in_checked"],g)),"GB"===r&&e((0,l.Zg)(["country_of_citizenship"],v)),e((0,l.$f)())}}},O=(e,t)=>Object.assign({},e,t,{goToSignIn:()=>{e.showEmailField?t.goToSignInRequestDispatchFn(e.backToSignInUrl):window.location.assign(f.vf)},onSubmit:r=>{t.onSubmitDispatchFn(Object.assign({},r,{showEmailField:e.showEmailField,submitUrl:e.submitUrl}))}});function k(e){let{savedFields:t,rootFlow:r}=e,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,y);const a=(0,n.Z)(),i=s.Q[a.countryCode];(0,g.useEffect)((()=>{try{performance.mark(c.Tw)}catch{}}),[]);const[l,u]=(0,g.useState)((()=>(0,m.qR)())),[f,p]=(0,g.useState)(Object.assign({},t,{dateOfBirth:i.formatDate(t.dateOfBirth??"")}));return(0,g.useEffect)((()=>
1{if((0,m.qR)()){(async()=>{const e=(await(0,m.rp)()).user_prefill_data;p((t=>({firstName:e.first_name,lastName:e.last_name,email:e.email,dateOfBirth:e.date_of_birth,phoneNumber:t.phoneNumber,initialAddress:{line1:e.address_line_1,line2:e.address_line_2,city:e.city,state:e.state,zipcode:e.zipcode},disableEmailField:Boolean(e.email)})))})().catch().finally((()=>u(!1)))}else u(!1)}),[]),g.createElement(d.Z,w({},o,{orchestration:"legacy",rootFlow:r,savedFields:f,supportsSsnCollection:void 0,isBackground:void 0,isLoading:l}))}const S=(0,o.Z)((0,v.$j)(_,F,O)((0,i.Z)((0,a.Z)(k,{fullPage:"identity"}))))},54445:(e,t,r)=>{r.d(t,{Ip:()=>l,St:()=>u,eX:()=>s});var n=r(58250),o=r(23722),a=r(32656),i=r(14723);function s(e){(0,i.h)(window.isRufus,"showGoBack should only be called for rufus"),n.Z.send("checkout","rufusUpdateNavbar",{left:"RufusLeftComponent"}),(0,a.jC)("goBack",e)}function l(){(0,i.h)(window.isRufus,"hideGoBack should only be called for rufus"),n.Z.send("checkout","rufusUpdateNavbar",{left:""}),(0,a.wq)("goBack")}function u(e){const t=o.t[e]||null,r=Object.assign({},t,{className:"rufusNav",left:""});"style"in r&&delete r.style,n.Z.send("checkout","rufusUpdateNavbar",r),(0,a.wq)("goBack")}}}]);
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.