@microsoft/sp-component-base 1.13.0-rc.1 → 1.14.0-beta.5
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 +71 -71
- package/dist/{chunk.legacy-third-party-fabric-core-localfont_none_77e92166c848e6e59cf3.js → chunk.legacy-third-party-fabric-core-localfont_none_99c6fc3c6a2dea12779c.js} +1 -1
- package/dist/index-internal-beta.d.ts +5 -0
- package/dist/index-internal-public.d.ts +5 -0
- package/dist/index-internal.d.ts +5 -0
- package/dist/{sp-component-base_default_0e19476c15b788fbcf79.js → sp-component-base_default_f510dfc265b8222fa720.js} +1 -1
- package/dist/{sp-component-base_en-us_0e19476c15b788fbcf79.js → sp-component-base_en-us_f510dfc265b8222fa720.js} +1 -1
- package/dist/{sp-component-base_qps-ploc_0e19476c15b788fbcf79.js → sp-component-base_qps-ploc_f510dfc265b8222fa720.js} +1 -1
- package/dist/{sp-component-base_qps-ploca_0e19476c15b788fbcf79.js → sp-component-base_qps-ploca_f510dfc265b8222fa720.js} +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/BaseComponentContext.js +15 -0
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.13.0",["tslib","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/load-themed-styles","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,d=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&d.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(c&&c(t);d.length;)d.shift()()}var n={},a={1:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(e){var t=[],n=a[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,i){n=a[e]=[t,i]});t.push(n[2]=r);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+"chunk."+({0:"legacy-third-party-fabric-core-localfont"}[e]||e)+"_"+"none"+"_"+{0:"77e92166c848e6e59cf3"}[e]+".js"}(e),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var c=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(d);var n=a[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",c.name="ChunkLoadError",c.type=i,c.request=r,n[1](c)}a[e]=void 0}};var d=setTimeout(function(){o({type:"timeout",target:s})},12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp_467dc675_7cc5_4709_8aac_78e3b71bd2f6_1_13_0=window.webpackJsonp_467dc675_7cc5_4709_8aac_78e3b71bd2f6_1_13_0||[],o=r.push.bind(r);r.push=t,r=r.slice();for(var s=0;s<r.length;s++)t(r[s]);var c=o;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-component-base_qps-ploca_0e19476c15b788fbcf79\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"84nK":function(e,t){e.exports=a},Pk8u:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},"X+PM":function(e,t){e.exports=o},jOlS:function(e,t){e.exports=s},mGD9:function(e){e.exports=JSON.parse('{"r":"Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.","i":"\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.","t":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.","n":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","e":"Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","a":"\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022"}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"BaseComponent",function(){return a}),n.d(t,"BaseComponentContext",function(){return m}),n.d(t,"DynamicDataProvider",function(){return l}),n.d(t,"DynamicDataSourceManager",function(){return p}),n.d(t,"DynamicProperty",function(){return _}),n.d(t,"_LegacyThirdPartyFabricCoreLoader",function(){return h}),n.d(t,"_PropertyMetadataProcessor",function(){return b}),n.d(t,"ThemeChangedEventArgs",function(){return g}),n.d(t,"ThemeProvider",function(){return v}),n.d(t,"_ShimmerFactory",function(){return y}),n.d(t,"_ensureIsolatedDomainUrl",function(){return D});var a=function(){function e(){this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return this.manifest.componentType+"."+this.manifest.id+"."+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,"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}(),i=n("UWqr"),r=n("ut3N"),o=n("X+PM"),s=n("vlQI"),c=n("84nK"),d=n("Pk8u"),l=function(){function e(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return e.prototype._initialize=function(e,t){i.Validate.isNotNullOrUndefined(e,"component"),i.Validate.isNotNullOrUndefined(t,"serviceScope"),this._component=e,this._pendingRegistrations=new Map,this._dynamicDataManager=t.consume(c._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,t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNotNullOrUndefined(t,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerSourceChanged(e,this._component,t),this._logFeatureEntry("RegisterSourceChanged",{sourceId:e})):this._addPendingRegistration({id:e,callback:t})},e.prototype.unregisterSourceChanged=function(e,t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNotNullOrUndefined(t,"callback");var n={id:e,callback:t};this.isRegistrationPending(n)?this._removePendingRegistration(n):(this._dynamicDataManager.unregisterSourceChanged(e,this._component,t),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:e}))},e.prototype.registerPropertyChanged=function(e,t,n){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNonemptyString(t,"propertyId"),i.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerPropertyChanged(e,t,this._component,n),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:e,propertyId:t})):this._addPendingRegistration({id:e,propertyId:t,callback:n})},e.prototype.unregisterPropertyChanged=function(e,t,n){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNonemptyString(t,"propertyId"),i.Validate.isNotNullOrUndefined(n,"callback");var a={id:e,callback:n,propertyId:t};this.isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterPropertyChanged(e,t,this._component,n),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:e,propertyId:t}))},e.prototype.registerAvailableSourcesChanged=function(e){i.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,e)},e.prototype.unregisterAvailableSourcesChanged=function(e){i.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 t=[];return this._dynamicDataManager.getSources().forEach(function(n){e.equals(i.Guid.tryParse(n.metadata.componentId)||i.Guid.empty)&&t.push(n)}),t},e.prototype.tryGetSource=function(e){return this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNotNullOrUndefined(e,"id"),this._dynamicDataManager.tryGetSource(e)},e.prototype._getData=function(t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNotNullOrUndefined(t,"dataReference");var n=this._dynamicDataManager.tryGetSource(t.sourceId);if(n){var a=n.getPropertyValue(t.property);return a&&t.propertyPath&&t.propertyPath.split(".").forEach(function(t){var n=t.split(e._jsonPathArrayRegex),i=n[0];if(a)if(Array.isArray(a)){var r=[];a.forEach(function(e){e.hasOwnProperty(i)&&r.push(e[i])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}a=isNaN(parseInt(o,10))?r:r[o]}else a=a.hasOwnProperty(i)?a[i]:void 0}),a}},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 n=this._component.manifest.isInternal||!1,a={alias:this._component.manifest.alias,isInternal:n.toString()},i=new r._LogEntry("DynamicDataProvider",e,r._LogType.Event,d.merge(a,t));r._EngagementLogger.logEventWithLogEntry(i)},e._jsonPathArrayRegex=new RegExp(/\[|\]/),e}(),u=n("17wl"),f=n("mGD9"),p=function(){function e(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=r._LogSource.create("DynamicDataSourceManager")}return e.prototype._initialize=function(e,t){i.Validate.isNotNullOrUndefined(e,"component"),i.Validate.isNotNullOrUndefined(t,"serviceScope"),this._component=e,this._dynamicDataManager=t.consume(c._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(f.r);this._callableFunctions=e,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),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){i.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(),i.Validate.isNotNullOrUndefined(e,"metadata"),e.alias=void 0,e.componentId=void 0,e.instanceId=void 0,Object(d.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(f.i);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?Object(d.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 Object(d.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},e.prototype._getPropertyValue=function(e){i.Validate.isNotNullOrUndefined(e,"propertyId");var t=new r._QosMonitor("DynamicDataSourceManager._getPropertyValue"),n=e.split(l._jsonPathArrayRegex);try{var a=this._callableFunctions.getPropertyValue(n.shift());if(n.length>0&&!isNaN(parseInt(n[0],10))&&Array.isArray(a)&&(a=a[n[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(function(t){return t.id===e}).length&&this._src)throw new Error('Property "'+e+'" doesn\'t exist in source "'+this._src.metadata.title+'"');return t.writeSuccess(Object(u.__assign)(Object(u.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyValue:a,propertyId:e})),Object(d.cloneDeep)(a)}catch(n){return t.writeUnexpectedFailure("NoPropertyId",n,{propertyId:e}),void r._TraceLogger.logErrorData({source:this._logSource,error:n})}},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){i.Validate.isNotNullOrUndefined(e,"propertyId");var t,n=new r._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var a=e.split(l._jsonPathArrayRegex);try{t=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(t)&&(t=t[a[0]]),n.writeSuccess(Object(u.__assign)(Object(u.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:t,propertyId:e}))}catch(e){n.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:t}),r._TraceLogger.logErrorData({source:this._logSource,error:e}),t=void 0}}return t||(t={sampleValue:this._getPropertyValue(e),metadata:void 0}),t},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===Object(d.findIndex)(this._allowedEvents(),{name:e}))throw new Error(i.Text.format(f.a,e,this._src.metadata.title))},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(f.t)},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(f.n)},e.prototype._assertSourceExists=function(){if(!this._src)throw new Error(f.e)},e.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,a={alias:this._component.manifest.alias,isInternal:n.toString()},i=new r._LogEntry("DynamicDataSourceManager",e,r._LogType.Event,d.merge(a,t));r._EngagementLogger.logEventWithLogEntry(i)},e}(),m=function(){function e(e){var t=this;this._isDisposed=!1,i.Validate.isNotNullOrUndefined(e,"parameters"),i.Validate.isNotNullOrUndefined(e.manifest,"manifest"),this.manifest=e.manifest,i.Validate.isNotNullOrUndefined(e.parentServiceScope,"parentServiceScope"),this._serviceScope=e.parentServiceScope.startNewChild(),i.Validate.isNotNullOrUndefined(e.loggingTag,"loggingTag"),this.serviceScope.provide(r._logSourceServiceKey,r._LogSource.create(e.loggingTag)),i.Validate.isNonemptyString(e.instanceId,"instanceId"),this._instanceId=e.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(s.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(s.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(s.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(s.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(s.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(i._ClientManifestData.serviceKey,new i._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){t._pageContext=t.serviceScope.consume(o.PageContext.serviceKey)}),this._dynamicDataProvider=new l,this._dynamicDataSourceManager=new p}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}),e}(),_=function(){function e(t,n){this._hasValue=!1,this._isDisposed=!1,i.Validate.isNotNullOrUndefined(t,"provider"),this.__type=e._TYPE_NAME,this._provider=t,this._callbacks=new Set,this._pendingCallbacks=new Set,n?(this._pendingCallbacks.add(n),this._defaultCallback=n):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 t=this;i.Validate.isNonemptyString(e,"id"),this._value=void 0,this._hasValue=!1;var n=new Set;this._callbacks.forEach(function(e){return n.add(e)}),this._callbacks.forEach(function(e){return t.unregister(e)}),this._reference=new c.DynamicDataReference(e),this._sourceId=this._getSourceId(),n.forEach(function(e){return t.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(){i.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(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},e.prototype.register=function(e){i.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){i.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 i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},e.prototype._getProperty=function(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},e.prototype._getPropertyPath=function(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},e.prototype._cloneDeep=function(e){return d.cloneDeepWith(e,function(e){if(e instanceof l)return e})},e.prototype._getPropertyToRegister=function(){return i.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(){var e;i.Validate.isNotDisposed(this,"DynamicData");try{e=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw r._EngagementLogger.logEventWithLogEntry(e),e}return r._EngagementLogger.logEventWithLogEntry(new r._LogEntry("DynamicData","getData",r._LogType.Event,{value:JSON.stringify(this.value)})),e},e._TYPE_NAME="DynamicProperty",e._arrayRegex=new RegExp(/\[\*\]$/),e}(),h=function(){function e(){}return e.load=function(t){return t||e.isLoaded?Promise.resolve():n.e(0).then(n.bind(null,"TL+I")).then(function(){e.isLoaded=!0})},e.forceLoad=function(t){try{return e._shouldLoad(t)?n.e(0).then(n.bind(null,"TL+I")).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 t=i.Version._tryParseSPFxVersion(e);return!t||t.lessThan(i.Version.parse("1.8.2"))}return e.loadLegacyFabricCss},e._shouldLoad=function(t){return!e.isLoaded&&e.needLegacyFabricCss(t)},e.isLoaded=!1,e}(),b=function(){function e(){}return e.serializeServerProcessedData=function(e,t,n){var a=this;this._forEachPropertyWithMetaData(e,t,function(e,i,r){i.shouldNotPersist&&d.set(t,e,void 0);var o=e,s=d.get(t,e);if(n&&"string"==typeof s&&s){if(n.htmlStrings&&i.isHtmlString?n.htmlStrings[o]=s:n.searchablePlainTexts&&i.isSearchablePlainText?n.searchablePlainTexts[o]=s:n.links&&i.isLink?n.links[o]=s:n.imageSources&&i.isImageSource?n.imageSources[o]=s:i.isComponentDependency&&(n.componentDependencies||(n.componentDependencies={}),n.componentDependencies[o]=s),i.customMetadata){var c={};if(i&&i.customMetadata)for(var l in i.customMetadata){var u=i.customMetadata[l];void 0!==r&&-1!==u.indexOf("*")&&(u=u.replace("*",r.toString())),a._validateAndIteratePath(u,t,function(e,a){if(void 0===a&&i.customMetadata){var r=d.get(t,e);n&&void 0!==r&&(c[e]=r)}})}n.customMetadata||(n.customMetadata={}),n.customMetadata[o]=c}d.set(t,e,void 0)}})},e.reInstateServerProcessedData=function(e,t,n,a){if(a&&this._forEachPropertyWithMetaData(e,t,function(e,n){"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==a.id&&n.isHtmlString&&d.set(t,e,void 0)}),n)for(var i=0,r=[n.htmlStrings,n.searchablePlainTexts,n.imageSources,n.links,n.componentDependencies];i<r.length;i++){var o=r[i];if(o)for(var s in o){var c=o[s];"string"==typeof c&&d.set(t,s,c)}}},e._forEachPropertyWithMetaData=function(e,t,n){if(e){var a=function(a){var r=e[a];i._validateAndIteratePath(a,t,function(e,t){n(e,r,t)})},i=this;for(var r in e)a(r)}},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 '"+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 '"+e+"' got ignored in the properties metadata.");var r=e.substr(0,i),o=d.get(t,r);if(!o)return void console.warn("Invalid property path: Could not find an array named '"+r+"' in the properties.\nEntry with path '"+e+"' got ignored in the properties metadata.");for(var s=0;s<o.length;s++)n(e.replace("*",""+s),s)}else n(e)},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.__extends)(t,e),t}(i.SPEventArgs),v=function(){function e(t,n){this._id=e._instanceCount++,this.themeChangedEvent=new i.SPEvent(this._themeChangedEventName),n&&(this._theme=Object.freeze(n))}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._raiseEvent()},e.prototype._setTheme=function(e){i.Validate.isNotNullOrUndefined(e,"theme"),this._theme=Object.freeze(e),this._raiseEvent()},e.prototype.tryGetTheme=function(){return this._theme},e.prototype._raiseEvent=function(){i._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme})},e.serviceKey=i.ServiceKey.create("sp-component-base.ThemeProvider",e),e._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",e._instanceCount=0,e}();n("jOlS").loadStyles(".a_a_a3996340{position:relative;width:100%;margin:5px;height:100%;background-color:transparent}.b_a_a3996340{fill:#f4f4f4}",!0);var y=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="a_a_a3996340";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;s.innerHTML="<svg width="+t+" height="+n+' viewBox="0 0 '+t+" "+n+'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>'+i+"</title>\n <g id="+a+'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width='+t+" height="+n+"></rect>\n "+e._shimmerRect(a+"_1","b_a_a3996340",8,l,20,c)+"\n "+e._shimmerRect(a+"_2","b_a_a3996340",8,u,40,c)+"\n "+e._shimmerRect(a+"_3","b_a_a3996340",8,f,90,c)+"\n "+e._shimmerRect(a+"_4","b_a_a3996340",8,p,80,c)+"\n </g>\n </svg>",void 0!==r&&(o.style.margin=r+""),o.appendChild(s);var m=document.createElement("div");return m.setAttribute("role","status"),m.setAttribute("aria-live","polite"),o.appendChild(m),o},e._shimmerRect=function(e,t,n,a,i,r){return"<rect id="+e+" class="+t+" x="+n+" y="+a+' width="'+i+'%" height='+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}(),S=new RegExp("^https://[^/]*/");function D(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(S,"https://"+e+"/"),n&&(t=t.substr(0,t.length-1)),t}},ut3N:function(e,t){e.exports=c},vlQI:function(e,t){e.exports=d}})});
|
|
1
|
+
define("467dc675-7cc5-4709-8aac-78e3b71bd2f6_1.14.0",["tslib","@microsoft/sp-dynamic-data","@microsoft/sp-lodash-subset","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/load-themed-styles","@microsoft/sp-diagnostics","@microsoft/sp-http"],function(n,a,i,r,o,s,c,d){return function(e){function t(t){for(var n,i,r=t[0],o=t[1],s=0,d=[];s<r.length;s++)i=r[s],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&d.push(a[i][0]),a[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);for(c&&c(t);d.length;)d.shift()()}var n={},a={1:0};function i(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(e){var t=[],n=a[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,i){n=a[e]=[t,i]});t.push(n[2]=r);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+"chunk."+({0:"legacy-third-party-fabric-core-localfont"}[e]||e)+"_"+"none"+"_"+{0:"99c6fc3c6a2dea12779c"}[e]+".js"}(e),0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous");var c=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(d);var n=a[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",c.name="ChunkLoadError",c.type=i,c.request=r,n[1](c)}a[e]=void 0}};var d=setTimeout(function(){o({type:"timeout",target:s})},12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp_467dc675_7cc5_4709_8aac_78e3b71bd2f6_1_14_0=window.webpackJsonp_467dc675_7cc5_4709_8aac_78e3b71bd2f6_1_14_0||[],o=r.push.bind(r);r.push=t,r=r.slice();for(var s=0;s<r.length;s++)t(r[s]);var c=o;return function(){var e,t=document.getElementsByTagName("script"),n="undefined"!=typeof spScriptNamePattern?spScriptNamePattern:/sp-component-base_qps-ploca_f510dfc265b8222fa720\.js/i;if(t&&t.length)for(var a=0;a<t.length;a++)if(t[a]){var r=t[a].getAttribute("src");if(r&&r.match(n)){e=r.substring(0,r.lastIndexOf("/")+1);break}}if(!e)for(var o in window.__setWebpackPublicPathLoaderSrcRegistry__)if(o&&o.match(n)){e=o.substring(0,o.lastIndexOf("/")+1);break}i.p=e}(),i(i.s="mwqp")}({"17wl":function(e,t){e.exports=n},"84nK":function(e,t){e.exports=a},Pk8u:function(e,t){e.exports=i},UWqr:function(e,t){e.exports=r},"X+PM":function(e,t){e.exports=o},jOlS:function(e,t){e.exports=s},mGD9:function(e){e.exports=JSON.parse('{"r":"Śōũŕćē ĥàś àĺŕēàďŷ ƀēēń ĩńĩţĩàĺĩźēď.","i":"\\u0022śēńďĒvēńţ()\\u0022 mũśţ ƀē ďēƒĩńēď, ŵĥēń ţĥē \\u0022àĺĺōŵēďĒvēńţś()\\u0022 ŕēţũŕńś à ńōń-ēmƥţŷ vàĺũē.","t":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ƀēēń ďĩśƥōśēď.","n":"Ďŷńàmĩć Ďàţà Śōũŕćē Màńàĝēŕ ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","e":"Ďŷńàmĩć Ďàţà Śōũŕćē ĥàś ńōţ ƀēēń ĩńĩţĩàĺĩźēď.","a":"\\u0022{0}\\u0022 ēvēńţ ĩś ńōţ àĺĺōŵēď ōń ţĥē śōũŕćē \\u0022{1}\\u0022"}')},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"BaseComponent",function(){return a}),n.d(t,"BaseComponentContext",function(){return m}),n.d(t,"DynamicDataProvider",function(){return l}),n.d(t,"DynamicDataSourceManager",function(){return p}),n.d(t,"DynamicProperty",function(){return _}),n.d(t,"_LegacyThirdPartyFabricCoreLoader",function(){return h}),n.d(t,"_PropertyMetadataProcessor",function(){return b}),n.d(t,"ThemeChangedEventArgs",function(){return g}),n.d(t,"ThemeProvider",function(){return v}),n.d(t,"_ShimmerFactory",function(){return y}),n.d(t,"_ensureIsolatedDomainUrl",function(){return D});var a=function(){function e(){this._isDisposed=!1}return Object.defineProperty(e.prototype,"_dynamicDataSourceId",{get:function(){return this.manifest.componentType+"."+this.manifest.id+"."+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,"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}(),i=n("UWqr"),r=n("ut3N"),o=n("X+PM"),s=n("vlQI"),c=n("84nK"),d=n("Pk8u"),l=function(){function e(){this._isDisposed=!1,this._isInitialized=!1,this._isSourcesChangedEventListenerAdded=!1}return e.prototype._initialize=function(e,t){i.Validate.isNotNullOrUndefined(e,"component"),i.Validate.isNotNullOrUndefined(t,"serviceScope"),this._component=e,this._pendingRegistrations=new Map,this._dynamicDataManager=t.consume(c._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,t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNotNullOrUndefined(t,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerSourceChanged(e,this._component,t),this._logFeatureEntry("RegisterSourceChanged",{sourceId:e})):this._addPendingRegistration({id:e,callback:t})},e.prototype.unregisterSourceChanged=function(e,t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNotNullOrUndefined(t,"callback");var n={id:e,callback:t};this.isRegistrationPending(n)?this._removePendingRegistration(n):(this._dynamicDataManager.unregisterSourceChanged(e,this._component,t),this._logFeatureEntry("UnregisterSourceChanged",{sourceId:e}))},e.prototype.registerPropertyChanged=function(e,t,n){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNonemptyString(t,"propertyId"),i.Validate.isNotNullOrUndefined(n,"callback"),-1!==this.getAvailableSources().map(function(e){return e.id}).indexOf(e)?(this._dynamicDataManager.registerPropertyChanged(e,t,this._component,n),this._logFeatureEntry("RegisterPropertyChanged",{sourceId:e,propertyId:t})):this._addPendingRegistration({id:e,propertyId:t,callback:n})},e.prototype.unregisterPropertyChanged=function(e,t,n){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNonemptyString(e,"sourceId"),i.Validate.isNonemptyString(t,"propertyId"),i.Validate.isNotNullOrUndefined(n,"callback");var a={id:e,callback:n,propertyId:t};this.isRegistrationPending(a)?this._removePendingRegistration(a):(this._dynamicDataManager.unregisterPropertyChanged(e,t,this._component,n),this._logFeatureEntry("UnregisterPropertyChanged",{sourceId:e,propertyId:t}))},e.prototype.registerAvailableSourcesChanged=function(e){i.Validate.isNotNullOrUndefined(e,"callback"),this._assertNotDisposed(),this._assertInitialized(),this._dynamicDataManager.sourcesChangedEvent.add(this._component,e)},e.prototype.unregisterAvailableSourcesChanged=function(e){i.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 t=[];return this._dynamicDataManager.getSources().forEach(function(n){e.equals(i.Guid.tryParse(n.metadata.componentId)||i.Guid.empty)&&t.push(n)}),t},e.prototype.tryGetSource=function(e){return this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNotNullOrUndefined(e,"id"),this._dynamicDataManager.tryGetSource(e)},e.prototype._getData=function(t){this._assertNotDisposed(),this._assertInitialized(),i.Validate.isNotNullOrUndefined(t,"dataReference");var n=this._dynamicDataManager.tryGetSource(t.sourceId);if(n){var a=n.getPropertyValue(t.property);return a&&t.propertyPath&&t.propertyPath.split(".").forEach(function(t){var n=t.split(e._jsonPathArrayRegex),i=n[0];if(a)if(Array.isArray(a)){var r=[];a.forEach(function(e){e.hasOwnProperty(i)&&r.push(e[i])});var o=n[1];if(n.length>1){var s=[];r.forEach(function(e){e.forEach(function(e){return s.push(e)})}),r=s}a=isNaN(parseInt(o,10))?r:r[o]}else a=a.hasOwnProperty(i)?a[i]:void 0}),a}},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 n=this._component.manifest.isInternal||!1,a={alias:this._component.manifest.alias,isInternal:n.toString()},i=new r._LogEntry("DynamicDataProvider",e,r._LogType.Event,d.merge(a,t));r._EngagementLogger.logEventWithLogEntry(i)},e._jsonPathArrayRegex=new RegExp(/\[|\]/),e}(),u=n("17wl"),f=n("mGD9"),p=function(){function e(){this._src=void 0,this._isDisposed=!1,this._isInitialized=!1,this._logSource=r._LogSource.create("DynamicDataSourceManager")}return e.prototype._initialize=function(e,t){i.Validate.isNotNullOrUndefined(e,"component"),i.Validate.isNotNullOrUndefined(t,"serviceScope"),this._component=e,this._dynamicDataManager=t.consume(c._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(f.r);this._callableFunctions=e,this._src=this._buildSource(this._component),this._dynamicDataManager.addSource(this._src),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){i.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(),i.Validate.isNotNullOrUndefined(e,"metadata"),e.alias=void 0,e.componentId=void 0,e.instanceId=void 0,Object(d.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(f.i);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?Object(d.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 Object(d.cloneDeep)(this._callableFunctions.getPropertyDefinitions())},e.prototype._getPropertyValue=function(e){i.Validate.isNotNullOrUndefined(e,"propertyId");var t=new r._QosMonitor("DynamicDataSourceManager._getPropertyValue"),n=e.split(l._jsonPathArrayRegex);try{var a=this._callableFunctions.getPropertyValue(n.shift());if(n.length>0&&!isNaN(parseInt(n[0],10))&&Array.isArray(a)&&(a=a[n[0]]),void 0===a&&0===this._callableFunctions.getPropertyDefinitions().filter(function(t){return t.id===e}).length&&this._src)throw new Error('Property "'+e+'" doesn\'t exist in source "'+this._src.metadata.title+'"');return t.writeSuccess(Object(u.__assign)(Object(u.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,propertyValue:a,propertyId:e})),Object(d.cloneDeep)(a)}catch(n){return t.writeUnexpectedFailure("NoPropertyId",n,{propertyId:e}),void r._TraceLogger.logErrorData({source:this._logSource,error:n})}},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){i.Validate.isNotNullOrUndefined(e,"propertyId");var t,n=new r._QosMonitor("DynamicDataSourceManager._getAnnotatedPropertyValue");if(this._callableFunctions.getAnnotatedPropertyValue){var a=e.split(l._jsonPathArrayRegex);try{t=this._callableFunctions.getAnnotatedPropertyValue(a.shift()),a.length>0&&!isNaN(parseInt(a[0],10))&&Array.isArray(t)&&(t=t[a[0]]),n.writeSuccess(Object(u.__assign)(Object(u.__assign)({},this._src&&this._src.metadata||{}),{sourceId:this._src&&this._src.id,annotatedPropertyValue:t,propertyId:e}))}catch(e){n.writeExpectedFailure("NoAnnotatedPropertyValue",e,{annotatedPropertyValue:t}),r._TraceLogger.logErrorData({source:this._logSource,error:e}),t=void 0}}return t||(t={sampleValue:this._getPropertyValue(e),metadata:void 0}),t},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===Object(d.findIndex)(this._allowedEvents(),{name:e}))throw new Error(i.Text.format(f.a,e,this._src.metadata.title))},e.prototype._assertNotDisposed=function(){if(this.isDisposed)throw new Error(f.t)},e.prototype._assertInitialized=function(){if(!this._isInitialized)throw new Error(f.n)},e.prototype._assertSourceExists=function(){if(!this._src)throw new Error(f.e)},e.prototype._logFeatureEntry=function(e,t){var n=this._component.manifest.isInternal||!1,a={alias:this._component.manifest.alias,isInternal:n.toString()},i=new r._LogEntry("DynamicDataSourceManager",e,r._LogType.Event,d.merge(a,t));r._EngagementLogger.logEventWithLogEntry(i)},e}(),m=function(){function e(e){var t=this;this._isDisposed=!1,this._isServedFromLocalhost=!1,i.Validate.isNotNullOrUndefined(e,"parameters"),i.Validate.isNotNullOrUndefined(e.manifest,"manifest"),this.manifest=e.manifest;var n=this.manifest.loaderConfig;n&&n.internalModuleBaseUrls&&n.internalModuleBaseUrls.length&&(this._isServedFromLocalhost=/^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(n.internalModuleBaseUrls[0])),i.Validate.isNotNullOrUndefined(e.parentServiceScope,"parentServiceScope"),this._serviceScope=e.parentServiceScope.startNewChild(),i.Validate.isNotNullOrUndefined(e.loggingTag,"loggingTag"),this.serviceScope.provide(r._logSourceServiceKey,r._LogSource.create(e.loggingTag)),i.Validate.isNonemptyString(e.instanceId,"instanceId"),this._instanceId=e.instanceId,this._httpClient=this.serviceScope.createDefaultAndProvide(s.HttpClient.serviceKey),this._spHttpClient=this.serviceScope.createDefaultAndProvide(s.SPHttpClient.serviceKey),this._msGraphClientFactory=this.serviceScope.createDefaultAndProvide(s.MSGraphClientFactory.serviceKey),this._aadClientFactory=this.serviceScope.createDefaultAndProvide(s.AadHttpClientFactory.serviceKey),this._aadTokenFactory=this.serviceScope.createDefaultAndProvide(s.AadTokenProviderFactory.serviceKey),this.serviceScope.provide(i._ClientManifestData.serviceKey,new i._ClientManifestData(this.serviceScope,this.manifest)),this.serviceScope.whenFinished(function(){t._pageContext=t.serviceScope.consume(o.PageContext.serviceKey)}),this._dynamicDataProvider=new l,this._dynamicDataSourceManager=new p}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}(),_=function(){function e(t,n){this._hasValue=!1,this._isDisposed=!1,i.Validate.isNotNullOrUndefined(t,"provider"),this.__type=e._TYPE_NAME,this._provider=t,this._callbacks=new Set,this._pendingCallbacks=new Set,n?(this._pendingCallbacks.add(n),this._defaultCallback=n):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 t=this;i.Validate.isNonemptyString(e,"id"),this._value=void 0,this._hasValue=!1;var n=new Set;this._callbacks.forEach(function(e){return n.add(e)}),this._callbacks.forEach(function(e){return t.unregister(e)}),this._reference=new c.DynamicDataReference(e),this._sourceId=this._getSourceId(),n.forEach(function(e){return t.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(){i.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(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?void 0:this._provider.tryGetSource(this._sourceId)},e.prototype.register=function(e){i.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){i.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 i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.sourceId},e.prototype._getProperty=function(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.property},e.prototype._getPropertyPath=function(){return i.Validate.isNotDisposed(this,"DynamicData"),this._hasValue?"":this._reference.propertyPath||""},e.prototype._cloneDeep=function(e){return d.cloneDeepWith(e,function(e){if(e instanceof l)return e})},e.prototype._getPropertyToRegister=function(){return i.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(){var e;i.Validate.isNotDisposed(this,"DynamicData");try{e=this._hasValue?this._value:this._provider._getData(this._reference)}catch(e){throw r._EngagementLogger.logEventWithLogEntry(e),e}return r._EngagementLogger.logEventWithLogEntry(new r._LogEntry("DynamicData","getData",r._LogType.Event,{value:JSON.stringify(this.value)})),e},e._TYPE_NAME="DynamicProperty",e._arrayRegex=new RegExp(/\[\*\]$/),e}(),h=function(){function e(){}return e.load=function(t){return t||e.isLoaded?Promise.resolve():n.e(0).then(n.bind(null,"TL+I")).then(function(){e.isLoaded=!0})},e.forceLoad=function(t){try{return e._shouldLoad(t)?n.e(0).then(n.bind(null,"TL+I")).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 t=i.Version._tryParseSPFxVersion(e);return!t||t.lessThan(i.Version.parse("1.8.2"))}return e.loadLegacyFabricCss},e._shouldLoad=function(t){return!e.isLoaded&&e.needLegacyFabricCss(t)},e.isLoaded=!1,e}(),b=function(){function e(){}return e.serializeServerProcessedData=function(e,t,n){var a=this;this._forEachPropertyWithMetaData(e,t,function(e,i,r){i.shouldNotPersist&&d.set(t,e,void 0);var o=e,s=d.get(t,e);if(n&&"string"==typeof s&&s){if(n.htmlStrings&&i.isHtmlString?n.htmlStrings[o]=s:n.searchablePlainTexts&&i.isSearchablePlainText?n.searchablePlainTexts[o]=s:n.links&&i.isLink?n.links[o]=s:n.imageSources&&i.isImageSource?n.imageSources[o]=s:i.isComponentDependency&&(n.componentDependencies||(n.componentDependencies={}),n.componentDependencies[o]=s),i.customMetadata){var c={};if(i&&i.customMetadata)for(var l in i.customMetadata){var u=i.customMetadata[l];void 0!==r&&-1!==u.indexOf("*")&&(u=u.replace("*",r.toString())),a._validateAndIteratePath(u,t,function(e,a){if(void 0===a&&i.customMetadata){var r=d.get(t,e);n&&void 0!==r&&(c[e]=r)}})}n.customMetadata||(n.customMetadata={}),n.customMetadata[o]=c}d.set(t,e,void 0)}})},e.reInstateServerProcessedData=function(e,t,n,a){if(a&&this._forEachPropertyWithMetaData(e,t,function(e,n){"b7dd04e1-19ce-4b24-9132-b60a1c2b910d"!==a.id&&n.isHtmlString&&d.set(t,e,void 0)}),n)for(var i=0,r=[n.htmlStrings,n.searchablePlainTexts,n.imageSources,n.links,n.componentDependencies];i<r.length;i++){var o=r[i];if(o)for(var s in o){var c=o[s];"string"==typeof c&&d.set(t,s,c)}}},e._forEachPropertyWithMetaData=function(e,t,n){if(e){var a=function(a){var r=e[a];i._validateAndIteratePath(a,t,function(e,t){n(e,r,t)})},i=this;for(var r in e)a(r)}},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 '"+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 '"+e+"' got ignored in the properties metadata.");var r=e.substr(0,i),o=d.get(t,r);if(!o)return void console.warn("Invalid property path: Could not find an array named '"+r+"' in the properties.\nEntry with path '"+e+"' got ignored in the properties metadata.");for(var s=0;s<o.length;s++)n(e.replace("*",""+s),s)}else n(e)},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.__extends)(t,e),t}(i.SPEventArgs),v=function(){function e(t,n){this._id=e._instanceCount++,this.themeChangedEvent=new i.SPEvent(this._themeChangedEventName),n&&(this._theme=Object.freeze(n))}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._raiseEvent()},e.prototype._setTheme=function(e){i.Validate.isNotNullOrUndefined(e,"theme"),this._theme=Object.freeze(e),this._raiseEvent()},e.prototype.tryGetTheme=function(){return this._theme},e.prototype._raiseEvent=function(){i._SPEventManager.instance.raiseEvent(this._themeChangedEventName,{theme:this._theme})},e.serviceKey=i.ServiceKey.create("sp-component-base.ThemeProvider",e),e._themeChangedEventNameLiteral="ThemeProvider.themeChangedEvent",e._instanceCount=0,e}();n("jOlS").loadStyles(".a_a_a3996340{position:relative;width:100%;margin:5px;height:100%;background-color:transparent}.b_a_a3996340{fill:#f4f4f4}",!0);var y=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="a_a_a3996340";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="b_a_a3996340";s.innerHTML="<svg width="+t+" height="+n+' viewBox="0 0 '+t+" "+n+'" version="1.1"\n xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>'+i+"</title>\n <g id="+a+'_Shimmer stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <rect x="0" y="0" width='+t+" height="+n+"></rect>\n "+e._shimmerRect(a+"_1",m,8,l,20,c)+"\n "+e._shimmerRect(a+"_2",m,8,u,40,c)+"\n "+e._shimmerRect(a+"_3",m,8,f,90,c)+"\n "+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="+e+" class="+t+" x="+n+" y="+a+' width="'+i+'%" height='+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}(),S=new RegExp("^https://[^/]*/");function D(e,t){if(!e)return t;var n=!1;return"/"!==t.charAt(t.length-1)&&(t+="/",n=!0),t=t.replace(S,"https://"+e+"/"),n&&(t=t.substr(0,t.length-1)),t}},ut3N:function(e,t){e.exports=c},vlQI:function(e,t){e.exports=d}})});
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -37,9 +37,14 @@ var BaseComponentContext = /** @class */ (function () {
|
|
|
37
37
|
function BaseComponentContext(parameters) {
|
|
38
38
|
var _this = this;
|
|
39
39
|
this._isDisposed = false;
|
|
40
|
+
this._isServedFromLocalhost = false;
|
|
40
41
|
sp_core_library_1.Validate.isNotNullOrUndefined(parameters, 'parameters');
|
|
41
42
|
sp_core_library_1.Validate.isNotNullOrUndefined(parameters.manifest, 'manifest');
|
|
42
43
|
this.manifest = parameters.manifest;
|
|
44
|
+
var loaderConfig = this.manifest.loaderConfig;
|
|
45
|
+
if (loaderConfig && loaderConfig.internalModuleBaseUrls && loaderConfig.internalModuleBaseUrls.length) {
|
|
46
|
+
this._isServedFromLocalhost = /^http(s)?\:\/\/(localhost|127.0.0.1)/gim.test(loaderConfig.internalModuleBaseUrls[0]);
|
|
47
|
+
}
|
|
43
48
|
sp_core_library_1.Validate.isNotNullOrUndefined(parameters.parentServiceScope, 'parentServiceScope');
|
|
44
49
|
this._serviceScope = parameters.parentServiceScope.startNewChild();
|
|
45
50
|
// TODO: VSO:507790 Reconcile this with ClientSideWebPartManager._createWebPartTag()
|
|
@@ -203,6 +208,16 @@ var BaseComponentContext = /** @class */ (function () {
|
|
|
203
208
|
enumerable: false,
|
|
204
209
|
configurable: true
|
|
205
210
|
});
|
|
211
|
+
Object.defineProperty(BaseComponentContext.prototype, "isServedFromLocalhost", {
|
|
212
|
+
/**
|
|
213
|
+
* Returns true if the solution is being served from localhost
|
|
214
|
+
*/
|
|
215
|
+
get: function () {
|
|
216
|
+
return this._isServedFromLocalhost;
|
|
217
|
+
},
|
|
218
|
+
enumerable: false,
|
|
219
|
+
configurable: true
|
|
220
|
+
});
|
|
206
221
|
return BaseComponentContext;
|
|
207
222
|
}());
|
|
208
223
|
exports.default = BaseComponentContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-component-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0-beta.5",
|
|
4
4
|
"description": "SharePoint Framework support for building client-side components",
|
|
5
5
|
"license": "SEE LICENSE IN \"EULA\" FOLDER",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"tsdocFlavor": "AEDoc"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@microsoft/office-ui-fabric-react-bundle": "1.
|
|
15
|
-
"@microsoft/sp-core-library": "1.
|
|
16
|
-
"@microsoft/sp-diagnostics": "1.
|
|
17
|
-
"@microsoft/sp-dynamic-data": "1.
|
|
18
|
-
"@microsoft/sp-http": "1.
|
|
19
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
21
|
-
"@microsoft/sp-page-context": "1.
|
|
14
|
+
"@microsoft/office-ui-fabric-react-bundle": "1.14.0-beta.5",
|
|
15
|
+
"@microsoft/sp-core-library": "1.14.0-beta.5",
|
|
16
|
+
"@microsoft/sp-diagnostics": "1.14.0-beta.5",
|
|
17
|
+
"@microsoft/sp-dynamic-data": "1.14.0-beta.5",
|
|
18
|
+
"@microsoft/sp-http": "1.14.0-beta.5",
|
|
19
|
+
"@microsoft/sp-lodash-subset": "1.14.0-beta.5",
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.14.0-beta.5",
|
|
21
|
+
"@microsoft/sp-page-context": "1.14.0-beta.5",
|
|
22
22
|
"tslib": "~1.10.0"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {},
|