(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 Wmv20 = /** @class */ (function () {
        function Wmv20(elementRef) {
            this.elementRef = elementRef;
        }
        Wmv20.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;
                Wmv20.titleIdCounter++;
                title.setAttribute("id", "wmv20-" + Wmv20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "wmv20-" + Wmv20.titleIdCounter);
            }
        };
        Wmv20.titleIdCounter = 0;
        Wmv20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-wmv20",
                        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=\"M29 9l-2 13-2-13h-2l2.52 14h2.96L31 9h-2zM19 9l-1.52 5-.48 1.98-.46-1.98L15 9h-2v14h2v-8l-.16-2 .58 2L17 19.63 18.58 15l.58-2-.16 2v8h2V9h-2zM9.2 9l-.34 8-.26 4.54L8.19 18l-.68-5.46H5.49L4.81 18l-.41 3.54L4.14 17 3.8 9H2l1 14h2.27l.76-4.93.46-4.07.01-.03.01.03.46 4.07.76 4.93H10l1-14H9.2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Wmv20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Wmv20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Wmv20;
    }());
    var Wmv20Module = /** @class */ (function () {
        function Wmv20Module() {
        }
        Wmv20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Wmv20
                        ],
                        exports: [
                            Wmv20
                        ]
                    },] },
        ];
        return Wmv20Module;
    }());

    exports.Wmv20 = Wmv20;
    exports.Wmv20Module = Wmv20Module;

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

})));
