import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoSlack32 = /** @class */ (function () {
    function LogoSlack32(elementRef) {
        this.elementRef = elementRef;
    }
    LogoSlack32.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;
            LogoSlack32.titleIdCounter++;
            title.setAttribute("id", "logo-slack32-" + LogoSlack32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-slack32-" + LogoSlack32.titleIdCounter);
        }
    };
    LogoSlack32.titleIdCounter = 0;
    LogoSlack32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-slack32",
                    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=\"M27 12.7c-2.48-8.25-6-10.17-14.3-7.72S2.53 11.05 5 19.3s6 10.17 14.29 7.69S29.47 20.98 27 12.7z\"></path><path d=\"M22 15.7l-1.55.52-1-3.09 1.55-.52a1.244 1.244 0 0 0-.79-2.36l-1.55.52-.54-1.61a1.243 1.243 0 0 0-2.36.78l.54 1.61-3.21 1.08-.53-1.65a1.26 1.26 0 0 0-1.56-.75 1.23 1.23 0 0 0-.78 1.57l.53 1.62-1.57.56a1.25 1.25 0 0 0-.79 1.58 1.28 1.28 0 0 0 1.15.84 1.07 1.07 0 0 0 .43-.06l1.55-.51 1 3.08-1.52.47a1.24 1.24 0 0 0-.78 1.6 1.27 1.27 0 0 0 1.15.84 1 1 0 0 0 .42-.06l1.55-.52.54 1.62a1.27 1.27 0 0 0 1.12.82 1 1 0 0 0 .42-.06 1.24 1.24 0 0 0 .79-1.57l-.54-1.61 3.21-1.08.56 1.62a1.31 1.31 0 0 0 1.16.84 1 1 0 0 0 .42-.06 1.23 1.23 0 0 0 .78-1.57l-.53-1.61 1.55-.52A1.25 1.25 0 1 0 22 15.7zm-7.12 2.41l-1-3.1 3.19-1.03 1 3.09z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoSlack32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoSlack32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoSlack32;
}());
export { LogoSlack32 };
var LogoSlack32Module = /** @class */ (function () {
    function LogoSlack32Module() {
    }
    LogoSlack32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoSlack32
                    ],
                    exports: [
                        LogoSlack32
                    ]
                },] },
    ];
    return LogoSlack32Module;
}());
export { LogoSlack32Module };
//# sourceMappingURL=32.js.map