@microsoft/sp-adaptive-card-extension-base 1.15.0 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -696,7 +696,11 @@ export declare interface IAdaptiveCardExtensionPropertyMetadata extends ICompone
696
696
  * @public
697
697
  */
698
698
  export declare interface IAttachmentError {
699
- /* Excluded from this release type: errorCode */
699
+ /**
700
+ * Error code associated with a particular attachment
701
+ * @public
702
+ */
703
+ errorCode: 'FileTooLarge' | 'IncorrectFileFormat';
700
704
  }
701
705
 
702
706
  /**
@@ -1095,8 +1099,16 @@ export declare interface IQuickViewParameters {
1095
1099
  * @public
1096
1100
  */
1097
1101
  export declare interface ISelectMediaAction extends IAction {
1098
- /* Excluded from this release type: type */
1099
- /* Excluded from this release type: parameters */
1102
+ /**
1103
+ * Indicates this is a Viva Select Location button.
1104
+ * @public
1105
+ */
1106
+ type: 'VivaAction.SelectMedia';
1107
+ /**
1108
+ * Parameters that can be provided to the ISelectMedia Action
1109
+ * @public
1110
+ */
1111
+ parameters: ISelectMediaActionParameters;
1100
1112
  }
1101
1113
 
1102
1114
  /**
@@ -1109,8 +1121,16 @@ export declare interface ISelectMediaActionArguments extends Omit<IBaseActionArg
1109
1121
  * The type of Adaptive Card Action.
1110
1122
  */
1111
1123
  type: 'VivaAction.SelectMedia';
1112
- /* Excluded from this release type: media */
1113
- /* Excluded from this release type: data */
1124
+ /**
1125
+ * media object returned media picker API
1126
+ * @public
1127
+ */
1128
+ media: ISelectMediaAttachment[];
1129
+ /**
1130
+ * Submit Action data that is passed to internal action handler to ensure forms do not clear.
1131
+ * @public
1132
+ */
1133
+ data: any;
1114
1134
  }
1115
1135
 
1116
1136
  /**
@@ -1119,14 +1139,68 @@ export declare interface ISelectMediaActionArguments extends Omit<IBaseActionArg
1119
1139
  * @public
1120
1140
  */
1121
1141
  export declare interface ISelectMediaActionErrorArguments extends Omit<IBaseActionErrorArguments, 'type'> {
1122
- /* Excluded from this release type: type */
1123
- /* Excluded from this release type: media */
1124
- /* Excluded from this release type: error */
1142
+ /**
1143
+ * The type of Adaptive Card Action.
1144
+ * @public
1145
+ */
1146
+ type: 'VivaAction.SelectMedia';
1147
+ /**
1148
+ * media object returned media picker API
1149
+ * @public
1150
+ */
1151
+ media: ISelectMediaAttachment[] | undefined;
1152
+ /**
1153
+ * Error codes specific to the Select Media Action.
1154
+ * @public
1155
+ */
1156
+ error: {
1157
+ code: 'FileSelectionFailed' | 'FilesSelectedAreIncompatible';
1158
+ };
1125
1159
  }
1126
1160
 
1127
- /* Excluded from this release type: ISelectMediaActionParameters */
1161
+ /**
1162
+ * Parameters that can be supplied with the Viva Select Media Action.
1163
+ * @remarks API under active development and not ready for use.
1164
+ * @public
1165
+ */
1166
+ export declare interface ISelectMediaActionParameters {
1167
+ /**
1168
+ * Specify the specific media type that should be selected
1169
+ */
1170
+ mediaType: MediaType;
1171
+ /**
1172
+ * Allow multiple images to be selected.
1173
+ */
1174
+ allowMultipleCapture?: boolean;
1175
+ /**
1176
+ * Max file size that can be uploaded.
1177
+ */
1178
+ maxSizePerFile?: number;
1179
+ /**
1180
+ * File formats supported for upload.
1181
+ */
1182
+ supportedFileFormats?: string[];
1183
+ }
1128
1184
 
1129
- /* Excluded from this release type: ISelectMediaAttachment */
1185
+ /**
1186
+ * This object represents the data returned by the native media picker API.
1187
+ * @remarks API under active development and not ready for use.
1188
+ * @public
1189
+ */
1190
+ export declare interface ISelectMediaAttachment {
1191
+ /**
1192
+ * The names of the selected files.
1193
+ */
1194
+ fileName: string;
1195
+ /**
1196
+ * Content of the file represented as base64Strings
1197
+ */
1198
+ content: string;
1199
+ /**
1200
+ * Error associated with attachment
1201
+ */
1202
+ error?: IAttachmentError;
1203
+ }
1130
1204
 
1131
1205
  /**
1132
1206
  * Invoke an `VivaAction.SelectMedia` event.
@@ -1138,7 +1212,11 @@ export declare interface ISelectMediaCardAction {
1138
1212
  * Indicates this is a Viva Select Media button.
1139
1213
  */
1140
1214
  type: 'VivaAction.SelectMedia';
1141
- /* Excluded from this release type: parameters */
1215
+ /**
1216
+ * Parameters for the Select Media Action
1217
+ * @public
1218
+ */
1219
+ parameters: ISelectMediaActionParameters;
1142
1220
  }
1143
1221
 
1144
1222
  /* Excluded from this release type: _ISelectMediaHandleProvider */
