import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealthZoomPan24 = /** @class */ (function () {
    function WatsonHealthZoomPan24(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealthZoomPan24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = 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;
            WatsonHealthZoomPan24.titleIdCounter++;
            title.setAttribute("id", "watson-health-zoom-pan24-" + WatsonHealthZoomPan24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health-zoom-pan24-" + WatsonHealthZoomPan24.titleIdCounter);
        }
    };
    WatsonHealthZoomPan24.titleIdCounter = 0;
    WatsonHealthZoomPan24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health-zoom-pan24",
                    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=\"M27.01 12l-1.41 1.41L28.18 16l-2.59 2.59L27.01 20l4-4-4-4zm-20.6 1.42L5 12l-4 4 4 4 1.42-1.41L3.83 16l2.58-2.58zM16 28.17l-2.59-2.59L12 27l4 4 4-4-1.41-1.41L16 28.17zm0-24.34l2.58 2.58L20 5l-4-4-4 4 1.41 1.42L16 3.83zM22 16a6 6 0 1 0-2.53 4.89l3.82 3.82 1.42-1.42-3.82-3.82A6 6 0 0 0 22 16zm-6 4a4 4 0 1 1 4-4 4 4 0 0 1-4 4z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealthZoomPan24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealthZoomPan24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealthZoomPan24;
}());
export { WatsonHealthZoomPan24 };
var WatsonHealthZoomPan24Module = /** @class */ (function () {
    function WatsonHealthZoomPan24Module() {
    }
    WatsonHealthZoomPan24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealthZoomPan24
                    ],
                    exports: [
                        WatsonHealthZoomPan24
                    ]
                },] },
    ];
    return WatsonHealthZoomPan24Module;
}());
export { WatsonHealthZoomPan24Module };
//# sourceMappingURL=24.js.map