@blackbaud/auth-client
Advanced tools
Comparing version 2.61.0 to 2.61.1
@@ -1,1 +0,1 @@ | ||
(()=>{var e={168:e=>{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 i,o,s=0,r=0,a="";o=n.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}},491:(e,t,n)=>{var i=n(168);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)}}},489:(e,t,n)=>{"use strict";var i=n(491);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},254:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(406),t),o(n(738),t),o(n(910),t),o(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;const i=n(661),o=n(753),s=n(871);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"},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;const n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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 i{static getRegisteredDomain(){for(const e of Object.keys(n)){const t=`.${e}`;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=i,i.CURRENT_DOMAIN=window.location.hostname},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;const i=n(953),o=n(22),s=n(658);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}}},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;const i=n(163),o=n(658),s=n(953),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class a{static getUrl(e,t){const n=r.exec(e);let i=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),i=`https://${n[1]}-${o}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return a.getTokenInternal(e)}static getTTL(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/ttl")}static renewSession(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/renew")}static clearTokenCache(){a.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(a.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),s=a.tokenCache[o]=a.tokenCache[o]||{},r=(new Date).valueOf();return!t&&s.lastToken&&s.expirationTime&&s.expirationTime-r>6e4?Promise.resolve(s.lastToken):(s.pendingLookupPromise||(s.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then((e=>(s.expirationTime=(new Date).valueOf()+1e3*e.expires_in,s.lastToken=e.access_token,s.pendingLookupPromise=null,s.lastToken))).catch((e=>{throw s.pendingLookupPromise=null,e}))),s.pendingLookupPromise)}}t.BBAuth=a,a.mock=!1,a.tokenCache={}},406:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(340),t),o(n(320),t),o(n(965),t),o(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;const i=n(406),o=n(574),s=n(953),r=n(661),a=n(753),c="context-provider";function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:a,leIdRequired:l,svcId:m}=e;return!t&&n||!a&&l?new Promise(((t,n)=>{m?i.BBAuth.getToken().then((a=>{let l="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(m);e.url&&(l+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(l,a).then((s=>{const a=s&&s.items,l=a&&a.length;1===l?(e.url=a[0].url,t(e)):l>1?function(e,t,n,s){let a,d;function l(){r.BBAuthDomUtility.removeEl(d),r.BBAuthDomUtility.removeCss(a),d=a=void 0,window.removeEventListener("message",m)}function m(r){const a=r.data;var u,m;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&a.hostId===c)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(d,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,m=a.disableRedirect,i.BBAuth.getToken({disableRedirect:m}).then((e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:e,tokenRequestId:u})}),(e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:e,tokenRequestId:u})}));break;case"welcome-cancel":l(),s({reason:"canceled"});break;case"welcome-environment-selected":l(),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=${c}&url=`+encodeURIComponent(e.url);d=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",m)}(e,s,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"},738:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(938),t),o(n(189),t)},910:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(217),t),o(n(774),t),o(n(461),t),o(n(277),t),o(n(775),t),o(n(353),t),o(n(242),t),o(n(901),t),o(n(926),t),o(n(539),t),o(n(964),t),o(n(520),t),o(n(185),t),o(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;const i=n(576);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise((t=>{var n;const s=o(),r=null===(n=null==s?void 0:s.fn)||void 0===n?void 0:n.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).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)),window.BBAUTH.Omnibar.load(n,e)}))}))}}},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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}),t.BBOmnibarPushNotifications=void 0;const o=n(489),s=n(406),r=n(574),a=n(576),c=n(44);let d,u,l=!1;const m={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},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*(){l||(d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,window.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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),window.BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&window.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,window.BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){window.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"},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;class i{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,o){return o&&function(e,t){const i=n(e),o=n(t);for(let e=0;e<i.length;e++)if(e<o.length){if(o[e]>i[e])return!0;if(o[e]<i[e])return!1}return!0}(t,o)?Promise.resolve():i.registerScript(e)}}t.BBOmnibarScriptLoader=i},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;const i=n(340),o=n(661),s=n(574),r="sky-omnibar-toast-container",a=`${r}-ready`,c=`${r}-empty`;let d,u,l,m,h,p;function f(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function v(){u&&s.BBAuthInterop.postOmnibarMessage(u,{href:p,messageType:"location-change"})}function b(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(u,{envId:h.envId,leId:h.leId,messageType:"nav-ready",svcId:h.svcId}),v(),u.classList.add(a),m();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then((e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:n})}),(e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":h.navigateUrlCallback(t.url);break;case"navigate":h.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(u.style.height=t.height+"px",u.style.top=f(".sky-omnibar-iframe")+f(".sky-omnibar-environment")+20+"px",u.classList.remove(c)):u.classList.add(c);break;case"push-notifications-change":h.pushNotificationsChangeCallback(t.notifications);break;case"push-notifications-open":h.openMenuCallback()}var n,o}class g{static init(e){return h=e,p=e.url,l||(l=new Promise((e=>{m=e,u||(d=o.BBAuthDomUtility.addCss(`\n.${r} {\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.${a} {\n display: block;\n}\n\n.${c} {\n visibility: hidden;\n}\n`),u=document.createElement("iframe"),u.src=g.CONTAINER_URL,u.className=`${r} ${c}`,u.title="Toast container",document.body.appendChild(u),window.addEventListener("message",b))}))),l}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(u,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){p=e,v()}static destroy(){d&&o.BBAuthDomUtility.removeCss(d),u&&o.BBAuthDomUtility.removeEl(u),p=u=h=l=m=d=void 0,window.removeEventListener("message",b)}}t.BBOmnibarToastContainer=g,g.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 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()}}},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;const i=n(661),o=n(574);let s,r,a;function c(e){if(o.BBAuthInterop.messageIsFromOmnibar(e))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"},642: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}),t.BBOmnibarUserActivity=void 0;const o=n(658),s=n(953),r=n(753),a=n(459),c=n(313),d=n(882);let u,l,m,h,p,f,v,b,g,B,y,k,I,T,O="";function w(){b=Date.now()}function A(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function _(){const e=Date.now();(!g||e-g>S.MIN_RENEWAL_RETRY)&&(g=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((()=>{})))}function E(){v=!0,f()}function N(){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===y&&s===k||(S.stopTracking(),p=e,f=t,h=n,y=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",A),function(){y||_(),B=setInterval((()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(O,I,y);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:N,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:_,showInactivityPrompt:E})}))),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,(e=>{I=e.legacyTtl,O=e.refreshId,T=e.legacySigninUrl})),u=!0)}static userRenewedSession(){N(),_()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",A),B&&(clearInterval(B),B=void 0),u=l=m=b=g=v=p=f=h=y=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},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;const i=n(658),o=n(953);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=>{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=>{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}}},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;const i=n(574),o=n(753),s=n(658);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.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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&&m&&i.BBAuthInterop.postOmnibarMessage(m,{messageType:"session-refresh"},f(a)),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}(e);break;case f(a):!function(e){const t=e.data;"ready"===t.messageType&&(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",b,!1),r=!0)}static stop(){window.removeEventListener("message",b,!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()},790: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}),t.BBOmnibarVertical=void 0;const o=n(662),s=n(661),r=n(574),a=n(753),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m="sky-omnibar-vertical-iframe-wrapper",h=new Set;let p,f,v,b,g,B,y,k;function I(){if(g.onResize){let e=0;"none"!==getComputedStyle(document.querySelector(`.${m}`)).display&&(e=document.body.classList.contains(l)?90:300),g.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==p?void 0:p.omnibar)||void 0===e?void 0:e.vMin}function O(){I()}function w(){r.BBAuthInterop.postLocationChangeMessage(v,f)}function A(){document.body.classList.add(l),I()}function _(){document.body.classList.remove(l)}function E(e,t){if(t){const t=Date.now().toString();h.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?A():_(),I()}function N(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=g.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(v,{envId:g.envId,leId:g.leId,messageType:"nav-ready",minimized:T(),navVersion:g.navVersion,services:n&&n.services,svcId:g.svcId,theme:g.theme}),w(),B();break;case"display-ready":b.classList.remove(d);break;case"expand":b.classList.add(c);break;case"collapse":b.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(g.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(v,t.tokenRequestId,t.disableRedirect);break;case"maximize":E(!1,!0);break;case"minimize":E(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return g=e,new Promise((e=>i(this,void 0,void 0,(function*(){B=e,y=s.BBAuthDomUtility.addCss(`\n.${m} {\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.${m}.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .${m}: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 .${m} {\n display: none;\n }\n}\n`);try{p=yield o.BBUserSettings.getSettings()}catch(e){}g.onResize&&(k=window.matchMedia("max-width: 767px"),k.addEventListener("change",O)),function(e){T()&&A();const t=g.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";v=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),b=document.createElement("div"),b.className=`${m} ${d}`,b.appendChild(v),e.insertAdjacentElement("afterend",b),document.body.classList.add(u)}(t),I(),window.addEventListener("message",N)}))))}))}static updateUrl(e){f=e,w()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n;return i(this,void 0,void 0,(function*(){h.has(e)?h.delete(e):(p=yield o.BBUserSettings.getSettings(),E(null===(t=null==p?void 0:p.omnibar)||void 0===t?void 0:t.vMin,!1),r.BBAuthInterop.postOmnibarMessage(v,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==p?void 0:p.omnibar)||void 0===n?void 0:n.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(b),s.BBAuthDomUtility.removeCss(y),document.body.classList.remove(u),_(),window.removeEventListener("message",N),k&&(k.removeEventListener("change",O),k=void 0),h.clear(),p=f=v=b=g=B=y=void 0}}},177: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}),t.BBOmnibar=void 0;const o=n(406),s=n(574),r=n(753),a=n(661),c=n(642),d=n(382),u=n(113),l=n(44),m=n(790),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading",f="sky-omnibar-environment-visible",v="sky-omnibar-environment-description-present";let b,g,B,y,k,I,T,O,w,A,_,E;function N(){const e=T.theme;return e&&"modern"===e.name}function C(e){const t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(b.classList.remove(t),b.classList.add(n)):(b.classList.remove(n),b.classList.add(t))}function S(){if(N()){if("tcs"===T.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 P(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(I,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){T.onResize&&T.onResize({position:"top",size:50+(document.body.classList.contains(f)?24:0)})}function x(){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-open"})}function M(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter((e=>!e.isRead)).length,W()}function L(e){m.BBOmnibarVertical.refreshSettings(e.value)}function U(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}T&&(yield u.BBOmnibarPushNotifications.connect({customMessageCallback:L,envId:T.envId,handleNavigate:z,handleNavigateUrl:F,handlePushNotificationsChange:G,leId:T.leId,notificationsCallback:M,openPushNotificationsMenu:x,showVerticalNav:S(),svcId:T.svcId}))}))}function j(){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(I,{messageType:"refresh-user",token:e}),S()&&m.BBOmnibarVertical.refreshUser(e),e?U():u.BBOmnibarPushNotifications.disconnect()}))}function D(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function q(){d.BBOmnibarUserActivityPrompt.hide()}function $(){c.BBOmnibarUserActivity.startTracking(j,D,q,T.allowAnonymous,O)}function G(e){u.BBOmnibarPushNotifications.updateNotifications(e)}function z(e){s.BBAuthInterop.handleNavigate(T.nav,e)}function F(e){r.BBAuthNavigator.navigate(e)}function V(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=T.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(I,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(...t){const n=e.apply(history,t);return P(),n},history.replaceState=function(...e){const n=t.apply(history,e);return P(),n}}(),s.BBAuthInterop.postOmnibarMessage(I,{compactNavOnly:T.compactNavOnly||S(),enableHelp:T.enableHelp,envId:T.envId,hideResourceLinks:T.hideResourceLinks,leId:T.leId,localNavItems:n&&n.localNavItems,localNotifications:!!T.notifications,localSearch:!!T.onSearch,messageType:"nav-ready",navVersion:T.navVersion,services:n&&n.services,svcId:T.svcId,theme:T.theme}),function(){const e=T.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(I,{messageType:"notifications-update",notifications:e})}})}(),U(!0),P(),w();break;case"display-ready":y.classList.remove(p),I.classList.remove(p);break;case"expand":I.classList.add(h);break;case"collapse":I.classList.remove(h);break;case"navigate-url":F(t.url);break;case"navigate":z(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(T.onSearch){const t=yield T.onSearch(e);s.BBAuthInterop.postOmnibarMessage(I,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(I,t.tokenRequestId,t.disableRedirect,$);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=T.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":G(t.notifications);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i=document.body.classList;if(e=e||"",g.innerText=e,e)if(i.add(f),t)if(b.classList.add(v),n){const e=document.createElement("a");e.href=n,e.innerText=t,B.appendChild(e)}else B.innerText=t;else b.classList.remove(v);else i.remove(f);R()}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.images)||void 0===t?void 0:t.favIcon)||void 0===n?void 0:n.url;i&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((e=>{e.href=i})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((e=>{e.remove()})))}(t.branding);break;case"legacy-keep-alive-url-change":O=t.url,$();break;case"selected-service-update":_=t.serviceName,W()}}function W(){if(E){const e=E.slice();_&&e.push(_);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return T=T=e,O=T.legacyKeepAliveUrl,new Promise((t=>{w=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=T.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};`)}k=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.${v} {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.${f} .sky-omnibar-environment {\n height: 24px;\n}\n`),R()}(),y=document.createElement("div"),y.className=`sky-omnibar-placeholder ${p}`,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),b=document.createElement("div"),b.className="sky-omnibar-environment",C(N()),g=document.createElement("span"),g.className="sky-omnibar-environment-name",b.appendChild(g),B=document.createElement("span"),B.className="sky-omnibar-environment-description",b.appendChild(B),a.BBAuthDomUtility.addElToBodyTop(b),I=a.BBAuthDomUtility.addIframe(function(){const e=T.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),`sky-omnibar-iframe ${p}`,"Navigation"),S()&&m.BBOmnibarVertical.load(e,I),window.addEventListener("message",V)}))}static update(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)}static setTitle(e){E=e&&e.titleParts,W()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return T?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(I),a.BBAuthDomUtility.removeEl(b),a.BBAuthDomUtility.removeCss(k),window.removeEventListener("message",V),document.body.classList.remove(f),T=k=y=I=b=B=g=w=A=E=_=void 0}}},568:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(887),t),o(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;const i=n(406),o=n(658),s=n(753);function r(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()}function a(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,i,o){let 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(((n,i)=>{r(e,{name:"X-CSRF",value:t},s,(e=>{const t=e?JSON.parse(e):void 0;n(t)}),i)}))}t.BBCsrfXhr=class{static request(e,t,n,r,a,d,u){return!a||r||d?new Promise(((l,m)=>{new Promise(((e,t)=>{u?e({csrf_token:"token_needed"}):c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>c(e,t.csrf_token,r,a,d))).then(l).catch((e=>{n||e.code===i.BBAuthTokenErrorCode.Offline?m(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin(t):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 postWithCSRF(e){return new Promise(((t,n)=>{new Promise(((e,t)=>{c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>new Promise(((n,i)=>{r(e,{name:"X-CSRF",value:t.csrf_token},void 0,(e=>{n(e)}),i)})))).then(t).catch((e=>{e.code===i.BBAuthTokenErrorCode.Offline?n(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin():s.BBAuthNavigator.redirectToError(e.code)}))}))}static requestWithToken(e,t,n="GET",i){return new Promise(((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)if(200===r.status){let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e)}else 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))}}))}}},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 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)}}},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;const i=n(406),o=n(753),s="https://host.nxt.blackbaud.com";function r(e,t){if(e.origin===s){const n=e.data;return!!n&&n.source===t}return!1}class a{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||s)}static messageIsFromOmnibar(e){return r(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return r(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return r(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&&a.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=a},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;const i=n(406),o="https://signin.blackbaud.com/signin/",s=encodeURIComponent;function r(e){let t=`${o}?redirectUrl=${s(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=r();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${s(n)}=${s(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=r(!0),t=`${o}sign-out?redirectUrl=${s(e)}`;this.navigate(t)}static redirectToError(e){let t,n;e===i.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";let o=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${s(location.href)}`;n&&(o+=`&code=${s(n)}`),this.navigate(o)}}},333:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(63),t),o(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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}),t.BBUserSettings=void 0;const o=n(406),s=n(953),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{yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t}),n()}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"}},t={},n=function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}(254);window.BBAuthClient=n})(); | ||
(()=>{var e={168:e=>{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 i,o,s=0,r=0,a="";o=n.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}},491:(e,t,n)=>{var i=n(168);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)}}},489:(e,t,n)=>{"use strict";var i=n(491);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},254:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(406),t),o(n(738),t),o(n(910),t),o(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;const i=n(661),o=n(753),s=n(871);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"},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;const n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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 i{static getRegisteredDomain(){for(const e of Object.keys(n)){const t=`.${e}`;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=i,i.CURRENT_DOMAIN=window.location.hostname},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;const i=n(953),o=n(22),s=n(658);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}}},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;const i=n(163),o=n(658),s=n(953),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class a{static getUrl(e,t){const n=r.exec(e);let i=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),i=`https://${n[1]}-${o}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return a.getTokenInternal(e)}static getTTL(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/ttl")}static renewSession(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/renew")}static clearTokenCache(){a.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(a.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),s=a.tokenCache[o]=a.tokenCache[o]||{},r=(new Date).valueOf();return!t&&s.lastToken&&s.expirationTime&&s.expirationTime-r>6e4?Promise.resolve(s.lastToken):(s.pendingLookupPromise||(s.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then((e=>(s.expirationTime=(new Date).valueOf()+1e3*e.expires_in,s.lastToken=e.access_token,s.pendingLookupPromise=null,s.lastToken))).catch((e=>{throw s.pendingLookupPromise=null,e}))),s.pendingLookupPromise)}}t.BBAuth=a,a.mock=!1,a.tokenCache={}},406:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(340),t),o(n(320),t),o(n(965),t),o(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;const i=n(406),o=n(574),s=n(953),r=n(661),a=n(753),c="context-provider";function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:a,leIdRequired:l,svcId:m}=e;return!t&&n||!a&&l?new Promise(((t,n)=>{m?i.BBAuth.getToken().then((a=>{let l="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(m);e.url&&(l+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(l,a).then((s=>{const a=s&&s.items,l=a&&a.length;1===l?(e.url=a[0].url,t(e)):l>1?function(e,t,n,s){let a,d;function l(){r.BBAuthDomUtility.removeEl(d),r.BBAuthDomUtility.removeCss(a),d=a=void 0,window.removeEventListener("message",m)}function m(r){const a=r.data;var u,m;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&a.hostId===c)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(d,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,m=a.disableRedirect,i.BBAuth.getToken({disableRedirect:m}).then((e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:e,tokenRequestId:u})}),(e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:e,tokenRequestId:u})}));break;case"welcome-cancel":l(),s({reason:"canceled"});break;case"welcome-environment-selected":l(),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=${c}&url=`+encodeURIComponent(e.url);d=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",m)}(e,s,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"},738:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(938),t),o(n(189),t)},910:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(217),t),o(n(774),t),o(n(461),t),o(n(277),t),o(n(775),t),o(n(353),t),o(n(242),t),o(n(901),t),o(n(926),t),o(n(539),t),o(n(964),t),o(n(520),t),o(n(185),t),o(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;const i=n(576);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise((t=>{var n;const s=o(),r=null===(n=null==s?void 0:s.fn)||void 0===n?void 0:n.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).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)),window.BBAUTH.Omnibar.load(n,e)}))}))}}},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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}),t.BBOmnibarPushNotifications=void 0;const o=n(489),s=n(406),r=n(574),a=n(576),c=n(44);let d,u,l=!1;const m={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},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*(){l||(d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,window.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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),window.BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&window.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,window.BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){window.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"},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;class i{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,o){return o&&function(e,t){const i=n(e),o=n(t);for(let e=0;e<i.length;e++)if(e<o.length){if(o[e]>i[e])return!0;if(o[e]<i[e])return!1}return!0}(t,o)?Promise.resolve():i.registerScript(e)}}t.BBOmnibarScriptLoader=i},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;const i=n(340),o=n(661),s=n(574),r="sky-omnibar-toast-container",a=`${r}-ready`,c=`${r}-empty`;let d,u,l,m,h,p;function f(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function v(){u&&s.BBAuthInterop.postOmnibarMessage(u,{href:p,messageType:"location-change"})}function b(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(u,{envId:h.envId,leId:h.leId,messageType:"nav-ready",svcId:h.svcId}),v(),u.classList.add(a),m();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then((e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:n})}),(e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":h.navigateUrlCallback(t.url);break;case"navigate":h.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(u.style.height=t.height+"px",u.style.top=f(".sky-omnibar-iframe")+f(".sky-omnibar-environment")+20+"px",u.classList.remove(c)):u.classList.add(c);break;case"push-notifications-change":h.pushNotificationsChangeCallback(t.notifications);break;case"push-notifications-open":h.openMenuCallback()}var n,o}class g{static init(e){return h=e,p=e.url,l||(l=new Promise((e=>{m=e,u||(d=o.BBAuthDomUtility.addCss(`\n.${r} {\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.${a} {\n display: block;\n}\n\n.${c} {\n visibility: hidden;\n}\n`),u=document.createElement("iframe"),u.src=g.CONTAINER_URL,u.className=`${r} ${c}`,u.title="Toast container",document.body.appendChild(u),window.addEventListener("message",b))}))),l}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(u,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){p=e,v()}static destroy(){d&&o.BBAuthDomUtility.removeCss(d),u&&o.BBAuthDomUtility.removeEl(u),p=u=h=l=m=d=void 0,window.removeEventListener("message",b)}}t.BBOmnibarToastContainer=g,g.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 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()}}},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;const i=n(661),o=n(574);let s,r,a;function c(e){if(o.BBAuthInterop.messageIsFromOmnibar(e))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"},642: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}),t.BBOmnibarUserActivity=void 0;const o=n(658),s=n(953),r=n(753),a=n(459),c=n(313),d=n(882);let u,l,m,h,p,f,v,b,g,B,y,k,I,T,O="";function w(){b=Date.now()}function A(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,w())}function _(){const e=Date.now();(!g||e-g>S.MIN_RENEWAL_RETRY)&&(g=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((()=>{})))}function E(){v=!0,f()}function N(){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===y&&s===k||(S.stopTracking(),p=e,f=t,h=n,y=o,k=s,document.addEventListener("keypress",w),document.addEventListener("mousemove",A),function(){y||_(),B=setInterval((()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(O,I,y);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:N,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:_,showInactivityPrompt:E})}))),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,(e=>{I=e.legacyTtl,O=e.refreshId,T=e.legacySigninUrl})),u=!0)}static userRenewedSession(){N(),_()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",w),document.removeEventListener("mousemove",A),B&&(clearInterval(B),B=void 0),u=l=m=b=g=v=p=f=h=y=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},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;const i=n(658),o=n(953);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=>{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=>{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}}},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;const i=n(574),o=n(753),s=n(658);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.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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&&m&&i.BBAuthInterop.postOmnibarMessage(m,{messageType:"session-refresh"},f(a)),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}(e);break;case f(a):!function(e){const t=e.data;"ready"===t.messageType&&(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",b,!1),r=!0)}static stop(){window.removeEventListener("message",b,!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()},790: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}),t.BBOmnibarVertical=void 0;const o=n(662),s=n(661),r=n(574),a=n(753),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m="sky-omnibar-vertical-iframe-wrapper",h=new Set;let p,f,v,b,g,B,y,k;function I(){if(g.onResize){let e=0;const t=document.querySelector(`.${m}`);t&&"none"!==getComputedStyle(t).display&&(e=document.body.classList.contains(l)?90:300),g.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==p?void 0:p.omnibar)||void 0===e?void 0:e.vMin}function O(){I()}function w(){r.BBAuthInterop.postLocationChangeMessage(v,f)}function A(){document.body.classList.add(l),I()}function _(){document.body.classList.remove(l)}function E(e,t){if(t){const t=Date.now().toString();h.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?A():_(),I()}function N(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=g.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(v,{envId:g.envId,leId:g.leId,messageType:"nav-ready",minimized:T(),navVersion:g.navVersion,services:n&&n.services,svcId:g.svcId,theme:g.theme}),w(),B();break;case"display-ready":b.classList.remove(d);break;case"expand":b.classList.add(c);break;case"collapse":b.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(g.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(v,t.tokenRequestId,t.disableRedirect);break;case"maximize":E(!1,!0);break;case"minimize":E(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return g=e,new Promise((e=>i(this,void 0,void 0,(function*(){B=e,y=s.BBAuthDomUtility.addCss(`\n.${m} {\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.${m}.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .${m}: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 .${m} {\n display: none;\n }\n}\n`);try{p=yield o.BBUserSettings.getSettings()}catch(e){}g.onResize&&(k=window.matchMedia("max-width: 767px"),k.addEventListener("change",O)),function(e){T()&&A();const t=g.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";v=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),b=document.createElement("div"),b.className=`${m} ${d}`,b.appendChild(v),e.insertAdjacentElement("afterend",b),document.body.classList.add(u)}(t),I(),window.addEventListener("message",N)}))))}))}static updateUrl(e){f=e,w()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n;return i(this,void 0,void 0,(function*(){h.has(e)?h.delete(e):(p=yield o.BBUserSettings.getSettings(),E(null===(t=null==p?void 0:p.omnibar)||void 0===t?void 0:t.vMin,!1),r.BBAuthInterop.postOmnibarMessage(v,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==p?void 0:p.omnibar)||void 0===n?void 0:n.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(b),s.BBAuthDomUtility.removeCss(y),document.body.classList.remove(u),_(),window.removeEventListener("message",N),k&&(k.removeEventListener("change",O),k=void 0),h.clear(),p=f=v=b=g=B=y=void 0}}},177: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}),t.BBOmnibar=void 0;const o=n(406),s=n(574),r=n(753),a=n(661),c=n(642),d=n(382),u=n(113),l=n(44),m=n(790),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading",f="sky-omnibar-environment-visible",v="sky-omnibar-environment-description-present";let b,g,B,y,k,I,T,O,w,A,_,E;function N(){const e=T.theme;return e&&"modern"===e.name}function C(e){const t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(b.classList.remove(t),b.classList.add(n)):(b.classList.remove(n),b.classList.add(t))}function S(){if(N()){if("tcs"===T.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 P(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(I,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){T.onResize&&T.onResize({position:"top",size:50+(document.body.classList.contains(f)?24:0)})}function x(){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-open"})}function M(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),A=e&&e.notifications&&e.notifications.filter((e=>!e.isRead)).length,W()}function L(e){m.BBOmnibarVertical.refreshSettings(e.value)}function U(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}T&&(yield u.BBOmnibarPushNotifications.connect({customMessageCallback:L,envId:T.envId,handleNavigate:z,handleNavigateUrl:F,handlePushNotificationsChange:G,leId:T.leId,notificationsCallback:M,openPushNotificationsMenu:x,showVerticalNav:S(),svcId:T.svcId}))}))}function j(){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(I,{messageType:"refresh-user",token:e}),S()&&m.BBOmnibarVertical.refreshUser(e),e?U():u.BBOmnibarPushNotifications.disconnect()}))}function D(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function q(){d.BBOmnibarUserActivityPrompt.hide()}function $(){c.BBOmnibarUserActivity.startTracking(j,D,q,T.allowAnonymous,O)}function G(e){u.BBOmnibarPushNotifications.updateNotifications(e)}function z(e){s.BBAuthInterop.handleNavigate(T.nav,e)}function F(e){r.BBAuthNavigator.navigate(e)}function V(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=T.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(I,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(...t){const n=e.apply(history,t);return P(),n},history.replaceState=function(...e){const n=t.apply(history,e);return P(),n}}(),s.BBAuthInterop.postOmnibarMessage(I,{compactNavOnly:T.compactNavOnly||S(),enableHelp:T.enableHelp,envId:T.envId,hideResourceLinks:T.hideResourceLinks,leId:T.leId,localNavItems:n&&n.localNavItems,localNotifications:!!T.notifications,localSearch:!!T.onSearch,messageType:"nav-ready",navVersion:T.navVersion,services:n&&n.services,svcId:T.svcId,theme:T.theme}),function(){const e=T.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(I,{messageType:"notifications-update",notifications:e})}})}(),U(!0),P(),w();break;case"display-ready":y.classList.remove(p),I.classList.remove(p);break;case"expand":I.classList.add(h);break;case"collapse":I.classList.remove(h);break;case"navigate-url":F(t.url);break;case"navigate":z(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(T.onSearch){const t=yield T.onSearch(e);s.BBAuthInterop.postOmnibarMessage(I,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(I,t.tokenRequestId,t.disableRedirect,$);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=T.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":G(t.notifications);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i=document.body.classList;if(e=e||"",g.innerText=e,e)if(i.add(f),t)if(b.classList.add(v),n){const e=document.createElement("a");e.href=n,e.innerText=t,B.appendChild(e)}else B.innerText=t;else b.classList.remove(v);else i.remove(f);R()}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.images)||void 0===t?void 0:t.favIcon)||void 0===n?void 0:n.url;i&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((e=>{e.href=i})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((e=>{e.remove()})))}(t.branding);break;case"legacy-keep-alive-url-change":O=t.url,$();break;case"selected-service-update":_=t.serviceName,W()}}function W(){if(E){const e=E.slice();_&&e.push(_);let t=e.join(" - ");A&&(t=`(${A}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return T=T=e,O=T.legacyKeepAliveUrl,new Promise((t=>{w=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=T.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};`)}k=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.${v} {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.${f} .sky-omnibar-environment {\n height: 24px;\n}\n`),R()}(),y=document.createElement("div"),y.className=`sky-omnibar-placeholder ${p}`,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),b=document.createElement("div"),b.className="sky-omnibar-environment",C(N()),g=document.createElement("span"),g.className="sky-omnibar-environment-name",b.appendChild(g),B=document.createElement("span"),B.className="sky-omnibar-environment-description",b.appendChild(B),a.BBAuthDomUtility.addElToBodyTop(b),I=a.BBAuthDomUtility.addIframe(function(){const e=T.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),`sky-omnibar-iframe ${p}`,"Navigation"),S()&&m.BBOmnibarVertical.load(e,I),window.addEventListener("message",V)}))}static update(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)}static setTitle(e){E=e&&e.titleParts,W()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return T?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(I),a.BBAuthDomUtility.removeEl(b),a.BBAuthDomUtility.removeCss(k),window.removeEventListener("message",V),document.body.classList.remove(f),T=k=y=I=b=B=g=w=A=E=_=void 0}}},568:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(887),t),o(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;const i=n(406),o=n(658),s=n(753);function r(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()}function a(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,i,o){let 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(((n,i)=>{r(e,{name:"X-CSRF",value:t},s,(e=>{const t=e?JSON.parse(e):void 0;n(t)}),i)}))}t.BBCsrfXhr=class{static request(e,t,n,r,a,d,u){return!a||r||d?new Promise(((l,m)=>{new Promise(((e,t)=>{u?e({csrf_token:"token_needed"}):c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>c(e,t.csrf_token,r,a,d))).then(l).catch((e=>{n||e.code===i.BBAuthTokenErrorCode.Offline?m(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin(t):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 postWithCSRF(e){return new Promise(((t,n)=>{new Promise(((e,t)=>{c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>new Promise(((n,i)=>{r(e,{name:"X-CSRF",value:t.csrf_token},void 0,(e=>{n(e)}),i)})))).then(t).catch((e=>{e.code===i.BBAuthTokenErrorCode.Offline?n(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin():s.BBAuthNavigator.redirectToError(e.code)}))}))}static requestWithToken(e,t,n="GET",i){return new Promise(((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)if(200===r.status){let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e)}else 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))}}))}}},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 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)}}},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;const i=n(406),o=n(753),s="https://host.nxt.blackbaud.com";function r(e,t){if(e.origin===s){const n=e.data;return!!n&&n.source===t}return!1}class a{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||s)}static messageIsFromOmnibar(e){return r(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return r(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return r(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&&a.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=a},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;const i=n(406),o="https://signin.blackbaud.com/signin/",s=encodeURIComponent;function r(e){let t=`${o}?redirectUrl=${s(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=r();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${s(n)}=${s(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=r(!0),t=`${o}sign-out?redirectUrl=${s(e)}`;this.navigate(t)}static redirectToError(e){let t,n;e===i.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";let o=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${s(location.href)}`;n&&(o+=`&code=${s(n)}`),this.navigate(o)}}},333:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(63),t),o(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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}),t.BBUserSettings=void 0;const o=n(406),s=n(953),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{yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t}),n()}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"}},t={},n=function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}(254);window.BBAuthClient=n})(); |
@@ -1,1 +0,1 @@ | ||
(()=>{var e={168:e=>{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}},491:(e,t,n)=>{var r=n(168);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)}}},489:(e,t,n)=>{"use strict";var r=n(491);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},254:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(406),t),i(n(738),t),i(n(910),t),i(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;var r=n(661),i=n(753),o=n(871),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},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;var n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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"},r=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e],i=".".concat(r);if(this.CURRENT_DOMAIN===r||this.CURRENT_DOMAIN.substr(-i.length)===i)return r}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=r},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;var r=n(953),i=n(22),o=n(658),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},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;var r=n(163),i=n(658),o=n(953),a=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/,s=function(){function e(){}return e.getUrl=function(e,t){var n=a.exec(e),r=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),r="https://".concat(n[1],"-").concat(i,".app.blackbaud.net/").concat(n[2],"/").concat(n[4])),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.getTTL=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/ttl")},e.renewSession=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/renew")},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=s},406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(340),t),i(n(320),t),i(n(965),t),i(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;var r=n(406),i=n(574),o=n(953),a=n(661),s=n(753),c="context-provider";function u(e,t,n,o){var s,u,l;function f(){a.BBAuthDomUtility.removeEl(u),a.BBAuthDomUtility.removeCss(s),u=s=void 0,window.removeEventListener("message",h)}function h(a){var s,l,d=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&d.hostId===c)switch(d.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(u,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,l=d.disableRedirect,r.BBAuth.getToken({disableRedirect:l}).then((function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":f(),o({reason:"canceled"});break;case"welcome-environment-selected":f(),setTimeout((function(){e.envId=d.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"),l=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=".concat(c)+"&url="+encodeURIComponent(e.url),u=a.BBAuthDomUtility.addIframe(l,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",h)}function l(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=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?u(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):l()}))})):l()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=d},738:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(938),t),i(n(189),t)},910:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(177),t),i(n(217),t),i(n(774),t),i(n(461),t),i(n(277),t),i(n(775),t),i(n(353),t),i(n(242),t),i(n(901),t),i(n(926),t),i(n(539),t),i(n(964),t),i(n(520),t),i(n(185),t),i(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;var r=n(576);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n,o=i(),a=null===(n=null==o?void 0:o.fn)||void 0===n?void 0:n.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",a).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)),window.BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarPushNotifications=void 0;var o,a,s=n(489),c=n(406),u=n(574),l=n(576),d=n(44),f=!1,h={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function m(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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,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(),window.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,m(t)]:[3,4];case 3:n.sent(),window.BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&window.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(),window.BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){window.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=h[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},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;var r=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){return t()},r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,r,i){return i&&function(e,t){for(var r=n(e),i=n(t),o=0;o<r.length;o++)if(o<i.length){if(i[o]>r[o])return!0;if(i[o]<r[o])return!1}return!0}(r,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=r},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;var r,i,o,a,s,c,u=n(340),l=n(661),d=n(574),f="sky-omnibar-toast-container",h="".concat(f,"-ready"),m="".concat(f,"-empty");function p(){return i||(r=l.BBAuthDomUtility.addCss("\n.".concat(f," {\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.").concat(h," {\n display: block;\n}\n\n.").concat(m," {\n visibility: hidden;\n}\n")),(i=document.createElement("iframe")).src=y.CONTAINER_URL,i.className="".concat(f," ").concat(m),i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",g)),i}function v(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function b(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function g(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}),b(),i.classList.add(h),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=v(".sky-omnibar-iframe")+v(".sky-omnibar-environment")+20+"px",i.classList.remove(m)):i.classList.add(m);break;case"push-notifications-change":s.pushNotificationsChangeCallback(r.notifications);break;case"push-notifications-open":s.openMenuCallback()}}}var y=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,p()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,b()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",g)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=y},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 0;var n=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 h=r-i,m=r-s+c;o?f<h&&n():a>m?l():!t&&f>h&&d()}},e}();t.BBOmnibarUserActivityProcessor=n},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;var r,i,o,a=n(661),s=n(574);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},642: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivity=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b,g,y=n(658),B=n(953),k=n(753),I=n(459),w=n(313),T=n(882),O="";function _(){f=Date.now()}function A(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,_())}function E(){var e=Date.now();(!h||e-h>x.MIN_RENEWAL_RETRY)&&(h=e,B.BBCsrfXhr.request(y.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function N(){d=!0,l()}function C(){d=!1,_(),c()}function S(){g?k.BBAuthNavigator.navigate(g):k.BBAuthNavigator.redirectToSignoutForInactivity()}function P(){var e=this;p||E(),m=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(O,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:x.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:x.MAX_SESSION_AGE,minRenewalAge:x.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:N}),[2]}}))}))}),x.ACTIVITY_TIMER_INTERVAL)}var x=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",_),document.addEventListener("mousemove",A),P(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,O=e.refreshId,g=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),E()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",_),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=a=s=f=h=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=x},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;var r,i=n(658),o=n(953),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){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){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},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;var r,i,o,a,s,c,u,l,d=n(574),f=n(753),h=n(658),m={};function p(e){if(e){var t=e.split("://"),n=t[0],r=t[1].split("/")[0];return"".concat(n,"://").concat(r)}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function g(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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!==m.refreshId&&c!==m.refreshId&&u&&d.BBAuthInterop.postOmnibarMessage(u,{messageType:"session-refresh"},p(i)),void 0!==m.sessionId&&r!==m.sessionId&&o(),m.refreshId=c,m.sessionId=r,a(m)}}}(e);break;case p(i):!function(e){var t=e.data;"ready"===t.messageType&&(m.legacyTtl=t.ttl,l=t.signinUrl,a(m))}(e)}}var y=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),m={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=h.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=y},790: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarVertical=void 0;var o,a,s,c,u,l,d,f,h=n(662),m=n(661),p=n(574),v=n(753),b="sky-omnibar-vertical-expanded",g="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",B="sky-omnibar-vertical-body-minimized",k="sky-omnibar-vertical-iframe-wrapper",I=new Set;function w(){if(u.onResize){var e=0;"none"!==getComputedStyle(document.querySelector(".".concat(k))).display&&(e=document.body.classList.contains(B)?90:300),u.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==o?void 0:o.omnibar)||void 0===e?void 0:e.vMin}function O(){w()}function _(){p.BBAuthInterop.postLocationChangeMessage(s,a)}function A(){document.body.classList.add(B),w()}function E(){document.body.classList.remove(B)}function N(e,t){if(t){var n=Date.now().toString();I.add(n),h.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?A():E(),w()}function C(e){var t=e.data;if(p.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":p.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),p.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:T(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),_(),l();break;case"display-ready":c.classList.remove(g);break;case"expand":c.classList.add(b);break;case"collapse":c.classList.remove(b);break;case"navigate-url":v.BBAuthNavigator.navigate(t.url);break;case"navigate":p.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":p.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":N(!1,!0);break;case"minimize":N(!0,!0)}}}var S=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.".concat(k," {\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: ").concat(300,"px;\n z-index: 999;\n}\n\n.").concat(k,".").concat(g," {\n border-right: solid 1px #e2e3e4;\n}\n\n.").concat(B," .").concat(k,":not(.").concat(b,") {\n width: ").concat(90,"px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.").concat(g," .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.").concat(b," {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .").concat(y," {\n margin-left: ").concat(300,"px;\n }\n\n .").concat(B," {\n margin-left: ").concat(90,"px;\n }\n}\n\n@media (max-width: 767px) {\n .").concat(k," {\n display: none;\n }\n}\n")),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return u.onResize&&(f=window.matchMedia("max-width: 767px")).addEventListener("change",O),function(e){T()&&A();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="".concat(k," ").concat(g),c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),w(),window.addEventListener("message",C),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,_()},e.refreshUser=function(e){p.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return I.has(e)?(I.delete(e),[3,3]):[3,1];case 1:return[4,h.BBUserSettings.getSettings()];case 2:o=r.sent(),N(null===(t=null==o?void 0:o.omnibar)||void 0===t?void 0:t.vMin,!1),p.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==o?void 0:o.omnibar)||void 0===n?void 0:n.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),E(),window.removeEventListener("message",C),f&&(f.removeEventListener("change",O),f=void 0),I.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=S},177: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibar=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b=n(406),g=n(574),y=n(753),B=n(661),k=n(642),I=n(382),w=n(113),T=n(44),O=n(790),_="sky-omnibar-iframe-expanded",A="sky-omnibar-loading",E="sky-omnibar-environment-visible",N="sky-omnibar-environment-description-present",C="omnibar";function S(){var e=d.theme;return e&&"modern"===e.name}function P(e){var t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(o.classList.remove(t),o.classList.add(n)):(o.classList.remove(n),o.classList.add(t))}function x(){if(S()){if("tcs"===d.svcId)return!0;var e=g.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function R(){var e=g.BBAuthInterop.getCurrentUrl();g.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),O.BBOmnibarVertical.updateUrl(e)}function M(){d.onResize&&d.onResize({position:"top",size:50+(document.body.classList.contains(E)?24:0)})}function L(){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function U(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),m=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,H()}function j(e){O.BBOmnibarVertical.refreshSettings(e.value)}function D(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 d?[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:j,envId:d.envId,handleNavigate:W,handleNavigateUrl:X,handlePushNotificationsChange:V,leId:d.leId,notificationsCallback:U,openPushNotificationsMenu:L,showVerticalNav:x(),svcId:d.svcId})]:[3,6];case 5:t.sent(),t.label=6;case 6:return[2]}}))}))}function q(){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 g.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),x()&&O.BBOmnibarVertical.refreshUser(e),e?D():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function G(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function z(){I.BBOmnibarUserActivityPrompt.hide()}function F(){k.BBOmnibarUserActivity.startTracking(q,G,z,d.allowAnonymous,f)}function V(e){w.BBOmnibarPushNotifications.updateNotifications(e)}function W(e){g.BBAuthInterop.handleNavigate(d.nav,e)}function X(e){y.BBAuthNavigator.navigate(e)}function Y(e){var t=e.data;if(g.BBAuthInterop.messageIsFromOmnibar(e)&&t.hostId===C){var n,u,m,v,b,y,B,I,w=d.nav;switch(t.messageType){case"ready":g.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),B=history.pushState,I=history.replaceState,history.pushState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=B.apply(history,e);return R(),n},history.replaceState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I.apply(history,e);return R(),n},g.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||x(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:w&&w.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:w&&w.services,svcId:d.svcId,theme:d.theme}),(y=d.notifications)&&y.onReady({updateNotifications:function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),D(!0),R(),h();break;case"display-ready":c.classList.remove(A),l.classList.remove(A);break;case"expand":l.classList.add(_);break;case"collapse":l.classList.remove(_);break;case"navigate-url":X(t.url);break;case"navigate":W(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(),g.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":g.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,F);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":V(t.notifications);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r=document.body.classList;if(e=e||"",a.innerText=e,e)if(r.add(E),t)if(o.classList.add(N),n){var i=document.createElement("a");i.href=n,i.innerText=t,s.appendChild(i)}else s.innerText=t;else o.classList.remove(N);else r.remove(E);M()}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(v=null===(m=null===(u=null==n?void 0:n.images)||void 0===u?void 0:u.favIcon)||void 0===m?void 0:m.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=v})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,F();break;case"selected-service-update":p=t.serviceName,H()}}}function H(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");m&&(t="(".concat(m,") ").concat(t)),document.title=t}}var J=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){var n;h=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){S()&&(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: ".concat(o.color,";"))}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: ".concat(50,"px;\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: ").concat(50,"px;\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: ").concat(n,";\n border-bottom: ").concat(r,";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ").concat(t,";\n ").concat(e,"\n}\n\n.sky-omnibar-placeholder.").concat(A," {\n display: block;\n}\n\n.sky-omnibar-iframe.").concat(A," {\n visibility: hidden;\n}\n\n.").concat(_,' {\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: ').concat(24,"px;\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.").concat(N," {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.").concat(E," .sky-omnibar-environment {\n height: ").concat(24,"px;\n}\n")),M()}(),(c=document.createElement("div")).className="sky-omnibar-placeholder ".concat(A),c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",P(S()),(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),l=B.BBAuthDomUtility.addIframe((n=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(n.indexOf("?")<0?"?":"&")+"hostid=".concat(C),"sky-omnibar-iframe ".concat(A),"Navigation"),x()&&O.BBOmnibarVertical.load(e,l),window.addEventListener("message",Y)}))},e.update=function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&P("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,H()},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",Y),document.body.classList.remove(E),d=u=c=l=o=s=a=h=m=v=p=void 0},e}();t.BBOmnibar=J},568:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(887),t),i(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;var r=n(406),i=n(658),o=n(753);function a(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()}function s(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,r,i){var o;return o=s(o,"environment_id",n),o=s(o,"legal_entity_id",i),o=s(o,"permission_scope",r,!(!n&&!i||!r)),new Promise((function(n,r){a(e,{name:"X-CSRF",value:t},o,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),r)}))}var u=function(){function e(){}return e.request=function(e,t,n,a,s,u,l){return!s||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return c(e,t.csrf_token,a,s,u)})).then(d).catch((function(e){n||e.code===r.BBAuthTokenErrorCode.Offline?f(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin(t):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.postWithCSRF=function(e){return new Promise((function(t,n){new Promise((function(e,t){c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return new Promise((function(n,r){a(e,{name:"X-CSRF",value:t.csrf_token},void 0,(function(e){n(e)}),r)}))})).then(t).catch((function(e){e.code===r.BBAuthTokenErrorCode.Offline?n(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin():o.BBAuthNavigator.redirectToError(e.code)}))}))},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)if(200===a.status){var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e)}else 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=u},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 0;var n=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=n},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;var r=n(406),i=n(753),o="https://host.nxt.blackbaud.com";function a(e,t){if(e.origin===o){var n=e.data;return!!n&&n.source===t}return!1}var s=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)},e.messageIsFromOmnibar=function(e){return a(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return a(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return a(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=s},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;var r=n(406),i="https://signin.blackbaud.com/signin/",o=encodeURIComponent;function a(e){var t="".concat(i,"?redirectUrl=").concat(o(location.href));return e&&(t+="&inactivity=1"),t}var s=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=a();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(o(n),"=").concat(o(e[n])));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=a(!0),t="".concat(i,"sign-out?redirectUrl=").concat(o(e));this.navigate(t)},e.redirectToError=function(e){var t,n;e===r.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";var i="".concat("https://host.nxt.blackbaud.com/errors/").concat(t,"?source=auth-client&url=").concat(o(location.href));n&&(i+="&code=".concat(o(n))),this.navigate(i)},e}();t.BBAuthNavigator=s},333:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(63),t),i(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBUserSettings=void 0;var o,a=n(406),s=n(953),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;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 i.sent(),u(),[3,6];case 5:return r=i.sent(),l(r),[3,6];case 6:return[3,8];case 7:i.sent(),d=void 0;try{d=this.getLocalSettings()}catch(e){d={}}try{d.omnibar=d.omnibar||{},Object.assign(d.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(d))}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}},t={},n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(254);window.BBAuthClient=n})(); | ||
(()=>{var e={168:e=>{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}},491:(e,t,n)=>{var r=n(168);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)}}},489:(e,t,n)=>{"use strict";var r=n(491);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},254:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(406),t),i(n(738),t),i(n(910),t),i(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;var r=n(661),i=n(753),o=n(871),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},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;var n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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"},r=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e],i=".".concat(r);if(this.CURRENT_DOMAIN===r||this.CURRENT_DOMAIN.substr(-i.length)===i)return r}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=r},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;var r=n(953),i=n(22),o=n(658),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},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;var r=n(163),i=n(658),o=n(953),a=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/,s=function(){function e(){}return e.getUrl=function(e,t){var n=a.exec(e),r=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),r="https://".concat(n[1],"-").concat(i,".app.blackbaud.net/").concat(n[2],"/").concat(n[4])),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.getTTL=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/ttl")},e.renewSession=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/renew")},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=s},406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(340),t),i(n(320),t),i(n(965),t),i(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;var r=n(406),i=n(574),o=n(953),a=n(661),s=n(753),c="context-provider";function u(e,t,n,o){var s,u,l;function f(){a.BBAuthDomUtility.removeEl(u),a.BBAuthDomUtility.removeCss(s),u=s=void 0,window.removeEventListener("message",h)}function h(a){var s,l,d=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&d.hostId===c)switch(d.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(u,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,l=d.disableRedirect,r.BBAuth.getToken({disableRedirect:l}).then((function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":f(),o({reason:"canceled"});break;case"welcome-environment-selected":f(),setTimeout((function(){e.envId=d.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"),l=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=".concat(c)+"&url="+encodeURIComponent(e.url),u=a.BBAuthDomUtility.addIframe(l,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",h)}function l(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=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?u(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):l()}))})):l()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=d},738:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(938),t),i(n(189),t)},910:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(177),t),i(n(217),t),i(n(774),t),i(n(461),t),i(n(277),t),i(n(775),t),i(n(353),t),i(n(242),t),i(n(901),t),i(n(926),t),i(n(539),t),i(n(964),t),i(n(520),t),i(n(185),t),i(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;var r=n(576);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n,o=i(),a=null===(n=null==o?void 0:o.fn)||void 0===n?void 0:n.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",a).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)),window.BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarPushNotifications=void 0;var o,a,s=n(489),c=n(406),u=n(574),l=n(576),d=n(44),f=!1,h={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function m(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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,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(),window.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,m(t)]:[3,4];case 3:n.sent(),window.BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&window.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(),window.BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){window.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=h[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},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;var r=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){return t()},r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,r,i){return i&&function(e,t){for(var r=n(e),i=n(t),o=0;o<r.length;o++)if(o<i.length){if(i[o]>r[o])return!0;if(i[o]<r[o])return!1}return!0}(r,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=r},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;var r,i,o,a,s,c,u=n(340),l=n(661),d=n(574),f="sky-omnibar-toast-container",h="".concat(f,"-ready"),m="".concat(f,"-empty");function p(){return i||(r=l.BBAuthDomUtility.addCss("\n.".concat(f," {\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.").concat(h," {\n display: block;\n}\n\n.").concat(m," {\n visibility: hidden;\n}\n")),(i=document.createElement("iframe")).src=y.CONTAINER_URL,i.className="".concat(f," ").concat(m),i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",g)),i}function v(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function b(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function g(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}),b(),i.classList.add(h),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=v(".sky-omnibar-iframe")+v(".sky-omnibar-environment")+20+"px",i.classList.remove(m)):i.classList.add(m);break;case"push-notifications-change":s.pushNotificationsChangeCallback(r.notifications);break;case"push-notifications-open":s.openMenuCallback()}}}var y=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,p()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,b()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",g)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=y},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 0;var n=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 h=r-i,m=r-s+c;o?f<h&&n():a>m?l():!t&&f>h&&d()}},e}();t.BBOmnibarUserActivityProcessor=n},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;var r,i,o,a=n(661),s=n(574);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},642: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivity=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b,g,y=n(658),B=n(953),k=n(753),I=n(459),w=n(313),T=n(882),O="";function _(){f=Date.now()}function A(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,_())}function E(){var e=Date.now();(!h||e-h>x.MIN_RENEWAL_RETRY)&&(h=e,B.BBCsrfXhr.request(y.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function N(){d=!0,l()}function C(){d=!1,_(),c()}function S(){g?k.BBAuthNavigator.navigate(g):k.BBAuthNavigator.redirectToSignoutForInactivity()}function P(){var e=this;p||E(),m=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(O,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:x.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:x.MAX_SESSION_AGE,minRenewalAge:x.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:N}),[2]}}))}))}),x.ACTIVITY_TIMER_INTERVAL)}var x=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",_),document.addEventListener("mousemove",A),P(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,O=e.refreshId,g=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),E()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",_),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=a=s=f=h=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=x},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;var r,i=n(658),o=n(953),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){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){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},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;var r,i,o,a,s,c,u,l,d=n(574),f=n(753),h=n(658),m={};function p(e){if(e){var t=e.split("://"),n=t[0],r=t[1].split("/")[0];return"".concat(n,"://").concat(r)}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function g(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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!==m.refreshId&&c!==m.refreshId&&u&&d.BBAuthInterop.postOmnibarMessage(u,{messageType:"session-refresh"},p(i)),void 0!==m.sessionId&&r!==m.sessionId&&o(),m.refreshId=c,m.sessionId=r,a(m)}}}(e);break;case p(i):!function(e){var t=e.data;"ready"===t.messageType&&(m.legacyTtl=t.ttl,l=t.signinUrl,a(m))}(e)}}var y=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),m={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=h.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=y},790: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarVertical=void 0;var o,a,s,c,u,l,d,f,h=n(662),m=n(661),p=n(574),v=n(753),b="sky-omnibar-vertical-expanded",g="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",B="sky-omnibar-vertical-body-minimized",k="sky-omnibar-vertical-iframe-wrapper",I=new Set;function w(){if(u.onResize){var e=0,t=document.querySelector(".".concat(k));t&&"none"!==getComputedStyle(t).display&&(e=document.body.classList.contains(B)?90:300),u.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==o?void 0:o.omnibar)||void 0===e?void 0:e.vMin}function O(){w()}function _(){p.BBAuthInterop.postLocationChangeMessage(s,a)}function A(){document.body.classList.add(B),w()}function E(){document.body.classList.remove(B)}function N(e,t){if(t){var n=Date.now().toString();I.add(n),h.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?A():E(),w()}function C(e){var t=e.data;if(p.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":p.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),p.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:T(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),_(),l();break;case"display-ready":c.classList.remove(g);break;case"expand":c.classList.add(b);break;case"collapse":c.classList.remove(b);break;case"navigate-url":v.BBAuthNavigator.navigate(t.url);break;case"navigate":p.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":p.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":N(!1,!0);break;case"minimize":N(!0,!0)}}}var S=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.".concat(k," {\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: ").concat(300,"px;\n z-index: 999;\n}\n\n.").concat(k,".").concat(g," {\n border-right: solid 1px #e2e3e4;\n}\n\n.").concat(B," .").concat(k,":not(.").concat(b,") {\n width: ").concat(90,"px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.").concat(g," .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.").concat(b," {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .").concat(y," {\n margin-left: ").concat(300,"px;\n }\n\n .").concat(B," {\n margin-left: ").concat(90,"px;\n }\n}\n\n@media (max-width: 767px) {\n .").concat(k," {\n display: none;\n }\n}\n")),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return u.onResize&&(f=window.matchMedia("max-width: 767px")).addEventListener("change",O),function(e){T()&&A();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="".concat(k," ").concat(g),c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),w(),window.addEventListener("message",C),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,_()},e.refreshUser=function(e){p.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return I.has(e)?(I.delete(e),[3,3]):[3,1];case 1:return[4,h.BBUserSettings.getSettings()];case 2:o=r.sent(),N(null===(t=null==o?void 0:o.omnibar)||void 0===t?void 0:t.vMin,!1),p.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==o?void 0:o.omnibar)||void 0===n?void 0:n.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),E(),window.removeEventListener("message",C),f&&(f.removeEventListener("change",O),f=void 0),I.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=S},177: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibar=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b=n(406),g=n(574),y=n(753),B=n(661),k=n(642),I=n(382),w=n(113),T=n(44),O=n(790),_="sky-omnibar-iframe-expanded",A="sky-omnibar-loading",E="sky-omnibar-environment-visible",N="sky-omnibar-environment-description-present",C="omnibar";function S(){var e=d.theme;return e&&"modern"===e.name}function P(e){var t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(o.classList.remove(t),o.classList.add(n)):(o.classList.remove(n),o.classList.add(t))}function x(){if(S()){if("tcs"===d.svcId)return!0;var e=g.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function R(){var e=g.BBAuthInterop.getCurrentUrl();g.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),O.BBOmnibarVertical.updateUrl(e)}function M(){d.onResize&&d.onResize({position:"top",size:50+(document.body.classList.contains(E)?24:0)})}function L(){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function U(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),m=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,H()}function j(e){O.BBOmnibarVertical.refreshSettings(e.value)}function D(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 d?[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:j,envId:d.envId,handleNavigate:W,handleNavigateUrl:X,handlePushNotificationsChange:V,leId:d.leId,notificationsCallback:U,openPushNotificationsMenu:L,showVerticalNav:x(),svcId:d.svcId})]:[3,6];case 5:t.sent(),t.label=6;case 6:return[2]}}))}))}function q(){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 g.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),x()&&O.BBOmnibarVertical.refreshUser(e),e?D():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function G(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function z(){I.BBOmnibarUserActivityPrompt.hide()}function F(){k.BBOmnibarUserActivity.startTracking(q,G,z,d.allowAnonymous,f)}function V(e){w.BBOmnibarPushNotifications.updateNotifications(e)}function W(e){g.BBAuthInterop.handleNavigate(d.nav,e)}function X(e){y.BBAuthNavigator.navigate(e)}function Y(e){var t=e.data;if(g.BBAuthInterop.messageIsFromOmnibar(e)&&t.hostId===C){var n,u,m,v,b,y,B,I,w=d.nav;switch(t.messageType){case"ready":g.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),B=history.pushState,I=history.replaceState,history.pushState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=B.apply(history,e);return R(),n},history.replaceState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I.apply(history,e);return R(),n},g.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||x(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:w&&w.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:w&&w.services,svcId:d.svcId,theme:d.theme}),(y=d.notifications)&&y.onReady({updateNotifications:function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),D(!0),R(),h();break;case"display-ready":c.classList.remove(A),l.classList.remove(A);break;case"expand":l.classList.add(_);break;case"collapse":l.classList.remove(_);break;case"navigate-url":X(t.url);break;case"navigate":W(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(),g.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":g.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,F);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":V(t.notifications);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r=document.body.classList;if(e=e||"",a.innerText=e,e)if(r.add(E),t)if(o.classList.add(N),n){var i=document.createElement("a");i.href=n,i.innerText=t,s.appendChild(i)}else s.innerText=t;else o.classList.remove(N);else r.remove(E);M()}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(v=null===(m=null===(u=null==n?void 0:n.images)||void 0===u?void 0:u.favIcon)||void 0===m?void 0:m.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=v})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,F();break;case"selected-service-update":p=t.serviceName,H()}}}function H(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");m&&(t="(".concat(m,") ").concat(t)),document.title=t}}var J=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){var n;h=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){S()&&(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: ".concat(o.color,";"))}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: ".concat(50,"px;\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: ").concat(50,"px;\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: ").concat(n,";\n border-bottom: ").concat(r,";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ").concat(t,";\n ").concat(e,"\n}\n\n.sky-omnibar-placeholder.").concat(A," {\n display: block;\n}\n\n.sky-omnibar-iframe.").concat(A," {\n visibility: hidden;\n}\n\n.").concat(_,' {\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: ').concat(24,"px;\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.").concat(N," {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.").concat(E," .sky-omnibar-environment {\n height: ").concat(24,"px;\n}\n")),M()}(),(c=document.createElement("div")).className="sky-omnibar-placeholder ".concat(A),c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",P(S()),(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),l=B.BBAuthDomUtility.addIframe((n=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(n.indexOf("?")<0?"?":"&")+"hostid=".concat(C),"sky-omnibar-iframe ".concat(A),"Navigation"),x()&&O.BBOmnibarVertical.load(e,l),window.addEventListener("message",Y)}))},e.update=function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&P("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,H()},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",Y),document.body.classList.remove(E),d=u=c=l=o=s=a=h=m=v=p=void 0},e}();t.BBOmnibar=J},568:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(887),t),i(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;var r=n(406),i=n(658),o=n(753);function a(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()}function s(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,r,i){var o;return o=s(o,"environment_id",n),o=s(o,"legal_entity_id",i),o=s(o,"permission_scope",r,!(!n&&!i||!r)),new Promise((function(n,r){a(e,{name:"X-CSRF",value:t},o,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),r)}))}var u=function(){function e(){}return e.request=function(e,t,n,a,s,u,l){return!s||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return c(e,t.csrf_token,a,s,u)})).then(d).catch((function(e){n||e.code===r.BBAuthTokenErrorCode.Offline?f(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin(t):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.postWithCSRF=function(e){return new Promise((function(t,n){new Promise((function(e,t){c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return new Promise((function(n,r){a(e,{name:"X-CSRF",value:t.csrf_token},void 0,(function(e){n(e)}),r)}))})).then(t).catch((function(e){e.code===r.BBAuthTokenErrorCode.Offline?n(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin():o.BBAuthNavigator.redirectToError(e.code)}))}))},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)if(200===a.status){var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e)}else 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=u},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 0;var n=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=n},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;var r=n(406),i=n(753),o="https://host.nxt.blackbaud.com";function a(e,t){if(e.origin===o){var n=e.data;return!!n&&n.source===t}return!1}var s=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)},e.messageIsFromOmnibar=function(e){return a(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return a(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return a(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=s},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;var r=n(406),i="https://signin.blackbaud.com/signin/",o=encodeURIComponent;function a(e){var t="".concat(i,"?redirectUrl=").concat(o(location.href));return e&&(t+="&inactivity=1"),t}var s=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=a();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(o(n),"=").concat(o(e[n])));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=a(!0),t="".concat(i,"sign-out?redirectUrl=").concat(o(e));this.navigate(t)},e.redirectToError=function(e){var t,n;e===r.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";var i="".concat("https://host.nxt.blackbaud.com/errors/").concat(t,"?source=auth-client&url=").concat(o(location.href));n&&(i+="&code=".concat(o(n))),this.navigate(i)},e}();t.BBAuthNavigator=s},333:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(63),t),i(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBUserSettings=void 0;var o,a=n(406),s=n(953),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;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 i.sent(),u(),[3,6];case 5:return r=i.sent(),l(r),[3,6];case 6:return[3,8];case 7:i.sent(),d=void 0;try{d=this.getLocalSettings()}catch(e){d={}}try{d.omnibar=d.omnibar||{},Object.assign(d.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(d))}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}},t={},n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(254);window.BBAuthClient=n})(); |
@@ -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()}(self,(()=>{return e={168:e=>{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 i,o,s=0,r=0,a="";o=n.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}},491:(e,t,n)=>{var i=n(168);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)}}},489:(e,t,n)=>{"use strict";var i=n(491);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},254:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(406),t),o(n(738),t),o(n(910),t),o(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;const i=n(661),o=n(753),s=n(871);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"},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;const n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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 i{static getRegisteredDomain(){for(const e of Object.keys(n)){const t=`.${e}`;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=i,i.CURRENT_DOMAIN=window.location.hostname},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;const i=n(953),o=n(22),s=n(658);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}}},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;const i=n(163),o=n(658),s=n(953),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class a{static getUrl(e,t){const n=r.exec(e);let i=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),i=`https://${n[1]}-${o}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return a.getTokenInternal(e)}static getTTL(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/ttl")}static renewSession(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/renew")}static clearTokenCache(){a.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(a.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),s=a.tokenCache[o]=a.tokenCache[o]||{},r=(new Date).valueOf();return!t&&s.lastToken&&s.expirationTime&&s.expirationTime-r>6e4?Promise.resolve(s.lastToken):(s.pendingLookupPromise||(s.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then((e=>(s.expirationTime=(new Date).valueOf()+1e3*e.expires_in,s.lastToken=e.access_token,s.pendingLookupPromise=null,s.lastToken))).catch((e=>{throw s.pendingLookupPromise=null,e}))),s.pendingLookupPromise)}}t.BBAuth=a,a.mock=!1,a.tokenCache={}},406:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(340),t),o(n(320),t),o(n(965),t),o(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;const i=n(406),o=n(574),s=n(953),r=n(661),a=n(753),c="context-provider";function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:a,leIdRequired:l,svcId:m}=e;return!t&&n||!a&&l?new Promise(((t,n)=>{m?i.BBAuth.getToken().then((a=>{let l="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(m);e.url&&(l+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(l,a).then((s=>{const a=s&&s.items,l=a&&a.length;1===l?(e.url=a[0].url,t(e)):l>1?function(e,t,n,s){let a,d;function l(){r.BBAuthDomUtility.removeEl(d),r.BBAuthDomUtility.removeCss(a),d=a=void 0,window.removeEventListener("message",m)}function m(r){const a=r.data;var u,m;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&a.hostId===c)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(d,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,m=a.disableRedirect,i.BBAuth.getToken({disableRedirect:m}).then((e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:e,tokenRequestId:u})}),(e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:e,tokenRequestId:u})}));break;case"welcome-cancel":l(),s({reason:"canceled"});break;case"welcome-environment-selected":l(),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=${c}&url=`+encodeURIComponent(e.url);d=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",m)}(e,s,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"},738:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(938),t),o(n(189),t)},910:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(217),t),o(n(774),t),o(n(461),t),o(n(277),t),o(n(775),t),o(n(353),t),o(n(242),t),o(n(901),t),o(n(926),t),o(n(539),t),o(n(964),t),o(n(520),t),o(n(185),t),o(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;const i=n(576);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise((t=>{var n;const s=o(),r=null===(n=null==s?void 0:s.fn)||void 0===n?void 0:n.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).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)),window.BBAUTH.Omnibar.load(n,e)}))}))}}},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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}),t.BBOmnibarPushNotifications=void 0;const o=n(489),s=n(406),r=n(574),a=n(576),c=n(44);let d,u,l=!1;const m={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},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*(){l||(d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,window.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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),window.BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&window.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,window.BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){window.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"},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;class i{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,o){return o&&function(e,t){const i=n(e),o=n(t);for(let e=0;e<i.length;e++)if(e<o.length){if(o[e]>i[e])return!0;if(o[e]<i[e])return!1}return!0}(t,o)?Promise.resolve():i.registerScript(e)}}t.BBOmnibarScriptLoader=i},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;const i=n(340),o=n(661),s=n(574),r="sky-omnibar-toast-container",a=`${r}-ready`,c=`${r}-empty`;let d,u,l,m,h,p;function f(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function v(){u&&s.BBAuthInterop.postOmnibarMessage(u,{href:p,messageType:"location-change"})}function b(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(u,{envId:h.envId,leId:h.leId,messageType:"nav-ready",svcId:h.svcId}),v(),u.classList.add(a),m();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then((e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:n})}),(e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":h.navigateUrlCallback(t.url);break;case"navigate":h.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(u.style.height=t.height+"px",u.style.top=f(".sky-omnibar-iframe")+f(".sky-omnibar-environment")+20+"px",u.classList.remove(c)):u.classList.add(c);break;case"push-notifications-change":h.pushNotificationsChangeCallback(t.notifications);break;case"push-notifications-open":h.openMenuCallback()}var n,o}class g{static init(e){return h=e,p=e.url,l||(l=new Promise((e=>{m=e,u||(d=o.BBAuthDomUtility.addCss(`\n.${r} {\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.${a} {\n display: block;\n}\n\n.${c} {\n visibility: hidden;\n}\n`),u=document.createElement("iframe"),u.src=g.CONTAINER_URL,u.className=`${r} ${c}`,u.title="Toast container",document.body.appendChild(u),window.addEventListener("message",b))}))),l}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(u,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){p=e,v()}static destroy(){d&&o.BBAuthDomUtility.removeCss(d),u&&o.BBAuthDomUtility.removeEl(u),p=u=h=l=m=d=void 0,window.removeEventListener("message",b)}}t.BBOmnibarToastContainer=g,g.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 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()}}},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;const i=n(661),o=n(574);let s,r,a;function c(e){if(o.BBAuthInterop.messageIsFromOmnibar(e))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"},642: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}),t.BBOmnibarUserActivity=void 0;const o=n(658),s=n(953),r=n(753),a=n(459),c=n(313),d=n(882);let u,l,m,h,p,f,v,b,g,B,y,k,I,T,O="";function A(){b=Date.now()}function w(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,A())}function _(){const e=Date.now();(!g||e-g>S.MIN_RENEWAL_RETRY)&&(g=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((()=>{})))}function E(){v=!0,f()}function N(){v=!1,A(),h()}function C(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===y&&s===k||(S.stopTracking(),p=e,f=t,h=n,y=o,k=s,document.addEventListener("keypress",A),document.addEventListener("mousemove",w),function(){y||_(),B=setInterval((()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(O,I,y);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:N,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:_,showInactivityPrompt:E})}))),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,(e=>{I=e.legacyTtl,O=e.refreshId,T=e.legacySigninUrl})),u=!0)}static userRenewedSession(){N(),_()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",A),document.removeEventListener("mousemove",w),B&&(clearInterval(B),B=void 0),u=l=m=b=g=v=p=f=h=y=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},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;const i=n(658),o=n(953);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=>{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=>{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}}},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;const i=n(574),o=n(753),s=n(658);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.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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&&m&&i.BBAuthInterop.postOmnibarMessage(m,{messageType:"session-refresh"},f(a)),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}(e);break;case f(a):!function(e){const t=e.data;"ready"===t.messageType&&(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",b,!1),r=!0)}static stop(){window.removeEventListener("message",b,!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()},790: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}),t.BBOmnibarVertical=void 0;const o=n(662),s=n(661),r=n(574),a=n(753),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m="sky-omnibar-vertical-iframe-wrapper",h=new Set;let p,f,v,b,g,B,y,k;function I(){if(g.onResize){let e=0;"none"!==getComputedStyle(document.querySelector(`.${m}`)).display&&(e=document.body.classList.contains(l)?90:300),g.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==p?void 0:p.omnibar)||void 0===e?void 0:e.vMin}function O(){I()}function A(){r.BBAuthInterop.postLocationChangeMessage(v,f)}function w(){document.body.classList.add(l),I()}function _(){document.body.classList.remove(l)}function E(e,t){if(t){const t=Date.now().toString();h.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?w():_(),I()}function N(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=g.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(v,{envId:g.envId,leId:g.leId,messageType:"nav-ready",minimized:T(),navVersion:g.navVersion,services:n&&n.services,svcId:g.svcId,theme:g.theme}),A(),B();break;case"display-ready":b.classList.remove(d);break;case"expand":b.classList.add(c);break;case"collapse":b.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(g.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(v,t.tokenRequestId,t.disableRedirect);break;case"maximize":E(!1,!0);break;case"minimize":E(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return g=e,new Promise((e=>i(this,void 0,void 0,(function*(){B=e,y=s.BBAuthDomUtility.addCss(`\n.${m} {\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.${m}.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .${m}: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 .${m} {\n display: none;\n }\n}\n`);try{p=yield o.BBUserSettings.getSettings()}catch(e){}g.onResize&&(k=window.matchMedia("max-width: 767px"),k.addEventListener("change",O)),function(e){T()&&w();const t=g.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";v=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),b=document.createElement("div"),b.className=`${m} ${d}`,b.appendChild(v),e.insertAdjacentElement("afterend",b),document.body.classList.add(u)}(t),I(),window.addEventListener("message",N)}))))}))}static updateUrl(e){f=e,A()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n;return i(this,void 0,void 0,(function*(){h.has(e)?h.delete(e):(p=yield o.BBUserSettings.getSettings(),E(null===(t=null==p?void 0:p.omnibar)||void 0===t?void 0:t.vMin,!1),r.BBAuthInterop.postOmnibarMessage(v,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==p?void 0:p.omnibar)||void 0===n?void 0:n.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(b),s.BBAuthDomUtility.removeCss(y),document.body.classList.remove(u),_(),window.removeEventListener("message",N),k&&(k.removeEventListener("change",O),k=void 0),h.clear(),p=f=v=b=g=B=y=void 0}}},177: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}),t.BBOmnibar=void 0;const o=n(406),s=n(574),r=n(753),a=n(661),c=n(642),d=n(382),u=n(113),l=n(44),m=n(790),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading",f="sky-omnibar-environment-visible",v="sky-omnibar-environment-description-present";let b,g,B,y,k,I,T,O,A,w,_,E;function N(){const e=T.theme;return e&&"modern"===e.name}function C(e){const t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(b.classList.remove(t),b.classList.add(n)):(b.classList.remove(n),b.classList.add(t))}function S(){if(N()){if("tcs"===T.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 P(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(I,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){T.onResize&&T.onResize({position:"top",size:50+(document.body.classList.contains(f)?24:0)})}function x(){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-open"})}function M(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),w=e&&e.notifications&&e.notifications.filter((e=>!e.isRead)).length,W()}function L(e){m.BBOmnibarVertical.refreshSettings(e.value)}function j(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}T&&(yield u.BBOmnibarPushNotifications.connect({customMessageCallback:L,envId:T.envId,handleNavigate:z,handleNavigateUrl:F,handlePushNotificationsChange:G,leId:T.leId,notificationsCallback:M,openPushNotificationsMenu:x,showVerticalNav:S(),svcId:T.svcId}))}))}function U(){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(I,{messageType:"refresh-user",token:e}),S()&&m.BBOmnibarVertical.refreshUser(e),e?j():u.BBOmnibarPushNotifications.disconnect()}))}function D(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function q(){d.BBOmnibarUserActivityPrompt.hide()}function $(){c.BBOmnibarUserActivity.startTracking(U,D,q,T.allowAnonymous,O)}function G(e){u.BBOmnibarPushNotifications.updateNotifications(e)}function z(e){s.BBAuthInterop.handleNavigate(T.nav,e)}function F(e){r.BBAuthNavigator.navigate(e)}function V(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=T.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(I,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(...t){const n=e.apply(history,t);return P(),n},history.replaceState=function(...e){const n=t.apply(history,e);return P(),n}}(),s.BBAuthInterop.postOmnibarMessage(I,{compactNavOnly:T.compactNavOnly||S(),enableHelp:T.enableHelp,envId:T.envId,hideResourceLinks:T.hideResourceLinks,leId:T.leId,localNavItems:n&&n.localNavItems,localNotifications:!!T.notifications,localSearch:!!T.onSearch,messageType:"nav-ready",navVersion:T.navVersion,services:n&&n.services,svcId:T.svcId,theme:T.theme}),function(){const e=T.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(I,{messageType:"notifications-update",notifications:e})}})}(),j(!0),P(),A();break;case"display-ready":y.classList.remove(p),I.classList.remove(p);break;case"expand":I.classList.add(h);break;case"collapse":I.classList.remove(h);break;case"navigate-url":F(t.url);break;case"navigate":z(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(T.onSearch){const t=yield T.onSearch(e);s.BBAuthInterop.postOmnibarMessage(I,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(I,t.tokenRequestId,t.disableRedirect,$);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=T.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":G(t.notifications);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i=document.body.classList;if(e=e||"",g.innerText=e,e)if(i.add(f),t)if(b.classList.add(v),n){const e=document.createElement("a");e.href=n,e.innerText=t,B.appendChild(e)}else B.innerText=t;else b.classList.remove(v);else i.remove(f);R()}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.images)||void 0===t?void 0:t.favIcon)||void 0===n?void 0:n.url;i&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((e=>{e.href=i})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((e=>{e.remove()})))}(t.branding);break;case"legacy-keep-alive-url-change":O=t.url,$();break;case"selected-service-update":_=t.serviceName,W()}}function W(){if(E){const e=E.slice();_&&e.push(_);let t=e.join(" - ");w&&(t=`(${w}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return T=T=e,O=T.legacyKeepAliveUrl,new Promise((t=>{A=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=T.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};`)}k=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.${v} {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.${f} .sky-omnibar-environment {\n height: 24px;\n}\n`),R()}(),y=document.createElement("div"),y.className=`sky-omnibar-placeholder ${p}`,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),b=document.createElement("div"),b.className="sky-omnibar-environment",C(N()),g=document.createElement("span"),g.className="sky-omnibar-environment-name",b.appendChild(g),B=document.createElement("span"),B.className="sky-omnibar-environment-description",b.appendChild(B),a.BBAuthDomUtility.addElToBodyTop(b),I=a.BBAuthDomUtility.addIframe(function(){const e=T.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),`sky-omnibar-iframe ${p}`,"Navigation"),S()&&m.BBOmnibarVertical.load(e,I),window.addEventListener("message",V)}))}static update(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)}static setTitle(e){E=e&&e.titleParts,W()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return T?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(I),a.BBAuthDomUtility.removeEl(b),a.BBAuthDomUtility.removeCss(k),window.removeEventListener("message",V),document.body.classList.remove(f),T=k=y=I=b=B=g=A=w=E=_=void 0}}},568:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(887),t),o(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;const i=n(406),o=n(658),s=n(753);function r(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()}function a(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,i,o){let 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(((n,i)=>{r(e,{name:"X-CSRF",value:t},s,(e=>{const t=e?JSON.parse(e):void 0;n(t)}),i)}))}t.BBCsrfXhr=class{static request(e,t,n,r,a,d,u){return!a||r||d?new Promise(((l,m)=>{new Promise(((e,t)=>{u?e({csrf_token:"token_needed"}):c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>c(e,t.csrf_token,r,a,d))).then(l).catch((e=>{n||e.code===i.BBAuthTokenErrorCode.Offline?m(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin(t):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 postWithCSRF(e){return new Promise(((t,n)=>{new Promise(((e,t)=>{c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>new Promise(((n,i)=>{r(e,{name:"X-CSRF",value:t.csrf_token},void 0,(e=>{n(e)}),i)})))).then(t).catch((e=>{e.code===i.BBAuthTokenErrorCode.Offline?n(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin():s.BBAuthNavigator.redirectToError(e.code)}))}))}static requestWithToken(e,t,n="GET",i){return new Promise(((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)if(200===r.status){let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e)}else 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))}}))}}},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 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)}}},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;const i=n(406),o=n(753),s="https://host.nxt.blackbaud.com";function r(e,t){if(e.origin===s){const n=e.data;return!!n&&n.source===t}return!1}class a{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||s)}static messageIsFromOmnibar(e){return r(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return r(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return r(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&&a.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=a},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;const i=n(406),o="https://signin.blackbaud.com/signin/",s=encodeURIComponent;function r(e){let t=`${o}?redirectUrl=${s(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=r();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${s(n)}=${s(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=r(!0),t=`${o}sign-out?redirectUrl=${s(e)}`;this.navigate(t)}static redirectToError(e){let t,n;e===i.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";let o=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${s(location.href)}`;n&&(o+=`&code=${s(n)}`),this.navigate(o)}}},333:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(63),t),o(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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}),t.BBUserSettings=void 0;const o=n(406),s=n(953),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{yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t}),n()}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"}},t={},function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}(254);var e,t})); | ||
!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()}(self,(()=>{return e={168:e=>{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 i,o,s=0,r=0,a="";o=n.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}},491:(e,t,n)=>{var i=n(168);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)}}},489:(e,t,n)=>{"use strict";var i=n(491);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},254:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(406),t),o(n(738),t),o(n(910),t),o(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;const i=n(661),o=n(753),s=n(871);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"},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;const n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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 i{static getRegisteredDomain(){for(const e of Object.keys(n)){const t=`.${e}`;if(this.CURRENT_DOMAIN===e||this.CURRENT_DOMAIN.substr(-t.length)===t)return e}}static getSTSDomain(){const e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"}}t.BBAuthDomain=i,i.CURRENT_DOMAIN=window.location.hostname},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;const i=n(953),o=n(22),s=n(658);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}}},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;const i=n(163),o=n(658),s=n(953),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class a{static getUrl(e,t){const n=r.exec(e);let i=e,o=t?t.zone:void 0;return o&&(o=o.replace("-","")),n&&(n[3]&&(o=n[3].substring(1)),i=`https://${n[1]}-${o}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(i)}static getToken(e){return a.getTokenInternal(e)}static getTTL(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/ttl")}static renewSession(){return s.BBCsrfXhr.postWithCSRF(o.BBAuthDomain.getSTSDomain()+"/session/renew")}static clearTokenCache(){a.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(a.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),s=a.tokenCache[o]=a.tokenCache[o]||{},r=(new Date).valueOf();return!t&&s.lastToken&&s.expirationTime&&s.expirationTime-r>6e4?Promise.resolve(s.lastToken):(s.pendingLookupPromise||(s.pendingLookupPromise=i.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then((e=>(s.expirationTime=(new Date).valueOf()+1e3*e.expires_in,s.lastToken=e.access_token,s.pendingLookupPromise=null,s.lastToken))).catch((e=>{throw s.pendingLookupPromise=null,e}))),s.pendingLookupPromise)}}t.BBAuth=a,a.mock=!1,a.tokenCache={}},406:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(340),t),o(n(320),t),o(n(965),t),o(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;const i=n(406),o=n(574),s=n(953),r=n(661),a=n(753),c="context-provider";function d(){a.BBAuthNavigator.redirectToError(i.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:a,leIdRequired:l,svcId:m}=e;return!t&&n||!a&&l?new Promise(((t,n)=>{m?i.BBAuth.getToken().then((a=>{let l="https://nav-pusa01.app.blackbaud.net/navaf/user/destinations?svcid="+encodeURIComponent(m);e.url&&(l+="&referringurl="+encodeURIComponent(e.url)),s.BBCsrfXhr.requestWithToken(l,a).then((s=>{const a=s&&s.items,l=a&&a.length;1===l?(e.url=a[0].url,t(e)):l>1?function(e,t,n,s){let a,d;function l(){r.BBAuthDomUtility.removeEl(d),r.BBAuthDomUtility.removeCss(a),d=a=void 0,window.removeEventListener("message",m)}function m(r){const a=r.data;var u,m;if(o.BBAuthInterop.messageIsFromOmnibar(r)&&a.hostId===c)switch(a.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(d,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(d,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,m=a.disableRedirect,i.BBAuth.getToken({disableRedirect:m}).then((e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token",token:e,tokenRequestId:u})}),(e=>{o.BBAuthInterop.postOmnibarMessage(d,{messageType:"token-fail",reason:e,tokenRequestId:u})}));break;case"welcome-cancel":l(),s({reason:"canceled"});break;case"welcome-environment-selected":l(),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=${c}&url=`+encodeURIComponent(e.url);d=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",m)}(e,s,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"},738:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(938),t),o(n(189),t)},910:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(177),t),o(n(217),t),o(n(774),t),o(n(461),t),o(n(277),t),o(n(775),t),o(n(353),t),o(n(242),t),o(n(901),t),o(n(926),t),o(n(539),t),o(n(964),t),o(n(520),t),o(n(185),t),o(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;const i=n(576);function o(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise((t=>{var n;const s=o(),r=null===(n=null==s?void 0:s.fn)||void 0===n?void 0:n.jquery;i.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",r).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)),window.BBAUTH.Omnibar.load(n,e)}))}))}}},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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}),t.BBOmnibarPushNotifications=void 0;const o=n(489),s=n(406),r=n(574),a=n(576),c=n(44);let d,u,l=!1;const m={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},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*(){l||(d=e,l=!0,u=window.BBNotificationsClient?Promise.resolve():a.BBOmnibarScriptLoader.registerScript(h.NOTIFICATIONS_CLIENT_URL),yield u,window.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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,svcId:e.svcId,url:r.BBAuthInterop.getCurrentUrl()})}))}(e),window.BBNotificationsClient.BBNotifications.addListener(e.notificationsCallback)),e.showVerticalNav&&window.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,window.BBNotificationsClient.BBNotifications.destroy(),u=void 0,l=!1)}))}static updateNotifications(e){window.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"},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;class i{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,o){return o&&function(e,t){const i=n(e),o=n(t);for(let e=0;e<i.length;e++)if(e<o.length){if(o[e]>i[e])return!0;if(o[e]<i[e])return!1}return!0}(t,o)?Promise.resolve():i.registerScript(e)}}t.BBOmnibarScriptLoader=i},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;const i=n(340),o=n(661),s=n(574),r="sky-omnibar-toast-container",a=`${r}-ready`,c=`${r}-empty`;let d,u,l,m,h,p;function f(e){const t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function v(){u&&s.BBAuthInterop.postOmnibarMessage(u,{href:p,messageType:"location-change"})}function b(e){if(!s.BBAuthInterop.messageIsFromToastContainer(e))return;const t=e.data;switch(t.messageType){case"toast-ready":s.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(u,{envId:h.envId,leId:h.leId,messageType:"nav-ready",svcId:h.svcId}),v(),u.classList.add(a),m();break;case"get-token":n=t.tokenRequestId,o=t.disableRedirect,i.BBAuth.getToken({disableRedirect:o}).then((e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:n})}),(e=>{s.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:n})}));break;case"navigate-url":h.navigateUrlCallback(t.url);break;case"navigate":h.navigateCallback(t.navItem);break;case"toast-container-change":t.height>0?(u.style.height=t.height+"px",u.style.top=f(".sky-omnibar-iframe")+f(".sky-omnibar-environment")+20+"px",u.classList.remove(c)):u.classList.add(c);break;case"push-notifications-change":h.pushNotificationsChangeCallback(t.notifications);break;case"push-notifications-open":h.openMenuCallback()}var n,o}class g{static init(e){return h=e,p=e.url,l||(l=new Promise((e=>{m=e,u||(d=o.BBAuthDomUtility.addCss(`\n.${r} {\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.${a} {\n display: block;\n}\n\n.${c} {\n visibility: hidden;\n}\n`),u=document.createElement("iframe"),u.src=g.CONTAINER_URL,u.className=`${r} ${c}`,u.title="Toast container",document.body.appendChild(u),window.addEventListener("message",b))}))),l}static showNewNotifications(e){s.BBAuthInterop.postOmnibarMessage(u,{messageType:"push-notifications-update",pushNotifications:e})}static updateUrl(e){p=e,v()}static destroy(){d&&o.BBAuthDomUtility.removeCss(d),u&&o.BBAuthDomUtility.removeEl(u),p=u=h=l=m=d=void 0,window.removeEventListener("message",b)}}t.BBOmnibarToastContainer=g,g.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast"},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 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()}}},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;const i=n(661),o=n(574);let s,r,a;function c(e){if(o.BBAuthInterop.messageIsFromOmnibar(e))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"},642: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}),t.BBOmnibarUserActivity=void 0;const o=n(658),s=n(953),r=n(753),a=n(459),c=n(313),d=n(882);let u,l,m,h,p,f,v,b,g,B,y,k,I,T,O="";function A(){b=Date.now()}function w(e){e.clientX===l&&e.clientY===m||(l=e.clientX,m=e.clientY,A())}function _(){const e=Date.now();(!g||e-g>S.MIN_RENEWAL_RETRY)&&(g=e,s.BBCsrfXhr.request(o.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((()=>{})))}function E(){v=!0,f()}function N(){v=!1,A(),h()}function C(){T?r.BBAuthNavigator.navigate(T):r.BBAuthNavigator.redirectToSignoutForInactivity()}class S{static startTracking(e,t,n,o,s){u&&o===y&&s===k||(S.stopTracking(),p=e,f=t,h=n,y=o,k=s,document.addEventListener("keypress",A),document.addEventListener("mousemove",w),function(){y||_(),B=setInterval((()=>i(this,void 0,void 0,(function*(){const e=yield c.BBOmnibarUserSessionExpiration.getSessionExpiration(O,I,y);u&&a.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:N,expirationDate:e,inactivityPromptDuration:S.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:v,lastActivity:b,maxSessionAge:S.MAX_SESSION_AGE,minRenewalAge:S.MIN_RENEWAL_AGE,redirectForInactivity:C,renewSession:_,showInactivityPrompt:E})}))),S.ACTIVITY_TIMER_INTERVAL)}(),d.BBOmnibarUserSessionWatcher.start(o,s,p,(e=>{I=e.legacyTtl,O=e.refreshId,T=e.legacySigninUrl})),u=!0)}static userRenewedSession(){N(),_()}static stopTracking(){d.BBOmnibarUserSessionWatcher.stop(),c.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",A),document.removeEventListener("mousemove",w),B&&(clearInterval(B),B=void 0),u=l=m=b=g=v=p=f=h=y=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},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;const i=n(658),o=n(953);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=>{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=>{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}}},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;const i=n(574),o=n(753),s=n(658);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.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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&&m&&i.BBAuthInterop.postOmnibarMessage(m,{messageType:"session-refresh"},f(a)),void 0!==p.sessionId&&n!==p.sessionId&&c(),p.refreshId=s,p.sessionId=n,d(p)}}}(e);break;case f(a):!function(e){const t=e.data;"ready"===t.messageType&&(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",b,!1),r=!0)}static stop(){window.removeEventListener("message",b,!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()},790: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}),t.BBOmnibarVertical=void 0;const o=n(662),s=n(661),r=n(574),a=n(753),c="sky-omnibar-vertical-expanded",d="sky-omnibar-vertical-loading",u="sky-omnibar-vertical-body",l="sky-omnibar-vertical-body-minimized",m="sky-omnibar-vertical-iframe-wrapper",h=new Set;let p,f,v,b,g,B,y,k;function I(){if(g.onResize){let e=0;const t=document.querySelector(`.${m}`);t&&"none"!==getComputedStyle(t).display&&(e=document.body.classList.contains(l)?90:300),g.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==p?void 0:p.omnibar)||void 0===e?void 0:e.vMin}function O(){I()}function A(){r.BBAuthInterop.postLocationChangeMessage(v,f)}function w(){document.body.classList.add(l),I()}function _(){document.body.classList.remove(l)}function E(e,t){if(t){const t=Date.now().toString();h.add(t),o.BBUserSettings.updateSettings(t,{omnibar:{vMin:e}})}e?w():_(),I()}function N(e){const t=e.data;if(!r.BBAuthInterop.messageIsFromOmnibarVertical(e))return;const n=g.nav;switch(t.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(v,{envId:g.envId,leId:g.leId,messageType:"nav-ready",minimized:T(),navVersion:g.navVersion,services:n&&n.services,svcId:g.svcId,theme:g.theme}),A(),B();break;case"display-ready":b.classList.remove(d);break;case"expand":b.classList.add(c);break;case"collapse":b.classList.remove(c);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":r.BBAuthInterop.handleNavigate(g.nav,t.navItem);break;case"get-token":r.BBAuthInterop.handleGetToken(v,t.tokenRequestId,t.disableRedirect);break;case"maximize":E(!1,!0);break;case"minimize":E(!0,!0)}}t.BBOmnibarVertical=class{static load(e,t){return i(this,void 0,void 0,(function*(){return g=e,new Promise((e=>i(this,void 0,void 0,(function*(){B=e,y=s.BBAuthDomUtility.addCss(`\n.${m} {\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.${m}.${d} {\n border-right: solid 1px #e2e3e4;\n}\n\n.${l} .${m}: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 .${m} {\n display: none;\n }\n}\n`);try{p=yield o.BBUserSettings.getSettings()}catch(e){}g.onResize&&(k=window.matchMedia("max-width: 767px"),k.addEventListener("change",O)),function(e){T()&&w();const t=g.verticalUrl||"https://host.nxt.blackbaud.com/omnibar/vertical";v=s.BBAuthDomUtility.createIframe(t,"sky-omnibar-vertical-iframe","Vertical Navigation"),b=document.createElement("div"),b.className=`${m} ${d}`,b.appendChild(v),e.insertAdjacentElement("afterend",b),document.body.classList.add(u)}(t),I(),window.addEventListener("message",N)}))))}))}static updateUrl(e){f=e,A()}static refreshUser(e){r.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}static refreshSettings(e){var t,n;return i(this,void 0,void 0,(function*(){h.has(e)?h.delete(e):(p=yield o.BBUserSettings.getSettings(),E(null===(t=null==p?void 0:p.omnibar)||void 0===t?void 0:t.vMin,!1),r.BBAuthInterop.postOmnibarMessage(v,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==p?void 0:p.omnibar)||void 0===n?void 0:n.vMin}}))}))}static destroy(){s.BBAuthDomUtility.removeEl(b),s.BBAuthDomUtility.removeCss(y),document.body.classList.remove(u),_(),window.removeEventListener("message",N),k&&(k.removeEventListener("change",O),k=void 0),h.clear(),p=f=v=b=g=B=y=void 0}}},177: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}),t.BBOmnibar=void 0;const o=n(406),s=n(574),r=n(753),a=n(661),c=n(642),d=n(382),u=n(113),l=n(44),m=n(790),h="sky-omnibar-iframe-expanded",p="sky-omnibar-loading",f="sky-omnibar-environment-visible",v="sky-omnibar-environment-description-present";let b,g,B,y,k,I,T,O,A,w,_,E;function N(){const e=T.theme;return e&&"modern"===e.name}function C(e){const t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(b.classList.remove(t),b.classList.add(n)):(b.classList.remove(n),b.classList.add(t))}function S(){if(N()){if("tcs"===T.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 P(){const e=s.BBAuthInterop.getCurrentUrl();s.BBAuthInterop.postLocationChangeMessage(I,e),l.BBOmnibarToastContainer.updateUrl(e),m.BBOmnibarVertical.updateUrl(e)}function R(){T.onResize&&T.onResize({position:"top",size:50+(document.body.classList.contains(f)?24:0)})}function x(){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-open"})}function M(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"push-notifications-update",pushNotifications:e}),l.BBOmnibarToastContainer.showNewNotifications(e),w=e&&e.notifications&&e.notifications.filter((e=>!e.isRead)).length,W()}function L(e){m.BBOmnibarVertical.refreshSettings(e.value)}function j(e){return i(this,void 0,void 0,(function*(){if(e)try{yield o.BBAuth.getToken({disableRedirect:!0})}catch(e){return}T&&(yield u.BBOmnibarPushNotifications.connect({customMessageCallback:L,envId:T.envId,handleNavigate:z,handleNavigateUrl:F,handlePushNotificationsChange:G,leId:T.leId,notificationsCallback:M,openPushNotificationsMenu:x,showVerticalNav:S(),svcId:T.svcId}))}))}function U(){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(I,{messageType:"refresh-user",token:e}),S()&&m.BBOmnibarVertical.refreshUser(e),e?j():u.BBOmnibarPushNotifications.disconnect()}))}function D(){d.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{c.BBOmnibarUserActivity.userRenewedSession()}})}function q(){d.BBOmnibarUserActivityPrompt.hide()}function $(){c.BBOmnibarUserActivity.startTracking(U,D,q,T.allowAnonymous,O)}function G(e){u.BBOmnibarPushNotifications.updateNotifications(e)}function z(e){s.BBAuthInterop.handleNavigate(T.nav,e)}function F(e){r.BBAuthNavigator.navigate(e)}function V(e){const t=e.data;if(!s.BBAuthInterop.messageIsFromOmnibar(e)||"omnibar"!==t.hostId)return;const n=T.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(I,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(...t){const n=e.apply(history,t);return P(),n},history.replaceState=function(...e){const n=t.apply(history,e);return P(),n}}(),s.BBAuthInterop.postOmnibarMessage(I,{compactNavOnly:T.compactNavOnly||S(),enableHelp:T.enableHelp,envId:T.envId,hideResourceLinks:T.hideResourceLinks,leId:T.leId,localNavItems:n&&n.localNavItems,localNotifications:!!T.notifications,localSearch:!!T.onSearch,messageType:"nav-ready",navVersion:T.navVersion,services:n&&n.services,svcId:T.svcId,theme:T.theme}),function(){const e=T.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(I,{messageType:"notifications-update",notifications:e})}})}(),j(!0),P(),A();break;case"display-ready":y.classList.remove(p),I.classList.remove(p);break;case"expand":I.classList.add(h);break;case"collapse":I.classList.remove(h);break;case"navigate-url":F(t.url);break;case"navigate":z(t.navItem);break;case"search":!function(e){i(this,void 0,void 0,(function*(){if(T.onSearch){const t=yield T.onSearch(e);s.BBAuthInterop.postOmnibarMessage(I,{messageType:"search-results",results:t})}}))}(t.searchArgs);break;case"get-token":s.BBAuthInterop.handleGetToken(I,t.tokenRequestId,t.disableRedirect,$);break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=T.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"push-notifications-change":G(t.notifications);break;case"session-renew":c.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){const i=document.body.classList;if(e=e||"",g.innerText=e,e)if(i.add(f),t)if(b.classList.add(v),n){const e=document.createElement("a");e.href=n,e.innerText=t,B.appendChild(e)}else B.innerText=t;else b.classList.remove(v);else i.remove(f);R()}(t.name,t.description,t.url);break;case"branding-update":!function(e){var t,n;const i=null===(n=null===(t=null==e?void 0:e.images)||void 0===t?void 0:t.favIcon)||void 0===n?void 0:n.url;i&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((e=>{e.href=i})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((e=>{e.remove()})))}(t.branding);break;case"legacy-keep-alive-url-change":O=t.url,$();break;case"selected-service-update":_=t.serviceName,W()}}function W(){if(E){const e=E.slice();_&&e.push(_);let t=e.join(" - ");w&&(t=`(${w}) ${t}`),document.title=t}}t.BBOmnibar=class{static load(e){return T=T=e,O=T.legacyKeepAliveUrl,new Promise((t=>{A=t,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="5px",n="#4d5259",i="none";const o=T.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};`)}k=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.${v} {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.${f} .sky-omnibar-environment {\n height: 24px;\n}\n`),R()}(),y=document.createElement("div"),y.className=`sky-omnibar-placeholder ${p}`,y.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(y),b=document.createElement("div"),b.className="sky-omnibar-environment",C(N()),g=document.createElement("span"),g.className="sky-omnibar-environment-name",b.appendChild(g),B=document.createElement("span"),B.className="sky-omnibar-environment-description",b.appendChild(B),a.BBAuthDomUtility.addElToBodyTop(b),I=a.BBAuthDomUtility.addIframe(function(){const e=T.url||"https://host.nxt.blackbaud.com/omnibar/";return e+(e.indexOf("?")<0?"?":"&")+"hostid=omnibar"}(),`sky-omnibar-iframe ${p}`,"Navigation"),S()&&m.BBOmnibarVertical.load(e,I),window.addEventListener("message",V)}))}static update(e){s.BBAuthInterop.postOmnibarMessage(I,{messageType:"update",updateArgs:e}),e.theme&&C("modern"===e.theme.name)}static setTitle(e){E=e&&e.titleParts,W()}static pushNotificationsEnabled(){return i(this,void 0,void 0,(function*(){return T?u.BBOmnibarPushNotifications.pushNotificationsEnabled():Promise.resolve(!1)}))}static destroy(){l.BBOmnibarToastContainer.destroy(),u.BBOmnibarPushNotifications.disconnect(),a.BBAuthDomUtility.removeEl(y),a.BBAuthDomUtility.removeEl(I),a.BBAuthDomUtility.removeEl(b),a.BBAuthDomUtility.removeCss(k),window.removeEventListener("message",V),document.body.classList.remove(f),T=k=y=I=b=B=g=A=w=E=_=void 0}}},568:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(887),t),o(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;const i=n(406),o=n(658),s=n(753);function r(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()}function a(e,t,n,i){return(i||void 0===i&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,i,o){let 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(((n,i)=>{r(e,{name:"X-CSRF",value:t},s,(e=>{const t=e?JSON.parse(e):void 0;n(t)}),i)}))}t.BBCsrfXhr=class{static request(e,t,n,r,a,d,u){return!a||r||d?new Promise(((l,m)=>{new Promise(((e,t)=>{u?e({csrf_token:"token_needed"}):c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>c(e,t.csrf_token,r,a,d))).then(l).catch((e=>{n||e.code===i.BBAuthTokenErrorCode.Offline?m(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin(t):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 postWithCSRF(e){return new Promise(((t,n)=>{new Promise(((e,t)=>{c(o.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((t=>new Promise(((n,i)=>{r(e,{name:"X-CSRF",value:t.csrf_token},void 0,(e=>{n(e)}),i)})))).then(t).catch((e=>{e.code===i.BBAuthTokenErrorCode.Offline?n(e):e.code===i.BBAuthTokenErrorCode.NotLoggedIn?s.BBAuthNavigator.redirectToSignin():s.BBAuthNavigator.redirectToError(e.code)}))}))}static requestWithToken(e,t,n="GET",i){return new Promise(((o,s)=>{const r=new XMLHttpRequest;switch(r.onreadystatechange=()=>{if(4===r.readyState)if(200===r.status){let e;r.responseText&&(e=JSON.parse(r.responseText)),o(e)}else 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))}}))}}},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 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)}}},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;const i=n(406),o=n(753),s="https://host.nxt.blackbaud.com";function r(e,t){if(e.origin===s){const n=e.data;return!!n&&n.source===t}return!1}class a{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||s)}static messageIsFromOmnibar(e){return r(e,"skyux-spa-omnibar")}static messageIsFromOmnibarVertical(e){return r(e,"skyux-spa-omnibar-vertical")}static messageIsFromToastContainer(e){return r(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&&a.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=a},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;const i=n(406),o="https://signin.blackbaud.com/signin/",s=encodeURIComponent;function r(e){let t=`${o}?redirectUrl=${s(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=r();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${s(n)}=${s(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=r(!0),t=`${o}sign-out?redirectUrl=${s(e)}`;this.navigate(t)}static redirectToError(e){let t,n;e===i.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";let o=`https://host.nxt.blackbaud.com/errors/${t}?source=auth-client&url=${s(location.href)}`;n&&(o+=`&code=${s(n)}`),this.navigate(o)}}},333:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(63),t),o(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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}),t.BBUserSettings=void 0;const o=n(406),s=n(953),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{yield s.BBCsrfXhr.requestWithToken(r,i,"PATCH",{correlationId:e,settings:t}),n()}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"}},t={},function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}(254);var e,t})); |
@@ -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()}(self,(()=>{return e={168:e=>{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}},491:(e,t,n)=>{var r=n(168);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)}}},489:(e,t,n)=>{"use strict";var r=n(491);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},254:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(406),t),i(n(738),t),i(n(910),t),i(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;var r=n(661),i=n(753),o=n(871),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},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;var n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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"},r=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e],i=".".concat(r);if(this.CURRENT_DOMAIN===r||this.CURRENT_DOMAIN.substr(-i.length)===i)return r}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=r},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;var r=n(953),i=n(22),o=n(658),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},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;var r=n(163),i=n(658),o=n(953),a=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/,s=function(){function e(){}return e.getUrl=function(e,t){var n=a.exec(e),r=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),r="https://".concat(n[1],"-").concat(i,".app.blackbaud.net/").concat(n[2],"/").concat(n[4])),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.getTTL=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/ttl")},e.renewSession=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/renew")},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=s},406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(340),t),i(n(320),t),i(n(965),t),i(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;var r=n(406),i=n(574),o=n(953),a=n(661),s=n(753),c="context-provider";function u(e,t,n,o){var s,u,l;function f(){a.BBAuthDomUtility.removeEl(u),a.BBAuthDomUtility.removeCss(s),u=s=void 0,window.removeEventListener("message",h)}function h(a){var s,l,d=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&d.hostId===c)switch(d.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(u,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,l=d.disableRedirect,r.BBAuth.getToken({disableRedirect:l}).then((function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":f(),o({reason:"canceled"});break;case"welcome-environment-selected":f(),setTimeout((function(){e.envId=d.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"),l=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=".concat(c)+"&url="+encodeURIComponent(e.url),u=a.BBAuthDomUtility.addIframe(l,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",h)}function l(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=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?u(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):l()}))})):l()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=d},738:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(938),t),i(n(189),t)},910:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(177),t),i(n(217),t),i(n(774),t),i(n(461),t),i(n(277),t),i(n(775),t),i(n(353),t),i(n(242),t),i(n(901),t),i(n(926),t),i(n(539),t),i(n(964),t),i(n(520),t),i(n(185),t),i(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;var r=n(576);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n,o=i(),a=null===(n=null==o?void 0:o.fn)||void 0===n?void 0:n.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",a).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)),window.BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarPushNotifications=void 0;var o,a,s=n(489),c=n(406),u=n(574),l=n(576),d=n(44),f=!1,h={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function m(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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,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(),window.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,m(t)]:[3,4];case 3:n.sent(),window.BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&window.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(),window.BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){window.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=h[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},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;var r=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){return t()},r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,r,i){return i&&function(e,t){for(var r=n(e),i=n(t),o=0;o<r.length;o++)if(o<i.length){if(i[o]>r[o])return!0;if(i[o]<r[o])return!1}return!0}(r,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=r},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;var r,i,o,a,s,c,u=n(340),l=n(661),d=n(574),f="sky-omnibar-toast-container",h="".concat(f,"-ready"),m="".concat(f,"-empty");function p(){return i||(r=l.BBAuthDomUtility.addCss("\n.".concat(f," {\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.").concat(h," {\n display: block;\n}\n\n.").concat(m," {\n visibility: hidden;\n}\n")),(i=document.createElement("iframe")).src=y.CONTAINER_URL,i.className="".concat(f," ").concat(m),i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",g)),i}function v(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function b(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function g(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}),b(),i.classList.add(h),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=v(".sky-omnibar-iframe")+v(".sky-omnibar-environment")+20+"px",i.classList.remove(m)):i.classList.add(m);break;case"push-notifications-change":s.pushNotificationsChangeCallback(r.notifications);break;case"push-notifications-open":s.openMenuCallback()}}}var y=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,p()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,b()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",g)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=y},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 0;var n=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 h=r-i,m=r-s+c;o?f<h&&n():a>m?l():!t&&f>h&&d()}},e}();t.BBOmnibarUserActivityProcessor=n},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;var r,i,o,a=n(661),s=n(574);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},642: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivity=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b,g,y=n(658),B=n(953),k=n(753),I=n(459),w=n(313),T=n(882),O="";function _(){f=Date.now()}function A(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,_())}function E(){var e=Date.now();(!h||e-h>x.MIN_RENEWAL_RETRY)&&(h=e,B.BBCsrfXhr.request(y.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function N(){d=!0,l()}function C(){d=!1,_(),c()}function S(){g?k.BBAuthNavigator.navigate(g):k.BBAuthNavigator.redirectToSignoutForInactivity()}function P(){var e=this;p||E(),m=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(O,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:x.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:x.MAX_SESSION_AGE,minRenewalAge:x.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:N}),[2]}}))}))}),x.ACTIVITY_TIMER_INTERVAL)}var x=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",_),document.addEventListener("mousemove",A),P(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,O=e.refreshId,g=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),E()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",_),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=a=s=f=h=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=x},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;var r,i=n(658),o=n(953),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){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){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},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;var r,i,o,a,s,c,u,l,d=n(574),f=n(753),h=n(658),m={};function p(e){if(e){var t=e.split("://"),n=t[0],r=t[1].split("/")[0];return"".concat(n,"://").concat(r)}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function g(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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!==m.refreshId&&c!==m.refreshId&&u&&d.BBAuthInterop.postOmnibarMessage(u,{messageType:"session-refresh"},p(i)),void 0!==m.sessionId&&r!==m.sessionId&&o(),m.refreshId=c,m.sessionId=r,a(m)}}}(e);break;case p(i):!function(e){var t=e.data;"ready"===t.messageType&&(m.legacyTtl=t.ttl,l=t.signinUrl,a(m))}(e)}}var y=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),m={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=h.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=y},790: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarVertical=void 0;var o,a,s,c,u,l,d,f,h=n(662),m=n(661),p=n(574),v=n(753),b="sky-omnibar-vertical-expanded",g="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",B="sky-omnibar-vertical-body-minimized",k="sky-omnibar-vertical-iframe-wrapper",I=new Set;function w(){if(u.onResize){var e=0;"none"!==getComputedStyle(document.querySelector(".".concat(k))).display&&(e=document.body.classList.contains(B)?90:300),u.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==o?void 0:o.omnibar)||void 0===e?void 0:e.vMin}function O(){w()}function _(){p.BBAuthInterop.postLocationChangeMessage(s,a)}function A(){document.body.classList.add(B),w()}function E(){document.body.classList.remove(B)}function N(e,t){if(t){var n=Date.now().toString();I.add(n),h.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?A():E(),w()}function C(e){var t=e.data;if(p.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":p.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),p.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:T(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),_(),l();break;case"display-ready":c.classList.remove(g);break;case"expand":c.classList.add(b);break;case"collapse":c.classList.remove(b);break;case"navigate-url":v.BBAuthNavigator.navigate(t.url);break;case"navigate":p.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":p.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":N(!1,!0);break;case"minimize":N(!0,!0)}}}var S=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.".concat(k," {\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: ").concat(300,"px;\n z-index: 999;\n}\n\n.").concat(k,".").concat(g," {\n border-right: solid 1px #e2e3e4;\n}\n\n.").concat(B," .").concat(k,":not(.").concat(b,") {\n width: ").concat(90,"px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.").concat(g," .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.").concat(b," {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .").concat(y," {\n margin-left: ").concat(300,"px;\n }\n\n .").concat(B," {\n margin-left: ").concat(90,"px;\n }\n}\n\n@media (max-width: 767px) {\n .").concat(k," {\n display: none;\n }\n}\n")),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return u.onResize&&(f=window.matchMedia("max-width: 767px")).addEventListener("change",O),function(e){T()&&A();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="".concat(k," ").concat(g),c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),w(),window.addEventListener("message",C),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,_()},e.refreshUser=function(e){p.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return I.has(e)?(I.delete(e),[3,3]):[3,1];case 1:return[4,h.BBUserSettings.getSettings()];case 2:o=r.sent(),N(null===(t=null==o?void 0:o.omnibar)||void 0===t?void 0:t.vMin,!1),p.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==o?void 0:o.omnibar)||void 0===n?void 0:n.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),E(),window.removeEventListener("message",C),f&&(f.removeEventListener("change",O),f=void 0),I.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=S},177: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibar=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b=n(406),g=n(574),y=n(753),B=n(661),k=n(642),I=n(382),w=n(113),T=n(44),O=n(790),_="sky-omnibar-iframe-expanded",A="sky-omnibar-loading",E="sky-omnibar-environment-visible",N="sky-omnibar-environment-description-present",C="omnibar";function S(){var e=d.theme;return e&&"modern"===e.name}function P(e){var t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(o.classList.remove(t),o.classList.add(n)):(o.classList.remove(n),o.classList.add(t))}function x(){if(S()){if("tcs"===d.svcId)return!0;var e=g.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function R(){var e=g.BBAuthInterop.getCurrentUrl();g.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),O.BBOmnibarVertical.updateUrl(e)}function M(){d.onResize&&d.onResize({position:"top",size:50+(document.body.classList.contains(E)?24:0)})}function L(){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function j(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),m=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,H()}function U(e){O.BBOmnibarVertical.refreshSettings(e.value)}function D(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 d?[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:U,envId:d.envId,handleNavigate:W,handleNavigateUrl:X,handlePushNotificationsChange:V,leId:d.leId,notificationsCallback:j,openPushNotificationsMenu:L,showVerticalNav:x(),svcId:d.svcId})]:[3,6];case 5:t.sent(),t.label=6;case 6:return[2]}}))}))}function q(){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 g.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),x()&&O.BBOmnibarVertical.refreshUser(e),e?D():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function G(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function z(){I.BBOmnibarUserActivityPrompt.hide()}function F(){k.BBOmnibarUserActivity.startTracking(q,G,z,d.allowAnonymous,f)}function V(e){w.BBOmnibarPushNotifications.updateNotifications(e)}function W(e){g.BBAuthInterop.handleNavigate(d.nav,e)}function X(e){y.BBAuthNavigator.navigate(e)}function Y(e){var t=e.data;if(g.BBAuthInterop.messageIsFromOmnibar(e)&&t.hostId===C){var n,u,m,v,b,y,B,I,w=d.nav;switch(t.messageType){case"ready":g.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),B=history.pushState,I=history.replaceState,history.pushState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=B.apply(history,e);return R(),n},history.replaceState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I.apply(history,e);return R(),n},g.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||x(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:w&&w.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:w&&w.services,svcId:d.svcId,theme:d.theme}),(y=d.notifications)&&y.onReady({updateNotifications:function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),D(!0),R(),h();break;case"display-ready":c.classList.remove(A),l.classList.remove(A);break;case"expand":l.classList.add(_);break;case"collapse":l.classList.remove(_);break;case"navigate-url":X(t.url);break;case"navigate":W(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(),g.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":g.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,F);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":V(t.notifications);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r=document.body.classList;if(e=e||"",a.innerText=e,e)if(r.add(E),t)if(o.classList.add(N),n){var i=document.createElement("a");i.href=n,i.innerText=t,s.appendChild(i)}else s.innerText=t;else o.classList.remove(N);else r.remove(E);M()}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(v=null===(m=null===(u=null==n?void 0:n.images)||void 0===u?void 0:u.favIcon)||void 0===m?void 0:m.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=v})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,F();break;case"selected-service-update":p=t.serviceName,H()}}}function H(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");m&&(t="(".concat(m,") ").concat(t)),document.title=t}}var J=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){var n;h=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){S()&&(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: ".concat(o.color,";"))}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: ".concat(50,"px;\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: ").concat(50,"px;\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: ").concat(n,";\n border-bottom: ").concat(r,";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ").concat(t,";\n ").concat(e,"\n}\n\n.sky-omnibar-placeholder.").concat(A," {\n display: block;\n}\n\n.sky-omnibar-iframe.").concat(A," {\n visibility: hidden;\n}\n\n.").concat(_,' {\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: ').concat(24,"px;\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.").concat(N," {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.").concat(E," .sky-omnibar-environment {\n height: ").concat(24,"px;\n}\n")),M()}(),(c=document.createElement("div")).className="sky-omnibar-placeholder ".concat(A),c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",P(S()),(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),l=B.BBAuthDomUtility.addIframe((n=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(n.indexOf("?")<0?"?":"&")+"hostid=".concat(C),"sky-omnibar-iframe ".concat(A),"Navigation"),x()&&O.BBOmnibarVertical.load(e,l),window.addEventListener("message",Y)}))},e.update=function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&P("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,H()},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",Y),document.body.classList.remove(E),d=u=c=l=o=s=a=h=m=v=p=void 0},e}();t.BBOmnibar=J},568:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(887),t),i(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;var r=n(406),i=n(658),o=n(753);function a(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()}function s(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,r,i){var o;return o=s(o,"environment_id",n),o=s(o,"legal_entity_id",i),o=s(o,"permission_scope",r,!(!n&&!i||!r)),new Promise((function(n,r){a(e,{name:"X-CSRF",value:t},o,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),r)}))}var u=function(){function e(){}return e.request=function(e,t,n,a,s,u,l){return!s||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return c(e,t.csrf_token,a,s,u)})).then(d).catch((function(e){n||e.code===r.BBAuthTokenErrorCode.Offline?f(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin(t):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.postWithCSRF=function(e){return new Promise((function(t,n){new Promise((function(e,t){c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return new Promise((function(n,r){a(e,{name:"X-CSRF",value:t.csrf_token},void 0,(function(e){n(e)}),r)}))})).then(t).catch((function(e){e.code===r.BBAuthTokenErrorCode.Offline?n(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin():o.BBAuthNavigator.redirectToError(e.code)}))}))},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)if(200===a.status){var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e)}else 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=u},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 0;var n=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=n},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;var r=n(406),i=n(753),o="https://host.nxt.blackbaud.com";function a(e,t){if(e.origin===o){var n=e.data;return!!n&&n.source===t}return!1}var s=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)},e.messageIsFromOmnibar=function(e){return a(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return a(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return a(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=s},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;var r=n(406),i="https://signin.blackbaud.com/signin/",o=encodeURIComponent;function a(e){var t="".concat(i,"?redirectUrl=").concat(o(location.href));return e&&(t+="&inactivity=1"),t}var s=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=a();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(o(n),"=").concat(o(e[n])));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=a(!0),t="".concat(i,"sign-out?redirectUrl=").concat(o(e));this.navigate(t)},e.redirectToError=function(e){var t,n;e===r.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";var i="".concat("https://host.nxt.blackbaud.com/errors/").concat(t,"?source=auth-client&url=").concat(o(location.href));n&&(i+="&code=".concat(o(n))),this.navigate(i)},e}();t.BBAuthNavigator=s},333:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(63),t),i(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBUserSettings=void 0;var o,a=n(406),s=n(953),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;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 i.sent(),u(),[3,6];case 5:return r=i.sent(),l(r),[3,6];case 6:return[3,8];case 7:i.sent(),d=void 0;try{d=this.getLocalSettings()}catch(e){d={}}try{d.omnibar=d.omnibar||{},Object.assign(d.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(d))}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}},t={},function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(254);var e,t})); | ||
!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()}(self,(()=>{return e={168:e=>{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}},491:(e,t,n)=>{var r=n(168);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)}}},489:(e,t,n)=>{"use strict";var r=n(491);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},254:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(406),t),i(n(738),t),i(n(910),t),i(n(333),t)},22:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthCrossDomainIframe=void 0;var r=n(661),i=n(753),o=n(871),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},658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomain=void 0;var n={"bbk12.com":"https://sts-sso.bbk12.com","blackbaud.school":"https://account.blackbaud.school","blackbaud.school.mirror.d04.io":"https://account.blackbaud.school.mirror.d04.io","blackbaud.school.stage.d04.io":"https://account.blackbaud.school.stage.d04.io","blackbaudfaith.com":"https://sts.blackbaudfaith.com","blackbaudhosting.com":"https://sts.blackbaudhosting.com","blackbaudportal.com":"https://sts.blackbaudportal.com","donorcentral.com":"https://sts-dc.donorcentral.com","etapestry.com":"https://sts.etapestry.com","justgiving.com":"https://id.justgiving.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"},r=function(){function e(){}return e.getRegisteredDomain=function(){for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e],i=".".concat(r);if(this.CURRENT_DOMAIN===r||this.CURRENT_DOMAIN.substr(-i.length)===i)return r}},e.getSTSDomain=function(){var e=this.getRegisteredDomain();return n[e]||"https://sts.sky.blackbaud.com"},e.CURRENT_DOMAIN=window.location.hostname,e}();t.BBAuthDomain=r},320:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},871:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenErrorCode=void 0,(n=t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))[n.Unspecified=0]="Unspecified",n[n.NotLoggedIn=1]="NotLoggedIn",n[n.InvalidEnvironment=2]="InvalidEnvironment",n[n.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",n[n.Offline=4]="Offline"},965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthTokenIntegration=void 0;var r=n(953),i=n(22),o=n(658),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},340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuth=void 0;var r=n(163),i=n(658),o=n(953),a=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/,s=function(){function e(){}return e.getUrl=function(e,t){var n=a.exec(e),r=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),r="https://".concat(n[1],"-").concat(i,".app.blackbaud.net/").concat(n[2],"/").concat(n[4])),Promise.resolve(r)},e.getToken=function(t){return e.getTokenInternal(t)},e.getTTL=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/ttl")},e.renewSession=function(){return o.BBCsrfXhr.postWithCSRF(i.BBAuthDomain.getSTSDomain()+"/session/renew")},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=s},406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(340),t),i(n(320),t),i(n(965),t),i(n(871),t)},938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBContextProvider=void 0;var r=n(406),i=n(574),o=n(953),a=n(661),s=n(753),c="context-provider";function u(e,t,n,o){var s,u,l;function f(){a.BBAuthDomUtility.removeEl(u),a.BBAuthDomUtility.removeCss(s),u=s=void 0,window.removeEventListener("message",h)}function h(a){var s,l,d=a.data;if(i.BBAuthInterop.messageIsFromOmnibar(a)&&d.hostId===c)switch(d.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"}),i.BBAuthInterop.postOmnibarMessage(u,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,l=d.disableRedirect,r.BBAuth.getToken({disableRedirect:l}).then((function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:e,tokenRequestId:s})}),(function(e){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:e,tokenRequestId:s})}));break;case"welcome-cancel":f(),o({reason:"canceled"});break;case"welcome-environment-selected":f(),setTimeout((function(){e.envId=d.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"),l=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&hostid=".concat(c)+"&url="+encodeURIComponent(e.url),u=a.BBAuthDomUtility.addIframe(l,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",h)}function l(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=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?u(e,i,t,n):e.disableRedirect?n(r.BBAuthTokenErrorCode.InvalidEnvironment):l()}))})):l()})):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();t.BBContextProvider=d},738:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(938),t),i(n(189),t)},910:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(177),t),i(n(217),t),i(n(774),t),i(n(461),t),i(n(277),t),i(n(775),t),i(n(353),t),i(n(242),t),i(n(901),t),i(n(926),t),i(n(539),t),i(n(964),t),i(n(520),t),i(n(185),t),i(n(568),t)},217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarLegacy=void 0;var r=n(576);function i(){return window.jQuery}var o=function(){function e(){}return e.load=function(e){return new Promise((function(t){var n,o=i(),a=null===(n=null==o?void 0:o.fn)||void 0===n?void 0:n.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",a).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)),window.BBAUTH.Omnibar.load(n,e)}))}))},e}();t.BBOmnibarLegacy=o},775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},113: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarPushNotifications=void 0;var o,a,s=n(489),c=n(406),u=n(574),l=n(576),d=n(44),f=!1,h={admin:{requiresNotif:!1},chrch:{requiresNotif:!1},donorcentrics:{requiresNotif:!1},faith:{requiresNotif:!0},fenxt:{requiresNotif:!0},gsrch:{requiresNotif:!0},lst:{requiresNotif:!1},marketplace:{requiresNotif:!1},merchservices:{requiresNotif:!1},renxt:{requiresNotif:!1},skydev:{requiresNotif:!1},skydevhome:{requiresNotif:!1},skyux:{requiresNotif:!1},tcs:{requiresNotif:!0}};function m(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,pushNotificationsChangeCallback:e.handlePushNotificationsChange,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(),window.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,m(t)]:[3,4];case 3:n.sent(),window.BBNotificationsClient.BBNotifications.addListener(t.notificationsCallback),n.label=4;case 4:t.showVerticalNav&&window.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(),window.BBNotificationsClient.BBNotifications.destroy(),a=void 0,f=!1,e.label=2;case 2:return[2]}}))}))},e.updateNotifications=function(e){window.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=h[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},576:(e,t)=>{"use strict";function n(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}),t.BBOmnibarScriptLoader=void 0;var r=function(){function e(){}return e.registerScript=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){return t()},r.onerror=n,r.src=e,document.body.appendChild(r)}))},e.smartRegisterScript=function(t,r,i){return i&&function(e,t){for(var r=n(e),i=n(t),o=0;o<r.length;o++)if(o<i.length){if(i[o]>r[o])return!0;if(i[o]<r[o])return!1}return!0}(r,i)?Promise.resolve():e.registerScript(t)},e}();t.BBOmnibarScriptLoader=r},353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarToastContainer=void 0;var r,i,o,a,s,c,u=n(340),l=n(661),d=n(574),f="sky-omnibar-toast-container",h="".concat(f,"-ready"),m="".concat(f,"-empty");function p(){return i||(r=l.BBAuthDomUtility.addCss("\n.".concat(f," {\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.").concat(h," {\n display: block;\n}\n\n.").concat(m," {\n visibility: hidden;\n}\n")),(i=document.createElement("iframe")).src=y.CONTAINER_URL,i.className="".concat(f," ").concat(m),i.title="Toast container",document.body.appendChild(i),window.addEventListener("message",g)),i}function v(e){var t=document.querySelector(e);return t?t.getBoundingClientRect().height:0}function b(){i&&d.BBAuthInterop.postOmnibarMessage(i,{href:c,messageType:"location-change"})}function g(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}),b(),i.classList.add(h),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=v(".sky-omnibar-iframe")+v(".sky-omnibar-environment")+20+"px",i.classList.remove(m)):i.classList.add(m);break;case"push-notifications-change":s.pushNotificationsChangeCallback(r.notifications);break;case"push-notifications-open":s.openMenuCallback()}}}var y=function(){function e(){}return e.init=function(e){return s=e,c=e.url,o||(o=new Promise((function(e){a=e,p()}))),o},e.showNewNotifications=function(e){d.BBAuthInterop.postOmnibarMessage(i,{messageType:"push-notifications-update",pushNotifications:e})},e.updateUrl=function(e){c=e,b()},e.destroy=function(){r&&l.BBAuthDomUtility.removeCss(r),i&&l.BBAuthDomUtility.removeEl(i),c=i=s=o=a=r=void 0,window.removeEventListener("message",g)},e.CONTAINER_URL="https://host.nxt.blackbaud.com/omnibar/toast",e}();t.BBOmnibarToastContainer=y},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityProcessor=void 0;var n=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 h=r-i,m=r-s+c;o?f<h&&n():a>m?l():!t&&f>h&&d()}},e}();t.BBOmnibarUserActivityProcessor=n},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivityPrompt=void 0;var r,i,o,a=n(661),s=n(574);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},642: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserActivity=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b,g,y=n(658),B=n(953),k=n(753),I=n(459),w=n(313),T=n(882),O="";function _(){f=Date.now()}function A(e){e.clientX===a&&e.clientY===s||(a=e.clientX,s=e.clientY,_())}function E(){var e=Date.now();(!h||e-h>x.MIN_RENEWAL_RETRY)&&(h=e,B.BBCsrfXhr.request(y.BBAuthDomain.getSTSDomain()+"/session/renew",{inactivity:1}).catch((function(){})))}function N(){d=!0,l()}function C(){d=!1,_(),c()}function S(){g?k.BBAuthNavigator.navigate(g):k.BBAuthNavigator.redirectToSignoutForInactivity()}function P(){var e=this;p||E(),m=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(O,b,p)];case 1:return e=t.sent(),o&&I.BBOmnibarUserActivityProcessor.process({allowAnonymous:p,closeInactivityPrompt:C,expirationDate:e,inactivityPromptDuration:x.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:d,lastActivity:f,maxSessionAge:x.MAX_SESSION_AGE,minRenewalAge:x.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:N}),[2]}}))}))}),x.ACTIVITY_TIMER_INTERVAL)}var x=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",_),document.addEventListener("mousemove",A),P(),T.BBOmnibarUserSessionWatcher.start(i,a,u,(function(e){b=e.legacyTtl,O=e.refreshId,g=e.legacySigninUrl})),o=!0)},e.userRenewedSession=function(){C(),E()},e.stopTracking=function(){T.BBOmnibarUserSessionWatcher.stop(),w.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",_),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=a=s=f=h=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=x},313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionExpiration=void 0;var r,i=n(658),o=n(953),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){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){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},882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarUserSessionWatcher=void 0;var r,i,o,a,s,c,u,l,d=n(574),f=n(753),h=n(658),m={};function p(e){if(e){var t=e.split("://"),n=t[0],r=t[1].split("/")[0];return"".concat(n,"://").concat(r)}}function v(e,t){var n=document.createElement("iframe");return n.className=e,n.frameBorder="0",n.src=t,n.style.display="block",n.width="0",n.height="0",n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(){var e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function g(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:!function(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!==m.refreshId&&c!==m.refreshId&&u&&d.BBAuthInterop.postOmnibarMessage(u,{messageType:"session-refresh"},p(i)),void 0!==m.sessionId&&r!==m.sessionId&&o(),m.refreshId=c,m.sessionId=r,a(m)}}}(e);break;case p(i):!function(e){var t=e.data;"ready"===t.messageType&&(m.legacyTtl=t.ttl,l=t.signinUrl,a(m))}(e)}}var y=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),m={},r=s=o=i=l=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN=h.BBAuthDomain.getSTSDomain(),e}();t.BBOmnibarUserSessionWatcher=y},790: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibarVertical=void 0;var o,a,s,c,u,l,d,f,h=n(662),m=n(661),p=n(574),v=n(753),b="sky-omnibar-vertical-expanded",g="sky-omnibar-vertical-loading",y="sky-omnibar-vertical-body",B="sky-omnibar-vertical-body-minimized",k="sky-omnibar-vertical-iframe-wrapper",I=new Set;function w(){if(u.onResize){var e=0,t=document.querySelector(".".concat(k));t&&"none"!==getComputedStyle(t).display&&(e=document.body.classList.contains(B)?90:300),u.onResize({position:"left",size:e})}}function T(){var e;return null===(e=null==o?void 0:o.omnibar)||void 0===e?void 0:e.vMin}function O(){w()}function _(){p.BBAuthInterop.postLocationChangeMessage(s,a)}function A(){document.body.classList.add(B),w()}function E(){document.body.classList.remove(B)}function N(e,t){if(t){var n=Date.now().toString();I.add(n),h.BBUserSettings.updateSettings(n,{omnibar:{vMin:e}})}e?A():E(),w()}function C(e){var t=e.data;if(p.BBAuthInterop.messageIsFromOmnibarVertical(e)){var n=u.nav;switch(t.messageType){case"ready":p.BBAuthInterop.postOmnibarMessage(s,{messageType:"host-ready"}),p.BBAuthInterop.postOmnibarMessage(s,{envId:u.envId,leId:u.leId,messageType:"nav-ready",minimized:T(),navVersion:u.navVersion,services:n&&n.services,svcId:u.svcId,theme:u.theme}),_(),l();break;case"display-ready":c.classList.remove(g);break;case"expand":c.classList.add(b);break;case"collapse":c.classList.remove(b);break;case"navigate-url":v.BBAuthNavigator.navigate(t.url);break;case"navigate":p.BBAuthInterop.handleNavigate(u.nav,t.navItem);break;case"get-token":p.BBAuthInterop.handleGetToken(s,t.tokenRequestId,t.disableRedirect);break;case"maximize":N(!1,!0);break;case"minimize":N(!0,!0)}}}var S=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.".concat(k," {\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: ").concat(300,"px;\n z-index: 999;\n}\n\n.").concat(k,".").concat(g," {\n border-right: solid 1px #e2e3e4;\n}\n\n.").concat(B," .").concat(k,":not(.").concat(b,") {\n width: ").concat(90,"px;\n}\n\n.sky-omnibar-vertical-iframe {\n border: none;\n height: 100%;\n width: 100%;\n}\n\n.").concat(g," .sky-omnibar-vertical-iframe {\n visibility: hidden;\n}\n\n.").concat(b," {\n width: 100%;\n}\n\n@media (min-width: 768px) {\n .").concat(y," {\n margin-left: ").concat(300,"px;\n }\n\n .").concat(B," {\n margin-left: ").concat(90,"px;\n }\n}\n\n@media (max-width: 767px) {\n .").concat(k," {\n display: none;\n }\n}\n")),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,h.BBUserSettings.getSettings()];case 2:return o=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return u.onResize&&(f=window.matchMedia("max-width: 767px")).addEventListener("change",O),function(e){T()&&A();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="".concat(k," ").concat(g),c.appendChild(s),e.insertAdjacentElement("afterend",c),document.body.classList.add(y)}(t),w(),window.addEventListener("message",C),[2]}}))}))}))]}))}))},e.updateUrl=function(e){a=e,_()},e.refreshUser=function(e){p.BBAuthInterop.postOmnibarMessage(s,{messageType:"refresh-user",token:e})},e.refreshSettings=function(e){var t,n;return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return I.has(e)?(I.delete(e),[3,3]):[3,1];case 1:return[4,h.BBUserSettings.getSettings()];case 2:o=r.sent(),N(null===(t=null==o?void 0:o.omnibar)||void 0===t?void 0:t.vMin,!1),p.BBAuthInterop.postOmnibarMessage(s,{messageType:"update-vertical",updateArgs:{minimized:null===(n=null==o?void 0:o.omnibar)||void 0===n?void 0:n.vMin}}),r.label=3;case 3:return[2]}}))}))},e.destroy=function(){m.BBAuthDomUtility.removeEl(c),m.BBAuthDomUtility.removeCss(d),document.body.classList.remove(y),E(),window.removeEventListener("message",C),f&&(f.removeEventListener("change",O),f=void 0),I.clear(),o=a=s=c=u=l=d=void 0},e}();t.BBOmnibarVertical=S},177: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBOmnibar=void 0;var o,a,s,c,u,l,d,f,h,m,p,v,b=n(406),g=n(574),y=n(753),B=n(661),k=n(642),I=n(382),w=n(113),T=n(44),O=n(790),_="sky-omnibar-iframe-expanded",A="sky-omnibar-loading",E="sky-omnibar-environment-visible",N="sky-omnibar-environment-description-present",C="omnibar";function S(){var e=d.theme;return e&&"modern"===e.name}function P(e){var t="sky-omnibar-environment-theme-default",n="sky-omnibar-environment-theme-modern";e?(o.classList.remove(t),o.classList.add(n)):(o.classList.remove(n),o.classList.add(t))}function x(){if(S()){if("tcs"===d.svcId)return!0;var e=g.BBAuthInterop.getCurrentUrl().split("?")[1];if(e)return e.indexOf("#")>=0&&(e=e.split("#")[0]),e.split("&").indexOf("leftnav=1")>=0}return!1}function R(){var e=g.BBAuthInterop.getCurrentUrl();g.BBAuthInterop.postLocationChangeMessage(l,e),T.BBOmnibarToastContainer.updateUrl(e),O.BBOmnibarVertical.updateUrl(e)}function M(){d.onResize&&d.onResize({position:"top",size:50+(document.body.classList.contains(E)?24:0)})}function L(){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-open"})}function j(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"push-notifications-update",pushNotifications:e}),T.BBOmnibarToastContainer.showNewNotifications(e),m=e&&e.notifications&&e.notifications.filter((function(e){return!e.isRead})).length,H()}function U(e){O.BBOmnibarVertical.refreshSettings(e.value)}function D(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 d?[4,w.BBOmnibarPushNotifications.connect({customMessageCallback:U,envId:d.envId,handleNavigate:W,handleNavigateUrl:X,handlePushNotificationsChange:V,leId:d.leId,notificationsCallback:j,openPushNotificationsMenu:L,showVerticalNav:x(),svcId:d.svcId})]:[3,6];case 5:t.sent(),t.label=6;case 6:return[2]}}))}))}function q(){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 g.BBAuthInterop.postOmnibarMessage(l,{messageType:"refresh-user",token:e}),x()&&O.BBOmnibarVertical.refreshUser(e),e?D():w.BBOmnibarPushNotifications.disconnect(),[2]}}))}))}function G(){I.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){k.BBOmnibarUserActivity.userRenewedSession()}})}function z(){I.BBOmnibarUserActivityPrompt.hide()}function F(){k.BBOmnibarUserActivity.startTracking(q,G,z,d.allowAnonymous,f)}function V(e){w.BBOmnibarPushNotifications.updateNotifications(e)}function W(e){g.BBAuthInterop.handleNavigate(d.nav,e)}function X(e){y.BBAuthNavigator.navigate(e)}function Y(e){var t=e.data;if(g.BBAuthInterop.messageIsFromOmnibar(e)&&t.hostId===C){var n,u,m,v,b,y,B,I,w=d.nav;switch(t.messageType){case"ready":g.BBAuthInterop.postOmnibarMessage(l,{messageType:"host-ready"}),B=history.pushState,I=history.replaceState,history.pushState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=B.apply(history,e);return R(),n},history.replaceState=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I.apply(history,e);return R(),n},g.BBAuthInterop.postOmnibarMessage(l,{compactNavOnly:d.compactNavOnly||x(),enableHelp:d.enableHelp,envId:d.envId,hideResourceLinks:d.hideResourceLinks,leId:d.leId,localNavItems:w&&w.localNavItems,localNotifications:!!d.notifications,localSearch:!!d.onSearch,messageType:"nav-ready",navVersion:d.navVersion,services:w&&w.services,svcId:d.svcId,theme:d.theme}),(y=d.notifications)&&y.onReady({updateNotifications:function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"notifications-update",notifications:e})}}),D(!0),R(),h();break;case"display-ready":c.classList.remove(A),l.classList.remove(A);break;case"expand":l.classList.add(_);break;case"collapse":l.classList.remove(_);break;case"navigate-url":X(t.url);break;case"navigate":W(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(),g.BBAuthInterop.postOmnibarMessage(l,{messageType:"search-results",results:t}),n.label=2;case 2:return[2]}}))}))}(t.searchArgs);break;case"get-token":g.BBAuthInterop.handleGetToken(l,t.tokenRequestId,t.disableRedirect,F);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":V(t.notifications);break;case"session-renew":k.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e,t,n){var r=document.body.classList;if(e=e||"",a.innerText=e,e)if(r.add(E),t)if(o.classList.add(N),n){var i=document.createElement("a");i.href=n,i.innerText=t,s.appendChild(i)}else s.innerText=t;else o.classList.remove(N);else r.remove(E);M()}(t.name,t.description,t.url);break;case"branding-update":n=t.branding,(v=null===(m=null===(u=null==n?void 0:n.images)||void 0===u?void 0:u.favIcon)||void 0===m?void 0:m.url)&&(document.querySelectorAll("link[rel='icon'], link[rel='apple-touch-icon']").forEach((function(e){e.href=v})),document.querySelectorAll("link[rel='mask-icon'], link[rel='manifest']").forEach((function(e){e.remove()})));break;case"legacy-keep-alive-url-change":f=t.url,F();break;case"selected-service-update":p=t.serviceName,H()}}}function H(){if(v){var e=v.slice();p&&e.push(p);var t=e.join(" - ");m&&(t="(".concat(m,") ").concat(t)),document.title=t}}var J=function(){function e(){}return e.load=function(e){return d=d=e,f=d.legacyKeepAliveUrl,new Promise((function(t){var n;h=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){S()&&(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: ".concat(o.color,";"))}u=B.BBAuthDomUtility.addCss("\nbody {\n margin-top: ".concat(50,"px;\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: ").concat(50,"px;\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: ").concat(n,";\n border-bottom: ").concat(r,";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: ").concat(t,";\n ").concat(e,"\n}\n\n.sky-omnibar-placeholder.").concat(A," {\n display: block;\n}\n\n.sky-omnibar-iframe.").concat(A," {\n visibility: hidden;\n}\n\n.").concat(_,' {\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: ').concat(24,"px;\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.").concat(N," {\n background-color: #ffeccf;\n border-bottom: 2px solid #fbb034;\n color: #282b31;\n}\n\n.").concat(E," .sky-omnibar-environment {\n height: ").concat(24,"px;\n}\n")),M()}(),(c=document.createElement("div")).className="sky-omnibar-placeholder ".concat(A),c.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(c),(o=document.createElement("div")).className="sky-omnibar-environment",P(S()),(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),l=B.BBAuthDomUtility.addIframe((n=d.url||"https://host.nxt.blackbaud.com/omnibar/")+(n.indexOf("?")<0?"?":"&")+"hostid=".concat(C),"sky-omnibar-iframe ".concat(A),"Navigation"),x()&&O.BBOmnibarVertical.load(e,l),window.addEventListener("message",Y)}))},e.update=function(e){g.BBAuthInterop.postOmnibarMessage(l,{messageType:"update",updateArgs:e}),e.theme&&P("modern"===e.theme.name)},e.setTitle=function(e){v=e&&e.titleParts,H()},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",Y),document.body.classList.remove(E),d=u=c=l=o=s=a=h=m=v=p=void 0},e}();t.BBOmnibar=J},568:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(887),t),i(n(268),t)},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBCsrfXhr=void 0;var r=n(406),i=n(658),o=n(753);function a(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()}function s(e,t,n,r){return(r||void 0===r&&n)&&((e=e||{})[t]=n),e}function c(e,t,n,r,i){var o;return o=s(o,"environment_id",n),o=s(o,"legal_entity_id",i),o=s(o,"permission_scope",r,!(!n&&!i||!r)),new Promise((function(n,r){a(e,{name:"X-CSRF",value:t},o,(function(e){var t=e?JSON.parse(e):void 0;n(t)}),r)}))}var u=function(){function e(){}return e.request=function(e,t,n,a,s,u,l){return!s||a||u?new Promise((function(d,f){new Promise((function(e,t){l?e({csrf_token:"token_needed"}):c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return c(e,t.csrf_token,a,s,u)})).then(d).catch((function(e){n||e.code===r.BBAuthTokenErrorCode.Offline?f(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin(t):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.postWithCSRF=function(e){return new Promise((function(t,n){new Promise((function(e,t){c(i.BBAuthDomain.getSTSDomain()+"/session/csrf","token_needed").then(e).catch(t)})).then((function(t){return new Promise((function(n,r){a(e,{name:"X-CSRF",value:t.csrf_token},void 0,(function(e){n(e)}),r)}))})).then(t).catch((function(e){e.code===r.BBAuthTokenErrorCode.Offline?n(e):e.code===r.BBAuthTokenErrorCode.NotLoggedIn?o.BBAuthNavigator.redirectToSignin():o.BBAuthNavigator.redirectToError(e.code)}))}))},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)if(200===a.status){var e=void 0;a.responseText&&(e=JSON.parse(a.responseText)),i(e)}else 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=u},661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthDomUtility=void 0;var n=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=n},574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthInterop=void 0;var r=n(406),i=n(753),o="https://host.nxt.blackbaud.com";function a(e,t){if(e.origin===o){var n=e.data;return!!n&&n.source===t}return!1}var s=function(){function e(){}return e.postOmnibarMessage=function(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)},e.messageIsFromOmnibar=function(e){return a(e,"skyux-spa-omnibar")},e.messageIsFromOmnibarVertical=function(e){return a(e,"skyux-spa-omnibar-vertical")},e.messageIsFromToastContainer=function(e){return a(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=s},753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BBAuthNavigator=void 0;var r=n(406),i="https://signin.blackbaud.com/signin/",o=encodeURIComponent;function a(e){var t="".concat(i,"?redirectUrl=").concat(o(location.href));return e&&(t+="&inactivity=1"),t}var s=function(){function e(){}return e.navigate=function(e,t){t?location.replace(e):location.href=e},e.redirectToSignin=function(e){var t=a();e&&(t+="&"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(o(n),"=").concat(o(e[n])));return t.join("&")}(e)),this.navigate(t)},e.redirectToSignoutForInactivity=function(){var e=a(!0),t="".concat(i,"sign-out?redirectUrl=").concat(o(e));this.navigate(t)},e.redirectToError=function(e){var t,n;e===r.BBAuthTokenErrorCode.InvalidEnvironment?(n="invalid_env",t="security"):t="broken";var i="".concat("https://host.nxt.blackbaud.com/errors/").concat(t,"?source=auth-client&url=").concat(o(location.href));n&&(i+="&code=".concat(o(n))),this.navigate(i)},e}();t.BBAuthNavigator=s},333:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(63),t),i(n(662),t)},63:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},662: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(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BBUserSettings=void 0;var o,a=n(406),s=n(953),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;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 i.sent(),u(),[3,6];case 5:return r=i.sent(),l(r),[3,6];case 6:return[3,8];case 7:i.sent(),d=void 0;try{d=this.getLocalSettings()}catch(e){d={}}try{d.omnibar=d.omnibar||{},Object.assign(d.omnibar,t.omnibar),localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(d))}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}},t={},function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(254);var e,t})); |
@@ -0,1 +1,5 @@ | ||
# 2.61.1 (2023-01-23) | ||
- Added a check that the left nav iFrame exists before minimizing it. [#228](https://github.com/blackbaud/auth-client/pull/228) | ||
# 2.61.0 (2023-01-06) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "@blackbaud/auth-client", | ||
"version": "2.61.0", | ||
"version": "2.61.1", | ||
"description": "Provides methods for obtaining an authentication token from the Blackbaud authentication service.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundles/auth-client.umd.js", |
@@ -63,7 +63,10 @@ "use strict"; | ||
var size = 0; | ||
var wrapperStyle = getComputedStyle(document.querySelector(".".concat(CLS_IFRAME_WRAPPER))); | ||
if (wrapperStyle.display !== 'none') { | ||
size = document.body.classList.contains(CLS_BODY_MINIMIZED) | ||
? WIDTH_MIN | ||
: WIDTH_MAX; | ||
var iFrameEl = document.querySelector(".".concat(CLS_IFRAME_WRAPPER)); | ||
if (iFrameEl) { | ||
var wrapperStyle = getComputedStyle(iFrameEl); | ||
if (wrapperStyle.display !== 'none') { | ||
size = document.body.classList.contains(CLS_BODY_MINIMIZED) | ||
? WIDTH_MIN | ||
: WIDTH_MAX; | ||
} | ||
} | ||
@@ -70,0 +73,0 @@ omnibarConfig.onResize({ |
@@ -189,5 +189,9 @@ "use strict"; | ||
it("should respect the user's global settings", function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var config; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
config = jasmine.createSpyObj('config', [ | ||
'onResize', | ||
]); | ||
userSettingsReturnValue = Promise.resolve({ | ||
@@ -198,3 +202,3 @@ omnibar: { | ||
}); | ||
return [4 /*yield*/, loadOmnibarVertical()]; | ||
return [4 /*yield*/, loadOmnibarVertical(config)]; | ||
case 1: | ||
@@ -201,0 +205,0 @@ _a.sent(); |
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
Sorry, the diff of this file is not supported yet
1392277
21696