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

const iconDxaCss = ".sc-digi-icon-dxa-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-dxa-h svg.sc-digi-icon-dxa{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 DigiIconDxaStyle0 = iconDxaCss;

const IconDxa = /*@__PURE__*/ proxyCustomElement(class IconDxa 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: 'c63473e7b6646eeb14d75c3402e70c391296a56d', class: "digi-icon-dxa", width: "24", height: "24", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', "aria-labelledby": this.afSvgAriaLabelledby
                ? this.afSvgAriaLabelledby
                : this.afTitle
                    ? this.titleId
                    : undefined }, this.afTitle && h("title", { key: '249eaa2aea33f9503b0cb267511bde7d65e22b9e', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'f199a56bfe6ee6e0bc3ce08c3875fb988cdbc837' }, this.afDesc), h("g", { key: 'eca40855a732afc34e4d6dc89f95c9e916bfa19c', class: "digi-icon-dxa__shape", fill: "currentColor", "fill-rule": "evenodd" }, h("path", { key: '7749703c3034f22b68f5677ef530a22da2c14c16', d: "M11.882 22.032c-.538.013-1.239.022-2.152.022-3.892 0-9.081-.649-9.081-.649S0 13.622 0 9.73C0 5.838.649.649.649.649S4.54 0 9.729 0c5.19 0 9.082.649 9.082.649s.648 5.189.648 9.08c0 1.064-.02 2.032-.05 2.877a6.486 6.486 0 00-1.895-.282 6.46 6.46 0 00-2.831.649H3.892v1.297h8.99c-.381.388-.713.824-.987 1.298H3.892v1.297h7.432a6.484 6.484 0 00-.297 1.946c0 1.172.311 2.272.855 3.221zm-1.504-14.41c0-.504.973-.811.973-2.086 0-.995-.648-1.644-1.621-1.644s-1.622.649-1.622 1.644c0 1.275.973 1.58.973 2.086 0 .162-.324.324-.649.486-1.297.649-1.621.973-1.621 1.654 0 .308 1.721.616 2.919.616 1.185 0 2.919-.308 2.919-.616 0-.68-.325-1.005-1.622-1.654-.324-.162-.649-.324-.649-.486z" }), h("path", { key: 'c353730755f7f784a866692ecef9e79f24e6ca70', d: "M21.867 17.082a4.54 4.54 0 11-.716-1.23l1.67-1.67.973.973-1.927 1.927zm0 0a4.536 4.536 0 00-.717-1.23l-3.843 3.843-1.946-1.946-.973.973 2.92 2.92 4.559-4.56z" }))));
    }
    static get style() { return DigiIconDxaStyle0; }
}, [2, "digi-icon-dxa", {
        "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-dxa"];
    components.forEach(tagName => { switch (tagName) {
        case "digi-icon-dxa":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, IconDxa);
            }
            break;
    } });
}

const DigiIconDxa = IconDxa;
const defineCustomElement = defineCustomElement$1;

export { DigiIconDxa, defineCustomElement };
