import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconEnvelope {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '7ba93ee63f12e0eb1101c69a6856cbe1cd05a65b', class: "digi-icon-envelope", width: "26", height: "19", viewBox: "0 0 26 19", 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: '4744e32d8bcbbf4a8c5f759772f98be98583600d', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '7f611cd38ba76148a700e18ac69d041a1df5f5a6' }, this.afDesc), h("path", { key: 'b13573f73263bcecdb4ccc871e7b88ac1a1d7109', class: "digi-icon-envelope__shape", d: "M23.563 0H2.438C1.09 0 0 1.063 0 2.375v14.25C0 17.937 1.091 19 2.438 19h21.125C24.909 19 26 17.937 26 16.625V2.375C26 1.063 24.909 0 23.562 0zm0 2.375v2.019c-1.14.903-2.954 2.308-6.835 5.269-.855.655-2.55 2.23-3.728 2.212-1.179.018-2.873-1.557-3.728-2.212-3.88-2.96-5.696-4.365-6.835-5.269V2.375h21.125zM2.438 16.625V7.442c1.163.903 2.813 2.17 5.328 4.089 1.11.851 3.054 2.73 5.234 2.719 2.17.011 4.088-1.84 5.233-2.719a859.794 859.794 0 005.33-4.09v9.184H2.438z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-envelope"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-envelope.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-envelope.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": {}
        };
    }
}
