import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthEditFilter20 = /** @class */ (function () {
    function WatsonHealthEditFilter20(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthEditFilter20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            WatsonHealthEditFilter20.titleIdCounter++;
            title.setAttribute("id", "watson-health-edit-filter20-" + WatsonHealthEditFilter20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-edit-filter20-" + WatsonHealthEditFilter20.titleIdCounter);
        }
    };
    WatsonHealthEditFilter20.titleIdCounter = 0;
    WatsonHealthEditFilter20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-edit-filter20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M26 6H4v3.17l7.41 7.42.59.58V26h4v-2h2v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8l-7.41-7.41A2 2 0 0 1 2 9.17V6a2 2 0 0 1 2-2h22z\"></path><path d=\"M29.71 11.29l-3-3a1 1 0 0 0-1.42 0L16 17.59V22h4.41l9.3-9.29a1 1 0 0 0 0-1.42zM19.59 20H18v-1.59l5-5L24.59 15zM26 13.59L24.41 12 26 10.41 27.59 12z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthEditFilter20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthEditFilter20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthEditFilter20;
}());
export { WatsonHealthEditFilter20 };
var WatsonHealthEditFilter20Module = /** @class */ (function () {
    function WatsonHealthEditFilter20Module() {
    }
    WatsonHealthEditFilter20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthEditFilter20
                    ],
                    exports: [
                        WatsonHealthEditFilter20
                    ]
                },] },
    ];
    return WatsonHealthEditFilter20Module;
}());
export { WatsonHealthEditFilter20Module };
//# sourceMappingURL=20.js.map