(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 Template24 = /** @class */ (function () {
        function Template24(elementRef) {
            this.elementRef = elementRef;
        }
        Template24.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;
                Template24.titleIdCounter++;
                title.setAttribute("id", "template24-" + Template24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "template24-" + Template24.titleIdCounter);
            }
        };
        Template24.titleIdCounter = 0;
        Template24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-template24",
                        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=\"M26 6v4H6V6h20m0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zM10 16v10H6V16h4m0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2zm16 2v10H16V16h10m0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Template24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Template24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Template24;
    }());
    var Template24Module = /** @class */ (function () {
        function Template24Module() {
        }
        Template24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Template24
                        ],
                        exports: [
                            Template24
                        ]
                    },] },
        ];
        return Template24Module;
    }());

    exports.Template24 = Template24;
    exports.Template24Module = Template24Module;

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

})));
