"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};jse.libs.loading_spinner=jse.libs.loading_spinner||{},function(o){var e=[];o.show=function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";if(void 0!==o&&"object"!==(void 0===o?"undefined":_typeof(o)))throw new Error('Invalid argument provided for the "show" method: '+(void 0===o?"undefined":_typeof(o)));if(0!==o.length){o=o||$("body");var n=$('<div class="loading-spinner"></div>'),t=80;return n.html('<i class="fa fa-spinner fa-pulse"></i>').css({width:o.innerWidth()+"px",height:o.innerHeight()+"px",boxSizing:"border-box",background:"#FFF",opacity:"0.8",position:"absolute",top:o.offset().top,left:o.offset().left,fontSize:t+"px",color:"#002337",zIndex:i}).appendTo("body"),n.find("i").css({position:"absolute",left:n.width()/2-t/2,top:n.height()/2-t/2}),e.push(n),n}},o.hide=function(o){var i=e.indexOf(o),n=$.Deferred();if(-1===i)throw new Error("The provided spinner instance does not exist.");return e.splice(i,1),o.fadeOut(400,(function(){o.remove(),n.resolve()})),n.promise()}}(jse.libs.loading_spinner);