import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ZoomOut16 = /** @class */ (function () {
    function ZoomOut16(elementRef) {
        this.elementRef = elementRef;
    }
    ZoomOut16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            ZoomOut16.titleIdCounter++;
            title.setAttribute("id", "zoom-out16-" + ZoomOut16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "zoom-out16-" + ZoomOut16.titleIdCounter);
        }
    };
    ZoomOut16.titleIdCounter = 0;
    ZoomOut16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-zoom-out16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M4 6h5v1H4z\"></path><path d=\"M10.7 10c.8-1 1.3-2.2 1.3-3.5C12 3.5 9.5 1 6.5 1S1 3.5 1 6.5 3.5 12 6.5 12c1.3 0 2.5-.5 3.5-1.3l3.8 3.8.7-.7-3.8-3.8zm-4.2 1C4 11 2 9 2 6.5S4 2 6.5 2 11 4 11 6.5 9 11 6.5 11z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ZoomOut16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ZoomOut16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ZoomOut16;
}());
export { ZoomOut16 };
var ZoomOut16Module = /** @class */ (function () {
    function ZoomOut16Module() {
    }
    ZoomOut16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ZoomOut16
                    ],
                    exports: [
                        ZoomOut16
                    ]
                },] },
    ];
    return ZoomOut16Module;
}());
export { ZoomOut16Module };
//# sourceMappingURL=16.js.map