import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class FileExport {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    prefix(id) {
        return this.titleId + '-' + id;
    }
    get labelledBy() {
        return this.afSvgAriaLabelledby
            ? this.afSvgAriaLabelledby
            : this.afTitle
                ? this.titleId
                : undefined;
    }
    render() {
        return (h("svg", { key: '743252dae989e8e633328aeb54108b94ebc67841', class: "digi-icon-file-export", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", "aria-labelledby": this.labelledBy, "aria-hidden": this.afSvgAriaHidden ? 'true' : 'false', xmlns: "http://www.w3.org/2000/svg" }, this.afTitle && h("title", { key: '76c75992017fdc1a51ff134d6a28d6c429cfd9b8', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: 'd27c988fb26c7771d79583adacbee83fdf912527' }, this.afDesc), h("g", { key: '087fd307daea2e4d5686d3526e807cf4760727fc', "clip-path": "url(#clip0_2337_458)" }, h("path", { key: 'c0e8bc0291965e2a28e662bfff609712475f161e', d: "M44.71 32.7946L37.0896 25.1786C36.4586 24.5478 35.382 24.9936 35.382 25.8848V30.2786H16.61C15.9438 30.2786 15.4082 30.8146 15.4082 31.4804V35.486C15.4082 36.1522 15.9436 36.6876 16.61 36.6876H35.382V41.0816C35.382 41.9726 36.4588 42.4184 37.0896 41.7876L44.71 34.1616C45.0858 33.7864 45.0858 33.1702 44.71 32.7948V32.7946Z", fill: "currentColor" }), h("path", { key: '2b0ac67450383b9182a3cd7a4615e8d084d80ac2', d: "M12.808 35.536V31.5304C12.808 29.6546 14.334 28.1286 16.2098 28.1286H33.2498V16.808H22.5398C21.5004 16.808 20.6498 15.922 20.6498 14.8392V3.68298H4.89977C3.85237 3.68298 3.00977 4.56078 3.00977 5.65178V43.7142C3.00977 44.8052 3.85237 45.683 4.89977 45.683H31.3598C32.4072 45.683 33.2498 44.8052 33.2498 43.7142V38.9376H16.2098C14.334 38.9376 12.808 37.4116 12.808 35.536Z", fill: "currentColor" }), h("path", { key: 'fa9f11f53feb99ea0474af0feab68bf08ad7b3f3', d: "M33.2499 13.6826C33.2499 13.1658 33.0529 12.6654 32.6987 12.2962L24.9889 4.25718C24.6347 3.88798 24.1543 3.68298 23.6503 3.68298H23.1699V14.183H33.2499V13.6826Z", fill: "currentColor" })), h("defs", { key: 'be6be88740538063c4c88a820dce4f3e7e9405ae' }, h("clipPath", { key: '854d7e285ce403e5655920fdb02d283a5d3fc05b' }, h("rect", { key: '535626451a40e5e9c0781c53e67e86ad23ca95f2', width: "41.9819", height: "42", fill: "currentColor", transform: "translate(3.00977 3.68298)" })))));
    }
    static get is() { return "digi-icon-file-export"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-file-export.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-file-export.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": "Title used by accessibility tools"
                        }],
                    "text": "Titel som anv\u00E4nds av hj\u00E4lpmedel"
                },
                "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": "Description used by accessibility tools"
                        }],
                    "text": "Beskrivning som anv\u00E4nds av hj\u00E4lpmedel"
                },
                "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": "Hide element for accesibility tools. Default is set to true."
                        }],
                    "text": "D\u00F6lj elementet f\u00F6r hj\u00E4lpmedel 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": "Refer element via id to define an accessible name."
                        }],
                    "text": "Referera till ett element via id f\u00F6r att definiera ett tillg\u00E4ngligt namn."
                },
                "getter": false,
                "setter": false,
                "attribute": "af-svg-aria-labelledby",
                "reflect": false
            }
        };
    }
    static get states() {
        return {
            "titleId": {}
        };
    }
}
