define(["spin"],function(b){var c=new b({color:"#428BCA",lines:13,length:29,width:8,radius:23,corners:1,rotate:0,direction:1,speed:1,trail:60,shadow:false,hwaccel:false,className:"spinner",zIndex:2000000000,top:"auto",left:"auto"});var d={ENG:{isocode:"en",name:"English",englishName:"English",defaultExceptionMessage:"This clinic has been blocked."},DUT:{isocode:"nl",name:"Nederlands",englishName:"Dutch",defaultExceptionMessage:"Deze clinic is geblokkeerd."},SPA:{isocode:"es",name:"Español",englishName:"Spanish",defaultExceptionMessage:"Esta clínica ha sido bloqueado."},ARA:{isocode:"ar",name:"العربية",englishName:"Arabic",defaultExceptionMessage:"تم حظر هذه العيادة."},URD:{isocode:"ur",name:"اردو",englishName:"Urdu",defaultExceptionMessage:"یہ کلینک بلاک کر دیا گیا ہے."}};var a={showSpinner:function(g,e,j){try{if(e==="semantic"){var h=g&&g.length>0?g.find("> .spinner_el").first():$("body > .spinner_el").first();var i=h.children(".spinner_center");h.addClass("ui active inverted dimmer");i.addClass("ui big text loader");i.text(j?j:"");h.show();i.show();}else{var h=g&&g.length>0?g.find("> .spinner_el").first():$("body > .spinner_el").first();var i=h.find(".spinner_center");c.spin(i.get(0));h.show();i.show();}}catch(f){}},hideSpinner:function(g,e){try{var h=g?g.find("> .spinner_el"):$("body > .spinner_el");var i=h.children(".spinner_center");h.hide();i.hide();c.stop(i.get(0));}catch(f){}},queryParam:function(e,g){g=encodeURIComponent(g).replace(/%5B/g,"[").replace(/%5D/g,"]");var h=new RegExp("(?![\\?&])"+g+"=([^&#]*)");var f=h.exec(e);if(f===null){return"";}else{return decodeURIComponent(f[1].replace(/\+/g," "));}},localize:function(f,e){return $.i18n.prop.apply(f,e);},getIsoCode:function(e){return d[e]["isocode"];},getLanguageName:function(e){return d[e]["name"];},getEnglishLanguageName:function(e){return d[e]["englishName"];},getDefaultExceptionMessage:function(e){return d[e]["defaultExceptionMessage"];},getSupportedLanguages:function(){var f=[];for(var e in d){if(Object.prototype.hasOwnProperty.call(d,e)){f.push(e);}}return f;},toggleFullscreen:function(g,f){var e=false;var h=(g)?g.get(0):null;if(h){if(h.requestFullscreen){if(f===true){if(document.exitFullscreen){document.exitFullscreen();}else{if(document.cancelFullScreen){document.cancelFullScreen();}}}else{h.requestFullscreen();e=true;}}else{if(h.msRequestFullscreen){if(f===true){document.msExitFullscreen();}else{h.msRequestFullscreen();e=true;}}else{if(h.mozRequestFullScreen){if(f===true){document.mozCancelFullScreen();}else{h.mozRequestFullScreen();e=true;}}else{if(h.webkitRequestFullscreen){if(f===true){document.webkitCancelFullScreen();}else{h.webkitRequestFullscreen();e=true;}}}}}}return e;},isHidden:function(e){return(e&&e.css("display")==="none",e.is(":hidden")||e.css("visibility")=="hidden"||e.css("opacity")==0);},webStorage:function(e,f){if(!f){return $.cookie(e);}else{$.cookie(e,f,{path:"/",expires:365});}var g=true;if(!g){if(!f){return localStorage.getItem(e);}else{localStorage.setItem(e,f);}}}};return a;});