(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 DataReference20 = /** @class */ (function () {
        function DataReference20(elementRef) {
            this.elementRef = elementRef;
        }
        DataReference20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                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;
                DataReference20.titleIdCounter++;
                title.setAttribute("id", "data-reference20-" + DataReference20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "data-reference20-" + DataReference20.titleIdCounter);
            }
        };
        DataReference20.titleIdCounter = 0;
        DataReference20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-data-reference20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M25 13V4h-2v2h-3v2h3v5h-3v2h8v-2h-3zM8.5 6A3.5 3.5 0 1 1 5 9.5 3.504 3.504 0 0 1 8.5 6m0-2A5.5 5.5 0 1 0 14 9.5 5.5 5.5 0 0 0 8.5 4zm15 16a3.5 3.5 0 1 1-3.5 3.5 3.504 3.504 0 0 1 3.5-3.5m0-2a5.5 5.5 0 1 0 5.5 5.5 5.5 5.5 0 0 0-5.5-5.5zM6 19v2h3.586L4 26.586 5.414 28 11 22.414V26h2v-7H6z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        DataReference20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        DataReference20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return DataReference20;
    }());
    var DataReference20Module = /** @class */ (function () {
        function DataReference20Module() {
        }
        DataReference20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            DataReference20
                        ],
                        exports: [
                            DataReference20
                        ]
                    },] },
        ];
        return DataReference20Module;
    }());

    exports.DataReference20 = DataReference20;
    exports.DataReference20Module = DataReference20Module;

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

})));
