(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 WatsonHealthWindowBase20 = /** @class */ (function () {
        function WatsonHealthWindowBase20(elementRef) {
            this.elementRef = elementRef;
        }
        WatsonHealthWindowBase20.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;
                WatsonHealthWindowBase20.titleIdCounter++;
                title.setAttribute("id", "watson-health-window-base20-" + WatsonHealthWindowBase20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "watson-health-window-base20-" + WatsonHealthWindowBase20.titleIdCounter);
            }
        };
        WatsonHealthWindowBase20.titleIdCounter = 0;
        WatsonHealthWindowBase20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-watson-health-window-base20",
                        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=\"M15 2h2v3h-2zm10 11h3v2h-3zM15 23h2v3h-2zM4 13h3v2H4zm2.775-6.812L8.19 4.773l2.122 2.122-1.414 1.414zm14.921.712l2.12-2.122 1.415 1.415-2.121 2.12zm-.005 14.188l1.415-1.414 2.12 2.122-1.413 1.414zm-14.913.725L8.9 19.69l1.414 1.414-2.121 2.122zM4 28h24v2H4zm12-8a6 6 0 1 0-6-6 6 6 0 0 0 6 6zm0-10v8a4 4 0 0 1 0-8z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        WatsonHealthWindowBase20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        WatsonHealthWindowBase20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return WatsonHealthWindowBase20;
    }());
    var WatsonHealthWindowBase20Module = /** @class */ (function () {
        function WatsonHealthWindowBase20Module() {
        }
        WatsonHealthWindowBase20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            WatsonHealthWindowBase20
                        ],
                        exports: [
                            WatsonHealthWindowBase20
                        ]
                    },] },
        ];
        return WatsonHealthWindowBase20Module;
    }());

    exports.WatsonHealthWindowBase20 = WatsonHealthWindowBase20;
    exports.WatsonHealthWindowBase20Module = WatsonHealthWindowBase20Module;

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

})));
