Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackbaud/auth-client

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackbaud/auth-client - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

src/omnibar/omnibar-navigation-item-display-style.d.ts

61

bundles/auth-client.umd.js

@@ -416,4 +416,5 @@ (function webpackUniversalModuleDefinition(root, factory) {

Object.defineProperty(exports, "__esModule", { value: true });
__export(__webpack_require__(18));
__export(__webpack_require__(19));
__export(__webpack_require__(12));
__export(__webpack_require__(13));

@@ -681,3 +682,3 @@

Object.defineProperty(exports, "__esModule", { value: true });
var omnibar_script_loader_1 = __webpack_require__(13);
var omnibar_script_loader_1 = __webpack_require__(14);
function getJQuery() {

@@ -731,2 +732,11 @@ return window.jQuery;

Object.defineProperty(exports, "__esModule", { value: true });
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function parseVersionString(str) {

@@ -781,3 +791,3 @@ var splitVersion = str.split('.');

/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

@@ -830,3 +840,3 @@

/***/ }),
/* 15 */
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

@@ -837,5 +847,5 @@

Object.defineProperty(exports, "__esModule", { value: true });
var omnibar_user_activity_processor_1 = __webpack_require__(14);
var omnibar_user_session_expiration_1 = __webpack_require__(16);
var omnibar_user_session_watcher_1 = __webpack_require__(17);
var omnibar_user_activity_processor_1 = __webpack_require__(15);
var omnibar_user_session_expiration_1 = __webpack_require__(17);
var omnibar_user_session_watcher_1 = __webpack_require__(18);
var csrf_xhr_1 = __webpack_require__(2);

@@ -997,3 +1007,3 @@ var navigator_1 = __webpack_require__(1);

/***/ }),
/* 16 */
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1057,3 +1067,3 @@

/***/ }),
/* 17 */
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1216,3 +1226,3 @@

/***/ }),
/* 18 */
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1222,8 +1232,10 @@

//#region imports
Object.defineProperty(exports, "__esModule", { value: true });
var auth_1 = __webpack_require__(0);
var interop_1 = __webpack_require__(3);
var omnibar_user_activity_1 = __webpack_require__(15);
var omnibar_user_activity_1 = __webpack_require__(16);
var navigator_1 = __webpack_require__(1);
var dom_utility_1 = __webpack_require__(4);
//#endregion
var CLS_EXPANDED = 'sky-omnibar-iframe-expanded';

@@ -1250,3 +1262,18 @@ var CLS_LOADING = 'sky-omnibar-loading';

function addStyleEl() {
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n");
var accentColor = '#00b4f1';
var backgroundColor = '#4d5259';
var theme = omnibarConfig.theme;
if (theme) {
var accent = theme.accent;
backgroundColor = theme.backgroundColor || backgroundColor;
// Explicitly check for false here since undefined represents the default
// behavior of showing the accent with the default color.
if (accent === false) {
accentColor = backgroundColor;
}
else if (accent && accent.color) {
accentColor = accent.color;
}
}
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: " + backgroundColor + ";\n border-top: 5px solid " + accentColor + ";\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n");
}

@@ -1398,2 +1425,3 @@ function addPlaceholderEl() {

interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, {
compactNavOnly: omnibarConfig.compactNavOnly,
enableHelp: omnibarConfig.enableHelp,

@@ -1407,3 +1435,4 @@ envId: omnibarConfig.envId,

services: nav && nav.services,
svcId: omnibarConfig.svcId
svcId: omnibarConfig.svcId,
theme: omnibarConfig.theme
});