@@ -1275,7 +1353,15 @@ export declare interface ISubmitCardParameters {
1275
1353
 
1276
1354
  /* Excluded from this release type: _LocalStorageACECache */
1277
1355
 
1278
- /* Excluded from this release type: MediaType */
1356
+ /**
1357
+ * Enum value to specify the type of media.
1358
+ * @remarks API under active development and not ready for use.
1359
+ * @public
1360
+ */
1361
+ export declare enum MediaType {
1362
+ Image = 1,
1363
+ Audio = 4
1364
+ }
1279
1365
 
1280
1366
  /* Excluded from this release type: _NavigationButtonType */
1281
1367
 
@@ -1322,16 +1408,18 @@ export declare class ViewNavigator<TView extends BaseView> {
1322
1408
  /**
1323
1409
  * Registers a new view.
1324
1410
  *
1325
- * @remarks `initializer` must return an instance of a {@link BaseView}.
1411
+ * @remarks `initializer` must return an instance of a {@link BaseView} or a Promise of a {@link BaseView}.
1412
+ * The promise allows developers with large quickviews to defer / chunk in the quickview code on
1413
+ * demand
1326
1414
  *
1327
1415
  * @remarks `initializer` is not called until `id` is pushed onto the view stack.
1328
1416
  *
1329
1417
  * @remarks A View with a given `id` is only initialized once, and the instance is reused if it is pushed more than once
1330
1418
  *
1331
1419
  * @param id - Unique identifier for the view.
1332
- * @param initializer - Function that returns a new view, which is only called if no view with the `id` already exists.
1420
+ * @param initializer - Function that returns a new view - or a promise to a new view - which is only called if no view with the `id` already exists.
1333
1421
  */
1334
- register(id: string, initializer: () => TView): void;
1422
+ register(id: string, initializer: () => TView | Promise<TView>): void;
1335
1423
  /**
1336
1424
  * Pushes a new view to the top of the view stack.
1337
1425
  *
@@ -0,0 +1 @@
1
+ define("eeec822e-c28a-46b4-affc-7058e4c1aa80_1.15.2",["tslib","@ms/sp-telemetry","@microsoft/sp-component-base","@microsoft/sp-loader","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d,l){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2q6Q":function(e,t){e.exports=a},"7Awa":function(e,t){e.exports=i},I6O9:function(e,t){e.exports=r},Pk8u:function(e,t){e.exports=o},UWqr:function(e,t){e.exports=s},"X+PM":function(e,t){e.exports=c},mGD9:function(e){e.exports=JSON.parse('{"t":"TargetUrlIsUndefinedOrEmpty","e":"DefaultIconAltText"}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"_AdaptiveCardExtensionActionShim",function(){return p}),n.d(t,"AdaptiveCardExtensionContext",function(){return h}),n.d(t,"_AdaptiveCardExtensionHost",function(){return b}),n.d(t,"_AdaptiveCardExtensionLoader",function(){return y}),n.d(t,"BaseAdaptiveCardExtension",function(){return $}),n.d(t,"_BaseAdaptiveCardExtensionCache",function(){return A}),n.d(t,"_LocalStorageACECache",function(){return L}),n.d(t,"_isAdaptiveCardExtensionLKGCachingEnabled",function(){return s}),n.d(t,"MediaType",function(){return E}),n.d(t,"_IsolatedAdaptiveCardExtensionService",function(){return ne}),n.d(t,"BaseView",function(){return z}),n.d(t,"BaseBasicCardView",function(){return K}),n.d(t,"BaseCardView",function(){return G}),n.d(t,"BaseImageCardView",function(){return ae}),n.d(t,"BasePrimaryTextCardView",function(){return ie}),n.d(t,"QuickViewNavigator",function(){return Z}),n.d(t,"ViewNavigator",function(){return X}),n.d(t,"BaseAdaptiveCardView",function(){return q});var a=n("ut3N"),i=n("UWqr");function r(){return i._SPFlight.isEnabled(60447)}function o(){return i._SPFlight.isEnabled(60544)}function s(){return i._SPFlight.isEnabled(60456)}function c(){return i._SPKillSwitch.isActivated("6836bc4c-8a69-4ed9-92c0-0d6187f3acb6")}function d(){return i._SPKillSwitch.isActivated("5fbd4c87-42a1-445d-8480-f1fde56ccc21")}function l(){return i._SPKillSwitch.isActivated("5533d556-60de-40a4-ab2e-ff72e237d89e")}function u(){return i._SPKillSwitch.isActivated("a95479e5-e6fb-4025-855c-a344a22d7466")}function f(){return i._SPKillSwitch.isActivated("e8daf7db-132e-4225-93a4-70cc5fc06bb9")}var p=function(){function e(e,t){var n=this;this._ace=e,this._provider=t,this.handleAction=function(e){switch(e.getJsonTypeName()){case"Action.OpenUrl":n._handleOpenUrl(e);break;case"Action.ShowCard":n._handleShowCard(e);break;case"Action.Submit":n._handleSubmit(e);break;case"VivaAction.GetLocation":o()&&n._handleGetLocation(e);break;case"VivaAction.SelectMedia":r()&&n._handleSelectMedia(e);break;case"VivaAction.ShowLocation":o()&&n._handleShowLocation(e)}}}return e.prototype._handleGetLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.GetLocation",!0);try{var i={chooseLocationOnMap:null===(t=e.parameters)||void 0===t?void 0:t.chooseLocationOnMap};this._provider.getLocation(this._ace).getLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.GetLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleOpenUrl=function(e){var t=e.url;t&&(this._provider.openUrl(this._ace,t),this._provider.log(this._ace,"OpenUrl"))},e.prototype._handleSelectMedia=function(e){i._SPKillSwitch.isActivated("f9047381-ce17-4042-bc46-d04681d0016b")?this._provider.selectMedia(this._ace,e).getMedia():this._provider.selectMedia(this._ace,e).getMedia(e),this._provider.log(this._ace,"VivaAction.SelectMedia")},e.prototype._handleShowCard=function(e){var t={id:e.id,type:"ShowCard"};this._provider.aceActionHandler(this._ace,t),this._provider.log(this._ace,"ShowCard")},e.prototype._handleShowLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.ShowLocation",!0);try{var i={locationCoordinates:null===(t=e.parameters)||void 0===t?void 0:t.locationCoordinates};this._provider.showLocation(this._ace).showLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.ShowLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleSubmit=function(e){var t,n=this,i=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.handleConfirmationDialog",!0),r=null===(t=e.data)||void 0===t?void 0:t._internalQuickViewId;if(r)this._provider.quickView(r);else{var o={data:e.data,id:e.id,type:"Submit"};this._provider.confirmationDialog(o).then(function(e){i.writeSuccess(),e||(n._provider.aceActionHandler(n._ace,o),n._provider.log(n._ace,"Submit"))}).catch(function(){i.writeUnexpectedFailure()})}},e}(),m=n("17wl"),_=n("7Awa"),h=function(e){function t(t){var n=e.call(this,t)||this;return n._aceHost=t.host,n.manifest=t.manifest,n._deviceContext=t.deviceContext,n._location=t.location,n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"_host",{get:function(){return this._aceHost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyPane",{get:function(){return this._host.propertyPane},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceContext",{get:function(){return this._deviceContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location()},enumerable:!1,configurable:!0}),t}(_.BaseComponentContext),b=function(){function e(e){this._onBeforeInitializedCallback=e.onBeforeInitializedCallback,this._onUpdateCallback=e.onUpdateCallback,this._onErrorCallback=e.onError,this._onRequestRenderTypeCallback=e.onRequestRenderTypeCallback,this._onVisibilityChanged=e.onVisibilityChanged,this._cache=e.cache,this.propertyPane=e.propertyPane}return e.prototype.update=function(e){this._onUpdateCallback(e)},e.prototype.onBeforeInitialized=function(e){this._onBeforeInitializedCallback&&this._onBeforeInitializedCallback(e)},e.prototype.onError=function(e){this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.requestRenderTypeChange=function(e,t){this._onRequestRenderTypeCallback(e,t)},Object.defineProperty(e.prototype,"cache",{get:function(){return this._cache},enumerable:!1,configurable:!0}),e.prototype.onVisibilityChanged=function(e){this._onVisibilityChanged(e)},e}(),g=n("I6O9"),v=n("2q6Q"),y=function(){function e(){}return e._createQosExtraData=function(e,t){return{alias:e.alias,deviceContext:t,isInternal:e.isInternal,manifestId:e.id,mpnId:e.mpnId,scenarioId:i._SPKillSwitch.isActivated("b544c716-bfa4-4bbb-a8df-237a8ecf2e47")?void 0:v._PerformanceLogger.getScenarioId(),storeAppId:e.storeAppId,teamsHosted:i._BrowserUtilities.isTeamsHosted()}},e.prototype.load=function(t){var n,r,o=this,s=i._SPKillSwitch.isActivated("8af93b94-0baf-43b2-9f46-c302729482e8")?new a._QosMonitor("AdaptiveCardExtension.Load",!0):new a._QosMonitor("AdaptiveCardExtension.Load",!0,!0),c=e._createQosExtraData(t.manifest,t.deviceContext),l="WebPart.ACE_".concat(t.manifest.alias,".").concat(t.manifest.isInternal?"internal":"external",".").concat(t.instanceId);return d()||v._PerformanceLogger.startMarkForComponent(l),g.SPComponentLoader.loadComponent(t.manifest).then(function(e){return e.default&&(e=e.default),d()||v._PerformanceLogger.markComponentModuleLoaded(l),new e}).catch(function(e){throw d()||v._PerformanceLogger.endFailureForComponent(l,"Load",e),s.writeUnexpectedFailure("AdaptiveCardExtensionLoadFailed",e,c),n=e,e}).then(function(e){(r=e)._internalInitialize(o._getContext(t),t.addedFromPersistedData,t.initialDisplayMode,l),r._internalDeserialize(t.aceData),t.host.onBeforeInitialized(r);var n,a=t.cacheObject?{state:(n=t.cacheObject).cachedState,cardNavigatorState:n.cardNavigatorState}:void 0;return r.onInit(a)}).then(function(){return d()||v._PerformanceLogger.markComponent(l,"init"),s.writeSuccess(c),r._internalOnAfterInit(),r}).catch(function(e){throw n||(d()||v._PerformanceLogger.endFailureForComponent(l,"Initialize",e),s.writeUnexpectedFailure("AdaptiveCardExtensionInitializationFailed",e,c)),e})},e.prototype._getContext=function(e){return new h({host:e.host,manifest:e.manifest,instanceId:e.instanceId,parentServiceScope:e.serviceScope,loggingTag:"",deviceContext:e.deviceContext,location:e.location})},e}(),S=n("Pk8u"),D=n("mGD9"),I=new RegExp(/(?=.+)(\/l\/entity\/.+)/gi),x={Medium:1,Large:2};function C(e,t,n,a,s){var c,d;if("Submit"===t.type)(d=t).confirmationDialog&&(d.parameters||(d.parameters={}),d.parameters.__MSConfirmationDialog__=d.confirmationDialog),c={id:n,type:"Action.Submit",style:s,title:a,data:t.parameters||void 0};else if("ExternalLink"===t.type){O(t.parameters,e);var l=t.parameters.target;if(!l||""===l)throw new Error(i.Text.format(D.t,n));c={id:n,type:"Action.OpenUrl",style:s,title:a,url:l}}else"QuickView"===t.type?c={id:n,type:"Action.Submit",style:s,title:a,data:{_internalQuickViewId:t.parameters.view}}:r()&&"VivaAction.SelectMedia"===t.type?c={id:n,type:"VivaAction.SelectMedia",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.GetLocation"===t.type?c={id:n,type:"VivaAction.GetLocation",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.ShowLocation"===t.type&&(c={id:n,type:"VivaAction.ShowLocation",style:s,title:a,parameters:t.parameters});return c}function O(e,t){if(e&&e.isTeamsDeepLink&&function(e){return i._SPKillSwitch.isActivated("cfe2dadf-9488-4409-b3d4-d3dd23a7970e")?"WebView"===e:"Mobile"!==e}(t)){var n=e.target.match(I);n&&n[0]&&(e.target="msteams:".concat(n[0]))}}function w(e,t,n,a,i,r){var o,s=e.cardButtons,c=e.data,d=e.onCardSelection,l=e._templateType;if(a||(a=e.template),void 0===s||"Image"===l&&"Large"!==t||function(e,t,n,a){for(var i=[],r=Math.min(x[n],(null==t?void 0:t.length)||0),o=0;o<r;o++){var s=t[o],c=s.id?s.id:"ac-button-".concat(o);i.push(C(a,s.action,c,s.title,s.style))}e.actions=i}(a,s,t,n),d){var u=C(n,d,"select-action");"Action.OpenUrl"!==u.type&&"Action.Submit"!==u.type&&"VivaAction.GetLocation"!==u.type&&"VivaAction.ShowLocation"!==u.type&&"VivaAction.SelectMedia"!==u.type||(o=u)}return{data:Object(m.__assign)({selectAction:o,iconProperty:i,iconAltText:c.iconAltText||D.e,title:r},c),template:a,cardProperties:{iconProperty:c.iconProperty||i,size:t,title:c.title||r,templateType:l}}}var E,A=function(){function e(){}return e.prototype.get=function(e,t){var n=this.getFromSource(e,t);if(n)return(new Date).getTime()<n.expirationTime?n:void 0},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),t.getKey=function(e,t){return"AdaptiveCardExtension_LKG_".concat(e,"_").concat(t)},Object.defineProperty(t,"instance",{get:function(){return void 0===this._instance&&(this._instance=new t),this._instance},enumerable:!1,configurable:!0}),t.prototype.save=function(e,t,n){var a=this._getLocalStorageEntry(e);a.set(t,n);var i=Array.from(a.entries());localStorage.setItem(e,JSON.stringify(i))},t.prototype.getFromSource=function(e,t){return this._getLocalStorageEntry(e).get(t)},t.prototype._getLocalStorageEntry=function(e){var t=localStorage.getItem(e);return t?new Map(JSON.parse(t)):new Map},t}(A),k=function(){function e(e,t,n,a,i,r){this._context=e,this._getCardSize=t,this._getIconProperty=n,this._getTitle=a,this._handleInitializeCallback=i,this._settings=Object(m.__assign)(Object(m.__assign)({},this._defaultCacheSettings()),r)}return e.prototype.save=function(e,t,n,a,i){var r,o,s;if(this._settings.isEnabled){var c=this._initializeCustomCardView();if(c&&c.isCacheEnabled||!c&&t.isCacheEnabled){var d=c?w(c,this._getCardSize(),this._context.deviceContext,void 0,this._getIconProperty(),this._getTitle()):n.card;s=this._createCacheObject(n,d,a,i),null===(r=this._context._host.cache)||void 0===r||r.save(L.getKey(this._context.pageContext.site.id.toString(),null===(o=this._context.pageContext.listItem)||void 0===o?void 0:o.uniqueId),e,s)}}return s},e.prototype._createCacheObject=function(e,t,n,a){return{cachedCard:t,cardNavigatorState:n,isVisible:e.isVisible,cachedState:a,expirationTime:(new Date).getTime()+1e3*this._settings.expiryTimeInSeconds}},e.prototype._initializeCustomCardView=function(){if(this._settings.cachedCardView){var e=this._settings.cachedCardView();return this._handleInitializeCallback(e),e}},e.prototype._defaultCacheSettings=function(){return{isEnabled:!0,expiryTimeInSeconds:864e3,cachedCardView:void 0}},e}(),M="auto",P={type:"TextBlock",subType:"Primary",text:"${primaryText}",weight:"Bolder",maxLines:1,spacing:"none"},T={type:"TextBlock",subType:"BodySecondary",text:"${description}",spacing:"none",wrap:!0},U={type:"TextBlock",subType:"BodyPrimary",text:"${primaryText}",spacing:"none",wrap:!0},F={type:"TextBlock",subType:"Title",text:"${title}",wrap:!1,maxLines:1,spacing:"none"},H={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},R={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},N={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},B={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},j={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},V={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},z=function(){function e(){}return Object.defineProperty(e.prototype,"cardNavigator",{get:function(){return this._ace.cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickViewNavigator",{get:function(){return this._ace.quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cardSize",{get:function(){return this._getCardSize()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),e.prototype.onAction=function(e){},e.prototype.onActionError=function(e){},e.prototype.setState=function(e){this._ace.setState(e)},e.prototype.setVisibility=function(e){this._ace.isVisible=e},e}(),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardButtons",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCardSelection",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCacheEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype._getTemplate=function(e,t){return Object(S.cloneDeep)(this.onCardSelection?t:e)},t}(z),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Basic",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(H,B)},enumerable:!1,configurable:!0}),t}(G),W=function(e){function t(t){var n=e.call(this)||this;return n._primaryText=t,n._templateType="Basic",n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{primaryText:this._primaryText}},enumerable:!1,configurable:!0}),t}(K),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"externalLink",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return""},enumerable:!1,configurable:!0}),t}(z),Q=/\{(\d+)\}/g,Y=function(){function e(){this._registeredCallbacks=new Map}return e.prototype.register=function(e,t){this._registeredCallbacks.has(e)||this._registeredCallbacks.set(e,t)},e.prototype.consume=function(e){var t=this._registeredCallbacks.get(e);if(!t)throw new Error(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(Q,function(e,n){return null===t[n]?"":""+t[n]})}("View with id {0} must be registered before being used",e));return this._registeredCallbacks.delete(e),t},Object.defineProperty(e.prototype,"size",{get:function(){return this._registeredCallbacks.size},enumerable:!1,configurable:!0}),e}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return{}},enumerable:!1,configurable:!0}),t}(q),X=function(){function e(e,t){this._handleStackChangedCallback=e,this._handleInitializeCallback=t,this._viewStack=new Array,this._viewCache=new Map,this._viewRegistry=new Y}return e.prototype.register=function(e,t){this._viewRegistry.register(e,t)},e.prototype.push=function(e,t){void 0===t&&(t=!1),this._push(e),this._handleStackChangedCallback(t)},e.prototype.replace=function(e,t){void 0===t&&(t=!1),this._pop(),this._push(e),this._handleStackChangedCallback(t)},e.prototype.pop=function(e){void 0===e&&(e=!1),this.size>1&&(this._pop(),this._handleStackChangedCallback(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this._viewStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentId",{get:function(){var e=this.size;return e?this._viewStack[e-1]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_currentView",{get:function(){return this._viewCache.get(this._viewStack[this.size-1])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewStack",{get:function(){return this._viewStack},enumerable:!1,configurable:!0}),e.prototype._clear=function(){this._viewStack=[]},e.prototype._forEach=function(e){this._viewCache.forEach(e)},e.prototype._getRegistrySize=function(){return this._viewRegistry.size},e.prototype._push=function(e){var t=this;if(void 0===this._viewCache.get(e)){var n=this._viewRegistry.consume(e)();!i._SPKillSwitch.isActivated("db1f6911-ac1f-42e4-890c-2c12bc4e2e00")&&n instanceof Promise?(n.then(function(n){t._viewCache.set(e,n),t._handleStackChangedCallback(!1)}).catch(function(e){console.error("could not load quickview",e)}),n=new J):n=n,this._handleInitializeCallback(n),this._viewCache.set(e,n)}this._viewStack.push(e)},e.prototype._pop=function(){this._viewStack.pop()},e}(),Z=function(e){function t(t,n,a){var i=e.call(this,t,n)||this;return i._closeQuickViewCallback=a,i}return Object(m.__extends)(t,e),t.prototype.close=function(){this._closeQuickViewCallback()},t}(X),$=function(e){function t(){var t=e.call(this)||this;return t._isLoggedRenderPerf=!1,t._isInitialized=!1,t._getCard=function(e){try{return w(t._cardNavigator._currentView,t.cardSize,t.context.deviceContext,e?t._ACRenderArgs.card.template:void 0,t.iconProperty,t.title)}catch(e){throw t.context._host.onError(e.toString()),e}},t._onViewInitialized=function(e){e._state=t.state,e._ace=t,e._properties=t.properties,e._getCardSize=function(){return t.cardSize},e._context=t.context},t._navigatorCallback=function(e){e||t.update(t._renderType)},t._closeQuickViewCallback=function(){t.context._host.requestRenderTypeChange("Card",t.instanceId)},t._cardSize="Medium",t._renderType="Card",t._isVisible=!0,t._urlParams=new URLSearchParams(window.location.search),t._cardNavigator=new X(t._navigatorCallback,t._onViewInitialized),t._quickViewNavigator=new Z(t._navigatorCallback,t._onViewInitialized,t._closeQuickViewCallback),t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardNavigator",{get:function(){return this._cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cardSize",{get:function(){return this._cardSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickViewNavigator",{get:function(){return this._quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedFromPersistedData",{get:function(){return this._renderedFromPersistedData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedOnce",{get:function(){return this._renderedOnce},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderType",{get:function(){return this._renderType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertiesMetadata",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this._state)throw new Error("state can only be initialized once");this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconProperty",{get:function(){return this._iconProperty},enumerable:!1,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[]}},t.prototype.loadPropertyPaneResources=function(){return Promise.resolve()},t.prototype.getCacheSettings=function(){return{}},t.prototype.getCachedState=function(e){return{}},t.prototype._internalOnAction=function(e){this.navigator._currentView.onAction(e)},t.prototype._internalOnActionError=function(e){this.navigator._currentView.onActionError(e)},t.prototype.onBeforeSerialize=function(){},t.prototype.onAfterPropertiesUpdatedExternally=function(e){},t.prototype.onAfterDeserialize=function(e,t){return e},t.prototype.onDisplayModeChanged=function(e){},t.prototype.onDispose=function(){},t.prototype.onInit=function(e){return Promise.resolve()},t.prototype.onPropertyPaneFieldChanged=function(e,t,n){},t.prototype.onRenderTypeChanged=function(e){},t.prototype.renderCard=function(){},t.prototype._getPreFrameworkPropertyPaneConfiguration=function(){return[]},Object.defineProperty(t.prototype,"_isFrameworkPropertyPaneEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,(this.cardNavigator._getRegistrySize()>0||this.cardNavigator._currentView)&&this.context._host.onVisibilityChanged(this._getRenderArguments(this.renderType))},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){if(!this._state)throw new Error("state must be initialized before calling setState");e&&(this._state=Object(m.__assign)(Object(m.__assign)({},this.state),Object(S.cloneDeep)(e)),this._cardNavigator._forEach(this._onViewInitialized),this._quickViewNavigator._forEach(this._onViewInitialized)),this._isInitialized&&this.context._host.update(this._getRenderArguments(this._renderType))},t.prototype.update=function(e,t){void 0===t&&(t=!1);var n=this._getRenderArguments(e,t);this.context._host.update(n)},t.prototype._getRenderArguments=function(e,t,n){var r,o=this;void 0===t&&(t=!1);var c=new a._QosMonitor("AdaptiveCardExtension.GetRenderArguments.".concat(e));try{if(this._setRenderType(e,n),"Card"===e&&0===this.cardNavigator.size){var l=this.renderCard();l||(l="_InternalDefaultCardView",this._cardNavigator.register(l,function(){return new W(o.description)})),this._cardNavigator.push(l,!0)}if(void 0===this._ACRenderArgs?this._ACRenderArgs={card:"Card"===e?this._getCard(t):void 0,isVisible:this._isVisible,instanceId:this.instanceId,lastUpdatedType:e,quickLook:"QuickView"===e?this._getQuickView(t):void 0}:this._updateRenderArgs(e,t),s()&&(!i._SPKillSwitch.isActivated("b8c50ded-d048-4eb9-bc41-21190d9d3bbb")&&this.context.manifest.isolatedDomain||this.displayMode===i.DisplayMode.Read)&&"Card"===e){var f=null===(r=this._cacheManager)||void 0===r?void 0:r.save(this.instanceId,this._cardNavigator._currentView,this._ACRenderArgs,this.cardNavigator.viewStack,this.getCachedState(Object(m.__assign)({},this._state)));this._ACRenderArgs.cacheObject=f}var p=void 0;d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endMarkForComponent(this._perfTagName),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),u()||(p=Object(m.__assign)(Object(m.__assign)({},p),{isInternal:this.manifest.isInternal||!1})),c.writeSuccess(p)}catch(e){p=void 0,d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endFailureForComponent(this._perfTagName,"Render",e),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),c.writeUnexpectedFailure("failedGetRenderArguments",e,Object(m.__assign)(Object(m.__assign)({},p),{alias:this.context.manifest.alias,deviceContext:this.context.deviceContext,instanceId:this.instanceId,isInternal:u()?void 0:this.manifest.isInternal||!1,manifestId:this.context.manifest.id}))}return this._ACRenderArgs},t.prototype._propertiesMetadata=function(){return this.propertiesMetadata},t.prototype._getPropertyPaneConfiguration=function(){return this.getPropertyPaneConfiguration()},Object.defineProperty(t.prototype,"navigator",{get:function(){return"Card"===this.renderType?this._cardNavigator:this._quickViewNavigator},enumerable:!1,configurable:!0}),t.prototype._internalDeserialize=function(e){e.title&&(this._title=e.title),e.iconProperty&&(this._iconProperty=e.iconProperty),e.description&&(this._description=e.description),e.cardSize&&(this._cardSize=e.cardSize);var t=e.properties;this.renderedFromPersistedData&&(_._PropertyMetadataProcessor.reInstateServerProcessedData(this.propertiesMetadata,t,e.serverProcessedContent),e.serverProcessedContent=void 0),this._properties?Object.assign(this._properties,t):this._properties=this.onAfterDeserialize(t,e.dataVersion?i.Version.parse(e.dataVersion):this.dataVersion)},t.prototype._internalInitialize=function(t,n,a,i){var r=this;e.prototype._initializeContext.call(this,t),this._displayMode=a,this._renderedOnce=!1,this._renderedFromPersistedData=n,s()&&(this._cacheManager=new k(this.context,function(){return r.cardSize},function(){return r.iconProperty},function(){return r.title},this._onViewInitialized,this.getCacheSettings())),this._perfTagName=i},t.prototype._internalSetDisplayMode=function(e){if(this._displayMode!==e){var t=this._displayMode;this._displayMode=e,this.onDisplayModeChanged(t)}},t.prototype._loadPropertyPaneResources=function(){return this.loadPropertyPaneResources()},t.prototype._onPropertyPaneFieldChanged=function(e,t,n){Object(S.isEqual)(t,n)||(this._updateProperty(e,n),this.onPropertyPaneFieldChanged(e,t,n))},t.prototype._renderCompleted=function(){this._renderedOnce=!0},t.prototype._internalOnAfterInit=function(){this._isInitialized=!0},t.prototype._internalSerialize=function(){return this.onBeforeSerialize(),{dataVersion:this.dataVersion.toString(),id:this.componentId,instanceId:this.instanceId,properties:this.properties,title:this.title,description:this._description,iconProperty:this.iconProperty,cardSize:this._cardSize}},t.prototype._setRenderType=function(e,t){if(this._renderType!==e){var n=this._renderType;"QuickView"===n&&this._quickViewNavigator._clear(),"Card"===n&&(this._quickViewNavigator._clear(),void 0!==t&&this._quickViewNavigator.push(t,!0)),this._renderType=e,this.onRenderTypeChanged(n)}},t.prototype._updateConfigurableFields=function(e,t){"cardSize"===e&&(this._cardSize=t)},t.prototype._logCardActionEngagement=function(e,t,n,r){var o,s,c,d,l,u,f,p,m,_;a._EngagementLogger.log({name:"AdaptiveCardExtension.CardAction",isIntentional:!0,siteId:null===(s=null===(o=this.context.pageContext)||void 0===o?void 0:o.site)||void 0===s?void 0:s.id.toString(),webId:null===(d=null===(c=this.context.pageContext)||void 0===c?void 0:c.web)||void 0===d?void 0:d.id.toString(),extraData:{actionType:e,alias:this.manifest.alias,componentDeveloperName:this.manifest.componentDeveloperName,correlationId:null===(l=this.context.pageContext.site.correlationId)||void 0===l?void 0:l.toString(),deviceContext:this.context.deviceContext,eventSchemaVersion:10,isInternal:this.manifest.isInternal||!1,instanceId:this.instanceId,listId:this._urlParams.get("dashboardListID")?this._urlParams.get("dashboardListID"):null===(u=this.context.pageContext.list)||void 0===u?void 0:u.id.toString(),listItemUniqueId:this._urlParams.get("id")?this._urlParams.get("id"):null===(f=this.context.pageContext.listItem)||void 0===f?void 0:f.id,manifestId:this.manifest.id,mobileSessionId:n,mobileBootType:r,mpnId:this.manifest.mpnId,renderType:i._SPKillSwitch.isActivated("6d5c9ddb-5bc7-4b59-bbdf-ff9052d33daf")||"QuickView"!==e?this.renderType:"Card",tenantId:null===(_=null===(m=null===(p=this.context.pageContext)||void 0===p?void 0:p.aadInfo)||void 0===m?void 0:m.tenantId)||void 0===_?void 0:_.toString().toLowerCase(),vivaConnectionsAppId:"d2c6f111-ffad-42a0-b65e-ee00425598aa",vivaConnectionsName:"MEE",workLoad:t}})},t.prototype._getQuickView=function(e){if(0!==this._quickViewNavigator.size){var t=this._quickViewNavigator._currentView;if(void 0!==t)return O(t.externalLink,this.context.deviceContext),{data:t.data,template:e?this._ACRenderArgs.quickLook.template:t.template,pageBarProperties:{externalLink:t.externalLink,leftNavigationButtonType:this._quickViewNavigator.size>1?"Back":"Close",title:t.title},viewId:this._quickViewNavigator.currentId,viewStackSize:this._quickViewNavigator.size}}},t.prototype._updateRenderArgs=function(e,t){this._ACRenderArgs.lastUpdatedType=e,this._ACRenderArgs.isVisible=this._isVisible,"Card"===e?this._ACRenderArgs.card=this._getCard(t):this._ACRenderArgs.quickLook=this._getQuickView(t)},t.prototype._updateProperty=function(e,t){Object(S.update)(this._properties,e,function(){return t})},t}(_.BaseComponent);!function(e){e[e.Image=1]="Image",e[e.Audio=4]="Audio"}(E||(E={}));var ee=n("vlQI"),te=n("X+PM"),ne=function(){function e(e){var t=this;this._serviceScope=e,this._callbackCache=new Map,this._isolatedFrames=new Map,this._isolatedListeners=new Map,this._handleIframeTimeout=function(e,n){var i=t._isolatedFrames.get(e),r=i.frameMonitor,o=i.retryMonitor,s=i.tokenMonitor;if(!l()&&i.retryCount<1)return i.retryCount+=1,i.iframe.src=i.iframe.src,i.retryMonitor=new a._QosMonitor("IsolatedAdaptiveCardExtension.iframeReload"),void(i.timeoutId=setTimeout(function(){return t._handleIframeTimeout(e,n)},14500));if(o&&o.writeUnexpectedFailure("reloadFailed"),r&&!r.hasEnded)try{s?(r.writeUnexpectedFailure("tokenTimeout"),s.hasEnded||s.writeUnexpectedFailure("timeout")):n?r.writeUnexpectedFailure("authorizeTimeout"):r.writeExpectedFailure("authorizeTimeout")}catch(e){r.writeUnexpectedFailure("unexpectedFailure",e)}},this._handleIsolatedApplicationMessage=function(e){var n=e.data;if("applicationMessage"===n.messageType){var i=n.instanceId,r=n.kind;switch(r){case"Card":t._invokeCallback(i,{aceData:n.aceData,card:n.card,cacheObject:n.cacheObject,type:r});break;case"CloseQuickView":var o=t._isolatedFrames.get(new URL(e.origin).hostname);o&&(o.iframe.hidden=!0);break;case"Error":t._invokeCallback(i,{error:n.error,type:r});break;case"OpenQuickView":var s=t._isolatedFrames.get(new URL(e.origin).hostname);s&&(s.iframe.hidden=!1);break;case"OpenUrl":t._invokeCallback(i,{type:r,url:n.url});break;case"LocationRequest":t._invokeCallback(i,{type:r});break;case"Ready":var d=t._isolatedFrames.get(new URL(e.origin).hostname);if(d){!l()&&d.retryMonitor&&d.retryMonitor.writeSuccess(),c()||(clearTimeout(d.timeoutId),d.frameMonitor.writeSuccess()),d.isReady=!0;for(var u=0,f=d.messageQueue;u<f.length;u++){var p=f[u],m=p[0],_=p[1];t._sendMessage(t._getIsolatedFrame(m),m,_)}d.messageQueue=[]}break;case"OBOTokenRequest":var h=n.applicationId,b=n.claims;t._getAuthToken(h,b,e.origin);break;default:t._logError("Unexpected message: ".concat(JSON.stringify(e.data)))}}else if("bridgeMessage"===n.messageType&&"onTokenRequested"===n.bridgeAction){var g=c(),v=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.onTokenRequested"),y=(h=n.applicationId,b=n.claims,t._isolatedFrames.get(new URL(e.origin).hostname));if(!g&&!y)return void v.writeUnexpectedFailure("missingIsolatedFrame");y.tokenMonitor=v;var S=ee._AadTokenProviders.configurable;if(!g&&!S._oboThirdPartyTokenCallback)return void v.writeUnexpectedFailure("missingThirdPartyTokenCallback");try{S._oboThirdPartyTokenCallback(h,b).then(function(e){if(!g&&!y.iframe.contentWindow)throw new Error("missingContentWindow");y.iframe.contentWindow.postMessage({token:e,messageType:"dashboardMessage",kind:"Token"},"*"),g||v.writeSuccess()}).catch(function(e){g||v.writeUnexpectedFailure("oboThirdPartyTokenCallbackError",e)})}catch(e){g||v.writeUnexpectedFailure("unexpectedException",e)}}},window.addEventListener("message",this._handleIsolatedApplicationMessage)}return Object.defineProperty(e.prototype,"_pageContext",{get:function(){return this._pContext||(this._pContext=this._serviceScope.consume(te.PageContext.serviceKey)),this._pContext},enumerable:!1,configurable:!0}),e.prototype.disposeEntry=function(e){this._isolatedListeners.delete(e)},e.prototype.load=function(e){var t=this,n=e.callback,r=e.dashboardListId,o=e.itemId,s=e.instanceId,d=e.listenerId,u=e.manifestId,p=e.serviceDestinationEndpoint,m=e.botId,h=e.isolatedDomain.toLowerCase(),b=this._isolatedFrames.get(h);if(!b){var g=c(),y=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.load"),S=document.createElement("iframe"),D=this._pageContext.site.serverRelativeUrl,I="/"===D?"":D,x=new URLSearchParams(window.location.search);x.append("dashboardListID",r),x.append("id",o),1===v._SPPerfExperiment.getVariantAndTrackExperiment(v._PerformanceExperiment.WEXOOPIF)&&x.append("OOPIF","1"),(f()||m)&&x.append("instanceId",s);var C=f()||void 0===p?"adaptivecardextensions.aspx":p,O="/_layouts/15/".concat(C,"?").concat(x.toString()),w=Object(_._ensureIsolatedDomainUrl)(h,this._pageContext.web.absoluteUrl),E=i._BrowserUtilities.isTeams1PVivaDesktopHosted(a._QosMonitor);E&&i._SPFlight.isEnabled(60128)?S.src="".concat(w,"/_layouts/15/framedteamslogon.aspx?spfx=true&dest=").concat(encodeURIComponent(I+O)):S.src=w+O,S.hidden=!0,S.scrolling="no",S.style.overflow="hidden",S.style.height="100%",S.style.width="100%",S.style.top="0",S.style.left="0",S.style.position="fixed",S.style.zIndex="99999",S.style.border="none",i._SPKillSwitch.isActivated("bc68fda3-34d5-496b-8515-8d140a0c98ac")||S.setAttribute("allow","geolocation"),i._SPKillSwitch.isActivated("edddfc6b-79f6-49a3-8bb9-bd5a7a0eb10c")||S.setAttribute("data-automation-id","isolated_ACE_iframe"),document.body.appendChild(S);var A=h.toLowerCase();b={iframe:S,frameMonitor:y,isReady:!1,messageQueue:[],retryCount:0},l()?g||(b.timeoutId=setTimeout(function(){if(y&&!y.hasEnded){var e=t._isolatedFrames.get(A);try{e.tokenMonitor?(y.writeUnexpectedFailure("tokenTimeout"),e.tokenMonitor.hasEnded||e.tokenMonitor.writeUnexpectedFailure("timeout")):E?y.writeUnexpectedFailure("authorizeTimeout"):y.writeExpectedFailure("authorizeTimeout")}catch(e){y.writeUnexpectedFailure("unexpectedFailure",e)}}},15e3)):b.timeoutId=setTimeout(function(){return t._handleIframeTimeout(A,E)},15e3),this._isolatedFrames.set(A,b)}var L=this._isolatedListeners.get(s);if(L)L.listeners.get(d)||L.listeners.set(d,{callback:n});else{var k={isolatedDomain:h,iframe:b.iframe,listeners:new Map([[d,{callback:n}]]),manifestId:u};m&&(k.botId=m),this._isolatedListeners.set(s,k)}e.isRenderedFromPersistedData||this.sendInitialize(s,u);var M=this._callbackCache.get(s);M&&this._invokeCallback(s,M,d)},e.prototype.renderQuickView=function(e){var t=e.instanceId,n=e.isSelectAction,a=e.listenerId,i=e.pageTheme,r=e.targetRect,o=e.theme,s=e.viewId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:{action:{type:"QuickView",isSelectAction:n,pageTheme:i,targetRect:r,theme:o,viewId:s},instanceId:t,listenerId:a}})},e.prototype.setDisplayMode=function(e){},e.prototype.setRenderType=function(e){},e.prototype.sendAction=function(e){var t=e.instanceId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:e})},e.prototype.sendInitialize=function(e,t){this._sendMessage(this._getIsolatedFrame(e),e,{serviceAction:"Initialize",newInstanceId:e,manifestId:t})},e.prototype.updateACEData=function(e,t){this._isolatedListeners.has(e)&&this._sendMessage(this._getIsolatedFrame(e),e,{aceData:t,instanceId:e,serviceAction:"UpdateACEData"})},e.prototype.handleLocationRequest=function(e,t,n){this._sendMessage(this._getIsolatedFrame(e),e,{location:t,locationError:n,instanceId:e,serviceAction:"LocationResponse"})},e.prototype._invokeCallback=function(e,t,n){var a,i=this._isolatedListeners.get(e);this._callbackCache.set(e,t),i?n?null===(a=i.listeners.get(n))||void 0===a||a.callback(t):i.listeners.forEach(function(e){return e.callback(t)}):this._logError("No entry for ".concat(e))},e.prototype._logError=function(t){a._TraceLogger.logError(e._logSource,new Error(t))},e.prototype._getAuthToken=function(e,t,n){var i=this,r=new a._QosMonitor("IsolatedAdaptiveCardExtensionService._getAuthToken"),o=ee._AadTokenProviders.configurable;if(!o._oboThirdPartyTokenCallback)return r.writeUnexpectedFailure("oboThirdPartTokenCallbackUndefined"),void this._logError("Unexpected message: oboThirdPartyTokenCallback is not defined.");o._oboThirdPartyTokenCallback(e,t).then(function(t){var a=new URL(n),o=i._isolatedFrames.get(a.hostname);i._sendMessage(o,"",{token:t,applicationId:e,serviceAction:"OBOToken"}),r.writeSuccess()}).catch(function(e){r.writeUnexpectedFailure("oboThirdPartTokenCallbackFailure"),i._logError("Unexpected message: ".concat(JSON.stringify(e)))})},e.prototype._getIsolatedFrame=function(e){var t=this._isolatedListeners.get(e);return t?this._isolatedFrames.get(t.isolatedDomain):void 0},e.prototype._postOrQueueMessage=function(e,t,n){e.isReady?(t.messageType="serviceMessage",e.iframe.contentWindow.postMessage(t,"*")):e.messageQueue.push([n,t])},e.prototype._sendMessage=function(e,t,n){e?this._postOrQueueMessage(e,n,t):this._logError("No entry for ".concat(t))},e.serviceKey=i.ServiceKey.create("sp-adaptive-card-extension-base::IsolatedAdaptiveCardExtensionService",e),e._logSource={id:"IsolatedAdaptiveCardExtensionService"},e}(),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Image",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(R,j)},enumerable:!1,configurable:!0}),t}(G),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="PrimaryText",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(N,V)},enumerable:!1,configurable:!0}),t}(G)},ut3N:function(e,t){e.exports=d},vlQI:function(e,t){e.exports=l}})});
@@ -0,0 +1 @@
1
+ define("eeec822e-c28a-46b4-affc-7058e4c1aa80_1.15.2",["tslib","@ms/sp-telemetry","@microsoft/sp-component-base","@microsoft/sp-loader","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d,l){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2q6Q":function(e,t){e.exports=a},"7Awa":function(e,t){e.exports=i},I6O9:function(e,t){e.exports=r},Pk8u:function(e,t){e.exports=o},UWqr:function(e,t){e.exports=s},"X+PM":function(e,t){e.exports=c},mGD9:function(e){e.exports=JSON.parse('{"t":"Action Id: \\u0027{0}\\u0027 target URL should not be undefined or empty string. ","e":"Adaptive card extension icon."}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"_AdaptiveCardExtensionActionShim",function(){return p}),n.d(t,"AdaptiveCardExtensionContext",function(){return h}),n.d(t,"_AdaptiveCardExtensionHost",function(){return b}),n.d(t,"_AdaptiveCardExtensionLoader",function(){return y}),n.d(t,"BaseAdaptiveCardExtension",function(){return $}),n.d(t,"_BaseAdaptiveCardExtensionCache",function(){return A}),n.d(t,"_LocalStorageACECache",function(){return L}),n.d(t,"_isAdaptiveCardExtensionLKGCachingEnabled",function(){return s}),n.d(t,"MediaType",function(){return E}),n.d(t,"_IsolatedAdaptiveCardExtensionService",function(){return ne}),n.d(t,"BaseView",function(){return z}),n.d(t,"BaseBasicCardView",function(){return K}),n.d(t,"BaseCardView",function(){return G}),n.d(t,"BaseImageCardView",function(){return ae}),n.d(t,"BasePrimaryTextCardView",function(){return ie}),n.d(t,"QuickViewNavigator",function(){return Z}),n.d(t,"ViewNavigator",function(){return X}),n.d(t,"BaseAdaptiveCardView",function(){return q});var a=n("ut3N"),i=n("UWqr");function r(){return i._SPFlight.isEnabled(60447)}function o(){return i._SPFlight.isEnabled(60544)}function s(){return i._SPFlight.isEnabled(60456)}function c(){return i._SPKillSwitch.isActivated("6836bc4c-8a69-4ed9-92c0-0d6187f3acb6")}function d(){return i._SPKillSwitch.isActivated("5fbd4c87-42a1-445d-8480-f1fde56ccc21")}function l(){return i._SPKillSwitch.isActivated("5533d556-60de-40a4-ab2e-ff72e237d89e")}function u(){return i._SPKillSwitch.isActivated("a95479e5-e6fb-4025-855c-a344a22d7466")}function f(){return i._SPKillSwitch.isActivated("e8daf7db-132e-4225-93a4-70cc5fc06bb9")}var p=function(){function e(e,t){var n=this;this._ace=e,this._provider=t,this.handleAction=function(e){switch(e.getJsonTypeName()){case"Action.OpenUrl":n._handleOpenUrl(e);break;case"Action.ShowCard":n._handleShowCard(e);break;case"Action.Submit":n._handleSubmit(e);break;case"VivaAction.GetLocation":o()&&n._handleGetLocation(e);break;case"VivaAction.SelectMedia":r()&&n._handleSelectMedia(e);break;case"VivaAction.ShowLocation":o()&&n._handleShowLocation(e)}}}return e.prototype._handleGetLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.GetLocation",!0);try{var i={chooseLocationOnMap:null===(t=e.parameters)||void 0===t?void 0:t.chooseLocationOnMap};this._provider.getLocation(this._ace).getLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.GetLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleOpenUrl=function(e){var t=e.url;t&&(this._provider.openUrl(this._ace,t),this._provider.log(this._ace,"OpenUrl"))},e.prototype._handleSelectMedia=function(e){i._SPKillSwitch.isActivated("f9047381-ce17-4042-bc46-d04681d0016b")?this._provider.selectMedia(this._ace,e).getMedia():this._provider.selectMedia(this._ace,e).getMedia(e),this._provider.log(this._ace,"VivaAction.SelectMedia")},e.prototype._handleShowCard=function(e){var t={id:e.id,type:"ShowCard"};this._provider.aceActionHandler(this._ace,t),this._provider.log(this._ace,"ShowCard")},e.prototype._handleShowLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.ShowLocation",!0);try{var i={locationCoordinates:null===(t=e.parameters)||void 0===t?void 0:t.locationCoordinates};this._provider.showLocation(this._ace).showLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.ShowLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleSubmit=function(e){var t,n=this,i=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.handleConfirmationDialog",!0),r=null===(t=e.data)||void 0===t?void 0:t._internalQuickViewId;if(r)this._provider.quickView(r);else{var o={data:e.data,id:e.id,type:"Submit"};this._provider.confirmationDialog(o).then(function(e){i.writeSuccess(),e||(n._provider.aceActionHandler(n._ace,o),n._provider.log(n._ace,"Submit"))}).catch(function(){i.writeUnexpectedFailure()})}},e}(),m=n("17wl"),_=n("7Awa"),h=function(e){function t(t){var n=e.call(this,t)||this;return n._aceHost=t.host,n.manifest=t.manifest,n._deviceContext=t.deviceContext,n._location=t.location,n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"_host",{get:function(){return this._aceHost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyPane",{get:function(){return this._host.propertyPane},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceContext",{get:function(){return this._deviceContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location()},enumerable:!1,configurable:!0}),t}(_.BaseComponentContext),b=function(){function e(e){this._onBeforeInitializedCallback=e.onBeforeInitializedCallback,this._onUpdateCallback=e.onUpdateCallback,this._onErrorCallback=e.onError,this._onRequestRenderTypeCallback=e.onRequestRenderTypeCallback,this._onVisibilityChanged=e.onVisibilityChanged,this._cache=e.cache,this.propertyPane=e.propertyPane}return e.prototype.update=function(e){this._onUpdateCallback(e)},e.prototype.onBeforeInitialized=function(e){this._onBeforeInitializedCallback&&this._onBeforeInitializedCallback(e)},e.prototype.onError=function(e){this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.requestRenderTypeChange=function(e,t){this._onRequestRenderTypeCallback(e,t)},Object.defineProperty(e.prototype,"cache",{get:function(){return this._cache},enumerable:!1,configurable:!0}),e.prototype.onVisibilityChanged=function(e){this._onVisibilityChanged(e)},e}(),g=n("I6O9"),v=n("2q6Q"),y=function(){function e(){}return e._createQosExtraData=function(e,t){return{alias:e.alias,deviceContext:t,isInternal:e.isInternal,manifestId:e.id,mpnId:e.mpnId,scenarioId:i._SPKillSwitch.isActivated("b544c716-bfa4-4bbb-a8df-237a8ecf2e47")?void 0:v._PerformanceLogger.getScenarioId(),storeAppId:e.storeAppId,teamsHosted:i._BrowserUtilities.isTeamsHosted()}},e.prototype.load=function(t){var n,r,o=this,s=i._SPKillSwitch.isActivated("8af93b94-0baf-43b2-9f46-c302729482e8")?new a._QosMonitor("AdaptiveCardExtension.Load",!0):new a._QosMonitor("AdaptiveCardExtension.Load",!0,!0),c=e._createQosExtraData(t.manifest,t.deviceContext),l="WebPart.ACE_".concat(t.manifest.alias,".").concat(t.manifest.isInternal?"internal":"external",".").concat(t.instanceId);return d()||v._PerformanceLogger.startMarkForComponent(l),g.SPComponentLoader.loadComponent(t.manifest).then(function(e){return e.default&&(e=e.default),d()||v._PerformanceLogger.markComponentModuleLoaded(l),new e}).catch(function(e){throw d()||v._PerformanceLogger.endFailureForComponent(l,"Load",e),s.writeUnexpectedFailure("AdaptiveCardExtensionLoadFailed",e,c),n=e,e}).then(function(e){(r=e)._internalInitialize(o._getContext(t),t.addedFromPersistedData,t.initialDisplayMode,l),r._internalDeserialize(t.aceData),t.host.onBeforeInitialized(r);var n,a=t.cacheObject?{state:(n=t.cacheObject).cachedState,cardNavigatorState:n.cardNavigatorState}:void 0;return r.onInit(a)}).then(function(){return d()||v._PerformanceLogger.markComponent(l,"init"),s.writeSuccess(c),r._internalOnAfterInit(),r}).catch(function(e){throw n||(d()||v._PerformanceLogger.endFailureForComponent(l,"Initialize",e),s.writeUnexpectedFailure("AdaptiveCardExtensionInitializationFailed",e,c)),e})},e.prototype._getContext=function(e){return new h({host:e.host,manifest:e.manifest,instanceId:e.instanceId,parentServiceScope:e.serviceScope,loggingTag:"",deviceContext:e.deviceContext,location:e.location})},e}(),S=n("Pk8u"),D=n("mGD9"),I=new RegExp(/(?=.+)(\/l\/entity\/.+)/gi),x={Medium:1,Large:2};function C(e,t,n,a,s){var c,d;if("Submit"===t.type)(d=t).confirmationDialog&&(d.parameters||(d.parameters={}),d.parameters.__MSConfirmationDialog__=d.confirmationDialog),c={id:n,type:"Action.Submit",style:s,title:a,data:t.parameters||void 0};else if("ExternalLink"===t.type){O(t.parameters,e);var l=t.parameters.target;if(!l||""===l)throw new Error(i.Text.format(D.t,n));c={id:n,type:"Action.OpenUrl",style:s,title:a,url:l}}else"QuickView"===t.type?c={id:n,type:"Action.Submit",style:s,title:a,data:{_internalQuickViewId:t.parameters.view}}:r()&&"VivaAction.SelectMedia"===t.type?c={id:n,type:"VivaAction.SelectMedia",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.GetLocation"===t.type?c={id:n,type:"VivaAction.GetLocation",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.ShowLocation"===t.type&&(c={id:n,type:"VivaAction.ShowLocation",style:s,title:a,parameters:t.parameters});return c}function O(e,t){if(e&&e.isTeamsDeepLink&&function(e){return i._SPKillSwitch.isActivated("cfe2dadf-9488-4409-b3d4-d3dd23a7970e")?"WebView"===e:"Mobile"!==e}(t)){var n=e.target.match(I);n&&n[0]&&(e.target="msteams:".concat(n[0]))}}function w(e,t,n,a,i,r){var o,s=e.cardButtons,c=e.data,d=e.onCardSelection,l=e._templateType;if(a||(a=e.template),void 0===s||"Image"===l&&"Large"!==t||function(e,t,n,a){for(var i=[],r=Math.min(x[n],(null==t?void 0:t.length)||0),o=0;o<r;o++){var s=t[o],c=s.id?s.id:"ac-button-".concat(o);i.push(C(a,s.action,c,s.title,s.style))}e.actions=i}(a,s,t,n),d){var u=C(n,d,"select-action");"Action.OpenUrl"!==u.type&&"Action.Submit"!==u.type&&"VivaAction.GetLocation"!==u.type&&"VivaAction.ShowLocation"!==u.type&&"VivaAction.SelectMedia"!==u.type||(o=u)}return{data:Object(m.__assign)({selectAction:o,iconProperty:i,iconAltText:c.iconAltText||D.e,title:r},c),template:a,cardProperties:{iconProperty:c.iconProperty||i,size:t,title:c.title||r,templateType:l}}}var E,A=function(){function e(){}return e.prototype.get=function(e,t){var n=this.getFromSource(e,t);if(n)return(new Date).getTime()<n.expirationTime?n:void 0},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),t.getKey=function(e,t){return"AdaptiveCardExtension_LKG_".concat(e,"_").concat(t)},Object.defineProperty(t,"instance",{get:function(){return void 0===this._instance&&(this._instance=new t),this._instance},enumerable:!1,configurable:!0}),t.prototype.save=function(e,t,n){var a=this._getLocalStorageEntry(e);a.set(t,n);var i=Array.from(a.entries());localStorage.setItem(e,JSON.stringify(i))},t.prototype.getFromSource=function(e,t){return this._getLocalStorageEntry(e).get(t)},t.prototype._getLocalStorageEntry=function(e){var t=localStorage.getItem(e);return t?new Map(JSON.parse(t)):new Map},t}(A),k=function(){function e(e,t,n,a,i,r){this._context=e,this._getCardSize=t,this._getIconProperty=n,this._getTitle=a,this._handleInitializeCallback=i,this._settings=Object(m.__assign)(Object(m.__assign)({},this._defaultCacheSettings()),r)}return e.prototype.save=function(e,t,n,a,i){var r,o,s;if(this._settings.isEnabled){var c=this._initializeCustomCardView();if(c&&c.isCacheEnabled||!c&&t.isCacheEnabled){var d=c?w(c,this._getCardSize(),this._context.deviceContext,void 0,this._getIconProperty(),this._getTitle()):n.card;s=this._createCacheObject(n,d,a,i),null===(r=this._context._host.cache)||void 0===r||r.save(L.getKey(this._context.pageContext.site.id.toString(),null===(o=this._context.pageContext.listItem)||void 0===o?void 0:o.uniqueId),e,s)}}return s},e.prototype._createCacheObject=function(e,t,n,a){return{cachedCard:t,cardNavigatorState:n,isVisible:e.isVisible,cachedState:a,expirationTime:(new Date).getTime()+1e3*this._settings.expiryTimeInSeconds}},e.prototype._initializeCustomCardView=function(){if(this._settings.cachedCardView){var e=this._settings.cachedCardView();return this._handleInitializeCallback(e),e}},e.prototype._defaultCacheSettings=function(){return{isEnabled:!0,expiryTimeInSeconds:864e3,cachedCardView:void 0}},e}(),M="auto",P={type:"TextBlock",subType:"Primary",text:"${primaryText}",weight:"Bolder",maxLines:1,spacing:"none"},T={type:"TextBlock",subType:"BodySecondary",text:"${description}",spacing:"none",wrap:!0},U={type:"TextBlock",subType:"BodyPrimary",text:"${primaryText}",spacing:"none",wrap:!0},F={type:"TextBlock",subType:"Title",text:"${title}",wrap:!1,maxLines:1,spacing:"none"},H={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},R={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},N={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},B={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},j={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},V={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},z=function(){function e(){}return Object.defineProperty(e.prototype,"cardNavigator",{get:function(){return this._ace.cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickViewNavigator",{get:function(){return this._ace.quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cardSize",{get:function(){return this._getCardSize()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),e.prototype.onAction=function(e){},e.prototype.onActionError=function(e){},e.prototype.setState=function(e){this._ace.setState(e)},e.prototype.setVisibility=function(e){this._ace.isVisible=e},e}(),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardButtons",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCardSelection",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCacheEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype._getTemplate=function(e,t){return Object(S.cloneDeep)(this.onCardSelection?t:e)},t}(z),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Basic",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(H,B)},enumerable:!1,configurable:!0}),t}(G),W=function(e){function t(t){var n=e.call(this)||this;return n._primaryText=t,n._templateType="Basic",n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{primaryText:this._primaryText}},enumerable:!1,configurable:!0}),t}(K),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"externalLink",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return""},enumerable:!1,configurable:!0}),t}(z),Q=/\{(\d+)\}/g,Y=function(){function e(){this._registeredCallbacks=new Map}return e.prototype.register=function(e,t){this._registeredCallbacks.has(e)||this._registeredCallbacks.set(e,t)},e.prototype.consume=function(e){var t=this._registeredCallbacks.get(e);if(!t)throw new Error(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(Q,function(e,n){return null===t[n]?"":""+t[n]})}("View with id {0} must be registered before being used",e));return this._registeredCallbacks.delete(e),t},Object.defineProperty(e.prototype,"size",{get:function(){return this._registeredCallbacks.size},enumerable:!1,configurable:!0}),e}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return{}},enumerable:!1,configurable:!0}),t}(q),X=function(){function e(e,t){this._handleStackChangedCallback=e,this._handleInitializeCallback=t,this._viewStack=new Array,this._viewCache=new Map,this._viewRegistry=new Y}return e.prototype.register=function(e,t){this._viewRegistry.register(e,t)},e.prototype.push=function(e,t){void 0===t&&(t=!1),this._push(e),this._handleStackChangedCallback(t)},e.prototype.replace=function(e,t){void 0===t&&(t=!1),this._pop(),this._push(e),this._handleStackChangedCallback(t)},e.prototype.pop=function(e){void 0===e&&(e=!1),this.size>1&&(this._pop(),this._handleStackChangedCallback(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this._viewStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentId",{get:function(){var e=this.size;return e?this._viewStack[e-1]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_currentView",{get:function(){return this._viewCache.get(this._viewStack[this.size-1])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewStack",{get:function(){return this._viewStack},enumerable:!1,configurable:!0}),e.prototype._clear=function(){this._viewStack=[]},e.prototype._forEach=function(e){this._viewCache.forEach(e)},e.prototype._getRegistrySize=function(){return this._viewRegistry.size},e.prototype._push=function(e){var t=this;if(void 0===this._viewCache.get(e)){var n=this._viewRegistry.consume(e)();!i._SPKillSwitch.isActivated("db1f6911-ac1f-42e4-890c-2c12bc4e2e00")&&n instanceof Promise?(n.then(function(n){t._viewCache.set(e,n),t._handleStackChangedCallback(!1)}).catch(function(e){console.error("could not load quickview",e)}),n=new J):n=n,this._handleInitializeCallback(n),this._viewCache.set(e,n)}this._viewStack.push(e)},e.prototype._pop=function(){this._viewStack.pop()},e}(),Z=function(e){function t(t,n,a){var i=e.call(this,t,n)||this;return i._closeQuickViewCallback=a,i}return Object(m.__extends)(t,e),t.prototype.close=function(){this._closeQuickViewCallback()},t}(X),$=function(e){function t(){var t=e.call(this)||this;return t._isLoggedRenderPerf=!1,t._isInitialized=!1,t._getCard=function(e){try{return w(t._cardNavigator._currentView,t.cardSize,t.context.deviceContext,e?t._ACRenderArgs.card.template:void 0,t.iconProperty,t.title)}catch(e){throw t.context._host.onError(e.toString()),e}},t._onViewInitialized=function(e){e._state=t.state,e._ace=t,e._properties=t.properties,e._getCardSize=function(){return t.cardSize},e._context=t.context},t._navigatorCallback=function(e){e||t.update(t._renderType)},t._closeQuickViewCallback=function(){t.context._host.requestRenderTypeChange("Card",t.instanceId)},t._cardSize="Medium",t._renderType="Card",t._isVisible=!0,t._urlParams=new URLSearchParams(window.location.search),t._cardNavigator=new X(t._navigatorCallback,t._onViewInitialized),t._quickViewNavigator=new Z(t._navigatorCallback,t._onViewInitialized,t._closeQuickViewCallback),t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardNavigator",{get:function(){return this._cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cardSize",{get:function(){return this._cardSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickViewNavigator",{get:function(){return this._quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedFromPersistedData",{get:function(){return this._renderedFromPersistedData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedOnce",{get:function(){return this._renderedOnce},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderType",{get:function(){return this._renderType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertiesMetadata",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this._state)throw new Error("state can only be initialized once");this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconProperty",{get:function(){return this._iconProperty},enumerable:!1,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[]}},t.prototype.loadPropertyPaneResources=function(){return Promise.resolve()},t.prototype.getCacheSettings=function(){return{}},t.prototype.getCachedState=function(e){return{}},t.prototype._internalOnAction=function(e){this.navigator._currentView.onAction(e)},t.prototype._internalOnActionError=function(e){this.navigator._currentView.onActionError(e)},t.prototype.onBeforeSerialize=function(){},t.prototype.onAfterPropertiesUpdatedExternally=function(e){},t.prototype.onAfterDeserialize=function(e,t){return e},t.prototype.onDisplayModeChanged=function(e){},t.prototype.onDispose=function(){},t.prototype.onInit=function(e){return Promise.resolve()},t.prototype.onPropertyPaneFieldChanged=function(e,t,n){},t.prototype.onRenderTypeChanged=function(e){},t.prototype.renderCard=function(){},t.prototype._getPreFrameworkPropertyPaneConfiguration=function(){return[]},Object.defineProperty(t.prototype,"_isFrameworkPropertyPaneEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,(this.cardNavigator._getRegistrySize()>0||this.cardNavigator._currentView)&&this.context._host.onVisibilityChanged(this._getRenderArguments(this.renderType))},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){if(!this._state)throw new Error("state must be initialized before calling setState");e&&(this._state=Object(m.__assign)(Object(m.__assign)({},this.state),Object(S.cloneDeep)(e)),this._cardNavigator._forEach(this._onViewInitialized),this._quickViewNavigator._forEach(this._onViewInitialized)),this._isInitialized&&this.context._host.update(this._getRenderArguments(this._renderType))},t.prototype.update=function(e,t){void 0===t&&(t=!1);var n=this._getRenderArguments(e,t);this.context._host.update(n)},t.prototype._getRenderArguments=function(e,t,n){var r,o=this;void 0===t&&(t=!1);var c=new a._QosMonitor("AdaptiveCardExtension.GetRenderArguments.".concat(e));try{if(this._setRenderType(e,n),"Card"===e&&0===this.cardNavigator.size){var l=this.renderCard();l||(l="_InternalDefaultCardView",this._cardNavigator.register(l,function(){return new W(o.description)})),this._cardNavigator.push(l,!0)}if(void 0===this._ACRenderArgs?this._ACRenderArgs={card:"Card"===e?this._getCard(t):void 0,isVisible:this._isVisible,instanceId:this.instanceId,lastUpdatedType:e,quickLook:"QuickView"===e?this._getQuickView(t):void 0}:this._updateRenderArgs(e,t),s()&&(!i._SPKillSwitch.isActivated("b8c50ded-d048-4eb9-bc41-21190d9d3bbb")&&this.context.manifest.isolatedDomain||this.displayMode===i.DisplayMode.Read)&&"Card"===e){var f=null===(r=this._cacheManager)||void 0===r?void 0:r.save(this.instanceId,this._cardNavigator._currentView,this._ACRenderArgs,this.cardNavigator.viewStack,this.getCachedState(Object(m.__assign)({},this._state)));this._ACRenderArgs.cacheObject=f}var p=void 0;d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endMarkForComponent(this._perfTagName),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),u()||(p=Object(m.__assign)(Object(m.__assign)({},p),{isInternal:this.manifest.isInternal||!1})),c.writeSuccess(p)}catch(e){p=void 0,d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endFailureForComponent(this._perfTagName,"Render",e),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),c.writeUnexpectedFailure("failedGetRenderArguments",e,Object(m.__assign)(Object(m.__assign)({},p),{alias:this.context.manifest.alias,deviceContext:this.context.deviceContext,instanceId:this.instanceId,isInternal:u()?void 0:this.manifest.isInternal||!1,manifestId:this.context.manifest.id}))}return this._ACRenderArgs},t.prototype._propertiesMetadata=function(){return this.propertiesMetadata},t.prototype._getPropertyPaneConfiguration=function(){return this.getPropertyPaneConfiguration()},Object.defineProperty(t.prototype,"navigator",{get:function(){return"Card"===this.renderType?this._cardNavigator:this._quickViewNavigator},enumerable:!1,configurable:!0}),t.prototype._internalDeserialize=function(e){e.title&&(this._title=e.title),e.iconProperty&&(this._iconProperty=e.iconProperty),e.description&&(this._description=e.description),e.cardSize&&(this._cardSize=e.cardSize);var t=e.properties;this.renderedFromPersistedData&&(_._PropertyMetadataProcessor.reInstateServerProcessedData(this.propertiesMetadata,t,e.serverProcessedContent),e.serverProcessedContent=void 0),this._properties?Object.assign(this._properties,t):this._properties=this.onAfterDeserialize(t,e.dataVersion?i.Version.parse(e.dataVersion):this.dataVersion)},t.prototype._internalInitialize=function(t,n,a,i){var r=this;e.prototype._initializeContext.call(this,t),this._displayMode=a,this._renderedOnce=!1,this._renderedFromPersistedData=n,s()&&(this._cacheManager=new k(this.context,function(){return r.cardSize},function(){return r.iconProperty},function(){return r.title},this._onViewInitialized,this.getCacheSettings())),this._perfTagName=i},t.prototype._internalSetDisplayMode=function(e){if(this._displayMode!==e){var t=this._displayMode;this._displayMode=e,this.onDisplayModeChanged(t)}},t.prototype._loadPropertyPaneResources=function(){return this.loadPropertyPaneResources()},t.prototype._onPropertyPaneFieldChanged=function(e,t,n){Object(S.isEqual)(t,n)||(this._updateProperty(e,n),this.onPropertyPaneFieldChanged(e,t,n))},t.prototype._renderCompleted=function(){this._renderedOnce=!0},t.prototype._internalOnAfterInit=function(){this._isInitialized=!0},t.prototype._internalSerialize=function(){return this.onBeforeSerialize(),{dataVersion:this.dataVersion.toString(),id:this.componentId,instanceId:this.instanceId,properties:this.properties,title:this.title,description:this._description,iconProperty:this.iconProperty,cardSize:this._cardSize}},t.prototype._setRenderType=function(e,t){if(this._renderType!==e){var n=this._renderType;"QuickView"===n&&this._quickViewNavigator._clear(),"Card"===n&&(this._quickViewNavigator._clear(),void 0!==t&&this._quickViewNavigator.push(t,!0)),this._renderType=e,this.onRenderTypeChanged(n)}},t.prototype._updateConfigurableFields=function(e,t){"cardSize"===e&&(this._cardSize=t)},t.prototype._logCardActionEngagement=function(e,t,n,r){var o,s,c,d,l,u,f,p,m,_;a._EngagementLogger.log({name:"AdaptiveCardExtension.CardAction",isIntentional:!0,siteId:null===(s=null===(o=this.context.pageContext)||void 0===o?void 0:o.site)||void 0===s?void 0:s.id.toString(),webId:null===(d=null===(c=this.context.pageContext)||void 0===c?void 0:c.web)||void 0===d?void 0:d.id.toString(),extraData:{actionType:e,alias:this.manifest.alias,componentDeveloperName:this.manifest.componentDeveloperName,correlationId:null===(l=this.context.pageContext.site.correlationId)||void 0===l?void 0:l.toString(),deviceContext:this.context.deviceContext,eventSchemaVersion:10,isInternal:this.manifest.isInternal||!1,instanceId:this.instanceId,listId:this._urlParams.get("dashboardListID")?this._urlParams.get("dashboardListID"):null===(u=this.context.pageContext.list)||void 0===u?void 0:u.id.toString(),listItemUniqueId:this._urlParams.get("id")?this._urlParams.get("id"):null===(f=this.context.pageContext.listItem)||void 0===f?void 0:f.id,manifestId:this.manifest.id,mobileSessionId:n,mobileBootType:r,mpnId:this.manifest.mpnId,renderType:i._SPKillSwitch.isActivated("6d5c9ddb-5bc7-4b59-bbdf-ff9052d33daf")||"QuickView"!==e?this.renderType:"Card",tenantId:null===(_=null===(m=null===(p=this.context.pageContext)||void 0===p?void 0:p.aadInfo)||void 0===m?void 0:m.tenantId)||void 0===_?void 0:_.toString().toLowerCase(),vivaConnectionsAppId:"d2c6f111-ffad-42a0-b65e-ee00425598aa",vivaConnectionsName:"MEE",workLoad:t}})},t.prototype._getQuickView=function(e){if(0!==this._quickViewNavigator.size){var t=this._quickViewNavigator._currentView;if(void 0!==t)return O(t.externalLink,this.context.deviceContext),{data:t.data,template:e?this._ACRenderArgs.quickLook.template:t.template,pageBarProperties:{externalLink:t.externalLink,leftNavigationButtonType:this._quickViewNavigator.size>1?"Back":"Close",title:t.title},viewId:this._quickViewNavigator.currentId,viewStackSize:this._quickViewNavigator.size}}},t.prototype._updateRenderArgs=function(e,t){this._ACRenderArgs.lastUpdatedType=e,this._ACRenderArgs.isVisible=this._isVisible,"Card"===e?this._ACRenderArgs.card=this._getCard(t):this._ACRenderArgs.quickLook=this._getQuickView(t)},t.prototype._updateProperty=function(e,t){Object(S.update)(this._properties,e,function(){return t})},t}(_.BaseComponent);!function(e){e[e.Image=1]="Image",e[e.Audio=4]="Audio"}(E||(E={}));var ee=n("vlQI"),te=n("X+PM"),ne=function(){function e(e){var t=this;this._serviceScope=e,this._callbackCache=new Map,this._isolatedFrames=new Map,this._isolatedListeners=new Map,this._handleIframeTimeout=function(e,n){var i=t._isolatedFrames.get(e),r=i.frameMonitor,o=i.retryMonitor,s=i.tokenMonitor;if(!l()&&i.retryCount<1)return i.retryCount+=1,i.iframe.src=i.iframe.src,i.retryMonitor=new a._QosMonitor("IsolatedAdaptiveCardExtension.iframeReload"),void(i.timeoutId=setTimeout(function(){return t._handleIframeTimeout(e,n)},14500));if(o&&o.writeUnexpectedFailure("reloadFailed"),r&&!r.hasEnded)try{s?(r.writeUnexpectedFailure("tokenTimeout"),s.hasEnded||s.writeUnexpectedFailure("timeout")):n?r.writeUnexpectedFailure("authorizeTimeout"):r.writeExpectedFailure("authorizeTimeout")}catch(e){r.writeUnexpectedFailure("unexpectedFailure",e)}},this._handleIsolatedApplicationMessage=function(e){var n=e.data;if("applicationMessage"===n.messageType){var i=n.instanceId,r=n.kind;switch(r){case"Card":t._invokeCallback(i,{aceData:n.aceData,card:n.card,cacheObject:n.cacheObject,type:r});break;case"CloseQuickView":var o=t._isolatedFrames.get(new URL(e.origin).hostname);o&&(o.iframe.hidden=!0);break;case"Error":t._invokeCallback(i,{error:n.error,type:r});break;case"OpenQuickView":var s=t._isolatedFrames.get(new URL(e.origin).hostname);s&&(s.iframe.hidden=!1);break;case"OpenUrl":t._invokeCallback(i,{type:r,url:n.url});break;case"LocationRequest":t._invokeCallback(i,{type:r});break;case"Ready":var d=t._isolatedFrames.get(new URL(e.origin).hostname);if(d){!l()&&d.retryMonitor&&d.retryMonitor.writeSuccess(),c()||(clearTimeout(d.timeoutId),d.frameMonitor.writeSuccess()),d.isReady=!0;for(var u=0,f=d.messageQueue;u<f.length;u++){var p=f[u],m=p[0],_=p[1];t._sendMessage(t._getIsolatedFrame(m),m,_)}d.messageQueue=[]}break;case"OBOTokenRequest":var h=n.applicationId,b=n.claims;t._getAuthToken(h,b,e.origin);break;default:t._logError("Unexpected message: ".concat(JSON.stringify(e.data)))}}else if("bridgeMessage"===n.messageType&&"onTokenRequested"===n.bridgeAction){var g=c(),v=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.onTokenRequested"),y=(h=n.applicationId,b=n.claims,t._isolatedFrames.get(new URL(e.origin).hostname));if(!g&&!y)return void v.writeUnexpectedFailure("missingIsolatedFrame");y.tokenMonitor=v;var S=ee._AadTokenProviders.configurable;if(!g&&!S._oboThirdPartyTokenCallback)return void v.writeUnexpectedFailure("missingThirdPartyTokenCallback");try{S._oboThirdPartyTokenCallback(h,b).then(function(e){if(!g&&!y.iframe.contentWindow)throw new Error("missingContentWindow");y.iframe.contentWindow.postMessage({token:e,messageType:"dashboardMessage",kind:"Token"},"*"),g||v.writeSuccess()}).catch(function(e){g||v.writeUnexpectedFailure("oboThirdPartyTokenCallbackError",e)})}catch(e){g||v.writeUnexpectedFailure("unexpectedException",e)}}},window.addEventListener("message",this._handleIsolatedApplicationMessage)}return Object.defineProperty(e.prototype,"_pageContext",{get:function(){return this._pContext||(this._pContext=this._serviceScope.consume(te.PageContext.serviceKey)),this._pContext},enumerable:!1,configurable:!0}),e.prototype.disposeEntry=function(e){this._isolatedListeners.delete(e)},e.prototype.load=function(e){var t=this,n=e.callback,r=e.dashboardListId,o=e.itemId,s=e.instanceId,d=e.listenerId,u=e.manifestId,p=e.serviceDestinationEndpoint,m=e.botId,h=e.isolatedDomain.toLowerCase(),b=this._isolatedFrames.get(h);if(!b){var g=c(),y=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.load"),S=document.createElement("iframe"),D=this._pageContext.site.serverRelativeUrl,I="/"===D?"":D,x=new URLSearchParams(window.location.search);x.append("dashboardListID",r),x.append("id",o),1===v._SPPerfExperiment.getVariantAndTrackExperiment(v._PerformanceExperiment.WEXOOPIF)&&x.append("OOPIF","1"),(f()||m)&&x.append("instanceId",s);var C=f()||void 0===p?"adaptivecardextensions.aspx":p,O="/_layouts/15/".concat(C,"?").concat(x.toString()),w=Object(_._ensureIsolatedDomainUrl)(h,this._pageContext.web.absoluteUrl),E=i._BrowserUtilities.isTeams1PVivaDesktopHosted(a._QosMonitor);E&&i._SPFlight.isEnabled(60128)?S.src="".concat(w,"/_layouts/15/framedteamslogon.aspx?spfx=true&dest=").concat(encodeURIComponent(I+O)):S.src=w+O,S.hidden=!0,S.scrolling="no",S.style.overflow="hidden",S.style.height="100%",S.style.width="100%",S.style.top="0",S.style.left="0",S.style.position="fixed",S.style.zIndex="99999",S.style.border="none",i._SPKillSwitch.isActivated("bc68fda3-34d5-496b-8515-8d140a0c98ac")||S.setAttribute("allow","geolocation"),i._SPKillSwitch.isActivated("edddfc6b-79f6-49a3-8bb9-bd5a7a0eb10c")||S.setAttribute("data-automation-id","isolated_ACE_iframe"),document.body.appendChild(S);var A=h.toLowerCase();b={iframe:S,frameMonitor:y,isReady:!1,messageQueue:[],retryCount:0},l()?g||(b.timeoutId=setTimeout(function(){if(y&&!y.hasEnded){var e=t._isolatedFrames.get(A);try{e.tokenMonitor?(y.writeUnexpectedFailure("tokenTimeout"),e.tokenMonitor.hasEnded||e.tokenMonitor.writeUnexpectedFailure("timeout")):E?y.writeUnexpectedFailure("authorizeTimeout"):y.writeExpectedFailure("authorizeTimeout")}catch(e){y.writeUnexpectedFailure("unexpectedFailure",e)}}},15e3)):b.timeoutId=setTimeout(function(){return t._handleIframeTimeout(A,E)},15e3),this._isolatedFrames.set(A,b)}var L=this._isolatedListeners.get(s);if(L)L.listeners.get(d)||L.listeners.set(d,{callback:n});else{var k={isolatedDomain:h,iframe:b.iframe,listeners:new Map([[d,{callback:n}]]),manifestId:u};m&&(k.botId=m),this._isolatedListeners.set(s,k)}e.isRenderedFromPersistedData||this.sendInitialize(s,u);var M=this._callbackCache.get(s);M&&this._invokeCallback(s,M,d)},e.prototype.renderQuickView=function(e){var t=e.instanceId,n=e.isSelectAction,a=e.listenerId,i=e.pageTheme,r=e.targetRect,o=e.theme,s=e.viewId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:{action:{type:"QuickView",isSelectAction:n,pageTheme:i,targetRect:r,theme:o,viewId:s},instanceId:t,listenerId:a}})},e.prototype.setDisplayMode=function(e){},e.prototype.setRenderType=function(e){},e.prototype.sendAction=function(e){var t=e.instanceId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:e})},e.prototype.sendInitialize=function(e,t){this._sendMessage(this._getIsolatedFrame(e),e,{serviceAction:"Initialize",newInstanceId:e,manifestId:t})},e.prototype.updateACEData=function(e,t){this._isolatedListeners.has(e)&&this._sendMessage(this._getIsolatedFrame(e),e,{aceData:t,instanceId:e,serviceAction:"UpdateACEData"})},e.prototype.handleLocationRequest=function(e,t,n){this._sendMessage(this._getIsolatedFrame(e),e,{location:t,locationError:n,instanceId:e,serviceAction:"LocationResponse"})},e.prototype._invokeCallback=function(e,t,n){var a,i=this._isolatedListeners.get(e);this._callbackCache.set(e,t),i?n?null===(a=i.listeners.get(n))||void 0===a||a.callback(t):i.listeners.forEach(function(e){return e.callback(t)}):this._logError("No entry for ".concat(e))},e.prototype._logError=function(t){a._TraceLogger.logError(e._logSource,new Error(t))},e.prototype._getAuthToken=function(e,t,n){var i=this,r=new a._QosMonitor("IsolatedAdaptiveCardExtensionService._getAuthToken"),o=ee._AadTokenProviders.configurable;if(!o._oboThirdPartyTokenCallback)return r.writeUnexpectedFailure("oboThirdPartTokenCallbackUndefined"),void this._logError("Unexpected message: oboThirdPartyTokenCallback is not defined.");o._oboThirdPartyTokenCallback(e,t).then(function(t){var a=new URL(n),o=i._isolatedFrames.get(a.hostname);i._sendMessage(o,"",{token:t,applicationId:e,serviceAction:"OBOToken"}),r.writeSuccess()}).catch(function(e){r.writeUnexpectedFailure("oboThirdPartTokenCallbackFailure"),i._logError("Unexpected message: ".concat(JSON.stringify(e)))})},e.prototype._getIsolatedFrame=function(e){var t=this._isolatedListeners.get(e);return t?this._isolatedFrames.get(t.isolatedDomain):void 0},e.prototype._postOrQueueMessage=function(e,t,n){e.isReady?(t.messageType="serviceMessage",e.iframe.contentWindow.postMessage(t,"*")):e.messageQueue.push([n,t])},e.prototype._sendMessage=function(e,t,n){e?this._postOrQueueMessage(e,n,t):this._logError("No entry for ".concat(t))},e.serviceKey=i.ServiceKey.create("sp-adaptive-card-extension-base::IsolatedAdaptiveCardExtensionService",e),e._logSource={id:"IsolatedAdaptiveCardExtensionService"},e}(),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Image",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(R,j)},enumerable:!1,configurable:!0}),t}(G),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="PrimaryText",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(N,V)},enumerable:!1,configurable:!0}),t}(G)},ut3N:function(e,t){e.exports=d},vlQI:function(e,t){e.exports=l}})});
@@ -0,0 +1 @@
1
+ define("eeec822e-c28a-46b4-affc-7058e4c1aa80_1.15.2",["tslib","@ms/sp-telemetry","@microsoft/sp-component-base","@microsoft/sp-loader","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d,l){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2q6Q":function(e,t){e.exports=a},"7Awa":function(e,t){e.exports=i},I6O9:function(e,t){e.exports=r},Pk8u:function(e,t){e.exports=o},UWqr:function(e,t){e.exports=s},"X+PM":function(e,t){e.exports=c},mGD9:function(e){e.exports=JSON.parse('{"t":"[!!--##Àćţĩōń Ĩď: \\u0027{0}\\u0027 ţàŕĝēţ ŨŔĹ śĥōũĺď ńōţ ƀē ũńďēƒĩńēď ōŕ ēmƥţŷ śţŕĩńĝ. ##--!!]","e":"[!!--##Àďàƥţĩvē ćàŕď ēxţēńśĩōń ĩćōń.##--!!]"}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"_AdaptiveCardExtensionActionShim",function(){return p}),n.d(t,"AdaptiveCardExtensionContext",function(){return h}),n.d(t,"_AdaptiveCardExtensionHost",function(){return b}),n.d(t,"_AdaptiveCardExtensionLoader",function(){return y}),n.d(t,"BaseAdaptiveCardExtension",function(){return $}),n.d(t,"_BaseAdaptiveCardExtensionCache",function(){return A}),n.d(t,"_LocalStorageACECache",function(){return L}),n.d(t,"_isAdaptiveCardExtensionLKGCachingEnabled",function(){return s}),n.d(t,"MediaType",function(){return E}),n.d(t,"_IsolatedAdaptiveCardExtensionService",function(){return ne}),n.d(t,"BaseView",function(){return z}),n.d(t,"BaseBasicCardView",function(){return K}),n.d(t,"BaseCardView",function(){return G}),n.d(t,"BaseImageCardView",function(){return ae}),n.d(t,"BasePrimaryTextCardView",function(){return ie}),n.d(t,"QuickViewNavigator",function(){return Z}),n.d(t,"ViewNavigator",function(){return X}),n.d(t,"BaseAdaptiveCardView",function(){return q});var a=n("ut3N"),i=n("UWqr");function r(){return i._SPFlight.isEnabled(60447)}function o(){return i._SPFlight.isEnabled(60544)}function s(){return i._SPFlight.isEnabled(60456)}function c(){return i._SPKillSwitch.isActivated("6836bc4c-8a69-4ed9-92c0-0d6187f3acb6")}function d(){return i._SPKillSwitch.isActivated("5fbd4c87-42a1-445d-8480-f1fde56ccc21")}function l(){return i._SPKillSwitch.isActivated("5533d556-60de-40a4-ab2e-ff72e237d89e")}function u(){return i._SPKillSwitch.isActivated("a95479e5-e6fb-4025-855c-a344a22d7466")}function f(){return i._SPKillSwitch.isActivated("e8daf7db-132e-4225-93a4-70cc5fc06bb9")}var p=function(){function e(e,t){var n=this;this._ace=e,this._provider=t,this.handleAction=function(e){switch(e.getJsonTypeName()){case"Action.OpenUrl":n._handleOpenUrl(e);break;case"Action.ShowCard":n._handleShowCard(e);break;case"Action.Submit":n._handleSubmit(e);break;case"VivaAction.GetLocation":o()&&n._handleGetLocation(e);break;case"VivaAction.SelectMedia":r()&&n._handleSelectMedia(e);break;case"VivaAction.ShowLocation":o()&&n._handleShowLocation(e)}}}return e.prototype._handleGetLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.GetLocation",!0);try{var i={chooseLocationOnMap:null===(t=e.parameters)||void 0===t?void 0:t.chooseLocationOnMap};this._provider.getLocation(this._ace).getLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.GetLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleOpenUrl=function(e){var t=e.url;t&&(this._provider.openUrl(this._ace,t),this._provider.log(this._ace,"OpenUrl"))},e.prototype._handleSelectMedia=function(e){i._SPKillSwitch.isActivated("f9047381-ce17-4042-bc46-d04681d0016b")?this._provider.selectMedia(this._ace,e).getMedia():this._provider.selectMedia(this._ace,e).getMedia(e),this._provider.log(this._ace,"VivaAction.SelectMedia")},e.prototype._handleShowCard=function(e){var t={id:e.id,type:"ShowCard"};this._provider.aceActionHandler(this._ace,t),this._provider.log(this._ace,"ShowCard")},e.prototype._handleShowLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.ShowLocation",!0);try{var i={locationCoordinates:null===(t=e.parameters)||void 0===t?void 0:t.locationCoordinates};this._provider.showLocation(this._ace).showLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.ShowLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleSubmit=function(e){var t,n=this,i=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.handleConfirmationDialog",!0),r=null===(t=e.data)||void 0===t?void 0:t._internalQuickViewId;if(r)this._provider.quickView(r);else{var o={data:e.data,id:e.id,type:"Submit"};this._provider.confirmationDialog(o).then(function(e){i.writeSuccess(),e||(n._provider.aceActionHandler(n._ace,o),n._provider.log(n._ace,"Submit"))}).catch(function(){i.writeUnexpectedFailure()})}},e}(),m=n("17wl"),_=n("7Awa"),h=function(e){function t(t){var n=e.call(this,t)||this;return n._aceHost=t.host,n.manifest=t.manifest,n._deviceContext=t.deviceContext,n._location=t.location,n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"_host",{get:function(){return this._aceHost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyPane",{get:function(){return this._host.propertyPane},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceContext",{get:function(){return this._deviceContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location()},enumerable:!1,configurable:!0}),t}(_.BaseComponentContext),b=function(){function e(e){this._onBeforeInitializedCallback=e.onBeforeInitializedCallback,this._onUpdateCallback=e.onUpdateCallback,this._onErrorCallback=e.onError,this._onRequestRenderTypeCallback=e.onRequestRenderTypeCallback,this._onVisibilityChanged=e.onVisibilityChanged,this._cache=e.cache,this.propertyPane=e.propertyPane}return e.prototype.update=function(e){this._onUpdateCallback(e)},e.prototype.onBeforeInitialized=function(e){this._onBeforeInitializedCallback&&this._onBeforeInitializedCallback(e)},e.prototype.onError=function(e){this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.requestRenderTypeChange=function(e,t){this._onRequestRenderTypeCallback(e,t)},Object.defineProperty(e.prototype,"cache",{get:function(){return this._cache},enumerable:!1,configurable:!0}),e.prototype.onVisibilityChanged=function(e){this._onVisibilityChanged(e)},e}(),g=n("I6O9"),v=n("2q6Q"),y=function(){function e(){}return e._createQosExtraData=function(e,t){return{alias:e.alias,deviceContext:t,isInternal:e.isInternal,manifestId:e.id,mpnId:e.mpnId,scenarioId:i._SPKillSwitch.isActivated("b544c716-bfa4-4bbb-a8df-237a8ecf2e47")?void 0:v._PerformanceLogger.getScenarioId(),storeAppId:e.storeAppId,teamsHosted:i._BrowserUtilities.isTeamsHosted()}},e.prototype.load=function(t){var n,r,o=this,s=i._SPKillSwitch.isActivated("8af93b94-0baf-43b2-9f46-c302729482e8")?new a._QosMonitor("AdaptiveCardExtension.Load",!0):new a._QosMonitor("AdaptiveCardExtension.Load",!0,!0),c=e._createQosExtraData(t.manifest,t.deviceContext),l="WebPart.ACE_".concat(t.manifest.alias,".").concat(t.manifest.isInternal?"internal":"external",".").concat(t.instanceId);return d()||v._PerformanceLogger.startMarkForComponent(l),g.SPComponentLoader.loadComponent(t.manifest).then(function(e){return e.default&&(e=e.default),d()||v._PerformanceLogger.markComponentModuleLoaded(l),new e}).catch(function(e){throw d()||v._PerformanceLogger.endFailureForComponent(l,"Load",e),s.writeUnexpectedFailure("AdaptiveCardExtensionLoadFailed",e,c),n=e,e}).then(function(e){(r=e)._internalInitialize(o._getContext(t),t.addedFromPersistedData,t.initialDisplayMode,l),r._internalDeserialize(t.aceData),t.host.onBeforeInitialized(r);var n,a=t.cacheObject?{state:(n=t.cacheObject).cachedState,cardNavigatorState:n.cardNavigatorState}:void 0;return r.onInit(a)}).then(function(){return d()||v._PerformanceLogger.markComponent(l,"init"),s.writeSuccess(c),r._internalOnAfterInit(),r}).catch(function(e){throw n||(d()||v._PerformanceLogger.endFailureForComponent(l,"Initialize",e),s.writeUnexpectedFailure("AdaptiveCardExtensionInitializationFailed",e,c)),e})},e.prototype._getContext=function(e){return new h({host:e.host,manifest:e.manifest,instanceId:e.instanceId,parentServiceScope:e.serviceScope,loggingTag:"",deviceContext:e.deviceContext,location:e.location})},e}(),S=n("Pk8u"),D=n("mGD9"),I=new RegExp(/(?=.+)(\/l\/entity\/.+)/gi),x={Medium:1,Large:2};function C(e,t,n,a,s){var c,d;if("Submit"===t.type)(d=t).confirmationDialog&&(d.parameters||(d.parameters={}),d.parameters.__MSConfirmationDialog__=d.confirmationDialog),c={id:n,type:"Action.Submit",style:s,title:a,data:t.parameters||void 0};else if("ExternalLink"===t.type){O(t.parameters,e);var l=t.parameters.target;if(!l||""===l)throw new Error(i.Text.format(D.t,n));c={id:n,type:"Action.OpenUrl",style:s,title:a,url:l}}else"QuickView"===t.type?c={id:n,type:"Action.Submit",style:s,title:a,data:{_internalQuickViewId:t.parameters.view}}:r()&&"VivaAction.SelectMedia"===t.type?c={id:n,type:"VivaAction.SelectMedia",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.GetLocation"===t.type?c={id:n,type:"VivaAction.GetLocation",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.ShowLocation"===t.type&&(c={id:n,type:"VivaAction.ShowLocation",style:s,title:a,parameters:t.parameters});return c}function O(e,t){if(e&&e.isTeamsDeepLink&&function(e){return i._SPKillSwitch.isActivated("cfe2dadf-9488-4409-b3d4-d3dd23a7970e")?"WebView"===e:"Mobile"!==e}(t)){var n=e.target.match(I);n&&n[0]&&(e.target="msteams:".concat(n[0]))}}function w(e,t,n,a,i,r){var o,s=e.cardButtons,c=e.data,d=e.onCardSelection,l=e._templateType;if(a||(a=e.template),void 0===s||"Image"===l&&"Large"!==t||function(e,t,n,a){for(var i=[],r=Math.min(x[n],(null==t?void 0:t.length)||0),o=0;o<r;o++){var s=t[o],c=s.id?s.id:"ac-button-".concat(o);i.push(C(a,s.action,c,s.title,s.style))}e.actions=i}(a,s,t,n),d){var u=C(n,d,"select-action");"Action.OpenUrl"!==u.type&&"Action.Submit"!==u.type&&"VivaAction.GetLocation"!==u.type&&"VivaAction.ShowLocation"!==u.type&&"VivaAction.SelectMedia"!==u.type||(o=u)}return{data:Object(m.__assign)({selectAction:o,iconProperty:i,iconAltText:c.iconAltText||D.e,title:r},c),template:a,cardProperties:{iconProperty:c.iconProperty||i,size:t,title:c.title||r,templateType:l}}}var E,A=function(){function e(){}return e.prototype.get=function(e,t){var n=this.getFromSource(e,t);if(n)return(new Date).getTime()<n.expirationTime?n:void 0},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),t.getKey=function(e,t){return"AdaptiveCardExtension_LKG_".concat(e,"_").concat(t)},Object.defineProperty(t,"instance",{get:function(){return void 0===this._instance&&(this._instance=new t),this._instance},enumerable:!1,configurable:!0}),t.prototype.save=function(e,t,n){var a=this._getLocalStorageEntry(e);a.set(t,n);var i=Array.from(a.entries());localStorage.setItem(e,JSON.stringify(i))},t.prototype.getFromSource=function(e,t){return this._getLocalStorageEntry(e).get(t)},t.prototype._getLocalStorageEntry=function(e){var t=localStorage.getItem(e);return t?new Map(JSON.parse(t)):new Map},t}(A),k=function(){function e(e,t,n,a,i,r){this._context=e,this._getCardSize=t,this._getIconProperty=n,this._getTitle=a,this._handleInitializeCallback=i,this._settings=Object(m.__assign)(Object(m.__assign)({},this._defaultCacheSettings()),r)}return e.prototype.save=function(e,t,n,a,i){var r,o,s;if(this._settings.isEnabled){var c=this._initializeCustomCardView();if(c&&c.isCacheEnabled||!c&&t.isCacheEnabled){var d=c?w(c,this._getCardSize(),this._context.deviceContext,void 0,this._getIconProperty(),this._getTitle()):n.card;s=this._createCacheObject(n,d,a,i),null===(r=this._context._host.cache)||void 0===r||r.save(L.getKey(this._context.pageContext.site.id.toString(),null===(o=this._context.pageContext.listItem)||void 0===o?void 0:o.uniqueId),e,s)}}return s},e.prototype._createCacheObject=function(e,t,n,a){return{cachedCard:t,cardNavigatorState:n,isVisible:e.isVisible,cachedState:a,expirationTime:(new Date).getTime()+1e3*this._settings.expiryTimeInSeconds}},e.prototype._initializeCustomCardView=function(){if(this._settings.cachedCardView){var e=this._settings.cachedCardView();return this._handleInitializeCallback(e),e}},e.prototype._defaultCacheSettings=function(){return{isEnabled:!0,expiryTimeInSeconds:864e3,cachedCardView:void 0}},e}(),M="auto",P={type:"TextBlock",subType:"Primary",text:"${primaryText}",weight:"Bolder",maxLines:1,spacing:"none"},T={type:"TextBlock",subType:"BodySecondary",text:"${description}",spacing:"none",wrap:!0},U={type:"TextBlock",subType:"BodyPrimary",text:"${primaryText}",spacing:"none",wrap:!0},F={type:"TextBlock",subType:"Title",text:"${title}",wrap:!1,maxLines:1,spacing:"none"},H={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},R={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},N={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},B={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},j={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},V={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},z=function(){function e(){}return Object.defineProperty(e.prototype,"cardNavigator",{get:function(){return this._ace.cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickViewNavigator",{get:function(){return this._ace.quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cardSize",{get:function(){return this._getCardSize()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),e.prototype.onAction=function(e){},e.prototype.onActionError=function(e){},e.prototype.setState=function(e){this._ace.setState(e)},e.prototype.setVisibility=function(e){this._ace.isVisible=e},e}(),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardButtons",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCardSelection",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCacheEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype._getTemplate=function(e,t){return Object(S.cloneDeep)(this.onCardSelection?t:e)},t}(z),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Basic",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(H,B)},enumerable:!1,configurable:!0}),t}(G),W=function(e){function t(t){var n=e.call(this)||this;return n._primaryText=t,n._templateType="Basic",n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{primaryText:this._primaryText}},enumerable:!1,configurable:!0}),t}(K),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"externalLink",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return""},enumerable:!1,configurable:!0}),t}(z),Q=/\{(\d+)\}/g,Y=function(){function e(){this._registeredCallbacks=new Map}return e.prototype.register=function(e,t){this._registeredCallbacks.has(e)||this._registeredCallbacks.set(e,t)},e.prototype.consume=function(e){var t=this._registeredCallbacks.get(e);if(!t)throw new Error(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(Q,function(e,n){return null===t[n]?"":""+t[n]})}("View with id {0} must be registered before being used",e));return this._registeredCallbacks.delete(e),t},Object.defineProperty(e.prototype,"size",{get:function(){return this._registeredCallbacks.size},enumerable:!1,configurable:!0}),e}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return{}},enumerable:!1,configurable:!0}),t}(q),X=function(){function e(e,t){this._handleStackChangedCallback=e,this._handleInitializeCallback=t,this._viewStack=new Array,this._viewCache=new Map,this._viewRegistry=new Y}return e.prototype.register=function(e,t){this._viewRegistry.register(e,t)},e.prototype.push=function(e,t){void 0===t&&(t=!1),this._push(e),this._handleStackChangedCallback(t)},e.prototype.replace=function(e,t){void 0===t&&(t=!1),this._pop(),this._push(e),this._handleStackChangedCallback(t)},e.prototype.pop=function(e){void 0===e&&(e=!1),this.size>1&&(this._pop(),this._handleStackChangedCallback(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this._viewStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentId",{get:function(){var e=this.size;return e?this._viewStack[e-1]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_currentView",{get:function(){return this._viewCache.get(this._viewStack[this.size-1])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewStack",{get:function(){return this._viewStack},enumerable:!1,configurable:!0}),e.prototype._clear=function(){this._viewStack=[]},e.prototype._forEach=function(e){this._viewCache.forEach(e)},e.prototype._getRegistrySize=function(){return this._viewRegistry.size},e.prototype._push=function(e){var t=this;if(void 0===this._viewCache.get(e)){var n=this._viewRegistry.consume(e)();!i._SPKillSwitch.isActivated("db1f6911-ac1f-42e4-890c-2c12bc4e2e00")&&n instanceof Promise?(n.then(function(n){t._viewCache.set(e,n),t._handleStackChangedCallback(!1)}).catch(function(e){console.error("could not load quickview",e)}),n=new J):n=n,this._handleInitializeCallback(n),this._viewCache.set(e,n)}this._viewStack.push(e)},e.prototype._pop=function(){this._viewStack.pop()},e}(),Z=function(e){function t(t,n,a){var i=e.call(this,t,n)||this;return i._closeQuickViewCallback=a,i}return Object(m.__extends)(t,e),t.prototype.close=function(){this._closeQuickViewCallback()},t}(X),$=function(e){function t(){var t=e.call(this)||this;return t._isLoggedRenderPerf=!1,t._isInitialized=!1,t._getCard=function(e){try{return w(t._cardNavigator._currentView,t.cardSize,t.context.deviceContext,e?t._ACRenderArgs.card.template:void 0,t.iconProperty,t.title)}catch(e){throw t.context._host.onError(e.toString()),e}},t._onViewInitialized=function(e){e._state=t.state,e._ace=t,e._properties=t.properties,e._getCardSize=function(){return t.cardSize},e._context=t.context},t._navigatorCallback=function(e){e||t.update(t._renderType)},t._closeQuickViewCallback=function(){t.context._host.requestRenderTypeChange("Card",t.instanceId)},t._cardSize="Medium",t._renderType="Card",t._isVisible=!0,t._urlParams=new URLSearchParams(window.location.search),t._cardNavigator=new X(t._navigatorCallback,t._onViewInitialized),t._quickViewNavigator=new Z(t._navigatorCallback,t._onViewInitialized,t._closeQuickViewCallback),t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardNavigator",{get:function(){return this._cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cardSize",{get:function(){return this._cardSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickViewNavigator",{get:function(){return this._quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedFromPersistedData",{get:function(){return this._renderedFromPersistedData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedOnce",{get:function(){return this._renderedOnce},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderType",{get:function(){return this._renderType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertiesMetadata",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this._state)throw new Error("state can only be initialized once");this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconProperty",{get:function(){return this._iconProperty},enumerable:!1,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[]}},t.prototype.loadPropertyPaneResources=function(){return Promise.resolve()},t.prototype.getCacheSettings=function(){return{}},t.prototype.getCachedState=function(e){return{}},t.prototype._internalOnAction=function(e){this.navigator._currentView.onAction(e)},t.prototype._internalOnActionError=function(e){this.navigator._currentView.onActionError(e)},t.prototype.onBeforeSerialize=function(){},t.prototype.onAfterPropertiesUpdatedExternally=function(e){},t.prototype.onAfterDeserialize=function(e,t){return e},t.prototype.onDisplayModeChanged=function(e){},t.prototype.onDispose=function(){},t.prototype.onInit=function(e){return Promise.resolve()},t.prototype.onPropertyPaneFieldChanged=function(e,t,n){},t.prototype.onRenderTypeChanged=function(e){},t.prototype.renderCard=function(){},t.prototype._getPreFrameworkPropertyPaneConfiguration=function(){return[]},Object.defineProperty(t.prototype,"_isFrameworkPropertyPaneEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,(this.cardNavigator._getRegistrySize()>0||this.cardNavigator._currentView)&&this.context._host.onVisibilityChanged(this._getRenderArguments(this.renderType))},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){if(!this._state)throw new Error("state must be initialized before calling setState");e&&(this._state=Object(m.__assign)(Object(m.__assign)({},this.state),Object(S.cloneDeep)(e)),this._cardNavigator._forEach(this._onViewInitialized),this._quickViewNavigator._forEach(this._onViewInitialized)),this._isInitialized&&this.context._host.update(this._getRenderArguments(this._renderType))},t.prototype.update=function(e,t){void 0===t&&(t=!1);var n=this._getRenderArguments(e,t);this.context._host.update(n)},t.prototype._getRenderArguments=function(e,t,n){var r,o=this;void 0===t&&(t=!1);var c=new a._QosMonitor("AdaptiveCardExtension.GetRenderArguments.".concat(e));try{if(this._setRenderType(e,n),"Card"===e&&0===this.cardNavigator.size){var l=this.renderCard();l||(l="_InternalDefaultCardView",this._cardNavigator.register(l,function(){return new W(o.description)})),this._cardNavigator.push(l,!0)}if(void 0===this._ACRenderArgs?this._ACRenderArgs={card:"Card"===e?this._getCard(t):void 0,isVisible:this._isVisible,instanceId:this.instanceId,lastUpdatedType:e,quickLook:"QuickView"===e?this._getQuickView(t):void 0}:this._updateRenderArgs(e,t),s()&&(!i._SPKillSwitch.isActivated("b8c50ded-d048-4eb9-bc41-21190d9d3bbb")&&this.context.manifest.isolatedDomain||this.displayMode===i.DisplayMode.Read)&&"Card"===e){var f=null===(r=this._cacheManager)||void 0===r?void 0:r.save(this.instanceId,this._cardNavigator._currentView,this._ACRenderArgs,this.cardNavigator.viewStack,this.getCachedState(Object(m.__assign)({},this._state)));this._ACRenderArgs.cacheObject=f}var p=void 0;d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endMarkForComponent(this._perfTagName),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),u()||(p=Object(m.__assign)(Object(m.__assign)({},p),{isInternal:this.manifest.isInternal||!1})),c.writeSuccess(p)}catch(e){p=void 0,d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endFailureForComponent(this._perfTagName,"Render",e),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),c.writeUnexpectedFailure("failedGetRenderArguments",e,Object(m.__assign)(Object(m.__assign)({},p),{alias:this.context.manifest.alias,deviceContext:this.context.deviceContext,instanceId:this.instanceId,isInternal:u()?void 0:this.manifest.isInternal||!1,manifestId:this.context.manifest.id}))}return this._ACRenderArgs},t.prototype._propertiesMetadata=function(){return this.propertiesMetadata},t.prototype._getPropertyPaneConfiguration=function(){return this.getPropertyPaneConfiguration()},Object.defineProperty(t.prototype,"navigator",{get:function(){return"Card"===this.renderType?this._cardNavigator:this._quickViewNavigator},enumerable:!1,configurable:!0}),t.prototype._internalDeserialize=function(e){e.title&&(this._title=e.title),e.iconProperty&&(this._iconProperty=e.iconProperty),e.description&&(this._description=e.description),e.cardSize&&(this._cardSize=e.cardSize);var t=e.properties;this.renderedFromPersistedData&&(_._PropertyMetadataProcessor.reInstateServerProcessedData(this.propertiesMetadata,t,e.serverProcessedContent),e.serverProcessedContent=void 0),this._properties?Object.assign(this._properties,t):this._properties=this.onAfterDeserialize(t,e.dataVersion?i.Version.parse(e.dataVersion):this.dataVersion)},t.prototype._internalInitialize=function(t,n,a,i){var r=this;e.prototype._initializeContext.call(this,t),this._displayMode=a,this._renderedOnce=!1,this._renderedFromPersistedData=n,s()&&(this._cacheManager=new k(this.context,function(){return r.cardSize},function(){return r.iconProperty},function(){return r.title},this._onViewInitialized,this.getCacheSettings())),this._perfTagName=i},t.prototype._internalSetDisplayMode=function(e){if(this._displayMode!==e){var t=this._displayMode;this._displayMode=e,this.onDisplayModeChanged(t)}},t.prototype._loadPropertyPaneResources=function(){return this.loadPropertyPaneResources()},t.prototype._onPropertyPaneFieldChanged=function(e,t,n){Object(S.isEqual)(t,n)||(this._updateProperty(e,n),this.onPropertyPaneFieldChanged(e,t,n))},t.prototype._renderCompleted=function(){this._renderedOnce=!0},t.prototype._internalOnAfterInit=function(){this._isInitialized=!0},t.prototype._internalSerialize=function(){return this.onBeforeSerialize(),{dataVersion:this.dataVersion.toString(),id:this.componentId,instanceId:this.instanceId,properties:this.properties,title:this.title,description:this._description,iconProperty:this.iconProperty,cardSize:this._cardSize}},t.prototype._setRenderType=function(e,t){if(this._renderType!==e){var n=this._renderType;"QuickView"===n&&this._quickViewNavigator._clear(),"Card"===n&&(this._quickViewNavigator._clear(),void 0!==t&&this._quickViewNavigator.push(t,!0)),this._renderType=e,this.onRenderTypeChanged(n)}},t.prototype._updateConfigurableFields=function(e,t){"cardSize"===e&&(this._cardSize=t)},t.prototype._logCardActionEngagement=function(e,t,n,r){var o,s,c,d,l,u,f,p,m,_;a._EngagementLogger.log({name:"AdaptiveCardExtension.CardAction",isIntentional:!0,siteId:null===(s=null===(o=this.context.pageContext)||void 0===o?void 0:o.site)||void 0===s?void 0:s.id.toString(),webId:null===(d=null===(c=this.context.pageContext)||void 0===c?void 0:c.web)||void 0===d?void 0:d.id.toString(),extraData:{actionType:e,alias:this.manifest.alias,componentDeveloperName:this.manifest.componentDeveloperName,correlationId:null===(l=this.context.pageContext.site.correlationId)||void 0===l?void 0:l.toString(),deviceContext:this.context.deviceContext,eventSchemaVersion:10,isInternal:this.manifest.isInternal||!1,instanceId:this.instanceId,listId:this._urlParams.get("dashboardListID")?this._urlParams.get("dashboardListID"):null===(u=this.context.pageContext.list)||void 0===u?void 0:u.id.toString(),listItemUniqueId:this._urlParams.get("id")?this._urlParams.get("id"):null===(f=this.context.pageContext.listItem)||void 0===f?void 0:f.id,manifestId:this.manifest.id,mobileSessionId:n,mobileBootType:r,mpnId:this.manifest.mpnId,renderType:i._SPKillSwitch.isActivated("6d5c9ddb-5bc7-4b59-bbdf-ff9052d33daf")||"QuickView"!==e?this.renderType:"Card",tenantId:null===(_=null===(m=null===(p=this.context.pageContext)||void 0===p?void 0:p.aadInfo)||void 0===m?void 0:m.tenantId)||void 0===_?void 0:_.toString().toLowerCase(),vivaConnectionsAppId:"d2c6f111-ffad-42a0-b65e-ee00425598aa",vivaConnectionsName:"MEE",workLoad:t}})},t.prototype._getQuickView=function(e){if(0!==this._quickViewNavigator.size){var t=this._quickViewNavigator._currentView;if(void 0!==t)return O(t.externalLink,this.context.deviceContext),{data:t.data,template:e?this._ACRenderArgs.quickLook.template:t.template,pageBarProperties:{externalLink:t.externalLink,leftNavigationButtonType:this._quickViewNavigator.size>1?"Back":"Close",title:t.title},viewId:this._quickViewNavigator.currentId,viewStackSize:this._quickViewNavigator.size}}},t.prototype._updateRenderArgs=function(e,t){this._ACRenderArgs.lastUpdatedType=e,this._ACRenderArgs.isVisible=this._isVisible,"Card"===e?this._ACRenderArgs.card=this._getCard(t):this._ACRenderArgs.quickLook=this._getQuickView(t)},t.prototype._updateProperty=function(e,t){Object(S.update)(this._properties,e,function(){return t})},t}(_.BaseComponent);!function(e){e[e.Image=1]="Image",e[e.Audio=4]="Audio"}(E||(E={}));var ee=n("vlQI"),te=n("X+PM"),ne=function(){function e(e){var t=this;this._serviceScope=e,this._callbackCache=new Map,this._isolatedFrames=new Map,this._isolatedListeners=new Map,this._handleIframeTimeout=function(e,n){var i=t._isolatedFrames.get(e),r=i.frameMonitor,o=i.retryMonitor,s=i.tokenMonitor;if(!l()&&i.retryCount<1)return i.retryCount+=1,i.iframe.src=i.iframe.src,i.retryMonitor=new a._QosMonitor("IsolatedAdaptiveCardExtension.iframeReload"),void(i.timeoutId=setTimeout(function(){return t._handleIframeTimeout(e,n)},14500));if(o&&o.writeUnexpectedFailure("reloadFailed"),r&&!r.hasEnded)try{s?(r.writeUnexpectedFailure("tokenTimeout"),s.hasEnded||s.writeUnexpectedFailure("timeout")):n?r.writeUnexpectedFailure("authorizeTimeout"):r.writeExpectedFailure("authorizeTimeout")}catch(e){r.writeUnexpectedFailure("unexpectedFailure",e)}},this._handleIsolatedApplicationMessage=function(e){var n=e.data;if("applicationMessage"===n.messageType){var i=n.instanceId,r=n.kind;switch(r){case"Card":t._invokeCallback(i,{aceData:n.aceData,card:n.card,cacheObject:n.cacheObject,type:r});break;case"CloseQuickView":var o=t._isolatedFrames.get(new URL(e.origin).hostname);o&&(o.iframe.hidden=!0);break;case"Error":t._invokeCallback(i,{error:n.error,type:r});break;case"OpenQuickView":var s=t._isolatedFrames.get(new URL(e.origin).hostname);s&&(s.iframe.hidden=!1);break;case"OpenUrl":t._invokeCallback(i,{type:r,url:n.url});break;case"LocationRequest":t._invokeCallback(i,{type:r});break;case"Ready":var d=t._isolatedFrames.get(new URL(e.origin).hostname);if(d){!l()&&d.retryMonitor&&d.retryMonitor.writeSuccess(),c()||(clearTimeout(d.timeoutId),d.frameMonitor.writeSuccess()),d.isReady=!0;for(var u=0,f=d.messageQueue;u<f.length;u++){var p=f[u],m=p[0],_=p[1];t._sendMessage(t._getIsolatedFrame(m),m,_)}d.messageQueue=[]}break;case"OBOTokenRequest":var h=n.applicationId,b=n.claims;t._getAuthToken(h,b,e.origin);break;default:t._logError("Unexpected message: ".concat(JSON.stringify(e.data)))}}else if("bridgeMessage"===n.messageType&&"onTokenRequested"===n.bridgeAction){var g=c(),v=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.onTokenRequested"),y=(h=n.applicationId,b=n.claims,t._isolatedFrames.get(new URL(e.origin).hostname));if(!g&&!y)return void v.writeUnexpectedFailure("missingIsolatedFrame");y.tokenMonitor=v;var S=ee._AadTokenProviders.configurable;if(!g&&!S._oboThirdPartyTokenCallback)return void v.writeUnexpectedFailure("missingThirdPartyTokenCallback");try{S._oboThirdPartyTokenCallback(h,b).then(function(e){if(!g&&!y.iframe.contentWindow)throw new Error("missingContentWindow");y.iframe.contentWindow.postMessage({token:e,messageType:"dashboardMessage",kind:"Token"},"*"),g||v.writeSuccess()}).catch(function(e){g||v.writeUnexpectedFailure("oboThirdPartyTokenCallbackError",e)})}catch(e){g||v.writeUnexpectedFailure("unexpectedException",e)}}},window.addEventListener("message",this._handleIsolatedApplicationMessage)}return Object.defineProperty(e.prototype,"_pageContext",{get:function(){return this._pContext||(this._pContext=this._serviceScope.consume(te.PageContext.serviceKey)),this._pContext},enumerable:!1,configurable:!0}),e.prototype.disposeEntry=function(e){this._isolatedListeners.delete(e)},e.prototype.load=function(e){var t=this,n=e.callback,r=e.dashboardListId,o=e.itemId,s=e.instanceId,d=e.listenerId,u=e.manifestId,p=e.serviceDestinationEndpoint,m=e.botId,h=e.isolatedDomain.toLowerCase(),b=this._isolatedFrames.get(h);if(!b){var g=c(),y=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.load"),S=document.createElement("iframe"),D=this._pageContext.site.serverRelativeUrl,I="/"===D?"":D,x=new URLSearchParams(window.location.search);x.append("dashboardListID",r),x.append("id",o),1===v._SPPerfExperiment.getVariantAndTrackExperiment(v._PerformanceExperiment.WEXOOPIF)&&x.append("OOPIF","1"),(f()||m)&&x.append("instanceId",s);var C=f()||void 0===p?"adaptivecardextensions.aspx":p,O="/_layouts/15/".concat(C,"?").concat(x.toString()),w=Object(_._ensureIsolatedDomainUrl)(h,this._pageContext.web.absoluteUrl),E=i._BrowserUtilities.isTeams1PVivaDesktopHosted(a._QosMonitor);E&&i._SPFlight.isEnabled(60128)?S.src="".concat(w,"/_layouts/15/framedteamslogon.aspx?spfx=true&dest=").concat(encodeURIComponent(I+O)):S.src=w+O,S.hidden=!0,S.scrolling="no",S.style.overflow="hidden",S.style.height="100%",S.style.width="100%",S.style.top="0",S.style.left="0",S.style.position="fixed",S.style.zIndex="99999",S.style.border="none",i._SPKillSwitch.isActivated("bc68fda3-34d5-496b-8515-8d140a0c98ac")||S.setAttribute("allow","geolocation"),i._SPKillSwitch.isActivated("edddfc6b-79f6-49a3-8bb9-bd5a7a0eb10c")||S.setAttribute("data-automation-id","isolated_ACE_iframe"),document.body.appendChild(S);var A=h.toLowerCase();b={iframe:S,frameMonitor:y,isReady:!1,messageQueue:[],retryCount:0},l()?g||(b.timeoutId=setTimeout(function(){if(y&&!y.hasEnded){var e=t._isolatedFrames.get(A);try{e.tokenMonitor?(y.writeUnexpectedFailure("tokenTimeout"),e.tokenMonitor.hasEnded||e.tokenMonitor.writeUnexpectedFailure("timeout")):E?y.writeUnexpectedFailure("authorizeTimeout"):y.writeExpectedFailure("authorizeTimeout")}catch(e){y.writeUnexpectedFailure("unexpectedFailure",e)}}},15e3)):b.timeoutId=setTimeout(function(){return t._handleIframeTimeout(A,E)},15e3),this._isolatedFrames.set(A,b)}var L=this._isolatedListeners.get(s);if(L)L.listeners.get(d)||L.listeners.set(d,{callback:n});else{var k={isolatedDomain:h,iframe:b.iframe,listeners:new Map([[d,{callback:n}]]),manifestId:u};m&&(k.botId=m),this._isolatedListeners.set(s,k)}e.isRenderedFromPersistedData||this.sendInitialize(s,u);var M=this._callbackCache.get(s);M&&this._invokeCallback(s,M,d)},e.prototype.renderQuickView=function(e){var t=e.instanceId,n=e.isSelectAction,a=e.listenerId,i=e.pageTheme,r=e.targetRect,o=e.theme,s=e.viewId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:{action:{type:"QuickView",isSelectAction:n,pageTheme:i,targetRect:r,theme:o,viewId:s},instanceId:t,listenerId:a}})},e.prototype.setDisplayMode=function(e){},e.prototype.setRenderType=function(e){},e.prototype.sendAction=function(e){var t=e.instanceId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:e})},e.prototype.sendInitialize=function(e,t){this._sendMessage(this._getIsolatedFrame(e),e,{serviceAction:"Initialize",newInstanceId:e,manifestId:t})},e.prototype.updateACEData=function(e,t){this._isolatedListeners.has(e)&&this._sendMessage(this._getIsolatedFrame(e),e,{aceData:t,instanceId:e,serviceAction:"UpdateACEData"})},e.prototype.handleLocationRequest=function(e,t,n){this._sendMessage(this._getIsolatedFrame(e),e,{location:t,locationError:n,instanceId:e,serviceAction:"LocationResponse"})},e.prototype._invokeCallback=function(e,t,n){var a,i=this._isolatedListeners.get(e);this._callbackCache.set(e,t),i?n?null===(a=i.listeners.get(n))||void 0===a||a.callback(t):i.listeners.forEach(function(e){return e.callback(t)}):this._logError("No entry for ".concat(e))},e.prototype._logError=function(t){a._TraceLogger.logError(e._logSource,new Error(t))},e.prototype._getAuthToken=function(e,t,n){var i=this,r=new a._QosMonitor("IsolatedAdaptiveCardExtensionService._getAuthToken"),o=ee._AadTokenProviders.configurable;if(!o._oboThirdPartyTokenCallback)return r.writeUnexpectedFailure("oboThirdPartTokenCallbackUndefined"),void this._logError("Unexpected message: oboThirdPartyTokenCallback is not defined.");o._oboThirdPartyTokenCallback(e,t).then(function(t){var a=new URL(n),o=i._isolatedFrames.get(a.hostname);i._sendMessage(o,"",{token:t,applicationId:e,serviceAction:"OBOToken"}),r.writeSuccess()}).catch(function(e){r.writeUnexpectedFailure("oboThirdPartTokenCallbackFailure"),i._logError("Unexpected message: ".concat(JSON.stringify(e)))})},e.prototype._getIsolatedFrame=function(e){var t=this._isolatedListeners.get(e);return t?this._isolatedFrames.get(t.isolatedDomain):void 0},e.prototype._postOrQueueMessage=function(e,t,n){e.isReady?(t.messageType="serviceMessage",e.iframe.contentWindow.postMessage(t,"*")):e.messageQueue.push([n,t])},e.prototype._sendMessage=function(e,t,n){e?this._postOrQueueMessage(e,n,t):this._logError("No entry for ".concat(t))},e.serviceKey=i.ServiceKey.create("sp-adaptive-card-extension-base::IsolatedAdaptiveCardExtensionService",e),e._logSource={id:"IsolatedAdaptiveCardExtensionService"},e}(),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Image",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(R,j)},enumerable:!1,configurable:!0}),t}(G),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="PrimaryText",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(N,V)},enumerable:!1,configurable:!0}),t}(G)},ut3N:function(e,t){e.exports=d},vlQI:function(e,t){e.exports=l}})});
@@ -0,0 +1 @@
1
+ define("eeec822e-c28a-46b4-affc-7058e4c1aa80_1.15.2",["tslib","@ms/sp-telemetry","@microsoft/sp-component-base","@microsoft/sp-loader","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d,l){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},"2q6Q":function(e,t){e.exports=a},"7Awa":function(e,t){e.exports=i},I6O9:function(e,t){e.exports=r},Pk8u:function(e,t){e.exports=o},UWqr:function(e,t){e.exports=s},"X+PM":function(e,t){e.exports=c},mGD9:function(e){e.exports=JSON.parse('{"t":"Àćţĩōń Ĩď: \\u0027{0}\\u0027 ţàŕĝēţ ŨŔĹ śĥōũĺď ńōţ ƀē ũńďēƒĩńēď ōŕ ēmƥţŷ śţŕĩńĝ. ","e":"Àďàƥţĩvē ćàŕď ēxţēńśĩōń ĩćōń."}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"_AdaptiveCardExtensionActionShim",function(){return p}),n.d(t,"AdaptiveCardExtensionContext",function(){return h}),n.d(t,"_AdaptiveCardExtensionHost",function(){return b}),n.d(t,"_AdaptiveCardExtensionLoader",function(){return y}),n.d(t,"BaseAdaptiveCardExtension",function(){return $}),n.d(t,"_BaseAdaptiveCardExtensionCache",function(){return A}),n.d(t,"_LocalStorageACECache",function(){return L}),n.d(t,"_isAdaptiveCardExtensionLKGCachingEnabled",function(){return s}),n.d(t,"MediaType",function(){return E}),n.d(t,"_IsolatedAdaptiveCardExtensionService",function(){return ne}),n.d(t,"BaseView",function(){return z}),n.d(t,"BaseBasicCardView",function(){return K}),n.d(t,"BaseCardView",function(){return G}),n.d(t,"BaseImageCardView",function(){return ae}),n.d(t,"BasePrimaryTextCardView",function(){return ie}),n.d(t,"QuickViewNavigator",function(){return Z}),n.d(t,"ViewNavigator",function(){return X}),n.d(t,"BaseAdaptiveCardView",function(){return q});var a=n("ut3N"),i=n("UWqr");function r(){return i._SPFlight.isEnabled(60447)}function o(){return i._SPFlight.isEnabled(60544)}function s(){return i._SPFlight.isEnabled(60456)}function c(){return i._SPKillSwitch.isActivated("6836bc4c-8a69-4ed9-92c0-0d6187f3acb6")}function d(){return i._SPKillSwitch.isActivated("5fbd4c87-42a1-445d-8480-f1fde56ccc21")}function l(){return i._SPKillSwitch.isActivated("5533d556-60de-40a4-ab2e-ff72e237d89e")}function u(){return i._SPKillSwitch.isActivated("a95479e5-e6fb-4025-855c-a344a22d7466")}function f(){return i._SPKillSwitch.isActivated("e8daf7db-132e-4225-93a4-70cc5fc06bb9")}var p=function(){function e(e,t){var n=this;this._ace=e,this._provider=t,this.handleAction=function(e){switch(e.getJsonTypeName()){case"Action.OpenUrl":n._handleOpenUrl(e);break;case"Action.ShowCard":n._handleShowCard(e);break;case"Action.Submit":n._handleSubmit(e);break;case"VivaAction.GetLocation":o()&&n._handleGetLocation(e);break;case"VivaAction.SelectMedia":r()&&n._handleSelectMedia(e);break;case"VivaAction.ShowLocation":o()&&n._handleShowLocation(e)}}}return e.prototype._handleGetLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.GetLocation",!0);try{var i={chooseLocationOnMap:null===(t=e.parameters)||void 0===t?void 0:t.chooseLocationOnMap};this._provider.getLocation(this._ace).getLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.GetLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleOpenUrl=function(e){var t=e.url;t&&(this._provider.openUrl(this._ace,t),this._provider.log(this._ace,"OpenUrl"))},e.prototype._handleSelectMedia=function(e){i._SPKillSwitch.isActivated("f9047381-ce17-4042-bc46-d04681d0016b")?this._provider.selectMedia(this._ace,e).getMedia():this._provider.selectMedia(this._ace,e).getMedia(e),this._provider.log(this._ace,"VivaAction.SelectMedia")},e.prototype._handleShowCard=function(e){var t={id:e.id,type:"ShowCard"};this._provider.aceActionHandler(this._ace,t),this._provider.log(this._ace,"ShowCard")},e.prototype._handleShowLocation=function(e){var t,n=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.ShowLocation",!0);try{var i={locationCoordinates:null===(t=e.parameters)||void 0===t?void 0:t.locationCoordinates};this._provider.showLocation(this._ace).showLocation(i),n.writeSuccess(),this._provider.log(this._ace,"VivaAction.ShowLocation")}catch(e){n.writeUnexpectedFailure(void 0,e)}},e.prototype._handleSubmit=function(e){var t,n=this,i=new a._QosMonitor("AdaptiveCardExtension._onExecuteAction.handleConfirmationDialog",!0),r=null===(t=e.data)||void 0===t?void 0:t._internalQuickViewId;if(r)this._provider.quickView(r);else{var o={data:e.data,id:e.id,type:"Submit"};this._provider.confirmationDialog(o).then(function(e){i.writeSuccess(),e||(n._provider.aceActionHandler(n._ace,o),n._provider.log(n._ace,"Submit"))}).catch(function(){i.writeUnexpectedFailure()})}},e}(),m=n("17wl"),_=n("7Awa"),h=function(e){function t(t){var n=e.call(this,t)||this;return n._aceHost=t.host,n.manifest=t.manifest,n._deviceContext=t.deviceContext,n._location=t.location,n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"_host",{get:function(){return this._aceHost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyPane",{get:function(){return this._host.propertyPane},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceContext",{get:function(){return this._deviceContext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location()},enumerable:!1,configurable:!0}),t}(_.BaseComponentContext),b=function(){function e(e){this._onBeforeInitializedCallback=e.onBeforeInitializedCallback,this._onUpdateCallback=e.onUpdateCallback,this._onErrorCallback=e.onError,this._onRequestRenderTypeCallback=e.onRequestRenderTypeCallback,this._onVisibilityChanged=e.onVisibilityChanged,this._cache=e.cache,this.propertyPane=e.propertyPane}return e.prototype.update=function(e){this._onUpdateCallback(e)},e.prototype.onBeforeInitialized=function(e){this._onBeforeInitializedCallback&&this._onBeforeInitializedCallback(e)},e.prototype.onError=function(e){this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.requestRenderTypeChange=function(e,t){this._onRequestRenderTypeCallback(e,t)},Object.defineProperty(e.prototype,"cache",{get:function(){return this._cache},enumerable:!1,configurable:!0}),e.prototype.onVisibilityChanged=function(e){this._onVisibilityChanged(e)},e}(),g=n("I6O9"),v=n("2q6Q"),y=function(){function e(){}return e._createQosExtraData=function(e,t){return{alias:e.alias,deviceContext:t,isInternal:e.isInternal,manifestId:e.id,mpnId:e.mpnId,scenarioId:i._SPKillSwitch.isActivated("b544c716-bfa4-4bbb-a8df-237a8ecf2e47")?void 0:v._PerformanceLogger.getScenarioId(),storeAppId:e.storeAppId,teamsHosted:i._BrowserUtilities.isTeamsHosted()}},e.prototype.load=function(t){var n,r,o=this,s=i._SPKillSwitch.isActivated("8af93b94-0baf-43b2-9f46-c302729482e8")?new a._QosMonitor("AdaptiveCardExtension.Load",!0):new a._QosMonitor("AdaptiveCardExtension.Load",!0,!0),c=e._createQosExtraData(t.manifest,t.deviceContext),l="WebPart.ACE_".concat(t.manifest.alias,".").concat(t.manifest.isInternal?"internal":"external",".").concat(t.instanceId);return d()||v._PerformanceLogger.startMarkForComponent(l),g.SPComponentLoader.loadComponent(t.manifest).then(function(e){return e.default&&(e=e.default),d()||v._PerformanceLogger.markComponentModuleLoaded(l),new e}).catch(function(e){throw d()||v._PerformanceLogger.endFailureForComponent(l,"Load",e),s.writeUnexpectedFailure("AdaptiveCardExtensionLoadFailed",e,c),n=e,e}).then(function(e){(r=e)._internalInitialize(o._getContext(t),t.addedFromPersistedData,t.initialDisplayMode,l),r._internalDeserialize(t.aceData),t.host.onBeforeInitialized(r);var n,a=t.cacheObject?{state:(n=t.cacheObject).cachedState,cardNavigatorState:n.cardNavigatorState}:void 0;return r.onInit(a)}).then(function(){return d()||v._PerformanceLogger.markComponent(l,"init"),s.writeSuccess(c),r._internalOnAfterInit(),r}).catch(function(e){throw n||(d()||v._PerformanceLogger.endFailureForComponent(l,"Initialize",e),s.writeUnexpectedFailure("AdaptiveCardExtensionInitializationFailed",e,c)),e})},e.prototype._getContext=function(e){return new h({host:e.host,manifest:e.manifest,instanceId:e.instanceId,parentServiceScope:e.serviceScope,loggingTag:"",deviceContext:e.deviceContext,location:e.location})},e}(),S=n("Pk8u"),D=n("mGD9"),I=new RegExp(/(?=.+)(\/l\/entity\/.+)/gi),x={Medium:1,Large:2};function C(e,t,n,a,s){var c,d;if("Submit"===t.type)(d=t).confirmationDialog&&(d.parameters||(d.parameters={}),d.parameters.__MSConfirmationDialog__=d.confirmationDialog),c={id:n,type:"Action.Submit",style:s,title:a,data:t.parameters||void 0};else if("ExternalLink"===t.type){O(t.parameters,e);var l=t.parameters.target;if(!l||""===l)throw new Error(i.Text.format(D.t,n));c={id:n,type:"Action.OpenUrl",style:s,title:a,url:l}}else"QuickView"===t.type?c={id:n,type:"Action.Submit",style:s,title:a,data:{_internalQuickViewId:t.parameters.view}}:r()&&"VivaAction.SelectMedia"===t.type?c={id:n,type:"VivaAction.SelectMedia",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.GetLocation"===t.type?c={id:n,type:"VivaAction.GetLocation",style:s,title:a,parameters:t.parameters}:o()&&"VivaAction.ShowLocation"===t.type&&(c={id:n,type:"VivaAction.ShowLocation",style:s,title:a,parameters:t.parameters});return c}function O(e,t){if(e&&e.isTeamsDeepLink&&function(e){return i._SPKillSwitch.isActivated("cfe2dadf-9488-4409-b3d4-d3dd23a7970e")?"WebView"===e:"Mobile"!==e}(t)){var n=e.target.match(I);n&&n[0]&&(e.target="msteams:".concat(n[0]))}}function w(e,t,n,a,i,r){var o,s=e.cardButtons,c=e.data,d=e.onCardSelection,l=e._templateType;if(a||(a=e.template),void 0===s||"Image"===l&&"Large"!==t||function(e,t,n,a){for(var i=[],r=Math.min(x[n],(null==t?void 0:t.length)||0),o=0;o<r;o++){var s=t[o],c=s.id?s.id:"ac-button-".concat(o);i.push(C(a,s.action,c,s.title,s.style))}e.actions=i}(a,s,t,n),d){var u=C(n,d,"select-action");"Action.OpenUrl"!==u.type&&"Action.Submit"!==u.type&&"VivaAction.GetLocation"!==u.type&&"VivaAction.ShowLocation"!==u.type&&"VivaAction.SelectMedia"!==u.type||(o=u)}return{data:Object(m.__assign)({selectAction:o,iconProperty:i,iconAltText:c.iconAltText||D.e,title:r},c),template:a,cardProperties:{iconProperty:c.iconProperty||i,size:t,title:c.title||r,templateType:l}}}var E,A=function(){function e(){}return e.prototype.get=function(e,t){var n=this.getFromSource(e,t);if(n)return(new Date).getTime()<n.expirationTime?n:void 0},e}(),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),t.getKey=function(e,t){return"AdaptiveCardExtension_LKG_".concat(e,"_").concat(t)},Object.defineProperty(t,"instance",{get:function(){return void 0===this._instance&&(this._instance=new t),this._instance},enumerable:!1,configurable:!0}),t.prototype.save=function(e,t,n){var a=this._getLocalStorageEntry(e);a.set(t,n);var i=Array.from(a.entries());localStorage.setItem(e,JSON.stringify(i))},t.prototype.getFromSource=function(e,t){return this._getLocalStorageEntry(e).get(t)},t.prototype._getLocalStorageEntry=function(e){var t=localStorage.getItem(e);return t?new Map(JSON.parse(t)):new Map},t}(A),k=function(){function e(e,t,n,a,i,r){this._context=e,this._getCardSize=t,this._getIconProperty=n,this._getTitle=a,this._handleInitializeCallback=i,this._settings=Object(m.__assign)(Object(m.__assign)({},this._defaultCacheSettings()),r)}return e.prototype.save=function(e,t,n,a,i){var r,o,s;if(this._settings.isEnabled){var c=this._initializeCustomCardView();if(c&&c.isCacheEnabled||!c&&t.isCacheEnabled){var d=c?w(c,this._getCardSize(),this._context.deviceContext,void 0,this._getIconProperty(),this._getTitle()):n.card;s=this._createCacheObject(n,d,a,i),null===(r=this._context._host.cache)||void 0===r||r.save(L.getKey(this._context.pageContext.site.id.toString(),null===(o=this._context.pageContext.listItem)||void 0===o?void 0:o.uniqueId),e,s)}}return s},e.prototype._createCacheObject=function(e,t,n,a){return{cachedCard:t,cardNavigatorState:n,isVisible:e.isVisible,cachedState:a,expirationTime:(new Date).getTime()+1e3*this._settings.expiryTimeInSeconds}},e.prototype._initializeCustomCardView=function(){if(this._settings.cachedCardView){var e=this._settings.cachedCardView();return this._handleInitializeCallback(e),e}},e.prototype._defaultCacheSettings=function(){return{isEnabled:!0,expiryTimeInSeconds:864e3,cachedCardView:void 0}},e}(),M="auto",P={type:"TextBlock",subType:"Primary",text:"${primaryText}",weight:"Bolder",maxLines:1,spacing:"none"},T={type:"TextBlock",subType:"BodySecondary",text:"${description}",spacing:"none",wrap:!0},U={type:"TextBlock",subType:"BodyPrimary",text:"${primaryText}",spacing:"none",wrap:!0},F={type:"TextBlock",subType:"Title",text:"${title}",wrap:!1,maxLines:1,spacing:"none"},H={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},R={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},N={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},B={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},j={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"Image",url:"${imageUrl}"},{type:"ColumnSet",spacing:"none",columns:[{type:"Column",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},U]}]},V={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"Container",selectAction:"${selectAction}",items:[{type:"ColumnSet",columns:[{type:"Column",spacing:"none",items:[{type:"Icon",iconProperty:"${iconProperty}",altText:"${iconAltText}"}],width:M},{type:"Column",spacing:"none",items:[F],width:"stretch"}]},{type:"Container",spacing:"none",items:[P,T]}]}]},z=function(){function e(){}return Object.defineProperty(e.prototype,"cardNavigator",{get:function(){return this._ace.cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickViewNavigator",{get:function(){return this._ace.quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cardSize",{get:function(){return this._getCardSize()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0}),e.prototype.onAction=function(e){},e.prototype.onActionError=function(e){},e.prototype.setState=function(e){this._ace.setState(e)},e.prototype.setVisibility=function(e){this._ace.isVisible=e},e}(),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardButtons",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCardSelection",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCacheEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype._getTemplate=function(e,t){return Object(S.cloneDeep)(this.onCardSelection?t:e)},t}(z),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Basic",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(H,B)},enumerable:!1,configurable:!0}),t}(G),W=function(e){function t(t){var n=e.call(this)||this;return n._primaryText=t,n._templateType="Basic",n}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{primaryText:this._primaryText}},enumerable:!1,configurable:!0}),t}(K),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"externalLink",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return""},enumerable:!1,configurable:!0}),t}(z),Q=/\{(\d+)\}/g,Y=function(){function e(){this._registeredCallbacks=new Map}return e.prototype.register=function(e,t){this._registeredCallbacks.has(e)||this._registeredCallbacks.set(e,t)},e.prototype.consume=function(e){var t=this._registeredCallbacks.get(e);if(!t)throw new Error(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(Q,function(e,n){return null===t[n]?"":""+t[n]})}("View with id {0} must be registered before being used",e));return this._registeredCallbacks.delete(e),t},Object.defineProperty(e.prototype,"size",{get:function(){return this._registeredCallbacks.size},enumerable:!1,configurable:!0}),e}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return{}},enumerable:!1,configurable:!0}),t}(q),X=function(){function e(e,t){this._handleStackChangedCallback=e,this._handleInitializeCallback=t,this._viewStack=new Array,this._viewCache=new Map,this._viewRegistry=new Y}return e.prototype.register=function(e,t){this._viewRegistry.register(e,t)},e.prototype.push=function(e,t){void 0===t&&(t=!1),this._push(e),this._handleStackChangedCallback(t)},e.prototype.replace=function(e,t){void 0===t&&(t=!1),this._pop(),this._push(e),this._handleStackChangedCallback(t)},e.prototype.pop=function(e){void 0===e&&(e=!1),this.size>1&&(this._pop(),this._handleStackChangedCallback(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this._viewStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentId",{get:function(){var e=this.size;return e?this._viewStack[e-1]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_currentView",{get:function(){return this._viewCache.get(this._viewStack[this.size-1])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewStack",{get:function(){return this._viewStack},enumerable:!1,configurable:!0}),e.prototype._clear=function(){this._viewStack=[]},e.prototype._forEach=function(e){this._viewCache.forEach(e)},e.prototype._getRegistrySize=function(){return this._viewRegistry.size},e.prototype._push=function(e){var t=this;if(void 0===this._viewCache.get(e)){var n=this._viewRegistry.consume(e)();!i._SPKillSwitch.isActivated("db1f6911-ac1f-42e4-890c-2c12bc4e2e00")&&n instanceof Promise?(n.then(function(n){t._viewCache.set(e,n),t._handleStackChangedCallback(!1)}).catch(function(e){console.error("could not load quickview",e)}),n=new J):n=n,this._handleInitializeCallback(n),this._viewCache.set(e,n)}this._viewStack.push(e)},e.prototype._pop=function(){this._viewStack.pop()},e}(),Z=function(e){function t(t,n,a){var i=e.call(this,t,n)||this;return i._closeQuickViewCallback=a,i}return Object(m.__extends)(t,e),t.prototype.close=function(){this._closeQuickViewCallback()},t}(X),$=function(e){function t(){var t=e.call(this)||this;return t._isLoggedRenderPerf=!1,t._isInitialized=!1,t._getCard=function(e){try{return w(t._cardNavigator._currentView,t.cardSize,t.context.deviceContext,e?t._ACRenderArgs.card.template:void 0,t.iconProperty,t.title)}catch(e){throw t.context._host.onError(e.toString()),e}},t._onViewInitialized=function(e){e._state=t.state,e._ace=t,e._properties=t.properties,e._getCardSize=function(){return t.cardSize},e._context=t.context},t._navigatorCallback=function(e){e||t.update(t._renderType)},t._closeQuickViewCallback=function(){t.context._host.requestRenderTypeChange("Card",t.instanceId)},t._cardSize="Medium",t._renderType="Card",t._isVisible=!0,t._urlParams=new URLSearchParams(window.location.search),t._cardNavigator=new X(t._navigatorCallback,t._onViewInitialized),t._quickViewNavigator=new Z(t._navigatorCallback,t._onViewInitialized,t._closeQuickViewCallback),t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"cardNavigator",{get:function(){return this._cardNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cardSize",{get:function(){return this._cardSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataVersion",{get:function(){return i.Version.parse("1.0")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this._properties},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickViewNavigator",{get:function(){return this._quickViewNavigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedFromPersistedData",{get:function(){return this._renderedFromPersistedData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedOnce",{get:function(){return this._renderedOnce},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderType",{get:function(){return this._renderType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertiesMetadata",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this._state)throw new Error("state can only be initialized once");this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconProperty",{get:function(){return this._iconProperty},enumerable:!1,configurable:!0}),t.prototype.getPropertyPaneConfiguration=function(){return{pages:[]}},t.prototype.loadPropertyPaneResources=function(){return Promise.resolve()},t.prototype.getCacheSettings=function(){return{}},t.prototype.getCachedState=function(e){return{}},t.prototype._internalOnAction=function(e){this.navigator._currentView.onAction(e)},t.prototype._internalOnActionError=function(e){this.navigator._currentView.onActionError(e)},t.prototype.onBeforeSerialize=function(){},t.prototype.onAfterPropertiesUpdatedExternally=function(e){},t.prototype.onAfterDeserialize=function(e,t){return e},t.prototype.onDisplayModeChanged=function(e){},t.prototype.onDispose=function(){},t.prototype.onInit=function(e){return Promise.resolve()},t.prototype.onPropertyPaneFieldChanged=function(e,t,n){},t.prototype.onRenderTypeChanged=function(e){},t.prototype.renderCard=function(){},t.prototype._getPreFrameworkPropertyPaneConfiguration=function(){return[]},Object.defineProperty(t.prototype,"_isFrameworkPropertyPaneEnabled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,(this.cardNavigator._getRegistrySize()>0||this.cardNavigator._currentView)&&this.context._host.onVisibilityChanged(this._getRenderArguments(this.renderType))},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){if(!this._state)throw new Error("state must be initialized before calling setState");e&&(this._state=Object(m.__assign)(Object(m.__assign)({},this.state),Object(S.cloneDeep)(e)),this._cardNavigator._forEach(this._onViewInitialized),this._quickViewNavigator._forEach(this._onViewInitialized)),this._isInitialized&&this.context._host.update(this._getRenderArguments(this._renderType))},t.prototype.update=function(e,t){void 0===t&&(t=!1);var n=this._getRenderArguments(e,t);this.context._host.update(n)},t.prototype._getRenderArguments=function(e,t,n){var r,o=this;void 0===t&&(t=!1);var c=new a._QosMonitor("AdaptiveCardExtension.GetRenderArguments.".concat(e));try{if(this._setRenderType(e,n),"Card"===e&&0===this.cardNavigator.size){var l=this.renderCard();l||(l="_InternalDefaultCardView",this._cardNavigator.register(l,function(){return new W(o.description)})),this._cardNavigator.push(l,!0)}if(void 0===this._ACRenderArgs?this._ACRenderArgs={card:"Card"===e?this._getCard(t):void 0,isVisible:this._isVisible,instanceId:this.instanceId,lastUpdatedType:e,quickLook:"QuickView"===e?this._getQuickView(t):void 0}:this._updateRenderArgs(e,t),s()&&(!i._SPKillSwitch.isActivated("b8c50ded-d048-4eb9-bc41-21190d9d3bbb")&&this.context.manifest.isolatedDomain||this.displayMode===i.DisplayMode.Read)&&"Card"===e){var f=null===(r=this._cacheManager)||void 0===r?void 0:r.save(this.instanceId,this._cardNavigator._currentView,this._ACRenderArgs,this.cardNavigator.viewStack,this.getCachedState(Object(m.__assign)({},this._state)));this._ACRenderArgs.cacheObject=f}var p=void 0;d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endMarkForComponent(this._perfTagName),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),u()||(p=Object(m.__assign)(Object(m.__assign)({},p),{isInternal:this.manifest.isInternal||!1})),c.writeSuccess(p)}catch(e){p=void 0,d()||this._isLoggedRenderPerf||(v._PerformanceLogger.endFailureForComponent(this._perfTagName,"Render",e),p=_._WebPartLoadDataCollector.collect(this.context.manifest,this._perfTagName,this.context.pageContext),this._isLoggedRenderPerf=!0),c.writeUnexpectedFailure("failedGetRenderArguments",e,Object(m.__assign)(Object(m.__assign)({},p),{alias:this.context.manifest.alias,deviceContext:this.context.deviceContext,instanceId:this.instanceId,isInternal:u()?void 0:this.manifest.isInternal||!1,manifestId:this.context.manifest.id}))}return this._ACRenderArgs},t.prototype._propertiesMetadata=function(){return this.propertiesMetadata},t.prototype._getPropertyPaneConfiguration=function(){return this.getPropertyPaneConfiguration()},Object.defineProperty(t.prototype,"navigator",{get:function(){return"Card"===this.renderType?this._cardNavigator:this._quickViewNavigator},enumerable:!1,configurable:!0}),t.prototype._internalDeserialize=function(e){e.title&&(this._title=e.title),e.iconProperty&&(this._iconProperty=e.iconProperty),e.description&&(this._description=e.description),e.cardSize&&(this._cardSize=e.cardSize);var t=e.properties;this.renderedFromPersistedData&&(_._PropertyMetadataProcessor.reInstateServerProcessedData(this.propertiesMetadata,t,e.serverProcessedContent),e.serverProcessedContent=void 0),this._properties?Object.assign(this._properties,t):this._properties=this.onAfterDeserialize(t,e.dataVersion?i.Version.parse(e.dataVersion):this.dataVersion)},t.prototype._internalInitialize=function(t,n,a,i){var r=this;e.prototype._initializeContext.call(this,t),this._displayMode=a,this._renderedOnce=!1,this._renderedFromPersistedData=n,s()&&(this._cacheManager=new k(this.context,function(){return r.cardSize},function(){return r.iconProperty},function(){return r.title},this._onViewInitialized,this.getCacheSettings())),this._perfTagName=i},t.prototype._internalSetDisplayMode=function(e){if(this._displayMode!==e){var t=this._displayMode;this._displayMode=e,this.onDisplayModeChanged(t)}},t.prototype._loadPropertyPaneResources=function(){return this.loadPropertyPaneResources()},t.prototype._onPropertyPaneFieldChanged=function(e,t,n){Object(S.isEqual)(t,n)||(this._updateProperty(e,n),this.onPropertyPaneFieldChanged(e,t,n))},t.prototype._renderCompleted=function(){this._renderedOnce=!0},t.prototype._internalOnAfterInit=function(){this._isInitialized=!0},t.prototype._internalSerialize=function(){return this.onBeforeSerialize(),{dataVersion:this.dataVersion.toString(),id:this.componentId,instanceId:this.instanceId,properties:this.properties,title:this.title,description:this._description,iconProperty:this.iconProperty,cardSize:this._cardSize}},t.prototype._setRenderType=function(e,t){if(this._renderType!==e){var n=this._renderType;"QuickView"===n&&this._quickViewNavigator._clear(),"Card"===n&&(this._quickViewNavigator._clear(),void 0!==t&&this._quickViewNavigator.push(t,!0)),this._renderType=e,this.onRenderTypeChanged(n)}},t.prototype._updateConfigurableFields=function(e,t){"cardSize"===e&&(this._cardSize=t)},t.prototype._logCardActionEngagement=function(e,t,n,r){var o,s,c,d,l,u,f,p,m,_;a._EngagementLogger.log({name:"AdaptiveCardExtension.CardAction",isIntentional:!0,siteId:null===(s=null===(o=this.context.pageContext)||void 0===o?void 0:o.site)||void 0===s?void 0:s.id.toString(),webId:null===(d=null===(c=this.context.pageContext)||void 0===c?void 0:c.web)||void 0===d?void 0:d.id.toString(),extraData:{actionType:e,alias:this.manifest.alias,componentDeveloperName:this.manifest.componentDeveloperName,correlationId:null===(l=this.context.pageContext.site.correlationId)||void 0===l?void 0:l.toString(),deviceContext:this.context.deviceContext,eventSchemaVersion:10,isInternal:this.manifest.isInternal||!1,instanceId:this.instanceId,listId:this._urlParams.get("dashboardListID")?this._urlParams.get("dashboardListID"):null===(u=this.context.pageContext.list)||void 0===u?void 0:u.id.toString(),listItemUniqueId:this._urlParams.get("id")?this._urlParams.get("id"):null===(f=this.context.pageContext.listItem)||void 0===f?void 0:f.id,manifestId:this.manifest.id,mobileSessionId:n,mobileBootType:r,mpnId:this.manifest.mpnId,renderType:i._SPKillSwitch.isActivated("6d5c9ddb-5bc7-4b59-bbdf-ff9052d33daf")||"QuickView"!==e?this.renderType:"Card",tenantId:null===(_=null===(m=null===(p=this.context.pageContext)||void 0===p?void 0:p.aadInfo)||void 0===m?void 0:m.tenantId)||void 0===_?void 0:_.toString().toLowerCase(),vivaConnectionsAppId:"d2c6f111-ffad-42a0-b65e-ee00425598aa",vivaConnectionsName:"MEE",workLoad:t}})},t.prototype._getQuickView=function(e){if(0!==this._quickViewNavigator.size){var t=this._quickViewNavigator._currentView;if(void 0!==t)return O(t.externalLink,this.context.deviceContext),{data:t.data,template:e?this._ACRenderArgs.quickLook.template:t.template,pageBarProperties:{externalLink:t.externalLink,leftNavigationButtonType:this._quickViewNavigator.size>1?"Back":"Close",title:t.title},viewId:this._quickViewNavigator.currentId,viewStackSize:this._quickViewNavigator.size}}},t.prototype._updateRenderArgs=function(e,t){this._ACRenderArgs.lastUpdatedType=e,this._ACRenderArgs.isVisible=this._isVisible,"Card"===e?this._ACRenderArgs.card=this._getCard(t):this._ACRenderArgs.quickLook=this._getQuickView(t)},t.prototype._updateProperty=function(e,t){Object(S.update)(this._properties,e,function(){return t})},t}(_.BaseComponent);!function(e){e[e.Image=1]="Image",e[e.Audio=4]="Audio"}(E||(E={}));var ee=n("vlQI"),te=n("X+PM"),ne=function(){function e(e){var t=this;this._serviceScope=e,this._callbackCache=new Map,this._isolatedFrames=new Map,this._isolatedListeners=new Map,this._handleIframeTimeout=function(e,n){var i=t._isolatedFrames.get(e),r=i.frameMonitor,o=i.retryMonitor,s=i.tokenMonitor;if(!l()&&i.retryCount<1)return i.retryCount+=1,i.iframe.src=i.iframe.src,i.retryMonitor=new a._QosMonitor("IsolatedAdaptiveCardExtension.iframeReload"),void(i.timeoutId=setTimeout(function(){return t._handleIframeTimeout(e,n)},14500));if(o&&o.writeUnexpectedFailure("reloadFailed"),r&&!r.hasEnded)try{s?(r.writeUnexpectedFailure("tokenTimeout"),s.hasEnded||s.writeUnexpectedFailure("timeout")):n?r.writeUnexpectedFailure("authorizeTimeout"):r.writeExpectedFailure("authorizeTimeout")}catch(e){r.writeUnexpectedFailure("unexpectedFailure",e)}},this._handleIsolatedApplicationMessage=function(e){var n=e.data;if("applicationMessage"===n.messageType){var i=n.instanceId,r=n.kind;switch(r){case"Card":t._invokeCallback(i,{aceData:n.aceData,card:n.card,cacheObject:n.cacheObject,type:r});break;case"CloseQuickView":var o=t._isolatedFrames.get(new URL(e.origin).hostname);o&&(o.iframe.hidden=!0);break;case"Error":t._invokeCallback(i,{error:n.error,type:r});break;case"OpenQuickView":var s=t._isolatedFrames.get(new URL(e.origin).hostname);s&&(s.iframe.hidden=!1);break;case"OpenUrl":t._invokeCallback(i,{type:r,url:n.url});break;case"LocationRequest":t._invokeCallback(i,{type:r});break;case"Ready":var d=t._isolatedFrames.get(new URL(e.origin).hostname);if(d){!l()&&d.retryMonitor&&d.retryMonitor.writeSuccess(),c()||(clearTimeout(d.timeoutId),d.frameMonitor.writeSuccess()),d.isReady=!0;for(var u=0,f=d.messageQueue;u<f.length;u++){var p=f[u],m=p[0],_=p[1];t._sendMessage(t._getIsolatedFrame(m),m,_)}d.messageQueue=[]}break;case"OBOTokenRequest":var h=n.applicationId,b=n.claims;t._getAuthToken(h,b,e.origin);break;default:t._logError("Unexpected message: ".concat(JSON.stringify(e.data)))}}else if("bridgeMessage"===n.messageType&&"onTokenRequested"===n.bridgeAction){var g=c(),v=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.onTokenRequested"),y=(h=n.applicationId,b=n.claims,t._isolatedFrames.get(new URL(e.origin).hostname));if(!g&&!y)return void v.writeUnexpectedFailure("missingIsolatedFrame");y.tokenMonitor=v;var S=ee._AadTokenProviders.configurable;if(!g&&!S._oboThirdPartyTokenCallback)return void v.writeUnexpectedFailure("missingThirdPartyTokenCallback");try{S._oboThirdPartyTokenCallback(h,b).then(function(e){if(!g&&!y.iframe.contentWindow)throw new Error("missingContentWindow");y.iframe.contentWindow.postMessage({token:e,messageType:"dashboardMessage",kind:"Token"},"*"),g||v.writeSuccess()}).catch(function(e){g||v.writeUnexpectedFailure("oboThirdPartyTokenCallbackError",e)})}catch(e){g||v.writeUnexpectedFailure("unexpectedException",e)}}},window.addEventListener("message",this._handleIsolatedApplicationMessage)}return Object.defineProperty(e.prototype,"_pageContext",{get:function(){return this._pContext||(this._pContext=this._serviceScope.consume(te.PageContext.serviceKey)),this._pContext},enumerable:!1,configurable:!0}),e.prototype.disposeEntry=function(e){this._isolatedListeners.delete(e)},e.prototype.load=function(e){var t=this,n=e.callback,r=e.dashboardListId,o=e.itemId,s=e.instanceId,d=e.listenerId,u=e.manifestId,p=e.serviceDestinationEndpoint,m=e.botId,h=e.isolatedDomain.toLowerCase(),b=this._isolatedFrames.get(h);if(!b){var g=c(),y=g?void 0:new a._QosMonitor("IsolatedAdaptiveCardExtensionService.load"),S=document.createElement("iframe"),D=this._pageContext.site.serverRelativeUrl,I="/"===D?"":D,x=new URLSearchParams(window.location.search);x.append("dashboardListID",r),x.append("id",o),1===v._SPPerfExperiment.getVariantAndTrackExperiment(v._PerformanceExperiment.WEXOOPIF)&&x.append("OOPIF","1"),(f()||m)&&x.append("instanceId",s);var C=f()||void 0===p?"adaptivecardextensions.aspx":p,O="/_layouts/15/".concat(C,"?").concat(x.toString()),w=Object(_._ensureIsolatedDomainUrl)(h,this._pageContext.web.absoluteUrl),E=i._BrowserUtilities.isTeams1PVivaDesktopHosted(a._QosMonitor);E&&i._SPFlight.isEnabled(60128)?S.src="".concat(w,"/_layouts/15/framedteamslogon.aspx?spfx=true&dest=").concat(encodeURIComponent(I+O)):S.src=w+O,S.hidden=!0,S.scrolling="no",S.style.overflow="hidden",S.style.height="100%",S.style.width="100%",S.style.top="0",S.style.left="0",S.style.position="fixed",S.style.zIndex="99999",S.style.border="none",i._SPKillSwitch.isActivated("bc68fda3-34d5-496b-8515-8d140a0c98ac")||S.setAttribute("allow","geolocation"),i._SPKillSwitch.isActivated("edddfc6b-79f6-49a3-8bb9-bd5a7a0eb10c")||S.setAttribute("data-automation-id","isolated_ACE_iframe"),document.body.appendChild(S);var A=h.toLowerCase();b={iframe:S,frameMonitor:y,isReady:!1,messageQueue:[],retryCount:0},l()?g||(b.timeoutId=setTimeout(function(){if(y&&!y.hasEnded){var e=t._isolatedFrames.get(A);try{e.tokenMonitor?(y.writeUnexpectedFailure("tokenTimeout"),e.tokenMonitor.hasEnded||e.tokenMonitor.writeUnexpectedFailure("timeout")):E?y.writeUnexpectedFailure("authorizeTimeout"):y.writeExpectedFailure("authorizeTimeout")}catch(e){y.writeUnexpectedFailure("unexpectedFailure",e)}}},15e3)):b.timeoutId=setTimeout(function(){return t._handleIframeTimeout(A,E)},15e3),this._isolatedFrames.set(A,b)}var L=this._isolatedListeners.get(s);if(L)L.listeners.get(d)||L.listeners.set(d,{callback:n});else{var k={isolatedDomain:h,iframe:b.iframe,listeners:new Map([[d,{callback:n}]]),manifestId:u};m&&(k.botId=m),this._isolatedListeners.set(s,k)}e.isRenderedFromPersistedData||this.sendInitialize(s,u);var M=this._callbackCache.get(s);M&&this._invokeCallback(s,M,d)},e.prototype.renderQuickView=function(e){var t=e.instanceId,n=e.isSelectAction,a=e.listenerId,i=e.pageTheme,r=e.targetRect,o=e.theme,s=e.viewId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:{action:{type:"QuickView",isSelectAction:n,pageTheme:i,targetRect:r,theme:o,viewId:s},instanceId:t,listenerId:a}})},e.prototype.setDisplayMode=function(e){},e.prototype.setRenderType=function(e){},e.prototype.sendAction=function(e){var t=e.instanceId;this._sendMessage(this._getIsolatedFrame(t),t,{serviceAction:"Action",action:e})},e.prototype.sendInitialize=function(e,t){this._sendMessage(this._getIsolatedFrame(e),e,{serviceAction:"Initialize",newInstanceId:e,manifestId:t})},e.prototype.updateACEData=function(e,t){this._isolatedListeners.has(e)&&this._sendMessage(this._getIsolatedFrame(e),e,{aceData:t,instanceId:e,serviceAction:"UpdateACEData"})},e.prototype.handleLocationRequest=function(e,t,n){this._sendMessage(this._getIsolatedFrame(e),e,{location:t,locationError:n,instanceId:e,serviceAction:"LocationResponse"})},e.prototype._invokeCallback=function(e,t,n){var a,i=this._isolatedListeners.get(e);this._callbackCache.set(e,t),i?n?null===(a=i.listeners.get(n))||void 0===a||a.callback(t):i.listeners.forEach(function(e){return e.callback(t)}):this._logError("No entry for ".concat(e))},e.prototype._logError=function(t){a._TraceLogger.logError(e._logSource,new Error(t))},e.prototype._getAuthToken=function(e,t,n){var i=this,r=new a._QosMonitor("IsolatedAdaptiveCardExtensionService._getAuthToken"),o=ee._AadTokenProviders.configurable;if(!o._oboThirdPartyTokenCallback)return r.writeUnexpectedFailure("oboThirdPartTokenCallbackUndefined"),void this._logError("Unexpected message: oboThirdPartyTokenCallback is not defined.");o._oboThirdPartyTokenCallback(e,t).then(function(t){var a=new URL(n),o=i._isolatedFrames.get(a.hostname);i._sendMessage(o,"",{token:t,applicationId:e,serviceAction:"OBOToken"}),r.writeSuccess()}).catch(function(e){r.writeUnexpectedFailure("oboThirdPartTokenCallbackFailure"),i._logError("Unexpected message: ".concat(JSON.stringify(e)))})},e.prototype._getIsolatedFrame=function(e){var t=this._isolatedListeners.get(e);return t?this._isolatedFrames.get(t.isolatedDomain):void 0},e.prototype._postOrQueueMessage=function(e,t,n){e.isReady?(t.messageType="serviceMessage",e.iframe.contentWindow.postMessage(t,"*")):e.messageQueue.push([n,t])},e.prototype._sendMessage=function(e,t,n){e?this._postOrQueueMessage(e,n,t):this._logError("No entry for ".concat(t))},e.serviceKey=i.ServiceKey.create("sp-adaptive-card-extension-base::IsolatedAdaptiveCardExtensionService",e),e._logSource={id:"IsolatedAdaptiveCardExtensionService"},e}(),ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="Image",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(R,j)},enumerable:!1,configurable:!0}),t}(G),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._templateType="PrimaryText",t}return Object(m.__extends)(t,e),Object.defineProperty(t.prototype,"template",{get:function(){return this._getTemplate(N,V)},enumerable:!1,configurable:!0}),t}(G)},ut3N:function(e,t){e.exports=d},vlQI:function(e,t){e.exports=l}})});