import { UmbElementPropertyDatasetContext } from '../../../content/content/index.js';
import { createObservablePart } from '../../../../libs/observable-api/index.js';
export class UmbBlockElementPropertyDatasetContext extends UmbElementPropertyDatasetContext {
    constructor(host, elementManager, variantId) {
        // The controller alias, is a very generic name cause we want only one of these for this controller host.
        super(host, elementManager, variantId);
        // Ugly, but we just inherit these from the workspace context: [NL]
        this.name = elementManager.name;
        this.getName = elementManager.getName;
        this.culture = createObservablePart(elementManager.variantId, (v) => v?.culture);
        this.segment = createObservablePart(elementManager.variantId, (v) => v?.segment);
    }
}
