import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoXing20 = /** @class */ (function () {
    function LogoXing20(elementRef) {
        this.elementRef = elementRef;
    }
    LogoXing20.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;
            LogoXing20.titleIdCounter++;
            title.setAttribute("id", "logo-xing20-" + LogoXing20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-xing20-" + LogoXing20.titleIdCounter);
        }
    };
    LogoXing20.titleIdCounter = 0;
    LogoXing20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-xing20",
                    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=\"M11.42 8.29a1.25 1.25 0 0 0-1.13-.76h-4a.65.65 0 0 0-.55.25.63.63 0 0 0 0 .62l2.73 4.73-4.3 7.59a.6.6 0 0 0 0 .62.58.58 0 0 0 .52.28h4a1.22 1.22 0 0 0 1.1-.78l4.36-7.71-2.73-4.84zm16.41-5.41a.65.65 0 0 0 0-.62.61.61 0 0 0-.53-.26h-4.08a1.19 1.19 0 0 0-1.08.77s-8.7 15.43-9 15.93l5.74 10.53A1.26 1.26 0 0 0 20 30h4a.59.59 0 0 0 .54-.26.62.62 0 0 0 0-.62l-5.69-10.4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoXing20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoXing20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoXing20;
}());
export { LogoXing20 };
var LogoXing20Module = /** @class */ (function () {
    function LogoXing20Module() {
    }
    LogoXing20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoXing20
                    ],
                    exports: [
                        LogoXing20
                    ]
                },] },
    ];
    return LogoXing20Module;
}());
export { LogoXing20Module };
//# sourceMappingURL=20.js.map