import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DeployRules32 = /** @class */ (function () {
    function DeployRules32(elementRef) {
        this.elementRef = elementRef;
    }
    DeployRules32.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;
            DeployRules32.titleIdCounter++;
            title.setAttribute("id", "deploy-rules32-" + DeployRules32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "deploy-rules32-" + DeployRules32.titleIdCounter);
        }
    };
    DeployRules32.titleIdCounter = 0;
    DeployRules32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-deploy-rules32",
                    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=\"M18 4l-6 6 1.41 1.41L17 7.83V20h2V7.83l3.59 3.58L24 10l-6-6zM8 18h7v2H8zm0 4h16v2H8zm0 4h16v2H8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    DeployRules32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DeployRules32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DeployRules32;
}());
export { DeployRules32 };
var DeployRules32Module = /** @class */ (function () {
    function DeployRules32Module() {
    }
    DeployRules32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DeployRules32
                    ],
                    exports: [
                        DeployRules32
                    ]
                },] },
    ];
    return DeployRules32Module;
}());
export { DeployRules32Module };
//# sourceMappingURL=32.js.map