'use strict';

var index = require('./index-BEF5cZxd.js');
var utils = require('./utils-NnC78QR3.js');
var sizes = require('./sizes-D5zsw2g5.js');
var template = require('./template-Cj6PcLmR.js');
var props = require('./props-CPENhBnM.js');
var constants = require('./constants-WvkMgj1j.js');
require('./gov.log-C5EH15b_.js');

utils.pick(sizes.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) {
        index.registerInstance(this, hostRef);
        /**
         * Element size.
         */
        this.size = 'm';
        /**
         * Element direction
         */
        this.direction = "vertical";
        /**
         * Element alignment.
         */
        this.align = "left";
        this.h = template.govHost(this.host);
    }
    validateSize(newValue) {
        props.validateProp(constants.AccordionSizes, newValue, constants.AccordionClass.root);
    }
    componentWillLoad() {
        this.validateSize(this.size);
    }
    render() {
        return (index.h(index.Host, { key: 'b10b9a2d6d7d3286826bf3499c4fdb6fc3a55361', class: this.h.classes(EmptyClass.root), size: this.size, direction: this.direction, align: this.align }, this.h.hasSlot('icon') && (index.h("slot", { key: '151be593361299a315d5ce16be9f7a082efedcdb', name: "icon" })), index.h("div", { key: '8661841ecf708b38c41aed696c696ea4a3719894', class: EmptyClass.content }, index.h("slot", { key: '9884110dc44f7401ba512d97ef080c444ac2ea71', name: "headline" }), index.h("slot", { key: '53080ae7c203f53e4393a5b2e5c05a5f5fc1ee9d' }))));
    }
    get host() { return index.getElement(this); }
    static get watchers() { return {
        "size": ["validateSize"]
    }; }
};

exports.gov_empty = GovEmpty;
//# sourceMappingURL=gov-empty.entry.cjs.js.map

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