1import{a as g}from"./chunk-FQJS5LDW.js";import"./chunk-QNL77YDP.js";import"./chunk-PHLZ3AAU.js";import"./chunk-M6TI2MTM.js";import"./chunk-DVYNXNTI.js";import{a as b}from"./chunk-4KBURNX4.js";import{d as c}from"./chunk-5HC4BW43.js";import"./chunk-B6STJHB2.js";import"./chunk-PWUAYS4F.js";import"./chunk-YJKRYWMV.js";import"./chunk-ZDR3KJJS.js";import{a as y}from"./chunk-KTIPPCE2.js";import"./chunk-IVJ2I5VN.js";import{$b as h,Cb as p,Ec as n,Hc as E,Zb as m,dc as f,ec as o,fc as i,mb as d,rc as C,sa as u,tc as T}from"./chunk-EN2B4KZW.js";import"./chunk-4KIXNS7N.js";function _(e,a){e&1&&(o(0,"p",2),n(1," The phone number you entered is the same as the phone number that is already associated with your account. Please try entering a new mobile phone number, resending the code, or contact Our Support Team by clicking \u201CContact Support\u201D below. "),i())}function k(e,a){if(e&1&&(o(0,"p",3),n(1),i()),e&2){let s=T();d(),E(" Please note that per our Terms & Conditions, you may only have one (1) ",s.brandNameFull,' account. The number you entered is already associated with an account. Please click "SIGN IN" below and you will be able to sign into your existing account. If you believe that you do not already have a ',s.brandNameFull," account, please contact our Support Team. ")}}function B(e,a){e&1&&(o(0,"p",4),n(1," We're sorry, but it appears that you already have an account. Please sign into that account. If you do not have another account, please contact our Support Team. "),i())}function D(e,a){e&1&&(o(0,"p",5),n(1," Oops, the verification code you entered is incorrect. Please try again or contact Our Support Team with any question. "),i())}function I(e,a){e&1&&(o(0,"p"),n(1,' You have requested too many new codes today. Please come back tomorrow to try again or contact Our Support Team by clicking "Contact Support" below. '),i())}function v(e,a){e&1&&(o(0,"p"),n(1,"An unexpected error occurred"),i())}var V=(()=>{class e{constructor(){this.dialogRef=u(y),this.data=u(b),this.brandNameFull=c.brandNameFull,this.zendeskTicketFormId=c.zendesk.ticketFormIds.fraud,this.titleText="Oops...Something went wrong",this.swapButtonPositions=!1,this.hideExitButton=!1,this.sameErrorCode="same",this.duplicateNumberErrorCode="duplicate",this.verificationErrorCode="verification",this.frequencyErrorCode="frequency",this.duplicateAccountErrorCode="closed",this.supportLinkTestID="mobile-verification-error-dialog-support-link",this.data.errorCode===this.sameErrorCode?(this.otherButtonText="RESEND CODE",this.otherButtonTestID="mobile-verification-error-dialog-resend-code-button"):(this.data.errorCode===this.duplicateNumberErrorCode||this.data.errorCode===this.duplicateAccountErrorCode)&&(this.otherButtonText="SIGN IN",this.otherButtonTestID="mobile-verification-error-dialog-sign-in-button",this.zendeskTicketFormId=c.zendesk.ticketFormIds.accountCreationOrLoginIssue,this.swapButtonPositions=!0,this.hideExitButton=!0,this.titleText=this.data.errorCode===this.duplicateAccountErrorCode?"EXISTING ACCOUNT DETECTED":"EXISTING ACCOUNT ALERT")}exitButtonClicked(){this.dialogRef.close({clickedActionButton:!1})}otherButtonClicked(){this.dialogRef.close({clickedActionButton:!0})}static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275cmp=p({type:e,selectors:[["app-mobile-verification-error-dialog"]],decls:8,vars:8,consts:[[3,"exitButtonClick","otherButtonClick","titleText","swapButtonPositions","hideExitButton","zendeskTicketFormId","otherButtonText","otherButtonTestID","supportLinkTestID"],[1,"max-w-500px","text-dark","font-weight-bold"],["data-testid","mobile-verify-same-code-error"],["data-testid","mobile-verify-duplicate-number-error"],["data-testid","mobile-verify-duplicate-account-error"],["data-testid","mobile-verify-verification-error"]],template:function(l,t){if(l&1&&(o(0,"app-platypus-support-dialog",0),C("exitButtonClick",function(){return t.exitButtonClicked()})("otherButtonClick",function(){return t.otherButtonClicked()}),o(1,"div",1),m(2,_,2,0,"p",2)(3,k,2,2,"p",3)(4,B,2,0,"p",4)(5,D,2,0,"p",5)(6,I,2,0,"p")(7,v,2,0,"p"),i()()),l&2){let r;f("titleText",t.titleText)("swapButtonPositions",t.swapButtonPositions)("hideExitButton",t.hideExitButton)("zendeskTicketFormId",t.zendeskTicketFormId)("otherButtonText",t.otherButtonText)("otherButtonTestID",t.otherButtonTestID)("supportLinkTestID",t.supportLinkTestID),d(2),h((r=t.data.errorCode)===t.sameErrorCode?2:r===t.duplicateNumberErrorCode?3:r===t.duplicateAccountErrorCode?4
1:r===t.verificationErrorCode?5:r===t.frequencyErrorCode?6:7)}},dependencies:[g],encapsulation:2,changeDetection:0})}}return e})();export{V as MobileVerificationErrorDialogComponent};
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.