import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ZoomIn32 = /** @class */ (function () {
    function ZoomIn32(elementRef) {
        this.elementRef = elementRef;
    }
    ZoomIn32.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;
            ZoomIn32.titleIdCounter++;
            title.setAttribute("id", "zoom-in32-" + ZoomIn32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "zoom-in32-" + ZoomIn32.titleIdCounter);
        }
    };
    ZoomIn32.titleIdCounter = 0;
    ZoomIn32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-zoom-in32",
                    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=\"M19 13h-4V9h-2v4H9v2h4v4h2v-4h4v-2z\"></path><path d=\"M22.45 21A10.87 10.87 0 0 0 25 14a11 11 0 1 0-11 11 10.87 10.87 0 0 0 7-2.55L28.59 30 30 28.59zM14 23a9 9 0 1 1 9-9 9 9 0 0 1-9 9z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ZoomIn32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ZoomIn32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ZoomIn32;
}());
export { ZoomIn32 };
var ZoomIn32Module = /** @class */ (function () {
    function ZoomIn32Module() {
    }
    ZoomIn32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ZoomIn32
                    ],
                    exports: [
                        ZoomIn32
                    ]
                },] },
    ];
    return ZoomIn32Module;
}());
export { ZoomIn32Module };
//# sourceMappingURL=32.js.map