import { UMB_APP_LANGUAGE_CONTEXT } from '../../global-contexts/app-language.context-token.js';
import { UmbConditionBase } from '../../../core/extension-registry/index.js';
export class UmbMultipleAppLanguageCondition extends UmbConditionBase {
    constructor(host, args) {
        super(host, args);
        this.consumeContext(UMB_APP_LANGUAGE_CONTEXT, (context) => {
            this.observe(context?.moreThanOneLanguage, (moreThanOneLanguage) => {
                this.permitted = moreThanOneLanguage ?? false;
            }, 'observeLanguages');
        });
    }
}
export const manifest = {
    type: 'condition',
    name: 'Multiple App Languages Condition',
    alias: 'Umb.Condition.MultipleAppLanguages',
    api: UmbMultipleAppLanguageCondition,
};
