{"version":3,"file":"ErrorMessages.rFj5EZv0.js","sources":["../../../../../../app/helpers/ErrorMessages.ts"],"sourcesContent":["import { ErrorCode } from \"~/enum/ErrorCode\";\n\nexport default class ErrorMessages {\n static getMessage(code: ErrorCode): string {\n switch (code) {\n case ErrorCode.AuthenticationFailed:\n return \"The email and password you entered did not match our records. Please try again.\";\n case ErrorCode.UserAlreadyActivated:\n return \"There is an existing frontiers user account associated to the details given.\"\n case ErrorCode.InvalidVerificationCode:\n return \"Code is expired or not valid.\";\n case ErrorCode.AlreadyExistingAccount:\n return \"This email belongs to an existing account. Log in or use a different address to create a new account.\";\n case ErrorCode.UserSuspended:\n return \"This email belongs to a deactivated account. Reactivate your account by contacting our support team or use a different email address to create a new account.\"\n case ErrorCode.UserNotLinkedToTenant:\n return \"User is not linked to the tenant.\";\n case ErrorCode.ImpersonatedUser:\n return \"Operation forbidden while impersonating a user. Please quit the impersonation and try again.\";\n case ErrorCode.InvalidCaptcha:\n return \"Captcha validation failed. Please try again or refresh the page.\";\n default:\n return \"An error occurred.\";\n }\n }\n}"],"names":["ErrorMessages","code","ErrorCode"],"mappings":"wCAEA,MAAqBA,CAAc,CAC/B,OAAO,WAAWC,EAAyB,CACvC,OAAQA,EAAM,CACV,KAAKC,EAAU,qBACJ,MAAA,kFACX,KAAKA,EAAU,qBACJ,MAAA,+EACX,KAAKA,EAAU,wBACJ,MAAA,gCACX,KAAKA,EAAU,uBACJ,MAAA,wGACX,KAAKA,EAAU,cACJ,MAAA,gKACX,KAAKA,EAAU,sBACJ,MAAA,oCACX,KAAKA,EAAU,iBACJ,MAAA,+FACX,KAAKA,EAAU,eACJ,MAAA,mEACX,QACW,MAAA,oBACf,CACJ,CACJ"}