class LoadingHelper {
    /**
     * shows the loading gif to the user and
     * @param scrollToTop
     */
    static ShowLoadingGif(scrollToTop = false) {
        var prependText = "<div class=\"loadingGif\"><img id=\"loading\" src=\"../Content/Images/loading-image.gif\" alt=\"loading ...\" style=\"display:block; width: 66px; left:50%; top: 50%; position: fixed; transform: translate(-50%, -50%);\"></div>";
        $("body").prepend(prependText);
        $(".loadingGif").css({
            "background-color": "whitesmoke",
            "position": "fixed",
            "width": "100%",
            "height": "100%",
            "z-index": 99999,
        }).fadeTo(0, 0.8);
        if (scrollToTop === true) {
            window.scrollTo(0, 0);
        }
    }
    static HideLoadingGif() {
        $('.loadingGif').remove();
    }
}
//# sourceMappingURL=LoadingHelper.js.map