(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 Diagram20 = /** @class */ (function () {
        function Diagram20(elementRef) {
            this.elementRef = elementRef;
        }
        Diagram20.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;
                Diagram20.titleIdCounter++;
                title.setAttribute("id", "diagram20-" + Diagram20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "diagram20-" + Diagram20.titleIdCounter);
            }
        };
        Diagram20.titleIdCounter = 0;
        Diagram20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-diagram20",
                        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=\"M13 30a11 11 0 0 1 0-22 1 1 0 0 1 1 1v9h9a1 1 0 0 1 1 1 11 11 0 0 1-11 11zm-1-19.94A9 9 0 1 0 21.94 20H14a2 2 0 0 1-2-2z\"></path><path d=\"M28 14h-9a2 2 0 0 1-2-2V3a1 1 0 0 1 1-1 11 11 0 0 1 11 11 1 1 0 0 1-1 1zm-9-2h7.94A9 9 0 0 0 19 4.06z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Diagram20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Diagram20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Diagram20;
    }());
    var Diagram20Module = /** @class */ (function () {
        function Diagram20Module() {
        }
        Diagram20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Diagram20
                        ],
                        exports: [
                            Diagram20
                        ]
                    },] },
        ];
        return Diagram20Module;
    }());

    exports.Diagram20 = Diagram20;
    exports.Diagram20Module = Diagram20Module;

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

})));