@@ -1482,2 +1511,8 @@ setupNotifications();

};
BBOmnibar.update = function (args) {
interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, {
messageType: 'update',
updateArgs: args
});
};
BBOmnibar.destroy = function () {

@@ -1484,0 +1519,0 @@ dom_utility_1.BBAuthDomUtility.removeCss(styleEl);

@@ -1,1 +0,1 @@

(function e(n,t){if(typeof exports==="object"&&typeof module==="object")module.exports=t();else if(typeof define==="function"&&define.amd)define([],t);else if(typeof exports==="object")exports["BBAuthClient"]=t();else n["BBAuthClient"]=t()})(this,function(){return function(e){var n={};function t(r){if(n[r]){return n[r].exports}var i=n[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=true;return i.exports}t.m=e;t.c=n;t.i=function(e){return e};t.d=function(e,n,r){if(!t.o(e,n)){Object.defineProperty(e,n,{configurable:false,enumerable:true,get:r})}};t.n=function(e){var n=e&&e.__esModule?function n(){return e["default"]}:function n(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="";return t(t.s=7)}([function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(10));r(t(8))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i="https://signin.blackbaud.com/signin/";var o="https://host.nxt.blackbaud.com/errors/";var a=encodeURIComponent;function s(e){var n=[];for(var t in e){if(e.hasOwnProperty(t)){n.push(a(t)+"="+a(e[t]))}}return n.join("&")}function u(e){var n=i+"?redirectUrl="+a(location.href);if(e){n+="&inactivity=1"}return n}var c=function(){function e(){}e.navigate=function(e,n){if(n){location.replace(e)}else{location.href=e}};e.redirectToSignin=function(e){var n=u();if(e){n+="&"+s(e)}this.navigate(n)};e.redirectToSignoutForInactivity=function(){var e=u(true);var n=i+"sign-out?redirectUrl="+a(e);this.navigate(n)};e.redirectToError=function(e){var n;var t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env";n="security";break;default:n="broken";break}var i=""+o+n+"?source=auth-client&url="+a(location.href);if(t){i+="&code="+a(t)}this.navigate(i)};return e}();n.BBAuthNavigator=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf";var i=t(0);var o=t(1);function a(e,n,t,r,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===4){switch(a.status){case 200:r(a.responseText);break;case 401:o({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:if(a.status===0||a.status>=400){o({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}break}}};a.open("POST",e,true);a.setRequestHeader(n.name,n.value);a.setRequestHeader("Accept","application/json");a.setRequestHeader("Content-Type","application/json");a.withCredentials=true;if(t){a.send(JSON.stringify(t))}else{a.send()}}function s(e,n,t,r){if(r||r===undefined&&t){e=e||{};e[n]=t}return e}function u(e,n,t,r,i){var o;o=s(o,"environment_id",t);o=s(o,"legal_entity_id",i);o=s(o,"permission_scope",r,!!((t||i)&&r));return new Promise(function(t,r){a(e,{name:"X-CSRF",value:n},o,function(e){var n=e?JSON.parse(e):undefined;t(n)},r)})}var c=function(){function e(){}e.request=function(e,n,t,a,s,c,d){if(s&&!a){return Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment when specifying a permission scope."})}return new Promise(function(f,l){new Promise(function(e,n){if(d){e({csrf_token:"token_needed"})}else{u(r,"token_needed").then(e).catch(n)}}).then(function(n){return u(e,n["csrf_token"],a,s,c)}).then(f).catch(function(e){if(t){l(e)}else{switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code);break}}})})};e.requestWithToken=function(e,n){return new Promise(function(t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4){switch(i.status){case 200:t(JSON.parse(i.responseText));break;default:r();break}}};i.open("GET",e,true);i.setRequestHeader("Authorization","Bearer "+n);i.setRequestHeader("Accept","application/json");i.send()})};return e}();n.BBCsrfXhr=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://host.nxt.blackbaud.com";var i=function(){function e(){}e.postOmnibarMessage=function(e,n,t){n.source="auth-client";e.contentWindow.postMessage(n,t||r)};e.messageIsFromOmnibar=function(e){if(e.origin===r){var n=e.data;return!!n&&n.source==="skyux-spa-omnibar"}return false};return e}();n.BBAuthInterop=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}e.addCss=function(e){var n=document.createElement("style");n.appendChild(document.createTextNode(e));document.head.appendChild(n);return n};e.addIframe=function(e,n,t){var r=document.createElement("iframe");r.className=n;r.title=t;r.src=e;this.addElToBodyTop(r);return r};e.removeCss=function(e){this.removeEl(e,document.head)};e.removeEl=function(e,n){if(n===void 0){n=document.body}if(n.contains(e)){n.removeChild(e)}};e.addElToBodyTop=function(e){var n=document.body;if(n.firstChild){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}};return e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(11))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(18));r(t(12))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(0));r(t(5));r(t(6))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r;(function(e){e[e["Unspecified"]=0]="Unspecified";e[e["NotLoggedIn"]=1]="NotLoggedIn";e[e["InvalidEnvironment"]=2]="InvalidEnvironment";e[e["PermissionScopeNoEnvironment"]=3]="PermissionScopeNoEnvironment"})(r=n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=function(){function e(){}e.getToken=function(e,n,t,i){return r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",undefined,e,n,t,i,true)};return e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(9);function i(e){var n=e.envId,t=e.permissionScope,r=e.leId;return"token|"+(r||"-")+"|"+(n||"-")+"|"+(t||"-")}var o=function(){function e(){}e.getToken=function(n){return e.getTokenInternal(n)};e.clearTokenCache=function(){e.tokenCache={}};e.getTokenInternal=function(n){n=n||{};var t=n.forceNewToken,o=n.disableRedirect;if(e.mock){return Promise.resolve("mock_access_token_auth-client@blackbaud.com")}var a=i(n);var s=e.tokenCache[a]=e.tokenCache[a]||{};var u=(new Date).valueOf();if(!t&&s.lastToken&&s.expirationTime&&s.expirationTime-u>60*1e3){return Promise.resolve(s.lastToken)}if(!s.pendingLookupPromise){s.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(o,n.envId,n.permissionScope,n.leId).then(function(e){s.expirationTime=(new Date).valueOf()+e["expires_in"]*1e3;s.lastToken=e["access_token"];s.pendingLookupPromise=null;return s.lastToken}).catch(function(e){s.pendingLookupPromise=null;throw e})}return s.pendingLookupPromise};return e}();o.mock=false;o.tokenCache={};n.BBAuth=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i=t(3);var o=t(2);var a=t(4);var s=t(1);function u(e,n,t,o){var s;var u;function c(){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")}function f(){var n=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);u=a.BBAuthDomUtility.addIframe(n,"sky-omnibar-welcome-iframe","Welcome")}function l(e,n){r.BBAuth.getToken({disableRedirect:n}).then(function(n){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:n,tokenRequestId:e})},function(n){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function v(){a.BBAuthDomUtility.removeEl(u);a.BBAuthDomUtility.removeCss(s);u=s=undefined;window.removeEventListener("message",m)}function m(r){if(!i.BBAuthInterop.messageIsFromOmnibar(r)){return}var a=r.data;switch(a.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"});i.BBAuthInterop.postOmnibarMessage(u,{contextNavigation:n,messageType:"context-provide"});break;case"get-token":l(a.tokenRequestId,a.disableRedirect);break;case"welcome-cancel":v();o({reason:"canceled"});break;case"welcome-environment-selected":v();setTimeout(function(){e.envId=a.envId;t(e)},10);break}}c();f();window.addEventListener("message",m)}function c(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,i=e.svcId;if(n||!t){return Promise.resolve(e)}return new Promise(function(n,t){if(i){r.BBAuth.getToken().then(function(r){var a="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/services?svcid="+encodeURIComponent(i);o.BBCsrfXhr.requestWithToken(a,r).then(function(r){var i=r.environments;var o=i&&i.length||0;if(o===1){e.envId=i[0].id;n(e)}else if(o>1){u(e,r,n,t)}else{c()}})})}else{c()}})};return e}();d.url="https://host.nxt.blackbaud.com/omnibar/welcome";n.BBContextProvider=d},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(13);function i(){return window.jQuery}var o=function(){function e(){}e.load=function(e){return new Promise(function(n){var t=i();var o=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el","");document.body.appendChild(t);e=e||{};e["z-index"]=1e3;e.afterLoad=n;if(e.menuEl){e.menuEl=i()(e.menuEl)}BBAUTH.Omnibar.load(t,e)})})};return e}();n.BBOmnibarLegacy=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});function r(e){var n=e.split(".");var t=[];for(var r=0,i=n;r<i.length;r++){var o=i[r];var a=parseInt(o,10)||0;t.push(a)}return t}function i(e,n){var t=r(e);var i=r(n);for(var o=0;o<t.length;o++){if(o<i.length){if(i[o]>t[o]){return true}else if(i[o]<t[o]){return false}}}return true}var o=function(){function e(){}e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n;r.onerror=t;r.src=e;document.body.appendChild(r)})};e.smartRegisterScript=function(n,t,r){if(r&&i(t,r)){return Promise.resolve()}return e.registerScript(n)};return e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,u=e.minRenewalAge,c=e.redirectForInactivity,d=e.renewSession,f=e.showInactivityPrompt;var l=Date.now();if(r===null){return}if(!n&&l>r){c()}var v=r-i;var m=r-s+u;if(o){if(l<v){t()}}else{if(a>m){d()}else if(!n&&l>v){f()}}};return e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(14);var i=t(16);var o=t(17);var a=t(2);var s=t(1);var u;var c;var d;var f;var l;var v;var m;var p;var h;var b;var g="";var y;var B;var k;var I;function T(){p=Date.now()}function A(e){if(e.clientX!==c||e.clientY!==d){c=e.clientX;d=e.clientY;T()}}function E(){var e=Date.now();if(!h||e-h>P.MIN_RENEWAL_RETRY){h=e;a.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){return undefined})}}function _(){document.addEventListener("keypress",T);document.addEventListener("mousemove",A)}function w(){m=true;v()}function O(){m=false;T();f()}function S(){if(I){s.BBAuthNavigator.navigate(I)}else{s.BBAuthNavigator.redirectToSignoutForInactivity()}}function N(){if(!y){E()}b=setInterval(function(){i.BBOmnibarUserSessionExpiration.getSessionExpiration(g,k,y).then(function(e){r.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:O,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:m,lastActivity:p,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:w})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}e.startTracking=function(n,t,r,i,a){if(!u||i!==y||a!==B){e.stopTracking();l=n;v=t;f=r;y=i;B=a;_();N();o.BBOmnibarUserSessionWatcher.start(i,a,l,function(e){k=e.legacyTtl;g=e.refreshId;I=e.legacySigninUrl});u=true}};e.userRenewedSession=function(){O();E()};e.stopTracking=function(){o.BBOmnibarUserSessionWatcher.stop();i.BBOmnibarUserSessionExpiration.reset();document.removeEventListener("keypress",T);document.removeEventListener("mousemove",A);if(b){clearInterval(b);b=undefined}u=c=d=p=h=m=l=v=f=y=B=undefined};return e}();P.ACTIVITY_TIMER_INTERVAL=1e3;P.MIN_RENEWAL_RETRY=1*60*1e3;P.INACTIVITY_PROMPT_DURATION=2*60*1e3;P.MIN_RENEWAL_AGE=5*60*1e3;P.MAX_SESSION_AGE=15*60*1e3;P.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i;function o(e,n){if(i&&i.refreshId===e&&i.allowAnonymous===n){return i.promise}var t=new Promise(function(e,t){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",undefined,n).then(function(n){var t=n===null?null:Date.now()+n*1e3;e(t)},function(){e(null)})});i={allowAnonymous:n,promise:t,refreshId:e};return t}var a=function(){function e(){}e.getSessionExpiration=function(e,n,t){var r=o(e,t);return new Promise(function(e,t){r.then(function(t){var r;if(t===null){r=null}else if(typeof n==="number"){var i=Date.now()+n;r=Math.min(t,i)}else{r=t}e(r)})})};e.reset=function(){i=undefined};return e}();n.BBOmnibarUserSessionExpiration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(3);var i=t(1);var o;var a;var s;var u;var c;var d;var f;var l={};var v;function m(e){if(e){var n=e.split("://");var t=n[0];var r=n[1].split("/")[0];return t+"://"+r}return undefined}function p(e){if(f){r.BBAuthInterop.postOmnibarMessage(f,e,m(a))}}function h(e,n){var t=document.createElement("iframe");t.className=e;t.width="0";t.height="0";t.frameBorder="0";t.src=n;t.tabIndex=-1;t.setAttribute("aria-hidden","true");document.body.appendChild(t);return t}function b(){var e=I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);d=h("sky-omnibar-iframe-session-watcher",e)}function g(){if(a){f=h("sky-omnibar-iframe-legacy-keep-alive",a)}}function y(e){if(typeof e.data==="string"){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if(n.messageType==="session_change"){var t=n.message;var r=t&&t.sessionId;var o=t&&t.refreshId;if(!r&&!c){if(v){i.BBAuthNavigator.navigate(v)}else{i.BBAuthNavigator.redirectToSignin()}}if(l.refreshId!==undefined&&o!==l.refreshId){p({messageType:"session-refresh"})}if(l.sessionId!==undefined&&r!==l.sessionId){s()}l.refreshId=o;l.sessionId=r;u(l)}}}function B(e){var n=e.data;switch(n.messageType){case"ready":l.legacyTtl=n.ttl;v=n.signinUrl;u(l);break}}function k(e){switch(e.origin){case I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case m(a):B(e);break}}var I=function(){function e(){}e.start=function(n,t,r,i){if(!o||n!==c||t!==a){e.stop();c=n;s=r;a=t;u=i;b();g();window.addEventListener("message",k,false);o=true}};e.stop=function(){window.removeEventListener("message",k,false);if(d){document.body.removeChild(d);d=undefined}if(f){document.body.removeChild(f);f=undefined}l={};o=c=s=a=v=u=undefined};return e}();I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserSessionWatcher=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i=t(3);var o=t(15);var a=t(1);var s=t(4);var u="sky-omnibar-iframe-expanded";var c="sky-omnibar-loading";var d;var f;var l;var v;var m;var p;var h;function b(){v=s.BBAuthDomUtility.addIframe(U(),"sky-omnibar-iframe "+c,"Navigation")}function g(){d=document.createElement("div");d.className="sky-omnibar-environment";s.BBAuthDomUtility.addElToBodyTop(d)}function y(){v.classList.remove(u)}function B(){l=s.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: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}function k(){f=document.createElement("div");f.className="sky-omnibar-placeholder "+c;document.body.appendChild(f)}function I(){v.classList.add(u)}function T(){i.BBAuthInterop.postOmnibarMessage(v,{href:document.location.href,messageType:"location-change"})}function A(e){if(m.onSearch){m.onSearch(e).then(function(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"search-results",results:e})})}}function E(){function e(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}r.BBAuth.clearTokenCache();r.BBAuth.getToken({disableRedirect:true,forceNewToken:true}).then(e).catch(function(){return e(undefined)})}function _(){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"inactivity-show"})}function w(){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"inactivity-hide"})}function O(){o.BBOmnibarUserActivity.startTracking(E,_,w,m.allowAnonymous,p)}function S(e,n){r.BBAuth.getToken({disableRedirect:n}).then(function(n){O();i.BBAuthInterop.postOmnibarMessage(v,{messageType:"token",token:n,tokenRequestId:e})},function(n){O();i.BBAuthInterop.postOmnibarMessage(v,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function N(){var e=window.BBHELP;if(e){e.HelpWidget.open()}}function P(e){var n=m.notifications;if(n&&n.onNotificationRead){n.onNotificationRead(e)}}function C(e){var n="sky-omnibar-environment-visible";var t=document.body.classList;e=e||"";d.innerText=e;if(e){t.add(n)}else{t.remove(n)}}function R(){var e=history.pushState;var n=history.replaceState;function t(){var n=e.apply(history,arguments);T();return n}function r(){var e=n.apply(history,arguments);T();return e}history.pushState=t;history.replaceState=r}function x(){var e=m.notifications;if(e){e.onReady({updateNotifications:function(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"notifications-update",notifications:e})}})}}function M(e){if(!i.BBAuthInterop.messageIsFromOmnibar(e)){return}var n=e.data;var t=m.nav;switch(n.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"});R();i.BBAuthInterop.postOmnibarMessage(v,{enableHelp:m.enableHelp,envId:m.envId,leId:m.leId,localNavItems:t&&t.localNavItems,localNotifications:!!m.notifications,localSearch:!!m.onSearch,messageType:"nav-ready",services:t&&t.services,svcId:m.svcId});x();T();h();break;case"display-ready":f.classList.remove(c);v.classList.remove(c);break;case"expand":I();break;case"collapse":y();break;case"navigate-url":a.BBAuthNavigator.navigate(n.url);break;case"navigate":var r=n.navItem;if(!t||!t.beforeNavCallback||t.beforeNavCallback(r)!==false){a.BBAuthNavigator.navigate(r.url)}break;case"search":A(n.searchArgs);break;case"get-token":S(n.tokenRequestId,n.disableRedirect);break;case"help-open":N();break;case"notification-read":P(n.notification);break;case"session-renew":o.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":C(n.name);break;case"legacy-keep-alive-url-change":p=n.url;O();break}}function U(){var e=m.url||"https://host.nxt.blackbaud.com/omnibar/";return e}var j=function(){function e(){}e.load=function(e){m=m=e;p=m.legacyKeepAliveUrl;return new Promise(function(e){h=e;B();k();g();b();window.addEventListener("message",M)})};e.destroy=function(){s.BBAuthDomUtility.removeCss(l);s.BBAuthDomUtility.removeEl(f);s.BBAuthDomUtility.removeEl(v);s.BBAuthDomUtility.removeEl(d);window.removeEventListener("message",M);m=l=f=v=d=h=undefined};return e}();n.BBOmnibar=j}])});
(function e(n,t){if(typeof exports==="object"&&typeof module==="object")module.exports=t();else if(typeof define==="function"&&define.amd)define([],t);else if(typeof exports==="object")exports["BBAuthClient"]=t();else n["BBAuthClient"]=t()})(this,function(){return function(e){var n={};function t(r){if(n[r]){return n[r].exports}var i=n[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=true;return i.exports}t.m=e;t.c=n;t.i=function(e){return e};t.d=function(e,n,r){if(!t.o(e,n)){Object.defineProperty(e,n,{configurable:false,enumerable:true,get:r})}};t.n=function(e){var n=e&&e.__esModule?function n(){return e["default"]}:function n(){return e};t.d(n,"a",n);return n};t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};t.p="";return t(t.s=7)}([function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(10));r(t(8))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i="https://signin.blackbaud.com/signin/";var o="https://host.nxt.blackbaud.com/errors/";var a=encodeURIComponent;function s(e){var n=[];for(var t in e){if(e.hasOwnProperty(t)){n.push(a(t)+"="+a(e[t]))}}return n.join("&")}function u(e){var n=i+"?redirectUrl="+a(location.href);if(e){n+="&inactivity=1"}return n}var c=function(){function e(){}e.navigate=function(e,n){if(n){location.replace(e)}else{location.href=e}};e.redirectToSignin=function(e){var n=u();if(e){n+="&"+s(e)}this.navigate(n)};e.redirectToSignoutForInactivity=function(){var e=u(true);var n=i+"sign-out?redirectUrl="+a(e);this.navigate(n)};e.redirectToError=function(e){var n;var t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env";n="security";break;default:n="broken";break}var i=""+o+n+"?source=auth-client&url="+a(location.href);if(t){i+="&code="+a(t)}this.navigate(i)};return e}();n.BBAuthNavigator=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf";var i=t(0);var o=t(1);function a(e,n,t,r,o){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===4){switch(a.status){case 200:r(a.responseText);break;case 401:o({code:i.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:o({code:i.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:if(a.status===0||a.status>=400){o({code:i.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}break}}};a.open("POST",e,true);a.setRequestHeader(n.name,n.value);a.setRequestHeader("Accept","application/json");a.setRequestHeader("Content-Type","application/json");a.withCredentials=true;if(t){a.send(JSON.stringify(t))}else{a.send()}}function s(e,n,t,r){if(r||r===undefined&&t){e=e||{};e[n]=t}return e}function u(e,n,t,r,i){var o;o=s(o,"environment_id",t);o=s(o,"legal_entity_id",i);o=s(o,"permission_scope",r,!!((t||i)&&r));return new Promise(function(t,r){a(e,{name:"X-CSRF",value:n},o,function(e){var n=e?JSON.parse(e):undefined;t(n)},r)})}var c=function(){function e(){}e.request=function(e,n,t,a,s,c,d){if(s&&!a){return Promise.reject({code:i.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment when specifying a permission scope."})}return new Promise(function(f,l){new Promise(function(e,n){if(d){e({csrf_token:"token_needed"})}else{u(r,"token_needed").then(e).catch(n)}}).then(function(n){return u(e,n["csrf_token"],a,s,c)}).then(f).catch(function(e){if(t){l(e)}else{switch(e.code){case i.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code);break}}})})};e.requestWithToken=function(e,n){return new Promise(function(t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4){switch(i.status){case 200:t(JSON.parse(i.responseText));break;default:r();break}}};i.open("GET",e,true);i.setRequestHeader("Authorization","Bearer "+n);i.setRequestHeader("Accept","application/json");i.send()})};return e}();n.BBCsrfXhr=c},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r="https://host.nxt.blackbaud.com";var i=function(){function e(){}e.postOmnibarMessage=function(e,n,t){n.source="auth-client";e.contentWindow.postMessage(n,t||r)};e.messageIsFromOmnibar=function(e){if(e.origin===r){var n=e.data;return!!n&&n.source==="skyux-spa-omnibar"}return false};return e}();n.BBAuthInterop=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}e.addCss=function(e){var n=document.createElement("style");n.appendChild(document.createTextNode(e));document.head.appendChild(n);return n};e.addIframe=function(e,n,t){var r=document.createElement("iframe");r.className=n;r.title=t;r.src=e;this.addElToBodyTop(r);return r};e.removeCss=function(e){this.removeEl(e,document.head)};e.removeEl=function(e,n){if(n===void 0){n=document.body}if(n.contains(e)){n.removeChild(e)}};e.addElToBodyTop=function(e){var n=document.body;if(n.firstChild){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}};return e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(11))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(19));r(t(12));r(t(13))},function(e,n,t){"use strict";function r(e){for(var t in e)if(!n.hasOwnProperty(t))n[t]=e[t]}Object.defineProperty(n,"__esModule",{value:true});r(t(0));r(t(5));r(t(6))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r;(function(e){e[e["Unspecified"]=0]="Unspecified";e[e["NotLoggedIn"]=1]="NotLoggedIn";e[e["InvalidEnvironment"]=2]="InvalidEnvironment";e[e["PermissionScopeNoEnvironment"]=3]="PermissionScopeNoEnvironment"})(r=n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i=function(){function e(){}e.getToken=function(e,n,t,i){return r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",undefined,e,n,t,i,true)};return e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(9);function i(e){var n=e.envId,t=e.permissionScope,r=e.leId;return"token|"+(r||"-")+"|"+(n||"-")+"|"+(t||"-")}var o=function(){function e(){}e.getToken=function(n){return e.getTokenInternal(n)};e.clearTokenCache=function(){e.tokenCache={}};e.getTokenInternal=function(n){n=n||{};var t=n.forceNewToken,o=n.disableRedirect;if(e.mock){return Promise.resolve("mock_access_token_auth-client@blackbaud.com")}var a=i(n);var s=e.tokenCache[a]=e.tokenCache[a]||{};var u=(new Date).valueOf();if(!t&&s.lastToken&&s.expirationTime&&s.expirationTime-u>60*1e3){return Promise.resolve(s.lastToken)}if(!s.pendingLookupPromise){s.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(o,n.envId,n.permissionScope,n.leId).then(function(e){s.expirationTime=(new Date).valueOf()+e["expires_in"]*1e3;s.lastToken=e["access_token"];s.pendingLookupPromise=null;return s.lastToken}).catch(function(e){s.pendingLookupPromise=null;throw e})}return s.pendingLookupPromise};return e}();o.mock=false;o.tokenCache={};n.BBAuth=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i=t(3);var o=t(2);var a=t(4);var s=t(1);function u(e,n,t,o){var s;var u;function c(){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")}function f(){var n=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);u=a.BBAuthDomUtility.addIframe(n,"sky-omnibar-welcome-iframe","Welcome")}function l(e,n){r.BBAuth.getToken({disableRedirect:n}).then(function(n){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token",token:n,tokenRequestId:e})},function(n){i.BBAuthInterop.postOmnibarMessage(u,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function v(){a.BBAuthDomUtility.removeEl(u);a.BBAuthDomUtility.removeCss(s);u=s=undefined;window.removeEventListener("message",m)}function m(r){if(!i.BBAuthInterop.messageIsFromOmnibar(r)){return}var a=r.data;switch(a.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(u,{messageType:"host-ready"});i.BBAuthInterop.postOmnibarMessage(u,{contextNavigation:n,messageType:"context-provide"});break;case"get-token":l(a.tokenRequestId,a.disableRedirect);break;case"welcome-cancel":v();o({reason:"canceled"});break;case"welcome-environment-selected":v();setTimeout(function(){e.envId=a.envId;t(e)},10);break}}c();f();window.addEventListener("message",m)}function c(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,i=e.svcId;if(n||!t){return Promise.resolve(e)}return new Promise(function(n,t){if(i){r.BBAuth.getToken().then(function(r){var a="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/services?svcid="+encodeURIComponent(i);o.BBCsrfXhr.requestWithToken(a,r).then(function(r){var i=r.environments;var o=i&&i.length||0;if(o===1){e.envId=i[0].id;n(e)}else if(o>1){u(e,r,n,t)}else{c()}})})}else{c()}})};return e}();d.url="https://host.nxt.blackbaud.com/omnibar/welcome";n.BBContextProvider=d},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(14);function i(){return window.jQuery}var o=function(){function e(){}e.load=function(e){return new Promise(function(n){var t=i();var o=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",o).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el","");document.body.appendChild(t);e=e||{};e["z-index"]=1e3;e.afterLoad=n;if(e.menuEl){e.menuEl=i()(e.menuEl)}BBAUTH.Omnibar.load(t,e)})})};return e}();n.BBOmnibarLegacy=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true})},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});function r(e){var n=e.split(".");var t=[];for(var r=0,i=n;r<i.length;r++){var o=i[r];var a=parseInt(o,10)||0;t.push(a)}return t}function i(e,n){var t=r(e);var i=r(n);for(var o=0;o<t.length;o++){if(o<i.length){if(i[o]>t[o]){return true}else if(i[o]<t[o]){return false}}}return true}var o=function(){function e(){}e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n;r.onerror=t;r.src=e;document.body.appendChild(r)})};e.smartRegisterScript=function(n,t,r){if(r&&i(t,r)){return Promise.resolve()}return e.registerScript(n)};return e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=function(){function e(){}e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,i=e.inactivityPromptDuration,o=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,u=e.minRenewalAge,c=e.redirectForInactivity,d=e.renewSession,f=e.showInactivityPrompt;var l=Date.now();if(r===null){return}if(!n&&l>r){c()}var v=r-i;var m=r-s+u;if(o){if(l<v){t()}}else{if(a>m){d()}else if(!n&&l>v){f()}}};return e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(15);var i=t(17);var o=t(18);var a=t(2);var s=t(1);var u;var c;var d;var f;var l;var v;var m;var p;var h;var b;var g="";var y;var B;var k;var I;function T(){p=Date.now()}function A(e){if(e.clientX!==c||e.clientY!==d){c=e.clientX;d=e.clientY;T()}}function E(){var e=Date.now();if(!h||e-h>P.MIN_RENEWAL_RETRY){h=e;a.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){return undefined})}}function _(){document.addEventListener("keypress",T);document.addEventListener("mousemove",A)}function O(){m=true;v()}function w(){m=false;T();f()}function S(){if(I){s.BBAuthNavigator.navigate(I)}else{s.BBAuthNavigator.redirectToSignoutForInactivity()}}function N(){if(!y){E()}b=setInterval(function(){i.BBOmnibarUserSessionExpiration.getSessionExpiration(g,k,y).then(function(e){r.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:m,lastActivity:p,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:S,renewSession:E,showInactivityPrompt:O})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}e.startTracking=function(n,t,r,i,a){if(!u||i!==y||a!==B){e.stopTracking();l=n;v=t;f=r;y=i;B=a;_();N();o.BBOmnibarUserSessionWatcher.start(i,a,l,function(e){k=e.legacyTtl;g=e.refreshId;I=e.legacySigninUrl});u=true}};e.userRenewedSession=function(){w();E()};e.stopTracking=function(){o.BBOmnibarUserSessionWatcher.stop();i.BBOmnibarUserSessionExpiration.reset();document.removeEventListener("keypress",T);document.removeEventListener("mousemove",A);if(b){clearInterval(b);b=undefined}u=c=d=p=h=m=l=v=f=y=B=undefined};return e}();P.ACTIVITY_TIMER_INTERVAL=1e3;P.MIN_RENEWAL_RETRY=1*60*1e3;P.INACTIVITY_PROMPT_DURATION=2*60*1e3;P.MIN_RENEWAL_AGE=5*60*1e3;P.MAX_SESSION_AGE=15*60*1e3;P.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(2);var i;function o(e,n){if(i&&i.refreshId===e&&i.allowAnonymous===n){return i.promise}var t=new Promise(function(e,t){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",undefined,n).then(function(n){var t=n===null?null:Date.now()+n*1e3;e(t)},function(){e(null)})});i={allowAnonymous:n,promise:t,refreshId:e};return t}var a=function(){function e(){}e.getSessionExpiration=function(e,n,t){var r=o(e,t);return new Promise(function(e,t){r.then(function(t){var r;if(t===null){r=null}else if(typeof n==="number"){var i=Date.now()+n;r=Math.min(t,i)}else{r=t}e(r)})})};e.reset=function(){i=undefined};return e}();n.BBOmnibarUserSessionExpiration=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(3);var i=t(1);var o;var a;var s;var u;var c;var d;var f;var l={};var v;function m(e){if(e){var n=e.split("://");var t=n[0];var r=n[1].split("/")[0];return t+"://"+r}return undefined}function p(e){if(f){r.BBAuthInterop.postOmnibarMessage(f,e,m(a))}}function h(e,n){var t=document.createElement("iframe");t.className=e;t.width="0";t.height="0";t.frameBorder="0";t.src=n;t.tabIndex=-1;t.setAttribute("aria-hidden","true");document.body.appendChild(t);return t}function b(){var e=I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);d=h("sky-omnibar-iframe-session-watcher",e)}function g(){if(a){f=h("sky-omnibar-iframe-legacy-keep-alive",a)}}function y(e){if(typeof e.data==="string"){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if(n.messageType==="session_change"){var t=n.message;var r=t&&t.sessionId;var o=t&&t.refreshId;if(!r&&!c){if(v){i.BBAuthNavigator.navigate(v)}else{i.BBAuthNavigator.redirectToSignin()}}if(l.refreshId!==undefined&&o!==l.refreshId){p({messageType:"session-refresh"})}if(l.sessionId!==undefined&&r!==l.sessionId){s()}l.refreshId=o;l.sessionId=r;u(l)}}}function B(e){var n=e.data;switch(n.messageType){case"ready":l.legacyTtl=n.ttl;v=n.signinUrl;u(l);break}}function k(e){switch(e.origin){case I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:y(e);break;case m(a):B(e);break}}var I=function(){function e(){}e.start=function(n,t,r,i){if(!o||n!==c||t!==a){e.stop();c=n;s=r;a=t;u=i;b();g();window.addEventListener("message",k,false);o=true}};e.stop=function(){window.removeEventListener("message",k,false);if(d){document.body.removeChild(d);d=undefined}if(f){document.body.removeChild(f);f=undefined}l={};o=c=s=a=v=u=undefined};return e}();I.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com";n.BBOmnibarUserSessionWatcher=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:true});var r=t(0);var i=t(3);var o=t(16);var a=t(1);var s=t(4);var u="sky-omnibar-iframe-expanded";var c="sky-omnibar-loading";var d;var f;var l;var v;var m;var p;var h;function b(){v=s.BBAuthDomUtility.addIframe(U(),"sky-omnibar-iframe "+c,"Navigation")}function g(){d=document.createElement("div");d.className="sky-omnibar-environment";s.BBAuthDomUtility.addElToBodyTop(d)}function y(){v.classList.remove(u)}function B(){var e="#00b4f1";var n="#4d5259";var t=m.theme;if(t){var r=t.accent;n=t.backgroundColor||n;if(r===false){e=n}else if(r&&r.color){e=r.color}}l=s.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-top: 5px solid "+e+';\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}function k(){f=document.createElement("div");f.className="sky-omnibar-placeholder "+c;document.body.appendChild(f)}function I(){v.classList.add(u)}function T(){i.BBAuthInterop.postOmnibarMessage(v,{href:document.location.href,messageType:"location-change"})}function A(e){if(m.onSearch){m.onSearch(e).then(function(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"search-results",results:e})})}}function E(){function e(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"refresh-user",token:e})}r.BBAuth.clearTokenCache();r.BBAuth.getToken({disableRedirect:true,forceNewToken:true}).then(e).catch(function(){return e(undefined)})}function _(){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"inactivity-show"})}function O(){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"inactivity-hide"})}function w(){o.BBOmnibarUserActivity.startTracking(E,_,O,m.allowAnonymous,p)}function S(e,n){r.BBAuth.getToken({disableRedirect:n}).then(function(n){w();i.BBAuthInterop.postOmnibarMessage(v,{messageType:"token",token:n,tokenRequestId:e})},function(n){w();i.BBAuthInterop.postOmnibarMessage(v,{messageType:"token-fail",reason:n,tokenRequestId:e})})}function N(){var e=window.BBHELP;if(e){e.HelpWidget.open()}}function P(e){var n=m.notifications;if(n&&n.onNotificationRead){n.onNotificationRead(e)}}function C(e){var n="sky-omnibar-environment-visible";var t=document.body.classList;e=e||"";d.innerText=e;if(e){t.add(n)}else{t.remove(n)}}function R(){var e=history.pushState;var n=history.replaceState;function t(){var n=e.apply(history,arguments);T();return n}function r(){var e=n.apply(history,arguments);T();return e}history.pushState=t;history.replaceState=r}function x(){var e=m.notifications;if(e){e.onReady({updateNotifications:function(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"notifications-update",notifications:e})}})}}function M(e){if(!i.BBAuthInterop.messageIsFromOmnibar(e)){return}var n=e.data;var t=m.nav;switch(n.messageType){case"ready":i.BBAuthInterop.postOmnibarMessage(v,{messageType:"host-ready"});R();i.BBAuthInterop.postOmnibarMessage(v,{compactNavOnly:m.compactNavOnly,enableHelp:m.enableHelp,envId:m.envId,leId:m.leId,localNavItems:t&&t.localNavItems,localNotifications:!!m.notifications,localSearch:!!m.onSearch,messageType:"nav-ready",services:t&&t.services,svcId:m.svcId,theme:m.theme});x();T();h();break;case"display-ready":f.classList.remove(c);v.classList.remove(c);break;case"expand":I();break;case"collapse":y();break;case"navigate-url":a.BBAuthNavigator.navigate(n.url);break;case"navigate":var r=n.navItem;if(!t||!t.beforeNavCallback||t.beforeNavCallback(r)!==false){a.BBAuthNavigator.navigate(r.url)}break;case"search":A(n.searchArgs);break;case"get-token":S(n.tokenRequestId,n.disableRedirect);break;case"help-open":N();break;case"notification-read":P(n.notification);break;case"session-renew":o.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":C(n.name);break;case"legacy-keep-alive-url-change":p=n.url;w();break}}function U(){var e=m.url||"https://host.nxt.blackbaud.com/omnibar/";return e}var j=function(){function e(){}e.load=function(e){m=m=e;p=m.legacyKeepAliveUrl;return new Promise(function(e){h=e;B();k();g();b();window.addEventListener("message",M)})};e.update=function(e){i.BBAuthInterop.postOmnibarMessage(v,{messageType:"update",updateArgs:e})};e.destroy=function(){s.BBAuthDomUtility.removeCss(l);s.BBAuthDomUtility.removeEl(f);s.BBAuthDomUtility.removeEl(v);s.BBAuthDomUtility.removeEl(d);window.removeEventListener("message",M);m=l=f=v=d=h=undefined};return e}();n.BBOmnibar=j}])});

@@ -0,1 +1,5 @@

# 2.7.0 (2018-06-14)
- Added interfaces and methods for theming the omnibar. (#67)
# 2.6.0 (2018-05-22)

@@ -2,0 +6,0 @@

@@ -1,1 +0,1 @@

{"name":"@blackbaud/auth-client","version":"2.6.0","description":"Provides methods for obtaining an authentication token from the Blackbaud authentication service.","main":"dist/bundles/auth-client.umd.js","module":"index.js","scripts":{"ci":"npm run test:ci && npm run build","test":"npm run lint && npm run test:unit","test:ci":"npm run test:unit:ci","test:unit":"npm run test:unit:base -- config/karma/local.karma.conf.js","test:unit:ci":"npm run test:unit:base -- config/karma/ci.karma.conf.js","test:unit:base":"node --max-old-space-size=4096 node_modules/karma/bin/karma start","pretest":"npm run lint","compress":"uglifyjs dist/bundles/auth-client.umd.js -m -o dist/bundles/auth-client.umd.min.js","build":"rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js && npm run compress","watch":"npm run test:unit -- --auto-watch --no-single-run","lint":"tslint 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/blackbaud/auth-client.git"},"author":"Blackbaud, Inc.","license":"MIT","bugs":{"url":"https://github.com/blackbaud/auth-client/issues"},"homepage":"https://github.com/blackbaud/auth-client#readme","devDependencies":{"@types/core-js":"0.9.41","@types/jasmine":"2.5.47","@types/jasmine-ajax":"3.1.36","@types/webpack":"2.2.15","core-js":"2.4.1","fs-extra":"3.0.1","istanbul":"0.4.5","istanbul-instrumenter-loader":"0.1.0","jasmine":"2.6.0","jasmine-ajax":"3.3.1","karma":"1.7.0","karma-browserstack-launcher":"1.2.0","karma-chrome-launcher":"2.1.1","karma-coverage":"1.1.1","karma-firefox-launcher":"1.0.1","karma-jasmine":"1.1.0","karma-mocha-reporter":"2.2.3","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.3","raw-loader":"0.5.1","remap-istanbul":"0.9.5","rimraf":"2.6.1","source-map-inline-loader":"github:blackbaud-bobbyearl/source-map-inline-loader","ts-loader":"2.0.3","tslint":"5.2.0","tslint-loader":"3.5.3","typescript":"2.3.2","uglify-js":"3.0.15","webpack":"2.5.1"}}
{"name":"@blackbaud/auth-client","version":"2.7.0","description":"Provides methods for obtaining an authentication token from the Blackbaud authentication service.","main":"dist/bundles/auth-client.umd.js","module":"index.js","scripts":{"ci":"npm run test:ci && npm run build","test":"npm run lint && npm run test:unit","test:ci":"npm run test:unit:ci","test:unit":"npm run test:unit:base -- config/karma/local.karma.conf.js","test:unit:ci":"npm run test:unit:base -- config/karma/ci.karma.conf.js","test:unit:base":"node --max-old-space-size=4096 node_modules/karma/bin/karma start","pretest":"npm run lint","compress":"uglifyjs dist/bundles/auth-client.umd.js -m -o dist/bundles/auth-client.umd.min.js","build":"rimraf dist && tsc && webpack --config config/webpack/webpack.prod.config.js && npm run compress","watch":"npm run test:unit -- --auto-watch --no-single-run","lint":"tslint 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/blackbaud/auth-client.git"},"author":"Blackbaud, Inc.","license":"MIT","bugs":{"url":"https://github.com/blackbaud/auth-client/issues"},"homepage":"https://github.com/blackbaud/auth-client#readme","devDependencies":{"@types/core-js":"0.9.41","@types/jasmine":"2.5.47","@types/jasmine-ajax":"3.1.36","@types/webpack":"2.2.15","core-js":"2.4.1","fs-extra":"3.0.1","istanbul":"0.4.5","istanbul-instrumenter-loader":"0.1.0","jasmine":"2.6.0","jasmine-ajax":"3.3.1","karma":"1.7.0","karma-browserstack-launcher":"1.2.0","karma-chrome-launcher":"2.1.1","karma-coverage":"1.1.1","karma-firefox-launcher":"1.0.1","karma-jasmine":"1.1.0","karma-mocha-reporter":"2.2.3","karma-sourcemap-loader":"0.3.7","karma-webpack":"2.0.3","raw-loader":"0.5.1","remap-istanbul":"0.9.5","rimraf":"2.6.1","source-map-inline-loader":"github:blackbaud-bobbyearl/source-map-inline-loader","ts-loader":"2.0.3","tslint":"5.2.0","tslint-loader":"3.5.3","typescript":"2.3.2","uglify-js":"3.0.15","webpack":"2.5.1"}}

@@ -6,2 +6,3 @@ export * from './omnibar';

export * from './omnibar-navigation-item';
export * from './omnibar-navigation-item-display-style';
export * from './omnibar-search-args';

@@ -14,1 +15,3 @@ export * from './omnibar-search-more-results';

export * from './omnibar-notification-item';
export * from './omnibar-update-args';
export * from './theming';

@@ -8,2 +8,3 @@ "use strict";

__export(require("./omnibar-legacy"));
__export(require("./omnibar-navigation-item-display-style"));
//# sourceMappingURL=index.js.map

@@ -6,2 +6,3 @@ import { BBOmnibarNavigation } from './omnibar-navigation';

import { BBOmnibarServiceItem } from './omnibar-service-item';
import { BBOmnibarTheme } from './theming';
export interface BBOmnibarConfig {

@@ -21,2 +22,4 @@ serviceName?: string;

allowAnonymous?: boolean;
theme?: BBOmnibarTheme;
compactNavOnly?: boolean;
}
"use strict";
//#region imports
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=omnibar-config.js.map

@@ -0,6 +1,9 @@

import { BBOmnibarNavigationItemDisplayStyle } from './omnibar-navigation-item-display-style';
export interface BBOmnibarNavigationItem {
title: string;
url?: string;
icon?: string;
items?: BBOmnibarNavigationItem[];
data?: any;
displayStyle?: BBOmnibarNavigationItemDisplayStyle;
}

@@ -5,2 +5,4 @@ import { BBOmnibarNavigationItem } from './omnibar-navigation-item';

items?: BBOmnibarNavigationItem[];
specialItems?: BBOmnibarNavigationItem[];
imageUrl?: string;
}
import { BBOmnibarConfig } from './omnibar-config';
import { BBOmnibarUpdateArgs } from './omnibar-update-args';
export declare class BBOmnibar {
static load(config: BBOmnibarConfig): Promise<any>;
static update(args: BBOmnibarUpdateArgs): void;
static destroy(): void;
}
"use strict";
//#region imports
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,2 +9,3 @@ var auth_1 = require("../auth");

var dom_utility_1 = require("../shared/dom-utility");
//#endregion
var CLS_EXPANDED = 'sky-omnibar-iframe-expanded';

@@ -30,3 +32,18 @@ var CLS_LOADING = 'sky-omnibar-loading';

function addStyleEl() {
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: #4d5259;\n border-top: 5px solid #00b4f1;\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n");
var accentColor = '#00b4f1';
var backgroundColor = '#4d5259';
var theme = omnibarConfig.theme;
if (theme) {
var accent = theme.accent;
backgroundColor = theme.backgroundColor || backgroundColor;
// Explicitly check for false here since undefined represents the default
// behavior of showing the accent with the default color.
if (accent === false) {
accentColor = backgroundColor;
}
else if (accent && accent.color) {
accentColor = accent.color;
}
}
styleEl = dom_utility_1.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: " + backgroundColor + ";\n border-top: 5px solid " + accentColor + ";\n display: none;\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: \"Blackbaud Sans\", \"Open Sans\", \"Helvetica Neue\", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n");
}

@@ -178,2 +195,3 @@ function addPlaceholderEl() {

interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, {
compactNavOnly: omnibarConfig.compactNavOnly,
enableHelp: omnibarConfig.enableHelp,

@@ -187,3 +205,4 @@ envId: omnibarConfig.envId,

services: nav && nav.services,
svcId: omnibarConfig.svcId
svcId: omnibarConfig.svcId,
theme: omnibarConfig.theme
});

@@ -262,2 +281,8 @@ setupNotifications();

};
BBOmnibar.update = function (args) {
interop_1.BBAuthInterop.postOmnibarMessage(iframeEl, {
messageType: 'update',
updateArgs: args
});
};
BBOmnibar.destroy = function () {

@@ -264,0 +289,0 @@ dom_utility_1.BBAuthDomUtility.removeCss(styleEl);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc