@blackbaud/sky-addin-client
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -48,3 +48,3 @@ /******/ (() => { // webpackBootstrap | ||
__exportStar(__webpack_require__(3), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
@@ -540,2 +540,7 @@ | ||
switch (data.messageType) { | ||
case 'action-click': | ||
if (this.args.callbacks.actionClick) { | ||
this.args.callbacks.actionClick(data.message.reason); | ||
} | ||
break; | ||
case 'auth-token': | ||
@@ -817,2 +822,4 @@ case 'auth-token-fail': | ||
__exportStar(__webpack_require__(31), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(33), exports); | ||
@@ -834,17 +841,2 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -866,2 +858,17 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -1019,2 +1026,18 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 27 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinConfirmButtonStyle = void 0; | ||
@@ -1037,3 +1060,3 @@ /** | ||
/***/ }), | ||
/* 27 */ | ||
/* 29 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1046,3 +1069,3 @@ | ||
/***/ }), | ||
/* 28 */ | ||
/* 30 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1066,3 +1089,3 @@ | ||
/***/ }), | ||
/* 29 */ | ||
/* 31 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1075,3 +1098,3 @@ | ||
/***/ }), | ||
/* 30 */ | ||
/* 32 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1097,3 +1120,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 33 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1121,3 +1144,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 34 */ | ||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { | ||
@@ -1141,8 +1164,8 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
__exportStar(__webpack_require__(33), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
__exportStar(__webpack_require__(35), exports); | ||
__exportStar(__webpack_require__(36), exports); | ||
/***/ }), | ||
/* 33 */ | ||
/* 35 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1155,3 +1178,3 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 36 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1158,0 +1181,0 @@ |
@@ -1,1 +0,1 @@ | ||
(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;const s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/];class o{static getQueryString(){return window.location.search}constructor(e){this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=e=>{this.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}destroy(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)}navigate(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})}getAuthToken(){return this.getUserIdentityToken()}getUserIdentityToken(){return new Promise(((e,t)=>{const s=++this.lastAuthTokenRequestId;this.authTokenRequests[s]={reject:t,resolve:e},this.postMessageToHostPage({message:{authTokenRequestId:s},messageType:"get-auth-token"})}))}showModal(e){return{modalClosed:new Promise(((t,s)=>{const o=++this.lastModalRequestId;this.modalRequests[o]={reject:s,resolve:t},this.postMessageToHostPage({message:{args:e,modalRequestId:o},messageType:"show-modal"})}))}}closeModal(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})}openHelp(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})}showToast(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})}showFlyout(e){return{flyoutClosed:new Promise(((t,s)=>{e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,this.flyoutRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}}closeFlyout(){this.postMessageToHostPage({messageType:"close-flyout"})}showConfirm(e){return new Promise(((t,s)=>{this.confirmRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-confirm"})}))}showError(e){this.postMessageToHostPage({message:e,messageType:"show-error"})}showWait(){this.postMessageToHostPage({messageType:"show-wait"})}hideWait(){this.postMessageToHostPage({messageType:"hide-wait"})}addEventHandler(e,t){this.registeredAddinEvents[e]=t}sendEvent(e){return new Promise(((t,s)=>{const o=e.type;this.supportedEventTypes.includes(o)||s("Event type not supported");const a=this.pendingSentEvents[o];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));const i=setTimeout((()=>{delete this.pendingSentEvents[o],this.postMessageToHostPage({message:{event:e,eventRequestId:this.eventRequestId},messageType:"client-event"}),this.sentEvents[this.eventRequestId]=t,this.eventRequestId++}),200);this.pendingSentEvents[o]={reject:s,timeoutId:i}}))}initConfig(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce(((e,t)=>(e.find((e=>e.source===t.source))||e.push(t),e)),[]))}raiseAddinReadyMessage(){this.postMessageToHostPage({messageType:"ready"},"*")}handleModalClosedMessage(e){const t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0}handleAuthTokenMessage(e){const t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":const t=e.message.authToken;o.resolve(t);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0}handleMessage(e){const t=e.data;if(t&&"bb-addin-host"===t.source)if("host-ready"===t.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=t.message.supportedEventTypes,this.args.callbacks.init({context:t.message.context,envId:t.message.envId,ready:e=>{this.checkForHeightChangesOfAddinContent(),this.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:t.message.supportedEventTypes,themeSettings:t.message.themeSettings});else if(this.isFromValidOrigin(e))switch(t.messageType){case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(t);break;case"modal-closed":this.handleModalClosedMessage(t.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(t.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(t.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(t.message.themeSettings);break;case"host-event":this.processHostEvent(t.message);break;case"event-received":this.resolveClientEvent(t.message)}else this.warnInvalidOrigin()}setKnownAllowedHostOrigin(e){for(const t of this.allowedOrigins)if(t.test(e))return void(this.trustedOrigin=e)}checkForHeightChangesOfAddinContent(){const e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))}trackHeightChangesOfAddinContent(){this.heightChangeIntervalId=setInterval((()=>{this.checkForHeightChangesOfAddinContent()}),1e3)}postMessageToHostPage(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()}processHostEvent(e){const t=e.context,s=this.registeredAddinEvents[t.type];let o;o=s?this.isBlockingEventType(t.type)?new Promise((e=>{s(t.context,(()=>{e()}))})):new Promise((e=>{s(t.context),e()})):Promise.resolve(),o.then((()=>this.postEventReceivedMessage(e.eventRequestId)))}isBlockingEventType(e){switch(e){case"form-save":case"form-cancel":return!0}return!1}postEventReceivedMessage(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})}resolveClientEvent(e){const t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])}isFromValidOrigin(e){return e.origin===this.trustedOrigin}warnInvalidOrigin(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")}getQueryVariable(e){const t=o.getQueryString().substring(1).split("&");for(const s of t){const t=s.split("=");if(decodeURIComponent(t[0])===e)return decodeURIComponent(t[1])}}}t.AddinClient=o},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(714),t),a(s(819),t),a(s(676),t),a(s(233),t),a(s(455),t),a(s(407),t),a(s(75),t),a(s(258),t),a(s(413),t),a(s(954),t),a(s(663),t),a(s(542),t),a(s(610),t),a(s(95),t),a(s(581),t),a(s(342),t),a(s(790),t),a(s(212),t),a(s(88),t),a(s(90),t),a(s(948),t),a(s(756),t),a(s(468),t),a(s(545),t),a(s(993),t),a(s(518),t),a(s(590),t),a(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(220),t),a(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(903),t),a(s(142),t),a(s(57),t)}},t={},s=function s(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}(789);window.BBSkyAddinClient=s})(); | ||
(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;const s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/];class o{static getQueryString(){return window.location.search}constructor(e){this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=e=>{this.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}destroy(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)}navigate(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})}getAuthToken(){return this.getUserIdentityToken()}getUserIdentityToken(){return new Promise(((e,t)=>{const s=++this.lastAuthTokenRequestId;this.authTokenRequests[s]={reject:t,resolve:e},this.postMessageToHostPage({message:{authTokenRequestId:s},messageType:"get-auth-token"})}))}showModal(e){return{modalClosed:new Promise(((t,s)=>{const o=++this.lastModalRequestId;this.modalRequests[o]={reject:s,resolve:t},this.postMessageToHostPage({message:{args:e,modalRequestId:o},messageType:"show-modal"})}))}}closeModal(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})}openHelp(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})}showToast(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})}showFlyout(e){return{flyoutClosed:new Promise(((t,s)=>{e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,this.flyoutRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}}closeFlyout(){this.postMessageToHostPage({messageType:"close-flyout"})}showConfirm(e){return new Promise(((t,s)=>{this.confirmRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-confirm"})}))}showError(e){this.postMessageToHostPage({message:e,messageType:"show-error"})}showWait(){this.postMessageToHostPage({messageType:"show-wait"})}hideWait(){this.postMessageToHostPage({messageType:"hide-wait"})}addEventHandler(e,t){this.registeredAddinEvents[e]=t}sendEvent(e){return new Promise(((t,s)=>{const o=e.type;this.supportedEventTypes.includes(o)||s("Event type not supported");const a=this.pendingSentEvents[o];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));const i=setTimeout((()=>{delete this.pendingSentEvents[o],this.postMessageToHostPage({message:{event:e,eventRequestId:this.eventRequestId},messageType:"client-event"}),this.sentEvents[this.eventRequestId]=t,this.eventRequestId++}),200);this.pendingSentEvents[o]={reject:s,timeoutId:i}}))}initConfig(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce(((e,t)=>(e.find((e=>e.source===t.source))||e.push(t),e)),[]))}raiseAddinReadyMessage(){this.postMessageToHostPage({messageType:"ready"},"*")}handleModalClosedMessage(e){const t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0}handleAuthTokenMessage(e){const t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":const t=e.message.authToken;o.resolve(t);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0}handleMessage(e){const t=e.data;if(t&&"bb-addin-host"===t.source)if("host-ready"===t.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=t.message.supportedEventTypes,this.args.callbacks.init({context:t.message.context,envId:t.message.envId,ready:e=>{this.checkForHeightChangesOfAddinContent(),this.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:t.message.supportedEventTypes,themeSettings:t.message.themeSettings});else if(this.isFromValidOrigin(e))switch(t.messageType){case"action-click":this.args.callbacks.actionClick&&this.args.callbacks.actionClick(t.message.reason);break;case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(t);break;case"modal-closed":this.handleModalClosedMessage(t.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(t.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(t.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(t.message.themeSettings);break;case"host-event":this.processHostEvent(t.message);break;case"event-received":this.resolveClientEvent(t.message)}else this.warnInvalidOrigin()}setKnownAllowedHostOrigin(e){for(const t of this.allowedOrigins)if(t.test(e))return void(this.trustedOrigin=e)}checkForHeightChangesOfAddinContent(){const e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))}trackHeightChangesOfAddinContent(){this.heightChangeIntervalId=setInterval((()=>{this.checkForHeightChangesOfAddinContent()}),1e3)}postMessageToHostPage(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()}processHostEvent(e){const t=e.context,s=this.registeredAddinEvents[t.type];let o;o=s?this.isBlockingEventType(t.type)?new Promise((e=>{s(t.context,(()=>{e()}))})):new Promise((e=>{s(t.context),e()})):Promise.resolve(),o.then((()=>this.postEventReceivedMessage(e.eventRequestId)))}isBlockingEventType(e){switch(e){case"form-save":case"form-cancel":return!0}return!1}postEventReceivedMessage(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})}resolveClientEvent(e){const t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])}isFromValidOrigin(e){return e.origin===this.trustedOrigin}warnInvalidOrigin(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")}getQueryVariable(e){const t=o.getQueryString().substring(1).split("&");for(const s of t){const t=s.split("=");if(decodeURIComponent(t[0])===e)return decodeURIComponent(t[1])}}}t.AddinClient=o},93:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},294:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(93),t),a(s(294),t),a(s(714),t),a(s(819),t),a(s(676),t),a(s(233),t),a(s(455),t),a(s(407),t),a(s(75),t),a(s(258),t),a(s(413),t),a(s(954),t),a(s(663),t),a(s(542),t),a(s(610),t),a(s(95),t),a(s(581),t),a(s(342),t),a(s(790),t),a(s(212),t),a(s(88),t),a(s(90),t),a(s(948),t),a(s(756),t),a(s(468),t),a(s(545),t),a(s(993),t),a(s(518),t),a(s(590),t),a(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(220),t),a(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(903),t),a(s(142),t),a(s(57),t)}},t={},s=function s(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}(789);window.BBSkyAddinClient=s})(); |
@@ -48,3 +48,3 @@ /******/ (() => { // webpackBootstrap | ||
__exportStar(__webpack_require__(3), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
@@ -547,2 +547,7 @@ | ||
switch (data.messageType) { | ||
case 'action-click': | ||
if (this.args.callbacks.actionClick) { | ||
this.args.callbacks.actionClick(data.message.reason); | ||
} | ||
break; | ||
case 'auth-token': | ||
@@ -829,2 +834,4 @@ case 'auth-token-fail': | ||
__exportStar(__webpack_require__(31), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(33), exports); | ||
@@ -846,17 +853,2 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -878,2 +870,17 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -1031,2 +1038,18 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 27 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinConfirmButtonStyle = void 0; | ||
@@ -1049,3 +1072,3 @@ /** | ||
/***/ }), | ||
/* 27 */ | ||
/* 29 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1058,3 +1081,3 @@ | ||
/***/ }), | ||
/* 28 */ | ||
/* 30 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1078,3 +1101,3 @@ | ||
/***/ }), | ||
/* 29 */ | ||
/* 31 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1087,3 +1110,3 @@ | ||
/***/ }), | ||
/* 30 */ | ||
/* 32 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1109,3 +1132,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 33 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1133,3 +1156,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 34 */ | ||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { | ||
@@ -1153,8 +1176,8 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
__exportStar(__webpack_require__(33), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
__exportStar(__webpack_require__(35), exports); | ||
__exportStar(__webpack_require__(36), exports); | ||
/***/ }), | ||
/* 33 */ | ||
/* 35 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1167,3 +1190,3 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 36 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1170,0 +1193,0 @@ |
@@ -1,1 +0,1 @@ | ||
(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;var s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/],o=function(){function e(e){var t=this;this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=function(e){t.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}return e.getQueryString=function(){return window.location.search},e.prototype.destroy=function(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)},e.prototype.navigate=function(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})},e.prototype.getAuthToken=function(){return this.getUserIdentityToken()},e.prototype.getUserIdentityToken=function(){var e=this;return new Promise((function(t,s){var o=++e.lastAuthTokenRequestId;e.authTokenRequests[o]={reject:s,resolve:t},e.postMessageToHostPage({message:{authTokenRequestId:o},messageType:"get-auth-token"})}))},e.prototype.showModal=function(e){var t=this;return{modalClosed:new Promise((function(s,o){var n=++t.lastModalRequestId;t.modalRequests[n]={reject:o,resolve:s},t.postMessageToHostPage({message:{args:e,modalRequestId:n},messageType:"show-modal"})}))}},e.prototype.closeModal=function(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})},e.prototype.openHelp=function(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})},e.prototype.showToast=function(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})},e.prototype.showFlyout=function(e){var t=this;return{flyoutClosed:new Promise((function(s,o){e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,t.flyoutRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}},e.prototype.closeFlyout=function(){this.postMessageToHostPage({messageType:"close-flyout"})},e.prototype.showConfirm=function(e){var t=this;return new Promise((function(s,o){t.confirmRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-confirm"})}))},e.prototype.showError=function(e){this.postMessageToHostPage({message:e,messageType:"show-error"})},e.prototype.showWait=function(){this.postMessageToHostPage({messageType:"show-wait"})},e.prototype.hideWait=function(){this.postMessageToHostPage({messageType:"hide-wait"})},e.prototype.addEventHandler=function(e,t){this.registeredAddinEvents[e]=t},e.prototype.sendEvent=function(e){var t=this;return new Promise((function(s,o){var n=e.type;t.supportedEventTypes.includes(n)||o("Event type not supported");var a=t.pendingSentEvents[n];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));var i=setTimeout((function(){delete t.pendingSentEvents[n],t.postMessageToHostPage({message:{event:e,eventRequestId:t.eventRequestId},messageType:"client-event"}),t.sentEvents[t.eventRequestId]=s,t.eventRequestId++}),200);t.pendingSentEvents[n]={reject:o,timeoutId:i}}))},e.prototype.initConfig=function(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce((function(e,t){return e.find((function(e){return e.source===t.source}))||e.push(t),e}),[]))},e.prototype.raiseAddinReadyMessage=function(){this.postMessageToHostPage({messageType:"ready"},"*")},e.prototype.handleModalClosedMessage=function(e){var t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0},e.prototype.handleAuthTokenMessage=function(e){var t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":var n=e.message.authToken;o.resolve(n);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0},e.prototype.handleMessage=function(e){var t=this,s=e.data;if(s&&"bb-addin-host"===s.source)if("host-ready"===s.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=s.message.supportedEventTypes,this.args.callbacks.init({context:s.message.context,envId:s.message.envId,ready:function(e){t.checkForHeightChangesOfAddinContent(),t.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:s.message.supportedEventTypes,themeSettings:s.message.themeSettings});else if(this.isFromValidOrigin(e))switch(s.messageType){case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(s);break;case"modal-closed":this.handleModalClosedMessage(s.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(s.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(s.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(s.message.themeSettings);break;case"host-event":this.processHostEvent(s.message);break;case"event-received":this.resolveClientEvent(s.message)}else this.warnInvalidOrigin()},e.prototype.setKnownAllowedHostOrigin=function(e){for(var t=0,s=this.allowedOrigins;t<s.length;t++)if(s[t].test(e))return void(this.trustedOrigin=e)},e.prototype.checkForHeightChangesOfAddinContent=function(){var e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))},e.prototype.trackHeightChangesOfAddinContent=function(){var e=this;this.heightChangeIntervalId=setInterval((function(){e.checkForHeightChangesOfAddinContent()}),1e3)},e.prototype.postMessageToHostPage=function(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()},e.prototype.processHostEvent=function(e){var t=this,s=e.context,o=this.registeredAddinEvents[s.type];(o?this.isBlockingEventType(s.type)?new Promise((function(e){o(s.context,(function(){e()}))})):new Promise((function(e){o(s.context),e()})):Promise.resolve()).then((function(){return t.postEventReceivedMessage(e.eventRequestId)}))},e.prototype.isBlockingEventType=function(e){switch(e){case"form-save":case"form-cancel":return!0}return!1},e.prototype.postEventReceivedMessage=function(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})},e.prototype.resolveClientEvent=function(e){var t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])},e.prototype.isFromValidOrigin=function(e){return e.origin===this.trustedOrigin},e.prototype.warnInvalidOrigin=function(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")},e.prototype.getQueryVariable=function(t){for(var s=0,o=e.getQueryString().substring(1).split("&");s<o.length;s++){var n=o[s].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}},e}();t.AddinClient=o},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(714),t),n(s(819),t),n(s(676),t),n(s(233),t),n(s(455),t),n(s(407),t),n(s(75),t),n(s(258),t),n(s(413),t),n(s(954),t),n(s(663),t),n(s(542),t),n(s(610),t),n(s(95),t),n(s(581),t),n(s(342),t),n(s(790),t),n(s(212),t),n(s(88),t),n(s(90),t),n(s(948),t),n(s(756),t),n(s(468),t),n(s(545),t),n(s(993),t),n(s(518),t),n(s(590),t),n(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(220),t),n(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(903),t),n(s(142),t),n(s(57),t)}},t={},s=function s(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,s),a.exports}(789);window.BBSkyAddinClient=s})(); | ||
(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;var s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/],o=function(){function e(e){var t=this;this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=function(e){t.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}return e.getQueryString=function(){return window.location.search},e.prototype.destroy=function(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)},e.prototype.navigate=function(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})},e.prototype.getAuthToken=function(){return this.getUserIdentityToken()},e.prototype.getUserIdentityToken=function(){var e=this;return new Promise((function(t,s){var o=++e.lastAuthTokenRequestId;e.authTokenRequests[o]={reject:s,resolve:t},e.postMessageToHostPage({message:{authTokenRequestId:o},messageType:"get-auth-token"})}))},e.prototype.showModal=function(e){var t=this;return{modalClosed:new Promise((function(s,o){var n=++t.lastModalRequestId;t.modalRequests[n]={reject:o,resolve:s},t.postMessageToHostPage({message:{args:e,modalRequestId:n},messageType:"show-modal"})}))}},e.prototype.closeModal=function(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})},e.prototype.openHelp=function(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})},e.prototype.showToast=function(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})},e.prototype.showFlyout=function(e){var t=this;return{flyoutClosed:new Promise((function(s,o){e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,t.flyoutRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}},e.prototype.closeFlyout=function(){this.postMessageToHostPage({messageType:"close-flyout"})},e.prototype.showConfirm=function(e){var t=this;return new Promise((function(s,o){t.confirmRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-confirm"})}))},e.prototype.showError=function(e){this.postMessageToHostPage({message:e,messageType:"show-error"})},e.prototype.showWait=function(){this.postMessageToHostPage({messageType:"show-wait"})},e.prototype.hideWait=function(){this.postMessageToHostPage({messageType:"hide-wait"})},e.prototype.addEventHandler=function(e,t){this.registeredAddinEvents[e]=t},e.prototype.sendEvent=function(e){var t=this;return new Promise((function(s,o){var n=e.type;t.supportedEventTypes.includes(n)||o("Event type not supported");var a=t.pendingSentEvents[n];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));var i=setTimeout((function(){delete t.pendingSentEvents[n],t.postMessageToHostPage({message:{event:e,eventRequestId:t.eventRequestId},messageType:"client-event"}),t.sentEvents[t.eventRequestId]=s,t.eventRequestId++}),200);t.pendingSentEvents[n]={reject:o,timeoutId:i}}))},e.prototype.initConfig=function(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce((function(e,t){return e.find((function(e){return e.source===t.source}))||e.push(t),e}),[]))},e.prototype.raiseAddinReadyMessage=function(){this.postMessageToHostPage({messageType:"ready"},"*")},e.prototype.handleModalClosedMessage=function(e){var t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0},e.prototype.handleAuthTokenMessage=function(e){var t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":var n=e.message.authToken;o.resolve(n);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0},e.prototype.handleMessage=function(e){var t=this,s=e.data;if(s&&"bb-addin-host"===s.source)if("host-ready"===s.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=s.message.supportedEventTypes,this.args.callbacks.init({context:s.message.context,envId:s.message.envId,ready:function(e){t.checkForHeightChangesOfAddinContent(),t.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:s.message.supportedEventTypes,themeSettings:s.message.themeSettings});else if(this.isFromValidOrigin(e))switch(s.messageType){case"action-click":this.args.callbacks.actionClick&&this.args.callbacks.actionClick(s.message.reason);break;case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(s);break;case"modal-closed":this.handleModalClosedMessage(s.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(s.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(s.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(s.message.themeSettings);break;case"host-event":this.processHostEvent(s.message);break;case"event-received":this.resolveClientEvent(s.message)}else this.warnInvalidOrigin()},e.prototype.setKnownAllowedHostOrigin=function(e){for(var t=0,s=this.allowedOrigins;t<s.length;t++)if(s[t].test(e))return void(this.trustedOrigin=e)},e.prototype.checkForHeightChangesOfAddinContent=function(){var e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))},e.prototype.trackHeightChangesOfAddinContent=function(){var e=this;this.heightChangeIntervalId=setInterval((function(){e.checkForHeightChangesOfAddinContent()}),1e3)},e.prototype.postMessageToHostPage=function(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()},e.prototype.processHostEvent=function(e){var t=this,s=e.context,o=this.registeredAddinEvents[s.type];(o?this.isBlockingEventType(s.type)?new Promise((function(e){o(s.context,(function(){e()}))})):new Promise((function(e){o(s.context),e()})):Promise.resolve()).then((function(){return t.postEventReceivedMessage(e.eventRequestId)}))},e.prototype.isBlockingEventType=function(e){switch(e){case"form-save":case"form-cancel":return!0}return!1},e.prototype.postEventReceivedMessage=function(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})},e.prototype.resolveClientEvent=function(e){var t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])},e.prototype.isFromValidOrigin=function(e){return e.origin===this.trustedOrigin},e.prototype.warnInvalidOrigin=function(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")},e.prototype.getQueryVariable=function(t){for(var s=0,o=e.getQueryString().substring(1).split("&");s<o.length;s++){var n=o[s].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}},e}();t.AddinClient=o},93:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},294:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(93),t),n(s(294),t),n(s(714),t),n(s(819),t),n(s(676),t),n(s(233),t),n(s(455),t),n(s(407),t),n(s(75),t),n(s(258),t),n(s(413),t),n(s(954),t),n(s(663),t),n(s(542),t),n(s(610),t),n(s(95),t),n(s(581),t),n(s(342),t),n(s(790),t),n(s(212),t),n(s(88),t),n(s(90),t),n(s(948),t),n(s(756),t),n(s(468),t),n(s(545),t),n(s(993),t),n(s(518),t),n(s(590),t),n(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(220),t),n(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(903),t),n(s(142),t),n(s(57),t)}},t={},s=function s(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,s),a.exports}(789);window.BBSkyAddinClient=s})(); |
@@ -58,3 +58,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
__exportStar(__webpack_require__(3), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
@@ -550,2 +550,7 @@ | ||
switch (data.messageType) { | ||
case 'action-click': | ||
if (this.args.callbacks.actionClick) { | ||
this.args.callbacks.actionClick(data.message.reason); | ||
} | ||
break; | ||
case 'auth-token': | ||
@@ -827,2 +832,4 @@ case 'auth-token-fail': | ||
__exportStar(__webpack_require__(31), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(33), exports); | ||
@@ -844,17 +851,2 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -876,2 +868,17 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -1029,2 +1036,18 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 27 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinConfirmButtonStyle = void 0; | ||
@@ -1047,3 +1070,3 @@ /** | ||
/***/ }), | ||
/* 27 */ | ||
/* 29 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1056,3 +1079,3 @@ | ||
/***/ }), | ||
/* 28 */ | ||
/* 30 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1076,3 +1099,3 @@ | ||
/***/ }), | ||
/* 29 */ | ||
/* 31 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1085,3 +1108,3 @@ | ||
/***/ }), | ||
/* 30 */ | ||
/* 32 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1107,3 +1130,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 33 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1131,3 +1154,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 34 */ | ||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { | ||
@@ -1151,8 +1174,8 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
__exportStar(__webpack_require__(33), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
__exportStar(__webpack_require__(35), exports); | ||
__exportStar(__webpack_require__(36), exports); | ||
/***/ }), | ||
/* 33 */ | ||
/* 35 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1165,3 +1188,3 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 36 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1168,0 +1191,0 @@ |
@@ -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.BBSkyAddinClient=t():e.BBSkyAddinClient=t()}(self,(()=>(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;const s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/];class o{static getQueryString(){return window.location.search}constructor(e){this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=e=>{this.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}destroy(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)}navigate(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})}getAuthToken(){return this.getUserIdentityToken()}getUserIdentityToken(){return new Promise(((e,t)=>{const s=++this.lastAuthTokenRequestId;this.authTokenRequests[s]={reject:t,resolve:e},this.postMessageToHostPage({message:{authTokenRequestId:s},messageType:"get-auth-token"})}))}showModal(e){return{modalClosed:new Promise(((t,s)=>{const o=++this.lastModalRequestId;this.modalRequests[o]={reject:s,resolve:t},this.postMessageToHostPage({message:{args:e,modalRequestId:o},messageType:"show-modal"})}))}}closeModal(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})}openHelp(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})}showToast(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})}showFlyout(e){return{flyoutClosed:new Promise(((t,s)=>{e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,this.flyoutRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}}closeFlyout(){this.postMessageToHostPage({messageType:"close-flyout"})}showConfirm(e){return new Promise(((t,s)=>{this.confirmRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-confirm"})}))}showError(e){this.postMessageToHostPage({message:e,messageType:"show-error"})}showWait(){this.postMessageToHostPage({messageType:"show-wait"})}hideWait(){this.postMessageToHostPage({messageType:"hide-wait"})}addEventHandler(e,t){this.registeredAddinEvents[e]=t}sendEvent(e){return new Promise(((t,s)=>{const o=e.type;this.supportedEventTypes.includes(o)||s("Event type not supported");const a=this.pendingSentEvents[o];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));const n=setTimeout((()=>{delete this.pendingSentEvents[o],this.postMessageToHostPage({message:{event:e,eventRequestId:this.eventRequestId},messageType:"client-event"}),this.sentEvents[this.eventRequestId]=t,this.eventRequestId++}),200);this.pendingSentEvents[o]={reject:s,timeoutId:n}}))}initConfig(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce(((e,t)=>(e.find((e=>e.source===t.source))||e.push(t),e)),[]))}raiseAddinReadyMessage(){this.postMessageToHostPage({messageType:"ready"},"*")}handleModalClosedMessage(e){const t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0}handleAuthTokenMessage(e){const t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":const t=e.message.authToken;o.resolve(t);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0}handleMessage(e){const t=e.data;if(t&&"bb-addin-host"===t.source)if("host-ready"===t.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=t.message.supportedEventTypes,this.args.callbacks.init({context:t.message.context,envId:t.message.envId,ready:e=>{this.checkForHeightChangesOfAddinContent(),this.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:t.message.supportedEventTypes,themeSettings:t.message.themeSettings});else if(this.isFromValidOrigin(e))switch(t.messageType){case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(t);break;case"modal-closed":this.handleModalClosedMessage(t.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(t.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(t.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(t.message.themeSettings);break;case"host-event":this.processHostEvent(t.message);break;case"event-received":this.resolveClientEvent(t.message)}else this.warnInvalidOrigin()}setKnownAllowedHostOrigin(e){for(const t of this.allowedOrigins)if(t.test(e))return void(this.trustedOrigin=e)}checkForHeightChangesOfAddinContent(){const e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))}trackHeightChangesOfAddinContent(){this.heightChangeIntervalId=setInterval((()=>{this.checkForHeightChangesOfAddinContent()}),1e3)}postMessageToHostPage(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()}processHostEvent(e){const t=e.context,s=this.registeredAddinEvents[t.type];let o;o=s?this.isBlockingEventType(t.type)?new Promise((e=>{s(t.context,(()=>{e()}))})):new Promise((e=>{s(t.context),e()})):Promise.resolve(),o.then((()=>this.postEventReceivedMessage(e.eventRequestId)))}isBlockingEventType(e){switch(e){case"form-save":case"form-cancel":return!0}return!1}postEventReceivedMessage(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})}resolveClientEvent(e){const t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])}isFromValidOrigin(e){return e.origin===this.trustedOrigin}warnInvalidOrigin(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")}getQueryVariable(e){const t=o.getQueryString().substring(1).split("&");for(const s of t){const t=s.split("=");if(decodeURIComponent(t[0])===e)return decodeURIComponent(t[1])}}}t.AddinClient=o},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(714),t),a(s(819),t),a(s(676),t),a(s(233),t),a(s(455),t),a(s(407),t),a(s(75),t),a(s(258),t),a(s(413),t),a(s(954),t),a(s(663),t),a(s(542),t),a(s(610),t),a(s(95),t),a(s(581),t),a(s(342),t),a(s(790),t),a(s(212),t),a(s(88),t),a(s(90),t),a(s(948),t),a(s(756),t),a(s(468),t),a(s(545),t),a(s(993),t),a(s(518),t),a(s(590),t),a(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(220),t),a(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(903),t),a(s(142),t),a(s(57),t)}},t={};return function s(o){var a=t[o];if(void 0!==a)return a.exports;var n=t[o]={exports:{}};return e[o].call(n.exports,n,n.exports,s),n.exports}(789)})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBSkyAddinClient=t():e.BBSkyAddinClient=t()}(self,(()=>(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;const s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/];class o{static getQueryString(){return window.location.search}constructor(e){this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=e=>{this.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}destroy(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)}navigate(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})}getAuthToken(){return this.getUserIdentityToken()}getUserIdentityToken(){return new Promise(((e,t)=>{const s=++this.lastAuthTokenRequestId;this.authTokenRequests[s]={reject:t,resolve:e},this.postMessageToHostPage({message:{authTokenRequestId:s},messageType:"get-auth-token"})}))}showModal(e){return{modalClosed:new Promise(((t,s)=>{const o=++this.lastModalRequestId;this.modalRequests[o]={reject:s,resolve:t},this.postMessageToHostPage({message:{args:e,modalRequestId:o},messageType:"show-modal"})}))}}closeModal(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})}openHelp(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})}showToast(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})}showFlyout(e){return{flyoutClosed:new Promise(((t,s)=>{e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,this.flyoutRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}}closeFlyout(){this.postMessageToHostPage({messageType:"close-flyout"})}showConfirm(e){return new Promise(((t,s)=>{this.confirmRequest={reject:s,resolve:t},this.postMessageToHostPage({message:e,messageType:"show-confirm"})}))}showError(e){this.postMessageToHostPage({message:e,messageType:"show-error"})}showWait(){this.postMessageToHostPage({messageType:"show-wait"})}hideWait(){this.postMessageToHostPage({messageType:"hide-wait"})}addEventHandler(e,t){this.registeredAddinEvents[e]=t}sendEvent(e){return new Promise(((t,s)=>{const o=e.type;this.supportedEventTypes.includes(o)||s("Event type not supported");const a=this.pendingSentEvents[o];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));const i=setTimeout((()=>{delete this.pendingSentEvents[o],this.postMessageToHostPage({message:{event:e,eventRequestId:this.eventRequestId},messageType:"client-event"}),this.sentEvents[this.eventRequestId]=t,this.eventRequestId++}),200);this.pendingSentEvents[o]={reject:s,timeoutId:i}}))}initConfig(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce(((e,t)=>(e.find((e=>e.source===t.source))||e.push(t),e)),[]))}raiseAddinReadyMessage(){this.postMessageToHostPage({messageType:"ready"},"*")}handleModalClosedMessage(e){const t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0}handleAuthTokenMessage(e){const t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":const t=e.message.authToken;o.resolve(t);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0}handleMessage(e){const t=e.data;if(t&&"bb-addin-host"===t.source)if("host-ready"===t.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=t.message.supportedEventTypes,this.args.callbacks.init({context:t.message.context,envId:t.message.envId,ready:e=>{this.checkForHeightChangesOfAddinContent(),this.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:t.message.supportedEventTypes,themeSettings:t.message.themeSettings});else if(this.isFromValidOrigin(e))switch(t.messageType){case"action-click":this.args.callbacks.actionClick&&this.args.callbacks.actionClick(t.message.reason);break;case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(t);break;case"modal-closed":this.handleModalClosedMessage(t.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(t.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(t.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(t.message.themeSettings);break;case"host-event":this.processHostEvent(t.message);break;case"event-received":this.resolveClientEvent(t.message)}else this.warnInvalidOrigin()}setKnownAllowedHostOrigin(e){for(const t of this.allowedOrigins)if(t.test(e))return void(this.trustedOrigin=e)}checkForHeightChangesOfAddinContent(){const e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))}trackHeightChangesOfAddinContent(){this.heightChangeIntervalId=setInterval((()=>{this.checkForHeightChangesOfAddinContent()}),1e3)}postMessageToHostPage(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()}processHostEvent(e){const t=e.context,s=this.registeredAddinEvents[t.type];let o;o=s?this.isBlockingEventType(t.type)?new Promise((e=>{s(t.context,(()=>{e()}))})):new Promise((e=>{s(t.context),e()})):Promise.resolve(),o.then((()=>this.postEventReceivedMessage(e.eventRequestId)))}isBlockingEventType(e){switch(e){case"form-save":case"form-cancel":return!0}return!1}postEventReceivedMessage(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})}resolveClientEvent(e){const t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])}isFromValidOrigin(e){return e.origin===this.trustedOrigin}warnInvalidOrigin(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")}getQueryVariable(e){const t=o.getQueryString().substring(1).split("&");for(const s of t){const t=s.split("=");if(decodeURIComponent(t[0])===e)return decodeURIComponent(t[1])}}}t.AddinClient=o},93:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},294:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(93),t),a(s(294),t),a(s(714),t),a(s(819),t),a(s(676),t),a(s(233),t),a(s(455),t),a(s(407),t),a(s(75),t),a(s(258),t),a(s(413),t),a(s(954),t),a(s(663),t),a(s(542),t),a(s(610),t),a(s(95),t),a(s(581),t),a(s(342),t),a(s(790),t),a(s(212),t),a(s(88),t),a(s(90),t),a(s(948),t),a(s(756),t),a(s(468),t),a(s(545),t),a(s(993),t),a(s(518),t),a(s(590),t),a(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(220),t),a(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,a)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(903),t),a(s(142),t),a(s(57),t)}},t={};return function s(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}(789)})())); |
@@ -58,3 +58,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
__exportStar(__webpack_require__(3), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
@@ -557,2 +557,7 @@ | ||
switch (data.messageType) { | ||
case 'action-click': | ||
if (this.args.callbacks.actionClick) { | ||
this.args.callbacks.actionClick(data.message.reason); | ||
} | ||
break; | ||
case 'auth-token': | ||
@@ -839,2 +844,4 @@ case 'auth-token-fail': | ||
__exportStar(__webpack_require__(31), exports); | ||
__exportStar(__webpack_require__(32), exports); | ||
__exportStar(__webpack_require__(33), exports); | ||
@@ -856,17 +863,2 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -888,2 +880,17 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinButtonStyle = void 0; | ||
/* | ||
* Defines the style of the button | ||
*/ | ||
var AddinButtonStyle; | ||
(function (AddinButtonStyle) { | ||
// No style (default) | ||
AddinButtonStyle[AddinButtonStyle["None"] = 0] = "None"; | ||
// The button represents an "add" operation | ||
AddinButtonStyle[AddinButtonStyle["Add"] = 1] = "Add"; | ||
// The button represents an "edit" operation | ||
AddinButtonStyle[AddinButtonStyle["Edit"] = 2] = "Edit"; | ||
// The button represents a "delete" operation | ||
AddinButtonStyle[AddinButtonStyle["Delete"] = 3] = "Delete"; | ||
})(AddinButtonStyle = exports.AddinButtonStyle || (exports.AddinButtonStyle = {})); | ||
@@ -1041,2 +1048,18 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 27 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
/***/ }), | ||
/* 28 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.AddinConfirmButtonStyle = void 0; | ||
@@ -1059,3 +1082,3 @@ /** | ||
/***/ }), | ||
/* 27 */ | ||
/* 29 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1068,3 +1091,3 @@ | ||
/***/ }), | ||
/* 28 */ | ||
/* 30 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1088,3 +1111,3 @@ | ||
/***/ }), | ||
/* 29 */ | ||
/* 31 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1097,3 +1120,3 @@ | ||
/***/ }), | ||
/* 30 */ | ||
/* 32 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1119,3 +1142,3 @@ | ||
/***/ }), | ||
/* 31 */ | ||
/* 33 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1143,3 +1166,3 @@ | ||
/***/ }), | ||
/* 32 */ | ||
/* 34 */ | ||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) { | ||
@@ -1163,8 +1186,8 @@ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
__exportStar(__webpack_require__(33), exports); | ||
__exportStar(__webpack_require__(34), exports); | ||
__exportStar(__webpack_require__(35), exports); | ||
__exportStar(__webpack_require__(36), exports); | ||
/***/ }), | ||
/* 33 */ | ||
/* 35 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1177,3 +1200,3 @@ | ||
/***/ }), | ||
/* 34 */ | ||
/* 36 */ | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -1180,0 +1203,0 @@ |
@@ -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.BBSkyAddinClient=t():e.BBSkyAddinClient=t()}(self,(()=>(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;var s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/],o=function(){function e(e){var t=this;this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=function(e){t.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}return e.getQueryString=function(){return window.location.search},e.prototype.destroy=function(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)},e.prototype.navigate=function(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})},e.prototype.getAuthToken=function(){return this.getUserIdentityToken()},e.prototype.getUserIdentityToken=function(){var e=this;return new Promise((function(t,s){var o=++e.lastAuthTokenRequestId;e.authTokenRequests[o]={reject:s,resolve:t},e.postMessageToHostPage({message:{authTokenRequestId:o},messageType:"get-auth-token"})}))},e.prototype.showModal=function(e){var t=this;return{modalClosed:new Promise((function(s,o){var n=++t.lastModalRequestId;t.modalRequests[n]={reject:o,resolve:s},t.postMessageToHostPage({message:{args:e,modalRequestId:n},messageType:"show-modal"})}))}},e.prototype.closeModal=function(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})},e.prototype.openHelp=function(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})},e.prototype.showToast=function(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})},e.prototype.showFlyout=function(e){var t=this;return{flyoutClosed:new Promise((function(s,o){e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,t.flyoutRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}},e.prototype.closeFlyout=function(){this.postMessageToHostPage({messageType:"close-flyout"})},e.prototype.showConfirm=function(e){var t=this;return new Promise((function(s,o){t.confirmRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-confirm"})}))},e.prototype.showError=function(e){this.postMessageToHostPage({message:e,messageType:"show-error"})},e.prototype.showWait=function(){this.postMessageToHostPage({messageType:"show-wait"})},e.prototype.hideWait=function(){this.postMessageToHostPage({messageType:"hide-wait"})},e.prototype.addEventHandler=function(e,t){this.registeredAddinEvents[e]=t},e.prototype.sendEvent=function(e){var t=this;return new Promise((function(s,o){var n=e.type;t.supportedEventTypes.includes(n)||o("Event type not supported");var i=t.pendingSentEvents[n];i&&(clearTimeout(i.timeoutId),i.reject("Event cancelled"));var a=setTimeout((function(){delete t.pendingSentEvents[n],t.postMessageToHostPage({message:{event:e,eventRequestId:t.eventRequestId},messageType:"client-event"}),t.sentEvents[t.eventRequestId]=s,t.eventRequestId++}),200);t.pendingSentEvents[n]={reject:o,timeoutId:a}}))},e.prototype.initConfig=function(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce((function(e,t){return e.find((function(e){return e.source===t.source}))||e.push(t),e}),[]))},e.prototype.raiseAddinReadyMessage=function(){this.postMessageToHostPage({messageType:"ready"},"*")},e.prototype.handleModalClosedMessage=function(e){var t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0},e.prototype.handleAuthTokenMessage=function(e){var t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":var n=e.message.authToken;o.resolve(n);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0},e.prototype.handleMessage=function(e){var t=this,s=e.data;if(s&&"bb-addin-host"===s.source)if("host-ready"===s.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=s.message.supportedEventTypes,this.args.callbacks.init({context:s.message.context,envId:s.message.envId,ready:function(e){t.checkForHeightChangesOfAddinContent(),t.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:s.message.supportedEventTypes,themeSettings:s.message.themeSettings});else if(this.isFromValidOrigin(e))switch(s.messageType){case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(s);break;case"modal-closed":this.handleModalClosedMessage(s.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(s.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(s.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(s.message.themeSettings);break;case"host-event":this.processHostEvent(s.message);break;case"event-received":this.resolveClientEvent(s.message)}else this.warnInvalidOrigin()},e.prototype.setKnownAllowedHostOrigin=function(e){for(var t=0,s=this.allowedOrigins;t<s.length;t++)if(s[t].test(e))return void(this.trustedOrigin=e)},e.prototype.checkForHeightChangesOfAddinContent=function(){var e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))},e.prototype.trackHeightChangesOfAddinContent=function(){var e=this;this.heightChangeIntervalId=setInterval((function(){e.checkForHeightChangesOfAddinContent()}),1e3)},e.prototype.postMessageToHostPage=function(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()},e.prototype.processHostEvent=function(e){var t=this,s=e.context,o=this.registeredAddinEvents[s.type];(o?this.isBlockingEventType(s.type)?new Promise((function(e){o(s.context,(function(){e()}))})):new Promise((function(e){o(s.context),e()})):Promise.resolve()).then((function(){return t.postEventReceivedMessage(e.eventRequestId)}))},e.prototype.isBlockingEventType=function(e){switch(e){case"form-save":case"form-cancel":return!0}return!1},e.prototype.postEventReceivedMessage=function(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})},e.prototype.resolveClientEvent=function(e){var t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])},e.prototype.isFromValidOrigin=function(e){return e.origin===this.trustedOrigin},e.prototype.warnInvalidOrigin=function(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")},e.prototype.getQueryVariable=function(t){for(var s=0,o=e.getQueryString().substring(1).split("&");s<o.length;s++){var n=o[s].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}},e}();t.AddinClient=o},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(714),t),n(s(819),t),n(s(676),t),n(s(233),t),n(s(455),t),n(s(407),t),n(s(75),t),n(s(258),t),n(s(413),t),n(s(954),t),n(s(663),t),n(s(542),t),n(s(610),t),n(s(95),t),n(s(581),t),n(s(342),t),n(s(790),t),n(s(212),t),n(s(88),t),n(s(90),t),n(s(948),t),n(s(756),t),n(s(468),t),n(s(545),t),n(s(993),t),n(s(518),t),n(s(590),t),n(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(220),t),n(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(903),t),n(s(142),t),n(s(57),t)}},t={};return function s(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,s),i.exports}(789)})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBSkyAddinClient=t():e.BBSkyAddinClient=t()}(self,(()=>(()=>{"use strict";var e={789:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(983),t)},903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddinClient=void 0;var s=[/^https\:\/\/[\w\-\.]+\.blackbaud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^http\:\/\/[\w\-\.]+\.blackbaud\-dev\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudhosting\.com$/,/^https\:\/\/[\w\-\.]+\.bbcloudservices\.com$/,/^https\:\/\/localhost(\:[0-9]+)?$/,/^https\:\/\/secure[2|3|8]\.convio\.net$/,/^https\:\/\/testweb\.convio\.com$/,/^https\:\/\/[\w\-\.]+\.conviocloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudcloud\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudfaith\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudportal\.com$/,/^https\:\/\/[\w\-\.]+\.bbk12\.com$/,/^https\:\/\/[\w\-\.]+\.mycampus\-app\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolapp\.com$/,/^https\:\/\/[\w\-\.]+\.myschoolautomation\.com$/,/^https\:\/\/[\w\-\.]+\.myschooldemo\.com$/,/^https\:\/\/[\w\-\.]+\.myschooltraining\.com$/,/^https\:\/\/[\w\-\.]+\.blackbaudwp\.com$/,/^https\:\/\/[\w\-\.]+\.carrytheload\.org$/,/^https\:\/\/[\w\-\.]+\.ummsfoundation\.org$/,/^http\:\/\/[\w\-\.]+\.lcrf\.org$/,/^https\:\/\/[\w\-\.]+\.go2\.org$/,/^https\:\/\/[\w\-\.]+\.nationwidechildrens\.org$/,/^https\:\/\/[\w\-\.]+\.lupus\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.ca$/,/^https\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.ontariospca\.ca$/,/^https\:\/\/[\w\-\.]+\.brighamandwomens\.org$/,/^https\:\/\/[\w\-\.]+\.northernlighthealth\.org$/,/^http\:\/\/[\w\-\.]+\.convio\.net$/,/^https\:\/\/[\w\-\.]+\.alpha1\.org$/,/^https\:\/\/[\w\-\.]+\.pscpartners\.org$/,/^https\:\/\/[\w\-\.]+\.mercyforanimals\.org$/,/^https\:\/\/[\w\-\.]+\.braintumor\.org$/,/^https\:\/\/[\w\-\.]+\.cancer\.ca$/,/^https\:\/\/[\w\-\.]+\.phoenixchildrensfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.ocmc\.org$/,/^https\:\/\/[\w\-\.]+\.stlouischildrens\.org$/,/^https\:\/\/[\w\-\.]+\.choa\.org$/,/^https\:\/\/[\w\-\.]+\.acsevents\.org$/,/^https\:\/\/[\w\-\.]+\.operationsmile\.org$/,/^https\:\/\/[\w\-\.]+\.mdmercy\.com$/,/^https\:\/\/[\w\-\.]+\.cookchildrens\.org$/,/^https\:\/\/[\w\-\.]+\.chla\.org$/,/^https\:\/\/[\w\-\.]+\.nleomf\.org$/,/^https\:\/\/[\w\-\.]+\.pwatoronto\.org$/,/^https\:\/\/[\w\-\.]+\.jfsla\.org$/,/^https\:\/\/[\w\-\.]+\.roswellpark\.org$/,/^https\:\/\/[\w\-\.]+\.alsagoldenwest\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.alsnc\.org$/,/^https\:\/\/[\w\-\.]+\.alsanm\.org$/,/^https\:\/\/[\w\-\.]+\.waysidewaifs\.org$/,/^https\:\/\/[\w\-\.]+\.bladdercancercanada\.org$/,/^https\:\/\/[\w\-\.]+\.jimmyfund\.org$/,/^https\:\/\/[\w\-\.]+\.info\-komen\.org$/,/^https\:\/\/[\w\-\.]+\.mountsinai\.org$/,/^https\:\/\/[\w\-\.]+\.walkforpd\.ca$/,/^https\:\/\/[\w\-\.]+\.alsoregon\.org$/,/^https\:\/\/[\w\-\.]+\.feedhopenow\.org$/,/^https\:\/\/[\w\-\.]+\.trilliumgiving\.ca$/,/^https\:\/\/[\w\-\.]+\.swimacrossamerica\.org$/,/^https\:\/\/ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.ovariancanada\.org$/,/^https\:\/\/[\w\-\.]+\.alsunitedchicago\.org$/,/^https\:\/\/[\w\-\.]+\.fredhutch\.org$/,/^https\:\/\/[\w\-\.]+\.hss\.edu$/,/^https\:\/\/[\w\-\.]+\.nyghfoundation\.ca$/,/^https\:\/\/[\w\-\.]+\.natureconservancy\.ca$/,/^https\:\/\/[\w\-\.]+\.llscanada\.org$/,/^https\:\/\/[\w\-\.]+\.als\-ny\.org$/,/^https\:\/\/[\w\-\.]+\.zerocancer\.org$/,/^https\:\/\/[\w\-\.]+\.alsmidatlantic\.org$/,/^https\:\/\/[\w\-\.]+\.habitat\.ca$/,/^https\:\/\/[\w\-\.]+\.stamfordhospitalfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.alsohio\.org$/,/^https\:\/\/[\w\-\.]+\.cancercarefdn\.mb\.ca$/,/^https\:\/\/[\w\-\.]+\.baycrestfoundation\.org$/,/^https\:\/\/[\w\-\.]+\.southlake\.ca$/,/^https\:\/\/[\w\-\.]+\.parkinson\.ca$/],o=function(){function e(e){var t=this;this.args=e,this.authTokenRequests=[],this.lastAuthTokenRequestId=0,this.modalRequests=[],this.lastModalRequestId=0,this.registeredAddinEvents={},this.sentEvents={},this.pendingSentEvents={},this.eventRequestId=0,this.supportedEventTypes=[],this.allowedOrigins=s,this.initConfig(e.config),this.windowMessageHandler=function(e){t.handleMessage(e)},window.addEventListener("message",this.windowMessageHandler),this.raiseAddinReadyMessage()}return e.getQueryString=function(){return window.location.search},e.prototype.destroy=function(){window.removeEventListener("message",this.windowMessageHandler),this.heightChangeIntervalId&&clearInterval(this.heightChangeIntervalId)},e.prototype.navigate=function(e){this.postMessageToHostPage({message:{url:e.url},messageType:"navigate"})},e.prototype.getAuthToken=function(){return this.getUserIdentityToken()},e.prototype.getUserIdentityToken=function(){var e=this;return new Promise((function(t,s){var o=++e.lastAuthTokenRequestId;e.authTokenRequests[o]={reject:s,resolve:t},e.postMessageToHostPage({message:{authTokenRequestId:o},messageType:"get-auth-token"})}))},e.prototype.showModal=function(e){var t=this;return{modalClosed:new Promise((function(s,o){var n=++t.lastModalRequestId;t.modalRequests[n]={reject:o,resolve:s},t.postMessageToHostPage({message:{args:e,modalRequestId:n},messageType:"show-modal"})}))}},e.prototype.closeModal=function(e){this.postMessageToHostPage({message:e,messageType:"close-modal"})},e.prototype.openHelp=function(e){this.postMessageToHostPage({message:{helpKey:e.helpKey},messageType:"open-help"})},e.prototype.showToast=function(e){this.postMessageToHostPage({message:e,messageType:"show-toast"})},e.prototype.showFlyout=function(e){var t=this;return{flyoutClosed:new Promise((function(s,o){e.defaultWidth=e.defaultWidth,e.maxWidth=e.maxWidth,e.minWidth=e.minWidth,t.flyoutRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-flyout"})}))}},e.prototype.closeFlyout=function(){this.postMessageToHostPage({messageType:"close-flyout"})},e.prototype.showConfirm=function(e){var t=this;return new Promise((function(s,o){t.confirmRequest={reject:o,resolve:s},t.postMessageToHostPage({message:e,messageType:"show-confirm"})}))},e.prototype.showError=function(e){this.postMessageToHostPage({message:e,messageType:"show-error"})},e.prototype.showWait=function(){this.postMessageToHostPage({messageType:"show-wait"})},e.prototype.hideWait=function(){this.postMessageToHostPage({messageType:"hide-wait"})},e.prototype.addEventHandler=function(e,t){this.registeredAddinEvents[e]=t},e.prototype.sendEvent=function(e){var t=this;return new Promise((function(s,o){var n=e.type;t.supportedEventTypes.includes(n)||o("Event type not supported");var a=t.pendingSentEvents[n];a&&(clearTimeout(a.timeoutId),a.reject("Event cancelled"));var i=setTimeout((function(){delete t.pendingSentEvents[n],t.postMessageToHostPage({message:{event:e,eventRequestId:t.eventRequestId},messageType:"client-event"}),t.sentEvents[t.eventRequestId]=s,t.eventRequestId++}),200);t.pendingSentEvents[n]={reject:o,timeoutId:i}}))},e.prototype.initConfig=function(e){var t;(null===(t=null==e?void 0:e.allowedOrigins)||void 0===t?void 0:t.length)>0&&(this.allowedOrigins=this.allowedOrigins.concat(e.allowedOrigins),this.allowedOrigins=this.allowedOrigins.reduce((function(e,t){return e.find((function(e){return e.source===t.source}))||e.push(t),e}),[]))},e.prototype.raiseAddinReadyMessage=function(){this.postMessageToHostPage({messageType:"ready"},"*")},e.prototype.handleModalClosedMessage=function(e){var t=this.modalRequests,s=e.modalRequestId;t[s].resolve(e.context),t[s]=void 0},e.prototype.handleAuthTokenMessage=function(e){var t=this.authTokenRequests,s=e.message.authTokenRequestId,o=t[s];switch(e.messageType){case"auth-token":var n=e.message.authToken;o.resolve(n);break;case"auth-token-fail":o.reject(e.message.reason)}t[s]=void 0},e.prototype.handleMessage=function(e){var t=this,s=e.data;if(s&&"bb-addin-host"===s.source)if("host-ready"===s.messageType)this.setKnownAllowedHostOrigin(e.origin),this.trackHeightChangesOfAddinContent(),this.supportedEventTypes=s.message.supportedEventTypes,this.args.callbacks.init({context:s.message.context,envId:s.message.envId,ready:function(e){t.checkForHeightChangesOfAddinContent(),t.postMessageToHostPage({message:e,messageType:"addin-ready"})},supportedEventTypes:s.message.supportedEventTypes,themeSettings:s.message.themeSettings});else if(this.isFromValidOrigin(e))switch(s.messageType){case"action-click":this.args.callbacks.actionClick&&this.args.callbacks.actionClick(s.message.reason);break;case"auth-token":case"auth-token-fail":this.handleAuthTokenMessage(s);break;case"modal-closed":this.handleModalClosedMessage(s.message);break;case"button-click":this.args.callbacks.buttonClick&&this.args.callbacks.buttonClick();break;case"update-context":this.args.callbacks.updateContext&&this.args.callbacks.updateContext(s.message);break;case"confirm-closed":this.confirmRequest&&(this.confirmRequest.resolve(s.message.reason),this.confirmRequest=void 0);break;case"flyout-closed":this.flyoutRequest&&(this.flyoutRequest.resolve(),this.flyoutRequest=void 0);break;case"flyout-next-click":this.args.callbacks.flyoutNextClick&&this.args.callbacks.flyoutNextClick();break;case"flyout-previous-click":this.args.callbacks.flyoutPreviousClick&&this.args.callbacks.flyoutPreviousClick();break;case"help-click":this.args.callbacks.helpClick&&this.args.callbacks.helpClick();break;case"settings-click":this.args.callbacks.settingsClick&&this.args.callbacks.settingsClick();break;case"theme-change":this.args.callbacks.themeChange&&this.args.callbacks.themeChange(s.message.themeSettings);break;case"host-event":this.processHostEvent(s.message);break;case"event-received":this.resolveClientEvent(s.message)}else this.warnInvalidOrigin()},e.prototype.setKnownAllowedHostOrigin=function(e){for(var t=0,s=this.allowedOrigins;t<s.length;t++)if(s[t].test(e))return void(this.trustedOrigin=e)},e.prototype.checkForHeightChangesOfAddinContent=function(){var e=document.documentElement.offsetHeight;e!==this.lastPostedIframeHeight&&(this.lastPostedIframeHeight=e,this.postMessageToHostPage({message:{height:e+"px"},messageType:"height-change"}))},e.prototype.trackHeightChangesOfAddinContent=function(){var e=this;this.heightChangeIntervalId=setInterval((function(){e.checkForHeightChangesOfAddinContent()}),1e3)},e.prototype.postMessageToHostPage=function(e,t){e.source="bb-addin-client",e.addinId=this.getQueryVariable("addinId"),(t=t||this.trustedOrigin)?window.parent.postMessage(e,t):this.warnInvalidOrigin()},e.prototype.processHostEvent=function(e){var t=this,s=e.context,o=this.registeredAddinEvents[s.type];(o?this.isBlockingEventType(s.type)?new Promise((function(e){o(s.context,(function(){e()}))})):new Promise((function(e){o(s.context),e()})):Promise.resolve()).then((function(){return t.postEventReceivedMessage(e.eventRequestId)}))},e.prototype.isBlockingEventType=function(e){switch(e){case"form-save":case"form-cancel":return!0}return!1},e.prototype.postEventReceivedMessage=function(e){this.postMessageToHostPage({message:{eventRequestId:e},messageType:"event-received"})},e.prototype.resolveClientEvent=function(e){var t=e.eventRequestId,s=this.sentEvents[t];s&&(s(),delete this.sentEvents[t])},e.prototype.isFromValidOrigin=function(e){return e.origin===this.trustedOrigin},e.prototype.warnInvalidOrigin=function(){console.warn("The origin is not trusted because the host-ready message has not been sent or because the host origin is not a whitelisted origin.")},e.prototype.getQueryVariable=function(t){for(var s=0,o=e.getQueryString().substring(1).split("&");s<o.length;s++){var n=o[s].split("=");if(decodeURIComponent(n[0])===t)return decodeURIComponent(n[1])}},e}();t.AddinClient=o},93:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},294:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},714:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},819:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinButtonStyle=void 0,(s=t.AddinButtonStyle||(t.AddinButtonStyle={}))[s.None=0]="None",s[s.Add=1]="Add",s[s.Edit=2]="Edit",s[s.Delete=3]="Delete"},676:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},233:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},455:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},407:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},75:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},258:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},413:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},954:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},542:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},610:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},581:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},342:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},790:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},212:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},88:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},90:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},468:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinConfirmButtonStyle=void 0,(s=t.AddinConfirmButtonStyle||(t.AddinConfirmButtonStyle={}))[s.Default=0]="Default",s[s.Primary=1]="Primary",s[s.Link=2]="Link"},756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},545:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTabSummaryStyle=void 0,(s=t.AddinTabSummaryStyle||(t.AddinTabSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text"},518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},590:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinTileSummaryStyle=void 0,(s=t.AddinTileSummaryStyle||(t.AddinTileSummaryStyle={}))[s.None=0]="None",s[s.Text=1]="Text",s[s.Check=2]="Check"},480:(e,t)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.AddinToastStyle=void 0,(s=t.AddinToastStyle||(t.AddinToastStyle={}))[s.Danger=0]="Danger",s[s.Info=1]="Info",s[s.Success=2]="Success",s[s.Warning=3]="Warning"},142:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(93),t),n(s(294),t),n(s(714),t),n(s(819),t),n(s(676),t),n(s(233),t),n(s(455),t),n(s(407),t),n(s(75),t),n(s(258),t),n(s(413),t),n(s(954),t),n(s(663),t),n(s(542),t),n(s(610),t),n(s(95),t),n(s(581),t),n(s(342),t),n(s(790),t),n(s(212),t),n(s(88),t),n(s(90),t),n(s(948),t),n(s(756),t),n(s(468),t),n(s(545),t),n(s(993),t),n(s(518),t),n(s(590),t),n(s(480),t)},220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},57:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(220),t),n(s(606),t)},983:function(e,t,s){var o=this&&this.__createBinding||(Object.create?function(e,t,s,o){void 0===o&&(o=s);var n=Object.getOwnPropertyDescriptor(t,s);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,o,n)}:function(e,t,s,o){void 0===o&&(o=s),e[o]=t[s]}),n=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||o(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(s(903),t),n(s(142),t),n(s(57),t)}},t={};return function s(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,s),a.exports}(789)})())); |
@@ -0,1 +1,5 @@ | ||
# 1.4.0 (2024-08-21) | ||
- Added a `actionClick` callback for Box Add-ins to allow developers to take action when actions are clicked. | ||
- Added `AddinBoxConfig` interface for defining configuration options for `Box add-ins`. | ||
# 1.3.0 (2024-06-18) | ||
@@ -2,0 +6,0 @@ - Added `AddinClientConfig` interface to allow additional host origins to be supplied by an `AddinClient`. |
{ | ||
"name": "@blackbaud/sky-addin-client", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "SKY add-in client", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundles/sky-addin-client.umd.js", |
@@ -492,2 +492,7 @@ "use strict"; | ||
switch (data.messageType) { | ||
case 'action-click': | ||
if (this.args.callbacks.actionClick) { | ||
this.args.callbacks.actionClick(data.message.reason); | ||
} | ||
break; | ||
case 'auth-token': | ||
@@ -494,0 +499,0 @@ case 'auth-token-fail': |
@@ -12,2 +12,6 @@ import { AddinClientInitArgs } from './addin-client-init-args'; | ||
/** | ||
* Callback raised for box add-ins indicating that a control action was clicked. | ||
*/ | ||
actionClick?: (action: string) => void; | ||
/** | ||
* Callback raised for button add-ins indicating that the button was clicked. | ||
@@ -14,0 +18,0 @@ */ |
import { AddinActionButtonConfig } from './addin-action-button-config'; | ||
import { AddinBoxConfig } from './addin-box-config'; | ||
import { AddinButtonConfig } from './addin-button-config'; | ||
@@ -39,2 +40,6 @@ import { AddinModalConfig } from './addin-modal-config'; | ||
tabConfig?: AddinTabConfig; | ||
/** | ||
* Provides additional configuration for Box add-ins | ||
*/ | ||
boxConfig?: AddinBoxConfig; | ||
} |
@@ -0,1 +1,3 @@ | ||
export * from './addin-box-config'; | ||
export * from './addin-box-control'; | ||
export * from './addin-button-config'; | ||
@@ -2,0 +4,0 @@ export * from './addin-button-style'; |
@@ -17,2 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./addin-box-config"), exports); | ||
__exportStar(require("./addin-box-control"), exports); | ||
__exportStar(require("./addin-button-config"), exports); | ||
@@ -19,0 +21,0 @@ __exportStar(require("./addin-button-style"), exports); |
Sorry, the diff of this file is not supported yet
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
469712
131
7690