1"use strict";(globalThis.webpackChunkUniqueName_product_flows=globalThis.webpackChunkUniqueName_product_flows||[]).push([[8513,2215],{35142:(e,t,a)=>{a.d(t,{ZP:()=>d,b2:()=>c,h4:()=>u});var r=a(38491),i=a(28128),o=a(9611),n=a(81927),l=a(67294);const s="bold",m="color-text-supplementary";function c(e){let{title:t,subtitle:a,typographyVariant:c=r.bu.TitleThree,pVariant:u=r.bu.Subhead,weight:d=s,pColor:p=m,className:f}=e;return l.createElement(i.Z,{className:f},l.createElement(o.Z,{typographyVariant:c,weight:d},t),a&&l.createElement(i.Z,{marginTop:"large"},l.createElement(n.Z,{typographyVariant:u,color:p},a)))}function u(e){let{title:t,subtitle:a,typographyVariant:r,pVariant:c,weight:u=s,pColor:d=m,className:p,removeBottomMargin:f}=e;return l.createElement(i.Z,{className:p,marginBottom:f?void 0:"large"},l.createElement(o.Z,{typographyVariant:r,weight:u},t),a&&l.createElement(i.Z,{marginTop:"small"},l.createElement(n.Z,{typographyVariant:c,color:d},a)))}const d=window.isRufus?c:u},37716:(e,t,a)=>{a.d(t,{Z:()=>w});var r=a(28128),i=a(35006),o=a(81927),n=a(38491),l=a(33175),s=a(3867),m=a(57199),c=a(35142),u=a(35202),d=a(13625),p=a(85831),f=a(32784),y=a(26086),Z=a(5737),b=a(80340),g=a(87612),E=a(62010),h=a(67294);const N="confirmed-pii-form",C=(0,Z.Rn)(N);(0,E.v)();const w=function(e){let{bodyCopy:t,ctaCopy:a,headerCopy:E,onSubmit:w,piiConfirmationError:S,privacyPolicyCopy:T,requestedFields:v,initialFirstName:B="",initialLastName:F=""}=e;const V=(0,Z.sP)(),P=(0,Z.MV)(),R=(0,l.Z)(),{countryCode:O}=R,U="US"===O;return(0,h.useEffect)((()=>{(0,b.Kd)("confirmed-pii")}),[]),h.createElement(r.Z,{className:y.Z.container,"data-testid":"pii-confirmation-container"},S&&h.createElement(r.Z,{marginBottom:"medium"},h.createElement(i.Z,{attitude:i.Z.Enums.Attitude.Negative,"data-testid":"pii-confirmation-error-message"},h.createElement(i.Z.Emphasis,null,h.createElement(s.Z,{copy:S})))),h.createElement(r.Z,null,window.isRufus&&h.createElement(g.Z,null),h.createElement(c.ZP,{title:h.createElement(s.Z,{copy:E}),subtitle:h.createElement(s.Z,{copy:t})}),h.createElement(m.Z,{defaultValues:{firstName:B,lastName:F,suffix:"",middleName:"",dateOfBirth:"",fullSsn:""},formName:N,onSubmit:e=>{const t=(0,f.Nl)(e.dateOfBirth,R);V(C.SUBMITTED),w(Object.assign({},e,{dateOfBirth:t}))},submitButtonText:h.createElement(s.Z,{copy:a}),onSubmitClick:()=>P(C.ATTEMPTED),onError:()=>P(C.ERROR)},(e=>{let{control:t,errors:a}=e;return h.createElement(h.Fragment,null,v.name&&h.createElement(d.Z,{"data-testid":"name-field",formName:N,control:t}),v.dob&&h.createElement(u.Z,{formName:N,name:"dateOfBirth",control:t,"data-testid":"dob-field"}),v.ssn&&U&&h.createElement(p.Z,{"data-testid":"full-ssn-field",control:t,formName:N,errors:a}),h.createElement(r.Z,{marginBottom:"x-large"},h.createElement(o.Z,{typographyVariant:window.isRufus?n.bu.Subhead:void 0},h.createElement(s.Z,{copy:T}))))}))))}},84654:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p,mapDispatchToProps:()=>u,mapStateToProps:()=>c,mergeProps:()=>d});var r=a(84432),i=a(89845),o=a(62139),n=a(43733),l=a(7181),s=a(50558),m=a(37716);const c=e=>{const t=(0,l.R)("currentStep",e.orchestrator),a=(0,l.R)(t,e.orchestrator),{firstName:r,lastName:i}=(0,l.R)("globalData",e.orchestrator).savedFields||{},o=a?.data?.flow_copy;return{isFullPageFromComponent:(0,n.Cj)(t),bodyCopy:o?.body,ctaCopy:o?.cta,headerCopy:o?.header,piiConfirmationError:a?.error?.message,privacyPolicyCopy:o?.privacy_policy,requestedFields:a?.data?.fields,submitUrl:a?.actions?.submit_pii_confirmation?.path,initialFirstName:r,initialLastName:i}},u=e=>({onSubmitDispatch:t=>{let{firstName:a,lastName:r,suffix:i,dateOfBirth:n,fullSsn:l,submitUrl:s,requestedFields:m}=t;if(m?.name&&a&&r&&(e((0,o.Zg)(["name","first"],a)),e((0,o.Zg)(["name","last"],r)),i&&e((0,o.Zg)(["name","suffix"],i))),m?.dob&&n&&e((0,o.Zg)(["dob"],n)),m?.ssn&&l){const t=l.replace(/[- )(]/g,"");e((0,o.Zg)(["ssn"],t))}e((0,o.$f)({submitUrl:s}))}}),d=(e,t)=>Object.assign({},e,t,{onSubmit:a=>{t.onSubmitDispatch(Object.assign({},a,{submitUrl:e.submitUrl,requestedFields:e.requestedFields}))}}),p=(0,s.$j)(c,u,d)((0,i.Z)((0,r.Z)(m.Z)))}}]);
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.