(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 Video20 = /** @class */ (function () {
        function Video20(elementRef) {
            this.elementRef = elementRef;
        }
        Video20.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;
                Video20.titleIdCounter++;
                title.setAttribute("id", "video20-" + Video20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "video20-" + Video20.titleIdCounter);
            }
        };
        Video20.titleIdCounter = 0;
        Video20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-video20",
                        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=\"M21 26H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h17a2 2 0 0 1 2 2v4.06l5.42-3.87A1 1 0 0 1 30 9v14a1 1 0 0 1-1.58.81L23 19.94V24a2 2 0 0 1-2 2zM4 8v16h17v-6a1 1 0 0 1 1.58-.81L28 21.06V10.94l-5.42 3.87A1 1 0 0 1 21 14V8z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Video20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Video20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Video20;
    }());
    var Video20Module = /** @class */ (function () {
        function Video20Module() {
        }
        Video20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Video20
                        ],
                        exports: [
                            Video20
                        ]
                    },] },
        ];
        return Video20Module;
    }());

    exports.Video20 = Video20;
    exports.Video20Module = Video20Module;

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

})));
