var PrimeGov;(function(n){var t;(function(n){var t;(function(t){var t=function(){function n(){}return n.prototype.showLoader=function(n){n?$("#LoadingArea").show():$("#LoadingArea").hide()},n.prototype.placeCaretAtEnd=function(n){var t,r,i;n.focus();typeof getSelection!="undefined"&&typeof document.createRange!="undefined"?(t=document.createRange(),t.selectNodeContents(n),t.collapse(!1),r=window.getSelection(),r.removeAllRanges(),r.addRange(t)):typeof document.body.createTextRange!="undefined"&&(i=document.body.createTextRange(),i.moveToElementText(n),i.collapse(!1),i.select())},n.prototype.bootstrapConfirm=function(n,t,i,r){BootstrapDialog.show({title:r==null?_Common.Confirm:r,message:n,type:BootstrapDialog.TYPE_WARNING,onshow:function(n){$(document).trigger("bootstrapdialog.onshow",n)},onshown:function(n){$(document).trigger("bootstrapdialog.onshown",n)},buttons:[{label:t==null?_Common.Yes:t,action:function(n){n.close();i()}},{label:_Common.Cancel,action:function(n){n.close()}}]})},n}();n.ViewHelpers=t})(t=n.ViewHelpers||(n.ViewHelpers={}))})(t=n.Common||(n.Common={}))})(PrimeGov||(PrimeGov={})),function(n){var t;(function(n){var t;(function(t){var t=function(){function n(){this.onErrorDefault=function(n,t,i){t?handleError(t.toUpperCase()+": "+i,n):handleError(i,n)}}return n.prototype.apiGet=function(n,t,i){$.ajax({method:"GET",url:n,contentType:"application/json; charset=utf-8",success:t,error:i!==null&&i!==void 0?i:this.onErrorDefault})},n.prototype.apiGetJson=function(n,t,i,r){$.ajax({method:"GET",url:n,data:t,contentType:"application/json; charset=utf-8",success:i,error:r!==null&&r!==void 0?r:this.onErrorDefault})},n.prototype.apiPost=function(n,t,i,r){t!=null&&(t=JSON.stringify(t));$.ajax({method:"POST",url:n,data:t,contentType:"application/json; charset=utf-8",success:i,error:r!==null&&r!==void 0?r:this.onErrorDefault})},n.prototype.apiPostSerialize=function(n,t,i,r){$.ajax({method:"POST",url:n,data:t,contentType:"application/x-www-form-urlencoded; charset=UTF-8",success:i,error:r!==null&&r!==void 0?r:this.onErrorDefault})},n.prototype.downloadGeneratedDocument=function(n,t,i){var u,f,r,e,o;if(i||(i="application/octet-stream"),u=window,f=window.URL||u.webkitURL||u.mozURL||u.msURL,f&&(r=document.createElement("a"),"download"in r))try{e=new Blob([t],{type:i});o=f.createObjectURL(e);r.setAttribute("href",o);r.setAttribute("download",n);r.click()}catch(s){console.log(s)}},n}();n.ApiService=t})(t=n.ApiService||(n.ApiService={}))})(t=n.Common||(n.Common={}))}(PrimeGov||(PrimeGov={})),function(n){var t;(function(n){var t;(function(t){var t=function(){function n(){}return n.prototype.parseQueryString=function(n){for(var o,f=n.split("&"),t={},r=0;r<f.length;r++){var e=f[r].split("=",2),i=decodeURIComponent(e[0]),u=decodeURIComponent(e[1]);typeof t[i]=="undefined"?t[i]=decodeURIComponent(u):typeof t[i]=="string"?(o=[t[i],decodeURIComponent(u)],t[i]=o):t[i].push(decodeURIComponent(u))}return t},n.prototype.updateQueryStringParameter=function(n,t,i){var u=encodeURIComponent(i),r=n.indexOf("#"),o=r===-1?"":n.substr(r),f,e;return n=r===-1?n:n.substr(0,r),f=new RegExp("([?&])"+t+"=.*?(&|$)","i"),e=n.indexOf("?")!==-1?"&":"?",u?n=n.match(f)?n.replace(f,"$1"+t+"="+u+"$2"):n+e+t+"="+u:(n=n.replace(new RegExp("([?&]?)"+t+"=[^&]*","i"),""),n.slice(-1)==="?"&&(n=n.slice(0,-1)),n.indexOf("?")===-1&&(n=n.replace(/&/,"?"))),n+o},n}();n.AppHelpers=t})(t=n.AppHelpers||(n.AppHelpers={}))})(t=n.Common||(n.Common={}))}(PrimeGov||(PrimeGov={}))