import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Binoculars32 = /** @class */ (function () {
    function Binoculars32(elementRef) {
        this.elementRef = elementRef;
    }
    Binoculars32.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;
            Binoculars32.titleIdCounter++;
            title.setAttribute("id", "binoculars32-" + Binoculars32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "binoculars32-" + Binoculars32.titleIdCounter);
        }
    };
    Binoculars32.titleIdCounter = 0;
    Binoculars32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-binoculars32",
                    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=\"M28 8V5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v3a2 2 0 0 0-2 2v2h-4v-2a2 2 0 0 0-2-2V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v3a2 2 0 0 0-2 2v12a2 2 0 0 0 1 1.72V27a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3.28A2 2 0 0 0 14 22v-2h4v2a2 2 0 0 0 1 1.72V27a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3.28A2 2 0 0 0 30 22V10a2 2 0 0 0-2-2zM11 26H5v-2h6zm1-4H4V10h2V6h4v4h2zm2-4v-4h4v4zm13 8h-6v-2h6zm1-4h-8V10h2V6h4v4h2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Binoculars32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Binoculars32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Binoculars32;
}());
export { Binoculars32 };
var Binoculars32Module = /** @class */ (function () {
    function Binoculars32Module() {
    }
    Binoculars32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Binoculars32
                    ],
                    exports: [
                        Binoculars32
                    ]
                },] },
    ];
    return Binoculars32Module;
}());
export { Binoculars32Module };
//# sourceMappingURL=32.js.map