import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoStumbleupon20 = /** @class */ (function () {
    function LogoStumbleupon20(elementRef) {
        this.elementRef = elementRef;
    }
    LogoStumbleupon20.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;
            LogoStumbleupon20.titleIdCounter++;
            title.setAttribute("id", "logo-stumbleupon20-" + LogoStumbleupon20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-stumbleupon20-" + LogoStumbleupon20.titleIdCounter);
        }
    };
    LogoStumbleupon20.titleIdCounter = 0;
    LogoStumbleupon20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-stumbleupon20",
                    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=\"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2zm-.09 10.45a.84.84 0 0 0-.84.84v5.14a3.55 3.55 0 0 1-7.1 0v-2.34h2.71v2.24a.84.84 0 0 0 1.68 0v-5a3.55 3.55 0 0 1 7.09 0v1l-1.58.51-1.12-.51v-1a.85.85 0 0 0-.84-.88zm7.93 6a3.55 3.55 0 0 1-7.09 0v-2.31l1.12.51 1.58-.51v2.29a.84.84 0 0 0 1.68 0v-2.24h2.71z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoStumbleupon20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoStumbleupon20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoStumbleupon20;
}());
export { LogoStumbleupon20 };
var LogoStumbleupon20Module = /** @class */ (function () {
    function LogoStumbleupon20Module() {
    }
    LogoStumbleupon20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoStumbleupon20
                    ],
                    exports: [
                        LogoStumbleupon20
                    ]
                },] },
    ];
    return LogoStumbleupon20Module;
}());
export { LogoStumbleupon20Module };
//# sourceMappingURL=20.js.map