(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 Xml24 = /** @class */ (function () {
        function Xml24(elementRef) {
            this.elementRef = elementRef;
        }
        Xml24.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;
                Xml24.titleIdCounter++;
                title.setAttribute("id", "xml24-" + Xml24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "xml24-" + Xml24.titleIdCounter);
            }
        };
        Xml24.titleIdCounter = 0;
        Xml24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-xml24",
                        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=\"M24 21V9h-2v14h8v-2h-6zM18 9l-1.52 5-.48 1.98-.46-1.98L14 9h-2v14h2v-8l-.16-2 .58 2L16 19.63 17.58 15l.58-2-.16 2v8h2V9h-2zm-8 0H8l-2 6-2-6H2l2.75 7L2 23h2l2-6 2 6h2l-2.75-7L10 9z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Xml24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Xml24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Xml24;
    }());
    var Xml24Module = /** @class */ (function () {
        function Xml24Module() {
        }
        Xml24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Xml24
                        ],
                        exports: [
                            Xml24
                        ]
                    },] },
        ];
        return Xml24Module;
    }());

    exports.Xml24 = Xml24;
    exports.Xml24Module = Xml24Module;

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

})));
