(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 WatsonHealthAutoScroll20 = /** @class */ (function () {
        function WatsonHealthAutoScroll20(elementRef) {
            this.elementRef = elementRef;
        }
        WatsonHealthAutoScroll20.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;
                WatsonHealthAutoScroll20.titleIdCounter++;
                title.setAttribute("id", "watson-health-auto-scroll20-" + WatsonHealthAutoScroll20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "watson-health-auto-scroll20-" + WatsonHealthAutoScroll20.titleIdCounter);
            }
        };
        WatsonHealthAutoScroll20.titleIdCounter = 0;
        WatsonHealthAutoScroll20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-watson-health-auto-scroll20",
                        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=\"M12 16a4 4 0 1 0 4-4 4 4 0 0 0-4 4zm6 0a2 2 0 1 1-2-2 2 2 0 0 1 2 2zm-2 11.17l-5.6-5.59L9 23l7 7 7-7-1.41-1.41L16 27.17zm0-22.34l5.58 5.57L23 9l-7-7-7 7 1.41 1.41L16 4.83z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        WatsonHealthAutoScroll20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        WatsonHealthAutoScroll20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return WatsonHealthAutoScroll20;
    }());
    var WatsonHealthAutoScroll20Module = /** @class */ (function () {
        function WatsonHealthAutoScroll20Module() {
        }
        WatsonHealthAutoScroll20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            WatsonHealthAutoScroll20
                        ],
                        exports: [
                            WatsonHealthAutoScroll20
                        ]
                    },] },
        ];
        return WatsonHealthAutoScroll20Module;
    }());

    exports.WatsonHealthAutoScroll20 = WatsonHealthAutoScroll20;
    exports.WatsonHealthAutoScroll20Module = WatsonHealthAutoScroll20Module;

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

})));
