PageSourceSearch

https://cdn1.affirm.com/assets/product_flows/master/EmailVerification-d296dd4351b4a7f94259.js

js affirm.com collected 2026-09-24 08:26:25 UTC 22,197 bytes, 5 lines download raw bytes

1(globalThis.webpackChunkUniqueName_product_flows=globalThis.webpackChunkUniqueName_product_flows||[]).push([[3254],{8518:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Http:()=>f,affirmHttp:()=>h,client_capabilities_key:()=>l,header_auth_scopes_key:()=>c,header_client:()=>p,header_flow_ari_key:()=>m,header_flow_type_key:()=>d,header_session_key:()=>u,webux_encoded_capabilities:()=>s});var n=i(4054),a=i(362);const r=["headers"];function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}const l="Affirm-Client-Capabilities",s=btoa(JSON.stringify(["change_email","confirm_address","verify_ssn_last_4","confirm_pii","provide_previous_address","visa_virtual_cards","extended_victim_more_info","suggest_normalized_address","mfa_kba","mfa_email_pin","low_exposure_anywhere_terms","web_leak_mitigation","anywhere_checkout_autopay_default","duplicate_account_exception","aa_autopay_ach_available"])),c="Affirm-Authorization",u="AFF-UAT",m="Affirm-Flow-Ari",d="Affirm-Flow-Type",p="Aff
1irm-Client";let f=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.headers={Accept:"application/json","Content-Type":"application/json","Affirm-User-Agent":"Affirm-Web",[l]:s}},(t=[{key:"updateHeadersFromResponse",value:function(e){void 0===e&&(e=new Map);const t=e.get(c),i=e.get(u),n=e.get(m),a=e.get(d),r=e.get(p);t&&(this.headers[c]=t),i&&(this.headers[u]=i),r&&(this.headers[p]=r),"string"==typeof n&&(""===n?delete this.headers[m]:this.headers[m]=n),"string"==typeof a&&(""===a?delete this.headers[d]:this.headers[d]=a)}},{key:"updateHeaders",value:function(e){return void 0===e&&(e={}),Object.assign(this.headers,e)}},{key:"fetch",value:function(e,t){const{headers:i}=t,o=function(e,t){if(null==e)return{};var i,n,a={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(a[i]=e[i]);return a}(t,r),l=Object.assign({},this.headers,i||{}),s=Object.assign({credentials:"include",headers:l},o);return(0,n.default)(e,s).then((e=>{const t=e&&e.headers;return this.updateHeadersFromResponse(t),(0,a.trackAPI)(e.url,e.status),e})).catch((t=>{const i=window.Rollbar||window.affirm&&window.affirm.Rollbar,n=t.message||"no error message";(0,a.trackAPI)(e,void 0,`affirmFetch Failure in AffirmHttp - Error: ${n}`),i&&i.warn(`Network error fetching ${e}`,t)}))}}])&&o(e.prototype,t),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}();const h=new f},74446:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ie,mapDispatchToProps:()=>ee,mapStateToProps:()=>Y,mergeProps:()=>te});var n=i(4054),a=i(84432),r=i(89845),o=i(97026),l=i(62139),s=i(43733),c=i(28128),u=i(35006),m=i(33175),d=i(3867),p=i(72817),f=i(38069),h=i(26086),g=i(80340),E=i(87612),y=i(67294),w=(i(45697),i(52770)),_=i(20373),v=i(38491),k=i(9611),b=i(81927),V=i(43369),Z=i(26914),A=i(59258),C=i(62526),T=i(16021),U=i(13250),I=i(86933),x=i(8207),R=i(362),S=i(54445),N=i(84189),O=i(33189);function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(e,t,i){return t=z(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,i||[],z(e).constructor):t.apply(e,i))}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function L(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const{startEmailVerification:M,pollEmailVerificationStatus:J,resendEmailVerification:H,skipEmailVerification:$}=i(64902),{trackEmailVerificationCustomEvent:B,trackEmailVerificationDebugEvent:q}=i(71633),G=(0,w.zo)(_.Z)`
2  && {
3    font-weight: var(--font-weight-bold);
4  }
5`;let W=function(e){function t(){var e;F(this,t);for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return L(e=P(this,t,[].concat(n)),"state",{trouble:!1,changeEmailCount:0,resend_url:null,skip_url:null,initializing:!1,productTypeCopy:e.props.isAffirmAccount?"the Affirm signup process":e.props.productType,verification_url:null,loading:!1,changeEmail:!1,email:e.props.email,email_id:e.props.email_id}),L(e,"onChangeEmail",(t=>{e.setState({email:t.target.value})})),L(e,"onSkip",(()=>{q("Email Verification UI -- attempt to skip email verification"),e.poller&&e.poller.cancel&&e.poller.cancel(),e.setState({loading:!0}),$(e.state.skip_url).then((()=>
5{B("Email Verification UI -- skipping email verification"),e.setState({loading:!1}),e.done()})).catch((t=>{B("Email Verification UI -- unexpected error while skipping email verification",{errorMessage:t&&t.message}),e.done()}))})),L(e,"onUpdateEmail",(t=>{window.isRufus&&(0,R.trackUserInteraction)("Email Verification UI -- updating email",R.USER_ACTIONS.CLICK),q("Email Verification UI -- updating email"),t.preventDefault(),e.setState({initializing:!0,changeEmailCount:e.state.changeEmailCount+1}),e.props.updateEmail(e.state.email).then((t=>{const i=t.data?t:{data:t};B("Email Verification UI -- email update successful"),e.setState({changeEmail:!1,email:i.data.email.email,email_id:i.data.email.id}),e.restart()})).catch((t=>{B("Email Verification UI -- unexpected error while updating email",{errorMessage:t&&t.message}),e.props.showError(e.props.intl.formatMessage({id:"productFlows.components.identity.emailVerification.error"})),e.setState({initializing:!1,loading:!1}),e.leaveChangeEmail()}))})),L(e,"restart",(()=>{e.sendInitialVerification()})),L(e,"done",(()=>{e.poller&&e.poller.cancel&&e.poller.cancel(),e.props.onComplete()})),L(e,"sendInitialVerification",(()=>{e.poller&&e.poller.cancel&&e.poller.cancel(),e.setState({initializing:!0}),M(e.state.email_id,e.props.productType).then((t=>{"verification-already-complete-for-user"===t.code?(q("Email Verification UI -- verification already complete for user"),e.done()):"verification-attempts-exceeded-for-user"===t.code?(B("Email Verification UI -- verification attempts exceeded"),$(e.state.skip_url).then((()=>{B("Email Verification UI -- skipping email verification"),e.setState({loading:!1}),e.done()})).catch((t=>{B("Email Verification UI -- unexpected error while skipping email verification",{errorMessage:t&&t.message}),e.done()}))):(q("Email Verification UI -- verification started"),e.setState({initializing:!1,resend_url:t.resend_url,skip_url:t.skip_url,verification_url:t.verification_url,location:t.location},(()=>{e.startPolling()})))})).catch((t=>{B("Email Verification UI -- unexpected error initializing",{errorMessage:t&&t.message}),e.props.showError(e.props.intl.formatMessage({id:"productFlows.components.identity.emailVerification.error"})),e.done()}))})),L(e,"startPolling",(()=>{q("Email Verification UI -- start polling"),e.poller&&e.poller.cancel&&e.poller.cancel(),e.poller=J(e.state.location),e.poller.then((t=>{"verification-expired"===t.code?(q("Email Verification UI -- verification expired"),e.props.showError("Verification expired. Please try again."),e.restart()):(B("Email Verification UI -- verification awknowledged"),e.props.showNotification("Thanks for verifying your email address!"),e.done())})).catch((t=>{B("Email Verification UI -- unexpected error while polling",{errorMessage:t&&t.message}),e.props.showError(e.props.intl.formatMessage({id:"productFlows.components.identity.emailVerification.error"})),e.setState({initializing:!1,loading:!1,resend_url:null})}))})),L(e,"resendEmail",(()=>{window.isRufus&&(0,R.trackUserInteraction)("Email Verification UI -- send another email",R.USER_ACTIONS.CLICK),q("Email Verification UI -- send another email"),e.setState({loading:!0}),H(e.state.resend_url).then((t=>{e.props.showNotification("We just sent you another email"),"resend-attempts-exceeded-for-email"===t.code?(q("Email Verification UI -- resend attempts exceeded for email"),e.setState({initializing:!1,loading:!1,resend_url:null})):"resend-url-expired"===t.code?(q("Email Verification UI -- resend url expired -- trying again"),e.setState({trouble:!0,resend_url:t._links.resend.href},e.resendEmail)):(q("Email Verification UI -- resend successful"),e.setState({loading:!1,trouble:!0,resend_url:t.resend_url,skip_url:t.skip_url}))})).catch((t=>{B("Email Verification UI -- unexpected error while resending",{errorMessage:t&&t.message}),e.props.showError(e.props.intl.formatMessage({id:"productFlows.components.identity.emailVerification.error"})),e.setState({initializing:!1,loading:!1,resend_url:null})}))})),L(e,"goToChangeEmail",(()=>{window.isRufus&&(0,R.trackUserInteraction)("Email Verification UI 
5-- go to change email",R.USER_ACTIONS.CLICK),q("Email Verification UI -- go to change email"),e.setState({changeEmail:!0,email:"",trouble:!0})})),L(e,"leaveChangeEmail",(()=>{q("Email Verification UI -- leave to without changing email"),e.setState({changeEmail:!1,email:e.props.email})})),e}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),i=t,(n=[{key:"componentWillMount",value:function(){B("Email Verification UI -- starting email verification"),this.sendInitialVerification()}},{key:"componentDidUpdate",value:function(){window.isRufus&&(this.state.changeEmail?(0,S.eX)((()=>{this.leaveChangeEmail()})):(0,S.Ip)())}},{key:"render",value:function(){const e="sandbox"===window?.AFFIRM_CONFIG?.environment,t=window.isRufus&&!this.props.isRufusRefresh?v.bu.Subhead:void 0,i=()=>y.createElement("div",null,y.createElement(k.Z,{weight:"bold"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.editEmailAddress.title"})),y.createElement(c.Z,{marginTop:"small"},y.createElement(b.Z,{color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.editEmailAddress.subtext"}))),y.createElement(c.Z,{marginTop:"large"},y.createElement(V.Z,{value:this.state.email,onChange:e=>this.setState({email:e}),placeholder:this.props.intl.formatMessage({id:"productFlows.components.identity.emailVerification.editEmailAddress.address.placeholder"})}),y.createElement(c.Z,{marginTop:"large",className:(0,N.qe)().bottomSection},y.createElement(Z.Z,{fullWidth:!0,onClick:this.onUpdateEmail},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.editEmailAddress.cta.text"})),window.isRufus?y.createElement(O.Z,null):y.createElement(c.Z,{marginTop:"small"},y.createElement(Z.Z,{fullWidth:!0,emphasis:Z.Z.Enums.Emphasis.Tertiary,onClick:this.leaveChangeEmail},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.editEmailAddress.secondaryCta.text"})))))),n=()=>y.createElement("div",null,!window.isRufus&&y.createElement(c.Z,{marginTop:"xx-large"},y.createElement(T.Z,{size:U.J.Large,color:"color-icon-link"})),y.createElement(c.Z,{marginTop:!window.isRufus&&"large"},y.createElement(k.Z,{weight:"bold",typographyVariant:window.isRufus&&v.bu.TitleThree},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.mustSkip.title"}))),y.createElement(c.Z,{marginTop:"medium"},y.createElement(b.Z,{typographyVariant:window.isRufus&&!this.props.isRufusRefresh&&v.bu.TitleThree,color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.mustSkip.subtext"}))),y.createElement(c.Z,{marginTop:"large"},y.createElement(Z.Z,{onClick:this.onSkip,fullWidth:!0,disabled:this.state.loading,className:"must-skip-email-verification"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.mustSkip.cta.text"})))),a=()=>y.createElement("div",{className:"email-verification"+(this.props.isAmazonUk?" circular-loader-container":"")},y.createElement(C.Z,null));return this.state.initializing?a():this.state.changeEmail?i():this.state.resend_url||this.props.isAffirmAccount?(()=>{const i=y.createElement(A.Z,{typographyVariant:t,className:"skip-email-verification",onClick:this.onSkip},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.skipStepLink.text"})),n=!(!this.state.trouble||this.props.isAffirmAccount)&&y.createElement(c.Z,{marginTop:"medium",marginBottom:"medium"},y.createElement(b.Z,{color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.skipNotice",values:{skipNoticeLink:i}}))),a=y.createElement(A.Z,{typographyVariant:t,className:"change-email",onClick:this.goToChangeEmail},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.footer.withEditEmailOption.changeEmailLink.text"}
5)),r=y.createElement(A.Z,{typographyVariant:t,className:"resend-email",onClick:this.resendEmail},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.footer.withEditEmailOption.resendEmailLink.text"})),o=y.createElement("div",null,this.state.changeEmailCount>=2?y.createElement(b.Z,null,y.createElement(A.Z,{typographyVariant:t,className:"resend-email",onClick:this.resendEmail},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.footer.withResendEmailOption.resendEmailLink.text"}))):y.createElement(b.Z,{color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.footer.withEditEmailOption.text",values:{changeEmailLink:a,resendEmailLink:r}})),n,window.isRufus&&!this.props.isRufusRefresh&&y.createElement(c.Z,{marginTop:"large",className:(0,N.qe)().bottomSection},y.createElement(c.Z,null),y.createElement(O.Z,null)));return y.createElement("div",{"data-testid":"verify-email-content"},(!window.isRufus||this.props.isAmazonUk)&&y.createElement(c.Z,{marginTop:"xx-large"},y.createElement(T.Z,{size:U.J.Large,color:"color-icon-link"})),y.createElement(c.Z,{marginTop:(!window.isRufus||this.props.isAmazonUk)&&"large"},y.createElement(k.Z,{typographyVariant:window.isRufus&&v.bu.TitleThree,weight:"bold"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.verifyEmailAddress.title"}))),y.createElement(c.Z,{marginTop:"medium"},y.createElement(b.Z,{typographyVariant:t,color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.verifyEmailAddress.text",values:{email:this.props.isAmazonUk?y.createElement(G,null,this.state.email):this.state.email,productType:this.state.productTypeCopy}}))),y.createElement(c.Z,{marginTop:"medium"},y.createElement(b.Z,{typographyVariant:t,color:"color-text-supplementary"},y.createElement(I.Z,{id:"productFlows.components.identity.emailVerification.verifyEmailAddress.secondarySubtext"}))),e&&y.createElement(A.Z,{href:this.state.verification_url},"Click me to proceed"),y.createElement(c.Z,{marginTop:"medium"},o))})():n()}}])&&j(i.prototype,n),a&&j(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n,a}(y.Component);const X=(0,x.Z)(W);const K=function(e){let{email:t,emailId:i,isAffirmAccount:n,onComplete:a,productType:r,updateEmail:o,userId:l}=e;const[s,w]=(0,y.useState)(""),{countryCode:_}=(0,m.Z)(),v=(0,p.X)(),k=(0,f.A)();return(0,y.useEffect)((()=>{(0,g.Kd)("email-verification")}),[]),y.createElement(c.Z,{className:h.Z.container,"data-testid":"email-verification-container"},s&&y.createElement(c.Z,{marginBottom:"medium"},y.createElement(u.Z,{"data-testid":"email-verification-error",attitude:u.Z.Enums.Attitude.Negative},y.createElement(u.Z.Emphasis,null,y.createElement(d.Z,{copy:s})))),window.isRufus&&y.createElement(E.Z,null),y.createElement(X,{email:t,email_id:i,isAffirmAccount:n||"GB"===_,productType:r,onComplete:a,showError:e=>{w(e)},showNotification:()=>{},updateEmail:e=>o(l,e),isRufusRefresh:v,isAmazonUk:k}))};var Q=i(50558);const Y=e=>{const t=e.orchestrator.getIn(["globalData","identity","contextType"]),i="affirm_account"===t,n=e.orchestrator.getIn([s.NN,"data","user_ari"]),a=e.orchestrator.getIn([s.NN,"data","email_ari"]);return{email:e.orchestrator.getIn([s.NN,"data","email"]),emailId:a,isAffirmAccount:i,productType:t,submitUrl:e.orchestrator.getIn([s.NN,"actions","submit_email_verification","path"]),userId:n}},ee=e=>({onCompleteDispatch:t=>{let{submitUrl:i}=t;e((0,l.$f)({submitUrl:i}))},updateEmail:async(e,t)=>{const i=(0,o.Z)().getCombinedHeaders(),a=`/api/v2/users/${e}`;let r={body:JSON.stringify({email:t}),credentials:"include",headers:i,method:"PUT"};return await(0,n.default)(a,r),r={credentials:"include",headers:i,method:"GET"},(0,n.default)(`${a}?include_email_id=true`,r).then((e=>e.json()))}}),te=(e,t)=>Object.assign({},e,t,{onComplete:()=>{t.onCompleteDispatch({submitUrl:e.submitUrl})}}),ie=(0,Q.$j)(Y,ee,te)((0,r.Z)((0,a.Z)(K,{fullPage:"identity"})))},54445:(e,t,i)=>{"use strict";i.d(t,{Ip:()=>s,St:()=>c,eX:()=>l});var n=i(58250),a=i(23722),r=i(32656),o=i(14723);function l(e){(0,o.h)(window.isRufus,"showGoBack should only be called for rufus"),n.Z.send("checkout","rufusUpdateNavbar",{left
5:"RufusLeftComponent"}),(0,r.jC)("goBack",e)}function s(){(0,o.h)(window.isRufus,"hideGoBack should only be called for rufus"),n.Z.send("checkout","rufusUpdateNavbar",{left:""}),(0,r.wq)("goBack")}function c(e){const t=a.t[e]||null,i=Object.assign({},t,{className:"rufusNav",left:""});"style"in i&&delete i.style,n.Z.send("checkout","rufusUpdateNavbar",i),(0,r.wq)("goBack")}},22631:e=>{e.exports={timeout_limit:3e4,connection_issues_copy:{main:"Unable to reach Affirm",sub:"Please check your network connection and try again."},header_locale_key:"Affirm-Locale",header_request_key:"X-Affirm-Request-Id",poll_timeout_copy:{main:"Unable to reach Affirm",sub:"Please check your network connection and try again."}}},27535:(e,t,i)=>{const{tag:n,trackCustomEvent:a}=i(362),r=i(36794),o=i(81692),l=i(12909),s=i(97026).Z,c=i(4054).default,u=i(96624);o("Promise",u);const{header_session_key:m}=i(8518),{timeout_limit:d,connection_issues_copy:p,header_locale_key:f,header_request_key:h,poll_timeout_copy:g}=i(22631),E={checkout_ari:/\/[0-9A-Z]{16}/,user_ari:/\/([0-9A-Z]{4}-){2}[0-9A-Z]{4}/,transfer_ari:/\/[0-9A-Z]{6}-[0-9A-Z]{2}/,charge_ari:/\/[0-9A-Z]{4}-[0-9A-Z]{4}/,uuid:/\/[0-9a-z]{8}-([0-9a-z]{4}-){3}[0-9a-z]{12}/};const y={};function w(e){const t=e&&e.headers&&e.headers.get(m);return t&&(y[m]=t),e}function _(e,t,i,o){void 0===t&&(t={}),void 0===i&&(i=d);const l=s().getCombinedHeaders();delete l["Content-Type"];const f=o?.shouldRemoveAuthHeaders?fetch:c,g=r({method:"get",headers:r(o?.shouldRemoveAuthHeaders?{}:l,y),credentials:"same-origin"},t);function _(t){void 0===t&&(t={}),t&&t.headers&&n({[m]:t&&t.headers&&t.headers.get(m),[h]:t&&t.headers&&t.headers.get(h)});const i=g&&g.method&&g.method.toUpperCase()||"GET",r=String(t.status||"Error"),o=function(e){const[t]=e.split("?");return Object.keys(E).reduce(((e,t)=>e.replace(E[t],`/[${t}]`)),t)}(e);return a(`HTTP ${i} ${r} ${o}`),t}return(v=f(e,g),new u(((e,t)=>{v.then(e).catch(t)}))).catch((function(e){throw _(e)})).timeout(i).catch(Promise.TimeoutError,(function(){throw _({status:"Timeout",type:"timeout",data:{message:p}})})).then(_).then(w);var v}function v(e,t,i,n){return void 0===t&&(t={}),_(e,r({headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)},i))}window.isRufus&&(y["X-Affirm-AppType"]="rufus_user"),y[f]=l.getCurrentAffirmLocaleHeaderValue(),u.config({cancellation:!0}),e.exports={postJson:function(e,t,i){return v(e,t,{method:"post"})},post:function(e,t,i,n){return _(e,{method:"post",body:t},i,n)},get:function(e,t){return _(e,{},t)},delete:function(e,t){return _(e,{method:"delete"},t)},putJson:function(e,t,i){return v(e,t,{method:"put"})},put:function(e,t,i){return _(e,{method:"put",body:t},i)},toJson:function(e){return function(){const t=e.apply(null,arguments);return t.call("json").catch((e=>{throw e&&e.json&&e.json()||e}))}},poll:function e(t,i){void 0===i&&(i=[]);const n=t();return n.then((function(a){if(!n.isCancelled()){if(a)return a;if(i.length>0)return Promise.delay(i.shift()).then((function(){return e(t,i)}));throw{data:{message:g}}}}))},fetch:_}},64902:(e,t,i)=>{"use strict";i.r(t),i.d(t,{pollEmailVerificationStatus:()=>s,resendEmailVerification:()=>c,skipEmailVerification:()=>u,startEmailVerification:()=>l});var n=i(27535),a=i.n(n),r=i(71633);const o=function(e,t){const i=[];for(let n=0;n<t;n+=1)i.push(e);return i}(5e3,Math.round(120));function l(e,t){return(0,r.trackEmailVerificationDebugEvent)("Email Verification -- start verification",{emailId:e}),a().toJson(a().postJson)(`/client/v1/emails/${e}/verifications`,{product:t})}function s(e){return(0,r.trackEmailVerificationDebugEvent)("Email Verification -- poll"),a().poll((function(){return a().toJson(a().get)(e).then((function(e){if("pending"!==e.status)return(0,r.trackEmailVerificationDebugEvent)("Email Verification -- done polling"),!0;(0,r.trackEmailVerificationDebugEvent)("Email Verification -- poll again")}))}),o)}function c(e){return(0,r.trackEmailVerificationDebugEvent)("Email Verification -- resent"),a().toJson(a().post)(e)}function u(e){return(0,r.trackEmailVerificationDebugEvent)("Email Verification -- skip"),a().toJson(a().post)(e)}},71633:(e,t,i)=>{"use strict";i.r(t),i.d(t,{trackEmailVerificationCustomEvent:()=>a,trackEmailVerificationDebugEvent:()=>r});var n=i(362);function a(e,t){void 0===t&&(t={}),(0,n.trackEvent)(e),(0,n.trackCustomEvent)(e,t)}function r(e,t){void 0===t&&(t={}),(0,n.trackEvent)(e,t),(0,n.trackDebugEvent)(e,t)}}}]);

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.