import { r as registerInstance, h, H as Host, g as getElement } from './index-ClISz4NF.js';
import { p as pick } from './utils-CQvUntGY.js';
import { S as Sizes } from './sizes-BcQO4NH2.js';
import { g as govHost } from './template-CoD1xawt.js';
import { v as validateProp } from './props-CJZgTDla.js';
import { a as AccordionClass, b as AccordionSizes } from './constants-DbTQsVRc.js';
import './gov.log-BtqD9K8d.js';

pick(Sizes, ['_S', '_M', '_L']);
var EmptyDirection;
(function (EmptyDirection) {
    EmptyDirection["HORIZONTAL"] = "horizontal";
    EmptyDirection["VERTICAL"] = "vertical";
})(EmptyDirection || (EmptyDirection = {}));
var EmptyAlign;
(function (EmptyAlign) {
    EmptyAlign["LEFT"] = "left";
    EmptyAlign["CENTER"] = "center";
    EmptyAlign["RIGHT"] = "right";
})(EmptyAlign || (EmptyAlign = {}));
const EmptyClass = {
    root: 'gov-empty',
    content: 'gov-empty__content',
};

const GovEmpty = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        /**
         * Element size.
         */
        this.size = 'm';
        /**
         * Element direction
         */
        this.direction = "vertical";
        /**
         * Element alignment.
         */
        this.align = "left";
        this.h = govHost(this.host);
    }
    validateSize(newValue) {
        validateProp(AccordionSizes, newValue, AccordionClass.root);
    }
    componentWillLoad() {
        this.validateSize(this.size);
    }
    render() {
        return (h(Host, { key: 'b10b9a2d6d7d3286826bf3499c4fdb6fc3a55361', class: this.h.classes(EmptyClass.root), size: this.size, direction: this.direction, align: this.align }, this.h.hasSlot('icon') && (h("slot", { key: '151be593361299a315d5ce16be9f7a082efedcdb', name: "icon" })), h("div", { key: '8661841ecf708b38c41aed696c696ea4a3719894', class: EmptyClass.content }, h("slot", { key: '9884110dc44f7401ba512d97ef080c444ac2ea71', name: "headline" }), h("slot", { key: '53080ae7c203f53e4393a5b2e5c05a5f5fc1ee9d' }))));
    }
    get host() { return getElement(this); }
    static get watchers() { return {
        "size": ["validateSize"]
    }; }
};

export { GovEmpty as gov_empty };
//# sourceMappingURL=gov-empty.entry.js.map

//# sourceMappingURL=gov-empty.entry.js.map