import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ArrowUpLeft32 = /** @class */ (function () {
    function ArrowUpLeft32(elementRef) {
        this.elementRef = elementRef;
    }
    ArrowUpLeft32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            ArrowUpLeft32.titleIdCounter++;
            title.setAttribute("id", "arrow-up-left32-" + ArrowUpLeft32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "arrow-up-left32-" + ArrowUpLeft32.titleIdCounter);
        }
    };
    ArrowUpLeft32.titleIdCounter = 0;
    ArrowUpLeft32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-arrow-up-left32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M22 6v2H9.41L26 24.59 24.59 26 8 9.41V22H6V6h16z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ArrowUpLeft32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ArrowUpLeft32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ArrowUpLeft32;
}());
export { ArrowUpLeft32 };
var ArrowUpLeft32Module = /** @class */ (function () {
    function ArrowUpLeft32Module() {
    }
    ArrowUpLeft32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ArrowUpLeft32
                    ],
                    exports: [
                        ArrowUpLeft32
                    ]
                },] },
    ];
    return ArrowUpLeft32Module;
}());
export { ArrowUpLeft32Module };
//# sourceMappingURL=32.js.map