import { UmbConditionBase, umbExtensionsRegistry } from '../../../../core/extension-registry/index.js';
export class UmbUserAllowExternalLoginActionCondition extends UmbConditionBase {
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    constructor(host, args) {
        super(host, args);
        // Check if there are any MFA providers available
        this.observe(umbExtensionsRegistry.byType('authProvider'), (exts) => (this.permitted = exts.length > 0 && exts.some((ext) => ext.meta?.linking?.allowManualLinking)), '_userAllowExternalLoginActionConditionProviders');
    }
}
export { UmbUserAllowExternalLoginActionCondition as api };
