import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var SettingsAdjust24 = /** @class */ (function () {
    function SettingsAdjust24(elementRef) {
        this.elementRef = elementRef;
    }
    SettingsAdjust24.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;
            SettingsAdjust24.titleIdCounter++;
            title.setAttribute("id", "settings-adjust24-" + SettingsAdjust24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "settings-adjust24-" + SettingsAdjust24.titleIdCounter);
        }
    };
    SettingsAdjust24.titleIdCounter = 0;
    SettingsAdjust24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-settings-adjust24",
                    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=\"M30 7h-5.1a5 5 0 0 0-9.8 0H2v2h13.1a5 5 0 0 0 9.8 0H30zm-10 4a3 3 0 1 1 3-3 3 3 0 0 1-3 3zM2 25h5.1a5 5 0 0 0 9.8 0H30v-2H16.9a5 5 0 0 0-9.8 0H2zm7-1a3 3 0 1 1 3 3 3 3 0 0 1-3-3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    SettingsAdjust24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    SettingsAdjust24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return SettingsAdjust24;
}());
export { SettingsAdjust24 };
var SettingsAdjust24Module = /** @class */ (function () {
    function SettingsAdjust24Module() {
    }
    SettingsAdjust24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        SettingsAdjust24
                    ],
                    exports: [
                        SettingsAdjust24
                    ]
                },] },
    ];
    return SettingsAdjust24Module;
}());
export { SettingsAdjust24Module };
//# sourceMappingURL=24.js.map