(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var LogoFacebook20 = /** @class */ (function () {
        function LogoFacebook20(elementRef) {
            this.elementRef = elementRef;
        }
        LogoFacebook20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.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;
                LogoFacebook20.titleIdCounter++;
                title.setAttribute("id", "logo-facebook20-" + LogoFacebook20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "logo-facebook20-" + LogoFacebook20.titleIdCounter);
            }
        };
        LogoFacebook20.titleIdCounter = 0;
        LogoFacebook20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-logo-facebook20",
                        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=\"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 */
        LogoFacebook20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        LogoFacebook20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return LogoFacebook20;
    }());
    var LogoFacebook20Module = /** @class */ (function () {
        function LogoFacebook20Module() {
        }
        LogoFacebook20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            LogoFacebook20
                        ],
                        exports: [
                            LogoFacebook20
                        ]
                    },] },
        ];
        return LogoFacebook20Module;
    }());

    exports.LogoFacebook20 = LogoFacebook20;
    exports.LogoFacebook20Module = LogoFacebook20Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
