import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PillsSubtract24 = /** @class */ (function () {
    function PillsSubtract24(elementRef) {
        this.elementRef = elementRef;
    }
    PillsSubtract24.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;
            PillsSubtract24.titleIdCounter++;
            title.setAttribute("id", "pills-subtract24-" + PillsSubtract24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "pills-subtract24-" + PillsSubtract24.titleIdCounter);
        }
    };
    PillsSubtract24.titleIdCounter = 0;
    PillsSubtract24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-pills-subtract24",
                    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=\"M22 14a7.94 7.94 0 0 0-4 1.083V9A7 7 0 0 0 4 9v14a6.986 6.986 0 0 0 12.276 4.577A7.997 7.997 0 1 0 22 14zM11 4a5.006 5.006 0 0 1 5 5v6H6V9a5.006 5.006 0 0 1 5-5zm0 24a5.006 5.006 0 0 1-5-5v-6h9.765a7.956 7.956 0 0 0-.724 8.932A5.015 5.015 0 0 1 11 28zm11 0a6 6 0 1 1 6-6 6.007 6.007 0 0 1-6 6z\"></path><path d=\"M19 21h6v2h-6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    PillsSubtract24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PillsSubtract24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PillsSubtract24;
}());
export { PillsSubtract24 };
var PillsSubtract24Module = /** @class */ (function () {
    function PillsSubtract24Module() {
    }
    PillsSubtract24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PillsSubtract24
                    ],
                    exports: [
                        PillsSubtract24
                    ]
                },] },
    ];
    return PillsSubtract24Module;
}());
export { PillsSubtract24Module };
//# sourceMappingURL=24.js.map