import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DeployRules24 = /** @class */ (function () {
    function DeployRules24(elementRef) {
        this.elementRef = elementRef;
    }
    DeployRules24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            DeployRules24.titleIdCounter++;
            title.setAttribute("id", "deploy-rules24-" + DeployRules24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "deploy-rules24-" + DeployRules24.titleIdCounter);
        }
    };
    DeployRules24.titleIdCounter = 0;
    DeployRules24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-deploy-rules24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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 */
    DeployRules24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DeployRules24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DeployRules24;
}());
export { DeployRules24 };
var DeployRules24Module = /** @class */ (function () {
    function DeployRules24Module() {
    }
    DeployRules24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DeployRules24
                    ],
                    exports: [
                        DeployRules24
                    ]
                },] },
    ];
    return DeployRules24Module;
}());
export { DeployRules24Module };
//# sourceMappingURL=24.js.map