(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 ShoppingCatalog20 = /** @class */ (function () {
        function ShoppingCatalog20(elementRef) {
            this.elementRef = elementRef;
        }
        ShoppingCatalog20.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;
                ShoppingCatalog20.titleIdCounter++;
                title.setAttribute("id", "shopping-catalog20-" + ShoppingCatalog20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "shopping-catalog20-" + ShoppingCatalog20.titleIdCounter);
            }
        };
        ShoppingCatalog20.titleIdCounter = 0;
        ShoppingCatalog20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-shopping-catalog20",
                        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=\"M17 24h4v4h-4zm7 0h4v4h-4zm-7-7h4v4h-4zm7 0h4v4h-4z\"></path><path d=\"M28 11h-6V7c0-1.7-1.3-3-3-3h-6c-1.7 0-3 1.3-3 3v4H4c-.6 0-1 .4-1 1v.2l1.9 12.1c.1 1 1 1.7 2 1.7H15v-2H6.9L5.2 13H28v-2zM12 7c0-.6.4-1 1-1h6c.6 0 1 .4 1 1v4h-8V7z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        ShoppingCatalog20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ShoppingCatalog20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ShoppingCatalog20;
    }());
    var ShoppingCatalog20Module = /** @class */ (function () {
        function ShoppingCatalog20Module() {
        }
        ShoppingCatalog20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ShoppingCatalog20
                        ],
                        exports: [
                            ShoppingCatalog20
                        ]
                    },] },
        ];
        return ShoppingCatalog20Module;
    }());

    exports.ShoppingCatalog20 = ShoppingCatalog20;
    exports.ShoppingCatalog20Module = ShoppingCatalog20Module;

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

})));
