@microsoft/sp-component-base 1.23.0-rc.0 → 1.23.0-rc.1
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.
- package/dist/467dc675-7cc5-4709-8aac-78e3b71bd2f6.manifest.json +128 -128
- package/dist/sp-component-base_default_c590196bbe7e5a6f6ff1.js +2 -0
- package/dist/sp-component-base_en-us_9e8dec77146d6b21351c.js +2 -0
- package/dist/sp-component-base_qps-ploc_45a50fcbd29ee22c06a0.js +2 -0
- package/dist/sp-component-base_qps-ploca_56b73773c307f88fcc72.js +2 -0
- package/lib/BaseComponent.d.ts.map +1 -1
- package/lib/BaseComponent.js +2 -0
- package/lib/BaseComponentContext.d.ts.map +1 -1
- package/lib/BaseComponentContext.js +2 -1
- package/lib-commonjs/BaseComponent.js +2 -0
- package/lib-commonjs/BaseComponentContext.js +1 -0
- package/package.json +12 -12
- package/dist/sp-component-base_default_a276f2ee96675089fa21.js +0 -2
- package/dist/sp-component-base_en-us_7de687a7959f2e9f7ffa.js +0 -2
- package/dist/sp-component-base_qps-ploc_8f4c63bc9e5f9ed7fa57.js +0 -2
- package/dist/sp-component-base_qps-ploca_35500bd4d27c9c14c1f8.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var e=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","tslib","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(t,n,a,i,r,o,s,c,d,l)=>(()=>{"use strict";var u={620(e,t,n){n.d(t,{T:()=>i,X:()=>r});var a=n(676);function i(){return a._SPFlight.isEnabled(60693)}function r(){return a._SPFlight.isEnabled(61389)}}
|
|
2
|
+
,424(e){e.exports=d},676(e){e.exports=t},207(e){e.exports=n},745(e){e.exports=r},909(e){e.exports=i},529(e){e.exports=o},408(e){e.exports=a},356(e){e.exports=c},519(e){e.exports=l},280(e){e.exports=s}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.m=u;var m,_,h,b={"216":"ItiCNEo6u598sS77caTV4VWnB9NzmexxYHb8FGw9shs=","386":"erqo32fHn8B4mAXDqiYeIv0N90dIkyQUlVD/4Fs4wQU="};p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce((t,n)=>(p.f[n](e,t),t),[])),p.u=e=>"chunk."+{216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"}[e]+"_none_"+{216:"ec71ee12401904fb0e56",386:"c38e57aa65600ec0e403"}[e]+".js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},_="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0:",p.l=(e,t,n,a)=>{if(m[e])m[e].push(t);else{var i,r;if(void 0!==n)for(var o=document.getElementsByTagName("script"),s=0;s<o.length;s++){var c=o[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==_+n){i=c;break}}if(!i){r=!0,(i=document.createElement("script")).charset="utf-8",p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",_+n),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous");var d=function(e){return"sha256-"+(b[e]||"Missing+Integrity+Hash+For+Script+Aborting=")}(a);d&&(i.integrity=d)}m[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),r&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h=e?e.src:"",p.p=h.slice(0,h.lastIndexOf("/")+1),(()=>{var e={826:0};p.f.j=(t,n)=>{var a=p.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=p.p+p.u(t),o=new Error;p.l(r,n=>{if(p.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(a in o)p.o(o,a)&&(p.m[a]=o[a]);s&&s(p)}for(t&&t(n);c<r.length;c++)i=r[c],p.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var g={};return(()=>{p.r(g),p.d(g,{BaseComponent:()=>n,BaseComponentContext:()=>m,DynamicDataProvider:()=>c,DynamicDataSourceManager:()=>u,DynamicProperty:()=>_,ThemeChangedEventArgs:()=>D,ThemeProvider:()=>I,_CacheMissReason:()=>E,_DeferredTeamsAppsClient:()=>k,_LegacyThirdPartyFabricCoreLoader:()=>h,_PropertyMetadataProcessor:()=>y,_ServerProcessedDataType:()=>S,_ShimmerFactory:()=>x,_WebPartLoadDataCollector:()=>L,_ensureIsolatedDomainUrl:()=>O});var e=p(676),t=function(){function e(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return"".concat(this.manifest.componentType,".").concat(this.manifest.id,".").concat(this.instanceId)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)},Object.defineProperty(e.prototype,"_containsDynamicDataSource",{get:function(){return this._isWebPartAndContainsDynamicDataSource},set:function(e){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manifest",{get:function(){return this.context.manifest},enumerable:!1,configurable:!0}),e.prototype.onDispose=function(){},Object.defineProperty(e.prototype,"instanceId",{get:function(){return this.context.instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentId",{get:function(){return this.context.manifest.id},enumerable:!1,configurable:!0}),e.prototype._initializeContext=function(e){this.context=e,this.onProvideServices(e.serviceScope),e.serviceScope._isFinished||e.serviceScope.finish(),this.context._initializeDynamicData(this,e.serviceScope)},e.prototype.onProvideServices=function(e){},e}();const n=t;(0,e._ES5CompatibleClass)(t);var a=p(207),i=p(408),r=p(909),o=p(745),s=p(529);const c=function(){function t(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return t.prototype._initialize=function(t,n){e.Validate.isNotNullOrUndefined(t,"component"),e.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=t,this._pendingRegistrations=new Map,this._dynamicDataManager=n.consume(o._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)},t.prototype.dispose=function(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isProviderInitialized",{get:function(){return this._isInitialized},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_dynamicDataSourceId",{get:function(){return this._component._dynamicDataSourceId},enumerable:!1,configurable:!0}),t.prototype.registerSourceChanged=function(t,n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(t)?(this._dynamicDataManager.registerSourceChanged(t,this._component,n),this._logFeatureEntry("RegisterSourceChanged",{sourceId:t})):this._addPendingRegistration({id:t,callback:n})},t.prototype.unregisterSourceChanged=function(t,n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNotNullOrUndefined(n,"callback");var a={id:t,callback:n};this._isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterSourceChanged(t,this._component,n),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:t}))},t.prototype.registerPropertyChanged=function(t,n,a){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNonemptyString(n,"propertyId"),e.Validate.isNotNullOrUndefined(a,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(t)?(this._dynamicDataManager.registerPropertyChanged(t,n,this._component,a),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:t,propertyId:n})):this._addPendingRegistration({id:t,propertyId:n,callback:a})},t.prototype.unregisterPropertyChanged=function(t,n,a){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNonemptyString(n,"propertyId"),e.Validate.isNotNullOrUndefined(a,"callback");var i={id:t,callback:a,propertyId:n};this._isRegistrationPending(i)?this._removePendingRegistration(i):(this._dynamicDataManager.unregisterPropertyChanged(t,n,this._component,a),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:t,propertyId:n}))},t.prototype.registerAvailableSourcesChanged=function(t){e.Validate.isNotNullOrUndefined(t,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,t)},t.prototype.unregisterAvailableSourcesChanged=function(t){e.Validate.isNotNullOrUndefined(t,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,t)},t.prototype.getAvailableSources=function(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()},t.prototype.getAvailableSourcesByComponentId=function(t){this._assertNotDisposed(),this._assertInitialized();var n=[];return this._dynamicDataManager.getSources().forEach(function(a){t.equals(e.Guid.tryParse(a.metadata.componentId)||e.Guid.empty)&&n.push(a)}),n},t.prototype.tryGetSource=function(t){return this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNotNullOrUndefined(t,"id"),this._dynamicDataManager.tryGetSource(t)},t.prototype._getData=function(n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNotNullOrUndefined(n,"dataReference");var a=this._dynamicDataManager.tryGetSource(n.sourceId);if(a){var i=a.getPropertyValue(n.property);return i&&n.propertyPath&&n.propertyPath.split(".").forEach(function(e){var n=e.split(t._jsonPathArrayRegex),a=n[0];if(i)if(Array.isArray(i)){var r=[];i.forEach(function(e){e.hasOwnProperty(a)&&r.push(e[a])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}i=isNaN(parseInt(o,10))?r:r[o]}else i=i.hasOwnProperty(a)?i[a]:void 0}),i}},t.prototype._onSourcesChanged=function(){var e=this,t=this.getAvailableSources().map(function(e){return e.id});this._pendingRegistrations.forEach(function(n){-1!==t.indexOf(n.id)&&(n.propertyId?(e._dynamicDataManager.registerPropertyChanged(n.id,n.propertyId,e._component,n.callback),e._logFeatureEntry("RegisterPropertyChanged",{sourceId:n.id,propertyId:n.propertyId})):(e._dynamicDataManager.registerSourceChanged(n.id,e._component,n.callback),e._logFeatureEntry("RegisterSourceChanged",{sourceId:n.id})),e._removePendingRegistration(n))})},t.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error("Dynamic Data Provider has been disposed")},t.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error("Dynamic Data Provider has not been initialized.")},t.prototype._addPendingRegistration=function(e){this._isRegistrationPending(e)||this._pendingRegistrations.set(e.id+(e.propertyId||""),{id:e.id,propertyId:e.propertyId,callback:e.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)},t.prototype._removePendingRegistration=function(e){this._pendingRegistrations.delete(e.id+(e.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)},t.prototype._isRegistrationPending=function(e){return this._pendingRegistrations.has(e.id+(e.propertyId||""))},t.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:n.toString()},r=new a._LogEntry("DynamicDataProvider",e,a._LogType.Event,s.merge(i,t));a._EngagementLogger.logEventWithLogEntry(r)},t._jsonPathArrayRegex=new RegExp(/\[|\]/),t}();var d=p(280);const l=JSON.parse('{"lw":"[!!--##Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Yt":"[!!--##\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.##--!!]","C3":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.##--!!]","ad":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","fT":"[!!--##Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.##--!!]","Qm":"[!!--##\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022##--!!]"}'),u=function(){function t(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=a._LogSource.create("DynamicDataSourceManager")}return t.prototype._initialize=function(t,n){e.Validate.isNotNullOrUndefined(t,"component"),e.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=t,this._dynamicDataManager=n.consume(o._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0},t.prototype.dispose=function(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_source",{get:function(){return this._src},enumerable:!1,configurable:!0}),t.prototype.initializeSource=function(t){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw new Error(l.lw);this._callableFunctions=t,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),e._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})},t.prototype.notifySourceChanged=function(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)},t.prototype.notifyPropertyChanged=function(t){e.Validate.isNonemptyString(t,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,t)},t.prototype.updateMetadata=function(t){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),e.Validate.isNotNullOrUndefined(t,"metadata"),t.alias=void 0,t.componentId=void 0,t.instanceId=void 0,(0,s.merge)(this._src.metadata,t)},Object.defineProperty(t.prototype,"sourceId",{get:function(){return this._src?this._src.id:""},enumerable:!1,configurable:!0}),t.prototype._buildSource=function(e){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw new Error(l.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(e),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}},t.prototype._allowedEvents=function(){return this._callableFunctions.allowedEvents?(0,s.cloneDeep)(this._callableFunctions.allowedEvents()):void 0},t.prototype._sendEvent=function(e,t){this._assertValidEvent(e),this._callableFunctions.sendEvent(e,t)},t.prototype._getPropertyDefinitions=function(){return(0,s.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},t.prototype._getPropertyValue=function(t){e.Validate.isNotNullOrUndefined(t,"propertyId");var n=new a._QosMonitor("DynamicDataSourceManager._getPropertyValue"),i=t.split(c._jsonPathArrayRegex);try{var r=this._callableFunctions.getPropertyValue(i.shift());if(i.length>0&&!isNaN(parseInt(i[0],10))&&Array.isArray(r)&&(r=r[i[0]]),void 0===r&&0===this._callableFunctions.getPropertyDefinitions().filter(function(e){return e.id===t}).length&&this._src)throw new Error('Property "'.concat(t,'" doesn\'t exist in source "').concat(this._src.metadata.title,'"'));return n.writeSuccess((0,d.__assign)((0,d.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyId:t})),(0,s.cloneDeep)(r)}catch(e){return n.writeUnexpectedFailure("NoPropertyId",e,{propertyId:t}),void a._TraceLogger.logErrorData({source:this._logSource,error:e})}},t.prototype._getPropertyDefinitionsAsync=function(){return Promise.resolve(this._getPropertyDefinitions())},t.prototype._getPropertyValueAsync=function(e){return Promise.resolve(this._getPropertyValue(e))},t.prototype._allowedEventsAsync=function(){return Promise.resolve(this._allowedEvents())},t.prototype._getAnnotatedPropertyValue=function(t){e.Validate.isNotNullOrUndefined(t,"propertyId");var n,i=new a._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var r=t.split(c._jsonPathArrayRegex);try{n=this._callableFunctions.getAnnotatedPropertyValue(r.shift()),r.length>0&&!isNaN(parseInt(r[0],10))&&Array.isArray(n)&&(n=n[r[0]]),i.writeSuccess((0,d.__assign)((0,d.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:n,propertyId:t}))}catch(e){i.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:n}),a._TraceLogger.logErrorData({source:this._logSource,error:e}),n=void 0}}return n||(n={sampleValue:this._getPropertyValue(t),metadata:void 0}),n},t.prototype._getAnnotatedPropertyValueAsync=function(e){return Promise.resolve(this._getAnnotatedPropertyValue(e))},t.prototype._buildMetadata=function(e){var t={title:e.manifest.alias,alias:e.manifest.alias,componentId:e.componentId,instanceId:e.instanceId},n=e;return n.title&&(t.title=n.title),n.description&&(t.description=n.description),t},t.prototype._assertValidEvent=function(t){if(!this._allowedEvents()||-1===(0,s.findIndex)(this._allowedEvents(),{name:t}))throw new Error(e.Text.format(l.Qm,t,this._src.metadata.title))},t.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(l.C3)},t.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(l.ad)},t.prototype._assertSourceExists=function(){if(!this._src)throw new Error(l.fT)},t.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:n.toString()},r=new a._LogEntry("DynamicDataSourceManager",e,a._LogType.Event,s.merge(i,t));a._EngagementLogger.logEventWithLogEntry(r)},t}();var f=function(){function t(t){var n=this;this._isDisposed=!1,this._isServedFromLocalhost=!1,e.Validate.isNotNullOrUndefined(t,"parameters"),e.Validate.isNotNullOrUndefined(t.manifest,"manifest"),this.manifest=t.manifest;var o=this.manifest.loaderConfig;o&&o.internalModuleBaseUrls&&o.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(o.internalModuleBaseUrls[0])),e.Validate.isNotNullOrUndefined(t.parentServiceScope,"parentServiceScope"),this._serviceScope=t.parentServiceScope.startNewChild(),e.Validate.isNotNullOrUndefined(t.loggingTag,"loggingTag"),this.serviceScope.provide(a._logSourceServiceKey,a._LogSource.create(t.loggingTag)),e.Validate.isNonemptyString(t.instanceId,"instanceId"),this._instanceId=t.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(r.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(r.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(r.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(r.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(r.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(e._ClientManifestData.serviceKey,new e._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){n._pageContext=n.serviceScope.consume(i.PageContext.serviceKey)}),this._dynamicDataProvider=new c,this._dynamicDataSourceManager=new u}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)},Object.defineProperty(t.prototype,"serviceScope",{get:function(){return this._serviceScope},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instanceId",{get:function(){return this._instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageContext",{get:function(){return this._pageContext},enumerable:!1,configurable:!0}),t.prototype._initializeDynamicData=function(e,t){this._dynamicDataProvider._initialize(e,t),this._dynamicDataSourceManager._initialize(e,t)},Object.defineProperty(t.prototype,"dynamicDataProvider",{get:function(){return this._dynamicDataProvider},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dynamicDataSourceManager",{get:function(){return this._dynamicDataSourceManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aadHttpClientFactory",{get:function(){return this._aadClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aadTokenProviderFactory",{get:function(){return this._aadTokenFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"msGraphClientFactory",{get:function(){return this._msGraphClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"httpClient",{get:function(){return this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spHttpClient",{get:function(){return this._spHttpClient},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isServedFromLocalhost",{get:function(){return this._isServedFromLocalhost},enumerable:!1,configurable:!0}),t}();(0,e._ES5CompatibleClass)(f);const m=f,_=function(){function t(n,a){this._hasValue=!1,this._isDisposed=!1,e.Validate.isNotNullOrUndefined(n,"provider"),this.__type=t._TYPE_NAME,this._provider=n,this._callbacks=new Set,this._pendingCallbacks=new Set,a?(this._pendingCallbacks.add(a),this._defaultCallback=a):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}return t.prototype.setReference=function(t){var n=this;e.Validate.isNonemptyString(t,"id"),this._value=void 0,this._hasValue=!1;var a=new Set;this._callbacks.forEach(function(e){return a.add(e)}),this._callbacks.forEach(function(e){return n.unregister(e)}),this._reference=new o.DynamicDataReference(t),this._sourceId=this._getSourceId(),a.forEach(function(e){return n.register(e)}),this._onSourcesChangedCallback()},t.prototype.setValue=function(e){var t=this,n=this._callbacks;n.forEach(function(e){return t.unregister(e)}),this._value=e,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,n.forEach(function(e){return t.register(e)})},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var e=this;this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(function(t){return e.unregister(t)}),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)},t.prototype.toJSON=function(){return this._hasValue?{__type:t._TYPE_NAME,value:this._value}:{__type:t._TYPE_NAME,reference:this._reference}},Object.defineProperty(t.prototype,"reference",{get:function(){return this._hasValue?void 0:this._reference.reference},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.tryGetValue=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){e.Validate.isNotDisposed(this,"DynamicData");var t=this._getData();return Array.isArray(t)&&(t=t[0]),t}},t.prototype.tryGetValues=function(){var e=this._getData();return e?Array.isArray(e)||(e=[e]):e=[],e},t.prototype.tryGetSource=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},t.prototype.register=function(t){e.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),t),this._callbacks.add(t)):this._pendingCallbacks.add(t)},t.prototype.unregister=function(t){e.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),t),this._pendingCallbacks.delete(t),this._callbacks.delete(t)},t.prototype.hasDefaultCallback=function(){return!!this._defaultCallback},t.prototype.removeDefaultCallback=function(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)},t.prototype._getSourceId=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},t.prototype._getProperty=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},t.prototype._getPropertyPath=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},t.prototype._cloneDeep=function(e){return s.cloneDeepWith(e,function(e){if(e instanceof c)return e})},t.prototype._getPropertyToRegister=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(t._arrayRegex)[0]},t.prototype._onSourcesChangedCallback=function(){var e=this;if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){var t=this._pendingCallbacks;this._pendingCallbacks=new Set,t.forEach(function(t){e.register(t),t()})}},t.prototype._getData=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){var t;e.Validate.isNotDisposed(this,"DynamicData");try{t=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw a._EngagementLogger.logEventWithLogEntry(e),e}return a._EngagementLogger.logEventWithLogEntry(new a._LogEntry("DynamicData","getData",a._LogType.Event,{value:JSON.stringify(this.value)})),t}},t._TYPE_NAME="DynamicProperty",t._arrayRegex=new RegExp(/\[\*\]$/),t}(),h=function(){function t(){}return t.load=function(e){return e||t._isLoaded?Promise.resolve():p.e(386).then(p.bind(p,521)).then(function(){t._isLoaded=!0})},t.forceLoad=function(e){try{return t._shouldLoad(e)?p.e(386).then(p.bind(p,521)).then(function(){t._isLoaded=!0}):Promise.resolve()}catch(e){return Promise.reject(e)}},t.needLegacyFabricCss=function(t){if(t.isInternal)return!1;if(void 0===t.loadLegacyFabricCss){var n=e.Version._tryParseSPFxVersion(t);return!n||n.lessThan(e.Version.parse("1.8.2"))}return t.loadLegacyFabricCss},t._shouldLoad=function(e){return!t._isLoaded&&t.needLegacyFabricCss(e)},t._isLoaded=!1,t}();var b=p(620),v=p(356),y=function(){function t(){}return t.serializeServerProcessedData=function(t,n,a){var i=this;this._forEachPropertyWithMetaData(t,n,function(t,r,o){r.shouldNotPersist&&s.set(n,t,void 0);var c=t,d=s.get(n,t);if(a&&"string"==typeof d&&d){if(a.htmlStrings&&r.isHtmlString?a.htmlStrings[c]=d:a.searchablePlainTexts&&r.isSearchablePlainText?a.searchablePlainTexts[c]=d:a.links&&r.isLink?a.links[c]=d:a.imageSources&&r.isImageSource?a.imageSources[c]=d:r.isComponentDependency&&(a.componentDependencies||(a.componentDependencies={}),a.componentDependencies[c]=d),r.customMetadata){var l={};if(r&&r.customMetadata)for(var u=function(t,c){var d=c;void 0!==o&&-1!==d.indexOf("*")&&(d=d.replace("*",o.toString())),i._validateAndIteratePath(d,n,function(i,o){if(void 0===o&&r.customMetadata){var c=s.get(n,i);a&&void 0!==c&&(e._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?l[i]=c:l[t]=c)}})},f=0,p=Object.entries(r.customMetadata);f<p.length;f++){var m=p[f];u(m[0],m[1])}a.customMetadata||(a.customMetadata={}),a.customMetadata[c]=l}s.set(n,t,void 0)}})},t.reInstateServerProcessedData=function(t,n,i,r){var o=this,c=new Set;if(r&&this._forEachPropertyWithMetaData(t,n,function(t,i){if((0,b.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===r.id&&e._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;var d=s.get(n,t);if(void 0!==d){var l=new a._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(i.isLink&&(c.add(t),o._isSafeLink(d)||(l.writeUnexpectedFailure("ClearingLinkProperty",new Error(t)),s.set(n,t,void 0))),i.isHtmlString){c.add(t);var u=o._getSafeHtml(d);u!==d&&(l.writeUnexpectedFailure("SettingSafeHtml",new Error(t)),s.set(n,t,u))}l.hasEnded||l.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==r.id&&i.isHtmlString&&s.set(n,t,void 0)}),i)for(var d=0,l=[i.htmlStrings,i.searchablePlainTexts,i.imageSources,i.links,i.componentDependencies];d<l.length;d++){var u=l[d];if(u)for(var f=0,p=Object.entries(u);f<p.length;f++){var m=p[f],_=m[0],h=m[1];"string"==typeof h&&(s.set(n,_,h),(0,b.X)()&&c.delete(_))}}(0,b.X)()&&r&&c.size>0&&new a._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:r.id,properties:Array.from(c).join(",")})},t._isSafeLink=function(e){try{var t=new URL(e);return v.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(n){try{return t=new URL(e,window.location.origin),v.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(e){return!1}}},t._getSafeHtml=function(e){return v.SafeHtml.clean(e)},t._forEachPropertyWithMetaData=function(e,t,n){if(e)for(var a=function(e,a){i._validateAndIteratePath(e,t,function(e,t){n(e,a,t)})},i=this,r=0,o=Object.entries(e);r<o.length;r++){var s=o[r];a(s[0],s[1])}},t._validateAndIteratePath=function(e,t,n){var a=(e.match(/\*/g)||[]).length;if(a>1)console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(e,"' got ignored in the properties metadata."));else if(1===a){var i=e.indexOf("[*]");if(i<-1)return void console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(e,"' got ignored in the properties metadata."));var r=e.substr(0,i),o=s.get(t,r);if(!o)return void console.warn("Invalid property path: Could not find an array named '".concat(r,"' in the properties.\nEntry with path '").concat(e,"' got ignored in the properties metadata."));for(var c=0;c<o.length;c++)n(e.replace("*","".concat(c)),c)}else n(e)},t}(),S={htmlString:1,link:2,imageSource:3,searchablePlainText:4},D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.__extends)(t,e),t}(e.SPEventArgs),I=function(){function t(n,a,i){this._id=t._instanceCount++,this.themeChangedEvent=new e.SPEvent(this._themeChangedEventName),a&&(this._theme=Object.freeze(a)),i&&(this._themeV2=Object.freeze(i))}return Object.defineProperty(t.prototype,"_themeChangedEventName",{get:function(){return t._themeChangedEventNameLiteral+this._id},enumerable:!1,configurable:!0}),t.prototype._clearTheme=function(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()},t.prototype._setTheme=function(t,n){e.Validate.isNotNullOrUndefined(t,"theme"),this._theme=Object.freeze(t),n&&(this._themeV2=Object.freeze(n)),this._raiseEvent()},t.prototype.tryGetTheme=function(){return this._theme},t.prototype.tryGetThemeV2=function(){return this._themeV2},t.prototype._raiseEvent=function(){e._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})},t.serviceKey=e.ServiceKey.create("sp-component-base.ThemeProvider",t),t._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",t._instanceCount=0,t}();p(424).loadStyles(".s_mwxHE_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s_bzcYC_o5ljQ{fill:#f4f4f4}",!0);const x=function(){function e(){}return e.createShimmer=function(t,n,a,i,r){void 0===r&&(r=void 0),t=t||100,n=n||100;var o=document.createElement("div");o.className="s_mwxHE_o5ljQ";var s=document.createElement("div"),c=.9*n/9,d=2*(c=Math.min(16,c)),l=c,u=l+d,f=u+d,p=f+d,m="s_bzcYC_o5ljQ";s.innerHTML="<svg width=".concat(t," height=").concat(n,' viewBox="0 0 ').concat(t," ").concat(n,'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>').concat(i,"</title>\n <g id=").concat(a,'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width=').concat(t," height=").concat(n,"></rect>\n ").concat(e._shimmerRect(a+"_1",m,8,l,20,c),"\n ").concat(e._shimmerRect(a+"_2",m,8,u,40,c),"\n ").concat(e._shimmerRect(a+"_3",m,8,f,90,c),"\n ").concat(e._shimmerRect(a+"_4",m,8,p,80,c),"\n </g>\n </svg>"),void 0!==r&&(o.style.margin=r+""),o.appendChild(s);var _=document.createElement("div");return _.setAttribute("role","status"),_.setAttribute("aria-live","polite"),o.appendChild(_),o},e._shimmerRect=function(e,t,n,a,i,r){return"<rect id=".concat(e," class=").concat(t," x=").concat(n," y=").concat(a,' width="').concat(i,'%" height=').concat(r,'>\n <animate\n attributeName="opacity"\n dur="1s"\n values="0.2;0.5;0.9"\n repeatCount="indefinite"\n begin="0"/>\n </rect>')},e}();var C=new RegExp("^https://[^/]*/");function O(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(C,"https://".concat(e,"/")),n&&(t=t.substr(0,t.length-1)),t}var w=p(519),E={CacheConfigMissmatch:"CacheConfigMissmatch",LateFlush:"LateFlush",CachedItemNotFound:"CachedItemNotFound",CacheExpired:"CacheExpired",NotSpecified:"NotSpecified",NotApplicable:"N/A"},A="N/A",L=function(){function t(){}return t.collect=function(n,a,i){var r=function(e){return w._PerformanceLogger.readComponentBreakdown(a,e)||w._PerformanceLogger.readTempData("".concat(a,".").concat(e))},o=r("start"),s=r("modulesLoaded"),c=r("init"),d=r("end"),l=!!r("displaySpinner"),u=Boolean(i&&i.legacyPageContext&&i.legacyPageContext.isMultiGeoTenant),f=A,p=A,m="N/A",_=E.NotApplicable;if(n.isInternal){var h=r("CacheHit"),b=r("CacheMiss"),g=r("prefetchedData");m=Boolean(h||b)?h?"true":"false":"N/A",_=t._getCacheMissReason(h,r);var v=w._PerformanceLogger.now(),y=w._PerformanceDataDimensions.Layout,S=w._PerformanceDataDimensions.DataProvider,D=w._PerformanceLogger.readFullEUPLBreakDown();Object.keys(D).forEach(function(e){e.indexOf(a)>-1&&(p===A&&e.indexOf(y)>-1?p=e.split(y)[1]:e.indexOf(S)>-1&&(f===A||D[e]<v)&&(f=e.split(S)[1],v=D[e]))}),f=g?"Prefetch":f}var I=w._PerformanceLogger.getWebpartFlightsAndExperiments(a),x=this._getSyncRenderTime(p,r),C={alias:n.alias,isMultiGeo:u,isInternal:n.isInternal,isSpinnyShown:l,manifestId:n.id,moduleLoadTime:Math.floor(s-o),initTime:Math.floor(c-s),renderTime:Math.floor(d-c),syncRenderTime:x,scenarioId:w._PerformanceLogger.getScenarioId(),isFullPage:w._PerformanceLogger.fullPageLoad,dataProvider:f,layout:p,mySiteCacheHit:m,cacheMissReason:_,flights:I,storeAppId:n.storeAppId,mpnId:n.mpnId,componentDeveloperName:n.componentDeveloperName};return C.teamsHosted=e._BrowserUtilities.isTeamsHosted(),C},t._getSyncRenderTime=function(e,t){var n=void 0;n=Math.floor(t("syncRender")-t("getDataComplete"));var a=t("postRenderComplete"),i=t("loadLayoutEnd"),r=t("syncLayoutRenderComplete");return i&&r&&(n=Math.floor(n+(r-i))),a&&(n=Math.floor(n+(a-t(w._PerformanceDataDimensions.Layout+e)))),n},t._getCacheMissReason=function(e,t){if(e)return E.NotApplicable;var n=!!t("CacheMissConfigMismatch"),a=!!t("LateFlush"),i=!!t("CachedWebPartNotFound"),r=!!t("CacheExpired"),o=E.NotSpecified;return n?o=E.CacheConfigMissmatch:a?o=E.LateFlush:i?o=E.CachedItemNotFound:r&&(o=E.CacheExpired),o},t}(),k=function(){function t(e){this._serviceScope=e}return t.prototype.getClient=function(){var e=this;if(this._teamsAppsClient)return Promise.resolve(this._teamsAppsClient);if(!this._teamsAppsClientPromise){var t=new a._QosMonitor("DeferredTeamsAppsClient.LoadTeamsAppClient");this._teamsAppsClientPromise=p.e(216).then(p.bind(p,165)).then(function(n){var a=n.TeamsAppsClient;return e._teamsAppsClient=new a(e._serviceScope),t.writeSuccess(),e._teamsAppsClient}).catch(function(e){throw t.writeUnexpectedFailure(void 0,e),e})}return this._teamsAppsClientPromise},t.serviceKey=e.ServiceKey.create("sp-teams-apps-client",t),t}()})(),g})())})();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var e=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","tslib","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(t,n,a,i,r,o,s,c,d,l)=>(()=>{"use strict";var u={620(e,t,n){n.d(t,{T:()=>i,X:()=>r});var a=n(676);function i(){return a._SPFlight.isEnabled(60693)}function r(){return a._SPFlight.isEnabled(61389)}}
|
|
2
|
+
,424(e){e.exports=d},676(e){e.exports=t},207(e){e.exports=n},745(e){e.exports=r},909(e){e.exports=i},529(e){e.exports=o},408(e){e.exports=a},356(e){e.exports=c},519(e){e.exports=l},280(e){e.exports=s}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.m=u;var m,_,h,b={"216":"ItiCNEo6u598sS77caTV4VWnB9NzmexxYHb8FGw9shs=","386":"erqo32fHn8B4mAXDqiYeIv0N90dIkyQUlVD/4Fs4wQU="};p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce((t,n)=>(p.f[n](e,t),t),[])),p.u=e=>"chunk."+{216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"}[e]+"_none_"+{216:"ec71ee12401904fb0e56",386:"c38e57aa65600ec0e403"}[e]+".js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},_="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0:",p.l=(e,t,n,a)=>{if(m[e])m[e].push(t);else{var i,r;if(void 0!==n)for(var o=document.getElementsByTagName("script"),s=0;s<o.length;s++){var c=o[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==_+n){i=c;break}}if(!i){r=!0,(i=document.createElement("script")).charset="utf-8",p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",_+n),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous");var d=function(e){return"sha256-"+(b[e]||"Missing+Integrity+Hash+For+Script+Aborting=")}(a);d&&(i.integrity=d)}m[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),r&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h=e?e.src:"",p.p=h.slice(0,h.lastIndexOf("/")+1),(()=>{var e={826:0};p.f.j=(t,n)=>{var a=p.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=p.p+p.u(t),o=new Error;p.l(r,n=>{if(p.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(a in o)p.o(o,a)&&(p.m[a]=o[a]);s&&s(p)}for(t&&t(n);c<r.length;c++)i=r[c],p.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var g={};return(()=>{p.r(g),p.d(g,{BaseComponent:()=>n,BaseComponentContext:()=>m,DynamicDataProvider:()=>c,DynamicDataSourceManager:()=>u,DynamicProperty:()=>_,ThemeChangedEventArgs:()=>D,ThemeProvider:()=>I,_CacheMissReason:()=>E,_DeferredTeamsAppsClient:()=>k,_LegacyThirdPartyFabricCoreLoader:()=>h,_PropertyMetadataProcessor:()=>y,_ServerProcessedDataType:()=>S,_ShimmerFactory:()=>x,_WebPartLoadDataCollector:()=>L,_ensureIsolatedDomainUrl:()=>O});var e=p(676),t=function(){function e(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return"".concat(this.manifest.componentType,".").concat(this.manifest.id,".").concat(this.instanceId)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)},Object.defineProperty(e.prototype,"_containsDynamicDataSource",{get:function(){return this._isWebPartAndContainsDynamicDataSource},set:function(e){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manifest",{get:function(){return this.context.manifest},enumerable:!1,configurable:!0}),e.prototype.onDispose=function(){},Object.defineProperty(e.prototype,"instanceId",{get:function(){return this.context.instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentId",{get:function(){return this.context.manifest.id},enumerable:!1,configurable:!0}),e.prototype._initializeContext=function(e){this.context=e,this.onProvideServices(e.serviceScope),e.serviceScope._isFinished||e.serviceScope.finish(),this.context._initializeDynamicData(this,e.serviceScope)},e.prototype.onProvideServices=function(e){},e}();const n=t;(0,e._ES5CompatibleClass)(t);var a=p(207),i=p(408),r=p(909),o=p(745),s=p(529);const c=function(){function t(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return t.prototype._initialize=function(t,n){e.Validate.isNotNullOrUndefined(t,"component"),e.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=t,this._pendingRegistrations=new Map,this._dynamicDataManager=n.consume(o._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)},t.prototype.dispose=function(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isProviderInitialized",{get:function(){return this._isInitialized},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_dynamicDataSourceId",{get:function(){return this._component._dynamicDataSourceId},enumerable:!1,configurable:!0}),t.prototype.registerSourceChanged=function(t,n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(t)?(this._dynamicDataManager.registerSourceChanged(t,this._component,n),this._logFeatureEntry("RegisterSourceChanged",{sourceId:t})):this._addPendingRegistration({id:t,callback:n})},t.prototype.unregisterSourceChanged=function(t,n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNotNullOrUndefined(n,"callback");var a={id:t,callback:n};this._isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterSourceChanged(t,this._component,n),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:t}))},t.prototype.registerPropertyChanged=function(t,n,a){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNonemptyString(n,"propertyId"),e.Validate.isNotNullOrUndefined(a,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(t)?(this._dynamicDataManager.registerPropertyChanged(t,n,this._component,a),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:t,propertyId:n})):this._addPendingRegistration({id:t,propertyId:n,callback:a})},t.prototype.unregisterPropertyChanged=function(t,n,a){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNonemptyString(t,"sourceId"),e.Validate.isNonemptyString(n,"propertyId"),e.Validate.isNotNullOrUndefined(a,"callback");var i={id:t,callback:a,propertyId:n};this._isRegistrationPending(i)?this._removePendingRegistration(i):(this._dynamicDataManager.unregisterPropertyChanged(t,n,this._component,a),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:t,propertyId:n}))},t.prototype.registerAvailableSourcesChanged=function(t){e.Validate.isNotNullOrUndefined(t,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,t)},t.prototype.unregisterAvailableSourcesChanged=function(t){e.Validate.isNotNullOrUndefined(t,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,t)},t.prototype.getAvailableSources=function(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()},t.prototype.getAvailableSourcesByComponentId=function(t){this._assertNotDisposed(),this._assertInitialized();var n=[];return this._dynamicDataManager.getSources().forEach(function(a){t.equals(e.Guid.tryParse(a.metadata.componentId)||e.Guid.empty)&&n.push(a)}),n},t.prototype.tryGetSource=function(t){return this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNotNullOrUndefined(t,"id"),this._dynamicDataManager.tryGetSource(t)},t.prototype._getData=function(n){this._assertNotDisposed(),this._assertInitialized(),e.Validate.isNotNullOrUndefined(n,"dataReference");var a=this._dynamicDataManager.tryGetSource(n.sourceId);if(a){var i=a.getPropertyValue(n.property);return i&&n.propertyPath&&n.propertyPath.split(".").forEach(function(e){var n=e.split(t._jsonPathArrayRegex),a=n[0];if(i)if(Array.isArray(i)){var r=[];i.forEach(function(e){e.hasOwnProperty(a)&&r.push(e[a])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}i=isNaN(parseInt(o,10))?r:r[o]}else i=i.hasOwnProperty(a)?i[a]:void 0}),i}},t.prototype._onSourcesChanged=function(){var e=this,t=this.getAvailableSources().map(function(e){return e.id});this._pendingRegistrations.forEach(function(n){-1!==t.indexOf(n.id)&&(n.propertyId?(e._dynamicDataManager.registerPropertyChanged(n.id,n.propertyId,e._component,n.callback),e._logFeatureEntry("RegisterPropertyChanged",{sourceId:n.id,propertyId:n.propertyId})):(e._dynamicDataManager.registerSourceChanged(n.id,e._component,n.callback),e._logFeatureEntry("RegisterSourceChanged",{sourceId:n.id})),e._removePendingRegistration(n))})},t.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error("Dynamic Data Provider has been disposed")},t.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error("Dynamic Data Provider has not been initialized.")},t.prototype._addPendingRegistration=function(e){this._isRegistrationPending(e)||this._pendingRegistrations.set(e.id+(e.propertyId||""),{id:e.id,propertyId:e.propertyId,callback:e.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)},t.prototype._removePendingRegistration=function(e){this._pendingRegistrations.delete(e.id+(e.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)},t.prototype._isRegistrationPending=function(e){return this._pendingRegistrations.has(e.id+(e.propertyId||""))},t.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:n.toString()},r=new a._LogEntry("DynamicDataProvider",e,a._LogType.Event,s.merge(i,t));a._EngagementLogger.logEventWithLogEntry(r)},t._jsonPathArrayRegex=new RegExp(/\[|\]/),t}();var d=p(280);const l=JSON.parse('{"lw":"Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.","Yt":"\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.","C3":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.","ad":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","fT":"Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","Qm":"\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022"}'),u=function(){function t(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=a._LogSource.create("DynamicDataSourceManager")}return t.prototype._initialize=function(t,n){e.Validate.isNotNullOrUndefined(t,"component"),e.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=t,this._dynamicDataManager=n.consume(o._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0},t.prototype.dispose=function(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_source",{get:function(){return this._src},enumerable:!1,configurable:!0}),t.prototype.initializeSource=function(t){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw new Error(l.lw);this._callableFunctions=t,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),e._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})},t.prototype.notifySourceChanged=function(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)},t.prototype.notifyPropertyChanged=function(t){e.Validate.isNonemptyString(t,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,t)},t.prototype.updateMetadata=function(t){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),e.Validate.isNotNullOrUndefined(t,"metadata"),t.alias=void 0,t.componentId=void 0,t.instanceId=void 0,(0,s.merge)(this._src.metadata,t)},Object.defineProperty(t.prototype,"sourceId",{get:function(){return this._src?this._src.id:""},enumerable:!1,configurable:!0}),t.prototype._buildSource=function(e){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw new Error(l.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(e),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}},t.prototype._allowedEvents=function(){return this._callableFunctions.allowedEvents?(0,s.cloneDeep)(this._callableFunctions.allowedEvents()):void 0},t.prototype._sendEvent=function(e,t){this._assertValidEvent(e),this._callableFunctions.sendEvent(e,t)},t.prototype._getPropertyDefinitions=function(){return(0,s.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},t.prototype._getPropertyValue=function(t){e.Validate.isNotNullOrUndefined(t,"propertyId");var n=new a._QosMonitor("DynamicDataSourceManager._getPropertyValue"),i=t.split(c._jsonPathArrayRegex);try{var r=this._callableFunctions.getPropertyValue(i.shift());if(i.length>0&&!isNaN(parseInt(i[0],10))&&Array.isArray(r)&&(r=r[i[0]]),void 0===r&&0===this._callableFunctions.getPropertyDefinitions().filter(function(e){return e.id===t}).length&&this._src)throw new Error('Property "'.concat(t,'" doesn\'t exist in source "').concat(this._src.metadata.title,'"'));return n.writeSuccess((0,d.__assign)((0,d.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyId:t})),(0,s.cloneDeep)(r)}catch(e){return n.writeUnexpectedFailure("NoPropertyId",e,{propertyId:t}),void a._TraceLogger.logErrorData({source:this._logSource,error:e})}},t.prototype._getPropertyDefinitionsAsync=function(){return Promise.resolve(this._getPropertyDefinitions())},t.prototype._getPropertyValueAsync=function(e){return Promise.resolve(this._getPropertyValue(e))},t.prototype._allowedEventsAsync=function(){return Promise.resolve(this._allowedEvents())},t.prototype._getAnnotatedPropertyValue=function(t){e.Validate.isNotNullOrUndefined(t,"propertyId");var n,i=new a._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var r=t.split(c._jsonPathArrayRegex);try{n=this._callableFunctions.getAnnotatedPropertyValue(r.shift()),r.length>0&&!isNaN(parseInt(r[0],10))&&Array.isArray(n)&&(n=n[r[0]]),i.writeSuccess((0,d.__assign)((0,d.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:n,propertyId:t}))}catch(e){i.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:n}),a._TraceLogger.logErrorData({source:this._logSource,error:e}),n=void 0}}return n||(n={sampleValue:this._getPropertyValue(t),metadata:void 0}),n},t.prototype._getAnnotatedPropertyValueAsync=function(e){return Promise.resolve(this._getAnnotatedPropertyValue(e))},t.prototype._buildMetadata=function(e){var t={title:e.manifest.alias,alias:e.manifest.alias,componentId:e.componentId,instanceId:e.instanceId},n=e;return n.title&&(t.title=n.title),n.description&&(t.description=n.description),t},t.prototype._assertValidEvent=function(t){if(!this._allowedEvents()||-1===(0,s.findIndex)(this._allowedEvents(),{name:t}))throw new Error(e.Text.format(l.Qm,t,this._src.metadata.title))},t.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(l.C3)},t.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(l.ad)},t.prototype._assertSourceExists=function(){if(!this._src)throw new Error(l.fT)},t.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:n.toString()},r=new a._LogEntry("DynamicDataSourceManager",e,a._LogType.Event,s.merge(i,t));a._EngagementLogger.logEventWithLogEntry(r)},t}();var f=function(){function t(t){var n=this;this._isDisposed=!1,this._isServedFromLocalhost=!1,e.Validate.isNotNullOrUndefined(t,"parameters"),e.Validate.isNotNullOrUndefined(t.manifest,"manifest"),this.manifest=t.manifest;var o=this.manifest.loaderConfig;o&&o.internalModuleBaseUrls&&o.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(o.internalModuleBaseUrls[0])),e.Validate.isNotNullOrUndefined(t.parentServiceScope,"parentServiceScope"),this._serviceScope=t.parentServiceScope.startNewChild(),e.Validate.isNotNullOrUndefined(t.loggingTag,"loggingTag"),this.serviceScope.provide(a._logSourceServiceKey,a._LogSource.create(t.loggingTag)),e.Validate.isNonemptyString(t.instanceId,"instanceId"),this._instanceId=t.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(r.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(r.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(r.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(r.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(r.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(e._ClientManifestData.serviceKey,new e._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){n._pageContext=n.serviceScope.consume(i.PageContext.serviceKey)}),this._dynamicDataProvider=new c,this._dynamicDataSourceManager=new u}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)},Object.defineProperty(t.prototype,"serviceScope",{get:function(){return this._serviceScope},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instanceId",{get:function(){return this._instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageContext",{get:function(){return this._pageContext},enumerable:!1,configurable:!0}),t.prototype._initializeDynamicData=function(e,t){this._dynamicDataProvider._initialize(e,t),this._dynamicDataSourceManager._initialize(e,t)},Object.defineProperty(t.prototype,"dynamicDataProvider",{get:function(){return this._dynamicDataProvider},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dynamicDataSourceManager",{get:function(){return this._dynamicDataSourceManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aadHttpClientFactory",{get:function(){return this._aadClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"aadTokenProviderFactory",{get:function(){return this._aadTokenFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"msGraphClientFactory",{get:function(){return this._msGraphClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"httpClient",{get:function(){return this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spHttpClient",{get:function(){return this._spHttpClient},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isServedFromLocalhost",{get:function(){return this._isServedFromLocalhost},enumerable:!1,configurable:!0}),t}();(0,e._ES5CompatibleClass)(f);const m=f,_=function(){function t(n,a){this._hasValue=!1,this._isDisposed=!1,e.Validate.isNotNullOrUndefined(n,"provider"),this.__type=t._TYPE_NAME,this._provider=n,this._callbacks=new Set,this._pendingCallbacks=new Set,a?(this._pendingCallbacks.add(a),this._defaultCallback=a):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}return t.prototype.setReference=function(t){var n=this;e.Validate.isNonemptyString(t,"id"),this._value=void 0,this._hasValue=!1;var a=new Set;this._callbacks.forEach(function(e){return a.add(e)}),this._callbacks.forEach(function(e){return n.unregister(e)}),this._reference=new o.DynamicDataReference(t),this._sourceId=this._getSourceId(),a.forEach(function(e){return n.register(e)}),this._onSourcesChangedCallback()},t.prototype.setValue=function(e){var t=this,n=this._callbacks;n.forEach(function(e){return t.unregister(e)}),this._value=e,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,n.forEach(function(e){return t.register(e)})},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var e=this;this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(function(t){return e.unregister(t)}),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)},t.prototype.toJSON=function(){return this._hasValue?{__type:t._TYPE_NAME,value:this._value}:{__type:t._TYPE_NAME,reference:this._reference}},Object.defineProperty(t.prototype,"reference",{get:function(){return this._hasValue?void 0:this._reference.reference},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.tryGetValue=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){e.Validate.isNotDisposed(this,"DynamicData");var t=this._getData();return Array.isArray(t)&&(t=t[0]),t}},t.prototype.tryGetValues=function(){var e=this._getData();return e?Array.isArray(e)||(e=[e]):e=[],e},t.prototype.tryGetSource=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},t.prototype.register=function(t){e.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),t),this._callbacks.add(t)):this._pendingCallbacks.add(t)},t.prototype.unregister=function(t){e.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),t),this._pendingCallbacks.delete(t),this._callbacks.delete(t)},t.prototype.hasDefaultCallback=function(){return!!this._defaultCallback},t.prototype.removeDefaultCallback=function(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)},t.prototype._getSourceId=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},t.prototype._getProperty=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},t.prototype._getPropertyPath=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},t.prototype._cloneDeep=function(e){return s.cloneDeepWith(e,function(e){if(e instanceof c)return e})},t.prototype._getPropertyToRegister=function(){return e.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(t._arrayRegex)[0]},t.prototype._onSourcesChangedCallback=function(){var e=this;if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){var t=this._pendingCallbacks;this._pendingCallbacks=new Set,t.forEach(function(t){e.register(t),t()})}},t.prototype._getData=function(){if(!this.isDisposed||e._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){var t;e.Validate.isNotDisposed(this,"DynamicData");try{t=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw a._EngagementLogger.logEventWithLogEntry(e),e}return a._EngagementLogger.logEventWithLogEntry(new a._LogEntry("DynamicData","getData",a._LogType.Event,{value:JSON.stringify(this.value)})),t}},t._TYPE_NAME="DynamicProperty",t._arrayRegex=new RegExp(/\[\*\]$/),t}(),h=function(){function t(){}return t.load=function(e){return e||t._isLoaded?Promise.resolve():p.e(386).then(p.bind(p,521)).then(function(){t._isLoaded=!0})},t.forceLoad=function(e){try{return t._shouldLoad(e)?p.e(386).then(p.bind(p,521)).then(function(){t._isLoaded=!0}):Promise.resolve()}catch(e){return Promise.reject(e)}},t.needLegacyFabricCss=function(t){if(t.isInternal)return!1;if(void 0===t.loadLegacyFabricCss){var n=e.Version._tryParseSPFxVersion(t);return!n||n.lessThan(e.Version.parse("1.8.2"))}return t.loadLegacyFabricCss},t._shouldLoad=function(e){return!t._isLoaded&&t.needLegacyFabricCss(e)},t._isLoaded=!1,t}();var b=p(620),v=p(356),y=function(){function t(){}return t.serializeServerProcessedData=function(t,n,a){var i=this;this._forEachPropertyWithMetaData(t,n,function(t,r,o){r.shouldNotPersist&&s.set(n,t,void 0);var c=t,d=s.get(n,t);if(a&&"string"==typeof d&&d){if(a.htmlStrings&&r.isHtmlString?a.htmlStrings[c]=d:a.searchablePlainTexts&&r.isSearchablePlainText?a.searchablePlainTexts[c]=d:a.links&&r.isLink?a.links[c]=d:a.imageSources&&r.isImageSource?a.imageSources[c]=d:r.isComponentDependency&&(a.componentDependencies||(a.componentDependencies={}),a.componentDependencies[c]=d),r.customMetadata){var l={};if(r&&r.customMetadata)for(var u=function(t,c){var d=c;void 0!==o&&-1!==d.indexOf("*")&&(d=d.replace("*",o.toString())),i._validateAndIteratePath(d,n,function(i,o){if(void 0===o&&r.customMetadata){var c=s.get(n,i);a&&void 0!==c&&(e._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?l[i]=c:l[t]=c)}})},f=0,p=Object.entries(r.customMetadata);f<p.length;f++){var m=p[f];u(m[0],m[1])}a.customMetadata||(a.customMetadata={}),a.customMetadata[c]=l}s.set(n,t,void 0)}})},t.reInstateServerProcessedData=function(t,n,i,r){var o=this,c=new Set;if(r&&this._forEachPropertyWithMetaData(t,n,function(t,i){if((0,b.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===r.id&&e._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;var d=s.get(n,t);if(void 0!==d){var l=new a._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(i.isLink&&(c.add(t),o._isSafeLink(d)||(l.writeUnexpectedFailure("ClearingLinkProperty",new Error(t)),s.set(n,t,void 0))),i.isHtmlString){c.add(t);var u=o._getSafeHtml(d);u!==d&&(l.writeUnexpectedFailure("SettingSafeHtml",new Error(t)),s.set(n,t,u))}l.hasEnded||l.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==r.id&&i.isHtmlString&&s.set(n,t,void 0)}),i)for(var d=0,l=[i.htmlStrings,i.searchablePlainTexts,i.imageSources,i.links,i.componentDependencies];d<l.length;d++){var u=l[d];if(u)for(var f=0,p=Object.entries(u);f<p.length;f++){var m=p[f],_=m[0],h=m[1];"string"==typeof h&&(s.set(n,_,h),(0,b.X)()&&c.delete(_))}}(0,b.X)()&&r&&c.size>0&&new a._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:r.id,properties:Array.from(c).join(",")})},t._isSafeLink=function(e){try{var t=new URL(e);return v.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(n){try{return t=new URL(e,window.location.origin),v.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(e){return!1}}},t._getSafeHtml=function(e){return v.SafeHtml.clean(e)},t._forEachPropertyWithMetaData=function(e,t,n){if(e)for(var a=function(e,a){i._validateAndIteratePath(e,t,function(e,t){n(e,a,t)})},i=this,r=0,o=Object.entries(e);r<o.length;r++){var s=o[r];a(s[0],s[1])}},t._validateAndIteratePath=function(e,t,n){var a=(e.match(/\*/g)||[]).length;if(a>1)console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(e,"' got ignored in the properties metadata."));else if(1===a){var i=e.indexOf("[*]");if(i<-1)return void console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(e,"' got ignored in the properties metadata."));var r=e.substr(0,i),o=s.get(t,r);if(!o)return void console.warn("Invalid property path: Could not find an array named '".concat(r,"' in the properties.\nEntry with path '").concat(e,"' got ignored in the properties metadata."));for(var c=0;c<o.length;c++)n(e.replace("*","".concat(c)),c)}else n(e)},t}(),S={htmlString:1,link:2,imageSource:3,searchablePlainText:4},D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.__extends)(t,e),t}(e.SPEventArgs),I=function(){function t(n,a,i){this._id=t._instanceCount++,this.themeChangedEvent=new e.SPEvent(this._themeChangedEventName),a&&(this._theme=Object.freeze(a)),i&&(this._themeV2=Object.freeze(i))}return Object.defineProperty(t.prototype,"_themeChangedEventName",{get:function(){return t._themeChangedEventNameLiteral+this._id},enumerable:!1,configurable:!0}),t.prototype._clearTheme=function(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()},t.prototype._setTheme=function(t,n){e.Validate.isNotNullOrUndefined(t,"theme"),this._theme=Object.freeze(t),n&&(this._themeV2=Object.freeze(n)),this._raiseEvent()},t.prototype.tryGetTheme=function(){return this._theme},t.prototype.tryGetThemeV2=function(){return this._themeV2},t.prototype._raiseEvent=function(){e._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})},t.serviceKey=e.ServiceKey.create("sp-component-base.ThemeProvider",t),t._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",t._instanceCount=0,t}();p(424).loadStyles(".s_mwxHE_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s_bzcYC_o5ljQ{fill:#f4f4f4}",!0);const x=function(){function e(){}return e.createShimmer=function(t,n,a,i,r){void 0===r&&(r=void 0),t=t||100,n=n||100;var o=document.createElement("div");o.className="s_mwxHE_o5ljQ";var s=document.createElement("div"),c=.9*n/9,d=2*(c=Math.min(16,c)),l=c,u=l+d,f=u+d,p=f+d,m="s_bzcYC_o5ljQ";s.innerHTML="<svg width=".concat(t," height=").concat(n,' viewBox="0 0 ').concat(t," ").concat(n,'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>').concat(i,"</title>\n <g id=").concat(a,'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width=').concat(t," height=").concat(n,"></rect>\n ").concat(e._shimmerRect(a+"_1",m,8,l,20,c),"\n ").concat(e._shimmerRect(a+"_2",m,8,u,40,c),"\n ").concat(e._shimmerRect(a+"_3",m,8,f,90,c),"\n ").concat(e._shimmerRect(a+"_4",m,8,p,80,c),"\n </g>\n </svg>"),void 0!==r&&(o.style.margin=r+""),o.appendChild(s);var _=document.createElement("div");return _.setAttribute("role","status"),_.setAttribute("aria-live","polite"),o.appendChild(_),o},e._shimmerRect=function(e,t,n,a,i,r){return"<rect id=".concat(e," class=").concat(t," x=").concat(n," y=").concat(a,' width="').concat(i,'%" height=').concat(r,'>\n <animate\n attributeName="opacity"\n dur="1s"\n values="0.2;0.5;0.9"\n repeatCount="indefinite"\n begin="0"/>\n </rect>')},e}();var C=new RegExp("^https://[^/]*/");function O(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(C,"https://".concat(e,"/")),n&&(t=t.substr(0,t.length-1)),t}var w=p(519),E={CacheConfigMissmatch:"CacheConfigMissmatch",LateFlush:"LateFlush",CachedItemNotFound:"CachedItemNotFound",CacheExpired:"CacheExpired",NotSpecified:"NotSpecified",NotApplicable:"N/A"},A="N/A",L=function(){function t(){}return t.collect=function(n,a,i){var r=function(e){return w._PerformanceLogger.readComponentBreakdown(a,e)||w._PerformanceLogger.readTempData("".concat(a,".").concat(e))},o=r("start"),s=r("modulesLoaded"),c=r("init"),d=r("end"),l=!!r("displaySpinner"),u=Boolean(i&&i.legacyPageContext&&i.legacyPageContext.isMultiGeoTenant),f=A,p=A,m="N/A",_=E.NotApplicable;if(n.isInternal){var h=r("CacheHit"),b=r("CacheMiss"),g=r("prefetchedData");m=Boolean(h||b)?h?"true":"false":"N/A",_=t._getCacheMissReason(h,r);var v=w._PerformanceLogger.now(),y=w._PerformanceDataDimensions.Layout,S=w._PerformanceDataDimensions.DataProvider,D=w._PerformanceLogger.readFullEUPLBreakDown();Object.keys(D).forEach(function(e){e.indexOf(a)>-1&&(p===A&&e.indexOf(y)>-1?p=e.split(y)[1]:e.indexOf(S)>-1&&(f===A||D[e]<v)&&(f=e.split(S)[1],v=D[e]))}),f=g?"Prefetch":f}var I=w._PerformanceLogger.getWebpartFlightsAndExperiments(a),x=this._getSyncRenderTime(p,r),C={alias:n.alias,isMultiGeo:u,isInternal:n.isInternal,isSpinnyShown:l,manifestId:n.id,moduleLoadTime:Math.floor(s-o),initTime:Math.floor(c-s),renderTime:Math.floor(d-c),syncRenderTime:x,scenarioId:w._PerformanceLogger.getScenarioId(),isFullPage:w._PerformanceLogger.fullPageLoad,dataProvider:f,layout:p,mySiteCacheHit:m,cacheMissReason:_,flights:I,storeAppId:n.storeAppId,mpnId:n.mpnId,componentDeveloperName:n.componentDeveloperName};return C.teamsHosted=e._BrowserUtilities.isTeamsHosted(),C},t._getSyncRenderTime=function(e,t){var n=void 0;n=Math.floor(t("syncRender")-t("getDataComplete"));var a=t("postRenderComplete"),i=t("loadLayoutEnd"),r=t("syncLayoutRenderComplete");return i&&r&&(n=Math.floor(n+(r-i))),a&&(n=Math.floor(n+(a-t(w._PerformanceDataDimensions.Layout+e)))),n},t._getCacheMissReason=function(e,t){if(e)return E.NotApplicable;var n=!!t("CacheMissConfigMismatch"),a=!!t("LateFlush"),i=!!t("CachedWebPartNotFound"),r=!!t("CacheExpired"),o=E.NotSpecified;return n?o=E.CacheConfigMissmatch:a?o=E.LateFlush:i?o=E.CachedItemNotFound:r&&(o=E.CacheExpired),o},t}(),k=function(){function t(e){this._serviceScope=e}return t.prototype.getClient=function(){var e=this;if(this._teamsAppsClient)return Promise.resolve(this._teamsAppsClient);if(!this._teamsAppsClientPromise){var t=new a._QosMonitor("DeferredTeamsAppsClient.LoadTeamsAppClient");this._teamsAppsClientPromise=p.e(216).then(p.bind(p,165)).then(function(n){var a=n.TeamsAppsClient;return e._teamsAppsClient=new a(e._serviceScope),t.writeSuccess(),e._teamsAppsClient}).catch(function(e){throw t.writeUnexpectedFailure(void 0,e),e})}return this._teamsAppsClientPromise},t.serviceKey=e.ServiceKey.create("sp-teams-apps-client",t),t}()})(),g})())})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponent.d.ts","sourceRoot":"","sources":["../src/BaseComponent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseComponent.d.ts","sourceRoot":"","sources":["../src/BaseComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAEpF,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAc,YAAW,gBAAgB;IACrE;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,sCAAsC,EAAE,OAAO,CAAS;IAElE,OAAO,CAAC,WAAW,CAAkB;IAErC;;;;OAIG;IACH,IAAW,oBAAoB,IAAI,MAAM,CAExC;IAED,gBAAgB;;IAKhB;;;;;;;;OAQG;IACI,OAAO,IAAI,IAAI;IAWtB;;;OAGG;IACH,IAAW,0BAA0B,IAAI,OAAO,CAE/C;IAED,IAAW,0BAA0B,CAAC,GAAG,EAAE,OAAO,EAEjD;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED;;;;;OAKG;IACH,IAAW,QAAQ,IAAI,4BAA4B,CAElD;IAED;;;;;OAKG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B;;;;;;;;OAQG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;;OAOG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;OAEG;IACH,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAiBjE;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI;CAG9D"}
|
package/lib/BaseComponent.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
1
2
|
/**
|
|
2
3
|
* The base class for client-side components such as BaseClientSideWebPart or BaseExtension.
|
|
3
4
|
*
|
|
@@ -156,4 +157,5 @@ var BaseComponent = /** @class */ (function () {
|
|
|
156
157
|
return BaseComponent;
|
|
157
158
|
}());
|
|
158
159
|
export default BaseComponent;
|
|
160
|
+
_ES5CompatibleClass(BaseComponent);
|
|
159
161
|
//# sourceMappingURL=BaseComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseComponentContext.d.ts","sourceRoot":"","sources":["../src/BaseComponentContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"BaseComponentContext.d.ts","sourceRoot":"","sources":["../src/BaseComponentContext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,WAAW,EAGjB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,QAAQ,CAAC,kBAAkB,EAAE,YAAY,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,4BAA4B,CAAC;IAEhD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,uBAAe,oBAAqB,YAAW,WAAW;IACxD;;OAEG;IACH,SAAgB,QAAQ,EAAE,4BAA4B,CAAC;IAEvD,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,YAAY,CAA0B;IAC9C,OAAO,CAAC,oBAAoB,CAAkC;IAC9D,OAAO,CAAC,yBAAyB,CAAuC;IACxE,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,aAAa,CAAe;IACpC,OAAO,CAAC,iBAAiB,CAAuB;IAChD,OAAO,CAAC,gBAAgB,CAA0B;IAClD,OAAO,CAAC,qBAAqB,CAAuB;IACpD,OAAO,CAAC,sBAAsB,CAAkB;IAEhD,gBAAgB;gBACG,UAAU,EAAE,2BAA2B;IA0C1D;;OAEG;IACH,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED;;OAEG;IACI,OAAO,IAAI,IAAI;IAkBtB;;;;OAIG;IACH,IAAW,YAAY,IAAI,YAAY,CAEtC;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;OAIG;IACH,IAAW,WAAW,IAAI,WAAW,CAEpC;IAED;;;;;;OAMG;IACI,sBAAsB,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAKzF;;OAEG;IACH,IAAW,mBAAmB,IAAI,mBAAmB,CAEpD;IAED;;OAEG;IACH,IAAW,wBAAwB,IAAI,wBAAwB,CAE9D;IAED;;OAEG;IACH,IAAW,oBAAoB,IAAI,oBAAoB,CAEtD;IAED;;OAEG;IACH,IAAW,uBAAuB,IAAI,uBAAuB,CAE5D;IAED;;OAEG;IACH,IAAW,oBAAoB,IAAI,oBAAoB,CAEtD;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,UAAU,CAElC;IAED;;OAEG;IACH,IAAW,YAAY,IAAI,YAAY,CAEtC;IAED;;OAEG;IACH,IAAW,qBAAqB,IAAI,OAAO,CAE1C;CACF;AAID,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Validate, _ClientManifestData } from '@microsoft/sp-core-library';
|
|
1
|
+
import { Validate, _ClientManifestData, _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
2
2
|
import { _LogSource, _logSourceServiceKey } from '@microsoft/sp-diagnostics';
|
|
3
3
|
import { PageContext } from '@microsoft/sp-page-context';
|
|
4
4
|
import { HttpClient, SPHttpClient, AadHttpClientFactory, AadTokenProviderFactory, MSGraphClientFactory } from '@microsoft/sp-http';
|
|
@@ -217,5 +217,6 @@ var BaseComponentContext = /** @class */ (function () {
|
|
|
217
217
|
});
|
|
218
218
|
return BaseComponentContext;
|
|
219
219
|
}());
|
|
220
|
+
_ES5CompatibleClass(BaseComponentContext);
|
|
220
221
|
export default BaseComponentContext;
|
|
221
222
|
//# sourceMappingURL=BaseComponentContext.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var sp_core_library_1 = require("@microsoft/sp-core-library");
|
|
3
4
|
/**
|
|
4
5
|
* The base class for client-side components such as BaseClientSideWebPart or BaseExtension.
|
|
5
6
|
*
|
|
@@ -158,4 +159,5 @@ var BaseComponent = /** @class */ (function () {
|
|
|
158
159
|
return BaseComponent;
|
|
159
160
|
}());
|
|
160
161
|
exports.default = BaseComponent;
|
|
162
|
+
(0, sp_core_library_1._ES5CompatibleClass)(BaseComponent);
|
|
161
163
|
//# sourceMappingURL=BaseComponent.js.map
|
|
@@ -220,5 +220,6 @@ var BaseComponentContext = /** @class */ (function () {
|
|
|
220
220
|
});
|
|
221
221
|
return BaseComponentContext;
|
|
222
222
|
}());
|
|
223
|
+
(0, sp_core_library_1._ES5CompatibleClass)(BaseComponentContext);
|
|
223
224
|
exports.default = BaseComponentContext;
|
|
224
225
|
//# sourceMappingURL=BaseComponentContext.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-component-base",
|
|
3
|
-
"version": "1.23.0-rc.
|
|
3
|
+
"version": "1.23.0-rc.1",
|
|
4
4
|
"description": "SharePoint Framework support for building client-side components",
|
|
5
5
|
"homepage": "http://aka.ms/spfx",
|
|
6
6
|
"license": "https://aka.ms/spfx/license",
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
"@swc/helpers": "^0.5.12",
|
|
20
20
|
"scheduler": "0.20.2",
|
|
21
21
|
"tslib": "2.3.1",
|
|
22
|
-
"@microsoft/sp-
|
|
23
|
-
"@microsoft/sp-
|
|
24
|
-
"@microsoft/sp-
|
|
25
|
-
"@microsoft/sp-dynamic-data": "1.23.0-rc.
|
|
26
|
-
"@microsoft/sp-module-interfaces": "1.23.0-rc.
|
|
27
|
-
"@microsoft/sp-lodash-subset": "1.23.0-rc.
|
|
28
|
-
"@microsoft/sp-page-context": "1.23.0-rc.
|
|
22
|
+
"@microsoft/sp-core-library": "1.23.0-rc.1",
|
|
23
|
+
"@microsoft/sp-http": "1.23.0-rc.1",
|
|
24
|
+
"@microsoft/sp-diagnostics": "1.23.0-rc.1",
|
|
25
|
+
"@microsoft/sp-dynamic-data": "1.23.0-rc.1",
|
|
26
|
+
"@microsoft/sp-module-interfaces": "1.23.0-rc.1",
|
|
27
|
+
"@microsoft/sp-lodash-subset": "1.23.0-rc.1",
|
|
28
|
+
"@microsoft/sp-page-context": "1.23.0-rc.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@rushstack/heft": "1.2.
|
|
31
|
+
"@rushstack/heft": "1.2.12",
|
|
32
32
|
"@types/react": "17.0.45",
|
|
33
33
|
"@types/react-dom": "17.0.17",
|
|
34
34
|
"eslint": "9.37.0",
|
|
35
35
|
"react": "17.0.1",
|
|
36
36
|
"react-dom": "17.0.1",
|
|
37
|
-
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
38
37
|
"@ms/office-ui-fabric-react-bundle": "1.19.60",
|
|
38
|
+
"@msinternal/ms-graph-v3-bundle": "3.0.2",
|
|
39
39
|
"@msinternal/react-17-bundle": "17.0.1",
|
|
40
40
|
"@msinternal/react-dom-17-profiling-bundle": "17.0.1",
|
|
41
41
|
"@msinternal/react-dom-17-bundle": "17.0.1",
|
|
42
|
-
"@msinternal/sp-
|
|
42
|
+
"@msinternal/sp-telemetry": "0.35.145",
|
|
43
43
|
"@msinternal/spfx-internal-web-build-rig": "0.1.0",
|
|
44
|
-
"@msinternal/sp-
|
|
44
|
+
"@msinternal/sp-safehtml": "0.6.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "heft test --clean",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","tslib","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(t,n,a,i,r,o,s,c,d,l)=>(()=>{"use strict";var u={620(e,t,n){n.d(t,{T:()=>i,X:()=>r});var a=n(676);function i(){return a._SPFlight.isEnabled(60693)}function r(){return a._SPFlight.isEnabled(61389)}}
|
|
2
|
-
,424(e){e.exports=d},676(e){e.exports=t},207(e){e.exports=n},745(e){e.exports=r},909(e){e.exports=i},529(e){e.exports=o},408(e){e.exports=a},356(e){e.exports=c},519(e){e.exports=l},280(e){e.exports=s}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.m=u;var m,_,h,b={"216":"ItiCNEo6u598sS77caTV4VWnB9NzmexxYHb8FGw9shs=","386":"erqo32fHn8B4mAXDqiYeIv0N90dIkyQUlVD/4Fs4wQU="};p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce((t,n)=>(p.f[n](e,t),t),[])),p.u=e=>"chunk."+{216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"}[e]+"_none_"+{216:"ec71ee12401904fb0e56",386:"c38e57aa65600ec0e403"}[e]+".js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},_="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0:",p.l=(e,t,n,a)=>{if(m[e])m[e].push(t);else{var i,r;if(void 0!==n)for(var o=document.getElementsByTagName("script"),s=0;s<o.length;s++){var c=o[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==_+n){i=c;break}}if(!i){r=!0,(i=document.createElement("script")).charset="utf-8",p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",_+n),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous");var d=function(e){return"sha256-"+(b[e]||"Missing+Integrity+Hash+For+Script+Aborting=")}(a);d&&(i.integrity=d)}m[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),r&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h=e?e.src:"",p.p=h.slice(0,h.lastIndexOf("/")+1),(()=>{var e={826:0};p.f.j=(t,n)=>{var a=p.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=p.p+p.u(t),o=new Error;p.l(r,n=>{if(p.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(a in o)p.o(o,a)&&(p.m[a]=o[a]);s&&s(p)}for(t&&t(n);c<r.length;c++)i=r[c],p.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var g={};return(()=>{p.r(g),p.d(g,{BaseComponent:()=>e,BaseComponentContext:()=>u,DynamicDataProvider:()=>s,DynamicDataSourceManager:()=>l,DynamicProperty:()=>f,ThemeChangedEventArgs:()=>y,ThemeProvider:()=>S,_CacheMissReason:()=>O,_DeferredTeamsAppsClient:()=>A,_LegacyThirdPartyFabricCoreLoader:()=>m,_PropertyMetadataProcessor:()=>b,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>D,_WebPartLoadDataCollector:()=>E,_ensureIsolatedDomainUrl:()=>x});const e=function(){function e(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return"".concat(this.manifest.componentType,".").concat(this.manifest.id,".").concat(this.instanceId)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)},Object.defineProperty(e.prototype,"_containsDynamicDataSource",{get:function(){return this._isWebPartAndContainsDynamicDataSource},set:function(e){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manifest",{get:function(){return this.context.manifest},enumerable:!1,configurable:!0}),e.prototype.onDispose=function(){},Object.defineProperty(e.prototype,"instanceId",{get:function(){return this.context.instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentId",{get:function(){return this.context.manifest.id},enumerable:!1,configurable:!0}),e.prototype._initializeContext=function(e){this.context=e,this.onProvideServices(e.serviceScope),e.serviceScope._isFinished||e.serviceScope.finish(),this.context._initializeDynamicData(this,e.serviceScope)},e.prototype.onProvideServices=function(e){},e}();var t=p(676),n=p(207),a=p(408),i=p(909),r=p(745),o=p(529);const s=function(){function e(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return e.prototype._initialize=function(e,n){t.Validate.isNotNullOrUndefined(e,"component"),t.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=e,this._pendingRegistrations=new Map,this._dynamicDataManager=n.consume(r._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)},e.prototype.dispose=function(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_isProviderInitialized",{get:function(){return this._isInitialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return this._component._dynamicDataSourceId},enumerable:!1,configurable:!0}),e.prototype.registerSourceChanged=function(e,n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerSourceChanged(e,this._component,n),this._logFeatureEntry("RegisterSourceChanged",{sourceId:e})):this._addPendingRegistration({id:e,callback:n})},e.prototype.unregisterSourceChanged=function(e,n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNotNullOrUndefined(n,"callback");var a={id:e,callback:n};this._isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterSourceChanged(e,this._component,n),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:e}))},e.prototype.registerPropertyChanged=function(e,n,a){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNonemptyString(n,"propertyId"),t.Validate.isNotNullOrUndefined(a,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerPropertyChanged(e,n,this._component,a),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:e,propertyId:n})):this._addPendingRegistration({id:e,propertyId:n,callback:a})},e.prototype.unregisterPropertyChanged=function(e,n,a){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNonemptyString(n,"propertyId"),t.Validate.isNotNullOrUndefined(a,"callback");var i={id:e,callback:a,propertyId:n};this._isRegistrationPending(i)?this._removePendingRegistration(i):(this._dynamicDataManager.unregisterPropertyChanged(e,n,this._component,a),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:e,propertyId:n}))},e.prototype.registerAvailableSourcesChanged=function(e){t.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,e)},e.prototype.unregisterAvailableSourcesChanged=function(e){t.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,e)},e.prototype.getAvailableSources=function(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()},e.prototype.getAvailableSourcesByComponentId=function(e){this._assertNotDisposed(),this._assertInitialized();var n=[];return this._dynamicDataManager.getSources().forEach(function(a){e.equals(t.Guid.tryParse(a.metadata.componentId)||t.Guid.empty)&&n.push(a)}),n},e.prototype.tryGetSource=function(e){return this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNotNullOrUndefined(e,"id"),this._dynamicDataManager.tryGetSource(e)},e.prototype._getData=function(n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNotNullOrUndefined(n,"dataReference");var a=this._dynamicDataManager.tryGetSource(n.sourceId);if(a){var i=a.getPropertyValue(n.property);return i&&n.propertyPath&&n.propertyPath.split(".").forEach(function(t){var n=t.split(e._jsonPathArrayRegex),a=n[0];if(i)if(Array.isArray(i)){var r=[];i.forEach(function(e){e.hasOwnProperty(a)&&r.push(e[a])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}i=isNaN(parseInt(o,10))?r:r[o]}else i=i.hasOwnProperty(a)?i[a]:void 0}),i}},e.prototype._onSourcesChanged=function(){var e=this,t=this.getAvailableSources().map(function(e){return e.id});this._pendingRegistrations.forEach(function(n){-1!==t.indexOf(n.id)&&(n.propertyId?(e._dynamicDataManager.registerPropertyChanged(n.id,n.propertyId,e._component,n.callback),e._logFeatureEntry("RegisterPropertyChanged",{sourceId:n.id,propertyId:n.propertyId})):(e._dynamicDataManager.registerSourceChanged(n.id,e._component,n.callback),e._logFeatureEntry("RegisterSourceChanged",{sourceId:n.id})),e._removePendingRegistration(n))})},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error("Dynamic Data Provider has been disposed")},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error("Dynamic Data Provider has not been initialized.")},e.prototype._addPendingRegistration=function(e){this._isRegistrationPending(e)||this._pendingRegistrations.set(e.id+(e.propertyId||""),{id:e.id,propertyId:e.propertyId,callback:e.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)},e.prototype._removePendingRegistration=function(e){this._pendingRegistrations.delete(e.id+(e.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)},e.prototype._isRegistrationPending=function(e){return this._pendingRegistrations.has(e.id+(e.propertyId||""))},e.prototype._logFeatureEntry=function(e,t){var a=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:a.toString()},r=new n._LogEntry("DynamicDataProvider",e,n._LogType.Event,o.merge(i,t));n._EngagementLogger.logEventWithLogEntry(r)},e._jsonPathArrayRegex=new RegExp(/\[|\]/),e}();var c=p(280);const d=JSON.parse('{"lw":"SourceAlreadyInitialized","Yt":"NoSendEventWhenAllowedEventsIsNonEmpty","C3":"DynamicDataSourceManagerIsDisposed","ad":"DynamicDataSourceManagerIsNotInitialized","fT":"DynamicDataSourceIsNotInitialized","Qm":"InvalidEvent"}'),l=function(){function e(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=n._LogSource.create("DynamicDataSourceManager")}return e.prototype._initialize=function(e,n){t.Validate.isNotNullOrUndefined(e,"component"),t.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=e,this._dynamicDataManager=n.consume(r._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0},e.prototype.dispose=function(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_source",{get:function(){return this._src},enumerable:!1,configurable:!0}),e.prototype.initializeSource=function(e){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw new Error(d.lw);this._callableFunctions=e,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),t._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})},e.prototype.notifySourceChanged=function(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)},e.prototype.notifyPropertyChanged=function(e){t.Validate.isNonemptyString(e,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,e)},e.prototype.updateMetadata=function(e){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),t.Validate.isNotNullOrUndefined(e,"metadata"),e.alias=void 0,e.componentId=void 0,e.instanceId=void 0,(0,o.merge)(this._src.metadata,e)},Object.defineProperty(e.prototype,"sourceId",{get:function(){return this._src?this._src.id:""},enumerable:!1,configurable:!0}),e.prototype._buildSource=function(e){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw new Error(d.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(e),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}},e.prototype._allowedEvents=function(){return this._callableFunctions.allowedEvents?(0,o.cloneDeep)(this._callableFunctions.allowedEvents()):void 0},e.prototype._sendEvent=function(e,t){this._assertValidEvent(e),this._callableFunctions.sendEvent(e,t)},e.prototype._getPropertyDefinitions=function(){return(0,o.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},e.prototype._getPropertyValue=function(e){t.Validate.isNotNullOrUndefined(e,"propertyId");var a=new n._QosMonitor("DynamicDataSourceManager._getPropertyValue"),i=e.split(s._jsonPathArrayRegex);try{var r=this._callableFunctions.getPropertyValue(i.shift());if(i.length>0&&!isNaN(parseInt(i[0],10))&&Array.isArray(r)&&(r=r[i[0]]),void 0===r&&0===this._callableFunctions.getPropertyDefinitions().filter(function(t){return t.id===e}).length&&this._src)throw new Error('Property "'.concat(e,'" doesn\'t exist in source "').concat(this._src.metadata.title,'"'));return a.writeSuccess((0,c.__assign)((0,c.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyId:e})),(0,o.cloneDeep)(r)}catch(t){return a.writeUnexpectedFailure("NoPropertyId",t,{propertyId:e}),void n._TraceLogger.logErrorData({source:this._logSource,error:t})}},e.prototype._getPropertyDefinitionsAsync=function(){return Promise.resolve(this._getPropertyDefinitions())},e.prototype._getPropertyValueAsync=function(e){return Promise.resolve(this._getPropertyValue(e))},e.prototype._allowedEventsAsync=function(){return Promise.resolve(this._allowedEvents())},e.prototype._getAnnotatedPropertyValue=function(e){t.Validate.isNotNullOrUndefined(e,"propertyId");var a,i=new n._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var r=e.split(s._jsonPathArrayRegex);try{a=this._callableFunctions.getAnnotatedPropertyValue(r.shift()),r.length>0&&!isNaN(parseInt(r[0],10))&&Array.isArray(a)&&(a=a[r[0]]),i.writeSuccess((0,c.__assign)((0,c.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:a,propertyId:e}))}catch(e){i.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:a}),n._TraceLogger.logErrorData({source:this._logSource,error:e}),a=void 0}}return a||(a={sampleValue:this._getPropertyValue(e),metadata:void 0}),a},e.prototype._getAnnotatedPropertyValueAsync=function(e){return Promise.resolve(this._getAnnotatedPropertyValue(e))},e.prototype._buildMetadata=function(e){var t={title:e.manifest.alias,alias:e.manifest.alias,componentId:e.componentId,instanceId:e.instanceId},n=e;return n.title&&(t.title=n.title),n.description&&(t.description=n.description),t},e.prototype._assertValidEvent=function(e){if(!this._allowedEvents()||-1===(0,o.findIndex)(this._allowedEvents(),{name:e}))throw new Error(t.Text.format(d.Qm,e,this._src.metadata.title))},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(d.C3)},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(d.ad)},e.prototype._assertSourceExists=function(){if(!this._src)throw new Error(d.fT)},e.prototype._logFeatureEntry=function(e,t){var a=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:a.toString()},r=new n._LogEntry("DynamicDataSourceManager",e,n._LogType.Event,o.merge(i,t));n._EngagementLogger.logEventWithLogEntry(r)},e}(),u=function(){function e(e){var r=this;this._isDisposed=!1,this._isServedFromLocalhost=!1,t.Validate.isNotNullOrUndefined(e,"parameters"),t.Validate.isNotNullOrUndefined(e.manifest,"manifest"),this.manifest=e.manifest;var o=this.manifest.loaderConfig;o&&o.internalModuleBaseUrls&&o.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(o.internalModuleBaseUrls[0])),t.Validate.isNotNullOrUndefined(e.parentServiceScope,"parentServiceScope"),this._serviceScope=e.parentServiceScope.startNewChild(),t.Validate.isNotNullOrUndefined(e.loggingTag,"loggingTag"),this.serviceScope.provide(n._logSourceServiceKey,n._LogSource.create(e.loggingTag)),t.Validate.isNonemptyString(e.instanceId,"instanceId"),this._instanceId=e.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(i.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(i.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(i.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(i.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(i.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(t._ClientManifestData.serviceKey,new t._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){r._pageContext=r.serviceScope.consume(a.PageContext.serviceKey)}),this._dynamicDataProvider=new s,this._dynamicDataSourceManager=new l}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)},Object.defineProperty(e.prototype,"serviceScope",{get:function(){return this._serviceScope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceId",{get:function(){return this._instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageContext",{get:function(){return this._pageContext},enumerable:!1,configurable:!0}),e.prototype._initializeDynamicData=function(e,t){this._dynamicDataProvider._initialize(e,t),this._dynamicDataSourceManager._initialize(e,t)},Object.defineProperty(e.prototype,"dynamicDataProvider",{get:function(){return this._dynamicDataProvider},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dynamicDataSourceManager",{get:function(){return this._dynamicDataSourceManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"aadHttpClientFactory",{get:function(){return this._aadClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"aadTokenProviderFactory",{get:function(){return this._aadTokenFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msGraphClientFactory",{get:function(){return this._msGraphClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpClient",{get:function(){return this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spHttpClient",{get:function(){return this._spHttpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isServedFromLocalhost",{get:function(){return this._isServedFromLocalhost},enumerable:!1,configurable:!0}),e}(),f=function(){function e(n,a){this._hasValue=!1,this._isDisposed=!1,t.Validate.isNotNullOrUndefined(n,"provider"),this.__type=e._TYPE_NAME,this._provider=n,this._callbacks=new Set,this._pendingCallbacks=new Set,a?(this._pendingCallbacks.add(a),this._defaultCallback=a):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}return e.prototype.setReference=function(e){var n=this;t.Validate.isNonemptyString(e,"id"),this._value=void 0,this._hasValue=!1;var a=new Set;this._callbacks.forEach(function(e){return a.add(e)}),this._callbacks.forEach(function(e){return n.unregister(e)}),this._reference=new r.DynamicDataReference(e),this._sourceId=this._getSourceId(),a.forEach(function(e){return n.register(e)}),this._onSourcesChangedCallback()},e.prototype.setValue=function(e){var t=this,n=this._callbacks;n.forEach(function(e){return t.unregister(e)}),this._value=e,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,n.forEach(function(e){return t.register(e)})},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){var e=this;this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(function(t){return e.unregister(t)}),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)},e.prototype.toJSON=function(){return this._hasValue?{__type:e._TYPE_NAME,value:this._value}:{__type:e._TYPE_NAME,reference:this._reference}},Object.defineProperty(e.prototype,"reference",{get:function(){return this._hasValue?void 0:this._reference.reference},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.tryGetValue=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){t.Validate.isNotDisposed(this,"DynamicData");var e=this._getData();return Array.isArray(e)&&(e=e[0]),e}},e.prototype.tryGetValues=function(){var e=this._getData();return e?Array.isArray(e)||(e=[e]):e=[],e},e.prototype.tryGetSource=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},e.prototype.register=function(e){t.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),e),this._callbacks.add(e)):this._pendingCallbacks.add(e)},e.prototype.unregister=function(e){t.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),e),this._pendingCallbacks.delete(e),this._callbacks.delete(e)},e.prototype.hasDefaultCallback=function(){return!!this._defaultCallback},e.prototype.removeDefaultCallback=function(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)},e.prototype._getSourceId=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},e.prototype._getProperty=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},e.prototype._getPropertyPath=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},e.prototype._cloneDeep=function(e){return o.cloneDeepWith(e,function(e){if(e instanceof s)return e})},e.prototype._getPropertyToRegister=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(e._arrayRegex)[0]},e.prototype._onSourcesChangedCallback=function(){var e=this;if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){var t=this._pendingCallbacks;this._pendingCallbacks=new Set,t.forEach(function(t){e.register(t),t()})}},e.prototype._getData=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){var e;t.Validate.isNotDisposed(this,"DynamicData");try{e=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw n._EngagementLogger.logEventWithLogEntry(e),e}return n._EngagementLogger.logEventWithLogEntry(new n._LogEntry("DynamicData","getData",n._LogType.Event,{value:JSON.stringify(this.value)})),e}},e._TYPE_NAME="DynamicProperty",e._arrayRegex=new RegExp(/\[\*\]$/),e}(),m=function(){function e(){}return e.load=function(t){return t||e._isLoaded?Promise.resolve():p.e(386).then(p.bind(p,521)).then(function(){e._isLoaded=!0})},e.forceLoad=function(t){try{return e._shouldLoad(t)?p.e(386).then(p.bind(p,521)).then(function(){e._isLoaded=!0}):Promise.resolve()}catch(e){return Promise.reject(e)}},e.needLegacyFabricCss=function(e){if(e.isInternal)return!1;if(void 0===e.loadLegacyFabricCss){var n=t.Version._tryParseSPFxVersion(e);return!n||n.lessThan(t.Version.parse("1.8.2"))}return e.loadLegacyFabricCss},e._shouldLoad=function(t){return!e._isLoaded&&e.needLegacyFabricCss(t)},e._isLoaded=!1,e}();var _=p(620),h=p(356),b=function(){function e(){}return e.serializeServerProcessedData=function(e,n,a){var i=this;this._forEachPropertyWithMetaData(e,n,function(e,r,s){r.shouldNotPersist&&o.set(n,e,void 0);var c=e,d=o.get(n,e);if(a&&"string"==typeof d&&d){if(a.htmlStrings&&r.isHtmlString?a.htmlStrings[c]=d:a.searchablePlainTexts&&r.isSearchablePlainText?a.searchablePlainTexts[c]=d:a.links&&r.isLink?a.links[c]=d:a.imageSources&&r.isImageSource?a.imageSources[c]=d:r.isComponentDependency&&(a.componentDependencies||(a.componentDependencies={}),a.componentDependencies[c]=d),r.customMetadata){var l={};if(r&&r.customMetadata)for(var u=function(e,c){var d=c;void 0!==s&&-1!==d.indexOf("*")&&(d=d.replace("*",s.toString())),i._validateAndIteratePath(d,n,function(i,s){if(void 0===s&&r.customMetadata){var c=o.get(n,i);a&&void 0!==c&&(t._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?l[i]=c:l[e]=c)}})},f=0,p=Object.entries(r.customMetadata);f<p.length;f++){var m=p[f];u(m[0],m[1])}a.customMetadata||(a.customMetadata={}),a.customMetadata[c]=l}o.set(n,e,void 0)}})},e.reInstateServerProcessedData=function(e,a,i,r){var s=this,c=new Set;if(r&&this._forEachPropertyWithMetaData(e,a,function(e,i){if((0,_.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===r.id&&t._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;var d=o.get(a,e);if(void 0!==d){var l=new n._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(i.isLink&&(c.add(e),s._isSafeLink(d)||(l.writeUnexpectedFailure("ClearingLinkProperty",new Error(e)),o.set(a,e,void 0))),i.isHtmlString){c.add(e);var u=s._getSafeHtml(d);u!==d&&(l.writeUnexpectedFailure("SettingSafeHtml",new Error(e)),o.set(a,e,u))}l.hasEnded||l.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==r.id&&i.isHtmlString&&o.set(a,e,void 0)}),i)for(var d=0,l=[i.htmlStrings,i.searchablePlainTexts,i.imageSources,i.links,i.componentDependencies];d<l.length;d++){var u=l[d];if(u)for(var f=0,p=Object.entries(u);f<p.length;f++){var m=p[f],h=m[0],b=m[1];"string"==typeof b&&(o.set(a,h,b),(0,_.X)()&&c.delete(h))}}(0,_.X)()&&r&&c.size>0&&new n._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:r.id,properties:Array.from(c).join(",")})},e._isSafeLink=function(e){try{var t=new URL(e);return h.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(n){try{return t=new URL(e,window.location.origin),h.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(e){return!1}}},e._getSafeHtml=function(e){return h.SafeHtml.clean(e)},e._forEachPropertyWithMetaData=function(e,t,n){if(e)for(var a=function(e,a){i._validateAndIteratePath(e,t,function(e,t){n(e,a,t)})},i=this,r=0,o=Object.entries(e);r<o.length;r++){var s=o[r];a(s[0],s[1])}},e._validateAndIteratePath=function(e,t,n){var a=(e.match(/\*/g)||[]).length;if(a>1)console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(e,"' got ignored in the properties metadata."));else if(1===a){var i=e.indexOf("[*]");if(i<-1)return void console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(e,"' got ignored in the properties metadata."));var r=e.substr(0,i),s=o.get(t,r);if(!s)return void console.warn("Invalid property path: Could not find an array named '".concat(r,"' in the properties.\nEntry with path '").concat(e,"' got ignored in the properties metadata."));for(var c=0;c<s.length;c++)n(e.replace("*","".concat(c)),c)}else n(e)},e}(),v={htmlString:1,link:2,imageSource:3,searchablePlainText:4},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,c.__extends)(t,e),t}(t.SPEventArgs),S=function(){function e(n,a,i){this._id=e._instanceCount++,this.themeChangedEvent=new t.SPEvent(this._themeChangedEventName),a&&(this._theme=Object.freeze(a)),i&&(this._themeV2=Object.freeze(i))}return Object.defineProperty(e.prototype,"_themeChangedEventName",{get:function(){return e._themeChangedEventNameLiteral+this._id},enumerable:!1,configurable:!0}),e.prototype._clearTheme=function(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()},e.prototype._setTheme=function(e,n){t.Validate.isNotNullOrUndefined(e,"theme"),this._theme=Object.freeze(e),n&&(this._themeV2=Object.freeze(n)),this._raiseEvent()},e.prototype.tryGetTheme=function(){return this._theme},e.prototype.tryGetThemeV2=function(){return this._themeV2},e.prototype._raiseEvent=function(){t._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})},e.serviceKey=t.ServiceKey.create("sp-component-base.ThemeProvider",e),e._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",e._instanceCount=0,e}();p(424).loadStyles(".s_mwxHE_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s_bzcYC_o5ljQ{fill:#f4f4f4}",!0);const D=function(){function e(){}return e.createShimmer=function(t,n,a,i,r){void 0===r&&(r=void 0),t=t||100,n=n||100;var o=document.createElement("div");o.className="s_mwxHE_o5ljQ";var s=document.createElement("div"),c=.9*n/9,d=2*(c=Math.min(16,c)),l=c,u=l+d,f=u+d,p=f+d,m="s_bzcYC_o5ljQ";s.innerHTML="<svg width=".concat(t," height=").concat(n,' viewBox="0 0 ').concat(t," ").concat(n,'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>').concat(i,"</title>\n <g id=").concat(a,'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width=').concat(t," height=").concat(n,"></rect>\n ").concat(e._shimmerRect(a+"_1",m,8,l,20,c),"\n ").concat(e._shimmerRect(a+"_2",m,8,u,40,c),"\n ").concat(e._shimmerRect(a+"_3",m,8,f,90,c),"\n ").concat(e._shimmerRect(a+"_4",m,8,p,80,c),"\n </g>\n </svg>"),void 0!==r&&(o.style.margin=r+""),o.appendChild(s);var _=document.createElement("div");return _.setAttribute("role","status"),_.setAttribute("aria-live","polite"),o.appendChild(_),o},e._shimmerRect=function(e,t,n,a,i,r){return"<rect id=".concat(e," class=").concat(t," x=").concat(n," y=").concat(a,' width="').concat(i,'%" height=').concat(r,'>\n <animate\n attributeName="opacity"\n dur="1s"\n values="0.2;0.5;0.9"\n repeatCount="indefinite"\n begin="0"/>\n </rect>')},e}();var I=new RegExp("^https://[^/]*/");function x(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(I,"https://".concat(e,"/")),n&&(t=t.substr(0,t.length-1)),t}var C=p(519),O={CacheConfigMissmatch:"CacheConfigMissmatch",LateFlush:"LateFlush",CachedItemNotFound:"CachedItemNotFound",CacheExpired:"CacheExpired",NotSpecified:"NotSpecified",NotApplicable:"N/A"},w="N/A",E=function(){function e(){}return e.collect=function(n,a,i){var r=function(e){return C._PerformanceLogger.readComponentBreakdown(a,e)||C._PerformanceLogger.readTempData("".concat(a,".").concat(e))},o=r("start"),s=r("modulesLoaded"),c=r("init"),d=r("end"),l=!!r("displaySpinner"),u=Boolean(i&&i.legacyPageContext&&i.legacyPageContext.isMultiGeoTenant),f=w,p=w,m="N/A",_=O.NotApplicable;if(n.isInternal){var h=r("CacheHit"),b=r("CacheMiss"),g=r("prefetchedData");m=Boolean(h||b)?h?"true":"false":"N/A",_=e._getCacheMissReason(h,r);var v=C._PerformanceLogger.now(),y=C._PerformanceDataDimensions.Layout,S=C._PerformanceDataDimensions.DataProvider,D=C._PerformanceLogger.readFullEUPLBreakDown();Object.keys(D).forEach(function(e){e.indexOf(a)>-1&&(p===w&&e.indexOf(y)>-1?p=e.split(y)[1]:e.indexOf(S)>-1&&(f===w||D[e]<v)&&(f=e.split(S)[1],v=D[e]))}),f=g?"Prefetch":f}var I=C._PerformanceLogger.getWebpartFlightsAndExperiments(a),x=this._getSyncRenderTime(p,r),E={alias:n.alias,isMultiGeo:u,isInternal:n.isInternal,isSpinnyShown:l,manifestId:n.id,moduleLoadTime:Math.floor(s-o),initTime:Math.floor(c-s),renderTime:Math.floor(d-c),syncRenderTime:x,scenarioId:C._PerformanceLogger.getScenarioId(),isFullPage:C._PerformanceLogger.fullPageLoad,dataProvider:f,layout:p,mySiteCacheHit:m,cacheMissReason:_,flights:I,storeAppId:n.storeAppId,mpnId:n.mpnId,componentDeveloperName:n.componentDeveloperName};return E.teamsHosted=t._BrowserUtilities.isTeamsHosted(),E},e._getSyncRenderTime=function(e,t){var n=void 0;n=Math.floor(t("syncRender")-t("getDataComplete"));var a=t("postRenderComplete"),i=t("loadLayoutEnd"),r=t("syncLayoutRenderComplete");return i&&r&&(n=Math.floor(n+(r-i))),a&&(n=Math.floor(n+(a-t(C._PerformanceDataDimensions.Layout+e)))),n},e._getCacheMissReason=function(e,t){if(e)return O.NotApplicable;var n=!!t("CacheMissConfigMismatch"),a=!!t("LateFlush"),i=!!t("CachedWebPartNotFound"),r=!!t("CacheExpired"),o=O.NotSpecified;return n?o=O.CacheConfigMissmatch:a?o=O.LateFlush:i?o=O.CachedItemNotFound:r&&(o=O.CacheExpired),o},e}(),A=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(){var e=this;if(this._teamsAppsClient)return Promise.resolve(this._teamsAppsClient);if(!this._teamsAppsClientPromise){var t=new n._QosMonitor("DeferredTeamsAppsClient.LoadTeamsAppClient");this._teamsAppsClientPromise=p.e(216).then(p.bind(p,165)).then(function(n){var a=n.TeamsAppsClient;return e._teamsAppsClient=new a(e._serviceScope),t.writeSuccess(),e._teamsAppsClient}).catch(function(e){throw t.writeUnexpectedFailure(void 0,e),e})}return this._teamsAppsClientPromise},e.serviceKey=t.ServiceKey.create("sp-teams-apps-client",e),e}()})(),g})())})();
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var e=document.currentScript;define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0",["@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-page-context","@microsoft/sp-http","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","tslib","@msinternal/sp-safehtml","@microsoft/load-themed-styles","@msinternal/sp-telemetry"],(t,n,a,i,r,o,s,c,d,l)=>(()=>{"use strict";var u={620(e,t,n){n.d(t,{T:()=>i,X:()=>r});var a=n(676);function i(){return a._SPFlight.isEnabled(60693)}function r(){return a._SPFlight.isEnabled(61389)}}
|
|
2
|
-
,424(e){e.exports=d},676(e){e.exports=t},207(e){e.exports=n},745(e){e.exports=r},909(e){e.exports=i},529(e){e.exports=o},408(e){e.exports=a},356(e){e.exports=c},519(e){e.exports=l},280(e){e.exports=s}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.m=u;var m,_,h,b={"216":"ItiCNEo6u598sS77caTV4VWnB9NzmexxYHb8FGw9shs=","386":"erqo32fHn8B4mAXDqiYeIv0N90dIkyQUlVD/4Fs4wQU="};p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce((t,n)=>(p.f[n](e,t),t),[])),p.u=e=>"chunk."+{216:"teams-apps-client",386:"legacy-third-party-fabric-core-localfont"}[e]+"_none_"+{216:"ec71ee12401904fb0e56",386:"c38e57aa65600ec0e403"}[e]+".js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},_="467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0:",p.l=(e,t,n,a)=>{if(m[e])m[e].push(t);else{var i,r;if(void 0!==n)for(var o=document.getElementsByTagName("script"),s=0;s<o.length;s++){var c=o[s];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==_+n){i=c;break}}if(!i){r=!0,(i=document.createElement("script")).charset="utf-8",p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",_+n),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous");var d=function(e){return"sha256-"+(b[e]||"Missing+Integrity+Hash+For+Script+Aborting=")}(a);d&&(i.integrity=d)}m[e]=[t];var l=(t,n)=>{i.onerror=i.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),t)return t(n)},u=setTimeout(l.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=l.bind(null,i.onerror),i.onload=l.bind(null,i.onload),r&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h=e?e.src:"",p.p=h.slice(0,h.lastIndexOf("/")+1),(()=>{var e={826:0};p.f.j=(t,n)=>{var a=p.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var i=new Promise((n,i)=>a=e[t]=[n,i]);n.push(a[2]=i);var r=p.p+p.u(t),o=new Error;p.l(r,n=>{if(p.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",o.name="ChunkLoadError",o.type=i,o.request=r,a[1](o)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,i,[r,o,s]=n,c=0;if(r.some(t=>0!==e[t])){for(a in o)p.o(o,a)&&(p.m[a]=o[a]);s&&s(p)}for(t&&t(n);c<r.length;c++)i=r[c],p.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]=self["webpackJsonp_467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.23.0"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var g={};return(()=>{p.r(g),p.d(g,{BaseComponent:()=>e,BaseComponentContext:()=>u,DynamicDataProvider:()=>s,DynamicDataSourceManager:()=>l,DynamicProperty:()=>f,ThemeChangedEventArgs:()=>y,ThemeProvider:()=>S,_CacheMissReason:()=>O,_DeferredTeamsAppsClient:()=>A,_LegacyThirdPartyFabricCoreLoader:()=>m,_PropertyMetadataProcessor:()=>b,_ServerProcessedDataType:()=>v,_ShimmerFactory:()=>D,_WebPartLoadDataCollector:()=>E,_ensureIsolatedDomainUrl:()=>x});const e=function(){function e(){this._isWebPartAndContainsDynamicDataSource=!1,this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return"".concat(this.manifest.componentType,".").concat(this.manifest.id,".").concat(this.instanceId)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this.onDispose(),this.context.dispose(),delete this.context,this._isDisposed=!0)},Object.defineProperty(e.prototype,"_containsDynamicDataSource",{get:function(){return this._isWebPartAndContainsDynamicDataSource},set:function(e){this._isWebPartAndContainsDynamicDataSource="WebPart"===this.manifest.componentType&&e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manifest",{get:function(){return this.context.manifest},enumerable:!1,configurable:!0}),e.prototype.onDispose=function(){},Object.defineProperty(e.prototype,"instanceId",{get:function(){return this.context.instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentId",{get:function(){return this.context.manifest.id},enumerable:!1,configurable:!0}),e.prototype._initializeContext=function(e){this.context=e,this.onProvideServices(e.serviceScope),e.serviceScope._isFinished||e.serviceScope.finish(),this.context._initializeDynamicData(this,e.serviceScope)},e.prototype.onProvideServices=function(e){},e}();var t=p(676),n=p(207),a=p(408),i=p(909),r=p(745),o=p(529);const s=function(){function e(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return e.prototype._initialize=function(e,n){t.Validate.isNotNullOrUndefined(e,"component"),t.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=e,this._pendingRegistrations=new Map,this._dynamicDataManager=n.consume(r._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0,this._onSourcesChanged=this._onSourcesChanged.bind(this)},e.prototype.dispose=function(){this._isDisposed||(delete this._pendingRegistrations,this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_isProviderInitialized",{get:function(){return this._isInitialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return this._component._dynamicDataSourceId},enumerable:!1,configurable:!0}),e.prototype.registerSourceChanged=function(e,n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerSourceChanged(e,this._component,n),this._logFeatureEntry("RegisterSourceChanged",{sourceId:e})):this._addPendingRegistration({id:e,callback:n})},e.prototype.unregisterSourceChanged=function(e,n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNotNullOrUndefined(n,"callback");var a={id:e,callback:n};this._isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterSourceChanged(e,this._component,n),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:e}))},e.prototype.registerPropertyChanged=function(e,n,a){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNonemptyString(n,"propertyId"),t.Validate.isNotNullOrUndefined(a,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerPropertyChanged(e,n,this._component,a),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:e,propertyId:n})):this._addPendingRegistration({id:e,propertyId:n,callback:a})},e.prototype.unregisterPropertyChanged=function(e,n,a){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNonemptyString(e,"sourceId"),t.Validate.isNonemptyString(n,"propertyId"),t.Validate.isNotNullOrUndefined(a,"callback");var i={id:e,callback:a,propertyId:n};this._isRegistrationPending(i)?this._removePendingRegistration(i):(this._dynamicDataManager.unregisterPropertyChanged(e,n,this._component,a),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:e,propertyId:n}))},e.prototype.registerAvailableSourcesChanged=function(e){t.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,e)},e.prototype.unregisterAvailableSourcesChanged=function(e){t.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.remove(this._component,e)},e.prototype.getAvailableSources=function(){return this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.getSources()},e.prototype.getAvailableSourcesByComponentId=function(e){this._assertNotDisposed(),this._assertInitialized();var n=[];return this._dynamicDataManager.getSources().forEach(function(a){e.equals(t.Guid.tryParse(a.metadata.componentId)||t.Guid.empty)&&n.push(a)}),n},e.prototype.tryGetSource=function(e){return this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNotNullOrUndefined(e,"id"),this._dynamicDataManager.tryGetSource(e)},e.prototype._getData=function(n){this._assertNotDisposed(),this._assertInitialized(),t.Validate.isNotNullOrUndefined(n,"dataReference");var a=this._dynamicDataManager.tryGetSource(n.sourceId);if(a){var i=a.getPropertyValue(n.property);return i&&n.propertyPath&&n.propertyPath.split(".").forEach(function(t){var n=t.split(e._jsonPathArrayRegex),a=n[0];if(i)if(Array.isArray(i)){var r=[];i.forEach(function(e){e.hasOwnProperty(a)&&r.push(e[a])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}i=isNaN(parseInt(o,10))?r:r[o]}else i=i.hasOwnProperty(a)?i[a]:void 0}),i}},e.prototype._onSourcesChanged=function(){var e=this,t=this.getAvailableSources().map(function(e){return e.id});this._pendingRegistrations.forEach(function(n){-1!==t.indexOf(n.id)&&(n.propertyId?(e._dynamicDataManager.registerPropertyChanged(n.id,n.propertyId,e._component,n.callback),e._logFeatureEntry("RegisterPropertyChanged",{sourceId:n.id,propertyId:n.propertyId})):(e._dynamicDataManager.registerSourceChanged(n.id,e._component,n.callback),e._logFeatureEntry("RegisterSourceChanged",{sourceId:n.id})),e._removePendingRegistration(n))})},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error("Dynamic Data Provider has been disposed")},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error("Dynamic Data Provider has not been initialized.")},e.prototype._addPendingRegistration=function(e){this._isRegistrationPending(e)||this._pendingRegistrations.set(e.id+(e.propertyId||""),{id:e.id,propertyId:e.propertyId,callback:e.callback}),this._isSourcesChangedEventListenerAdded||(this._dynamicDataManager.sourcesChangedEvent.add(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!0)},e.prototype._removePendingRegistration=function(e){this._pendingRegistrations.delete(e.id+(e.propertyId||"")),0===this._pendingRegistrations.size&&(this._dynamicDataManager.sourcesChangedEvent.remove(this._component,this._onSourcesChanged),this._isSourcesChangedEventListenerAdded=!1)},e.prototype._isRegistrationPending=function(e){return this._pendingRegistrations.has(e.id+(e.propertyId||""))},e.prototype._logFeatureEntry=function(e,t){var a=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:a.toString()},r=new n._LogEntry("DynamicDataProvider",e,n._LogType.Event,o.merge(i,t));n._EngagementLogger.logEventWithLogEntry(r)},e._jsonPathArrayRegex=new RegExp(/\[|\]/),e}();var c=p(280);const d=JSON.parse('{"lw":"Source has already been initialized.","Yt":"\\u0022sendEvent()\\u0022 must be defined, when the \\u0022allowedEvents()\\u0022 returns a non-empty value.","C3":"Dynamic Data Source Manager has been disposed.","ad":"Dynamic Data Source Manager has not been initialized.","fT":"Dynamic Data Source has not been initialized.","Qm":"\\u0022{0}\\u0022 event is not allowed on the source \\u0022{1}\\u0022"}'),l=function(){function e(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=n._LogSource.create("DynamicDataSourceManager")}return e.prototype._initialize=function(e,n){t.Validate.isNotNullOrUndefined(e,"component"),t.Validate.isNotNullOrUndefined(n,"serviceScope"),this._component=e,this._dynamicDataManager=n.consume(r._DynamicDataUtilities.IDynamicDataManagerServiceKey),this._isInitialized=!0},e.prototype.dispose=function(){this._isDisposed||(this._src&&(this._dynamicDataManager.removeSource(this._src.id),delete this._src),delete this._dynamicDataManager,delete this._component,this._isInitialized=!1,this._isDisposed=!0)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_source",{get:function(){return this._src},enumerable:!1,configurable:!0}),e.prototype.initializeSource=function(e){if(this._assertNotDisposed(),this._assertInitialized(),this._src)throw new Error(d.lw);this._callableFunctions=e,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),t._SPKillSwitch.isActivated("bbd78e03-ff18-40ed-9a94-973fc659366c")||(this._component._containsDynamicDataSource=!0),this._logFeatureEntry("DynamicDataSourceInitialized",{sourceId:this._src.id})},e.prototype.notifySourceChanged=function(){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifySourceChanged(this._src.id)},e.prototype.notifyPropertyChanged=function(e){t.Validate.isNonemptyString(e,"propertyId"),this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),this._dynamicDataManager.notifyPropertyChanged(this._src.id,e)},e.prototype.updateMetadata=function(e){this._assertNotDisposed(),this._assertInitialized(),this._assertSourceExists(),t.Validate.isNotNullOrUndefined(e,"metadata"),e.alias=void 0,e.componentId=void 0,e.instanceId=void 0,(0,o.merge)(this._src.metadata,e)},Object.defineProperty(e.prototype,"sourceId",{get:function(){return this._src?this._src.id:""},enumerable:!1,configurable:!0}),e.prototype._buildSource=function(e){if(this._callableFunctions.allowedEvents&&this._callableFunctions.allowedEvents.length>0&&!this._callableFunctions.sendEvent)throw new Error(d.Yt);return{id:this._component._dynamicDataSourceId,metadata:this._buildMetadata(e),getPropertyDefinitions:this._getPropertyDefinitions.bind(this),getPropertyValue:this._getPropertyValue.bind(this),getAnnotatedPropertyValue:this._getAnnotatedPropertyValue.bind(this),getPropertyDefinitionsAsync:this._getPropertyDefinitionsAsync.bind(this),getPropertyValueAsync:this._getPropertyValueAsync.bind(this),getAnnotatedPropertyValueAsync:this._getAnnotatedPropertyValueAsync.bind(this),allowedEventsAsync:this._allowedEventsAsync.bind(this),sendEvent:this._sendEvent.bind(this)}},e.prototype._allowedEvents=function(){return this._callableFunctions.allowedEvents?(0,o.cloneDeep)(this._callableFunctions.allowedEvents()):void 0},e.prototype._sendEvent=function(e,t){this._assertValidEvent(e),this._callableFunctions.sendEvent(e,t)},e.prototype._getPropertyDefinitions=function(){return(0,o.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},e.prototype._getPropertyValue=function(e){t.Validate.isNotNullOrUndefined(e,"propertyId");var a=new n._QosMonitor("DynamicDataSourceManager._getPropertyValue"),i=e.split(s._jsonPathArrayRegex);try{var r=this._callableFunctions.getPropertyValue(i.shift());if(i.length>0&&!isNaN(parseInt(i[0],10))&&Array.isArray(r)&&(r=r[i[0]]),void 0===r&&0===this._callableFunctions.getPropertyDefinitions().filter(function(t){return t.id===e}).length&&this._src)throw new Error('Property "'.concat(e,'" doesn\'t exist in source "').concat(this._src.metadata.title,'"'));return a.writeSuccess((0,c.__assign)((0,c.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyId:e})),(0,o.cloneDeep)(r)}catch(t){return a.writeUnexpectedFailure("NoPropertyId",t,{propertyId:e}),void n._TraceLogger.logErrorData({source:this._logSource,error:t})}},e.prototype._getPropertyDefinitionsAsync=function(){return Promise.resolve(this._getPropertyDefinitions())},e.prototype._getPropertyValueAsync=function(e){return Promise.resolve(this._getPropertyValue(e))},e.prototype._allowedEventsAsync=function(){return Promise.resolve(this._allowedEvents())},e.prototype._getAnnotatedPropertyValue=function(e){t.Validate.isNotNullOrUndefined(e,"propertyId");var a,i=new n._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var r=e.split(s._jsonPathArrayRegex);try{a=this._callableFunctions.getAnnotatedPropertyValue(r.shift()),r.length>0&&!isNaN(parseInt(r[0],10))&&Array.isArray(a)&&(a=a[r[0]]),i.writeSuccess((0,c.__assign)((0,c.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:a,propertyId:e}))}catch(e){i.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:a}),n._TraceLogger.logErrorData({source:this._logSource,error:e}),a=void 0}}return a||(a={sampleValue:this._getPropertyValue(e),metadata:void 0}),a},e.prototype._getAnnotatedPropertyValueAsync=function(e){return Promise.resolve(this._getAnnotatedPropertyValue(e))},e.prototype._buildMetadata=function(e){var t={title:e.manifest.alias,alias:e.manifest.alias,componentId:e.componentId,instanceId:e.instanceId},n=e;return n.title&&(t.title=n.title),n.description&&(t.description=n.description),t},e.prototype._assertValidEvent=function(e){if(!this._allowedEvents()||-1===(0,o.findIndex)(this._allowedEvents(),{name:e}))throw new Error(t.Text.format(d.Qm,e,this._src.metadata.title))},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(d.C3)},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(d.ad)},e.prototype._assertSourceExists=function(){if(!this._src)throw new Error(d.fT)},e.prototype._logFeatureEntry=function(e,t){var a=this._component.manifest.isInternal||!1,i={alias:this._component.manifest.alias,isInternal:a.toString()},r=new n._LogEntry("DynamicDataSourceManager",e,n._LogType.Event,o.merge(i,t));n._EngagementLogger.logEventWithLogEntry(r)},e}(),u=function(){function e(e){var r=this;this._isDisposed=!1,this._isServedFromLocalhost=!1,t.Validate.isNotNullOrUndefined(e,"parameters"),t.Validate.isNotNullOrUndefined(e.manifest,"manifest"),this.manifest=e.manifest;var o=this.manifest.loaderConfig;o&&o.internalModuleBaseUrls&&o.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(o.internalModuleBaseUrls[0])),t.Validate.isNotNullOrUndefined(e.parentServiceScope,"parentServiceScope"),this._serviceScope=e.parentServiceScope.startNewChild(),t.Validate.isNotNullOrUndefined(e.loggingTag,"loggingTag"),this.serviceScope.provide(n._logSourceServiceKey,n._LogSource.create(e.loggingTag)),t.Validate.isNonemptyString(e.instanceId,"instanceId"),this._instanceId=e.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(i.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(i.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(i.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(i.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(i.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(t._ClientManifestData.serviceKey,new t._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){r._pageContext=r.serviceScope.consume(a.PageContext.serviceKey)}),this._dynamicDataProvider=new s,this._dynamicDataSourceManager=new l}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._isDisposed||(this._dynamicDataProvider&&this._dynamicDataProvider.dispose(),this._dynamicDataSourceManager&&this._dynamicDataSourceManager.dispose(),delete this._serviceScope,delete this._pageContext,delete this._dynamicDataProvider,delete this._dynamicDataSourceManager,this._isDisposed=!0)},Object.defineProperty(e.prototype,"serviceScope",{get:function(){return this._serviceScope},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceId",{get:function(){return this._instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageContext",{get:function(){return this._pageContext},enumerable:!1,configurable:!0}),e.prototype._initializeDynamicData=function(e,t){this._dynamicDataProvider._initialize(e,t),this._dynamicDataSourceManager._initialize(e,t)},Object.defineProperty(e.prototype,"dynamicDataProvider",{get:function(){return this._dynamicDataProvider},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dynamicDataSourceManager",{get:function(){return this._dynamicDataSourceManager},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"aadHttpClientFactory",{get:function(){return this._aadClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"aadTokenProviderFactory",{get:function(){return this._aadTokenFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msGraphClientFactory",{get:function(){return this._msGraphClientFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpClient",{get:function(){return this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spHttpClient",{get:function(){return this._spHttpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isServedFromLocalhost",{get:function(){return this._isServedFromLocalhost},enumerable:!1,configurable:!0}),e}(),f=function(){function e(n,a){this._hasValue=!1,this._isDisposed=!1,t.Validate.isNotNullOrUndefined(n,"provider"),this.__type=e._TYPE_NAME,this._provider=n,this._callbacks=new Set,this._pendingCallbacks=new Set,a?(this._pendingCallbacks.add(a),this._defaultCallback=a):this._defaultCallback=void 0,this._onSourcesChanged=this._onSourcesChangedCallback.bind(this),this._cloneDeep=this._cloneDeep.bind(this),this._provider.registerAvailableSourcesChanged(this._onSourcesChanged)}return e.prototype.setReference=function(e){var n=this;t.Validate.isNonemptyString(e,"id"),this._value=void 0,this._hasValue=!1;var a=new Set;this._callbacks.forEach(function(e){return a.add(e)}),this._callbacks.forEach(function(e){return n.unregister(e)}),this._reference=new r.DynamicDataReference(e),this._sourceId=this._getSourceId(),a.forEach(function(e){return n.register(e)}),this._onSourcesChangedCallback()},e.prototype.setValue=function(e){var t=this,n=this._callbacks;n.forEach(function(e){return t.unregister(e)}),this._value=e,this._reference=void 0,this._sourceId=void 0,this._hasValue=!0,n.forEach(function(e){return t.register(e)})},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){var e=this;this._isDisposed||(this._provider.unregisterAvailableSourcesChanged(this._onSourcesChanged),this._defaultCallback&&(this.unregister(this._defaultCallback),delete this._defaultCallback),this._callbacks.forEach(function(t){return e.unregister(t)}),delete this._callbacks,delete this._onSourcesChanged,delete this._pendingCallbacks,delete this._provider,delete this._reference,delete this._sourceId,this._isDisposed=!0)},e.prototype.toJSON=function(){return this._hasValue?{__type:e._TYPE_NAME,value:this._value}:{__type:e._TYPE_NAME,reference:this._reference}},Object.defineProperty(e.prototype,"reference",{get:function(){return this._hasValue?void 0:this._reference.reference},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.tryGetValue=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){t.Validate.isNotDisposed(this,"DynamicData");var e=this._getData();return Array.isArray(e)&&(e=e[0]),e}},e.prototype.tryGetValues=function(){var e=this._getData();return e?Array.isArray(e)||(e=[e]):e=[],e},e.prototype.tryGetSource=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3"))return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},e.prototype.register=function(e){t.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)?(this._provider.registerPropertyChanged(this._sourceId,this._getPropertyToRegister(),e),this._callbacks.add(e)):this._pendingCallbacks.add(e)},e.prototype.unregister=function(e){t.Validate.isNotDisposed(this,"DynamicData"),!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)&&this._provider.unregisterPropertyChanged(this._sourceId,this._getPropertyToRegister(),e),this._pendingCallbacks.delete(e),this._callbacks.delete(e)},e.prototype.hasDefaultCallback=function(){return!!this._defaultCallback},e.prototype.removeDefaultCallback=function(){this._defaultCallback&&(this.unregister(this._defaultCallback),this._defaultCallback=void 0)},e.prototype._getSourceId=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},e.prototype._getProperty=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},e.prototype._getPropertyPath=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},e.prototype._cloneDeep=function(e){return o.cloneDeepWith(e,function(e){if(e instanceof s)return e})},e.prototype._getPropertyToRegister=function(){return t.Validate.isNotDisposed(this,"DynamicData"),this._getProperty().split(e._arrayRegex)[0]},e.prototype._onSourcesChangedCallback=function(){var e=this;if(!this._hasValue&&this._sourceId&&this._provider.tryGetSource(this._sourceId)){var t=this._pendingCallbacks;this._pendingCallbacks=new Set,t.forEach(function(t){e.register(t),t()})}},e.prototype._getData=function(){if(!this.isDisposed||t._SPKillSwitch.isActivated("413769dc-5e0c-4609-9c86-bdf099fe84e3")){var e;t.Validate.isNotDisposed(this,"DynamicData");try{e=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw n._EngagementLogger.logEventWithLogEntry(e),e}return n._EngagementLogger.logEventWithLogEntry(new n._LogEntry("DynamicData","getData",n._LogType.Event,{value:JSON.stringify(this.value)})),e}},e._TYPE_NAME="DynamicProperty",e._arrayRegex=new RegExp(/\[\*\]$/),e}(),m=function(){function e(){}return e.load=function(t){return t||e._isLoaded?Promise.resolve():p.e(386).then(p.bind(p,521)).then(function(){e._isLoaded=!0})},e.forceLoad=function(t){try{return e._shouldLoad(t)?p.e(386).then(p.bind(p,521)).then(function(){e._isLoaded=!0}):Promise.resolve()}catch(e){return Promise.reject(e)}},e.needLegacyFabricCss=function(e){if(e.isInternal)return!1;if(void 0===e.loadLegacyFabricCss){var n=t.Version._tryParseSPFxVersion(e);return!n||n.lessThan(t.Version.parse("1.8.2"))}return e.loadLegacyFabricCss},e._shouldLoad=function(t){return!e._isLoaded&&e.needLegacyFabricCss(t)},e._isLoaded=!1,e}();var _=p(620),h=p(356),b=function(){function e(){}return e.serializeServerProcessedData=function(e,n,a){var i=this;this._forEachPropertyWithMetaData(e,n,function(e,r,s){r.shouldNotPersist&&o.set(n,e,void 0);var c=e,d=o.get(n,e);if(a&&"string"==typeof d&&d){if(a.htmlStrings&&r.isHtmlString?a.htmlStrings[c]=d:a.searchablePlainTexts&&r.isSearchablePlainText?a.searchablePlainTexts[c]=d:a.links&&r.isLink?a.links[c]=d:a.imageSources&&r.isImageSource?a.imageSources[c]=d:r.isComponentDependency&&(a.componentDependencies||(a.componentDependencies={}),a.componentDependencies[c]=d),r.customMetadata){var l={};if(r&&r.customMetadata)for(var u=function(e,c){var d=c;void 0!==s&&-1!==d.indexOf("*")&&(d=d.replace("*",s.toString())),i._validateAndIteratePath(d,n,function(i,s){if(void 0===s&&r.customMetadata){var c=o.get(n,i);a&&void 0!==c&&(t._SPKillSwitch.isActivated("bf085c27-422d-4b62-a93a-43efa89e77ee")?l[i]=c:l[e]=c)}})},f=0,p=Object.entries(r.customMetadata);f<p.length;f++){var m=p[f];u(m[0],m[1])}a.customMetadata||(a.customMetadata={}),a.customMetadata[c]=l}o.set(n,e,void 0)}})},e.reInstateServerProcessedData=function(e,a,i,r){var s=this,c=new Set;if(r&&this._forEachPropertyWithMetaData(e,a,function(e,i){if((0,_.X)()){if("b7dd04e1-19ce-4b24-9132-b60a1c2b910d"===r.id&&t._SPKillSwitch.isActivated("71b68bd4-eb7a-4330-93bd-dc6d382123c1"))return;var d=o.get(a,e);if(void 0!==d){var l=new n._QosMonitor("PropertyMetadataProcessor.clearMetadataValue");if(i.isLink&&(c.add(e),s._isSafeLink(d)||(l.writeUnexpectedFailure("ClearingLinkProperty",new Error(e)),o.set(a,e,void 0))),i.isHtmlString){c.add(e);var u=s._getSafeHtml(d);u!==d&&(l.writeUnexpectedFailure("SettingSafeHtml",new Error(e)),o.set(a,e,u))}l.hasEnded||l.writeSuccess()}}else"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==r.id&&i.isHtmlString&&o.set(a,e,void 0)}),i)for(var d=0,l=[i.htmlStrings,i.searchablePlainTexts,i.imageSources,i.links,i.componentDependencies];d<l.length;d++){var u=l[d];if(u)for(var f=0,p=Object.entries(u);f<p.length;f++){var m=p[f],h=m[0],b=m[1];"string"==typeof b&&(o.set(a,h,b),(0,_.X)()&&c.delete(h))}}(0,_.X)()&&r&&c.size>0&&new n._QosMonitor("PropertyMetadataProcessor.serverProcessedContentMissing").writeUnexpectedFailure("Missing Content",void 0,{manifest:r.id,properties:Array.from(c).join(",")})},e._isSafeLink=function(e){try{var t=new URL(e);return h.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(n){try{return t=new URL(e,window.location.origin),h.SafeHtml.isSafeLinkProtocol(t.protocol)}catch(e){return!1}}},e._getSafeHtml=function(e){return h.SafeHtml.clean(e)},e._forEachPropertyWithMetaData=function(e,t,n){if(e)for(var a=function(e,a){i._validateAndIteratePath(e,t,function(e,t){n(e,a,t)})},i=this,r=0,o=Object.entries(e);r<o.length;r++){var s=o[r];a(s[0],s[1])}},e._validateAndIteratePath=function(e,t,n){var a=(e.match(/\*/g)||[]).length;if(a>1)console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(e,"' got ignored in the properties metadata."));else if(1===a){var i=e.indexOf("[*]");if(i<-1)return void console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(e,"' got ignored in the properties metadata."));var r=e.substr(0,i),s=o.get(t,r);if(!s)return void console.warn("Invalid property path: Could not find an array named '".concat(r,"' in the properties.\nEntry with path '").concat(e,"' got ignored in the properties metadata."));for(var c=0;c<s.length;c++)n(e.replace("*","".concat(c)),c)}else n(e)},e}(),v={htmlString:1,link:2,imageSource:3,searchablePlainText:4},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,c.__extends)(t,e),t}(t.SPEventArgs),S=function(){function e(n,a,i){this._id=e._instanceCount++,this.themeChangedEvent=new t.SPEvent(this._themeChangedEventName),a&&(this._theme=Object.freeze(a)),i&&(this._themeV2=Object.freeze(i))}return Object.defineProperty(e.prototype,"_themeChangedEventName",{get:function(){return e._themeChangedEventNameLiteral+this._id},enumerable:!1,configurable:!0}),e.prototype._clearTheme=function(){this._theme=void 0,this._themeV2=void 0,this._raiseEvent()},e.prototype._setTheme=function(e,n){t.Validate.isNotNullOrUndefined(e,"theme"),this._theme=Object.freeze(e),n&&(this._themeV2=Object.freeze(n)),this._raiseEvent()},e.prototype.tryGetTheme=function(){return this._theme},e.prototype.tryGetThemeV2=function(){return this._themeV2},e.prototype._raiseEvent=function(){t._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme,themeV2:this._themeV2})},e.serviceKey=t.ServiceKey.create("sp-component-base.ThemeProvider",e),e._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",e._instanceCount=0,e}();p(424).loadStyles(".s_mwxHE_o5ljQ{background-color:transparent;height:100%;margin:5px;position:relative;width:100%}.s_bzcYC_o5ljQ{fill:#f4f4f4}",!0);const D=function(){function e(){}return e.createShimmer=function(t,n,a,i,r){void 0===r&&(r=void 0),t=t||100,n=n||100;var o=document.createElement("div");o.className="s_mwxHE_o5ljQ";var s=document.createElement("div"),c=.9*n/9,d=2*(c=Math.min(16,c)),l=c,u=l+d,f=u+d,p=f+d,m="s_bzcYC_o5ljQ";s.innerHTML="<svg width=".concat(t," height=").concat(n,' viewBox="0 0 ').concat(t," ").concat(n,'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>').concat(i,"</title>\n <g id=").concat(a,'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width=').concat(t," height=").concat(n,"></rect>\n ").concat(e._shimmerRect(a+"_1",m,8,l,20,c),"\n ").concat(e._shimmerRect(a+"_2",m,8,u,40,c),"\n ").concat(e._shimmerRect(a+"_3",m,8,f,90,c),"\n ").concat(e._shimmerRect(a+"_4",m,8,p,80,c),"\n </g>\n </svg>"),void 0!==r&&(o.style.margin=r+""),o.appendChild(s);var _=document.createElement("div");return _.setAttribute("role","status"),_.setAttribute("aria-live","polite"),o.appendChild(_),o},e._shimmerRect=function(e,t,n,a,i,r){return"<rect id=".concat(e," class=").concat(t," x=").concat(n," y=").concat(a,' width="').concat(i,'%" height=').concat(r,'>\n <animate\n attributeName="opacity"\n dur="1s"\n values="0.2;0.5;0.9"\n repeatCount="indefinite"\n begin="0"/>\n </rect>')},e}();var I=new RegExp("^https://[^/]*/");function x(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(I,"https://".concat(e,"/")),n&&(t=t.substr(0,t.length-1)),t}var C=p(519),O={CacheConfigMissmatch:"CacheConfigMissmatch",LateFlush:"LateFlush",CachedItemNotFound:"CachedItemNotFound",CacheExpired:"CacheExpired",NotSpecified:"NotSpecified",NotApplicable:"N/A"},w="N/A",E=function(){function e(){}return e.collect=function(n,a,i){var r=function(e){return C._PerformanceLogger.readComponentBreakdown(a,e)||C._PerformanceLogger.readTempData("".concat(a,".").concat(e))},o=r("start"),s=r("modulesLoaded"),c=r("init"),d=r("end"),l=!!r("displaySpinner"),u=Boolean(i&&i.legacyPageContext&&i.legacyPageContext.isMultiGeoTenant),f=w,p=w,m="N/A",_=O.NotApplicable;if(n.isInternal){var h=r("CacheHit"),b=r("CacheMiss"),g=r("prefetchedData");m=Boolean(h||b)?h?"true":"false":"N/A",_=e._getCacheMissReason(h,r);var v=C._PerformanceLogger.now(),y=C._PerformanceDataDimensions.Layout,S=C._PerformanceDataDimensions.DataProvider,D=C._PerformanceLogger.readFullEUPLBreakDown();Object.keys(D).forEach(function(e){e.indexOf(a)>-1&&(p===w&&e.indexOf(y)>-1?p=e.split(y)[1]:e.indexOf(S)>-1&&(f===w||D[e]<v)&&(f=e.split(S)[1],v=D[e]))}),f=g?"Prefetch":f}var I=C._PerformanceLogger.getWebpartFlightsAndExperiments(a),x=this._getSyncRenderTime(p,r),E={alias:n.alias,isMultiGeo:u,isInternal:n.isInternal,isSpinnyShown:l,manifestId:n.id,moduleLoadTime:Math.floor(s-o),initTime:Math.floor(c-s),renderTime:Math.floor(d-c),syncRenderTime:x,scenarioId:C._PerformanceLogger.getScenarioId(),isFullPage:C._PerformanceLogger.fullPageLoad,dataProvider:f,layout:p,mySiteCacheHit:m,cacheMissReason:_,flights:I,storeAppId:n.storeAppId,mpnId:n.mpnId,componentDeveloperName:n.componentDeveloperName};return E.teamsHosted=t._BrowserUtilities.isTeamsHosted(),E},e._getSyncRenderTime=function(e,t){var n=void 0;n=Math.floor(t("syncRender")-t("getDataComplete"));var a=t("postRenderComplete"),i=t("loadLayoutEnd"),r=t("syncLayoutRenderComplete");return i&&r&&(n=Math.floor(n+(r-i))),a&&(n=Math.floor(n+(a-t(C._PerformanceDataDimensions.Layout+e)))),n},e._getCacheMissReason=function(e,t){if(e)return O.NotApplicable;var n=!!t("CacheMissConfigMismatch"),a=!!t("LateFlush"),i=!!t("CachedWebPartNotFound"),r=!!t("CacheExpired"),o=O.NotSpecified;return n?o=O.CacheConfigMissmatch:a?o=O.LateFlush:i?o=O.CachedItemNotFound:r&&(o=O.CacheExpired),o},e}(),A=function(){function e(e){this._serviceScope=e}return e.prototype.getClient=function(){var e=this;if(this._teamsAppsClient)return Promise.resolve(this._teamsAppsClient);if(!this._teamsAppsClientPromise){var t=new n._QosMonitor("DeferredTeamsAppsClient.LoadTeamsAppClient");this._teamsAppsClientPromise=p.e(216).then(p.bind(p,165)).then(function(n){var a=n.TeamsAppsClient;return e._teamsAppsClient=new a(e._serviceScope),t.writeSuccess(),e._teamsAppsClient}).catch(function(e){throw t.writeUnexpectedFailure(void 0,e),e})}return this._teamsAppsClientPromise},e.serviceKey=t.ServiceKey.create("sp-teams-apps-client",e),e}()})(),g})())})();
|