var popupLayout=function(){var t=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){$(".modal").on("show.bs.modal",n);$(window).resize(function(){$(".modal:visible").each(n)})}),n=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){var t,i;$(".modal:visible").css("display","block");t=$(".modal:visible").find(".modal-dialog");t.is(":visible")?(i=($(window).height()-t.height())/2,i>0&&t.css("margin-top",i)):setTimeout(function(){$(".modal").is(":visible")&&n()},50)});return{popupLayoutOnready:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){t();$("#BpModal").modal("show");$("#BpModal").modal({backdrop:"static",keyboard:!1});$(".modal:visible").each(n)}),clientPopupLayoutOnReady:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){$("#BpClientModal").modal({backdrop:"static",keyboard:!1});$("#BpClientModal.modal:visible").each(n)}),hideBpModalPopUp:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){$("#BpModal").modal("hide")}),hideBpModalMiddlePopUp:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){$("#BpModalMiddlePopup").hide()}),preHidePopUpActions:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){}),hideClientBpModalPopUp:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){popupLayout.preHidePopUpActions();$("#BpClientModal").modal("hide");popupLayout.preHidePopUpActions=globalExceptionHandler.exceptionHandlerWithoutPopUp(function(){})}),addPopUp:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){$(".frontLayer .pop-up-div").append($(n)[0].outerHTML)}),removePopUp:globalExceptionHandler.exceptionHandlerWithoutPopUp(function(n){$(".frontLayer .pop-up-div "+n).remove()})}}()