(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 Raw20 = /** @class */ (function () {
        function Raw20(elementRef) {
            this.elementRef = elementRef;
        }
        Raw20.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;
                Raw20.titleIdCounter++;
                title.setAttribute("id", "raw20-" + Raw20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "raw20-" + Raw20.titleIdCounter);
            }
        };
        Raw20.titleIdCounter = 0;
        Raw20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-raw20",
                        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.2 9l-.34 8-.26 4.54-.41-3.54-.68-5.46h-2.02L24.81 18l-.41 3.54-.26-4.54-.34-8H22l1 14h2.27l.76-4.93.46-4.07.01-.03.01.03.46 4.07.76 4.93H30l1-14h-1.8zM18 9h-4a2 2 0 0 0-2 2v12h2v-5h4v5h2V11a2 2 0 0 0-2-2zm-4 7v-5h4v5zm-4-1v-4a2 2 0 0 0-2-2H2v14h2v-6h1.48l2.34 6H10l-2.37-6H8a2 2 0 0 0 2-2zm-6-4h4v4H4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Raw20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Raw20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Raw20;
    }());
    var Raw20Module = /** @class */ (function () {
        function Raw20Module() {
        }
        Raw20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Raw20
                        ],
                        exports: [
                            Raw20
                        ]
                    },] },
        ];
        return Raw20Module;
    }());

    exports.Raw20 = Raw20;
    exports.Raw20Module = Raw20Module;

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

})));
