import { h } from "@stencil/core";
import { randomIdGenerator } from "../../../global/utils/randomIdGenerator";
export class Paste {
    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: '5a7451bf3f803e5166eed1c212c969f47dcf501c', class: "digi-icon-paste", 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: '2628b700d5c09aec475295d0e0c18290650157fe', id: this.titleId }, this.afTitle), this.afDesc && h("desc", { key: '3c9855b58d8c311c0dfb3cb8af03332a7c17d773' }, this.afDesc), h("g", { key: '2a2cea6d897504d70fd76cb416c328ffaf6cf744', "clip-path": "url(#clip0_2337_612)" }, h("path", { key: 'd12df00fe5d2cde8ef1dd8efe7b8645bc7344470', d: "M43.3156 3.70789H21.126C20.2477 3.70789 19.541 4.47765 19.541 5.43457V11.318H19.9989C21.1238 11.318 22.2194 11.7874 23.0052 12.6059L27.8652 17.6686C28.6368 18.4721 29.0615 19.5334 29.0615 20.6569V21.1456V35.6508H43.3152C44.1386 35.6508 44.8112 34.9742 44.8921 34.1011C44.8972 34.0429 44.9002 33.9838 44.9002 33.9241V5.43457C44.9002 4.47765 44.1935 3.70789 43.3152 3.70789H43.3156ZM39.8108 8.34544C39.8108 9.2034 39.1088 9.90533 38.2509 9.90533H26.1906C25.3326 9.90533 24.6307 9.2032 24.6307 8.34544V8.27282C24.6307 7.41486 25.3326 6.71293 26.1906 6.71293H38.2509C39.1088 6.71293 39.8108 7.41486 39.8108 8.27282V8.34544Z", fill: "currentColor" }), h("path", { key: 'f015e717f7f98a47cca40f899b9733922004dcca', d: "M18.9203 23.3968C18.8594 23.3968 18.7994 23.3936 18.7401 23.3872C18.6216 23.3747 18.5065 23.3497 18.3957 23.3136C17.6769 23.0794 17.1513 22.3777 17.1513 21.5542V11.4397H4.76899C4.64688 11.4397 4.52776 11.4525 4.41244 11.4772C3.60636 11.649 3 12.392 3 13.2823V43.666C3 44.6837 3.79191 45.5086 4.76899 45.5086H24.8169C25.7939 45.5086 26.5858 44.6837 26.5858 43.666V23.397H18.9205L18.9203 23.3968Z", fill: "currentColor" }), h("path", { key: '6102c5447c1e2811aec313b3651140e923cafe76', d: "M26.5853 20.4748C26.5853 20.2916 26.5592 20.111 26.5089 19.9388C26.4251 19.6519 26.2745 19.3878 26.0672 19.1719L21.2069 14.1089C20.8751 13.7634 20.4254 13.5692 19.9561 13.5692H19.5098V20.9397H26.5855V20.4744L26.5853 20.4748Z", fill: "currentColor" })), h("defs", { key: '463910c8e1e975229c1add11c6857dd5676d979b' }, h("clipPath", { key: '03b8d5d330153a7e5e93a503115d00167fc4b71f' }, h("rect", { key: 'f32f3156600f32e4ffa83f6cdb0e4a9293ae02b7', width: "42", height: "41.9502", fill: "currentColor", transform: "translate(3 3.70789)" })))));
    }
    static get is() { return "digi-icon-paste"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["icon-paste.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["icon-paste.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": {}
        };
    }
}
