import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconImage {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '8aa13a98a9408930b263b118c5e8c639a84cd202', class: "digi-icon-image", width: "48", height: "48", viewBox: "0 0 48 48", "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: '57b283ef3e29ae2457d4361bb721f0f77218c71c', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '7906bf7346a518956b10411a2544d07216f5d2ea' }, this.afDesc), h("path", { key: 'fa0c04ed5cdb0203de4dd5db86e117019df96ec3', class: "digi-icon-image__shape", d: "M43.5,5.645833 L4.5,5.645833 C2.0146875,5.645833 0,7.6605205 0,10.145833 L0,37.145833 C0,39.6311455 2.0146875,41.645833 4.5,41.645833 L43.5,41.645833 C45.9853125,41.645833 48,39.6311455 48,37.145833 L48,10.145833 C48,7.6605205 45.9853125,5.645833 43.5,5.645833 Z M42.9375,37.145833 L5.0625,37.145833 C4.75183983,37.145833 4.5,36.8939932 4.5,36.583333 L4.5,10.708333 C4.5,10.3976728 4.75183983,10.145833 5.0625,10.145833 L42.9375,10.145833 C43.2481602,10.145833 43.5,10.3976728 43.5,10.708333 L43.5,36.583333 C43.5,36.8939932 43.2481602,37.145833 42.9375,37.145833 L42.9375,37.145833 Z M12,13.895833 C9.92896875,13.895833 8.25,15.5748018 8.25,17.645833 C8.25,19.7168643 9.92896875,21.395833 12,21.395833 C14.0710312,21.395833 15.75,19.7168643 15.75,17.645833 C15.75,15.5748018 14.0710312,13.895833 12,13.895833 Z M9,32.645833 L39,32.645833 L39,25.145833 L30.7954687,16.9413018 C30.3561562,16.5019893 29.6438437,16.5019893 29.2044375,16.9413018 L18,28.145833 L14.2954687,24.4413018 C13.8561562,24.0019893 13.1438437,24.0019893 12.7044375,24.4413018 L9,28.145833 L9,32.645833 Z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-image"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-image.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-image.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": {}
        };
    }
}
