PageSourceSearch

https://www.usna.com/Client/Scripts/API/BBAPI-min.js?bbjsversion=7.2.3.3901

js usna.com collected 2026-10-02 06:20:52 UTC 9,000 bytes, 3 lines download raw bytes

1var BLACKBAUD=BLACKBAUD||{};BLACKBAUD.api={};(function(){BLACKBAUD.api.querystring={getQueryStringValue:function(h,f){var g,e;if(!f){f=window.location.search}f=f.toLowerCase();g=new RegExp("[?|&]"+h+"=(.*?)&");e=g.exec(f+"&");if(!e||e.length<2){return""}return decodeURIComponent(e[1].replace("+"," "))}};BLACKBAUD.api.pageInformation={rootPath:"",pageId:""};var c=[];function a(e){if(!c[e]){c[e]=new easyXDM.Rpc({remote:e+"client/scripts/easyXDM/cors/index.html"},{remote:{ajax:{}}})}return c[e]}function b(e,h,g,f){if(h==="success"){if(g){g(JSON.parse(e.responseText))}}else{if(e.status===400){if(f){f(JSON.parse(e.responseText))}}else{if(f){f()}}}}function d(h,g,e,f){if(g){g.ajax(h,function(i){b(i.jqXHR,i.textStatus,e,f)},function(){f()})}else{h.complete=function(i,j){b(i,j,e,f)};$.ajax(h)}}(function(){BLACKBAUD.api.CountryService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.CountryService.prototype={getCountries:function(e,g){var f=this.baseUrl+"/Country";d({url:f,type:"GET"},this._rpc,e,g)},getStates:function(g,e,h){var f=this.baseUrl+"/Country/"+g+"/State";d({url:f,type:"GET"},this._rpc,e,h)},getAddressCaptions:function(g,e,h){var f=this.baseUrl+"/Country/"+g+"/AddressCaptions";d({url:f,type:"GET"},this._rpc,e,h)}}}());(function(){BLACKBAUD.api.CodeTableService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.CodeTableService.prototype={getEntries:function(h,e,f){var g=this.baseUrl+"/CodeTable/"+h;d({url:g,type:"GET"},this._rpc,e,f)},getTitles:function(h,e,f){var g=this.baseUrl+"/CodeTable/"+h+"/Title";d({url:g,type:"GET"},this._rpc,e,f)}}}());(function(){BLACKBAUD.api.QueryService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.QueryService.prototype={getResults:function(g,l,e,k){var n,f,j,h,o,m=this.baseUrl+"/Query/"+g;if(k){o="";for(f=0;f<k.length;f++){j=k[f];n=j.columnName;h=j.value;if(n&&h){if(o.length>0){o+="&"}o+=encodeURIComponent(n)+"="+encodeURIComponent(h)}}if(o.length>0){m+="?"+o}}d({url:m,type:"GET"},this._rpc,l,e)}}}());(function(){BLACKBAUD.api.UserService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.UserService.prototype={getProfile:function(e,g){var f=this.baseUrl+"/User";d({url:f,type:"GET"},this._rpc,e,g)}}}());(function(){BLACKBAUD.api.ImageService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.ImageService.prototype={getImagesByFolderGUID:function(f,e,h){var g=this.baseUrl+"/Images?FolderGUID="+encodeURIComponent(f);d({url:g,type:"GET"},this._rpc,e,h)},getImagesByTag:function(e,f,h){var g=this.baseUrl+"/Images?Tag="+encodeURIComponent(e);d({url:g,type:"GET"},this._rpc,f,h)},getImagesByFolder:function(h,e,g){var f=this.baseUrl+"/Images/"+encodeURIComponent(h);d({url:f,type:"GET"},this._rpc,e,g)}}}());(function(){BLACKBAUD.api.ConsentOptionService=function(g){var e,f;if(typeof g==="string"){f=g}else{if(typeof g==="object"){f=g.url;e=g.crossDomain}}if(!f){f=BLACKBAUD.api.pageInformation.rootPath}if(e){this._rpc=a(f)}this.baseUrl=f+"WebApi"};BLACKBAUD.api.ConsentOptionService.prototype={getConsentOptions:function(h,e,g){var f=this.baseUrl+"/ConsentOption/"+h;d({url:f,type:"GET"},this._rpc,e,g)}}}())}());
2(function(){var d,h,f;d=500;function c(i,j){var k="BBElementBlock";if(!i){i="Processing..."}if(j){k+=" BBPageBlock"}return{message:"<div class='"+k+"'><span>"+i+"</span></div>",overlayCSS:{backgroundColor:"#CCCCCC"}}}f=[];
2function b(i){if(i){if(typeof i==="string"){return document.getElementById(i)}else{if(i instanceof $){return i[0]}}return i.dom||i}return null}function g(k){var j,l;j=f.length;while(j--){l=f[j];if(l.el===k){return l}}}function a(j){var i;i={el:j,waitCount:0};f.push(i);return i}function e(j){var k;k=f.length;while(k--){if(j===f[k]){f.splice(k,1);break}}}BLACKBAUD.api.blockElement=function(l,k,i){var j,m;$.blockUI.defaults.css={};if(i===false||i===0){i=0}else{i=i||d}l=b(l);m=g(l);if(!m){m=a(l);if(l){j=setTimeout(function(){$(l).block(c(k,false))},i)}else{j=setTimeout(function(){$.blockUI(c(k,true))},i)}m.delayHandle=j}m.waitCount++};BLACKBAUD.api.unblockElement=function(j){var i,k;j=b(j);k=g(j);if(k){k.waitCount--;if(k.waitCount===0){i=k.delayHandle;if(i){clearTimeout(i);k.delayHandle=null}if(j){$(j).unblock()}else{$.unblockUI()}e(k)}}}})();
3(function(){function f(g){return g.baseUrl+"WebApi/"+g.contextId+"/Donation"}function e(){return BLACKBAUD.api.pageInformation.rootPath}var b=[];function d(g){if(!b[g]){if(window.easyXDM){b[g]=new easyXDM.Rpc({remote:g+"client/scripts/easyXDM/cors/index.html"},{remote:{ajax:{}}})}}return b[g]}function c(g,j,i,h){if(j==="success"){if(i){i(JSON.parse(g.responseText))}}else{if(g.status===400){if(h){h(JSON.parse(g.responseText))}}else{if(h){h()}}}}function a(k,j,h,i){function g(l){if(i){if(l&&l.data){i(l.data)}else{i()}}}if(j){j.ajax(k,function(l){c(l.jqXHR,l.textStatus,h,g)},function(){i()})}else{k.complete=function(l,m){c(l,m,h,i)};$.ajax(k)}}BLACKBAUD.api.DonationService=function(h,j){var g,i;if(typeof j==="string"){i=j}else{if(typeof j==="object"){i=j.url;g=j.crossDomain}}if(!i){i=BLACKBAUD.api.pageInformation.rootPath}if(g){this._rpc=d(i)}this.baseUrl=i;this.contextId=h};BLACKBAUD.api.DonationService.prototype={validateDonationRequest:function(h,g,j){var i=f(this)+"/ValidateDonationRequest";a({url:i,type:"POST",data:JSON.stringify(h),contentType:"application/json"},this._rpc,g,j)},createDonation:function(i,g,j){var h=f(this)+"/Create";function k(l){if(k){g(l)}if(l.BBSPCheckoutUri){location.href=l.BBSPCheckoutUri}else{if(l.PaymentPageUri){location.href=l.PaymentPageUri}}}a({url:h,type:"POST",data:JSON.stringify(i),contentType:"application/json"},this._rpc,k,j)},getDonation:function(h,g,j){var i=f(this)+"/"+h;a({url:i,type:"GET"},this._rpc,g,j)},getBankingTypeData:function(g,i){var h=f(this)+"/GetBankingSystemTypes";a({url:h,type:"POST"},this._rpc,g,i)},getAccountTypeData:function(g,i){var h=f(this)+"/GetAccountTypes";a({url:h,type:"POST"},this._rpc,g,i)},getOriginIdAndTime:function(g,i){var h=f(this)+"/GetOriginIdAndTime";a({url:h,type:"POST"},this._rpc,g,i)},completeBBSPDonation:function(h,g,j){var i=f(this)+"/"+h+"/CompleteBBSPDonation";a({url:i,type:"POST"},this._rpc,g,j)},getDonationConfirmationHtml:function(h,g,j){var i=f(this)+"/"+h+"/ConfirmationHtml";a({url:i,type:"GET"},this._rpc,g,j)},getRecurringGiftInstallmentAmount:function(i,g){var j=0,h=0,k=0;j=parseFloat(i).toFixed(2);h=parseInt(g,10);if(!j||!h||j<=0||h<=0){return 0}k=j/Math.floor(h);return k.toFixed(2)},getCheckoutPublicKey:function(g,i){var h=e()+"WebApi/donationcheckout";a({url:h,type:"GET",contentType:"application/json"},this._rpc,g,i)},getADFEditorContentInformation:function(h,g,j){var i=e()+"WebApi/DonationEditor/"+h;a({url:i,type:"GET",},this._rpc,g,j)},checkoutDonationCreate:function(h,g,j){var i=e(this)+"WebApi/ADFCheckout/Create";a({url:i,type:"POST",data:JSON.stringify(h),contentType:"application/json"},this._rpc,g,j)},checkoutDonationComplete:function(i,g,j){var h=e(this)+"WebApi/ADFCheckout/Complete";a({url:h,type:"POST",data:JSON.stringify(i),contentType:"application/json"},this._rpc,g,j)},checkoutDonationCancel:function(i,g,j){var h=e(this)+"WebApi/ADFCheckout/Delete";a({url:h,type:"POST",data:JSON.stringify(i),contentType:"application/json"},this._rpc,g,j)},getRecurringGiftLastPaymentDate:function(l,j,n,r,m,w){var o=0,y=0,u,A,g=0,C=0,s=-1,x=false,v=false,k=false,t=0,p=0,q=0,i=0;o=parseInt(l,10)-1;y=parseInt(j,10);u=new Date(n);A=u;if(w&&y==1){g=0;C=0;s=parseInt(w,10)}else{if(y==7){g=0;C=0}else{g=parseInt(r,10)-1;C=parseInt(m,10)}}if(!o||o<=0){return}if(!y||1>y||(y>4&&y!=7)){return}if(!n){return}x=(g&&0<g&&g<13);v=(C&&0<C&&C<32);k=(s>=0&&s<7);if(x&&!v||(y==1&&!k)){return}else{if(x){t=u.getMonth();p=u.getDate();q=u.getFullYear();i=(g<t)||(g===t&&C<p);if(i){u.setYear(q+1)}u.setDate(C);u.setMonth(g)}else{if(v){if(C<u.getDate()){u.setMonth(u.getMonth()+1)}u.setDate(C)}else{if(n&&k){var B=u.getDay();if(B!=s){var h=new Date(n),z=new Date(n);if(B!=1){z.setDate(u.getDate()-B+(B==0?-6:1))}while(z<h||z.getDay()!=s){z.setDate(z.getDate()+1)}u=z}}}}}switch(y){case 1:A=u;A.setDate(u.getDate()+(7*o));break;case 2:A.setMonth(u.getMonth()+o);break;case 3:A.setMonth(u.getMonth()+(3*o));break;case 4:A.setYear(u.getFullYear()+o);break;case 7:A.setDate(u.getDate()+(28*o));break}return A}}}());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.