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