(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 Chip24 = /** @class */ (function () {
        function Chip24(elementRef) {
            this.elementRef = elementRef;
        }
        Chip24.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 24,
                height: 24,
                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;
                Chip24.titleIdCounter++;
                title.setAttribute("id", "chip24-" + Chip24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "chip24-" + Chip24.titleIdCounter);
            }
        };
        Chip24.titleIdCounter = 0;
        Chip24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-chip24",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M11 11v10h10V11zm8 8h-6v-6h6z\"></path><path d=\"M29 13v-2h-3V8a2 2 0 0 0-2-2h-3V3h-2v3h-6V3h-2v3H8a2 2 0 0 0-2 2v3H3v2h3v6H3v2h3v3a2 2 0 0 0 2 2h3v3h2v-3h6v3h2v-3h3a2 2 0 0 0 2-2v-3h3v-2h-3v-6zm-5 11H8V8h16z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Chip24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Chip24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Chip24;
    }());
    var Chip24Module = /** @class */ (function () {
        function Chip24Module() {
        }
        Chip24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Chip24
                        ],
                        exports: [
                            Chip24
                        ]
                    },] },
        ];
        return Chip24Module;
    }());

    exports.Chip24 = Chip24;
    exports.Chip24Module = Chip24Module;

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

})));
