import { UMB_BLOCK_ENTRY_CONTEXT } from '../context/block-entry.context-token.js';
import { UmbConditionBase } from '../../../core/extension-registry/index.js';
const ObserveSymbol = Symbol();
export class UmbBlockEntryShowContentEditCondition extends UmbConditionBase {
    constructor(host, args) {
        super(host, args);
        this.consumeContext(UMB_BLOCK_ENTRY_CONTEXT, (context) => {
            this.observe(context?.showContentEdit, (showContentEdit) => {
                this.permitted = !!showContentEdit;
            }, ObserveSymbol);
        });
    }
}
export default UmbBlockEntryShowContentEditCondition;
