import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoFacebook32 = /** @class */ (function () {
    function LogoFacebook32(elementRef) {
        this.elementRef = elementRef;
    }
    LogoFacebook32.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;
            LogoFacebook32.titleIdCounter++;
            title.setAttribute("id", "logo-facebook32-" + LogoFacebook32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-facebook32-" + LogoFacebook32.titleIdCounter);
        }
    };
    LogoFacebook32.titleIdCounter = 0;
    LogoFacebook32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-facebook32",
                    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=\"M26.67 4H5.33A1.34 1.34 0 0 0 4 5.33v21.34A1.34 1.34 0 0 0 5.33 28h11.49v-9.28H13.7v-3.63h3.12v-2.67c0-3.1 1.89-4.79 4.67-4.79.93 0 1.86 0 2.79.14V11h-1.91c-1.51 0-1.8.72-1.8 1.77v2.31h3.6l-.47 3.63h-3.13V28h6.1A1.34 1.34 0 0 0 28 26.67V5.33A1.34 1.34 0 0 0 26.67 4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoFacebook32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoFacebook32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoFacebook32;
}());
export { LogoFacebook32 };
var LogoFacebook32Module = /** @class */ (function () {
    function LogoFacebook32Module() {
    }
    LogoFacebook32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoFacebook32
                    ],
                    exports: [
                        LogoFacebook32
                    ]
                },] },
    ];
    return LogoFacebook32Module;
}());
export { LogoFacebook32Module };
//# sourceMappingURL=32.js.map