import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Rss20 = /** @class */ (function () {
    function Rss20(elementRef) {
        this.elementRef = elementRef;
    }
    Rss20.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;
            Rss20.titleIdCounter++;
            title.setAttribute("id", "rss20-" + Rss20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "rss20-" + Rss20.titleIdCounter);
        }
    };
    Rss20.titleIdCounter = 0;
    Rss20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-rss20",
                    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=\"M8 18c-3.3 0-6 2.7-6 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm0 10c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm22-4h-2C28 13 19 4 8 4V2c12.1 0 22 9.9 22 22z\"></path><path d=\"M22 24h-2c0-6.6-5.4-12-12-12v-2c7.7 0 14 6.3 14 14z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Rss20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Rss20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Rss20;
}());
export { Rss20 };
var Rss20Module = /** @class */ (function () {
    function Rss20Module() {
    }
    Rss20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Rss20
                    ],
                    exports: [
                        Rss20
                    ]
                },] },
    ];
    return Rss20Module;
}());
export { Rss20Module };
//# sourceMappingURL=20.js.map