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

const iconCalendarCss = ".sc-digi-icon-calendar-h{--digi--icon--color:var(--digi--color--icon--primary);--digi--icon--width:initial;--digi--icon--height:auto;display:flex;min-height:1.4em;align-items:center}.sc-digi-icon-calendar-h svg.sc-digi-icon-calendar{color:var(--digi--icon--color);max-width:var(--digi--icon--width);max-height:var(--digi--icon--height);width:var(--digi--icon--width, auto);height:var(--digi--icon--height, auto)}";
const DigiIconCalendarStyle0 = iconCalendarCss;

const IconCalendar = /*@__PURE__*/ proxyCustomElement(class IconCalendar extends H {
    constructor() {
        super();
        this.__registerHost();
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: 'd000e16733b8128d63c595055bbe2effc9c715b9', class: "digi-icon-calendar", width: "22", height: "26", viewBox: "0 0 22 26", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
                ? this.afSvgAriaLabelledby
                : this.afTitle
                    ? this.titleId
                    : undefined, xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '9e3b3c6cb1dfce5d6edbe6fb9b09331242825390', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '53210cfee511c1ab032233a1b91ad212882384d4' }, this.afDesc), h("path", { key: '6c17e00f308cb74e670155f586cc816243ee3d5d', class: "digi-icon-calendar__shape", d: "M.59 9.75h20.82c.325 0 .59.274.59.61v13.203C22 24.907 20.944 26 19.643 26H2.357C1.056 26 0 24.908 0 23.562V10.36c0-.335.265-.609.59-.609zM22 7.516V5.687c0-1.345-1.056-2.437-2.357-2.437h-2.357V.61a.601.601 0 00-.59-.61h-1.964a.601.601 0 00-.59.61v2.64H7.858V.61a.601.601 0 00-.59-.61H5.305a.601.601 0 00-.59.61v2.64H2.357C1.056 3.25 0 4.342 0 5.688v1.828c0 .335.265.609.59.609h20.82c.325 0 .59-.274.59-.61z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get style() { return DigiIconCalendarStyle0; }
}, [2, "digi-icon-calendar", {
        "afTitle": [1, "af-title"],
        "afDesc": [1, "af-desc"],
        "afSvgAriaHidden": [4, "af-svg-aria-hidden"],
        "afSvgAriaLabelledby": [1, "af-svg-aria-labelledby"],
        "titleId": [32]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["digi-icon-calendar"];
    components.forEach(tagName => { switch (tagName) {
        case "digi-icon-calendar":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, IconCalendar);
            }
            break;
    } });
}

const DigiIconCalendar = IconCalendar;
const defineCustomElement = defineCustomElement$1;

export { DigiIconCalendar, defineCustomElement };
