(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 Image24 = /** @class */ (function () {
        function Image24(elementRef) {
            this.elementRef = elementRef;
        }
        Image24.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;
                Image24.titleIdCounter++;
                title.setAttribute("id", "image24-" + Image24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "image24-" + Image24.titleIdCounter);
            }
        };
        Image24.titleIdCounter = 0;
        Image24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-image24",
                        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=\"M19 14a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z\"></path><path d=\"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 22H6v-6l5-5 5.59 5.59a2 2 0 0 0 2.82 0L21 19l5 5zm0-4.83l-3.59-3.59a2 2 0 0 0-2.82 0L18 19.17l-5.59-5.59a2 2 0 0 0-2.82 0L6 17.17V6h20z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Image24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Image24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Image24;
    }());
    var Image24Module = /** @class */ (function () {
        function Image24Module() {
        }
        Image24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Image24
                        ],
                        exports: [
                            Image24
                        ]
                    },] },
        ];
        return Image24Module;
    }());

    exports.Image24 = Image24;
    exports.Image24Module = Image24Module;

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

})));
