import { p as proxyCustomElement, H, h } from './p-a53686b3.js';
import { r as randomIdGenerator } from './p-ffe5c0e8.js';

const formFieldsetCss = ".sc-digi-form-fieldset-h{--digi--form-fieldset--padding:0;--digi--form-fieldset--border:none;--digi--form-fieldset--legend--font-weight:var(--digi--typography--description--font-weight--desktop);--digi--form-fieldset--legend--font-family:var(--digi--global--typography--font-family--default);--digi--form-fieldset--legend--font-size:var(--digi--typography--description--font-size--desktop);--digi--form-fieldset--legend--color:var(--digi--color--text--primary);--digi--form-fieldset--legend--margin:var(--digi--margin--h2-large)}.sc-digi-form-fieldset-h .digi-form-fieldset.sc-digi-form-fieldset{margin:0px;padding:var(--digi--form-fieldset--padding);border:var(--digi--form-fieldset--border)}.sc-digi-form-fieldset-h .digi-form-fieldset__legend.sc-digi-form-fieldset{font-weight:var(--digi--form-fieldset--legend--font-weight);font-family:var(--digi--form-fieldset--legend--font-family);font-size:var(--digi--form-fieldset--legend--font-size);color:var(--digi--form-fieldset--legend--color);margin-block-end:var(--digi--form-fieldset--legend--margin);padding:0px}";
const DigiFormFieldsetStyle0 = formFieldsetCss;

const FormFieldset = /*@__PURE__*/ proxyCustomElement(class FormFieldset extends H {
    constructor() {
        super();
        this.__registerHost();
        this.afLegend = undefined;
        this.afName = undefined;
        this.afForm = undefined;
        this.afId = randomIdGenerator('digi-form-fieldset');
    }
    render() {
        return (h("fieldset", { key: 'd8cfa4b3327565bd8c480783ffe63ec305347ea3', class: "digi-form-fieldset", name: this.afName, form: this.afForm, id: this.afId }, this.afLegend && (h("legend", { key: 'e625744d0d70e80ba53f55825c616d49a4b7b46c', class: "digi-form-fieldset__legend" }, this.afLegend)), h("slot", { key: '0ebfd14cb6e8c83a2aa9b5679909f529c9a3127a' })));
    }
    static get style() { return DigiFormFieldsetStyle0; }
}, [6, "digi-form-fieldset", {
        "afLegend": [1, "af-legend"],
        "afName": [1, "af-name"],
        "afForm": [1, "af-form"],
        "afId": [1, "af-id"]
    }]);
function defineCustomElement() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["digi-form-fieldset"];
    components.forEach(tagName => { switch (tagName) {
        case "digi-form-fieldset":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, FormFieldset);
            }
            break;
    } });
}

export { FormFieldset as F, defineCustomElement as d };
