import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoStumbleupon24 = /** @class */ (function () {
    function LogoStumbleupon24(elementRef) {
        this.elementRef = elementRef;
    }
    LogoStumbleupon24.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;
            LogoStumbleupon24.titleIdCounter++;
            title.setAttribute("id", "logo-stumbleupon24-" + LogoStumbleupon24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-stumbleupon24-" + LogoStumbleupon24.titleIdCounter);
        }
    };
    LogoStumbleupon24.titleIdCounter = 0;
    LogoStumbleupon24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-stumbleupon24",
                    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=\"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 */
    LogoStumbleupon24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoStumbleupon24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoStumbleupon24;
}());
export { LogoStumbleupon24 };
var LogoStumbleupon24Module = /** @class */ (function () {
    function LogoStumbleupon24Module() {
    }
    LogoStumbleupon24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoStumbleupon24
                    ],
                    exports: [
                        LogoStumbleupon24
                    ]
                },] },
    ];
    return LogoStumbleupon24Module;
}());
export { LogoStumbleupon24Module };
//# sourceMappingURL=24.js.map