import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Pills32 = /** @class */ (function () {
    function Pills32(elementRef) {
        this.elementRef = elementRef;
    }
    Pills32.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;
            Pills32.titleIdCounter++;
            title.setAttribute("id", "pills32-" + Pills32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "pills32-" + Pills32.titleIdCounter);
        }
    };
    Pills32.titleIdCounter = 0;
    Pills32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-pills32",
                    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=\"M22 14a7.94 7.94 0 0 0-4 1.083V9A7 7 0 0 0 4 9v14a6.999 6.999 0 0 0 12.286 4.588A7.997 7.997 0 1 0 22 14zm0 2a6.005 6.005 0 0 1 5.91 5H16.09A6.005 6.005 0 0 1 22 16zM6 9a5 5 0 0 1 10 0v6H6zm5 19a5.006 5.006 0 0 1-5-5v-6h9.765a7.957 7.957 0 0 0-.724 8.931A4.989 4.989 0 0 1 11 28zm11 0a6.005 6.005 0 0 1-5.91-5h11.82A6.005 6.005 0 0 1 22 28z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Pills32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Pills32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Pills32;
}());
export { Pills32 };
var Pills32Module = /** @class */ (function () {
    function Pills32Module() {
    }
    Pills32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Pills32
                    ],
                    exports: [
                        Pills32
                    ]
                },] },
    ];
    return Pills32Module;
}());
export { Pills32Module };
//# sourceMappingURL=32.js.map