import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconEye {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '814c8275b1c52e57da006147b9201211404d4677', class: "digi-icon-eye", width: "29", height: "18", viewBox: "0 0 29 18", 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: '35247418f3375f89815e8dd27bc7ac8dae3df2ef', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '7bb7779b796235e0207f0ffe96461ae85e0c938a' }, this.afDesc), h("path", { key: 'a52a37f6b442f6cb2b9368936fca1d42bac779fd', class: "digi-icon-eye__shape", d: "M28.616 7.808C25.782 3.128 20.496 0 14.475 0 8.45 0 3.167 3.13.334 7.808a2.294 2.294 0 000 2.384C3.168 14.872 8.454 18 14.474 18c6.025 0 11.31-3.13 14.142-7.808a2.294 2.294 0 000-2.384zm-14.141 7.844C9.32 15.652 4.82 12.977 2.412 9c2.22-3.665 6.216-6.225 10.865-6.604.492.494.796 1.166.796 1.908 0 1.513-1.26 2.74-2.815 2.74-1.554 0-2.814-1.227-2.814-2.74v-.002c-.513.934-.804 2-.804 3.133 0 3.674 3.06 6.652 6.835 6.652s6.835-2.978 6.835-6.652a6.509 6.509 0 00-1.402-4.036C22.703 4.53 25.03 6.51 26.538 9c-2.409 3.977-6.909 6.652-12.063 6.652z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-eye"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-eye.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-eye.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": {}
        };
    }
}
