import * as i0 from '@angular/core';
import { inject, NgModule } from '@angular/core';
import { RouterModule, ROUTES } from '@angular/router';
import { A as AXM_AUTH_CONFIG_TOKEN, a as AXMAuthenticationTypes } from './acorex-modules-auth-acorex-modules-auth-D1GLmcE-.mjs';

function routesFacory() {
    const val = inject(AXM_AUTH_CONFIG_TOKEN);
    let routes = [];
    routes = [
        {
            path: 'login',
            loadComponent: () => {
                if ([
                    AXMAuthenticationTypes.UsernamePassword,
                    AXMAuthenticationTypes.EmailPassword,
                    AXMAuthenticationTypes.MobilePassword,
                ].includes(val.type)) {
                    return import('./acorex-modules-auth-password.component-DzWcZlfs.mjs').then((c) => c.AXPLoginPasswordComponent);
                }
                else {
                    return import('./acorex-modules-auth-password.component-DzWcZlfs.mjs').then((c) => c.AXPLoginPasswordComponent);
                }
            },
        },
    ];
    return routes;
}
class AXPSignInModule {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPSignInModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
    static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: AXPSignInModule, imports: [RouterModule] }); }
    static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPSignInModule, providers: [
            {
                provide: ROUTES,
                multi: true,
                useFactory: routesFacory,
            },
        ], imports: [RouterModule] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPSignInModule, decorators: [{
            type: NgModule,
            args: [{
                    imports: [RouterModule],
                    exports: [],
                    providers: [
                        {
                            provide: ROUTES,
                            multi: true,
                            useFactory: routesFacory,
                        },
                    ],
                }]
        }] });

export { AXPSignInModule };
//# sourceMappingURL=acorex-modules-auth-login.module-C3YVgPHp.mjs.map
