import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Finance32 = /** @class */ (function () {
    function Finance32(elementRef) {
        this.elementRef = elementRef;
    }
    Finance32.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;
            Finance32.titleIdCounter++;
            title.setAttribute("id", "finance32-" + Finance32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "finance32-" + Finance32.titleIdCounter);
        }
    };
    Finance32.titleIdCounter = 0;
    Finance32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-finance32",
                    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=\"M2 28h28v2H2zm25-17a1 1 0 0 0 1-1V7a1 1 0 0 0-.66-.94l-11-4a1 1 0 0 0-.68 0l-11 4A1 1 0 0 0 4 7v3a1 1 0 0 0 1 1h1v13H4v2h24v-2h-2V11zM6 7.7l10-3.64L26 7.7V9H6zM18 24h-4V11h4zM8 11h4v13H8zm16 13h-4V11h4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Finance32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Finance32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Finance32;
}());
export { Finance32 };
var Finance32Module = /** @class */ (function () {
    function Finance32Module() {
    }
    Finance32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Finance32
                    ],
                    exports: [
                        Finance32
                    ]
                },] },
    ];
    return Finance32Module;
}());
export { Finance32Module };
//# sourceMappingURL=32.js.map