(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 Ticket24 = /** @class */ (function () {
        function Ticket24(elementRef) {
            this.elementRef = elementRef;
        }
        Ticket24.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;
                Ticket24.titleIdCounter++;
                title.setAttribute("id", "ticket24-" + Ticket24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "ticket24-" + Ticket24.titleIdCounter);
            }
        };
        Ticket24.titleIdCounter = 0;
        Ticket24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-ticket24",
                        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=\"M29 14a1 1 0 0 0 1-1V8a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v5a1 1 0 0 0 1 1 2 2 0 0 1 0 4 1 1 0 0 0-1 1v5a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1 2 2 0 0 1 0-4zm-1 5.87V24h-7v-3h-2v3H4v-4.13a4 4 0 0 0 0-7.74V8h15v3h2V8h7v4.13a4 4 0 0 0 0 7.74z\"></path><path d=\"M19 13h2v6h-2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Ticket24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Ticket24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Ticket24;
    }());
    var Ticket24Module = /** @class */ (function () {
        function Ticket24Module() {
        }
        Ticket24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Ticket24
                        ],
                        exports: [
                            Ticket24
                        ]
                    },] },
        ];
        return Ticket24Module;
    }());

    exports.Ticket24 = Ticket24;
    exports.Ticket24Module = Ticket24Module;

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

})));
