import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var NumberSmall_724 = /** @class */ (function () {
    function NumberSmall_724(elementRef) {
        this.elementRef = elementRef;
    }
    NumberSmall_724.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;
            NumberSmall_724.titleIdCounter++;
            title.setAttribute("id", "number-small-724-" + NumberSmall_724.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "number-small-724-" + NumberSmall_724.titleIdCounter);
        }
    };
    NumberSmall_724.titleIdCounter = 0;
    NumberSmall_724.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-number-small-724",
                    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=\"M16.44 21h-2L17 13h-2v1h-2v-3h6v2l-2.56 8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    NumberSmall_724.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    NumberSmall_724.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return NumberSmall_724;
}());
export { NumberSmall_724 };
var NumberSmall_724Module = /** @class */ (function () {
    function NumberSmall_724Module() {
    }
    NumberSmall_724Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        NumberSmall_724
                    ],
                    exports: [
                        NumberSmall_724
                    ]
                },] },
    ];
    return NumberSmall_724Module;
}());
export { NumberSmall_724Module };
//# sourceMappingURL=24.js.map