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

const iconStarCss = ".sc-digi-icon-star-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-star-h svg.sc-digi-icon-star{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 DigiIconStarStyle0 = iconStarCss;

const IconStar = /*@__PURE__*/ proxyCustomElement(class IconStar 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: '5ed953fa6dc0db12e0e73dce61e2f08f6d1340e8', class: "digi-icon-star", width: "27", height: "26", viewBox: "0 0 27 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: 'dc15c4ef31b09684abc0825661aef5d3aef9be2f', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'e946b1f663079d38abb500fedc06c28bb60dbc25' }, this.afDesc), h("path", { key: 'b8118ca4dc1a89e4cf6b40f8afcec5e566556160', class: "digi-icon-star__shape", d: "M12.03.901L8.74 7.598 1.38 8.676C.06 8.868-.468 10.502.49 11.438l5.324 5.21-1.26 7.36c-.226 1.33 1.17 2.326 2.338 1.704l6.584-3.475 6.584 3.475c1.168.617 2.564-.374 2.337-1.704l-1.26-7.36 5.325-5.21c.957-.936.428-2.57-.892-2.762l-7.36-1.078L14.922.901c-.59-1.194-2.297-1.209-2.892 0z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get style() { return DigiIconStarStyle0; }
}, [2, "digi-icon-star", {
        "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-star"];
    components.forEach(tagName => { switch (tagName) {
        case "digi-icon-star":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, IconStar);
            }
            break;
    } });
}

const DigiIconStar = IconStar;
const defineCustomElement = defineCustomElement$1;

export { DigiIconStar, defineCustomElement };
