import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class IconUpload {
    constructor() {
        this.afTitle = undefined;
        this.afDesc = undefined;
        this.afSvgAriaHidden = true;
        this.afSvgAriaLabelledby = undefined;
        this.titleId = randomIdGenerator('icontitle');
    }
    render() {
        return (h("svg", { key: 'a18ae976d9cc5da7bf309a260b12262b9e06699b', class: "digi-icon-upload", width: "48", height: "48", viewBox: "0 0 48 48", 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: '679bae846c2662809b40d0abfd2b8f7fe30a4372', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '24fdd045de38d286ad2fa8e3451dc93aa4458dcd' }, this.afDesc), h("path", { key: '7d792caa8708d6f557266afb6726c4686c0a5b5b', class: "digi-icon-upload__shape", d: "M15.66675,33 L15.66675,34.0725 C15.66675,37.25025 17.8515,38.208 19.01925,38.208 L28.971,38.208 C30.8475,38.14575 32.25,37.2645 32.25,34.0725 L32.25,33 L45.75,33 C46.9965,33 48,34.00275 48,35.25 L48,45.75 C48,46.9965 46.9965,48 45.75,48 L2.25,48 C1.00275,48 0,46.9965 0,45.75 L0,35.25 C0,34.00275 1.00275,33 2.25,33 L15.66675,33 Z M41,41 C39.9,41 39,41.9 39,43 C39,44.1 39.9,45 41,45 C42.1,45 43,44.1 43,43 C43,41.9 42.1,41 41,41 Z M35,41 C33.9,41 33,41.9 33,43 C33,44.1 33.9,45 35,45 C36.1,45 37,44.1 37,43 C37,41.9 36.1,41 35,41 Z M22.7062855,0.527625824 C23.4090366,-0.175875275 24.5625384,-0.175875275 25.2652895,0.527625824 L39.5438118,14.7956481 C40.7250636,15.9769 39.8903123,17.9929031 38.2223097,17.9929031 L29.9902969,17.9929031 L29.9902969,33.7429277 C29.9902969,34.9901797 28.9875453,35.9929312 27.7402933,35.9929312 L20.2402816,35.9929312 C18.9937797,35.9929312 17.9902781,34.9901797 17.9902781,33.7429277 L17.9902781,17.9929031 L9.76876526,17.9929031 C8.10001266,17.9929031 7.26526135,15.9769 8.4465132,14.7956481 Z", fill: "currentColor", "fill-rule": "nonzero" })));
    }
    static get is() { return "digi-icon-upload"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-upload.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-upload.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": {}
        };
    }
}
