import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconStarReg {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: 'fc79ac4cccf2b7fa49b7e1da6e8b72606d7f414b', class: "digi-icon-star-reg", 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: '047b7242cd468b319538f0f871d2f1a863a90a2e', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'ed721faf6d7f24eeda293bb2aa507782a18597d9' }, this.afDesc), h("path", { key: 'cc628837f312fdf5f27f0a61050d2acdffb06108', class: "digi-icon-star-reg__shape", d: "M25.595 8.726l-7.36-1.078-3.29-6.697c-.589-1.194-2.296-1.209-2.89 0l-3.29 6.697-7.36 1.078c-1.32.192-1.848 1.826-.891 2.762l5.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-.891-2.762zm-7.027 7.122l1.193 7-6.261-3.302-6.261 3.303 1.193-7.001-5.067-4.957 7.002-1.022L13.5 3.495l3.133 6.374 7.002 1.022-5.067 4.957z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-star-reg"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-star-reg.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-star-reg.css"]
        };
    }
    static get properties() {
        return {
            "afTitle": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Adds a title element inside the svg"
                        }],
                    "text": "L\u00E4gger till ett titleelement i svg:n"
                },
                "getter": false,
                "setter": false,
                "attribute": "af-title",
                "reflect": false
            },
            "afDesc": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Adds a desc element inside the svg"
                        }],
                    "text": "L\u00E4gger till ett descelement i svg:n"
                },
                "getter": false,
                "setter": false,
                "attribute": "af-desc",
                "reflect": false
            },
            "afSvgAriaHidden": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Hides the icon for screen readers. Default is set to true."
                        }],
                    "text": "F\u00F6r att d\u00F6lja ikonen f\u00F6r sk\u00E4rml\u00E4sare. Default \u00E4r satt till true."
                },
                "getter": false,
                "setter": false,
                "attribute": "af-svg-aria-hidden",
                "reflect": false,
                "defaultValue": "true"
            },
            "afSvgAriaLabelledby": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Reference other elements on the page to define an accessible name."
                        }],
                    "text": "Referera till andra element p\u00E5 sidan f\u00F6r att definiera ett tillg\u00E4ngligt namn."
                },
                "getter": false,
                "setter": false,
                "attribute": "af-svg-aria-labelledby",
                "reflect": false
            }
        };
    }
    static get states() {
        return {
            "titleId": {}
        };
    }
}
