(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 ShoppingBag20 = /** @class */ (function () {
        function ShoppingBag20(elementRef) {
            this.elementRef = elementRef;
        }
        ShoppingBag20.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;
                ShoppingBag20.titleIdCounter++;
                title.setAttribute("id", "shopping-bag20-" + ShoppingBag20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "shopping-bag20-" + ShoppingBag20.titleIdCounter);
            }
        };
        ShoppingBag20.titleIdCounter = 0;
        ShoppingBag20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-shopping-bag20",
                        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=\"M28.76 11.35A1 1 0 0 0 28 11h-6V7a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3v4H4a1 1 0 0 0-1 1.15L4.88 24.3a2 2 0 0 0 2 1.7h18.26a2 2 0 0 0 2-1.7L29 12.15a1 1 0 0 0-.24-.8zM12 7a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4h-8zm13.14 17H6.86L5.17 13h21.66z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        ShoppingBag20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ShoppingBag20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ShoppingBag20;
    }());
    var ShoppingBag20Module = /** @class */ (function () {
        function ShoppingBag20Module() {
        }
        ShoppingBag20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ShoppingBag20
                        ],
                        exports: [
                            ShoppingBag20
                        ]
                    },] },
        ];
        return ShoppingBag20Module;
    }());

    exports.ShoppingBag20 = ShoppingBag20;
    exports.ShoppingBag20Module = ShoppingBag20Module;

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

})));
