(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 MedicationAlert24 = /** @class */ (function () {
        function MedicationAlert24(elementRef) {
            this.elementRef = elementRef;
        }
        MedicationAlert24.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;
                MedicationAlert24.titleIdCounter++;
                title.setAttribute("id", "medication-alert24-" + MedicationAlert24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "medication-alert24-" + MedicationAlert24.titleIdCounter);
            }
        };
        MedicationAlert24.titleIdCounter = 0;
        MedicationAlert24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-medication-alert24",
                        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=\"M22 19h2v5h-2z\"></path><path d=\"M23 31a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm0-14a6 6 0 1 0 6 6 6 6 0 0 0-6-6z\"></path><circle cx=\"23\" cy=\"26\" r=\"1\"></circle><path d=\"M20 2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2v18a2 2 0 0 0 2 2h8v-2H6v-2h5V12H6v-2h12v3h2v-3a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM9 14v10H6V14zM4 8V4h16v4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        MedicationAlert24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        MedicationAlert24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return MedicationAlert24;
    }());
    var MedicationAlert24Module = /** @class */ (function () {
        function MedicationAlert24Module() {
        }
        MedicationAlert24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            MedicationAlert24
                        ],
                        exports: [
                            MedicationAlert24
                        ]
                    },] },
        ];
        return MedicationAlert24Module;
    }());

    exports.MedicationAlert24 = MedicationAlert24;
    exports.MedicationAlert24Module = MedicationAlert24Module;

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

})));
