import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconShareAlt {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '0e2ea13caaf4cfe915ae3e9dd4e36811962b763b', class: "digi-icon-share-alt", width: "22", height: "26", viewBox: "0 0 22 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: 'c0eccfa2e6572e7387cb7fcbaab66da2ca1284b9', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '56459d8c419ea78d128b156fec942ac176d4cfd1' }, this.afDesc), h("path", { key: '5a97b462caed6c16e47ac30a807ae46995c71665', class: "digi-icon-share-alt__shape", d: "M17.286 16.25c-1.11 0-2.13.397-2.936 1.061l-5.033-3.253a5.066 5.066 0 000-2.116l5.033-3.253a4.598 4.598 0 002.936 1.061C19.889 9.75 22 7.567 22 4.875S19.89 0 17.286 0c-2.604 0-4.715 2.183-4.715 4.875 0 .363.04.718.112 1.058L7.65 9.186a4.598 4.598 0 00-2.936-1.061C2.111 8.125 0 10.308 0 13s2.11 4.875 4.714 4.875c1.11 0 2.13-.397 2.936-1.061l5.033 3.253a5.05 5.05 0 00-.112 1.058c0 2.692 2.111 4.875 4.715 4.875C19.889 26 22 23.817 22 21.125s-2.11-4.875-4.714-4.875z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-share-alt"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-share-alt.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-share-alt.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": {}
        };
    }
}
