import { UmbControllerBase } from '../../../../libs/class-api/index.js';
export class UmbConditionBase extends UmbControllerBase {
    #permitted = false;
    get permitted() {
        return this.#permitted;
    }
    set permitted(value) {
        if (value === this.#permitted)
            return;
        this.#permitted = value;
        this.#onChange(value);
    }
    #onChange;
    constructor(host, args) {
        super(host);
        this.config = args.config;
        this.#onChange = args.onChange;
    }
    destroy() {
        super.destroy();
        this.config = undefined;
        this.#onChange = undefined;
    }
}
