(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 TreeView24 = /** @class */ (function () {
        function TreeView24(elementRef) {
            this.elementRef = elementRef;
        }
        TreeView24.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;
                TreeView24.titleIdCounter++;
                title.setAttribute("id", "tree-view24-" + TreeView24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "tree-view24-" + TreeView24.titleIdCounter);
            }
        };
        TreeView24.titleIdCounter = 0;
        TreeView24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-tree-view24",
                        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=\"M30 20v-8h-8v3h-5V7a2 2 0 0 0-2-2h-5V2H2v8h8V7h5v18a2 2 0 0 0 2 2h5v3h8v-8h-8v3h-5v-8h5v3zM8 8H4V4h4zm16 16h4v4h-4zm0-10h4v4h-4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TreeView24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TreeView24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TreeView24;
    }());
    var TreeView24Module = /** @class */ (function () {
        function TreeView24Module() {
        }
        TreeView24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TreeView24
                        ],
                        exports: [
                            TreeView24
                        ]
                    },] },
        ];
        return TreeView24Module;
    }());

    exports.TreeView24 = TreeView24;
    exports.TreeView24Module = TreeView24Module;

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

})));
