@blackbaud/auth-client
Advanced tools
Comparing version 2.46.0 to 2.47.0
@@ -1,1 +0,1 @@ | ||
window.BBAuthClient=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(6)),i(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=encodeURIComponent;function s(e){let t="https://signin.blackbaud.com/signin/?redirectUrl="+o(location.href);return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=s();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${o(n)}=${o(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=s(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+o(e);this.navigate(t)}static redirectToError(e){let t,n;switch(e){case i.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${o(location.href)}`;n&&(s+="&code="+o(n)),this.navigate(s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(1);function s(e,t){if("https://host.nxt.blackbaud.com"===e.origin){const n=e.data;return!!n&&n.source===t}return!1}class r{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")}static messageIsFromOmnibar(e){return s(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return s(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return s(e,"skyux-spa-omnibar-toast-container")}static handleGetToken(e,t,n,o){return i.BBAuth.getToken({disableRedirect:n}).then(n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})},n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})})}static postLocationChangeMessage(e,t){e&&r.postOmnibarMessage(e,{href:t,messageType:"location-change"})}static handleNavigate(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||o.BBAuthNavigator.navigate(t.url)}static getCurrentUrl(){return document.location.href}}t.BBAuthInterop=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static createIframe(e,t,n){const i=document.createElement("iframe");return i.className=t,i.title=n,i.src=e,i}static addIframe(e,t,n){const i=this.createIframe(e,t,n);return this.addElToBodyTop(i),i}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(5),s=n(1);function r(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,s){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",s),a=r(a,"permission_scope",o,!(!n&&!s||!o)),new Promise((n,o)=>{!function(e,t,n,o,s){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:s({code:i.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:s({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:s({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&s({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===i.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(t);break;default:s.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t,n="GET",i){return new Promise((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 200:let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e);break;default:s(r)}},r.open(n,e,!0),r.setRequestHeader("Authorization","Bearer "+t),r.setRequestHeader("Accept","application/json"),n){case"GET":r.send();break;case"PATCH":case"POST":r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify(i))}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"};class o{static getRegisteredDomain(){for(const e of Object.keys(i)){const t="."+e;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return i[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=o,o.CURRENT_DOMAIN=window.location.hostname},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class s{static getUrl(e,t){const n=o.exec(e);let i=e,s=t?t.zone:void 0;return s&&(s=s.replace("-","")),n&&(n[3]&&(s=n[3].substring(1)),i=`https://${n[1]}-${s}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return s.getTokenInternal(e)}static clearTokenCache(){s.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(s.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const o=function(e){const{envId:t,permissionScope:n,leId:i}=e;return"token|"+(i||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=s.tokenCache[o]=s.tokenCache[o]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}t.BBAuth=s,s.mock=!1,s.tokenCache={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function i(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class o{static registerScript(e){return new Promise((t,n)=>{const i=document.createElement("script");i.onload=t,i.onerror=n,i.src=e,document.body.appendChild(i)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=i(e),o=i(t);for(let e=0;e<n.length;e++)if(e<o.length){if(o[e]>n[e])return!0;if(o[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():o.registerScript(e)}}t.BBOmnibarScriptLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),o=n(3),s=n(2);let r,a,c,d,u,l;function m(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){a&&s.BBAuthInterop.postOmnibarMessage(a,{href:l,messageType:"location-change"})}function p(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(a,{envId:u.envId,leId:u.leId,messageType:"nav-ready",svcId:u.svcId}),h(),a.classList.add("sky-omnibar-toast-container-ready"),d();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then(e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:n})},e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:n})});break;case"navigate-url":u.navigateUrlCallback(t.url);break;case"navigate":u.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(a.style.height=t.height+"px",a.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",a.classList.remove("sky-omnibar-toast-container-empty")):a.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":u.openMenuCallback()}var n,o}class f{static init(e){return u=e,l=e.url,c||(c=new Promise(e=>{d=e,a||(r=o.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),a=document.createElement("iframe"),a.src=f.CONTAINER_URL,a.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",a.title="Toast container",document.body.appendChild(a),window.addEventListener("message",p))})),c}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(a,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){l=e,h()}static destroy(){r&&o.BBAuthDomUtility.removeCss(r),a&&o.BBAuthDomUtility.removeEl(a),l=a=u=c=d=r=void 0,window.removeEventListener("message",p)}}t.BBOmnibarToastContainer=f,f.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(4),r="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user";let a;class c{static getSettings(){return i(this,void 0,void 0,(function*(){return new Promise((e,t)=>i(this,void 0,void 0,(function*(){try{const n=yield o.BBAuth.getToken({disableRedirect:!0}),i=setTimeout(t,this.GET_SETTINGS_TIMEOUT);try{const t=yield s.BBCsrfXhr.requestWithToken(r,n);clearTimeout(i),e(t.settings)}catch(e){t()}}catch(n){try{e(this.getLocalSettings())}catch(e){t()}}})))}))}static updateSettings(e,t){return i(this,void 0,void 0,(function*(){return new Promise((n,c)=>{a&&(clearTimeout(a),a=void 0),a=setTimeout(()=>i(this,void 0,void 0,(function*(){a=void 0;try{const i=yield o.BBAuth.getToken({disableRedirect:!0});try{const o=yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t});n(o)}catch(e){c(e)}}catch(e){let n;try{n=this.getLocalSettings()}catch(e){n={}}try{n.omnibar=n.omnibar||{},Object.assign(n.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(n))}catch(e){c()}}})),this.UPDATE_DELAY)})}))}static getLocalSettings(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))}}t.BBUserSettings=c,c.UPDATE_DELAY=1e3,c.GET_SETTINGS_TIMEOUT=5e3,c.LOCAL_STORAGE_KEY="auth-client-local-user-settings"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(0)),i(n(14)),i(n(16)),i(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4),o=n(13),s=n(5);t.BBAuthTokenIntegration=class{static getToken(e,t,n,r){return void 0!==s.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?i.BBCsrfXhr.request(s.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,r,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:r,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(1),s=n(7);class r{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return r.iframeEl=document.getElementById("auth-cross-domain-iframe"),r.iframeEl||(r.iframeEl=i.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),r.iframeEl.id="auth-cross-domain-iframe",r.iframeEl.hidden=!0),r.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,i=this.tokenRequests[n];if("security-token-svc"===t.source||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};i.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,i)=>{const o=this.requestCounter++;r.tokenRequests[o]={args:t,reject:i,resolve:n},r.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:o,source:"auth-client",value:t},r.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case s.BBAuthTokenErrorCode.Offline:t(e);break;case s.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}}}t.BBAuthCrossDomainIframe=r,r.listenerSetup=!1,r.iframeReadyPromise=new Promise(e=>r.iframeReadyResolve=e),r.tokenRequests={},r.requestCounter=0,r.TARGETORIGIN="https://sts.sky.blackbaud.com"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(2),s=n(4),r=n(3),a=n(1);function c(e,t,n,s){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){const a=r.data;var u,l;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&"context-provider"===a.hostId)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,i.BBAuth.getToken({disableRedirect:l}).then(e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),s({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:o,leIdRequired:r,svcId:a}=e;return!t&&n||!o&&r?new Promise((t,n)=>{a?i.BBAuth.getToken().then(o=>{let r="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(a);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(r,o).then(o=>{const s=o&&o.items,r=s&&s.length;1===r?(e.url=s[0].url,t(e)):r>1?c(e,o,t,n):e.disableRedirect?n(i.BBAuthTokenErrorCode.InvalidEnvironment):d()})}):d()}):Promise.resolve(e)}}t.BBContextProvider=u,u.url="https://host.nxt.blackbaud.com/omnibar/welcome"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(17)),i(n(28)),i(n(29))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(2),r=n(1),a=n(3),c=n(18),d=n(22),u=n(23),l=n(9),m=n(27),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading";let f,v,b,y,g,B,k,I,T,A,w,O;function E(){B=a.BBAuthDomUtility.addIframe(function(){const e=k.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),"sky-omnibar-iframe "+p,"Navigation")}function N(){const e=k.theme;return e&&"modern"===e.name}function _(){if(N()){let e=s.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function C(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(B,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function S(){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-open"})}function R(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter(e=>!e.isRead).length,$()}function x(e){m.BBOmnibarVertical.refreshSettings(e.value)}function P(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}yield u.BBOmnibarPushNotifications.connect({customMessageCallback:x,envId:k.envId,handleNavigate:j,handleNavigateUrl:q,leId:k.leId,notificationsCallback:R,openPushNotificationsMenu:S,showVerticalNav:_(),svcId:k.svcId})}))}function M(){return i(this,void 0,void 0,(function*(){let e;o.BBAuth.clearTokenCache();try{e=yield o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})}catch(e){}s.BBAuthInterop.postOmnibarMessage(B,{messageType:"refresh-user",token:e}),_()&&m.BBOmnibarVertical.refreshUser(e),e?P():u.BBOmnibarPushNotifications.disconnect()}))}function U(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function L(){d.BBOmnibarUserActivityPrompt.hide()}function D(){c.BBOmnibarUserActivity.startTracking(M,U,L,k.allowAnonymous,I)}function j(e){s.BBAuthInterop.handleNavigate(k.nav,e)}function q(e){r.BBAuthNavigator.navigate(e)}function G(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=k.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(B,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return C(),t},history.replaceState=function(){const e=t.apply(history,arguments);return C(),e}}(),s.BBAuthInterop.postOmnibarMessage(B,{compactNavOnly:k.compactNavOnly||_(),enableHelp:k.enableHelp,envId:k.envId,hideResourceLinks:k.hideResourceLinks,leId:k.leId,localNavItems:n&&n.localNavItems,localNotifications:!!k.notifications,localSearch:!!k.onSearch,messageType:"nav-ready",navVersion:k.navVersion,services:n&&n.services,svcId:k.svcId,theme:k.theme}),function(){const e=k.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(B,{messageType:"notifications-update",notifications:e})}})}(),P(!0),C(),T();break;case"display-ready":y.classList.remove(p),B.classList.remove(p);break;case"expand":B.classList.add(h);break;case"collapse":B.classList.remove(h);break;case"navigate-url":q(t.url);break;case"navigate":j(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(k.onSearch){const t=yield k.onSearch(e);s.BBAuthInterop.postOmnibarMessage(B,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(B,t.tokenRequestId,t.disableRedirect,D);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=k.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":o=t.notifications,u.BBOmnibarPushNotifications.updateNotifications(o);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i="sky-omnibar-environment-visible",o="sky-omnibar-environment-description-present",s=document.body.classList;if(e=e||"",v.innerText=e,e)if(s.add(i),t)if(f.classList.add(o),n){const e=document.createElement("a");e.href=n,e.innerText=t,b.appendChild(e)}else b.innerText=t;else f.classList.remove(o);else s.remove(i)}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n,i;const o=null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.images)||void 0===n?void 0:n.favIcon)||void 0===i?void 0:i.url;o&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach(e=>{e.href=o}),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach(e=>{e.remove()}))}(t.branding);break;case"legacy-keep-alive-url-change":I=t.url,D();break;case"selected-service-update":w=t.serviceName,$()}var o}function $(){if(O){const e=O.slice();w&&e.push(w);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return k=k=e,I=k.legacyKeepAliveUrl,new Promise(t=>{T=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=k.theme;if(o){N()&&(t="4px",n="#fff",i="solid 1px #e2e3e4");const s=o.accent;n=o.backgroundColor||n,!1===s?e="display: none;":s&&s.color&&(e=`background-color: ${s.color};`)}g=a.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${n};\n border-bottom: ${i};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ${t};\n ${e}\n}\n\n.sky-omnibar-placeholder.${p} {\n display: block;\n}\n\n.sky-omnibar-iframe.${p} {\n visibility: hidden;\n}\n\n.${h} {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),y=document.createElement("div"),y.className="sky-omnibar-placeholder "+p,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),f=document.createElement("div"),f.className="sky-omnibar-environment",v=document.createElement("span"),v.className="sky-omnibar-environment-name",f.appendChild(v),b=document.createElement("span"),b.className="sky-omnibar-environment-description",f.appendChild(b),a.BBAuthDomUtility.addElToBodyTop(f),E(),_()&&m.BBOmnibarVertical.load(e,B),window.addEventListener("message",G)})}static update(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"update",updateArgs:e})}static setTitle(e){O=e&&e.titleParts,$()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return k?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(B),a.BBAuthDomUtility.removeEl(f),a.BBAuthDomUtility.removeCss(g),window.removeEventListener("message",G),k=g=y=B=f=b=v=T=A=O=w=void 0}}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(5),s=n(4),r=n(1),a=n(19),c=n(20),d=n(21);let u,l,m,h,p,f,v,b,y,g,B,k,I,T,A="";function w(){b=Date.now()}function O(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function E(){const e=Date.now();(!y||e-y>S.MIN_RENEWAL_RETRY)&&(y=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch(()=>{}))}function N(){v=!0,f()}function _(){v=!1,w(),h()}function C(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===B&&s===k||(S.stopTracking(),p=e,f=t,h=n,B=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",O),function(){B||E(),g=setInterval(()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(A,I,B);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:B,closeInactivityPrompt:_,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:E,showInactivityPrompt:N})})),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,e=>{I=e.legacyTtl,A=e.refreshId,T=e.legacySigninUrl}),u=!0)}static userRenewedSession(){_(),E()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",O),g&&(clearInterval(g),g=void 0),u=l=m=b=y=v=p=f=h=B=k=void 0}}t.BBOmnibarUserActivity=S,S.ACTIVITY_TIMER_INTERVAL=1e3,S.MIN_RENEWAL_RETRY=6e4,S.INACTIVITY_PROMPT_DURATION=12e4,S.MIN_RENEWAL_AGE=3e5,S.MAX_SESSION_AGE=54e5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:i,inactivityPromptDuration:o,isShowingInactivityPrompt:s,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===i)return;!t&&m>i&&d();const h=i-o,p=i-a+c;s?m<h&&n():r>p?u():!t&&m>h&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),o=n(4);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const r=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{r.then(n=>{let i;if(null===n)i=null;else if("number"==typeof t){const e=Date.now()+t;i=Math.min(n,e)}else i=n;e(i)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),o=n(1),s=n(5);let r,a,c,d,u,l,m,h,p={};function f(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function v(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,s=e&&e.refreshId;n||u||(h?o.BBAuthNavigator.navigate(h):o.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&s!==p.refreshId&&function(e){m&&i.BBAuthInterop.postOmnibarMessage(m,e,f(a))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case f(a):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,h=t.signinUrl,d(p)}}(e)}}class g{static start(e,t,n,i){r&&e===u&&t===a||(g.stop(),u=e,c=n,a=t,d=i,function(){const e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);l=v("sky-omnibar-iframe-session-watcher",e)}(),a&&(m=v("sky-omnibar-iframe-legacy-keep-alive",a)),window.addEventListener("message",y,!1),r=!0)}static stop(){window.removeEventListener("message",y,!1),l&&(document.body.removeChild(l),l=void 0),m&&(document.body.removeChild(m),m=void 0),p={},r=u=c=a=h=d=void 0}}t.BBOmnibarUserSessionWatcher=g,g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=s.BBAuthDomain.getSTSDomain()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(2);let s,r,a;function c(e){if(!o.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,s=i.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=i.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(i.BBAuthDomUtility.removeEl(r),i.BBAuthDomUtility.removeCss(s),r=s=a=void 0,window.removeEventListener("message",c))}}t.BBOmnibarUserActivityPrompt=d,d.url="https://host.nxt.blackbaud.com/omnibar/inactivity"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(24),s=n(0),r=n(2),a=n(8),c=n(9);let d,u,l=!1;const m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};class h{static connect(e){return i(this,void 0,void 0,(function*(){if(!l){d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,BBNotificationsClient.BBNotifications.init({tokenCallback:()=>s.BBAuth.getToken({disableRedirect:!0,envId:e.envId,leId:e.leId})});(yield this.pushNotificationsEnabled())&&(yield function(e){return i(this,void 0,void 0,(function*(){yield c.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:e.customMessageCallback,customMessageType:"ui-config-global-settings-update"})}}))}static disconnect(){return i(this,void 0,void 0,(function*(){l&&(d=void 0,c.BBOmnibarToastContainer.destroy(),yield u,BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){BBNotificationsClient.BBNotifications.updateNotifications(e)}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){if(l){const e=m[d.svcId];if(e)return!e.requiresNotif||function(e,t){return i(this,void 0,void 0,(function*(){let n;try{n=yield s.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})}catch(e){return!1}let i=o(n)["1bb.entitlements"];return!!i&&(i=Array.isArray(i)?i:[i],i.indexOf("notif")>-1)}))}(d.envId,d.leId)}return!1}))}}t.BBOmnibarPushNotifications=h,h.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js"},function(e,t,n){"use strict";var i=n(25);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var i=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,s=0,r=0,a="";o=t.charAt(r++);~o&&(i=s%4?64*i+o:o,s++%4)?a+=String.fromCharCode(255&i>>(-2*s&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),s=n(3),r=n(2),a=n(1),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m=new Set;let h,p,f,v,b,y,g;function B(){var e,t;return null===(t=null===(e=h)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function k(){r.BBAuthInterop.postLocationChangeMessage(f,p)}function I(){document.body.classList.add(l)}function T(){document.body.classList.remove(l)}function A(e,t){if(t){const t=Date.now().toString();m.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?I():T()}function w(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=b.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(f,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(f,{envId:b.envId,leId:b.leId,messageType:"nav-ready",minimized:B(),navVersion:b.navVersion,services:n&&n.services,svcId:b.svcId,theme:b.theme}),k(),y();break;case"display-ready":v.classList.remove(d);break;case"expand":v.classList.add(c);break;case"collapse":v.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(b.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(f,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return b=e,new Promise(e=>i(this,void 0,void 0,(function*(){y=e,g=s.BBAuthDomUtility.addCss(`\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .sky-omnibar-vertical-iframe-wrapper:not(.${c}) {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.${d} .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.${c} {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .${u} {\n margin-left: 300px;\n }\n\n .${l} {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n`);try{h=yield o.BBUserSettings.getSettings()}catch(e){}!function(e){B()&&I();const t=b.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";f=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),v=document.createElement("div"),v.className="sky-omnibar-vertical-iframe-wrapper "+d,v.appendChild(f),e.insertAdjacentElement("afterend",v),document.body.classList.add(u)}(t),window.addEventListener("message",w)})))}))}static updateUrl(e){p=e,k()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(f,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n,s,a;return i(this,void 0,void 0,(function*(){m.has(e)?m.delete(e):(h=yield o.BBUserSettings.getSettings(),A(null===(n=null===(t=h)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),r.BBAuthInterop.postOmnibarMessage(f,{messageType:"update-vertical",updateArgs:{minimized:null===(a=null===(s=h)||void 0===s?void 0:s.omnibar)||void 0===a?void 0:a.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(v),s.BBAuthDomUtility.removeCss(g),document.body.classList.remove(u),T(),window.removeEventListener("message",w),m.clear(),h=p=f=v=b=y=g=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=o(),s=n&&n.fn&&n.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",s).then(()=>i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}]); | ||
window.BBAuthClient=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(6)),i(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=encodeURIComponent;function s(e){let t="https://signin.blackbaud.com/signin/?redirectUrl="+o(location.href);return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=s();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${o(n)}=${o(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=s(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+o(e);this.navigate(t)}static redirectToError(e){let t,n;switch(e){case i.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${o(location.href)}`;n&&(s+="&code="+o(n)),this.navigate(s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(1);function s(e,t){if("https://host.nxt.blackbaud.com"===e.origin){const n=e.data;return!!n&&n.source===t}return!1}class r{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")}static messageIsFromOmnibar(e){return s(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return s(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return s(e,"skyux-spa-omnibar-toast-container")}static handleGetToken(e,t,n,o){return i.BBAuth.getToken({disableRedirect:n}).then(n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})},n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})})}static postLocationChangeMessage(e,t){e&&r.postOmnibarMessage(e,{href:t,messageType:"location-change"})}static handleNavigate(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||o.BBAuthNavigator.navigate(t.url)}static getCurrentUrl(){return document.location.href}}t.BBAuthInterop=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static createIframe(e,t,n){const i=document.createElement("iframe");return i.className=t,i.title=n,i.src=e,i}static addIframe(e,t,n){const i=this.createIframe(e,t,n);return this.addElToBodyTop(i),i}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(5),s=n(1);function r(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,s){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",s),a=r(a,"permission_scope",o,!(!n&&!s||!o)),new Promise((n,o)=>{!function(e,t,n,o,s){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:s({code:i.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:s({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:s({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&s({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===i.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(t);break;default:s.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t,n="GET",i){return new Promise((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 200:let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e);break;default:s(r)}},r.open(n,e,!0),r.setRequestHeader("Authorization","Bearer "+t),r.setRequestHeader("Accept","application/json"),n){case"GET":r.send();break;case"PATCH":case"POST":r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify(i))}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"};class o{static getRegisteredDomain(){for(const e of Object.keys(i)){const t="."+e;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return i[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=o,o.CURRENT_DOMAIN=window.location.hostname},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class s{static getUrl(e,t){const n=o.exec(e);let i=e,s=t?t.zone:void 0;return s&&(s=s.replace("-","")),n&&(n[3]&&(s=n[3].substring(1)),i=`https://${n[1]}-${s}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return s.getTokenInternal(e)}static clearTokenCache(){s.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(s.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const o=function(e){const{envId:t,permissionScope:n,leId:i}=e;return"token|"+(i||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=s.tokenCache[o]=s.tokenCache[o]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}t.BBAuth=s,s.mock=!1,s.tokenCache={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function i(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class o{static registerScript(e){return new Promise((t,n)=>{const i=document.createElement("script");i.onload=t,i.onerror=n,i.src=e,document.body.appendChild(i)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=i(e),o=i(t);for(let e=0;e<n.length;e++)if(e<o.length){if(o[e]>n[e])return!0;if(o[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():o.registerScript(e)}}t.BBOmnibarScriptLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),o=n(3),s=n(2);let r,a,c,d,u,l;function m(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){a&&s.BBAuthInterop.postOmnibarMessage(a,{href:l,messageType:"location-change"})}function p(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(a,{envId:u.envId,leId:u.leId,messageType:"nav-ready",svcId:u.svcId}),h(),a.classList.add("sky-omnibar-toast-container-ready"),d();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then(e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:n})},e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:n})});break;case"navigate-url":u.navigateUrlCallback(t.url);break;case"navigate":u.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(a.style.height=t.height+"px",a.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",a.classList.remove("sky-omnibar-toast-container-empty")):a.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":u.openMenuCallback()}var n,o}class f{static init(e){return u=e,l=e.url,c||(c=new Promise(e=>{d=e,a||(r=o.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),a=document.createElement("iframe"),a.src=f.CONTAINER_URL,a.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",a.title="Toast container",document.body.appendChild(a),window.addEventListener("message",p))})),c}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(a,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){l=e,h()}static destroy(){r&&o.BBAuthDomUtility.removeCss(r),a&&o.BBAuthDomUtility.removeEl(a),l=a=u=c=d=r=void 0,window.removeEventListener("message",p)}}t.BBOmnibarToastContainer=f,f.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(4),r="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user";let a;class c{static getSettings(){return i(this,void 0,void 0,(function*(){return new Promise((e,t)=>i(this,void 0,void 0,(function*(){try{const n=yield o.BBAuth.getToken({disableRedirect:!0}),i=setTimeout(t,this.GET_SETTINGS_TIMEOUT);try{const t=yield s.BBCsrfXhr.requestWithToken(r,n);clearTimeout(i),e(t.settings)}catch(e){t()}}catch(n){try{e(this.getLocalSettings())}catch(e){t()}}})))}))}static updateSettings(e,t){return i(this,void 0,void 0,(function*(){return new Promise((n,c)=>{a&&(clearTimeout(a),a=void 0),a=setTimeout(()=>i(this,void 0,void 0,(function*(){a=void 0;try{const i=yield o.BBAuth.getToken({disableRedirect:!0});try{const o=yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t});n(o)}catch(e){c(e)}}catch(e){let n;try{n=this.getLocalSettings()}catch(e){n={}}try{n.omnibar=n.omnibar||{},Object.assign(n.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(n))}catch(e){c()}}})),this.UPDATE_DELAY)})}))}static getLocalSettings(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))}}t.BBUserSettings=c,c.UPDATE_DELAY=1e3,c.GET_SETTINGS_TIMEOUT=5e3,c.LOCAL_STORAGE_KEY="auth-client-local-user-settings"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(0)),i(n(14)),i(n(16)),i(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4),o=n(13),s=n(5);t.BBAuthTokenIntegration=class{static getToken(e,t,n,r){return void 0!==s.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?i.BBCsrfXhr.request(s.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,r,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:r,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(1),s=n(7);class r{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return r.iframeEl=document.getElementById("auth-cross-domain-iframe"),r.iframeEl||(r.iframeEl=i.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),r.iframeEl.id="auth-cross-domain-iframe",r.iframeEl.hidden=!0),r.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,i=this.tokenRequests[n];if("security-token-svc"===t.source||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};i.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,i)=>{const o=this.requestCounter++;r.tokenRequests[o]={args:t,reject:i,resolve:n},r.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:o,source:"auth-client",value:t},r.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case s.BBAuthTokenErrorCode.Offline:t(e);break;case s.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}}}t.BBAuthCrossDomainIframe=r,r.listenerSetup=!1,r.iframeReadyPromise=new Promise(e=>r.iframeReadyResolve=e),r.tokenRequests={},r.requestCounter=0,r.TARGETORIGIN="https://sts.sky.blackbaud.com"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(2),s=n(4),r=n(3),a=n(1);function c(e,t,n,s){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){const a=r.data;var u,l;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&"context-provider"===a.hostId)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,i.BBAuth.getToken({disableRedirect:l}).then(e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),s({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:o,leIdRequired:r,svcId:a}=e;return!t&&n||!o&&r?new Promise((t,n)=>{a?i.BBAuth.getToken().then(o=>{let r="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(a);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(r,o).then(o=>{const s=o&&o.items,r=s&&s.length;1===r?(e.url=s[0].url,t(e)):r>1?c(e,o,t,n):e.disableRedirect?n(i.BBAuthTokenErrorCode.InvalidEnvironment):d()})}):d()}):Promise.resolve(e)}}t.BBContextProvider=u,u.url="https://host.nxt.blackbaud.com/omnibar/welcome"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(17)),i(n(28)),i(n(29))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(2),r=n(1),a=n(3),c=n(18),d=n(22),u=n(23),l=n(9),m=n(27),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading";let f,v,b,y,g,B,k,I,T,A,w,O;function E(){B=a.BBAuthDomUtility.addIframe(function(){const e=k.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),"sky-omnibar-iframe "+p,"Navigation")}function N(){const e=k.theme;return e&&"modern"===e.name}function _(e){e?(f.classList.remove("sky-omnibar-environment-theme-default"),f.classList.add("sky-omnibar-environment-theme-modern")):(f.classList.remove("sky-omnibar-environment-theme-modern"),f.classList.add("sky-omnibar-environment-theme-default"))}function C(){if(N()){if("tcs"===k.svcId)return!0;let e=s.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function S(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(B,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-open"})}function x(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter(e=>!e.isRead).length,V()}function P(e){m.BBOmnibarVertical.refreshSettings(e.value)}function M(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}yield u.BBOmnibarPushNotifications.connect({customMessageCallback:P,envId:k.envId,handleNavigate:q,handleNavigateUrl:G,leId:k.leId,notificationsCallback:x,openPushNotificationsMenu:R,showVerticalNav:C(),svcId:k.svcId})}))}function L(){return i(this,void 0,void 0,(function*(){let e;o.BBAuth.clearTokenCache();try{e=yield o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})}catch(e){}s.BBAuthInterop.postOmnibarMessage(B,{messageType:"refresh-user",token:e}),C()&&m.BBOmnibarVertical.refreshUser(e),e?M():u.BBOmnibarPushNotifications.disconnect()}))}function U(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function D(){d.BBOmnibarUserActivityPrompt.hide()}function j(){c.BBOmnibarUserActivity.startTracking(L,U,D,k.allowAnonymous,I)}function q(e){s.BBAuthInterop.handleNavigate(k.nav,e)}function G(e){r.BBAuthNavigator.navigate(e)}function $(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=k.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(B,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return S(),t},history.replaceState=function(){const e=t.apply(history,arguments);return S(),e}}(),s.BBAuthInterop.postOmnibarMessage(B,{compactNavOnly:k.compactNavOnly||C(),enableHelp:k.enableHelp,envId:k.envId,hideResourceLinks:k.hideResourceLinks,leId:k.leId,localNavItems:n&&n.localNavItems,localNotifications:!!k.notifications,localSearch:!!k.onSearch,messageType:"nav-ready",navVersion:k.navVersion,services:n&&n.services,svcId:k.svcId,theme:k.theme}),function(){const e=k.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(B,{messageType:"notifications-update",notifications:e})}})}(),M(!0),S(),T();break;case"display-ready":y.classList.remove(p),B.classList.remove(p);break;case"expand":B.classList.add(h);break;case"collapse":B.classList.remove(h);break;case"navigate-url":G(t.url);break;case"navigate":q(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(k.onSearch){const t=yield k.onSearch(e);s.BBAuthInterop.postOmnibarMessage(B,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(B,t.tokenRequestId,t.disableRedirect,j);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=k.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":o=t.notifications,u.BBOmnibarPushNotifications.updateNotifications(o);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i="sky-omnibar-environment-visible",o="sky-omnibar-environment-description-present",s=document.body.classList;if(e=e||"",v.innerText=e,e)if(s.add(i),t)if(f.classList.add(o),n){const e=document.createElement("a");e.href=n,e.innerText=t,b.appendChild(e)}else b.innerText=t;else f.classList.remove(o);else s.remove(i)}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n,i;const o=null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.images)||void 0===n?void 0:n.favIcon)||void 0===i?void 0:i.url;o&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach(e=>{e.href=o}),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach(e=>{e.remove()}))}(t.branding);break;case"legacy-keep-alive-url-change":I=t.url,j();break;case"selected-service-update":w=t.serviceName,V()}var o}function V(){if(O){const e=O.slice();w&&e.push(w);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return k=k=e,I=k.legacyKeepAliveUrl,new Promise(t=>{T=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=k.theme;if(o){N()&&(t="4px",n="#fff",i="solid 1px #e2e3e4");const s=o.accent;n=o.backgroundColor||n,!1===s?e="display: none;":s&&s.color&&(e=`background-color: ${s.color};`)}g=a.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${n};\n border-bottom: ${i};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ${t};\n ${e}\n}\n\n.sky-omnibar-placeholder.${p} {\n display: block;\n}\n\n.sky-omnibar-iframe.${p} {\n visibility: hidden;\n}\n\n.${h} {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-theme-default {\n background-color: #e1e1e3;\n color: #282b31;\n}\n\n.sky-omnibar-environment-theme-modern {\n background-color: transparent;\n color: inherit;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),y=document.createElement("div"),y.className="sky-omnibar-placeholder "+p,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),f=document.createElement("div"),f.className="sky-omnibar-environment",_(N()),v=document.createElement("span"),v.className="sky-omnibar-environment-name",f.appendChild(v),b=document.createElement("span"),b.className="sky-omnibar-environment-description",f.appendChild(b),a.BBAuthDomUtility.addElToBodyTop(f),E(),C()&&m.BBOmnibarVertical.load(e,B),window.addEventListener("message",$)})}static update(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"update",updateArgs:e}),e.theme&&_("modern"===e.theme.name)}static setTitle(e){O=e&&e.titleParts,V()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return k?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(B),a.BBAuthDomUtility.removeEl(f),a.BBAuthDomUtility.removeCss(g),window.removeEventListener("message",$),k=g=y=B=f=b=v=T=A=O=w=void 0}}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(5),s=n(4),r=n(1),a=n(19),c=n(20),d=n(21);let u,l,m,h,p,f,v,b,y,g,B,k,I,T,A="";function w(){b=Date.now()}function O(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function E(){const e=Date.now();(!y||e-y>S.MIN_RENEWAL_RETRY)&&(y=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch(()=>{}))}function N(){v=!0,f()}function _(){v=!1,w(),h()}function C(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===B&&s===k||(S.stopTracking(),p=e,f=t,h=n,B=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",O),function(){B||E(),g=setInterval(()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(A,I,B);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:B,closeInactivityPrompt:_,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:E,showInactivityPrompt:N})})),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,e=>{I=e.legacyTtl,A=e.refreshId,T=e.legacySigninUrl}),u=!0)}static userRenewedSession(){_(),E()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",O),g&&(clearInterval(g),g=void 0),u=l=m=b=y=v=p=f=h=B=k=void 0}}t.BBOmnibarUserActivity=S,S.ACTIVITY_TIMER_INTERVAL=1e3,S.MIN_RENEWAL_RETRY=6e4,S.INACTIVITY_PROMPT_DURATION=12e4,S.MIN_RENEWAL_AGE=3e5,S.MAX_SESSION_AGE=54e5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:i,inactivityPromptDuration:o,isShowingInactivityPrompt:s,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===i)return;!t&&m>i&&d();const h=i-o,p=i-a+c;s?m<h&&n():r>p?u():!t&&m>h&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),o=n(4);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const r=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{r.then(n=>{let i;if(null===n)i=null;else if("number"==typeof t){const e=Date.now()+t;i=Math.min(n,e)}else i=n;e(i)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),o=n(1),s=n(5);let r,a,c,d,u,l,m,h,p={};function f(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function v(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,s=e&&e.refreshId;n||u||(h?o.BBAuthNavigator.navigate(h):o.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&s!==p.refreshId&&function(e){m&&i.BBAuthInterop.postOmnibarMessage(m,e,f(a))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case f(a):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,h=t.signinUrl,d(p)}}(e)}}class g{static start(e,t,n,i){r&&e===u&&t===a||(g.stop(),u=e,c=n,a=t,d=i,function(){const e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);l=v("sky-omnibar-iframe-session-watcher",e)}(),a&&(m=v("sky-omnibar-iframe-legacy-keep-alive",a)),window.addEventListener("message",y,!1),r=!0)}static stop(){window.removeEventListener("message",y,!1),l&&(document.body.removeChild(l),l=void 0),m&&(document.body.removeChild(m),m=void 0),p={},r=u=c=a=h=d=void 0}}t.BBOmnibarUserSessionWatcher=g,g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=s.BBAuthDomain.getSTSDomain()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(2);let s,r,a;function c(e){if(!o.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,s=i.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=i.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(i.BBAuthDomUtility.removeEl(r),i.BBAuthDomUtility.removeCss(s),r=s=a=void 0,window.removeEventListener("message",c))}}t.BBOmnibarUserActivityPrompt=d,d.url="https://host.nxt.blackbaud.com/omnibar/inactivity"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(24),s=n(0),r=n(2),a=n(8),c=n(9);let d,u,l=!1;const m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};class h{static connect(e){return i(this,void 0,void 0,(function*(){if(!l){d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,BBNotificationsClient.BBNotifications.init({tokenCallback:()=>s.BBAuth.getToken({disableRedirect:!0,envId:e.envId,leId:e.leId})});(yield this.pushNotificationsEnabled())&&(yield function(e){return i(this,void 0,void 0,(function*(){yield c.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:e.customMessageCallback,customMessageType:"ui-config-global-settings-update"})}}))}static disconnect(){return i(this,void 0,void 0,(function*(){l&&(d=void 0,c.BBOmnibarToastContainer.destroy(),yield u,BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){BBNotificationsClient.BBNotifications.updateNotifications(e)}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){if(l){const e=m[d.svcId];if(e)return!e.requiresNotif||function(e,t){return i(this,void 0,void 0,(function*(){let n;try{n=yield s.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})}catch(e){return!1}let i=o(n)["1bb.entitlements"];return!!i&&(i=Array.isArray(i)?i:[i],i.indexOf("notif")>-1)}))}(d.envId,d.leId)}return!1}))}}t.BBOmnibarPushNotifications=h,h.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js"},function(e,t,n){"use strict";var i=n(25);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var i=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,s=0,r=0,a="";o=t.charAt(r++);~o&&(i=s%4?64*i+o:o,s++%4)?a+=String.fromCharCode(255&i>>(-2*s&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),s=n(3),r=n(2),a=n(1),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m=new Set;let h,p,f,v,b,y,g;function B(){var e,t;return null===(t=null===(e=h)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function k(){r.BBAuthInterop.postLocationChangeMessage(f,p)}function I(){document.body.classList.add(l)}function T(){document.body.classList.remove(l)}function A(e,t){if(t){const t=Date.now().toString();m.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?I():T()}function w(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=b.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(f,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(f,{envId:b.envId,leId:b.leId,messageType:"nav-ready",minimized:B(),navVersion:b.navVersion,services:n&&n.services,svcId:b.svcId,theme:b.theme}),k(),y();break;case"display-ready":v.classList.remove(d);break;case"expand":v.classList.add(c);break;case"collapse":v.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(b.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(f,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return b=e,new Promise(e=>i(this,void 0,void 0,(function*(){y=e,g=s.BBAuthDomUtility.addCss(`\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .sky-omnibar-vertical-iframe-wrapper:not(.${c}) {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.${d} .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.${c} {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .${u} {\n margin-left: 300px;\n }\n\n .${l} {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n`);try{h=yield o.BBUserSettings.getSettings()}catch(e){}!function(e){B()&&I();const t=b.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";f=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),v=document.createElement("div"),v.className="sky-omnibar-vertical-iframe-wrapper "+d,v.appendChild(f),e.insertAdjacentElement("afterend",v),document.body.classList.add(u)}(t),window.addEventListener("message",w)})))}))}static updateUrl(e){p=e,k()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(f,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n,s,a;return i(this,void 0,void 0,(function*(){m.has(e)?m.delete(e):(h=yield o.BBUserSettings.getSettings(),A(null===(n=null===(t=h)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),r.BBAuthInterop.postOmnibarMessage(f,{messageType:"update-vertical",updateArgs:{minimized:null===(a=null===(s=h)||void 0===s?void 0:s.omnibar)||void 0===a?void 0:a.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(v),s.BBAuthDomUtility.removeCss(g),document.body.classList.remove(u),T(),window.removeEventListener("message",w),m.clear(),h=p=f=v=b=y=g=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=o(),s=n&&n.fn&&n.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",s).then(()=>i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}]); |
@@ -1,1 +0,1 @@ | ||
window.BBAuthClient=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(6)),r(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=encodeURIComponent;function o(e){var t="https://signin.blackbaud.com/signin/?redirectUrl="+i(location.href);return e&&(t+="&inactivity=1"),t}var a=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=o();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(i(n)+"="+i(e[n]));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=o(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+i(e);this.navigate(t)},e.redirectToError=function(e){var t,n;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}var o="https://host.nxt.blackbaud.com/errors/"+t+"?source=auth-client&url="+i(location.href);n&&(o+="&code="+i(n)),this.navigate(o)},e}();t.BBAuthNavigator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1);function o(e,t){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&n.source===t}return!1}var a=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){return o(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return o(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return o(e,"skyux-spa-omnibar-toast-container")},e.handleGetToken=function(e,t,n,i){var o=this;return r.BBAuth.getToken({disableRedirect:n}).then((function(n){i&&i(),o.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})}),(function(n){i&&i(),o.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})}))},e.postLocationChangeMessage=function(t,n){t&&e.postOmnibarMessage(t,{href:n,messageType:"location-change"})},e.handleNavigate=function(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||i.BBAuthNavigator.navigate(t.url)},e.getCurrentUrl=function(){return document.location.href},e}();t.BBAuthInterop=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},e.createIframe=function(e,t,n){var r=document.createElement("iframe");return r.className=t,r.title=n,r.src=e,r},e.addIframe=function(e,t,n){var r=this.createIframe(e,t,n);return this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,t){void 0===t&&(t=document.body),t.contains(e)&&t.removeChild(e)},e.addElToBodyTop=function(e){var t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},e}();t.BBAuthDomUtility=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5),o=n(1);function a(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function s(e,t,n,i,o){var s;return s=a(s,"environment_id",n),s=a(s,"legal_entity_id",o),s=a(s,"permission_scope",i,!(!n&&!o||!i)),new Promise((function(n,i){!function(e,t,n,i,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:o({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:i(a.responseText);break;case 401:o({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&o({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(t.name,t.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,n?a.send(JSON.stringify(n)):a.send()}(e,{name:"X-CSRF",value:t},s,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),i)}))}var c=function(){function e(){}return e.request=function(e,t,n,a,c,u,l){return!c||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):s(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return s(e,t.csrf_token,a,c,u)})).then(d).catch((function(e){if(n||e.code===r.BBAuthTokenErrorCode.Offline)f(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(t);break;default:o.BBAuthNavigator.redirectToError(e.code)}}))})):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,t,n,r){return void 0===n&&(n="GET"),new Promise((function(i,o){var a=new XMLHttpRequest;switch(a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 200:var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e);break;default:o(a)}},a.open(n,e,!0),a.setRequestHeader("Authorization","Bearer "+t),a.setRequestHeader("Accept","application/json"),n){case"GET":a.send();break;case"PATCH":case"POST":a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(r))}}))},e}();t.BBCsrfXhr=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"},i=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(r);e<t.length;e++){var n=t[e],i="."+n;if(this.CURRENT_DOMAIN===n||this.CURRENT_DOMAIN.substr(-i.length)===i)return n}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return r[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var o=function(){function e(){}return e.getUrl=function(e,t){var n=i.exec(e),r=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),r="https://"+n[1]+"-"+o+".app.blackbaud.net/"+n[2]+"/"+n[4]),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(t){var n=(t=t||{}).forceNewToken,i=t.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var o=function(e){var t=e.envId,n=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(t||"-")+"|"+(n||"-")}(t),a=e.tokenCache[o]=e.tokenCache[o]||{},s=(new Date).valueOf();return!n&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(i,t.envId,t.permissionScope,t.leId).then((function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken})).catch((function(e){throw a.pendingLookupPromise=null,e}))),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();t.BBAuth=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function r(e){for(var t=[],n=0,r=e.split(".");n<r.length;n++){var i=r[n],o=parseInt(i,10)||0;t.push(o)}return t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=t,r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,n,i){return i&&function(e,t){for(var n=r(e),i=r(t),o=0;o<n.length;o++)if(o<i.length){if(i[o]>n[o])return!0;if(i[o]<n[o])return!1}return!0}(n,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,u=n(6),l=n(3),d=n(2);function f(){return i||(r=l.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),(i=document.createElement("iframe")).src=v.CONTAINER_URL,i.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",p)),i}function m(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function p(e){if(d.BBAuthInterop.messageIsFromToastContainer(e)){var t,n,r=e.data;switch(r.messageType){case"toast-ready":d.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),d.BBAuthInterop.postOmnibarMessage(i,{envId:s.envId,leId:s.leId,messageType:"nav-ready",svcId:s.svcId}),h(),i.classList.add("sky-omnibar-toast-container-ready"),a();break;case"get-token":t=r.tokenRequestId,n=r.disableRedirect,u.BBAuth.getToken({disableRedirect:n}).then((function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token",token:e,tokenRequestId:t})}),(function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token-fail",reason:e,tokenRequestId:t})}));break;case"navigate-url":s.navigateUrlCallback(r.url);break;case"navigate":s.navigateCallback(r.navItem);break;case"toast-container-change":r.height>0?(i.style.height=r.height+"px",i.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",i.classList.remove("sky-omnibar-toast-container-empty")):i.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":s.openMenuCallback()}}}var v=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,f()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,h()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",p)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=v},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),s=n(4),c="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user",u=function(){function e(){}return e.getSettings=function(){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){return[2,new Promise((function(t,n){return r(e,void 0,void 0,(function(){var e,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 1:e=i.sent(),r=setTimeout(n,this.GET_SETTINGS_TIMEOUT),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.BBCsrfXhr.requestWithToken(c,e)];case 3:return o=i.sent(),clearTimeout(r),t(o.settings),[3,5];case 4:return i.sent(),n(),[3,5];case 5:return[3,7];case 6:i.sent();try{t(this.getLocalSettings())}catch(e){n()}return[3,7];case 7:return[2]}}))}))}))]}))}))},e.updateSettings=function(e,t){return r(this,void 0,void 0,(function(){var n=this;return i(this,(function(u){return[2,new Promise((function(u,l){o&&(clearTimeout(o),o=void 0),o=setTimeout((function(){return r(n,void 0,void 0,(function(){var n,r,d,f;return i(this,(function(i){switch(i.label){case 0:o=void 0,i.label=1;case 1:return i.trys.push([1,7,,8]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 2:n=i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),[4,s.BBCsrfXhr.requestWithToken(c,n,"PATCH",{correlationId:e,settings:t})];case 4:return r=i.sent(),u(r),[3,6];case 5:return d=i.sent(),l(d),[3,6];case 6:return[3,8];case 7:i.sent(),f=void 0;try{f=this.getLocalSettings()}catch(e){f={}}try{f.omnibar=f.omnibar||{},Object.assign(f.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(f))}catch(e){l()}return[3,8];case 8:return[2]}}))}))}),n.UPDATE_DELAY)}))]}))}))},e.getLocalSettings=function(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))},e.UPDATE_DELAY=1e3,e.GET_SETTINGS_TIMEOUT=5e3,e.LOCAL_STORAGE_KEY="auth-client-local-user-settings",e}();t.BBUserSettings=u},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(0)),r(n(14)),r(n(16)),r(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(13),o=n(5),a=function(){function e(){}return e.getToken=function(e,t,n,a){return void 0!==o.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,a,!0):i.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:a,permissionScope:n})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();t.BBAuthTokenIntegration=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(1),o=n(7),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise((function(t){return e.iframeReadyResolve=t})),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",(function(t){var n=t.data,r=n.requestId,i=e.tokenRequests[r];if("security-token-svc"===n.source||n.origin===e.TARGET_ORIGIN())switch(n.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(n.value,i.reject,i.args.disableRedirect);break;case"getToken":var o={access_token:n.value,expires_in:0};i.resolve(o)}})),this.listenerSetup=!0)},e.getTokenFromIframe=function(t,n){var r=this;return new Promise((function(i,o){var a=r.requestCounter++;e.tokenRequests[a]={args:n,reject:o,resolve:i},e.iframeReadyPromise.then((function(){t.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:n},e.TARGET_ORIGIN())}))}))},e.handleErrorMessage=function(e,t,n){if(n)t(e);else switch(e.code){case o.BBAuthTokenErrorCode.Offline:t(e);break;case o.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(void 0);break;default:i.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise((function(t){return e.iframeReadyResolve=t})),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://sts.sky.blackbaud.com",e}();t.BBAuthCrossDomainIframe=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),o=n(4),a=n(3),s=n(1);function c(e,t,n,o){var s,c,u;function d(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",f)}function f(a){var s,u,l=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&"context-provider"===l.hostId)switch(l.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=l.tokenRequestId,u=l.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then((function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":d(),o({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout((function(){e.envId=l.envId,n(e)}),10)}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=l.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",f)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var l=function(){function e(){}return e.ensureContext=function(e){var t=e.envId,n=e.envIdRequired,i=e.leId,a=e.leIdRequired,s=e.svcId;return!t&&n||!i&&a?new Promise((function(t,n){s?r.BBAuth.getToken().then((function(i){var a="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(s);e.url&&(a+="&referringurl="+encodeURIComponent(e.url)),o.BBCsrfXhr.requestWithToken(a,i).then((function(i){var o=i&&i.items,a=o&&o.length;1===a?(e.url=o[0].url,t(e)):a>1?c(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):u()}))})):u()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=l},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(17)),r(n(28)),r(n(29))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b=n(0),y=n(2),g=n(1),B=n(3),k=n(18),I=n(22),w=n(23),T=n(9),A=n(27),O="sky-omnibar-iframe-expanded",E="sky-omnibar-loading";function N(){var e;l=B.BBAuthDomUtility.addIframe((e=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar","sky-omnibar-iframe "+E,"Navigation")}function _(){var e=d.theme;return e&&"modern"===e.name}function C(){if(_()){var e=y.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function S(){var e=y.BBAuthInterop.getCurrentUrl();y.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),A.BBOmnibarVertical.updateUrl(e)}function x(){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function R(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),h=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,F()}function P(e){A.BBOmnibarVertical.refreshSettings(e.value)}function M(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!e)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0})];case 2:return t.sent(),[3,4];case 3:return t.sent(),[2];case 4:return[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:P,envId:d.envId,handleNavigate:q,handleNavigateUrl:G,leId:d.leId,notificationsCallback:R,openPushNotificationsMenu:x,showVerticalNav:C(),svcId:d.svcId})];case 5:return t.sent(),[2]}}))}))}function U(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:b.BBAuth.clearTokenCache(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return y.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),C()&&A.BBOmnibarVertical.refreshUser(e),e?M():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function L(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function D(){I.BBOmnibarUserActivityPrompt.hide()}function j(){k.BBOmnibarUserActivity.startTracking(U,L,D,d.allowAnonymous,f)}function q(e){y.BBAuthInterop.handleNavigate(d.nav,e)}function G(e){g.BBAuthNavigator.navigate(e)}function V(e){var t=e.data;if(y.BBAuthInterop.messageIsFromOmnibar(e)&&"omnibar"===t.hostId){var n,u,h,v,b,g,B,I,T,A,N=d.nav;switch(t.messageType){case"ready":y.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),T=history.pushState,A=history.replaceState,history.pushState=function(){var e=T.apply(history,arguments);return S(),e},history.replaceState=function(){var e=A.apply(history,arguments);return S(),e},y.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||C(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:N&&N.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:N&&N.services,svcId:d.svcId,theme:d.theme}),(I=d.notifications)&&I.onReady({updateNotifications:function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),M(!0),S(),m();break;case"display-ready":c.classList.remove(E),l.classList.remove(E);break;case"expand":l.classList.add(O);break;case"collapse":l.classList.remove(O);break;case"navigate-url":G(t.url);break;case"navigate":q(t.navItem);break;case"search":!function(e){r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return d.onSearch?[4,d.onSearch(e)]:[3,2];case 1:t=n.sent(),y.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":y.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,j);break;case"help-open":(B=window.BBHELP)&&B.HelpWidget.open();break;case"notification-read":!function(e){var t=d.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":g=t.notifications,w.BBOmnibarPushNotifications.updateNotifications(g);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r="sky-omnibar-environment-visible",i="sky-omnibar-environment-description-present",c=document.body.classList;if(e=e||"",a.innerText=e,e)if(c.add(r),t)if(o.classList.add(i),n){var u=document.createElement("a");u.href=n,u.innerText=t,s.appendChild(u)}else s.innerText=t;else o.classList.remove(i);else c.remove(r)}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(b=null===(v=null===(h=null===(u=n)||void 0===u?void 0:u.images)||void 0===h?void 0:h.favIcon)||void 0===v?void 0:v.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=b})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,j();break;case"selected-service-update":p=t.serviceName,F()}}}function F(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");h&&(t="("+h+") "+t),document.title=t}}var Y=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){m=t,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",r="none",i=d.theme;if(i){_()&&(t="4px",n="#fff",r="solid 1px #e2e3e4");var o=i.accent;n=i.backgroundColor||n,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n border-bottom: "+r+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: "+t+";\n "+e+"\n}\n\n.sky-omnibar-placeholder."+E+" {\n display: block;\n}\n\n.sky-omnibar-iframe."+E+" {\n visibility: hidden;\n}\n\n."+O+' {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(c=document.createElement("div")).className="sky-omnibar-placeholder "+E,c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",(a=document.createElement("span")).className="sky-omnibar-environment-name",o.appendChild(a),(s=document.createElement("span")).className="sky-omnibar-environment-description",o.appendChild(s),B.BBAuthDomUtility.addElToBodyTop(o),N(),C()&&A.BBOmnibarVertical.load(e,l),window.addEventListener("message",V)}))},e.update=function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e})},e.setTitle=function(e){v=e&&e.titleParts,F()},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return d?[2,w.BBOmnibarPushNotifications.pushNotificationsEnabled()]:[2,Promise.resolve(!1)]}))}))},e.destroy=function(){T.BBOmnibarToastContainer.destroy(),w.BBOmnibarPushNotifications.disconnect(),B.BBAuthDomUtility.removeEl(c),B.BBAuthDomUtility.removeEl(l),B.BBAuthDomUtility.removeEl(o),B.BBAuthDomUtility.removeCss(u),window.removeEventListener("message",V),d=u=c=l=o=s=a=m=h=v=p=void 0},e}();t.BBOmnibar=Y},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b,y,g=n(5),B=n(4),k=n(1),I=n(19),w=n(20),T=n(21),A="";function O(){f=Date.now()}function E(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,O())}function N(){var e=Date.now();(!m||e-m>R.MIN_RENEWAL_RETRY)&&(m=e,B.BBCsrfXhr.request(g.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function _(){d=!0,l()}function C(){d=!1,O(),c()}function S(){y?k.BBAuthNavigator.navigate(y):k.BBAuthNavigator.redirectToSignoutForInactivity()}function x(){var e=this;p||N(),h=setInterval((function(){return r(e,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,w.BBOmnibarUserSessionExpiration.getSessionExpiration(A,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:N,showInactivityPrompt:_}),[2]}}))}))}),R.ACTIVITY_TIMER_INTERVAL)}var R=function(){function e(){}return e.startTracking=function(t,n,r,i,a){o&&i===p&&a===v||(e.stopTracking(),u=t,l=n,c=r,p=i,v=a,document.addEventListener("keypress",O),document.addEventListener("mousemove",E),x(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,A=e.refreshId,y=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),N()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",O),document.removeEventListener("mousemove",E),h&&(clearInterval(h),h=void 0),o=a=s=f=m=d=u=l=c=p=v=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e}();t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var t=e.allowAnonymous,n=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,l=e.renewSession,d=e.showInactivityPrompt,f=Date.now();if(null!==r){!t&&f>r&&u();var m=r-i,h=r-s+c;o?f<m&&n():a>h?l():!t&&f>m&&d()}},e}();t.BBOmnibarUserActivityProcessor=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(5),o=n(4);var a=function(){function e(){}return e.getSessionExpiration=function(e,t,n){var a=function(e,t){if(r&&r.refreshId===e&&r.allowAnonymous===t)return r.promise;var n=new Promise((function(e,n){o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then((function(t){var n=null===t?null:Date.now()+1e3*t;e(n)}),(function(){e(null)}))}));return r={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((function(e,n){a.then((function(n){var r;if(null===n)r=null;else if("number"==typeof t){var i=Date.now()+t;r=Math.min(n,i)}else r=n;e(r)}))}))},e.reset=function(){r=void 0},e}();t.BBOmnibarUserSessionExpiration=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,u,l,d=n(2),f=n(1),m=n(5),h={};function p(e){if(e){var t=e.split("://");return t[0]+"://"+t[1].split("/")[0]}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function y(e){if("string"==typeof e.data){var t=void 0;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){var n=t.message,r=n&&n.sessionId,c=n&&n.refreshId;r||s||(l?f.BBAuthNavigator.navigate(l):f.BBAuthNavigator.redirectToSignin()),void 0!==h.refreshId&&c!==h.refreshId&&function(e){u&&d.BBAuthInterop.postOmnibarMessage(u,e,p(i))}({messageType:"session-refresh"}),void 0!==h.sessionId&&r!==h.sessionId&&o(),h.refreshId=c,h.sessionId=r,a(h)}}}function g(e){switch(e.origin){case B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case p(i):!function(e){var t=e.data;switch(t.messageType){case"ready":h.legacyTtl=t.ttl,l=t.signinUrl,a(h)}}(e)}}var B=function(){function e(){}return e.start=function(t,n,c,l){r&&t===s&&n===i||(e.stop(),s=t,o=c,i=n,a=l,b(),i&&(u=v("sky-omnibar-iframe-legacy-keep-alive",i)),window.addEventListener("message",g,!1),r=!0)},e.stop=function(){window.removeEventListener("message",g,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),h={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=m.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a=n(3),s=n(2);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),i.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":o()}}var u=function(){function e(){}return e.show=function(t){var n;this.hide(),o=t.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),n=e.url,i=a.BBAuthDomUtility.addIframe(n,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){i&&(a.BBAuthDomUtility.removeEl(i),a.BBAuthDomUtility.removeCss(r),i=r=o=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();t.BBOmnibarUserActivityPrompt=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s=n(24),c=n(0),u=n(2),l=n(8),d=n(9),f=!1,m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function h(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,d.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:u.BBAuthInterop.getCurrentUrl()})];case 1:return t.sent(),[2]}}))}))}function p(e,t){return r(this,void 0,void 0,(function(){var n,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,c.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})];case 1:return n=i.sent(),[3,3];case 2:return i.sent(),[2,!1];case 3:return r=s(n),(o=r["1bb.entitlements"])?[2,(o=Array.isArray(o)?o:[o]).indexOf("notif")>-1]:[2,!1]}}))}))}var v=function(){function e(){}return e.connect=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return f?[3,5]:(o=t,f=!0,[4,a=window.BBNotificationsClient?Promise.resolve():l.BBOmnibarScriptLoader.registerScript(e.NOTIFICATIONS_CLIENT_URL)]);case 1:return n.sent(),BBNotificationsClient.BBNotifications.init({tokenCallback:function(){return c.BBAuth.getToken({disableRedirect:!0,envId:t.envId,leId:t.leId})}}),[4,this.pushNotificationsEnabled()];case 2:return n.sent()?[4,h(t)]:[3,4];case 3:n.sent(),BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:t.customMessageCallback,customMessageType:"ui-config-global-settings-update"}),n.label=5;case 5:return[2]}}))}))},e.disconnect=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return f?(o=void 0,d.BBOmnibarToastContainer.destroy(),[4,a]):[3,2];case 1:e.sent(),BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){BBNotificationsClient.BBNotifications.updateNotifications(e)},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){return f&&(e=m[o.svcId])?[2,!e.requiresNotif||p(o.envId,o.leId)]:[2,!1]}))}))},e.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js",e}();t.BBOmnibarPushNotifications=v},function(e,t,n){"use strict";var r=n(25);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,t,n){var r=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f=n(10),m=n(3),h=n(2),p=n(1),v="sky-omnibar-vertical-expanded",b="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",g="sky-omnibar-vertical-body-minimized",B=new Set;function k(){var e,t;return null===(t=null===(e=o)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function I(){h.BBAuthInterop.postLocationChangeMessage(s,a)}function w(){document.body.classList.add(g)}function T(){document.body.classList.remove(g)}function A(e,t){if(t){var n=Date.now().toString();B.add(n),f.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?w():T()}function O(e){var t=e.data;if(h.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":h.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),h.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:k(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),I(),l();break;case"display-ready":c.classList.remove(b);break;case"expand":c.classList.add(v);break;case"collapse":c.classList.remove(v);break;case"navigate-url":p.BBAuthNavigator.navigate(t.url);break;case"navigate":h.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":h.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}}var E=function(){function e(){}return e.load=function(e,t){return r(this,void 0,void 0,(function(){var n=this;return i(this,(function(a){return u=e,[2,new Promise((function(e){return r(n,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:l=e,d=m.BBAuthDomUtility.addCss("\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper."+b+" {\n border-right: solid 1px #e2e3e4;\n}\n\n."+g+" .sky-omnibar-vertical-iframe-wrapper:not(."+v+") {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n."+b+" .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n."+v+" {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n ."+y+" {\n margin-left: 300px;\n }\n\n ."+g+" {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return function(e){k()&&w();var t=u.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";s=m.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),(c=document.createElement("div")).className="sky-omnibar-vertical-iframe-wrapper "+b,c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),window.addEventListener("message",O),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,I()},e.refreshUser=function(e){h.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n,a,c;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return B.has(e)?(B.delete(e),[3,3]):[3,1];case 1:return[4,f.BBUserSettings.getSettings()];case 2:o=r.sent(),A(null===(n=null===(t=o)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),h.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(c=null===(a=o)||void 0===a?void 0:a.omnibar)||void 0===c?void 0:c.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),T(),window.removeEventListener("message",O),B.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n=i(),o=n&&n.fn&&n.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")})).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")})).then((function(){document.body.classList.add("bb-omnibar-height-padding");var n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=i()(e.menuEl)),BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}]); | ||
window.BBAuthClient=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=11)}([function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(6)),r(t(7))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=encodeURIComponent;function o(e){var n="https://signin.blackbaud.com/signin/?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var a=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=o();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=o(!0),n="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var o="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(o+="&code="+i(t)),this.navigate(o)},e}();n.BBAuthNavigator=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(1);function o(e,n){if("https://host.nxt.blackbaud.com"===e.origin){var t=e.data;return!!t&&t.source===n}return!1}var a=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){return o(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return o(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return o(e,"skyux-spa-omnibar-toast-container")},e.handleGetToken=function(e,n,t,i){var o=this;return r.BBAuth.getToken({disableRedirect:t}).then((function(t){i&&i(),o.postOmnibarMessage(e,{messageType:"token",token:t,tokenRequestId:n})}),(function(t){i&&i(),o.postOmnibarMessage(e,{messageType:"token-fail",reason:t,tokenRequestId:n})}))},e.postLocationChangeMessage=function(n,t){n&&e.postOmnibarMessage(n,{href:t,messageType:"location-change"})},e.handleNavigate=function(e,n){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(n)||i.BBAuthNavigator.navigate(n.url)},e.getCurrentUrl=function(){return document.location.href},e}();n.BBAuthInterop=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.createIframe=function(e,n,t){var r=document.createElement("iframe");return r.className=n,r.title=t,r.src=e,r},e.addIframe=function(e,n,t){var r=this.createIframe(e,n,t);return this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(5),o=t(1);function a(e,n,t,r){return(r||void 0===r&&t)&&((e=e||{})[n]=t),e}function s(e,n,t,i,o){var s;return s=a(s,"environment_id",t),s=a(s,"legal_entity_id",o),s=a(s,"permission_scope",i,!(!t&&!o||!i)),new Promise((function(t,i){!function(e,n,t,i,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:o({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:i(a.responseText);break;case 401:o({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&o({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,(function(e){var n=e?JSON.parse(e):void 0;t(n)}),i)}))}var c=function(){function e(){}return e.request=function(e,n,t,a,c,u,l){return!c||a||u?new Promise((function(d,f){new Promise((function(e,n){l?e({csrf_token:"token_needed"}):s(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(n)})).then((function(n){return s(e,n.csrf_token,a,c,u)})).then(d).catch((function(e){if(t||e.code===r.BBAuthTokenErrorCode.Offline)f(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code)}}))})):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n,t,r){return void 0===t&&(t="GET"),new Promise((function(i,o){var a=new XMLHttpRequest;switch(a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 200:var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e);break;default:o(a)}},a.open(t,e,!0),a.setRequestHeader("Authorization","Bearer "+n),a.setRequestHeader("Accept","application/json"),t){case"GET":a.send();break;case"PATCH":case"POST":a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(r))}}))},e}();n.BBCsrfXhr=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"},i=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,n=Object.keys(r);e<n.length;e++){var t=n[e],i="."+t;if(this.CURRENT_DOMAIN===t||this.CURRENT_DOMAIN.substr(-i.length)===i)return t}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return r[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();n.BBAuthDomain=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(12),i=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var o=function(){function e(){}return e.getUrl=function(e,n){var t=i.exec(e),r=e,o=n?n.zone:void 0;return o&&(o=o.replace("-","")),t&&(t[3]&&(o=t[3].substring(1)),r="https://"+t[1]+"-"+o+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(r)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,i=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var o=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[o]=e.tokenCache[o]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(i,n.envId,n.permissionScope,n.leId).then((function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken})).catch((function(e){throw a.pendingLookupPromise=null,e}))),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function r(e){for(var n=[],t=0,r=e.split(".");t<r.length;t++){var i=r[t],o=parseInt(i,10)||0;n.push(o)}return n}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){}return e.registerScript=function(e){return new Promise((function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=t,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(n,t,i){return i&&function(e,n){for(var t=r(e),i=r(n),o=0;o<t.length;o++)if(o<i.length){if(i[o]>t[o])return!0;if(i[o]<t[o])return!1}return!0}(t,i)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a,s,c,u=t(6),l=t(3),d=t(2);function f(){return i||(r=l.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),(i=document.createElement("iframe")).src=v.CONTAINER_URL,i.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",p)),i}function m(e){var n=document.querySelector(e);return n?n.getBoundingClientRect().height:0}function h(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function p(e){if(d.BBAuthInterop.messageIsFromToastContainer(e)){var n,t,r=e.data;switch(r.messageType){case"toast-ready":d.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),d.BBAuthInterop.postOmnibarMessage(i,{envId:s.envId,leId:s.leId,messageType:"nav-ready",svcId:s.svcId}),h(),i.classList.add("sky-omnibar-toast-container-ready"),a();break;case"get-token":n=r.tokenRequestId,t=r.disableRedirect,u.BBAuth.getToken({disableRedirect:t}).then((function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token",token:e,tokenRequestId:n})}),(function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":s.navigateUrlCallback(r.url);break;case"navigate":s.navigateCallback(r.navItem);break;case"toast-container-change":r.height>0?(i.style.height=r.height+"px",i.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",i.classList.remove("sky-omnibar-toast-container-empty")):i.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":s.openMenuCallback()}}}var v=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,f()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,h()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",p)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();n.BBOmnibarToastContainer=v},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a=t(0),s=t(4),c="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user",u=function(){function e(){}return e.getSettings=function(){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(n){return[2,new Promise((function(n,t){return r(e,void 0,void 0,(function(){var e,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 1:e=i.sent(),r=setTimeout(t,this.GET_SETTINGS_TIMEOUT),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.BBCsrfXhr.requestWithToken(c,e)];case 3:return o=i.sent(),clearTimeout(r),n(o.settings),[3,5];case 4:return i.sent(),t(),[3,5];case 5:return[3,7];case 6:i.sent();try{n(this.getLocalSettings())}catch(e){t()}return[3,7];case 7:return[2]}}))}))}))]}))}))},e.updateSettings=function(e,n){return r(this,void 0,void 0,(function(){var t=this;return i(this,(function(u){return[2,new Promise((function(u,l){o&&(clearTimeout(o),o=void 0),o=setTimeout((function(){return r(t,void 0,void 0,(function(){var t,r,d,f;return i(this,(function(i){switch(i.label){case 0:o=void 0,i.label=1;case 1:return i.trys.push([1,7,,8]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 2:t=i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),[4,s.BBCsrfXhr.requestWithToken(c,t,"PATCH",{correlationId:e,settings:n})];case 4:return r=i.sent(),u(r),[3,6];case 5:return d=i.sent(),l(d),[3,6];case 6:return[3,8];case 7:i.sent(),f=void 0;try{f=this.getLocalSettings()}catch(e){f={}}try{f.omnibar=f.omnibar||{},Object.assign(f.omnibar,n.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(f))}catch(e){l()}return[3,8];case 8:return[2]}}))}))}),t.UPDATE_DELAY)}))]}))}))},e.getLocalSettings=function(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))},e.UPDATE_DELAY=1e3,e.GET_SETTINGS_TIMEOUT=5e3,e.LOCAL_STORAGE_KEY="auth-client-local-user-settings",e}();n.BBUserSettings=u},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(0)),r(t(14)),r(t(16)),r(t(30))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(4),i=t(13),o=t(5),a=function(){function e(){}return e.getToken=function(e,n,t,a){return void 0!==o.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,n,t,a,!0):i.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:a,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),i=t(1),o=t(7),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise((function(n){return e.iframeReadyResolve=n})),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",(function(n){var t=n.data,r=t.requestId,i=e.tokenRequests[r];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":var o={access_token:t.value,expires_in:0};i.resolve(o)}})),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var r=this;return new Promise((function(i,o){var a=r.requestCounter++;e.tokenRequests[a]={args:t,reject:o,resolve:i},e.iframeReadyPromise.then((function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())}))}))},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case o.BBAuthTokenErrorCode.Offline:n(e);break;case o.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(void 0);break;default:i.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise((function(n){return e.iframeReadyResolve=n})),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://sts.sky.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(15))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(2),o=t(4),a=t(3),s=t(1);function c(e,n,t,o){var s,c,u;function d(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",f)}function f(a){var s,u,l=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&"context-provider"===l.hostId)switch(l.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=l.tokenRequestId,u=l.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then((function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":d(),o({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout((function(){e.envId=l.envId,t(e)}),10)}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=l.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",f)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var l=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,i=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!i&&a?new Promise((function(n,t){s?r.BBAuth.getToken().then((function(i){var a="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(s);e.url&&(a+="&referringurl="+encodeURIComponent(e.url)),o.BBCsrfXhr.requestWithToken(a,i).then((function(i){var o=i&&i.items,a=o&&o.length;1===a?(e.url=o[0].url,n(e)):a>1?c(e,i,n,t):e.disableRedirect?t(r.BBAuthTokenErrorCode.InvalidEnvironment):u()}))})):u()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=l},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(17)),r(t(28)),r(t(29))},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b=t(0),y=t(2),g=t(1),B=t(3),k=t(18),I=t(22),w=t(23),T=t(9),A=t(27),O="sky-omnibar-iframe-expanded",E="sky-omnibar-loading";function N(){var e;l=B.BBAuthDomUtility.addIframe((e=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar","sky-omnibar-iframe "+E,"Navigation")}function _(){var e=d.theme;return e&&"modern"===e.name}function C(e){e?(o.classList.remove("sky-omnibar-environment-theme-default"),o.classList.add("sky-omnibar-environment-theme-modern")):(o.classList.remove("sky-omnibar-environment-theme-modern"),o.classList.add("sky-omnibar-environment-theme-default"))}function S(){if(_()){if("tcs"===d.svcId)return!0;var e=y.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function x(){var e=y.BBAuthInterop.getCurrentUrl();y.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),A.BBOmnibarVertical.updateUrl(e)}function R(){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function P(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),h=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,Y()}function M(e){A.BBOmnibarVertical.refreshSettings(e.value)}function L(e){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:if(!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0})];case 2:return n.sent(),[3,4];case 3:return n.sent(),[2];case 4:return[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:M,envId:d.envId,handleNavigate:G,handleNavigateUrl:V,leId:d.leId,notificationsCallback:P,openPushNotificationsMenu:R,showVerticalNav:S(),svcId:d.svcId})];case 5:return n.sent(),[2]}}))}))}function U(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:b.BBAuth.clearTokenCache(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})];case 2:return e=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return y.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),S()&&A.BBOmnibarVertical.refreshUser(e),e?L():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function D(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function j(){I.BBOmnibarUserActivityPrompt.hide()}function q(){k.BBOmnibarUserActivity.startTracking(U,D,j,d.allowAnonymous,f)}function G(e){y.BBAuthInterop.handleNavigate(d.nav,e)}function V(e){g.BBAuthNavigator.navigate(e)}function F(e){var n=e.data;if(y.BBAuthInterop.messageIsFromOmnibar(e)&&"omnibar"===n.hostId){var t,u,h,v,b,g,B,I,T,A,N=d.nav;switch(n.messageType){case"ready":y.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),T=history.pushState,A=history.replaceState,history.pushState=function(){var e=T.apply(history,arguments);return x(),e},history.replaceState=function(){var e=A.apply(history,arguments);return x(),e},y.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||S(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:N&&N.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:N&&N.services,svcId:d.svcId,theme:d.theme}),(I=d.notifications)&&I.onReady({updateNotifications:function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),L(!0),x(),m();break;case"display-ready":c.classList.remove(E),l.classList.remove(E);break;case"expand":l.classList.add(O);break;case"collapse":l.classList.remove(O);break;case"navigate-url":V(n.url);break;case"navigate":G(n.navItem);break;case"search":!function(e){r(this,void 0,void 0,(function(){var n;return i(this,(function(t){switch(t.label){case 0:return d.onSearch?[4,d.onSearch(e)]:[3,2];case 1:n=t.sent(),y.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:n}),t.label=2;case 2:return[2]}}))}))}(n.searchArgs);break;case"get-token":y.BBAuthInterop.handleGetToken(l,n.tokenRequestId,n.disableRedirect,q);break;case"help-open":(B=window.BBHELP)&&B.HelpWidget.open();break;case"notification-read":!function(e){var n=d.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(n.notification);break;case"push-notifications-change":g=n.notifications,w.BBOmnibarPushNotifications.updateNotifications(g);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,n,t){var r="sky-omnibar-environment-visible",i="sky-omnibar-environment-description-present",c=document.body.classList;if(e=e||"",a.innerText=e,e)if(c.add(r),n)if(o.classList.add(i),t){var u=document.createElement("a");u.href=t,u.innerText=n,s.appendChild(u)}else s.innerText=n;else o.classList.remove(i);else c.remove(r)}(n.name,n.description,n.url);break;case"branding-update":t=n.branding,(b=null===(v=null===(h=null===(u=t)||void 0===u?void 0:u.images)||void 0===h?void 0:h.favIcon)||void 0===v?void 0:v.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=b})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=n.url,q();break;case"selected-service-update":p=n.serviceName,Y()}}}function Y(){if(v){var e=v.slice();p&&e.push(p);var n=e.join(" - ");h&&(n="("+h+") "+n),document.title=n}}var H=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(n){m=n,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="5px",t="#4d5259",r="none",i=d.theme;if(i){_()&&(n="4px",t="#fff",r="solid 1px #e2e3e4");var o=i.accent;t=i.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+t+";\n border-bottom: "+r+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: "+n+";\n "+e+"\n}\n\n.sky-omnibar-placeholder."+E+" {\n display: block;\n}\n\n.sky-omnibar-iframe."+E+" {\n visibility: hidden;\n}\n\n."+O+' {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-theme-default {\n background-color: #e1e1e3;\n color: #282b31;\n}\n\n.sky-omnibar-environment-theme-modern {\n background-color: transparent;\n color: inherit;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(c=document.createElement("div")).className="sky-omnibar-placeholder "+E,c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",C(_()),(a=document.createElement("span")).className="sky-omnibar-environment-name",o.appendChild(a),(s=document.createElement("span")).className="sky-omnibar-environment-description",o.appendChild(s),B.BBAuthDomUtility.addElToBodyTop(o),N(),S()&&A.BBOmnibarVertical.load(e,l),window.addEventListener("message",F)}))},e.update=function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,Y()},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return d?[2,w.BBOmnibarPushNotifications.pushNotificationsEnabled()]:[2,Promise.resolve(!1)]}))}))},e.destroy=function(){T.BBOmnibarToastContainer.destroy(),w.BBOmnibarPushNotifications.disconnect(),B.BBAuthDomUtility.removeEl(c),B.BBAuthDomUtility.removeEl(l),B.BBAuthDomUtility.removeEl(o),B.BBAuthDomUtility.removeCss(u),window.removeEventListener("message",F),d=u=c=l=o=s=a=m=h=v=p=void 0},e}();n.BBOmnibar=H},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b,y,g=t(5),B=t(4),k=t(1),I=t(19),w=t(20),T=t(21),A="";function O(){f=Date.now()}function E(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,O())}function N(){var e=Date.now();(!m||e-m>R.MIN_RENEWAL_RETRY)&&(m=e,B.BBCsrfXhr.request(g.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function _(){d=!0,l()}function C(){d=!1,O(),c()}function S(){y?k.BBAuthNavigator.navigate(y):k.BBAuthNavigator.redirectToSignoutForInactivity()}function x(){var e=this;p||N(),h=setInterval((function(){return r(e,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return[4,w.BBOmnibarUserSessionExpiration.getSessionExpiration(A,b,p)];case 1:return e=n.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:N,showInactivityPrompt:_}),[2]}}))}))}),R.ACTIVITY_TIMER_INTERVAL)}var R=function(){function e(){}return e.startTracking=function(n,t,r,i,a){o&&i===p&&a===v||(e.stopTracking(),u=n,l=t,c=r,p=i,v=a,document.addEventListener("keypress",O),document.addEventListener("mousemove",E),x(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,A=e.refreshId,y=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),N()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",O),document.removeEventListener("mousemove",E),h&&(clearInterval(h),h=void 0),o=a=s=f=m=d=u=l=c=p=v=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e}();n.BBOmnibarUserActivity=R},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,l=e.renewSession,d=e.showInactivityPrompt,f=Date.now();if(null!==r){!n&&f>r&&u();var m=r-i,h=r-s+c;o?f<m&&t():a>h?l():!n&&f>m&&d()}},e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=t(5),o=t(4);var a=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var a=function(e,n){if(r&&r.refreshId===e&&r.allowAnonymous===n)return r.promise;var t=new Promise((function(e,t){o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,n).then((function(n){var t=null===n?null:Date.now()+1e3*n;e(t)}),(function(){e(null)}))}));return r={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise((function(e,t){a.then((function(t){var r;if(null===t)r=null;else if("number"==typeof n){var i=Date.now()+n;r=Math.min(t,i)}else r=t;e(r)}))}))},e.reset=function(){r=void 0},e}();n.BBOmnibarUserSessionExpiration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a,s,c,u,l,d=t(2),f=t(1),m=t(5),h={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function b(){var e=B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function y(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,r=t&&t.sessionId,c=t&&t.refreshId;r||s||(l?f.BBAuthNavigator.navigate(l):f.BBAuthNavigator.redirectToSignin()),void 0!==h.refreshId&&c!==h.refreshId&&function(e){u&&d.BBAuthInterop.postOmnibarMessage(u,e,p(i))}({messageType:"session-refresh"}),void 0!==h.sessionId&&r!==h.sessionId&&o(),h.refreshId=c,h.sessionId=r,a(h)}}}function g(e){switch(e.origin){case B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case p(i):!function(e){var n=e.data;switch(n.messageType){case"ready":h.legacyTtl=n.ttl,l=n.signinUrl,a(h)}}(e)}}var B=function(){function e(){}return e.start=function(n,t,c,l){r&&n===s&&t===i||(e.stop(),s=n,o=c,i=t,a=l,b(),i&&(u=v("sky-omnibar-iframe-legacy-keep-alive",i)),window.addEventListener("message",g,!1),r=!0)},e.stop=function(){window.removeEventListener("message",g,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),h={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=m.BBAuthDomain.getSTSDomain(),e}();n.BBOmnibarUserSessionWatcher=B},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a=t(3),s=t(2);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),i.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":o()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),o=n.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,i=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){i&&(a.BBAuthDomUtility.removeEl(i),a.BBAuthDomUtility.removeCss(r),i=r=o=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s=t(24),c=t(0),u=t(2),l=t(8),d=t(9),f=!1,m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function h(e){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,d.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:u.BBAuthInterop.getCurrentUrl()})];case 1:return n.sent(),[2]}}))}))}function p(e,n){return r(this,void 0,void 0,(function(){var t,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,c.BBAuth.getToken({disableRedirect:!0,envId:e,leId:n,permissionScope:"Notifications"})];case 1:return t=i.sent(),[3,3];case 2:return i.sent(),[2,!1];case 3:return r=s(t),(o=r["1bb.entitlements"])?[2,(o=Array.isArray(o)?o:[o]).indexOf("notif")>-1]:[2,!1]}}))}))}var v=function(){function e(){}return e.connect=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return f?[3,5]:(o=n,f=!0,[4,a=window.BBNotificationsClient?Promise.resolve():l.BBOmnibarScriptLoader.registerScript(e.NOTIFICATIONS_CLIENT_URL)]);case 1:return t.sent(),BBNotificationsClient.BBNotifications.init({tokenCallback:function(){return c.BBAuth.getToken({disableRedirect:!0,envId:n.envId,leId:n.leId})}}),[4,this.pushNotificationsEnabled()];case 2:return t.sent()?[4,h(n)]:[3,4];case 3:t.sent(),BBNotificationsClient.BBNotifications.addListener(n.notificationsCallback),t.label=4;case 4:n.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:n.customMessageCallback,customMessageType:"ui-config-global-settings-update"}),t.label=5;case 5:return[2]}}))}))},e.disconnect=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return f?(o=void 0,d.BBOmnibarToastContainer.destroy(),[4,a]):[3,2];case 1:e.sent(),BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){BBNotificationsClient.BBNotifications.updateNotifications(e)},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){return f&&(e=m[o.svcId])?[2,!e.requiresNotif||p(o.envId,o.leId)]:[2,!1]}))}))},e.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js",e}();n.BBOmnibarPushNotifications=v},function(e,n,t){"use strict";var r=t(25);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,n){if("string"!=typeof e)throw new i("Invalid token specified");var t=!0===(n=n||{}).header?0:1;try{return JSON.parse(r(e.split(".")[t]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,n,t){var r=t(26);e.exports=function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,n){var t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return r(n)}}},function(e,n){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=n.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f=t(10),m=t(3),h=t(2),p=t(1),v="sky-omnibar-vertical-expanded",b="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",g="sky-omnibar-vertical-body-minimized",B=new Set;function k(){var e,n;return null===(n=null===(e=o)||void 0===e?void 0:e.omnibar)||void 0===n?void 0:n.vMin}function I(){h.BBAuthInterop.postLocationChangeMessage(s,a)}function w(){document.body.classList.add(g)}function T(){document.body.classList.remove(g)}function A(e,n){if(n){var t=Date.now().toString();B.add(t),f.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?w():T()}function O(e){var n=e.data;if(h.BBAuthInterop.messageIsFromOmnibarVertical(e)){var t=u.nav;switch(n.messageType){case"ready":h.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),h.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:k(),navVersion:u.navVersion,services:t&&t.services,svcId:u.svcId,theme:u.theme}),I(),l();break;case"display-ready":c.classList.remove(b);break;case"expand":c.classList.add(v);break;case"collapse":c.classList.remove(v);break;case"navigate-url":p.BBAuthNavigator.navigate(n.url);break;case"navigate":h.BBAuthInterop.handleNavigate(u.nav,n.navItem);break;case"get-token":h.BBAuthInterop.handleGetToken(s,n.tokenRequestId,n.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}}var E=function(){function e(){}return e.load=function(e,n){return r(this,void 0,void 0,(function(){var t=this;return i(this,(function(a){return u=e,[2,new Promise((function(e){return r(t,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:l=e,d=m.BBAuthDomUtility.addCss("\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper."+b+" {\n border-right: solid 1px #e2e3e4;\n}\n\n."+g+" .sky-omnibar-vertical-iframe-wrapper:not(."+v+") {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n."+b+" .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n."+v+" {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n ."+y+" {\n margin-left: 300px;\n }\n\n ."+g+" {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,f.BBUserSettings.getSettings()];case 2:return o=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return function(e){k()&&w();var n=u.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";s=m.BBAuthDomUtility.createIframe(n,"sky-omnibar-vertical-iframe","Vertical Navigation"),(c=document.createElement("div")).className="sky-omnibar-vertical-iframe-wrapper "+b,c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(n),window.addEventListener("message",O),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,I()},e.refreshUser=function(e){h.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var n,t,a,c;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return B.has(e)?(B.delete(e),[3,3]):[3,1];case 1:return[4,f.BBUserSettings.getSettings()];case 2:o=r.sent(),A(null===(t=null===(n=o)||void 0===n?void 0:n.omnibar)||void 0===t?void 0:t.vMin,!1),h.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(c=null===(a=o)||void 0===a?void 0:a.omnibar)||void 0===c?void 0:c.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),T(),window.removeEventListener("message",O),B.clear(),o=a=s=c=u=l=d=void 0},e}();n.BBOmnibarVertical=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(8);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(n){var t=i(),o=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")})).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")})).then((function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=i()(e.menuEl)),BBAUTH.Omnibar.load(t,e)}))}))},e}();n.BBOmnibarLegacy=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(10))}]); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBAuthClient=t():e.BBAuthClient=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(6)),i(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=encodeURIComponent;function s(e){let t="https://signin.blackbaud.com/signin/?redirectUrl="+o(location.href);return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=s();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${o(n)}=${o(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=s(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+o(e);this.navigate(t)}static redirectToError(e){let t,n;switch(e){case i.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${o(location.href)}`;n&&(s+="&code="+o(n)),this.navigate(s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(1);function s(e,t){if("https://host.nxt.blackbaud.com"===e.origin){const n=e.data;return!!n&&n.source===t}return!1}class r{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")}static messageIsFromOmnibar(e){return s(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return s(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return s(e,"skyux-spa-omnibar-toast-container")}static handleGetToken(e,t,n,o){return i.BBAuth.getToken({disableRedirect:n}).then(n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})},n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})})}static postLocationChangeMessage(e,t){e&&r.postOmnibarMessage(e,{href:t,messageType:"location-change"})}static handleNavigate(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||o.BBAuthNavigator.navigate(t.url)}static getCurrentUrl(){return document.location.href}}t.BBAuthInterop=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static createIframe(e,t,n){const i=document.createElement("iframe");return i.className=t,i.title=n,i.src=e,i}static addIframe(e,t,n){const i=this.createIframe(e,t,n);return this.addElToBodyTop(i),i}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(5),s=n(1);function r(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,s){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",s),a=r(a,"permission_scope",o,!(!n&&!s||!o)),new Promise((n,o)=>{!function(e,t,n,o,s){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:s({code:i.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:s({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:s({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&s({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===i.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(t);break;default:s.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t,n="GET",i){return new Promise((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 200:let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e);break;default:s(r)}},r.open(n,e,!0),r.setRequestHeader("Authorization","Bearer "+t),r.setRequestHeader("Accept","application/json"),n){case"GET":r.send();break;case"PATCH":case"POST":r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify(i))}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"};class o{static getRegisteredDomain(){for(const e of Object.keys(i)){const t="."+e;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return i[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=o,o.CURRENT_DOMAIN=window.location.hostname},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class s{static getUrl(e,t){const n=o.exec(e);let i=e,s=t?t.zone:void 0;return s&&(s=s.replace("-","")),n&&(n[3]&&(s=n[3].substring(1)),i=`https://${n[1]}-${s}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return s.getTokenInternal(e)}static clearTokenCache(){s.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(s.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const o=function(e){const{envId:t,permissionScope:n,leId:i}=e;return"token|"+(i||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=s.tokenCache[o]=s.tokenCache[o]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}t.BBAuth=s,s.mock=!1,s.tokenCache={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function i(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class o{static registerScript(e){return new Promise((t,n)=>{const i=document.createElement("script");i.onload=t,i.onerror=n,i.src=e,document.body.appendChild(i)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=i(e),o=i(t);for(let e=0;e<n.length;e++)if(e<o.length){if(o[e]>n[e])return!0;if(o[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():o.registerScript(e)}}t.BBOmnibarScriptLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),o=n(3),s=n(2);let r,a,c,d,u,l;function m(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){a&&s.BBAuthInterop.postOmnibarMessage(a,{href:l,messageType:"location-change"})}function p(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(a,{envId:u.envId,leId:u.leId,messageType:"nav-ready",svcId:u.svcId}),h(),a.classList.add("sky-omnibar-toast-container-ready"),d();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then(e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:n})},e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:n})});break;case"navigate-url":u.navigateUrlCallback(t.url);break;case"navigate":u.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(a.style.height=t.height+"px",a.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",a.classList.remove("sky-omnibar-toast-container-empty")):a.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":u.openMenuCallback()}var n,o}class f{static init(e){return u=e,l=e.url,c||(c=new Promise(e=>{d=e,a||(r=o.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),a=document.createElement("iframe"),a.src=f.CONTAINER_URL,a.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",a.title="Toast container",document.body.appendChild(a),window.addEventListener("message",p))})),c}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(a,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){l=e,h()}static destroy(){r&&o.BBAuthDomUtility.removeCss(r),a&&o.BBAuthDomUtility.removeEl(a),l=a=u=c=d=r=void 0,window.removeEventListener("message",p)}}t.BBOmnibarToastContainer=f,f.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(4),r="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user";let a;class c{static getSettings(){return i(this,void 0,void 0,(function*(){return new Promise((e,t)=>i(this,void 0,void 0,(function*(){try{const n=yield o.BBAuth.getToken({disableRedirect:!0}),i=setTimeout(t,this.GET_SETTINGS_TIMEOUT);try{const t=yield s.BBCsrfXhr.requestWithToken(r,n);clearTimeout(i),e(t.settings)}catch(e){t()}}catch(n){try{e(this.getLocalSettings())}catch(e){t()}}})))}))}static updateSettings(e,t){return i(this,void 0,void 0,(function*(){return new Promise((n,c)=>{a&&(clearTimeout(a),a=void 0),a=setTimeout(()=>i(this,void 0,void 0,(function*(){a=void 0;try{const i=yield o.BBAuth.getToken({disableRedirect:!0});try{const o=yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t});n(o)}catch(e){c(e)}}catch(e){let n;try{n=this.getLocalSettings()}catch(e){n={}}try{n.omnibar=n.omnibar||{},Object.assign(n.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(n))}catch(e){c()}}})),this.UPDATE_DELAY)})}))}static getLocalSettings(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))}}t.BBUserSettings=c,c.UPDATE_DELAY=1e3,c.GET_SETTINGS_TIMEOUT=5e3,c.LOCAL_STORAGE_KEY="auth-client-local-user-settings"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(0)),i(n(14)),i(n(16)),i(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4),o=n(13),s=n(5);t.BBAuthTokenIntegration=class{static getToken(e,t,n,r){return void 0!==s.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?i.BBCsrfXhr.request(s.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,r,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:r,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(1),s=n(7);class r{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return r.iframeEl=document.getElementById("auth-cross-domain-iframe"),r.iframeEl||(r.iframeEl=i.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),r.iframeEl.id="auth-cross-domain-iframe",r.iframeEl.hidden=!0),r.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,i=this.tokenRequests[n];if("security-token-svc"===t.source||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};i.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,i)=>{const o=this.requestCounter++;r.tokenRequests[o]={args:t,reject:i,resolve:n},r.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:o,source:"auth-client",value:t},r.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case s.BBAuthTokenErrorCode.Offline:t(e);break;case s.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}}}t.BBAuthCrossDomainIframe=r,r.listenerSetup=!1,r.iframeReadyPromise=new Promise(e=>r.iframeReadyResolve=e),r.tokenRequests={},r.requestCounter=0,r.TARGETORIGIN="https://sts.sky.blackbaud.com"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(2),s=n(4),r=n(3),a=n(1);function c(e,t,n,s){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){const a=r.data;var u,l;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&"context-provider"===a.hostId)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,i.BBAuth.getToken({disableRedirect:l}).then(e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),s({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:o,leIdRequired:r,svcId:a}=e;return!t&&n||!o&&r?new Promise((t,n)=>{a?i.BBAuth.getToken().then(o=>{let r="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(a);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(r,o).then(o=>{const s=o&&o.items,r=s&&s.length;1===r?(e.url=s[0].url,t(e)):r>1?c(e,o,t,n):e.disableRedirect?n(i.BBAuthTokenErrorCode.InvalidEnvironment):d()})}):d()}):Promise.resolve(e)}}t.BBContextProvider=u,u.url="https://host.nxt.blackbaud.com/omnibar/welcome"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(17)),i(n(28)),i(n(29))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(2),r=n(1),a=n(3),c=n(18),d=n(22),u=n(23),l=n(9),m=n(27),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading";let f,v,b,y,g,B,k,I,T,A,w,O;function E(){B=a.BBAuthDomUtility.addIframe(function(){const e=k.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),"sky-omnibar-iframe "+p,"Navigation")}function N(){const e=k.theme;return e&&"modern"===e.name}function C(){if(N()){let e=s.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function _(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(B,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function S(){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-open"})}function R(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter(e=>!e.isRead).length,$()}function x(e){m.BBOmnibarVertical.refreshSettings(e.value)}function P(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}yield u.BBOmnibarPushNotifications.connect({customMessageCallback:x,envId:k.envId,handleNavigate:j,handleNavigateUrl:q,leId:k.leId,notificationsCallback:R,openPushNotificationsMenu:S,showVerticalNav:C(),svcId:k.svcId})}))}function M(){return i(this,void 0,void 0,(function*(){let e;o.BBAuth.clearTokenCache();try{e=yield o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})}catch(e){}s.BBAuthInterop.postOmnibarMessage(B,{messageType:"refresh-user",token:e}),C()&&m.BBOmnibarVertical.refreshUser(e),e?P():u.BBOmnibarPushNotifications.disconnect()}))}function U(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function L(){d.BBOmnibarUserActivityPrompt.hide()}function D(){c.BBOmnibarUserActivity.startTracking(M,U,L,k.allowAnonymous,I)}function j(e){s.BBAuthInterop.handleNavigate(k.nav,e)}function q(e){r.BBAuthNavigator.navigate(e)}function G(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=k.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(B,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return _(),t},history.replaceState=function(){const e=t.apply(history,arguments);return _(),e}}(),s.BBAuthInterop.postOmnibarMessage(B,{compactNavOnly:k.compactNavOnly||C(),enableHelp:k.enableHelp,envId:k.envId,hideResourceLinks:k.hideResourceLinks,leId:k.leId,localNavItems:n&&n.localNavItems,localNotifications:!!k.notifications,localSearch:!!k.onSearch,messageType:"nav-ready",navVersion:k.navVersion,services:n&&n.services,svcId:k.svcId,theme:k.theme}),function(){const e=k.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(B,{messageType:"notifications-update",notifications:e})}})}(),P(!0),_(),T();break;case"display-ready":y.classList.remove(p),B.classList.remove(p);break;case"expand":B.classList.add(h);break;case"collapse":B.classList.remove(h);break;case"navigate-url":q(t.url);break;case"navigate":j(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(k.onSearch){const t=yield k.onSearch(e);s.BBAuthInterop.postOmnibarMessage(B,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(B,t.tokenRequestId,t.disableRedirect,D);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=k.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":o=t.notifications,u.BBOmnibarPushNotifications.updateNotifications(o);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i="sky-omnibar-environment-visible",o="sky-omnibar-environment-description-present",s=document.body.classList;if(e=e||"",v.innerText=e,e)if(s.add(i),t)if(f.classList.add(o),n){const e=document.createElement("a");e.href=n,e.innerText=t,b.appendChild(e)}else b.innerText=t;else f.classList.remove(o);else s.remove(i)}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n,i;const o=null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.images)||void 0===n?void 0:n.favIcon)||void 0===i?void 0:i.url;o&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach(e=>{e.href=o}),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach(e=>{e.remove()}))}(t.branding);break;case"legacy-keep-alive-url-change":I=t.url,D();break;case"selected-service-update":w=t.serviceName,$()}var o}function $(){if(O){const e=O.slice();w&&e.push(w);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return k=k=e,I=k.legacyKeepAliveUrl,new Promise(t=>{T=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=k.theme;if(o){N()&&(t="4px",n="#fff",i="solid 1px #e2e3e4");const s=o.accent;n=o.backgroundColor||n,!1===s?e="display: none;":s&&s.color&&(e=`background-color: ${s.color};`)}g=a.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${n};\n border-bottom: ${i};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ${t};\n ${e}\n}\n\n.sky-omnibar-placeholder.${p} {\n display: block;\n}\n\n.sky-omnibar-iframe.${p} {\n visibility: hidden;\n}\n\n.${h} {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),y=document.createElement("div"),y.className="sky-omnibar-placeholder "+p,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),f=document.createElement("div"),f.className="sky-omnibar-environment",v=document.createElement("span"),v.className="sky-omnibar-environment-name",f.appendChild(v),b=document.createElement("span"),b.className="sky-omnibar-environment-description",f.appendChild(b),a.BBAuthDomUtility.addElToBodyTop(f),E(),C()&&m.BBOmnibarVertical.load(e,B),window.addEventListener("message",G)})}static update(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"update",updateArgs:e})}static setTitle(e){O=e&&e.titleParts,$()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return k?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(B),a.BBAuthDomUtility.removeEl(f),a.BBAuthDomUtility.removeCss(g),window.removeEventListener("message",G),k=g=y=B=f=b=v=T=A=O=w=void 0}}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(5),s=n(4),r=n(1),a=n(19),c=n(20),d=n(21);let u,l,m,h,p,f,v,b,y,g,B,k,I,T,A="";function w(){b=Date.now()}function O(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function E(){const e=Date.now();(!y||e-y>S.MIN_RENEWAL_RETRY)&&(y=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch(()=>{}))}function N(){v=!0,f()}function C(){v=!1,w(),h()}function _(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===B&&s===k||(S.stopTracking(),p=e,f=t,h=n,B=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",O),function(){B||E(),g=setInterval(()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(A,I,B);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:B,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:N})})),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,e=>{I=e.legacyTtl,A=e.refreshId,T=e.legacySigninUrl}),u=!0)}static userRenewedSession(){C(),E()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",O),g&&(clearInterval(g),g=void 0),u=l=m=b=y=v=p=f=h=B=k=void 0}}t.BBOmnibarUserActivity=S,S.ACTIVITY_TIMER_INTERVAL=1e3,S.MIN_RENEWAL_RETRY=6e4,S.INACTIVITY_PROMPT_DURATION=12e4,S.MIN_RENEWAL_AGE=3e5,S.MAX_SESSION_AGE=54e5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:i,inactivityPromptDuration:o,isShowingInactivityPrompt:s,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===i)return;!t&&m>i&&d();const h=i-o,p=i-a+c;s?m<h&&n():r>p?u():!t&&m>h&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),o=n(4);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const r=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{r.then(n=>{let i;if(null===n)i=null;else if("number"==typeof t){const e=Date.now()+t;i=Math.min(n,e)}else i=n;e(i)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),o=n(1),s=n(5);let r,a,c,d,u,l,m,h,p={};function f(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function v(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,s=e&&e.refreshId;n||u||(h?o.BBAuthNavigator.navigate(h):o.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&s!==p.refreshId&&function(e){m&&i.BBAuthInterop.postOmnibarMessage(m,e,f(a))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case f(a):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,h=t.signinUrl,d(p)}}(e)}}class g{static start(e,t,n,i){r&&e===u&&t===a||(g.stop(),u=e,c=n,a=t,d=i,function(){const e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);l=v("sky-omnibar-iframe-session-watcher",e)}(),a&&(m=v("sky-omnibar-iframe-legacy-keep-alive",a)),window.addEventListener("message",y,!1),r=!0)}static stop(){window.removeEventListener("message",y,!1),l&&(document.body.removeChild(l),l=void 0),m&&(document.body.removeChild(m),m=void 0),p={},r=u=c=a=h=d=void 0}}t.BBOmnibarUserSessionWatcher=g,g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=s.BBAuthDomain.getSTSDomain()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(2);let s,r,a;function c(e){if(!o.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,s=i.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=i.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(i.BBAuthDomUtility.removeEl(r),i.BBAuthDomUtility.removeCss(s),r=s=a=void 0,window.removeEventListener("message",c))}}t.BBOmnibarUserActivityPrompt=d,d.url="https://host.nxt.blackbaud.com/omnibar/inactivity"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(24),s=n(0),r=n(2),a=n(8),c=n(9);let d,u,l=!1;const m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};class h{static connect(e){return i(this,void 0,void 0,(function*(){if(!l){d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,BBNotificationsClient.BBNotifications.init({tokenCallback:()=>s.BBAuth.getToken({disableRedirect:!0,envId:e.envId,leId:e.leId})});(yield this.pushNotificationsEnabled())&&(yield function(e){return i(this,void 0,void 0,(function*(){yield c.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:e.customMessageCallback,customMessageType:"ui-config-global-settings-update"})}}))}static disconnect(){return i(this,void 0,void 0,(function*(){l&&(d=void 0,c.BBOmnibarToastContainer.destroy(),yield u,BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){BBNotificationsClient.BBNotifications.updateNotifications(e)}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){if(l){const e=m[d.svcId];if(e)return!e.requiresNotif||function(e,t){return i(this,void 0,void 0,(function*(){let n;try{n=yield s.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})}catch(e){return!1}let i=o(n)["1bb.entitlements"];return!!i&&(i=Array.isArray(i)?i:[i],i.indexOf("notif")>-1)}))}(d.envId,d.leId)}return!1}))}}t.BBOmnibarPushNotifications=h,h.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js"},function(e,t,n){"use strict";var i=n(25);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var i=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,s=0,r=0,a="";o=t.charAt(r++);~o&&(i=s%4?64*i+o:o,s++%4)?a+=String.fromCharCode(255&i>>(-2*s&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),s=n(3),r=n(2),a=n(1),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m=new Set;let h,p,f,v,b,y,g;function B(){var e,t;return null===(t=null===(e=h)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function k(){r.BBAuthInterop.postLocationChangeMessage(f,p)}function I(){document.body.classList.add(l)}function T(){document.body.classList.remove(l)}function A(e,t){if(t){const t=Date.now().toString();m.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?I():T()}function w(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=b.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(f,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(f,{envId:b.envId,leId:b.leId,messageType:"nav-ready",minimized:B(),navVersion:b.navVersion,services:n&&n.services,svcId:b.svcId,theme:b.theme}),k(),y();break;case"display-ready":v.classList.remove(d);break;case"expand":v.classList.add(c);break;case"collapse":v.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(b.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(f,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return b=e,new Promise(e=>i(this,void 0,void 0,(function*(){y=e,g=s.BBAuthDomUtility.addCss(`\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .sky-omnibar-vertical-iframe-wrapper:not(.${c}) {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.${d} .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.${c} {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .${u} {\n margin-left: 300px;\n }\n\n .${l} {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n`);try{h=yield o.BBUserSettings.getSettings()}catch(e){}!function(e){B()&&I();const t=b.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";f=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),v=document.createElement("div"),v.className="sky-omnibar-vertical-iframe-wrapper "+d,v.appendChild(f),e.insertAdjacentElement("afterend",v),document.body.classList.add(u)}(t),window.addEventListener("message",w)})))}))}static updateUrl(e){p=e,k()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(f,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n,s,a;return i(this,void 0,void 0,(function*(){m.has(e)?m.delete(e):(h=yield o.BBUserSettings.getSettings(),A(null===(n=null===(t=h)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),r.BBAuthInterop.postOmnibarMessage(f,{messageType:"update-vertical",updateArgs:{minimized:null===(a=null===(s=h)||void 0===s?void 0:s.omnibar)||void 0===a?void 0:a.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(v),s.BBAuthDomUtility.removeCss(g),document.body.classList.remove(u),T(),window.removeEventListener("message",w),m.clear(),h=p=f=v=b=y=g=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=o(),s=n&&n.fn&&n.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",s).then(()=>i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBAuthClient=t():e.BBAuthClient=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(6)),i(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=encodeURIComponent;function s(e){let t="https://signin.blackbaud.com/signin/?redirectUrl="+o(location.href);return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=s();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${o(n)}=${o(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=s(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+o(e);this.navigate(t)}static redirectToError(e){let t,n;switch(e){case i.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${o(location.href)}`;n&&(s+="&code="+o(n)),this.navigate(s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(1);function s(e,t){if("https://host.nxt.blackbaud.com"===e.origin){const n=e.data;return!!n&&n.source===t}return!1}class r{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")}static messageIsFromOmnibar(e){return s(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return s(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return s(e,"skyux-spa-omnibar-toast-container")}static handleGetToken(e,t,n,o){return i.BBAuth.getToken({disableRedirect:n}).then(n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})},n=>{o&&o(),this.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})})}static postLocationChangeMessage(e,t){e&&r.postOmnibarMessage(e,{href:t,messageType:"location-change"})}static handleNavigate(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||o.BBAuthNavigator.navigate(t.url)}static getCurrentUrl(){return document.location.href}}t.BBAuthInterop=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static createIframe(e,t,n){const i=document.createElement("iframe");return i.className=t,i.title=n,i.src=e,i}static addIframe(e,t,n){const i=this.createIframe(e,t,n);return this.addElToBodyTop(i),i}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(5),s=n(1);function r(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,s){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",s),a=r(a,"permission_scope",o,!(!n&&!s||!o)),new Promise((n,o)=>{!function(e,t,n,o,s){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:s({code:i.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:s({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:s({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&s({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===i.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(t);break;default:s.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t,n="GET",i){return new Promise((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 200:let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e);break;default:s(r)}},r.open(n,e,!0),r.setRequestHeader("Authorization","Bearer "+t),r.setRequestHeader("Accept","application/json"),n){case"GET":r.send();break;case"PATCH":case"POST":r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify(i))}})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"};class o{static getRegisteredDomain(){for(const e of Object.keys(i)){const t="."+e;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return i[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=o,o.CURRENT_DOMAIN=window.location.hostname},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class s{static getUrl(e,t){const n=o.exec(e);let i=e,s=t?t.zone:void 0;return s&&(s=s.replace("-","")),n&&(n[3]&&(s=n[3].substring(1)),i=`https://${n[1]}-${s}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return s.getTokenInternal(e)}static clearTokenCache(){s.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(s.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const o=function(e){const{envId:t,permissionScope:n,leId:i}=e;return"token|"+(i||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=s.tokenCache[o]=s.tokenCache[o]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}t.BBAuth=s,s.mock=!1,s.tokenCache={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function i(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class o{static registerScript(e){return new Promise((t,n)=>{const i=document.createElement("script");i.onload=t,i.onerror=n,i.src=e,document.body.appendChild(i)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=i(e),o=i(t);for(let e=0;e<n.length;e++)if(e<o.length){if(o[e]>n[e])return!0;if(o[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():o.registerScript(e)}}t.BBOmnibarScriptLoader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(6),o=n(3),s=n(2);let r,a,c,d,u,l;function m(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){a&&s.BBAuthInterop.postOmnibarMessage(a,{href:l,messageType:"location-change"})}function p(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(a,{envId:u.envId,leId:u.leId,messageType:"nav-ready",svcId:u.svcId}),h(),a.classList.add("sky-omnibar-toast-container-ready"),d();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then(e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:n})},e=>{s.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:n})});break;case"navigate-url":u.navigateUrlCallback(t.url);break;case"navigate":u.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(a.style.height=t.height+"px",a.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",a.classList.remove("sky-omnibar-toast-container-empty")):a.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":u.openMenuCallback()}var n,o}class f{static init(e){return u=e,l=e.url,c||(c=new Promise(e=>{d=e,a||(r=o.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),a=document.createElement("iframe"),a.src=f.CONTAINER_URL,a.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",a.title="Toast container",document.body.appendChild(a),window.addEventListener("message",p))})),c}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(a,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){l=e,h()}static destroy(){r&&o.BBAuthDomUtility.removeCss(r),a&&o.BBAuthDomUtility.removeEl(a),l=a=u=c=d=r=void 0,window.removeEventListener("message",p)}}t.BBOmnibarToastContainer=f,f.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(4),r="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user";let a;class c{static getSettings(){return i(this,void 0,void 0,(function*(){return new Promise((e,t)=>i(this,void 0,void 0,(function*(){try{const n=yield o.BBAuth.getToken({disableRedirect:!0}),i=setTimeout(t,this.GET_SETTINGS_TIMEOUT);try{const t=yield s.BBCsrfXhr.requestWithToken(r,n);clearTimeout(i),e(t.settings)}catch(e){t()}}catch(n){try{e(this.getLocalSettings())}catch(e){t()}}})))}))}static updateSettings(e,t){return i(this,void 0,void 0,(function*(){return new Promise((n,c)=>{a&&(clearTimeout(a),a=void 0),a=setTimeout(()=>i(this,void 0,void 0,(function*(){a=void 0;try{const i=yield o.BBAuth.getToken({disableRedirect:!0});try{const o=yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t});n(o)}catch(e){c(e)}}catch(e){let n;try{n=this.getLocalSettings()}catch(e){n={}}try{n.omnibar=n.omnibar||{},Object.assign(n.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(n))}catch(e){c()}}})),this.UPDATE_DELAY)})}))}static getLocalSettings(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))}}t.BBUserSettings=c,c.UPDATE_DELAY=1e3,c.GET_SETTINGS_TIMEOUT=5e3,c.LOCAL_STORAGE_KEY="auth-client-local-user-settings"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(0)),i(n(14)),i(n(16)),i(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4),o=n(13),s=n(5);t.BBAuthTokenIntegration=class{static getToken(e,t,n,r){return void 0!==s.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?i.BBCsrfXhr.request(s.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,r,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:r,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(1),s=n(7);class r{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return r.iframeEl=document.getElementById("auth-cross-domain-iframe"),r.iframeEl||(r.iframeEl=i.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),r.iframeEl.id="auth-cross-domain-iframe",r.iframeEl.hidden=!0),r.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,i=this.tokenRequests[n];if("security-token-svc"===t.source||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};i.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,i)=>{const o=this.requestCounter++;r.tokenRequests[o]={args:t,reject:i,resolve:n},r.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:o,source:"auth-client",value:t},r.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case s.BBAuthTokenErrorCode.Offline:t(e);break;case s.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}}}t.BBAuthCrossDomainIframe=r,r.listenerSetup=!1,r.iframeReadyPromise=new Promise(e=>r.iframeReadyResolve=e),r.tokenRequests={},r.requestCounter=0,r.TARGETORIGIN="https://sts.sky.blackbaud.com"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),o=n(2),s=n(4),r=n(3),a=n(1);function c(e,t,n,s){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){const a=r.data;var u,l;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&"context-provider"===a.hostId)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,i.BBAuth.getToken({disableRedirect:l}).then(e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),s({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:o,leIdRequired:r,svcId:a}=e;return!t&&n||!o&&r?new Promise((t,n)=>{a?i.BBAuth.getToken().then(o=>{let r="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(a);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(r,o).then(o=>{const s=o&&o.items,r=s&&s.length;1===r?(e.url=s[0].url,t(e)):r>1?c(e,o,t,n):e.disableRedirect?n(i.BBAuthTokenErrorCode.InvalidEnvironment):d()})}):d()}):Promise.resolve(e)}}t.BBContextProvider=u,u.url="https://host.nxt.blackbaud.com/omnibar/welcome"},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(17)),i(n(28)),i(n(29))},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(0),s=n(2),r=n(1),a=n(3),c=n(18),d=n(22),u=n(23),l=n(9),m=n(27),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading";let f,v,b,y,g,B,k,I,T,A,w,O;function E(){B=a.BBAuthDomUtility.addIframe(function(){const e=k.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),"sky-omnibar-iframe "+p,"Navigation")}function N(){const e=k.theme;return e&&"modern"===e.name}function C(e){e?(f.classList.remove("sky-omnibar-environment-theme-default"),f.classList.add("sky-omnibar-environment-theme-modern")):(f.classList.remove("sky-omnibar-environment-theme-modern"),f.classList.add("sky-omnibar-environment-theme-default"))}function _(){if(N()){if("tcs"===k.svcId)return!0;let e=s.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function S(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(B,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-open"})}function x(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter(e=>!e.isRead).length,V()}function P(e){m.BBOmnibarVertical.refreshSettings(e.value)}function M(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}yield u.BBOmnibarPushNotifications.connect({customMessageCallback:P,envId:k.envId,handleNavigate:q,handleNavigateUrl:G,leId:k.leId,notificationsCallback:x,openPushNotificationsMenu:R,showVerticalNav:_(),svcId:k.svcId})}))}function L(){return i(this,void 0,void 0,(function*(){let e;o.BBAuth.clearTokenCache();try{e=yield o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})}catch(e){}s.BBAuthInterop.postOmnibarMessage(B,{messageType:"refresh-user",token:e}),_()&&m.BBOmnibarVertical.refreshUser(e),e?M():u.BBOmnibarPushNotifications.disconnect()}))}function U(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function D(){d.BBOmnibarUserActivityPrompt.hide()}function j(){c.BBOmnibarUserActivity.startTracking(L,U,D,k.allowAnonymous,I)}function q(e){s.BBAuthInterop.handleNavigate(k.nav,e)}function G(e){r.BBAuthNavigator.navigate(e)}function $(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=k.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(B,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return S(),t},history.replaceState=function(){const e=t.apply(history,arguments);return S(),e}}(),s.BBAuthInterop.postOmnibarMessage(B,{compactNavOnly:k.compactNavOnly||_(),enableHelp:k.enableHelp,envId:k.envId,hideResourceLinks:k.hideResourceLinks,leId:k.leId,localNavItems:n&&n.localNavItems,localNotifications:!!k.notifications,localSearch:!!k.onSearch,messageType:"nav-ready",navVersion:k.navVersion,services:n&&n.services,svcId:k.svcId,theme:k.theme}),function(){const e=k.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(B,{messageType:"notifications-update",notifications:e})}})}(),M(!0),S(),T();break;case"display-ready":y.classList.remove(p),B.classList.remove(p);break;case"expand":B.classList.add(h);break;case"collapse":B.classList.remove(h);break;case"navigate-url":G(t.url);break;case"navigate":q(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(k.onSearch){const t=yield k.onSearch(e);s.BBAuthInterop.postOmnibarMessage(B,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(B,t.tokenRequestId,t.disableRedirect,j);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=k.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":o=t.notifications,u.BBOmnibarPushNotifications.updateNotifications(o);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i="sky-omnibar-environment-visible",o="sky-omnibar-environment-description-present",s=document.body.classList;if(e=e||"",v.innerText=e,e)if(s.add(i),t)if(f.classList.add(o),n){const e=document.createElement("a");e.href=n,e.innerText=t,b.appendChild(e)}else b.innerText=t;else f.classList.remove(o);else s.remove(i)}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n,i;const o=null===(i=null===(n=null===(t=e)||void 0===t?void 0:t.images)||void 0===n?void 0:n.favIcon)||void 0===i?void 0:i.url;o&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach(e=>{e.href=o}),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach(e=>{e.remove()}))}(t.branding);break;case"legacy-keep-alive-url-change":I=t.url,j();break;case"selected-service-update":w=t.serviceName,V()}var o}function V(){if(O){const e=O.slice();w&&e.push(w);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return k=k=e,I=k.legacyKeepAliveUrl,new Promise(t=>{T=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=k.theme;if(o){N()&&(t="4px",n="#fff",i="solid 1px #e2e3e4");const s=o.accent;n=o.backgroundColor||n,!1===s?e="display: none;":s&&s.color&&(e=`background-color: ${s.color};`)}g=a.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${n};\n border-bottom: ${i};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ${t};\n ${e}\n}\n\n.sky-omnibar-placeholder.${p} {\n display: block;\n}\n\n.sky-omnibar-iframe.${p} {\n visibility: hidden;\n}\n\n.${h} {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-theme-default {\n background-color: #e1e1e3;\n color: #282b31;\n}\n\n.sky-omnibar-environment-theme-modern {\n background-color: transparent;\n color: inherit;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),y=document.createElement("div"),y.className="sky-omnibar-placeholder "+p,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),f=document.createElement("div"),f.className="sky-omnibar-environment",C(N()),v=document.createElement("span"),v.className="sky-omnibar-environment-name",f.appendChild(v),b=document.createElement("span"),b.className="sky-omnibar-environment-description",f.appendChild(b),a.BBAuthDomUtility.addElToBodyTop(f),E(),_()&&m.BBOmnibarVertical.load(e,B),window.addEventListener("message",$)})}static update(e){s.BBAuthInterop.postOmnibarMessage(B,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)}static setTitle(e){O=e&&e.titleParts,V()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return k?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(B),a.BBAuthDomUtility.removeEl(f),a.BBAuthDomUtility.removeCss(g),window.removeEventListener("message",$),k=g=y=B=f=b=v=T=A=O=w=void 0}}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(5),s=n(4),r=n(1),a=n(19),c=n(20),d=n(21);let u,l,m,h,p,f,v,b,y,g,B,k,I,T,A="";function w(){b=Date.now()}function O(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function E(){const e=Date.now();(!y||e-y>S.MIN_RENEWAL_RETRY)&&(y=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch(()=>{}))}function N(){v=!0,f()}function C(){v=!1,w(),h()}function _(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===B&&s===k||(S.stopTracking(),p=e,f=t,h=n,B=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",O),function(){B||E(),g=setInterval(()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(A,I,B);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:B,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:N})})),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,e=>{I=e.legacyTtl,A=e.refreshId,T=e.legacySigninUrl}),u=!0)}static userRenewedSession(){C(),E()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",O),g&&(clearInterval(g),g=void 0),u=l=m=b=y=v=p=f=h=B=k=void 0}}t.BBOmnibarUserActivity=S,S.ACTIVITY_TIMER_INTERVAL=1e3,S.MIN_RENEWAL_RETRY=6e4,S.INACTIVITY_PROMPT_DURATION=12e4,S.MIN_RENEWAL_AGE=3e5,S.MAX_SESSION_AGE=54e5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:i,inactivityPromptDuration:o,isShowingInactivityPrompt:s,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===i)return;!t&&m>i&&d();const h=i-o,p=i-a+c;s?m<h&&n():r>p?u():!t&&m>h&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5),o=n(4);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const r=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{r.then(n=>{let i;if(null===n)i=null;else if("number"==typeof t){const e=Date.now()+t;i=Math.min(n,e)}else i=n;e(i)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2),o=n(1),s=n(5);let r,a,c,d,u,l,m,h,p={};function f(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function v(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,s=e&&e.refreshId;n||u||(h?o.BBAuthNavigator.navigate(h):o.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&s!==p.refreshId&&function(e){m&&i.BBAuthInterop.postOmnibarMessage(m,e,f(a))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case f(a):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,h=t.signinUrl,d(p)}}(e)}}class g{static start(e,t,n,i){r&&e===u&&t===a||(g.stop(),u=e,c=n,a=t,d=i,function(){const e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);l=v("sky-omnibar-iframe-session-watcher",e)}(),a&&(m=v("sky-omnibar-iframe-legacy-keep-alive",a)),window.addEventListener("message",y,!1),r=!0)}static stop(){window.removeEventListener("message",y,!1),l&&(document.body.removeChild(l),l=void 0),m&&(document.body.removeChild(m),m=void 0),p={},r=u=c=a=h=d=void 0}}t.BBOmnibarUserSessionWatcher=g,g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=s.BBAuthDomain.getSTSDomain()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3),o=n(2);let s,r,a;function c(e){if(!o.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,s=i.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=i.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(i.BBAuthDomUtility.removeEl(r),i.BBAuthDomUtility.removeCss(s),r=s=a=void 0,window.removeEventListener("message",c))}}t.BBOmnibarUserActivityPrompt=d,d.url="https://host.nxt.blackbaud.com/omnibar/inactivity"},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(24),s=n(0),r=n(2),a=n(8),c=n(9);let d,u,l=!1;const m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};class h{static connect(e){return i(this,void 0,void 0,(function*(){if(!l){d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,BBNotificationsClient.BBNotifications.init({tokenCallback:()=>s.BBAuth.getToken({disableRedirect:!0,envId:e.envId,leId:e.leId})});(yield this.pushNotificationsEnabled())&&(yield function(e){return i(this,void 0,void 0,(function*(){yield c.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:e.customMessageCallback,customMessageType:"ui-config-global-settings-update"})}}))}static disconnect(){return i(this,void 0,void 0,(function*(){l&&(d=void 0,c.BBOmnibarToastContainer.destroy(),yield u,BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){BBNotificationsClient.BBNotifications.updateNotifications(e)}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){if(l){const e=m[d.svcId];if(e)return!e.requiresNotif||function(e,t){return i(this,void 0,void 0,(function*(){let n;try{n=yield s.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})}catch(e){return!1}let i=o(n)["1bb.entitlements"];return!!i&&(i=Array.isArray(i)?i:[i],i.indexOf("notif")>-1)}))}(d.envId,d.leId)}return!1}))}}t.BBOmnibarPushNotifications=h,h.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js"},function(e,t,n){"use strict";var i=n(25);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var i=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,s=0,r=0,a="";o=t.charAt(r++);~o&&(i=s%4?64*i+o:o,s++%4)?a+=String.fromCharCode(255&i>>(-2*s&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=n(10),s=n(3),r=n(2),a=n(1),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m=new Set;let h,p,f,v,b,y,g;function B(){var e,t;return null===(t=null===(e=h)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function k(){r.BBAuthInterop.postLocationChangeMessage(f,p)}function I(){document.body.classList.add(l)}function T(){document.body.classList.remove(l)}function A(e,t){if(t){const t=Date.now().toString();m.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?I():T()}function w(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=b.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(f,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(f,{envId:b.envId,leId:b.leId,messageType:"nav-ready",minimized:B(),navVersion:b.navVersion,services:n&&n.services,svcId:b.svcId,theme:b.theme}),k(),y();break;case"display-ready":v.classList.remove(d);break;case"expand":v.classList.add(c);break;case"collapse":v.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(b.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(f,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return b=e,new Promise(e=>i(this,void 0,void 0,(function*(){y=e,g=s.BBAuthDomUtility.addCss(`\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .sky-omnibar-vertical-iframe-wrapper:not(.${c}) {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.${d} .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.${c} {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .${u} {\n margin-left: 300px;\n }\n\n .${l} {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n`);try{h=yield o.BBUserSettings.getSettings()}catch(e){}!function(e){B()&&I();const t=b.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";f=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),v=document.createElement("div"),v.className="sky-omnibar-vertical-iframe-wrapper "+d,v.appendChild(f),e.insertAdjacentElement("afterend",v),document.body.classList.add(u)}(t),window.addEventListener("message",w)})))}))}static updateUrl(e){p=e,k()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(f,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n,s,a;return i(this,void 0,void 0,(function*(){m.has(e)?m.delete(e):(h=yield o.BBUserSettings.getSettings(),A(null===(n=null===(t=h)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),r.BBAuthInterop.postOmnibarMessage(f,{messageType:"update-vertical",updateArgs:{minimized:null===(a=null===(s=h)||void 0===s?void 0:s.omnibar)||void 0===a?void 0:a.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(v),s.BBAuthDomUtility.removeCss(g),document.body.classList.remove(u),T(),window.removeEventListener("message",w),m.clear(),h=p=f=v=b=y=g=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=o(),s=n&&n.fn&&n.fn.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",s).then(()=>i.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>i.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}])})); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBAuthClient=t():e.BBAuthClient=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(6)),r(n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=encodeURIComponent;function o(e){var t="https://signin.blackbaud.com/signin/?redirectUrl="+i(location.href);return e&&(t+="&inactivity=1"),t}var a=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=o();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(i(n)+"="+i(e[n]));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=o(!0),t="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+i(e);this.navigate(t)},e.redirectToError=function(e){var t,n;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}var o="https://host.nxt.blackbaud.com/errors/"+t+"?source=auth-client&url="+i(location.href);n&&(o+="&code="+i(n)),this.navigate(o)},e}();t.BBAuthNavigator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1);function o(e,t){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&n.source===t}return!1}var a=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){return o(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return o(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return o(e,"skyux-spa-omnibar-toast-container")},e.handleGetToken=function(e,t,n,i){var o=this;return r.BBAuth.getToken({disableRedirect:n}).then((function(n){i&&i(),o.postOmnibarMessage(e,{messageType:"token",token:n,tokenRequestId:t})}),(function(n){i&&i(),o.postOmnibarMessage(e,{messageType:"token-fail",reason:n,tokenRequestId:t})}))},e.postLocationChangeMessage=function(t,n){t&&e.postOmnibarMessage(t,{href:n,messageType:"location-change"})},e.handleNavigate=function(e,t){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(t)||i.BBAuthNavigator.navigate(t.url)},e.getCurrentUrl=function(){return document.location.href},e}();t.BBAuthInterop=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},e.createIframe=function(e,t,n){var r=document.createElement("iframe");return r.className=t,r.title=n,r.src=e,r},e.addIframe=function(e,t,n){var r=this.createIframe(e,t,n);return this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,t){void 0===t&&(t=document.body),t.contains(e)&&t.removeChild(e)},e.addElToBodyTop=function(e){var t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},e}();t.BBAuthDomUtility=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5),o=n(1);function a(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function s(e,t,n,i,o){var s;return s=a(s,"environment_id",n),s=a(s,"legal_entity_id",o),s=a(s,"permission_scope",i,!(!n&&!o||!i)),new Promise((function(n,i){!function(e,t,n,i,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:o({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:i(a.responseText);break;case 401:o({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&o({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(t.name,t.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,n?a.send(JSON.stringify(n)):a.send()}(e,{name:"X-CSRF",value:t},s,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),i)}))}var c=function(){function e(){}return e.request=function(e,t,n,a,c,u,l){return!c||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):s(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return s(e,t.csrf_token,a,c,u)})).then(d).catch((function(e){if(n||e.code===r.BBAuthTokenErrorCode.Offline)f(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(t);break;default:o.BBAuthNavigator.redirectToError(e.code)}}))})):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,t,n,r){return void 0===n&&(n="GET"),new Promise((function(i,o){var a=new XMLHttpRequest;switch(a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 200:var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e);break;default:o(a)}},a.open(n,e,!0),a.setRequestHeader("Authorization","Bearer "+t),a.setRequestHeader("Accept","application/json"),n){case"GET":a.send();break;case"PATCH":case"POST":a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(r))}}))},e}();t.BBCsrfXhr=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"},i=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(r);e<t.length;e++){var n=t[e],i="."+n;if(this.CURRENT_DOMAIN===n||this.CURRENT_DOMAIN.substr(-i.length)===i)return n}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return r[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var o=function(){function e(){}return e.getUrl=function(e,t){var n=i.exec(e),r=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),r="https://"+n[1]+"-"+o+".app.blackbaud.net/"+n[2]+"/"+n[4]),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(t){var n=(t=t||{}).forceNewToken,i=t.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var o=function(e){var t=e.envId,n=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(t||"-")+"|"+(n||"-")}(t),a=e.tokenCache[o]=e.tokenCache[o]||{},s=(new Date).valueOf();return!n&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(i,t.envId,t.permissionScope,t.leId).then((function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken})).catch((function(e){throw a.pendingLookupPromise=null,e}))),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();t.BBAuth=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function r(e){for(var t=[],n=0,r=e.split(".");n<r.length;n++){var i=r[n],o=parseInt(i,10)||0;t.push(o)}return t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=t,r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,n,i){return i&&function(e,t){for(var n=r(e),i=r(t),o=0;o<n.length;o++)if(o<i.length){if(i[o]>n[o])return!0;if(i[o]<n[o])return!1}return!0}(n,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,u=n(6),l=n(3),d=n(2);function f(){return i||(r=l.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),(i=document.createElement("iframe")).src=v.CONTAINER_URL,i.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",p)),i}function m(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function h(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function p(e){if(d.BBAuthInterop.messageIsFromToastContainer(e)){var t,n,r=e.data;switch(r.messageType){case"toast-ready":d.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),d.BBAuthInterop.postOmnibarMessage(i,{envId:s.envId,leId:s.leId,messageType:"nav-ready",svcId:s.svcId}),h(),i.classList.add("sky-omnibar-toast-container-ready"),a();break;case"get-token":t=r.tokenRequestId,n=r.disableRedirect,u.BBAuth.getToken({disableRedirect:n}).then((function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token",token:e,tokenRequestId:t})}),(function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token-fail",reason:e,tokenRequestId:t})}));break;case"navigate-url":s.navigateUrlCallback(r.url);break;case"navigate":s.navigateCallback(r.navItem);break;case"toast-container-change":r.height>0?(i.style.height=r.height+"px",i.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",i.classList.remove("sky-omnibar-toast-container-empty")):i.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":s.openMenuCallback()}}}var v=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,f()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,h()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",p)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=v},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(0),s=n(4),c="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user",u=function(){function e(){}return e.getSettings=function(){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){return[2,new Promise((function(t,n){return r(e,void 0,void 0,(function(){var e,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 1:e=i.sent(),r=setTimeout(n,this.GET_SETTINGS_TIMEOUT),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.BBCsrfXhr.requestWithToken(c,e)];case 3:return o=i.sent(),clearTimeout(r),t(o.settings),[3,5];case 4:return i.sent(),n(),[3,5];case 5:return[3,7];case 6:i.sent();try{t(this.getLocalSettings())}catch(e){n()}return[3,7];case 7:return[2]}}))}))}))]}))}))},e.updateSettings=function(e,t){return r(this,void 0,void 0,(function(){var n=this;return i(this,(function(u){return[2,new Promise((function(u,l){o&&(clearTimeout(o),o=void 0),o=setTimeout((function(){return r(n,void 0,void 0,(function(){var n,r,d,f;return i(this,(function(i){switch(i.label){case 0:o=void 0,i.label=1;case 1:return i.trys.push([1,7,,8]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 2:n=i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),[4,s.BBCsrfXhr.requestWithToken(c,n,"PATCH",{correlationId:e,settings:t})];case 4:return r=i.sent(),u(r),[3,6];case 5:return d=i.sent(),l(d),[3,6];case 6:return[3,8];case 7:i.sent(),f=void 0;try{f=this.getLocalSettings()}catch(e){f={}}try{f.omnibar=f.omnibar||{},Object.assign(f.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(f))}catch(e){l()}return[3,8];case 8:return[2]}}))}))}),n.UPDATE_DELAY)}))]}))}))},e.getLocalSettings=function(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))},e.UPDATE_DELAY=1e3,e.GET_SETTINGS_TIMEOUT=5e3,e.LOCAL_STORAGE_KEY="auth-client-local-user-settings",e}();t.BBUserSettings=u},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(0)),r(n(14)),r(n(16)),r(n(30))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(13),o=n(5),a=function(){function e(){}return e.getToken=function(e,t,n,a){return void 0!==o.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,t,n,a,!0):i.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:a,permissionScope:n})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();t.BBAuthTokenIntegration=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(1),o=n(7),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise((function(t){return e.iframeReadyResolve=t})),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",(function(t){var n=t.data,r=n.requestId,i=e.tokenRequests[r];if("security-token-svc"===n.source||n.origin===e.TARGET_ORIGIN())switch(n.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(n.value,i.reject,i.args.disableRedirect);break;case"getToken":var o={access_token:n.value,expires_in:0};i.resolve(o)}})),this.listenerSetup=!0)},e.getTokenFromIframe=function(t,n){var r=this;return new Promise((function(i,o){var a=r.requestCounter++;e.tokenRequests[a]={args:n,reject:o,resolve:i},e.iframeReadyPromise.then((function(){t.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:n},e.TARGET_ORIGIN())}))}))},e.handleErrorMessage=function(e,t,n){if(n)t(e);else switch(e.code){case o.BBAuthTokenErrorCode.Offline:t(e);break;case o.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(void 0);break;default:i.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise((function(t){return e.iframeReadyResolve=t})),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://sts.sky.blackbaud.com",e}();t.BBAuthCrossDomainIframe=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(15))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),o=n(4),a=n(3),s=n(1);function c(e,t,n,o){var s,c,u;function d(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",f)}function f(a){var s,u,l=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&"context-provider"===l.hostId)switch(l.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=l.tokenRequestId,u=l.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then((function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":d(),o({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout((function(){e.envId=l.envId,n(e)}),10)}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=l.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",f)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var l=function(){function e(){}return e.ensureContext=function(e){var t=e.envId,n=e.envIdRequired,i=e.leId,a=e.leIdRequired,s=e.svcId;return!t&&n||!i&&a?new Promise((function(t,n){s?r.BBAuth.getToken().then((function(i){var a="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(s);e.url&&(a+="&referringurl="+encodeURIComponent(e.url)),o.BBCsrfXhr.requestWithToken(a,i).then((function(i){var o=i&&i.items,a=o&&o.length;1===a?(e.url=o[0].url,t(e)):a>1?c(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):u()}))})):u()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=l},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(17)),r(n(28)),r(n(29))},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b=n(0),y=n(2),g=n(1),B=n(3),k=n(18),I=n(22),w=n(23),T=n(9),A=n(27),O="sky-omnibar-iframe-expanded",E="sky-omnibar-loading";function N(){var e;l=B.BBAuthDomUtility.addIframe((e=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar","sky-omnibar-iframe "+E,"Navigation")}function _(){var e=d.theme;return e&&"modern"===e.name}function C(){if(_()){var e=y.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function S(){var e=y.BBAuthInterop.getCurrentUrl();y.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),A.BBOmnibarVertical.updateUrl(e)}function x(){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function R(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),h=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,F()}function P(e){A.BBOmnibarVertical.refreshSettings(e.value)}function M(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:if(!e)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0})];case 2:return t.sent(),[3,4];case 3:return t.sent(),[2];case 4:return[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:P,envId:d.envId,handleNavigate:q,handleNavigateUrl:G,leId:d.leId,notificationsCallback:R,openPushNotificationsMenu:x,showVerticalNav:C(),svcId:d.svcId})];case 5:return t.sent(),[2]}}))}))}function U(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:b.BBAuth.clearTokenCache(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return y.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),C()&&A.BBOmnibarVertical.refreshUser(e),e?M():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function L(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function D(){I.BBOmnibarUserActivityPrompt.hide()}function j(){k.BBOmnibarUserActivity.startTracking(U,L,D,d.allowAnonymous,f)}function q(e){y.BBAuthInterop.handleNavigate(d.nav,e)}function G(e){g.BBAuthNavigator.navigate(e)}function V(e){var t=e.data;if(y.BBAuthInterop.messageIsFromOmnibar(e)&&"omnibar"===t.hostId){var n,u,h,v,b,g,B,I,T,A,N=d.nav;switch(t.messageType){case"ready":y.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),T=history.pushState,A=history.replaceState,history.pushState=function(){var e=T.apply(history,arguments);return S(),e},history.replaceState=function(){var e=A.apply(history,arguments);return S(),e},y.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||C(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:N&&N.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:N&&N.services,svcId:d.svcId,theme:d.theme}),(I=d.notifications)&&I.onReady({updateNotifications:function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),M(!0),S(),m();break;case"display-ready":c.classList.remove(E),l.classList.remove(E);break;case"expand":l.classList.add(O);break;case"collapse":l.classList.remove(O);break;case"navigate-url":G(t.url);break;case"navigate":q(t.navItem);break;case"search":!function(e){r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return d.onSearch?[4,d.onSearch(e)]:[3,2];case 1:t=n.sent(),y.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":y.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,j);break;case"help-open":(B=window.BBHELP)&&B.HelpWidget.open();break;case"notification-read":!function(e){var t=d.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":g=t.notifications,w.BBOmnibarPushNotifications.updateNotifications(g);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r="sky-omnibar-environment-visible",i="sky-omnibar-environment-description-present",c=document.body.classList;if(e=e||"",a.innerText=e,e)if(c.add(r),t)if(o.classList.add(i),n){var u=document.createElement("a");u.href=n,u.innerText=t,s.appendChild(u)}else s.innerText=t;else o.classList.remove(i);else c.remove(r)}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(b=null===(v=null===(h=null===(u=n)||void 0===u?void 0:u.images)||void 0===h?void 0:h.favIcon)||void 0===v?void 0:v.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=b})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,j();break;case"selected-service-update":p=t.serviceName,F()}}}function F(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");h&&(t="("+h+") "+t),document.title=t}}var Y=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){m=t,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",r="none",i=d.theme;if(i){_()&&(t="4px",n="#fff",r="solid 1px #e2e3e4");var o=i.accent;n=i.backgroundColor||n,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n border-bottom: "+r+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: "+t+";\n "+e+"\n}\n\n.sky-omnibar-placeholder."+E+" {\n display: block;\n}\n\n.sky-omnibar-iframe."+E+" {\n visibility: hidden;\n}\n\n."+O+' {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(c=document.createElement("div")).className="sky-omnibar-placeholder "+E,c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",(a=document.createElement("span")).className="sky-omnibar-environment-name",o.appendChild(a),(s=document.createElement("span")).className="sky-omnibar-environment-description",o.appendChild(s),B.BBAuthDomUtility.addElToBodyTop(o),N(),C()&&A.BBOmnibarVertical.load(e,l),window.addEventListener("message",V)}))},e.update=function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e})},e.setTitle=function(e){v=e&&e.titleParts,F()},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return d?[2,w.BBOmnibarPushNotifications.pushNotificationsEnabled()]:[2,Promise.resolve(!1)]}))}))},e.destroy=function(){T.BBOmnibarToastContainer.destroy(),w.BBOmnibarPushNotifications.disconnect(),B.BBAuthDomUtility.removeEl(c),B.BBAuthDomUtility.removeEl(l),B.BBAuthDomUtility.removeEl(o),B.BBAuthDomUtility.removeCss(u),window.removeEventListener("message",V),d=u=c=l=o=s=a=m=h=v=p=void 0},e}();t.BBOmnibar=Y},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b,y,g=n(5),B=n(4),k=n(1),I=n(19),w=n(20),T=n(21),A="";function O(){f=Date.now()}function E(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,O())}function N(){var e=Date.now();(!m||e-m>R.MIN_RENEWAL_RETRY)&&(m=e,B.BBCsrfXhr.request(g.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function _(){d=!0,l()}function C(){d=!1,O(),c()}function S(){y?k.BBAuthNavigator.navigate(y):k.BBAuthNavigator.redirectToSignoutForInactivity()}function x(){var e=this;p||N(),h=setInterval((function(){return r(e,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,w.BBOmnibarUserSessionExpiration.getSessionExpiration(A,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:N,showInactivityPrompt:_}),[2]}}))}))}),R.ACTIVITY_TIMER_INTERVAL)}var R=function(){function e(){}return e.startTracking=function(t,n,r,i,a){o&&i===p&&a===v||(e.stopTracking(),u=t,l=n,c=r,p=i,v=a,document.addEventListener("keypress",O),document.addEventListener("mousemove",E),x(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,A=e.refreshId,y=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),N()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",O),document.removeEventListener("mousemove",E),h&&(clearInterval(h),h=void 0),o=a=s=f=m=d=u=l=c=p=v=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e}();t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var t=e.allowAnonymous,n=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,l=e.renewSession,d=e.showInactivityPrompt,f=Date.now();if(null!==r){!t&&f>r&&u();var m=r-i,h=r-s+c;o?f<m&&n():a>h?l():!t&&f>m&&d()}},e}();t.BBOmnibarUserActivityProcessor=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(5),o=n(4);var a=function(){function e(){}return e.getSessionExpiration=function(e,t,n){var a=function(e,t){if(r&&r.refreshId===e&&r.allowAnonymous===t)return r.promise;var n=new Promise((function(e,n){o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,t).then((function(t){var n=null===t?null:Date.now()+1e3*t;e(n)}),(function(){e(null)}))}));return r={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((function(e,n){a.then((function(n){var r;if(null===n)r=null;else if("number"==typeof t){var i=Date.now()+t;r=Math.min(n,i)}else r=n;e(r)}))}))},e.reset=function(){r=void 0},e}();t.BBOmnibarUserSessionExpiration=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,u,l,d=n(2),f=n(1),m=n(5),h={};function p(e){if(e){var t=e.split("://");return t[0]+"://"+t[1].split("/")[0]}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function y(e){if("string"==typeof e.data){var t=void 0;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){var n=t.message,r=n&&n.sessionId,c=n&&n.refreshId;r||s||(l?f.BBAuthNavigator.navigate(l):f.BBAuthNavigator.redirectToSignin()),void 0!==h.refreshId&&c!==h.refreshId&&function(e){u&&d.BBAuthInterop.postOmnibarMessage(u,e,p(i))}({messageType:"session-refresh"}),void 0!==h.sessionId&&r!==h.sessionId&&o(),h.refreshId=c,h.sessionId=r,a(h)}}}function g(e){switch(e.origin){case B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case p(i):!function(e){var t=e.data;switch(t.messageType){case"ready":h.legacyTtl=t.ttl,l=t.signinUrl,a(h)}}(e)}}var B=function(){function e(){}return e.start=function(t,n,c,l){r&&t===s&&n===i||(e.stop(),s=t,o=c,i=n,a=l,b(),i&&(u=v("sky-omnibar-iframe-legacy-keep-alive",i)),window.addEventListener("message",g,!1),r=!0)},e.stop=function(){window.removeEventListener("message",g,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),h={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=m.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a=n(3),s=n(2);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),i.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":o()}}var u=function(){function e(){}return e.show=function(t){var n;this.hide(),o=t.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),n=e.url,i=a.BBAuthDomUtility.addIframe(n,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){i&&(a.BBAuthDomUtility.removeEl(i),a.BBAuthDomUtility.removeCss(r),i=r=o=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();t.BBOmnibarUserActivityPrompt=u},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s=n(24),c=n(0),u=n(2),l=n(8),d=n(9),f=!1,m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function h(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,d.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:u.BBAuthInterop.getCurrentUrl()})];case 1:return t.sent(),[2]}}))}))}function p(e,t){return r(this,void 0,void 0,(function(){var n,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,c.BBAuth.getToken({disableRedirect:!0,envId:e,leId:t,permissionScope:"Notifications"})];case 1:return n=i.sent(),[3,3];case 2:return i.sent(),[2,!1];case 3:return r=s(n),(o=r["1bb.entitlements"])?[2,(o=Array.isArray(o)?o:[o]).indexOf("notif")>-1]:[2,!1]}}))}))}var v=function(){function e(){}return e.connect=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return f?[3,5]:(o=t,f=!0,[4,a=window.BBNotificationsClient?Promise.resolve():l.BBOmnibarScriptLoader.registerScript(e.NOTIFICATIONS_CLIENT_URL)]);case 1:return n.sent(),BBNotificationsClient.BBNotifications.init({tokenCallback:function(){return c.BBAuth.getToken({disableRedirect:!0,envId:t.envId,leId:t.leId})}}),[4,this.pushNotificationsEnabled()];case 2:return n.sent()?[4,h(t)]:[3,4];case 3:n.sent(),BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:t.customMessageCallback,customMessageType:"ui-config-global-settings-update"}),n.label=5;case 5:return[2]}}))}))},e.disconnect=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return f?(o=void 0,d.BBOmnibarToastContainer.destroy(),[4,a]):[3,2];case 1:e.sent(),BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){BBNotificationsClient.BBNotifications.updateNotifications(e)},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){return f&&(e=m[o.svcId])?[2,!e.requiresNotif||p(o.envId,o.leId)]:[2,!1]}))}))},e.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js",e}();t.BBOmnibarPushNotifications=v},function(e,t,n){"use strict";var r=n(25);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,t,n){var r=n(26);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o,a,s,c,u,l,d,f=n(10),m=n(3),h=n(2),p=n(1),v="sky-omnibar-vertical-expanded",b="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",g="sky-omnibar-vertical-body-minimized",B=new Set;function k(){var e,t;return null===(t=null===(e=o)||void 0===e?void 0:e.omnibar)||void 0===t?void 0:t.vMin}function I(){h.BBAuthInterop.postLocationChangeMessage(s,a)}function w(){document.body.classList.add(g)}function T(){document.body.classList.remove(g)}function A(e,t){if(t){var n=Date.now().toString();B.add(n),f.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?w():T()}function O(e){var t=e.data;if(h.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":h.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),h.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:k(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),I(),l();break;case"display-ready":c.classList.remove(b);break;case"expand":c.classList.add(v);break;case"collapse":c.classList.remove(v);break;case"navigate-url":p.BBAuthNavigator.navigate(t.url);break;case"navigate":h.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":h.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}}var E=function(){function e(){}return e.load=function(e,t){return r(this,void 0,void 0,(function(){var n=this;return i(this,(function(a){return u=e,[2,new Promise((function(e){return r(n,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:l=e,d=m.BBAuthDomUtility.addCss("\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper."+b+" {\n border-right: solid 1px #e2e3e4;\n}\n\n."+g+" .sky-omnibar-vertical-iframe-wrapper:not(."+v+") {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n."+b+" .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n."+v+" {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n ."+y+" {\n margin-left: 300px;\n }\n\n ."+g+" {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,f.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return function(e){k()&&w();var t=u.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";s=m.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),(c=document.createElement("div")).className="sky-omnibar-vertical-iframe-wrapper "+b,c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),window.addEventListener("message",O),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,I()},e.refreshUser=function(e){h.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n,a,c;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return B.has(e)?(B.delete(e),[3,3]):[3,1];case 1:return[4,f.BBUserSettings.getSettings()];case 2:o=r.sent(),A(null===(n=null===(t=o)||void 0===t?void 0:t.omnibar)||void 0===n?void 0:n.vMin,!1),h.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(c=null===(a=o)||void 0===a?void 0:a.omnibar)||void 0===c?void 0:c.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),T(),window.removeEventListener("message",O),B.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n=i(),o=n&&n.fn&&n.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")})).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")})).then((function(){document.body.classList.add("bb-omnibar-height-padding");var n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=i()(e.menuEl)),BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(10))}])})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BBAuthClient=n():e.BBAuthClient=n()}(window,(function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=11)}([function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(6)),r(t(7))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=encodeURIComponent;function o(e){var n="https://signin.blackbaud.com/signin/?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var a=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=o();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=o(!0),n="https://signin.blackbaud.com/signin/sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var o="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(o+="&code="+i(t)),this.navigate(o)},e}();n.BBAuthNavigator=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(1);function o(e,n){if("https://host.nxt.blackbaud.com"===e.origin){var t=e.data;return!!t&&t.source===n}return!1}var a=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){return o(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return o(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return o(e,"skyux-spa-omnibar-toast-container")},e.handleGetToken=function(e,n,t,i){var o=this;return r.BBAuth.getToken({disableRedirect:t}).then((function(t){i&&i(),o.postOmnibarMessage(e,{messageType:"token",token:t,tokenRequestId:n})}),(function(t){i&&i(),o.postOmnibarMessage(e,{messageType:"token-fail",reason:t,tokenRequestId:n})}))},e.postLocationChangeMessage=function(n,t){n&&e.postOmnibarMessage(n,{href:t,messageType:"location-change"})},e.handleNavigate=function(e,n){e&&e.beforeNavCallback&&!1===e.beforeNavCallback(n)||i.BBAuthNavigator.navigate(n.url)},e.getCurrentUrl=function(){return document.location.href},e}();n.BBAuthInterop=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.createIframe=function(e,n,t){var r=document.createElement("iframe");return r.className=n,r.title=t,r.src=e,r},e.addIframe=function(e,n,t){var r=this.createIframe(e,n,t);return this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(5),o=t(1);function a(e,n,t,r){return(r||void 0===r&&t)&&((e=e||{})[n]=t),e}function s(e,n,t,i,o){var s;return s=a(s,"environment_id",t),s=a(s,"legal_entity_id",o),s=a(s,"permission_scope",i,!(!t&&!o||!i)),new Promise((function(t,i){!function(e,n,t,i,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:o({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:i(a.responseText);break;case 401:o({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&o({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,(function(e){var n=e?JSON.parse(e):void 0;t(n)}),i)}))}var c=function(){function e(){}return e.request=function(e,n,t,a,c,u,l){return!c||a||u?new Promise((function(d,f){new Promise((function(e,n){l?e({csrf_token:"token_needed"}):s(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(n)})).then((function(n){return s(e,n.csrf_token,a,c,u)})).then(d).catch((function(e){if(t||e.code===r.BBAuthTokenErrorCode.Offline)f(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code)}}))})):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n,t,r){return void 0===t&&(t="GET"),new Promise((function(i,o){var a=new XMLHttpRequest;switch(a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 200:var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e);break;default:o(a)}},a.open(t,e,!0),a.setRequestHeader("Authorization","Bearer "+n),a.setRequestHeader("Accept","application/json"),t){case"GET":a.send();break;case"PATCH":case"POST":a.setRequestHeader("Content-Type","application/json"),a.send(JSON.stringify(r))}}))},e}();n.BBCsrfXhr=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={"bbk12.com":"https://sts-sso.bbk12.com","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","mycampus-app.com":"https://sts-sso.mycampus-app.com","myschoolapp.com":"https://sts-sso.myschoolapp.com","myschoolautomation.com":"https://sts-sso.myschoolautomation.com","myschooldemo.com":"https://sts-sso.myschooldemo.com","myschooltraining.com":"https://sts-sso.myschooltraining.com","smartaidforparents-com-stage.smarttuition.net":"https://account.smartaidforparents-com-stage.smarttuition.net","smartaidforparents.com":"https://account.smartaidforparents.com","smarttuition.com":"https://account.smarttuition.com"},i=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,n=Object.keys(r);e<n.length;e++){var t=n[e],i="."+t;if(this.CURRENT_DOMAIN===t||this.CURRENT_DOMAIN.substr(-i.length)===i)return t}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return r[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();n.BBAuthDomain=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(12),i=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var o=function(){function e(){}return e.getUrl=function(e,n){var t=i.exec(e),r=e,o=n?n.zone:void 0;return o&&(o=o.replace("-","")),t&&(t[3]&&(o=t[3].substring(1)),r="https://"+t[1]+"-"+o+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(r)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,i=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var o=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[o]=e.tokenCache[o]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(i,n.envId,n.permissionScope,n.leId).then((function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken})).catch((function(e){throw a.pendingLookupPromise=null,e}))),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function r(e){for(var n=[],t=0,r=e.split(".");t<r.length;t++){var i=r[t],o=parseInt(i,10)||0;n.push(o)}return n}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){}return e.registerScript=function(e){return new Promise((function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=t,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(n,t,i){return i&&function(e,n){for(var t=r(e),i=r(n),o=0;o<t.length;o++)if(o<i.length){if(i[o]>t[o])return!0;if(i[o]<t[o])return!1}return!0}(t,i)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a,s,c,u=t(6),l=t(3),d=t(2);function f(){return i||(r=l.BBAuthDomUtility.addCss("\n.sky-omnibar-toast-container {\n border: none;\n display: none;\n position: fixed;\n right: 0px;\n height: 0px;\n width: 300px;\n /* the toast container should never be covered by the omnibar or by menu items */\n z-index: 9999;\n}\n\n.sky-omnibar-toast-container-ready {\n display: block;\n}\n\n.sky-omnibar-toast-container-empty {\n visibility: hidden;\n}\n"),(i=document.createElement("iframe")).src=v.CONTAINER_URL,i.className="sky-omnibar-toast-container sky-omnibar-toast-container-empty",i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",p)),i}function m(e){var n=document.querySelector(e);return n?n.getBoundingClientRect().height:0}function h(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function p(e){if(d.BBAuthInterop.messageIsFromToastContainer(e)){var n,t,r=e.data;switch(r.messageType){case"toast-ready":d.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),d.BBAuthInterop.postOmnibarMessage(i,{envId:s.envId,leId:s.leId,messageType:"nav-ready",svcId:s.svcId}),h(),i.classList.add("sky-omnibar-toast-container-ready"),a();break;case"get-token":n=r.tokenRequestId,t=r.disableRedirect,u.BBAuth.getToken({disableRedirect:t}).then((function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token",token:e,tokenRequestId:n})}),(function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":s.navigateUrlCallback(r.url);break;case"navigate":s.navigateCallback(r.navItem);break;case"toast-container-change":r.height>0?(i.style.height=r.height+"px",i.style.top=m(".sky-omnibar-iframe")+m(".sky-omnibar-environment")+20+"px",i.classList.remove("sky-omnibar-toast-container-empty")):i.classList.add("sky-omnibar-toast-container-empty");break;case"push-notifications-open":s.openMenuCallback()}}}var v=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,f()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,h()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",p)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();n.BBOmnibarToastContainer=v},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a=t(0),s=t(4),c="https://sky-pusa01.app.blackbaud.net/uicfg/settings/user",u=function(){function e(){}return e.getSettings=function(){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(n){return[2,new Promise((function(n,t){return r(e,void 0,void 0,(function(){var e,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,6,,7]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 1:e=i.sent(),r=setTimeout(t,this.GET_SETTINGS_TIMEOUT),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,s.BBCsrfXhr.requestWithToken(c,e)];case 3:return o=i.sent(),clearTimeout(r),n(o.settings),[3,5];case 4:return i.sent(),t(),[3,5];case 5:return[3,7];case 6:i.sent();try{n(this.getLocalSettings())}catch(e){t()}return[3,7];case 7:return[2]}}))}))}))]}))}))},e.updateSettings=function(e,n){return r(this,void 0,void 0,(function(){var t=this;return i(this,(function(u){return[2,new Promise((function(u,l){o&&(clearTimeout(o),o=void 0),o=setTimeout((function(){return r(t,void 0,void 0,(function(){var t,r,d,f;return i(this,(function(i){switch(i.label){case 0:o=void 0,i.label=1;case 1:return i.trys.push([1,7,,8]),[4,a.BBAuth.getToken({disableRedirect:!0})];case 2:t=i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),[4,s.BBCsrfXhr.requestWithToken(c,t,"PATCH",{correlationId:e,settings:n})];case 4:return r=i.sent(),u(r),[3,6];case 5:return d=i.sent(),l(d),[3,6];case 6:return[3,8];case 7:i.sent(),f=void 0;try{f=this.getLocalSettings()}catch(e){f={}}try{f.omnibar=f.omnibar||{},Object.assign(f.omnibar,n.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(f))}catch(e){l()}return[3,8];case 8:return[2]}}))}))}),t.UPDATE_DELAY)}))]}))}))},e.getLocalSettings=function(){return JSON.parse(localStorage.getItem(this.LOCAL_STORAGE_KEY))},e.UPDATE_DELAY=1e3,e.GET_SETTINGS_TIMEOUT=5e3,e.LOCAL_STORAGE_KEY="auth-client-local-user-settings",e}();n.BBUserSettings=u},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(0)),r(t(14)),r(t(16)),r(t(30))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(4),i=t(13),o=t(5),a=function(){function e(){}return e.getToken=function(e,n,t,a){return void 0!==o.BBAuthDomain.getRegisteredDomain()||this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/oauth2/token",void 0,e,n,t,a,!0):i.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:a,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),i=t(1),o=t(7),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise((function(n){return e.iframeReadyResolve=n})),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://sts.sky.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",(function(n){var t=n.data,r=t.requestId,i=e.tokenRequests[r];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,i.reject,i.args.disableRedirect);break;case"getToken":var o={access_token:t.value,expires_in:0};i.resolve(o)}})),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var r=this;return new Promise((function(i,o){var a=r.requestCounter++;e.tokenRequests[a]={args:t,reject:o,resolve:i},e.iframeReadyPromise.then((function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())}))}))},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case o.BBAuthTokenErrorCode.Offline:n(e);break;case o.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(void 0);break;default:i.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise((function(n){return e.iframeReadyResolve=n})),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://sts.sky.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(15))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(0),i=t(2),o=t(4),a=t(3),s=t(1);function c(e,n,t,o){var s,c,u;function d(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",f)}function f(a){var s,u,l=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&"context-provider"===l.hostId)switch(l.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=l.tokenRequestId,u=l.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then((function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":d(),o({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout((function(){e.envId=l.envId,t(e)}),10)}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=l.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=context-provider&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",f)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var l=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,i=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!i&&a?new Promise((function(n,t){s?r.BBAuth.getToken().then((function(i){var a="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(s);e.url&&(a+="&referringurl="+encodeURIComponent(e.url)),o.BBCsrfXhr.requestWithToken(a,i).then((function(i){var o=i&&i.items,a=o&&o.length;1===a?(e.url=o[0].url,n(e)):a>1?c(e,i,n,t):e.disableRedirect?t(r.BBAuthTokenErrorCode.InvalidEnvironment):u()}))})):u()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=l},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(17)),r(t(28)),r(t(29))},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b=t(0),y=t(2),g=t(1),B=t(3),k=t(18),I=t(22),w=t(23),T=t(9),A=t(27),O="sky-omnibar-iframe-expanded",E="sky-omnibar-loading";function N(){var e;l=B.BBAuthDomUtility.addIframe((e=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar","sky-omnibar-iframe "+E,"Navigation")}function _(){var e=d.theme;return e&&"modern"===e.name}function C(e){e?(o.classList.remove("sky-omnibar-environment-theme-default"),o.classList.add("sky-omnibar-environment-theme-modern")):(o.classList.remove("sky-omnibar-environment-theme-modern"),o.classList.add("sky-omnibar-environment-theme-default"))}function S(){if(_()){if("tcs"===d.svcId)return!0;var e=y.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function x(){var e=y.BBAuthInterop.getCurrentUrl();y.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),A.BBOmnibarVertical.updateUrl(e)}function R(){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function P(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),h=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,Y()}function M(e){A.BBOmnibarVertical.refreshSettings(e.value)}function L(e){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:if(!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0})];case 2:return n.sent(),[3,4];case 3:return n.sent(),[2];case 4:return[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:M,envId:d.envId,handleNavigate:G,handleNavigateUrl:V,leId:d.leId,notificationsCallback:P,openPushNotificationsMenu:R,showVerticalNav:S(),svcId:d.svcId})];case 5:return n.sent(),[2]}}))}))}function U(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:b.BBAuth.clearTokenCache(),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,b.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0})];case 2:return e=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return y.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),S()&&A.BBOmnibarVertical.refreshUser(e),e?L():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function D(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function j(){I.BBOmnibarUserActivityPrompt.hide()}function q(){k.BBOmnibarUserActivity.startTracking(U,D,j,d.allowAnonymous,f)}function G(e){y.BBAuthInterop.handleNavigate(d.nav,e)}function V(e){g.BBAuthNavigator.navigate(e)}function F(e){var n=e.data;if(y.BBAuthInterop.messageIsFromOmnibar(e)&&"omnibar"===n.hostId){var t,u,h,v,b,g,B,I,T,A,N=d.nav;switch(n.messageType){case"ready":y.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),T=history.pushState,A=history.replaceState,history.pushState=function(){var e=T.apply(history,arguments);return x(),e},history.replaceState=function(){var e=A.apply(history,arguments);return x(),e},y.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||S(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:N&&N.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:N&&N.services,svcId:d.svcId,theme:d.theme}),(I=d.notifications)&&I.onReady({updateNotifications:function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),L(!0),x(),m();break;case"display-ready":c.classList.remove(E),l.classList.remove(E);break;case"expand":l.classList.add(O);break;case"collapse":l.classList.remove(O);break;case"navigate-url":V(n.url);break;case"navigate":G(n.navItem);break;case"search":!function(e){r(this,void 0,void 0,(function(){var n;return i(this,(function(t){switch(t.label){case 0:return d.onSearch?[4,d.onSearch(e)]:[3,2];case 1:n=t.sent(),y.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:n}),t.label=2;case 2:return[2]}}))}))}(n.searchArgs);break;case"get-token":y.BBAuthInterop.handleGetToken(l,n.tokenRequestId,n.disableRedirect,q);break;case"help-open":(B=window.BBHELP)&&B.HelpWidget.open();break;case"notification-read":!function(e){var n=d.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(n.notification);break;case"push-notifications-change":g=n.notifications,w.BBOmnibarPushNotifications.updateNotifications(g);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,n,t){var r="sky-omnibar-environment-visible",i="sky-omnibar-environment-description-present",c=document.body.classList;if(e=e||"",a.innerText=e,e)if(c.add(r),n)if(o.classList.add(i),t){var u=document.createElement("a");u.href=t,u.innerText=n,s.appendChild(u)}else s.innerText=n;else o.classList.remove(i);else c.remove(r)}(n.name,n.description,n.url);break;case"branding-update":t=n.branding,(b=null===(v=null===(h=null===(u=t)||void 0===u?void 0:u.images)||void 0===h?void 0:h.favIcon)||void 0===v?void 0:v.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=b})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=n.url,q();break;case"selected-service-update":p=n.serviceName,Y()}}}function Y(){if(v){var e=v.slice();p&&e.push(p);var n=e.join(" - ");h&&(n="("+h+") "+n),document.title=n}}var H=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(n){m=n,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="5px",t="#4d5259",r="none",i=d.theme;if(i){_()&&(n="4px",t="#fff",r="solid 1px #e2e3e4");var o=i.accent;t=i.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+t+";\n border-bottom: "+r+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: "+n+";\n "+e+"\n}\n\n.sky-omnibar-placeholder."+E+" {\n display: block;\n}\n\n.sky-omnibar-iframe."+E+" {\n visibility: hidden;\n}\n\n."+O+' {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-theme-default {\n background-color: #e1e1e3;\n color: #282b31;\n}\n\n.sky-omnibar-environment-theme-modern {\n background-color: transparent;\n color: inherit;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(c=document.createElement("div")).className="sky-omnibar-placeholder "+E,c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",C(_()),(a=document.createElement("span")).className="sky-omnibar-environment-name",o.appendChild(a),(s=document.createElement("span")).className="sky-omnibar-environment-description",o.appendChild(s),B.BBAuthDomUtility.addElToBodyTop(o),N(),S()&&A.BBOmnibarVertical.load(e,l),window.addEventListener("message",F)}))},e.update=function(e){y.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,Y()},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return d?[2,w.BBOmnibarPushNotifications.pushNotificationsEnabled()]:[2,Promise.resolve(!1)]}))}))},e.destroy=function(){T.BBOmnibarToastContainer.destroy(),w.BBOmnibarPushNotifications.disconnect(),B.BBAuthDomUtility.removeEl(c),B.BBAuthDomUtility.removeEl(l),B.BBAuthDomUtility.removeEl(o),B.BBAuthDomUtility.removeCss(u),window.removeEventListener("message",F),d=u=c=l=o=s=a=m=h=v=p=void 0},e}();n.BBOmnibar=H},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f,m,h,p,v,b,y,g=t(5),B=t(4),k=t(1),I=t(19),w=t(20),T=t(21),A="";function O(){f=Date.now()}function E(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,O())}function N(){var e=Date.now();(!m||e-m>R.MIN_RENEWAL_RETRY)&&(m=e,B.BBCsrfXhr.request(g.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function _(){d=!0,l()}function C(){d=!1,O(),c()}function S(){y?k.BBAuthNavigator.navigate(y):k.BBAuthNavigator.redirectToSignoutForInactivity()}function x(){var e=this;p||N(),h=setInterval((function(){return r(e,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return[4,w.BBOmnibarUserSessionExpiration.getSessionExpiration(A,b,p)];case 1:return e=n.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:N,showInactivityPrompt:_}),[2]}}))}))}),R.ACTIVITY_TIMER_INTERVAL)}var R=function(){function e(){}return e.startTracking=function(n,t,r,i,a){o&&i===p&&a===v||(e.stopTracking(),u=n,l=t,c=r,p=i,v=a,document.addEventListener("keypress",O),document.addEventListener("mousemove",E),x(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,A=e.refreshId,y=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),N()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",O),document.removeEventListener("mousemove",E),h&&(clearInterval(h),h=void 0),o=a=s=f=m=d=u=l=c=p=v=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e}();n.BBOmnibarUserActivity=R},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,l=e.renewSession,d=e.showInactivityPrompt,f=Date.now();if(null!==r){!n&&f>r&&u();var m=r-i,h=r-s+c;o?f<m&&t():a>h?l():!n&&f>m&&d()}},e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=t(5),o=t(4);var a=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var a=function(e,n){if(r&&r.refreshId===e&&r.allowAnonymous===n)return r.promise;var t=new Promise((function(e,t){o.BBCsrfXhr.request(i.BBAuthDomain.getSTSDomain()+"/session/ttl",void 0,n).then((function(n){var t=null===n?null:Date.now()+1e3*n;e(t)}),(function(){e(null)}))}));return r={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise((function(e,t){a.then((function(t){var r;if(null===t)r=null;else if("number"==typeof n){var i=Date.now()+n;r=Math.min(t,i)}else r=t;e(r)}))}))},e.reset=function(){r=void 0},e}();n.BBOmnibarUserSessionExpiration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a,s,c,u,l,d=t(2),f=t(1),m=t(5),h={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function b(){var e=B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function y(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,r=t&&t.sessionId,c=t&&t.refreshId;r||s||(l?f.BBAuthNavigator.navigate(l):f.BBAuthNavigator.redirectToSignin()),void 0!==h.refreshId&&c!==h.refreshId&&function(e){u&&d.BBAuthInterop.postOmnibarMessage(u,e,p(i))}({messageType:"session-refresh"}),void 0!==h.sessionId&&r!==h.sessionId&&o(),h.refreshId=c,h.sessionId=r,a(h)}}}function g(e){switch(e.origin){case B.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case p(i):!function(e){var n=e.data;switch(n.messageType){case"ready":h.legacyTtl=n.ttl,l=n.signinUrl,a(h)}}(e)}}var B=function(){function e(){}return e.start=function(n,t,c,l){r&&n===s&&t===i||(e.stop(),s=n,o=c,i=t,a=l,b(),i&&(u=v("sky-omnibar-iframe-legacy-keep-alive",i)),window.addEventListener("message",g,!1),r=!0)},e.stop=function(){window.removeEventListener("message",g,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),h={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=m.BBAuthDomain.getSTSDomain(),e}();n.BBOmnibarUserSessionWatcher=B},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i,o,a=t(3),s=t(2);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(i,{messageType:"host-ready"}),i.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":o()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),o=n.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,i=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){i&&(a.BBAuthDomUtility.removeEl(i),a.BBAuthDomUtility.removeCss(r),i=r=o=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s=t(24),c=t(0),u=t(2),l=t(8),d=t(9),f=!1,m={chrch:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function h(e){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,d.BBOmnibarToastContainer.init({envId:e.envId,leId:e.leId,navigateCallback:e.handleNavigate,navigateUrlCallback:e.handleNavigateUrl,openMenuCallback:e.openPushNotificationsMenu,svcId:e.svcId,url:u.BBAuthInterop.getCurrentUrl()})];case 1:return n.sent(),[2]}}))}))}function p(e,n){return r(this,void 0,void 0,(function(){var t,r,o;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,c.BBAuth.getToken({disableRedirect:!0,envId:e,leId:n,permissionScope:"Notifications"})];case 1:return t=i.sent(),[3,3];case 2:return i.sent(),[2,!1];case 3:return r=s(t),(o=r["1bb.entitlements"])?[2,(o=Array.isArray(o)?o:[o]).indexOf("notif")>-1]:[2,!1]}}))}))}var v=function(){function e(){}return e.connect=function(n){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return f?[3,5]:(o=n,f=!0,[4,a=window.BBNotificationsClient?Promise.resolve():l.BBOmnibarScriptLoader.registerScript(e.NOTIFICATIONS_CLIENT_URL)]);case 1:return t.sent(),BBNotificationsClient.BBNotifications.init({tokenCallback:function(){return c.BBAuth.getToken({disableRedirect:!0,envId:n.envId,leId:n.leId})}}),[4,this.pushNotificationsEnabled()];case 2:return t.sent()?[4,h(n)]:[3,4];case 3:t.sent(),BBNotificationsClient.BBNotifications.addListener(n.notificationsCallback),t.label=4;case 4:n.showVerticalNav&&BBNotificationsClient.BBNotifications.addCustomMessageListener({callback:n.customMessageCallback,customMessageType:"ui-config-global-settings-update"}),t.label=5;case 5:return[2]}}))}))},e.disconnect=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return f?(o=void 0,d.BBOmnibarToastContainer.destroy(),[4,a]):[3,2];case 1:e.sent(),BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){BBNotificationsClient.BBNotifications.updateNotifications(e)},e.pushNotificationsEnabled=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){return f&&(e=m[o.svcId])?[2,!e.requiresNotif||p(o.envId,o.leId)]:[2,!1]}))}))},e.NOTIFICATIONS_CLIENT_URL="https://sky.blackbaudcdn.net/static/notifications-client/1/notifications-client.global.min.js",e}();n.BBOmnibarPushNotifications=v},function(e,n,t){"use strict";var r=t(25);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,n){if("string"!=typeof e)throw new i("Invalid token specified");var t=!0===(n=n||{}).header?0:1;try{return JSON.parse(r(e.split(".")[t]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,n,t){var r=t(26);e.exports=function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,n){var t=n.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(n)}catch(e){return r(n)}}},function(e,n){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=n.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},function(e,n,t){"use strict";var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=n.call(e,a)}catch(e){o=[6,e],r=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(n,"__esModule",{value:!0});var o,a,s,c,u,l,d,f=t(10),m=t(3),h=t(2),p=t(1),v="sky-omnibar-vertical-expanded",b="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",g="sky-omnibar-vertical-body-minimized",B=new Set;function k(){var e,n;return null===(n=null===(e=o)||void 0===e?void 0:e.omnibar)||void 0===n?void 0:n.vMin}function I(){h.BBAuthInterop.postLocationChangeMessage(s,a)}function w(){document.body.classList.add(g)}function T(){document.body.classList.remove(g)}function A(e,n){if(n){var t=Date.now().toString();B.add(t),f.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?w():T()}function O(e){var n=e.data;if(h.BBAuthInterop.messageIsFromOmnibarVertical(e)){var t=u.nav;switch(n.messageType){case"ready":h.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),h.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:k(),navVersion:u.navVersion,services:t&&t.services,svcId:u.svcId,theme:u.theme}),I(),l();break;case"display-ready":c.classList.remove(b);break;case"expand":c.classList.add(v);break;case"collapse":c.classList.remove(v);break;case"navigate-url":p.BBAuthNavigator.navigate(n.url);break;case"navigate":h.BBAuthInterop.handleNavigate(u.nav,n.navItem);break;case"get-token":h.BBAuthInterop.handleGetToken(s,n.tokenRequestId,n.disableRedirect);break;case"maximize":A(!1,!0);break;case"minimize":A(!0,!0)}}}var E=function(){function e(){}return e.load=function(e,n){return r(this,void 0,void 0,(function(){var t=this;return i(this,(function(a){return u=e,[2,new Promise((function(e){return r(t,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:l=e,d=m.BBAuthDomUtility.addCss("\n.sky-omnibar-vertical-iframe-wrapper {\n position: fixed;\n top: 50px;\n left: 0;\n bottom: 0;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);\n width: 300px;\n z-index: 999;\n}\n\n.sky-omnibar-vertical-iframe-wrapper."+b+" {\n border-right: solid 1px #e2e3e4;\n}\n\n."+g+" .sky-omnibar-vertical-iframe-wrapper:not(."+v+") {\n width: 90px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n."+b+" .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n."+v+" {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n ."+y+" {\n margin-left: 300px;\n }\n\n ."+g+" {\n margin-left: 90px;\n }\n}\n\n@media (max-width: 767px) {\n .sky-omnibar-vertical-iframe-wrapper {\n display: none;\n }\n}\n"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,f.BBUserSettings.getSettings()];case 2:return o=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return function(e){k()&&w();var n=u.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";s=m.BBAuthDomUtility.createIframe(n,"sky-omnibar-vertical-iframe","Vertical Navigation"),(c=document.createElement("div")).className="sky-omnibar-vertical-iframe-wrapper "+b,c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(n),window.addEventListener("message",O),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,I()},e.refreshUser=function(e){h.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var n,t,a,c;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return B.has(e)?(B.delete(e),[3,3]):[3,1];case 1:return[4,f.BBUserSettings.getSettings()];case 2:o=r.sent(),A(null===(t=null===(n=o)||void 0===n?void 0:n.omnibar)||void 0===t?void 0:t.vMin,!1),h.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(c=null===(a=o)||void 0===a?void 0:a.omnibar)||void 0===c?void 0:c.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),T(),window.removeEventListener("message",O),B.clear(),o=a=s=c=u=l=d=void 0},e}();n.BBOmnibarVertical=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(8);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(n){var t=i(),o=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")})).then((function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")})).then((function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=i()(e.menuEl)),BBAUTH.Omnibar.load(t,e)}))}))},e}();n.BBOmnibarLegacy=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(10))}])})); |
@@ -0,1 +1,5 @@ | ||
# 2.47.0 (2021-06-03) | ||
- Update styles and automatically display vertical nav for `tcs`. [#196](https://github.com/blackbaud/auth-client/pull/196) | ||
# 2.46.0 (2021-04-22) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "@blackbaud/auth-client", | ||
"version": "2.46.0", | ||
"version": "2.47.0", | ||
"description": "Provides methods for obtaining an authentication token from the Blackbaud authentication service.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundles/auth-client.umd.js", |
@@ -66,5 +66,22 @@ "use strict"; | ||
} | ||
function isModernTheme() { | ||
var theme = omnibarConfig.theme; | ||
return theme && theme.name === 'modern'; | ||
} | ||
function handleEnvironmentElTheme(isModern) { | ||
var defaultThemeClass = 'sky-omnibar-environment-theme-default'; | ||
var modernThemeClass = 'sky-omnibar-environment-theme-modern'; | ||
if (isModern) { | ||
envEl.classList.remove(defaultThemeClass); | ||
envEl.classList.add(modernThemeClass); | ||
} | ||
else { | ||
envEl.classList.remove(modernThemeClass); | ||
envEl.classList.add(defaultThemeClass); | ||
} | ||
} | ||
function addEnvironmentEl() { | ||
envEl = document.createElement('div'); | ||
envEl.className = 'sky-omnibar-environment'; | ||
handleEnvironmentElTheme(isModernTheme()); | ||
envNameEl = document.createElement('span'); | ||
@@ -81,8 +98,7 @@ envNameEl.className = 'sky-omnibar-environment-name'; | ||
} | ||
function isModernTheme() { | ||
var theme = omnibarConfig.theme; | ||
return theme && theme.name === 'modern'; | ||
} | ||
function showVerticalNav() { | ||
if (isModernTheme()) { | ||
if (omnibarConfig.svcId === 'tcs') { | ||
return true; | ||
} | ||
var qs = interop_1.BBAuthInterop.getCurrentUrl().split('?')[1]; | ||
@@ -121,3 +137,3 @@ if (qs) { | ||
} | ||
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: " + backgroundColor + ";\n border-bottom: " + borderBottom + ";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: " + accentHeight + ";\n " + accentCss + "\n}\n\n.sky-omnibar-placeholder." + CLS_LOADING + " {\n display: block;\n}\n\n.sky-omnibar-iframe." + CLS_LOADING + " {\n visibility: hidden;\n}\n\n." + CLS_EXPANDED + " {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n"); | ||
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: " + backgroundColor + ";\n border-bottom: " + borderBottom + ";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: " + accentHeight + ";\n " + accentCss + "\n}\n\n.sky-omnibar-placeholder." + CLS_LOADING + " {\n display: block;\n}\n\n.sky-omnibar-iframe." + CLS_LOADING + " {\n visibility: hidden;\n}\n\n." + CLS_EXPANDED + " {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-theme-default {\n background-color: #e1e1e3;\n color: #282b31;\n}\n\n.sky-omnibar-environment-theme-modern {\n background-color: transparent;\n color: inherit;\n}\n\n.sky-omnibar-environment-description {\n margin-left: 15px;\n font-weight: bold;\n}\n\n.sky-omnibar-environment-description-present {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n"); | ||
} | ||
@@ -497,2 +513,5 @@ function addPlaceholderEl() { | ||
}); | ||
if (args.theme) { | ||
handleEnvironmentElTheme(args.theme.name === 'modern'); | ||
} | ||
}; | ||
@@ -499,0 +518,0 @@ BBOmnibar.setTitle = function (args) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
910006
14964