import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ArrowUpLeft24 = /** @class */ (function () {
    function ArrowUpLeft24(elementRef) {
        this.elementRef = elementRef;
    }
    ArrowUpLeft24.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;
            ArrowUpLeft24.titleIdCounter++;
            title.setAttribute("id", "arrow-up-left24-" + ArrowUpLeft24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "arrow-up-left24-" + ArrowUpLeft24.titleIdCounter);
        }
    };
    ArrowUpLeft24.titleIdCounter = 0;
    ArrowUpLeft24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-arrow-up-left24",
                    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=\"M22 6v2H9.41L26 24.59 24.59 26 8 9.41V22H6V6h16z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ArrowUpLeft24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ArrowUpLeft24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ArrowUpLeft24;
}());
export { ArrowUpLeft24 };
var ArrowUpLeft24Module = /** @class */ (function () {
    function ArrowUpLeft24Module() {
    }
    ArrowUpLeft24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ArrowUpLeft24
                    ],
                    exports: [
                        ArrowUpLeft24
                    ]
                },] },
    ];
    return ArrowUpLeft24Module;
}());
export { ArrowUpLeft24Module };
//# sourceMappingURL=24.js.map