import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconBook {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: '49f19801d254aab30a8d4688f66e6547139c3993', class: "digi-icon-book", 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: '041006a54d4ba0c346d9acd1a2634bb8281ec31e', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '0ac4212d10b2d25a8737c02c1c23e18d57d421de' }, this.afDesc), h("path", { key: '23edabc6bfd04ecda2b51638466c019d46e06888', class: "digi-icon-book__shape", d: "M22 18.281V1.22C22 .543 21.475 0 20.821 0H4.714C2.112 0 0 2.184 0 4.875v16.25C0 23.816 2.112 26 4.714 26h16.107c.654 0 1.179-.543 1.179-1.219v-.812c0-.381-.172-.726-.437-.95-.206-.782-.206-3.011 0-3.793.265-.219.437-.564.437-.945zM6.286 6.805A.3.3 0 016.58 6.5h10.411a.3.3 0 01.295.305V7.82a.3.3 0 01-.295.305H6.581a.3.3 0 01-.295-.305V6.805zm0 3.25a.3.3 0 01.294-.305h10.411a.3.3 0 01.295.305v1.015a.3.3 0 01-.295.305H6.581a.3.3 0 01-.295-.305v-1.015zM18.729 22.75H4.714c-.869 0-1.571-.726-1.571-1.625 0-.894.707-1.625 1.571-1.625H18.73c-.093.868-.093 2.382 0 3.25z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-book"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-book.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-book.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": {}
        };
    }
}
