import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Paste24 = /** @class */ (function () {
    function Paste24(elementRef) {
        this.elementRef = elementRef;
    }
    Paste24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            viewBox: "0 0 32 32",
            title: this.title,
            "aria-label": this.ariaLabel,
            "aria-labelledby": this.ariaLabelledby,
            "aria-hidden": this.ariaHidden,
            focusable: this.focusable
        });
        var attrKeys = Object.keys(attributes);
        for (var i = 0; i < attrKeys.length; i++) {
            var key = attrKeys[i];
            var value = attributes[key];
            if (key === "title") {
                continue;
            }
            if (value) {
                svg.setAttribute(key, value);
            }
        }
        if (attributes.title) {
            var title = document.createElement("title");
            title.textContent = attributes.title;
            Paste24.titleIdCounter++;
            title.setAttribute("id", "paste24-" + Paste24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "paste24-" + Paste24.titleIdCounter);
        }
    };
    Paste24.titleIdCounter = 0;
    Paste24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-paste24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M26 20h-8.17l2.58-2.59L19 16l-5 5 5 5 1.41-1.41L17.83 22H26v8h2v-8a2 2 0 0 0-2-2z\"></path><path d=\"M23.71 9.29l-7-7A1 1 0 0 0 16 2H6a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h8v-2H6V4h8v6a2 2 0 0 0 2 2h6v2h2v-4a1 1 0 0 0-.29-.71zM16 4.41L21.59 10H16z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Paste24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Paste24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Paste24;
}());
export { Paste24 };
var Paste24Module = /** @class */ (function () {
    function Paste24Module() {
    }
    Paste24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Paste24
                    ],
                    exports: [
                        Paste24
                    ]
                },] },
    ];
    return Paste24Module;
}());
export { Paste24Module };
//# sourceMappingURL=24.js.map