import { UmbBlockValueResolver, } from '../../block/block/index.js';
export class UmbRteBlockValueResolver extends UmbBlockValueResolver {
    async processValues(property, valuesCallback) {
        if (property.value) {
            return {
                ...property,
                value: {
                    ...property.value,
                    blocks: property.value?.blocks
                        ? await this._processValueBlockData(property.value.blocks, valuesCallback)
                        : undefined,
                },
            };
        }
        return property;
    }
    async processVariants(property, variantsCallback) {
        if (property.value) {
            return {
                ...property,
                value: {
                    ...property.value,
                    blocks: property.value?.blocks
                        ? await this._processVariantBlockData(property.value.blocks, variantsCallback)
                        : undefined,
                },
            };
        }
        return property;
    }
}
