@xsmusices/ui 1.44.24 → 1.44.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12001,6 +12001,8 @@ class XSAuthComponent {
12001
12001
  this.isFormValid = this.formGroup?.valid ?? false;
12002
12002
  }
12003
12003
  actionSocial(provider) {
12004
+ if (this.loading())
12005
+ return;
12004
12006
  this.onAction.emit({
12005
12007
  action: provider === 'google'
12006
12008
  ? 'socialLoginGoogle'
@@ -12008,6 +12010,8 @@ class XSAuthComponent {
12008
12010
  });
12009
12011
  }
12010
12012
  onEmailLogin() {
12013
+ if (this.loading())
12014
+ return;
12011
12015
  this.onAction.emit({
12012
12016
  action: 'loginEmail',
12013
12017
  data: {
@@ -12017,6 +12021,8 @@ class XSAuthComponent {
12017
12021
  });
12018
12022
  }
12019
12023
  onRegister() {
12024
+ if (this.loading())
12025
+ return;
12020
12026
  this.onAction.emit({
12021
12027
  action: 'registerEmail',
12022
12028
  data: {
@@ -12027,12 +12033,16 @@ class XSAuthComponent {
12027
12033
  });
12028
12034
  }
12029
12035
  onForgotPassword() {
12036
+ if (this.loading())
12037
+ return;
12030
12038
  this.onAction.emit({
12031
12039
  action: 'forgotPassword',
12032
12040
  data: { email: String(this.formModel?.['email'] ?? '') },
12033
12041
  });
12034
12042
  }
12035
12043
  onVerify2fa() {
12044
+ if (this.loading())
12045
+ return;
12036
12046
  const code = String(this.formModel?.['code'] ?? '').trim();
12037
12047
  if (code.length === 6) {
12038
12048
  this.onAction.emit({
@@ -12042,7 +12052,7 @@ class XSAuthComponent {
12042
12052
  }
12043
12053
  }
12044
12054
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12045
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSAuthComponent, isStandalone: true, selector: "xs-auth", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, isModal: { classPropertyName: "isModal", publicName: "isModal", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onAction: "onAction" }, host: { attributes: { "xs-auth-host": "" } }, ngImport: i0, template: "@if (!isModal()) {\n <div\n class=\"flex items-center justify-center min-h-screen px-4 bg-black\"\n >\n <div class=\"w-full max-w-md p-6 bg-black rounded-xl shadow-lg\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n </div>\n}\n\n@if (isModal()) {\n <div class=\"w-full\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n}\n\n<ng-template #contentTpl>\n @if (activeMode === 'home') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n </div>\n </div>\n }\n\n @if (showSocialButtons) {\n <div class=\"grid grid-cols-2 gap-4\">\n @if (showGoogleButton) {\n <xs-button\n [label]=\"texts.continueWithGoogleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'google', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('google')\"\n >\n </xs-button>\n }\n @if (showAppleButton) {\n <xs-button\n [label]=\"texts.continueWithAppleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'apple', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('apple')\"\n >\n </xs-button>\n }\n </div>\n\n <div class=\"w-full flex items-center justify-center my-8\">\n <span class=\"text-[9px] uppercase tracking-[0.4em] font-black text-white/40\">{{ texts.dividerText }}</span>\n </div>\n }\n\n @if (cfg.showEmail !== false) {\n <xs-button\n id=\"buttonSocial-enterWithEmail\"\n [label]=\"texts.continueWithEmailButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n layout=\"base\"\n [icon]=\"{ name: 'envelope', position: 'left' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n }\n\n @if (cfg.showRegister || cfg.showForgotPassword) {\n <div class=\"mt-10 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showRegister && cfg.showForgotPassword) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (activeMode === 'email') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"loginFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onEmailLogin()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n <xs-button\n id=\"button-login-auth\"\n [label]=\"texts.loginButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onEmailLogin()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [isFull]=\"true\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n\n @if (cfg.showForgotPassword || cfg.showRegister) {\n <div class=\"mt-8 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showForgotPassword && cfg.showRegister) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n\n @if (activeMode === 'register') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <xs-formly\n [fields]=\"registerFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onRegister()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <xs-button\n [id]=\"'register-form-submit'\"\n [label]=\"texts.registerButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onRegister()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <div class=\"flex items-center justify-center gap-2 text-sm text-gray-400\">\n {{ texts.hasAccountLink }}\n </div>\n <xs-button\n [label]=\"texts.loginTitle!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === 'forgotPassword') {\n <div>\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n @if (emailSent()) {\n <xs-alert\n type=\"success\"\n [title]=\"texts.emailSentTitle!\"\n [message]=\"texts.emailSentMessage!\"\n class=\"mb-6\"\n ></xs-alert>\n }\n\n @if (!emailSent()) {\n <xs-formly\n [fields]=\"forgotFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onForgotPassword()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <xs-button\n [label]=\"texts.sendResetButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onForgotPassword()\"\n customClass=\"mt-6\"\n ></xs-button>\n }\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === '2fa') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"twoFactorFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onVerify2fa()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n <xs-button\n id=\"button-2fa-verify\"\n [label]=\"texts.verifyButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onVerify2fa()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n </div>\n </div>\n </div>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: XSFormlyComponent, selector: "xs-formly", inputs: ["layout", "gridClass", "size", "fields", "model", "options"], outputs: ["modelChange", "submit", "formReady"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSAlertComponent, selector: "xs-alert", inputs: ["type", "title", "message", "actionText", "actionClass", "dismissible", "grouped", "date", "icon", "iconClass", "customClass"], outputs: ["action", "alertClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12055
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSAuthComponent, isStandalone: true, selector: "xs-auth", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, isModal: { classPropertyName: "isModal", publicName: "isModal", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onAction: "onAction" }, host: { attributes: { "xs-auth-host": "" } }, ngImport: i0, template: "@if (!isModal()) {\n <div\n class=\"flex items-center justify-center min-h-screen px-4 bg-black\"\n >\n <div class=\"w-full max-w-md p-6 bg-black rounded-xl shadow-lg\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n </div>\n}\n\n@if (isModal()) {\n <div class=\"w-full\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n}\n\n<ng-template #contentTpl>\n @if (activeMode === 'home') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n </div>\n </div>\n }\n\n @if (showSocialButtons) {\n <div class=\"grid grid-cols-2 gap-4\">\n @if (showGoogleButton) {\n <xs-button\n [label]=\"texts.continueWithGoogleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'google', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('google')\"\n >\n </xs-button>\n }\n @if (showAppleButton) {\n <xs-button\n [label]=\"texts.continueWithAppleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'apple', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('apple')\"\n >\n </xs-button>\n }\n </div>\n\n <div class=\"w-full flex items-center justify-center my-8\">\n <span class=\"text-[9px] uppercase tracking-[0.4em] font-black text-white/40\">{{ texts.dividerText }}</span>\n </div>\n }\n\n @if (cfg.showEmail !== false) {\n <xs-button\n id=\"buttonSocial-enterWithEmail\"\n [label]=\"texts.continueWithEmailButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n layout=\"base\"\n [icon]=\"{ name: 'envelope', position: 'left' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n }\n\n @if (cfg.showRegister || cfg.showForgotPassword) {\n <div class=\"mt-10 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showRegister && cfg.showForgotPassword) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (activeMode === 'email') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"loginFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onEmailLogin()\"\n class=\"space-y-4\"\n >\n <xs-button\n id=\"button-login-auth\"\n type=\"submit\"\n [label]=\"texts.loginButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [isFull]=\"true\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n\n @if (cfg.showForgotPassword || cfg.showRegister) {\n <div class=\"mt-8 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showForgotPassword && cfg.showRegister) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n\n @if (activeMode === 'register') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <xs-formly\n [fields]=\"registerFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onRegister()\"\n class=\"space-y-4\"\n >\n <xs-button\n [id]=\"'register-form-submit'\"\n type=\"submit\"\n [label]=\"texts.registerButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <div class=\"flex items-center justify-center gap-2 text-sm text-gray-400\">\n {{ texts.hasAccountLink }}\n </div>\n <xs-button\n [label]=\"texts.loginTitle!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === 'forgotPassword') {\n <div>\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n @if (emailSent()) {\n <xs-alert\n type=\"success\"\n [title]=\"texts.emailSentTitle!\"\n [message]=\"texts.emailSentMessage!\"\n class=\"mb-6\"\n ></xs-alert>\n }\n\n @if (!emailSent()) {\n <xs-formly\n [fields]=\"forgotFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onForgotPassword()\"\n class=\"space-y-4\"\n >\n <xs-button\n type=\"submit\"\n [label]=\"texts.sendResetButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n }\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === '2fa') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"twoFactorFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onVerify2fa()\"\n class=\"space-y-4\"\n >\n <xs-button\n id=\"button-2fa-verify\"\n type=\"submit\"\n [label]=\"texts.verifyButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n </div>\n </div>\n </div>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: XSFormlyComponent, selector: "xs-formly", inputs: ["layout", "gridClass", "size", "fields", "model", "options"], outputs: ["modelChange", "submit", "formReady"] }, { kind: "component", type: XSButtonComponent, selector: "xs-button", inputs: ["id", "label", "type", "icon", "action", "customClass", "variant", "layout", "badgeCount", "isFull", "disabled", "loading", "title", "ariaLabel", "borderRadius", "isGrouped", "groupPosition"], outputs: ["isGroupedChange", "groupPositionChange", "click", "onClick"] }, { kind: "component", type: XSAlertComponent, selector: "xs-alert", inputs: ["type", "title", "message", "actionText", "actionClass", "dismissible", "grouped", "date", "icon", "iconClass", "customClass"], outputs: ["action", "alertClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12046
12056
  }
12047
12057
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSAuthComponent, decorators: [{
12048
12058
  type: Component,
@@ -12052,7 +12062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImpo
12052
12062
  XSFormlyComponent,
12053
12063
  XSButtonComponent,
12054
12064
  XSAlertComponent,
12055
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!isModal()) {\n <div\n class=\"flex items-center justify-center min-h-screen px-4 bg-black\"\n >\n <div class=\"w-full max-w-md p-6 bg-black rounded-xl shadow-lg\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n </div>\n}\n\n@if (isModal()) {\n <div class=\"w-full\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n}\n\n<ng-template #contentTpl>\n @if (activeMode === 'home') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n </div>\n </div>\n }\n\n @if (showSocialButtons) {\n <div class=\"grid grid-cols-2 gap-4\">\n @if (showGoogleButton) {\n <xs-button\n [label]=\"texts.continueWithGoogleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'google', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('google')\"\n >\n </xs-button>\n }\n @if (showAppleButton) {\n <xs-button\n [label]=\"texts.continueWithAppleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'apple', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('apple')\"\n >\n </xs-button>\n }\n </div>\n\n <div class=\"w-full flex items-center justify-center my-8\">\n <span class=\"text-[9px] uppercase tracking-[0.4em] font-black text-white/40\">{{ texts.dividerText }}</span>\n </div>\n }\n\n @if (cfg.showEmail !== false) {\n <xs-button\n id=\"buttonSocial-enterWithEmail\"\n [label]=\"texts.continueWithEmailButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n layout=\"base\"\n [icon]=\"{ name: 'envelope', position: 'left' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n }\n\n @if (cfg.showRegister || cfg.showForgotPassword) {\n <div class=\"mt-10 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showRegister && cfg.showForgotPassword) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (activeMode === 'email') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"loginFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onEmailLogin()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n <xs-button\n id=\"button-login-auth\"\n [label]=\"texts.loginButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onEmailLogin()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [isFull]=\"true\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n\n @if (cfg.showForgotPassword || cfg.showRegister) {\n <div class=\"mt-8 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showForgotPassword && cfg.showRegister) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n\n @if (activeMode === 'register') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <xs-formly\n [fields]=\"registerFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onRegister()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <xs-button\n [id]=\"'register-form-submit'\"\n [label]=\"texts.registerButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onRegister()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <div class=\"flex items-center justify-center gap-2 text-sm text-gray-400\">\n {{ texts.hasAccountLink }}\n </div>\n <xs-button\n [label]=\"texts.loginTitle!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === 'forgotPassword') {\n <div>\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n @if (emailSent()) {\n <xs-alert\n type=\"success\"\n [title]=\"texts.emailSentTitle!\"\n [message]=\"texts.emailSentMessage!\"\n class=\"mb-6\"\n ></xs-alert>\n }\n\n @if (!emailSent()) {\n <xs-formly\n [fields]=\"forgotFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onForgotPassword()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <xs-button\n [label]=\"texts.sendResetButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onForgotPassword()\"\n customClass=\"mt-6\"\n ></xs-button>\n }\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === '2fa') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"twoFactorFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onVerify2fa()\"\n class=\"space-y-4\"\n ></xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n <xs-button\n id=\"button-2fa-verify\"\n [label]=\"texts.verifyButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n (onClick)=\"onVerify2fa()\"\n customClass=\"mt-6\"\n ></xs-button>\n\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n </div>\n </div>\n </div>\n }\n</ng-template>\n" }]
12065
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!isModal()) {\n <div\n class=\"flex items-center justify-center min-h-screen px-4 bg-black\"\n >\n <div class=\"w-full max-w-md p-6 bg-black rounded-xl shadow-lg\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n </div>\n}\n\n@if (isModal()) {\n <div class=\"w-full\">\n <ng-container [ngTemplateOutlet]=\"contentTpl\"></ng-container>\n </div>\n}\n\n<ng-template #contentTpl>\n @if (activeMode === 'home') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n </div>\n </div>\n }\n\n @if (showSocialButtons) {\n <div class=\"grid grid-cols-2 gap-4\">\n @if (showGoogleButton) {\n <xs-button\n [label]=\"texts.continueWithGoogleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'google', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('google')\"\n >\n </xs-button>\n }\n @if (showAppleButton) {\n <xs-button\n [label]=\"texts.continueWithAppleButton!\"\n variant=\"social\"\n [isFull]=\"true\"\n layout=\"social\"\n [icon]=\"{ name: 'apple', prefix: 'fab', position: 'left', customClass: 'text-4xl' }\"\n [loading]=\"loading()\"\n (onClick)=\"actionSocial('apple')\"\n >\n </xs-button>\n }\n </div>\n\n <div class=\"w-full flex items-center justify-center my-8\">\n <span class=\"text-[9px] uppercase tracking-[0.4em] font-black text-white/40\">{{ texts.dividerText }}</span>\n </div>\n }\n\n @if (cfg.showEmail !== false) {\n <xs-button\n id=\"buttonSocial-enterWithEmail\"\n [label]=\"texts.continueWithEmailButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n layout=\"base\"\n [icon]=\"{ name: 'envelope', position: 'left' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n }\n\n @if (cfg.showRegister || cfg.showForgotPassword) {\n <div class=\"mt-10 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showRegister && cfg.showForgotPassword) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (activeMode === 'email') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"loginFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onEmailLogin()\"\n class=\"space-y-4\"\n >\n <xs-button\n id=\"button-login-auth\"\n type=\"submit\"\n [label]=\"texts.loginButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [isFull]=\"true\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n\n @if (cfg.showForgotPassword || cfg.showRegister) {\n <div class=\"mt-8 flex items-center justify-center gap-3 w-full\">\n @if (cfg.showForgotPassword) {\n <xs-button\n (onClick)=\"changeMode('forgotPassword')\"\n [label]=\"texts.forgotPasswordLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n @if (cfg.showForgotPassword && cfg.showRegister) {\n <span class=\"w-1 h-1 bg-zinc-800 rounded-full\"></span>\n }\n @if (cfg.showRegister) {\n <xs-button\n (onClick)=\"changeMode('register')\"\n [label]=\"texts.registerLinkText\"\n layout=\"mini\"\n variant=\"custom\"\n customClass=\"text-[9px] uppercase tracking-widest font-bold text-zinc-400 hover:text-white transition-colors duration-500\"\n />\n }\n </div>\n }\n </div>\n </div>\n </div>\n }\n\n @if (activeMode === 'register') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <xs-formly\n [fields]=\"registerFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onRegister()\"\n class=\"space-y-4\"\n >\n <xs-button\n [id]=\"'register-form-submit'\"\n type=\"submit\"\n [label]=\"texts.registerButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <div class=\"flex items-center justify-center gap-2 text-sm text-gray-400\">\n {{ texts.hasAccountLink }}\n </div>\n <xs-button\n [label]=\"texts.loginTitle!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === 'forgotPassword') {\n <div>\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n @if (emailSent()) {\n <xs-alert\n type=\"success\"\n [title]=\"texts.emailSentTitle!\"\n [message]=\"texts.emailSentMessage!\"\n class=\"mb-6\"\n ></xs-alert>\n }\n\n @if (!emailSent()) {\n <xs-formly\n [fields]=\"forgotFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onForgotPassword()\"\n class=\"space-y-4\"\n >\n <xs-button\n type=\"submit\"\n [label]=\"texts.sendResetButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n }\n\n <div class=\"flex flex-col gap-2 mt-6\">\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n </div>\n </div>\n }\n\n @if (activeMode === '2fa') {\n <div class=\"space-y-6\">\n @if (title && showTitleValue) {\n <div class=\"relative px-4\">\n <div class=\"flex flex-col items-center justify-center\">\n <h2 class=\"mt-4 text-xl font-bold text-white\">{{ title }}</h2>\n @if (subtitle) {\n <p class=\"mt-1 text-sm text-center text-gray-400\">{{ subtitle }}</p>\n }\n </div>\n </div>\n }\n\n <div>\n <xs-formly\n [fields]=\"twoFactorFields\"\n [model]=\"formModel\"\n (modelChange)=\"onFormChange($event)\"\n (formReady)=\"onFormReady($event)\"\n (submit)=\"onVerify2fa()\"\n class=\"space-y-4\"\n >\n <xs-button\n id=\"button-2fa-verify\"\n type=\"submit\"\n [label]=\"texts.verifyButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n [loading]=\"loading()\"\n [disabled]=\"!isFormValid\"\n customClass=\"mt-6\"\n ></xs-button>\n </xs-formly>\n\n <div class=\"flex flex-col gap-3\">\n\n <xs-button\n [label]=\"texts.backToLoginLink!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('email')\"\n ></xs-button>\n\n @if (cfg.defaultMode === 'home') {\n <xs-button\n [label]=\"texts.backButton!\"\n variant=\"primary\"\n [isFull]=\"true\"\n [layout]=\"'between'\"\n [icon]=\"{ name: 'chevron-right' }\"\n (onClick)=\"changeMode('home')\"\n ></xs-button>\n }\n </div>\n </div>\n </div>\n }\n</ng-template>\n" }]
12056
12066
  }], ctorParameters: () => [], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], isModal: [{ type: i0.Input, args: [{ isSignal: true, alias: "isModal", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], onAction: [{ type: i0.Output, args: ["onAction"] }] } });
12057
12067
 
12058
12068
  class XSScrollAreaComponent {