@microsoft/sp-component-base 1.14.0-rc.2 → 1.15.0-beta.6

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.
Files changed (30) hide show
  1. package/dist/467dc675-7cc5-4709-8aac-78e3b71bd2f6.manifest.json +77 -72
  2. package/dist/{chunk.legacy-third-party-fabric-core-localfont_none_99c6fc3c6a2dea12779c.js → chunk.legacy-third-party-fabric-core-localfont_none_2f01d25ba0d75d4649ee.js} +1 -1
  3. package/dist/index-internal-beta.d.ts +13 -6
  4. package/dist/index-internal-public.d.ts +13 -6
  5. package/dist/index-internal.d.ts +13 -6
  6. package/dist/sp-component-base_default_e032a7004043b5dfb553.js +1 -0
  7. package/dist/sp-component-base_en-us_e032a7004043b5dfb553.js +1 -0
  8. package/dist/sp-component-base_qps-ploc_e032a7004043b5dfb553.js +1 -0
  9. package/dist/sp-component-base_qps-ploca_e032a7004043b5dfb553.js +1 -0
  10. package/lib-commonjs/BaseComponent.js +2 -2
  11. package/lib-commonjs/BaseComponentContext.js +2 -2
  12. package/lib-commonjs/DynamicDataProvider.js +1 -1
  13. package/lib-commonjs/DynamicDataSourceManager.js +11 -13
  14. package/lib-commonjs/DynamicProperty.js +23 -5
  15. package/lib-commonjs/EnsureIsolatedDomainUrl.js +1 -1
  16. package/lib-commonjs/LegacyThirdPartyFabricCoreLoader.js +1 -1
  17. package/lib-commonjs/PropertyMetadataProcessor.js +5 -5
  18. package/lib-commonjs/ShimmerFactory.js +3 -3
  19. package/lib-commonjs/dataCollector/IWebPartLoadData.js +8 -0
  20. package/lib-commonjs/dataCollector/WebPartLoadDataCollector.js +139 -0
  21. package/lib-commonjs/index.js +13 -7
  22. package/lib-commonjs/test-api/MockComponent.js +2 -2
  23. package/lib-commonjs/test-api/MockComponentContext.js +2 -2
  24. package/lib-commonjs/test-api/index.js +1 -0
  25. package/lib-commonjs/themeProvider/ThemeProvider.js +1 -1
  26. package/package.json +11 -11
  27. package/dist/sp-component-base_default_f510dfc265b8222fa720.js +0 -1
  28. package/dist/sp-component-base_en-us_f510dfc265b8222fa720.js +0 -1
  29. package/dist/sp-component-base_qps-ploc_f510dfc265b8222fa720.js +0 -1
  30. package/dist/sp-component-base_qps-ploca_f510dfc265b8222fa720.js +0 -1
@@ -5,8 +5,8 @@ var sp_core_library_1 = require("@microsoft/sp-core-library");
5
5
  var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
6
6
  var sp_page_context_1 = require("@microsoft/sp-page-context");
7
7
  var sp_http_1 = require("@microsoft/sp-http");
8
- var DynamicDataProvider_1 = tslib_1.__importDefault(require("./DynamicDataProvider"));
9
- var DynamicDataSourceManager_1 = tslib_1.__importDefault(require("./DynamicDataSourceManager"));
8
+ var DynamicDataProvider_1 = (0, tslib_1.__importDefault)(require("./DynamicDataProvider"));
9
+ var DynamicDataSourceManager_1 = (0, tslib_1.__importDefault)(require("./DynamicDataSourceManager"));
10
10
  /**
11
11
  * The base class for context objects for client-side components.
12
12
  *
@@ -4,7 +4,7 @@ var tslib_1 = require("tslib");
4
4
  var sp_core_library_1 = require("@microsoft/sp-core-library");
5
5
  var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
6
6
  var sp_dynamic_data_1 = require("@microsoft/sp-dynamic-data");
7
- var lodash = tslib_1.__importStar(require("@microsoft/sp-lodash-subset"));
7
+ var lodash = (0, tslib_1.__importStar)(require("@microsoft/sp-lodash-subset"));
8
8
  /**
9
9
  * The Dynamic Data Provider allows components to consume Dynamic Data.
10
10
  * It allows components to request Dynamic Data sources and register/unregister to those.
@@ -4,10 +4,10 @@ var tslib_1 = require("tslib");
4
4
  var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
5
5
  var sp_core_library_1 = require("@microsoft/sp-core-library");
6
6
  var sp_dynamic_data_1 = require("@microsoft/sp-dynamic-data");
7
- var lodash = tslib_1.__importStar(require("@microsoft/sp-lodash-subset"));
7
+ var lodash = (0, tslib_1.__importStar)(require("@microsoft/sp-lodash-subset"));
8
8
  var sp_lodash_subset_1 = require("@microsoft/sp-lodash-subset");
9
- var DynamicDataProvider_1 = tslib_1.__importDefault(require("./DynamicDataProvider"));
10
- var strings = tslib_1.__importStar(require("./loc/Strings.resx"));
9
+ var DynamicDataProvider_1 = (0, tslib_1.__importDefault)(require("./DynamicDataProvider"));
10
+ var strings = (0, tslib_1.__importStar)(require("./loc/Strings.resx"));
11
11
  /**
12
12
  * The Dynamic Data Source Manager is responsible for:
13
13
  * - Constructing the dynamic data source
@@ -132,7 +132,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
132
132
  metadata.alias = undefined;
133
133
  metadata.componentId = undefined;
134
134
  metadata.instanceId = undefined;
135
- sp_lodash_subset_1.merge(this._src.metadata, metadata);
135
+ (0, sp_lodash_subset_1.merge)(this._src.metadata, metadata);
136
136
  };
137
137
  Object.defineProperty(DynamicDataSourceManager.prototype, "sourceId", {
138
138
  /**
@@ -174,7 +174,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
174
174
  */
175
175
  DynamicDataSourceManager.prototype._allowedEvents = function () {
176
176
  return this._callableFunctions.allowedEvents
177
- ? sp_lodash_subset_1.cloneDeep(this._callableFunctions.allowedEvents())
177
+ ? (0, sp_lodash_subset_1.cloneDeep)(this._callableFunctions.allowedEvents())
178
178
  : undefined;
179
179
  };
180
180
  /**
@@ -193,7 +193,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
193
193
  * This assumes that the component has dynamic data and has a controller.
194
194
  */
195
195
  DynamicDataSourceManager.prototype._getPropertyDefinitions = function () {
196
- return sp_lodash_subset_1.cloneDeep(this._callableFunctions.getPropertyDefinitions());
196
+ return (0, sp_lodash_subset_1.cloneDeep)(this._callableFunctions.getPropertyDefinitions());
197
197
  };
198
198
  /**
199
199
  * This is the getPropertyValue() that the DynamicDataSource actually exposes.
@@ -228,12 +228,11 @@ var DynamicDataSourceManager = /** @class */ (function () {
228
228
  0 &&
229
229
  this._src // Check that the source exists to get its title
230
230
  ) {
231
- throw new Error("Property \"" + propertyId + "\" doesn't exist in source \"" + this._src.metadata.title + "\"");
231
+ throw new Error("Property \"".concat(propertyId, "\" doesn't exist in source \"").concat(this._src.metadata.title, "\""));
232
232
  }
233
233
  }
234
- qosMonitor.writeSuccess(tslib_1.__assign(tslib_1.__assign({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, propertyValue: propertyValue,
235
- propertyId: propertyId }));
236
- return sp_lodash_subset_1.cloneDeep(propertyValue);
234
+ qosMonitor.writeSuccess((0, tslib_1.__assign)((0, tslib_1.__assign)({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, propertyValue: propertyValue, propertyId: propertyId }));
235
+ return (0, sp_lodash_subset_1.cloneDeep)(propertyValue);
237
236
  }
238
237
  catch (error) {
239
238
  qosMonitor.writeUnexpectedFailure('NoPropertyId', error, { propertyId: propertyId });
@@ -294,8 +293,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
294
293
  annotatedPropertyValue = annotatedPropertyValue[paths[0]];
295
294
  }
296
295
  }
297
- qosMonitor.writeSuccess(tslib_1.__assign(tslib_1.__assign({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, annotatedPropertyValue: annotatedPropertyValue,
298
- propertyId: propertyId }));
296
+ qosMonitor.writeSuccess((0, tslib_1.__assign)((0, tslib_1.__assign)({}, ((this._src && this._src.metadata) || {})), { sourceId: this._src && this._src.id, annotatedPropertyValue: annotatedPropertyValue, propertyId: propertyId }));
299
297
  }
300
298
  catch (error) {
301
299
  qosMonitor.writeExpectedFailure('NoAnnotatedPropertyValue', error, { annotatedPropertyValue: annotatedPropertyValue });
@@ -348,7 +346,7 @@ var DynamicDataSourceManager = /** @class */ (function () {
348
346
  * @param eventName - Name of the event.
349
347
  */
350
348
  DynamicDataSourceManager.prototype._assertValidEvent = function (eventName) {
351
- if (!this._allowedEvents() || sp_lodash_subset_1.findIndex(this._allowedEvents(), { name: eventName }) === -1) {
349
+ if (!this._allowedEvents() || (0, sp_lodash_subset_1.findIndex)(this._allowedEvents(), { name: eventName }) === -1) {
352
350
  throw new Error(sp_core_library_1.Text.format(strings.InvalidEvent, eventName, this._src.metadata.title));
353
351
  }
354
352
  };
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var lodash = tslib_1.__importStar(require("@microsoft/sp-lodash-subset"));
4
+ var lodash = (0, tslib_1.__importStar)(require("@microsoft/sp-lodash-subset"));
5
5
  var sp_core_library_1 = require("@microsoft/sp-core-library");
6
6
  var sp_dynamic_data_1 = require("@microsoft/sp-dynamic-data");
7
- var DynamicDataProvider_1 = tslib_1.__importDefault(require("./DynamicDataProvider"));
7
+ var DynamicDataProvider_1 = (0, tslib_1.__importDefault)(require("./DynamicDataProvider"));
8
8
  var sp_diagnostics_1 = require("@microsoft/sp-diagnostics");
9
9
  /**
10
10
  * Serializable object that simplifies usage of a DynamicProperty.
@@ -175,7 +175,13 @@ var DynamicProperty = /** @class */ (function () {
175
175
  * undefined if the source or the data doesn't exist.
176
176
  */
177
177
  DynamicProperty.prototype.tryGetValue = function () {
178
- sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
178
+ if (this.isDisposed &&
179
+ !sp_core_library_1._SPKillSwitch.isActivated('413769dc-5e0c-4609-9c86-bdf099fe84e3' /*, '12/02/2021', 'DisposedUndefinedNotException'*/)) {
180
+ return undefined;
181
+ }
182
+ else {
183
+ sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
184
+ }
179
185
  var value = this._getData();
180
186
  if (Array.isArray(value)) {
181
187
  value = value[0];
@@ -219,7 +225,13 @@ var DynamicProperty = /** @class */ (function () {
219
225
  * Returns undefined if the source doesn't exist.
220
226
  */
221
227
  DynamicProperty.prototype.tryGetSource = function () {
222
- sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
228
+ if (this.isDisposed &&
229
+ !sp_core_library_1._SPKillSwitch.isActivated('413769dc-5e0c-4609-9c86-bdf099fe84e3' /*, '12/02/2021', 'DisposedUndefinedNotException'*/)) {
230
+ return undefined;
231
+ }
232
+ else {
233
+ sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
234
+ }
223
235
  return this._hasValue ? undefined : this._provider.tryGetSource(this._sourceId);
224
236
  };
225
237
  /**
@@ -354,7 +366,13 @@ var DynamicProperty = /** @class */ (function () {
354
366
  }
355
367
  };
356
368
  DynamicProperty.prototype._getData = function () {
357
- sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
369
+ if (this.isDisposed &&
370
+ !sp_core_library_1._SPKillSwitch.isActivated('413769dc-5e0c-4609-9c86-bdf099fe84e3' /*, '12/02/2021', 'DisposedUndefinedNotException'*/)) {
371
+ return undefined;
372
+ }
373
+ else {
374
+ sp_core_library_1.Validate.isNotDisposed(this, 'DynamicData');
375
+ }
358
376
  var value;
359
377
  try {
360
378
  value = this._hasValue ? this._value : this._provider._getData(this._reference);
@@ -19,7 +19,7 @@ function ensureIsolatedDomainUrl(isolatedDomain, absoluteUrl) {
19
19
  absoluteUrl = absoluteUrl + '/';
20
20
  slashAdded = true;
21
21
  }
22
- absoluteUrl = absoluteUrl.replace(domainRegex, "https://" + isolatedDomain + "/");
22
+ absoluteUrl = absoluteUrl.replace(domainRegex, "https://".concat(isolatedDomain, "/"));
23
23
  if (slashAdded) {
24
24
  // Remove the ending slash
25
25
  absoluteUrl = absoluteUrl.substr(0, absoluteUrl.length - 1);
@@ -14,7 +14,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
14
  var __importStar = (this && this.__importStar) || function (mod) {
15
15
  if (mod && mod.__esModule) return mod;
16
16
  var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PropertyMetadataProcessor = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var lodash = tslib_1.__importStar(require("@microsoft/sp-lodash-subset"));
5
+ var lodash = (0, tslib_1.__importStar)(require("@microsoft/sp-lodash-subset"));
6
6
  /**
7
7
  * The processor to serialize and deserialize the server processed content and component properties
8
8
  * based on component metadata.
@@ -172,13 +172,13 @@ var PropertyMetadataProcessor = /** @class */ (function () {
172
172
  var wildcardCount = (propPath.match(/\*/g) || []).length;
173
173
  if (wildcardCount > 1) {
174
174
  // Skip if there are more than one asterisks in the path (not supported)
175
- console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '" + propPath + "' got ignored in the properties metadata.");
175
+ console.warn("Invalid property path: Multiple wildcards are not supported in property paths.\nEntry with path '".concat(propPath, "' got ignored in the properties metadata."));
176
176
  return;
177
177
  }
178
178
  else if (wildcardCount === 1) {
179
179
  var index = propPath.indexOf('[*]');
180
180
  if (index < -1) {
181
- console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '" + propPath + "' got ignored in the properties metadata.");
181
+ console.warn("Invalid property path: Wildcards are only supported inside brackets to select array\nindices as in 'foo[*].bar'. Entry with path '".concat(propPath, "' got ignored in the properties metadata."));
182
182
  // Skip if the wildcard is not used for an array (not supported)
183
183
  return;
184
184
  }
@@ -187,12 +187,12 @@ var PropertyMetadataProcessor = /** @class */ (function () {
187
187
  var arrayPath = propPath.substr(0, index);
188
188
  var arrayInstance = lodash.get(properties, arrayPath);
189
189
  if (!arrayInstance) {
190
- console.warn("Invalid property path: Could not find an array named '" + arrayPath + "' in the properties.\nEntry with path '" + propPath + "' got ignored in the properties metadata.");
190
+ console.warn("Invalid property path: Could not find an array named '".concat(arrayPath, "' in the properties.\nEntry with path '").concat(propPath, "' got ignored in the properties metadata."));
191
191
  return;
192
192
  }
193
193
  else {
194
194
  for (var i = 0; i < arrayInstance.length; i++) {
195
- var fixedPropPath = propPath.replace('*', "" + i);
195
+ var fixedPropPath = propPath.replace('*', "".concat(i));
196
196
  propertyPathHandler(fixedPropPath, i);
197
197
  }
198
198
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
- var shimmer_module_scss_1 = tslib_1.__importDefault(require("./styles/shimmer.module.scss"));
4
+ var shimmer_module_scss_1 = (0, tslib_1.__importDefault)(require("./styles/shimmer.module.scss"));
5
5
  // These constants are taken from generic shimmer design.
6
6
  var SHIMMER_WIDTH_DEFAULT = 100;
7
7
  var SHIMMER_HEIGHT_DEFAULT = 100;
@@ -45,7 +45,7 @@ var ShimmerFactory = /** @class */ (function () {
45
45
  var rectangle3Y = rectangle2Y + gap;
46
46
  var rectangle4Y = rectangle3Y + gap;
47
47
  var className = shimmer_module_scss_1.default.shimmerElementFill;
48
- shimmerDiv.innerHTML = "<svg width=" + width + " height=" + height + " viewBox=\"0 0 " + width + " " + height + "\" version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>" + loadingMessage + "</title>\n <g id=" + componentTag + "_Shimmer stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=" + width + " height=" + height + "></rect>\n " + ShimmerFactory._shimmerRect(componentTag + '_1', className, RECTANGLE_X, rectangle1Y, RECTANGLE_1_LENGTH, rectangleHeight) + "\n " + ShimmerFactory._shimmerRect(componentTag + '_2', className, RECTANGLE_X, rectangle2Y, RECTANGLE_2_LENGTH, rectangleHeight) + "\n " + ShimmerFactory._shimmerRect(componentTag + '_3', className, RECTANGLE_X, rectangle3Y, RECTANGLE_3_LENGTH, rectangleHeight) + "\n " + ShimmerFactory._shimmerRect(componentTag + '_4', className, RECTANGLE_X, rectangle4Y, RECTANGLE_4_LENGTH, rectangleHeight) + "\n </g>\n </svg>";
48
+ shimmerDiv.innerHTML = "<svg width=".concat(width, " height=").concat(height, " viewBox=\"0 0 ").concat(width, " ").concat(height, "\" version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>").concat(loadingMessage, "</title>\n <g id=").concat(componentTag, "_Shimmer stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <rect x=\"0\" y=\"0\" width=").concat(width, " height=").concat(height, "></rect>\n ").concat(ShimmerFactory._shimmerRect(componentTag + '_1', className, RECTANGLE_X, rectangle1Y, RECTANGLE_1_LENGTH, rectangleHeight), "\n ").concat(ShimmerFactory._shimmerRect(componentTag + '_2', className, RECTANGLE_X, rectangle2Y, RECTANGLE_2_LENGTH, rectangleHeight), "\n ").concat(ShimmerFactory._shimmerRect(componentTag + '_3', className, RECTANGLE_X, rectangle3Y, RECTANGLE_3_LENGTH, rectangleHeight), "\n ").concat(ShimmerFactory._shimmerRect(componentTag + '_4', className, RECTANGLE_X, rectangle4Y, RECTANGLE_4_LENGTH, rectangleHeight), "\n </g>\n </svg>");
49
49
  if (containerMargin !== undefined) {
50
50
  shimmerContainerDiv.style.margin = containerMargin + '';
51
51
  }
@@ -57,7 +57,7 @@ var ShimmerFactory = /** @class */ (function () {
57
57
  return shimmerContainerDiv;
58
58
  };
59
59
  ShimmerFactory._shimmerRect = function (id, className, x, y, width, height) {
60
- return "<rect id=" + id + " class=" + className + " x=" + x + " y=" + y + " width=\"" + width + "%\" height=" + height + ">\n <animate\n attributeName=\"opacity\"\n dur=\"1s\"\n values=\"0.2;0.5;0.9\"\n repeatCount=\"indefinite\"\n begin=\"0\"/>\n </rect>";
60
+ return "<rect id=".concat(id, " class=").concat(className, " x=").concat(x, " y=").concat(y, " width=\"").concat(width, "%\" height=").concat(height, ">\n <animate\n attributeName=\"opacity\"\n dur=\"1s\"\n values=\"0.2;0.5;0.9\"\n repeatCount=\"indefinite\"\n begin=\"0\"/>\n </rect>");
61
61
  };
62
62
  return ShimmerFactory;
63
63
  }());
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * @Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * @file Interface that defines the shape of extra data to be uploaded for web part load metrics
5
+ * @internal
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=IWebPartLoadData.js.map
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft. All rights reserved.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebPartLoadDataCollector = void 0;
5
+ var sp_telemetry_1 = require("@ms/sp-telemetry");
6
+ var sp_core_library_1 = require("@microsoft/sp-core-library");
7
+ var NOT_AVAILABLE = 'N/A';
8
+ /**
9
+ * This is used internally to collect web part and adaptive card extension's module load, init, and render performances.
10
+ * This file moved from sp-webpart-base to not additional dependency to sp-adaptive-card-extension-base.
11
+ * @internal
12
+ */
13
+ var WebPartLoadDataCollector = /** @class */ (function () {
14
+ function WebPartLoadDataCollector() {
15
+ }
16
+ WebPartLoadDataCollector.collect = function (manifest, webPartTag, pageContext) {
17
+ var getTime = function (key) {
18
+ return (sp_telemetry_1._PerformanceLogger.readComponentBreakdown(webPartTag, key) ||
19
+ sp_telemetry_1._PerformanceLogger.readTempData("".concat(webPartTag, ".").concat(key)));
20
+ };
21
+ var start = getTime('start');
22
+ var moduleLoaded = getTime('modulesLoaded');
23
+ var initialized = getTime('init');
24
+ var end = getTime('end');
25
+ var isSpinnyShown = !!getTime('displaySpinner');
26
+ var isMultiGeo = Boolean(pageContext && pageContext.legacyPageContext && pageContext.legacyPageContext.isMultiGeoTenant);
27
+ var dataProvider = NOT_AVAILABLE;
28
+ var layoutID = NOT_AVAILABLE;
29
+ var webPartCacheHit = "N/A" /* NotAvailable */;
30
+ var cacheMissReason = "N/A" /* NotApplicable */;
31
+ // Collect data for first-party web parts only. This ideally should be done outside of spfx.
32
+ // VSO#855246 Refactor WebPartLoadDataCollector to move out first-party only logging logic.
33
+ if (manifest.isInternal) {
34
+ var cacheHit = getTime('CacheHit');
35
+ var cacheMiss = getTime('CacheMiss');
36
+ var prefetechedData = getTime('prefetchedData');
37
+ var isCacheApplicable = Boolean(cacheHit || cacheMiss);
38
+ webPartCacheHit = isCacheApplicable
39
+ ? cacheHit
40
+ ? "true" /* True */
41
+ : "false" /* False */
42
+ : "N/A" /* NotAvailable */;
43
+ cacheMissReason = WebPartLoadDataCollector._getCacheMissReason(cacheHit, getTime);
44
+ var dataProviderTime_1 = sp_telemetry_1._PerformanceLogger.now();
45
+ var layoutKey_1 = sp_telemetry_1._PerformanceDataDimensions.Layout;
46
+ var dataProviderKey_1 = sp_telemetry_1._PerformanceDataDimensions.DataProvider;
47
+ var perfBreakDown_1 = sp_telemetry_1._PerformanceLogger.readFullEUPLBreakDown();
48
+ // WebParts which have different layouts and dataproviders, will have perf marks such as
49
+ // webPartTag.dataProvider: [dataProviderName]
50
+ // webPartTag.Layout: [Layout]
51
+ // The logic below will extract the data provider and layout, and log them for perf measurements.
52
+ Object.keys(perfBreakDown_1).forEach(function (key) {
53
+ if (key.indexOf(webPartTag) > -1) {
54
+ // We only have 1 layout
55
+ if (layoutID === NOT_AVAILABLE && key.indexOf(layoutKey_1) > -1) {
56
+ layoutID = key.split(layoutKey_1)[1];
57
+ // Focus on primary data provider
58
+ }
59
+ else if (key.indexOf(dataProviderKey_1) > -1) {
60
+ // Pick earliest data provider, in case there are multiple
61
+ if (dataProvider === NOT_AVAILABLE || perfBreakDown_1[key] < dataProviderTime_1) {
62
+ dataProvider = key.split(dataProviderKey_1)[1];
63
+ dataProviderTime_1 = perfBreakDown_1[key];
64
+ }
65
+ }
66
+ }
67
+ });
68
+ dataProvider = prefetechedData ? 'Prefetch' : dataProvider;
69
+ }
70
+ var webpartPerfFlights = sp_telemetry_1._PerformanceLogger.getWebpartFlightsAndExperiments(webPartTag);
71
+ var syncRenderTime = this._getSyncRenderTime(layoutID, getTime);
72
+ var retVal = {
73
+ alias: manifest.alias,
74
+ isMultiGeo: isMultiGeo,
75
+ isInternal: manifest.isInternal,
76
+ isSpinnyShown: isSpinnyShown,
77
+ manifestId: manifest.id,
78
+ moduleLoadTime: Math.floor(moduleLoaded - start),
79
+ initTime: Math.floor(initialized - moduleLoaded),
80
+ renderTime: Math.floor(end - initialized),
81
+ syncRenderTime: syncRenderTime,
82
+ scenarioId: sp_telemetry_1._PerformanceLogger.getScenarioId(),
83
+ isFullPage: sp_telemetry_1._PerformanceLogger.fullPageLoad,
84
+ dataProvider: dataProvider,
85
+ layout: layoutID,
86
+ mySiteCacheHit: webPartCacheHit,
87
+ cacheMissReason: cacheMissReason,
88
+ flights: webpartPerfFlights,
89
+ storeAppId: manifest.storeAppId,
90
+ mpnId: manifest.mpnId,
91
+ componentDeveloperName: manifest.componentDeveloperName
92
+ };
93
+ retVal.teamsHosted = sp_core_library_1._BrowserUtilities.isTeamsHosted();
94
+ return retVal;
95
+ };
96
+ WebPartLoadDataCollector._getSyncRenderTime = function (layoutID, getTime) {
97
+ var syncRenderTime = undefined;
98
+ syncRenderTime = Math.floor(getTime('syncRender') - getTime('getDataComplete'));
99
+ var postRenderCompleteTime = getTime('postRenderComplete');
100
+ var loadLayoutEnd = getTime('loadLayoutEnd');
101
+ var syncLayoutRenderComplete = getTime('syncLayoutRenderComplete');
102
+ if (loadLayoutEnd && syncLayoutRenderComplete) {
103
+ // render layout and items inside it
104
+ syncRenderTime = Math.floor(syncRenderTime + (syncLayoutRenderComplete - loadLayoutEnd));
105
+ }
106
+ if (postRenderCompleteTime) {
107
+ syncRenderTime = Math.floor(
108
+ // transposeRow + transposeItems + render + syncPostRender
109
+ syncRenderTime + (postRenderCompleteTime - getTime(sp_telemetry_1._PerformanceDataDimensions.Layout + layoutID)));
110
+ }
111
+ return syncRenderTime;
112
+ };
113
+ WebPartLoadDataCollector._getCacheMissReason = function (cacheHit, getTime) {
114
+ if (cacheHit) {
115
+ return "N/A" /* NotApplicable */;
116
+ }
117
+ var mySiteCacheMissOnConfgMismatch = !!getTime('CacheMissConfigMismatch');
118
+ var mySiteCacheMissOnLateFlush = !!getTime('LateFlush');
119
+ var cachedWebPartNotFound = !!getTime('CachedWebPartNotFound');
120
+ var cacheExpired = !!getTime('CacheExpired');
121
+ var cacheMissReason = "NotSpecified" /* NotSpecified */;
122
+ if (mySiteCacheMissOnConfgMismatch) {
123
+ cacheMissReason = "CacheConfigMissmatch" /* CacheConfigMissmatch */;
124
+ }
125
+ else if (mySiteCacheMissOnLateFlush) {
126
+ cacheMissReason = "LateFlush" /* LateFlush */;
127
+ }
128
+ else if (cachedWebPartNotFound) {
129
+ cacheMissReason = "CachedItemNotFound" /* CachedItemNotFound */;
130
+ }
131
+ else if (cacheExpired) {
132
+ cacheMissReason = "CacheExpired" /* CacheExpired */;
133
+ }
134
+ return cacheMissReason;
135
+ };
136
+ return WebPartLoadDataCollector;
137
+ }());
138
+ exports.WebPartLoadDataCollector = WebPartLoadDataCollector;
139
+ //# sourceMappingURL=WebPartLoadDataCollector.js.map
@@ -10,19 +10,23 @@
10
10
  *
11
11
  * @packagedocumentation
12
12
  */
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
13
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports._WebPartLoadDataCollector = exports._ensureIsolatedDomainUrl = exports._ShimmerFactory = exports.ThemeProvider = exports.ThemeChangedEventArgs = exports._PropertyMetadataProcessor = exports._LegacyThirdPartyFabricCoreLoader = exports.DynamicProperty = exports.DynamicDataSourceManager = exports.DynamicDataProvider = exports.BaseComponentContext = exports.BaseComponent = void 0;
14
18
  var BaseComponent_1 = require("./BaseComponent");
15
- Object.defineProperty(exports, "BaseComponent", { enumerable: true, get: function () { return BaseComponent_1.default; } });
19
+ Object.defineProperty(exports, "BaseComponent", { enumerable: true, get: function () { return __importDefault(BaseComponent_1).default; } });
16
20
  var BaseComponentContext_1 = require("./BaseComponentContext");
17
- Object.defineProperty(exports, "BaseComponentContext", { enumerable: true, get: function () { return BaseComponentContext_1.default; } });
21
+ Object.defineProperty(exports, "BaseComponentContext", { enumerable: true, get: function () { return __importDefault(BaseComponentContext_1).default; } });
18
22
  var DynamicDataProvider_1 = require("./DynamicDataProvider");
19
- Object.defineProperty(exports, "DynamicDataProvider", { enumerable: true, get: function () { return DynamicDataProvider_1.default; } });
23
+ Object.defineProperty(exports, "DynamicDataProvider", { enumerable: true, get: function () { return __importDefault(DynamicDataProvider_1).default; } });
20
24
  var DynamicDataSourceManager_1 = require("./DynamicDataSourceManager");
21
- Object.defineProperty(exports, "DynamicDataSourceManager", { enumerable: true, get: function () { return DynamicDataSourceManager_1.default; } });
25
+ Object.defineProperty(exports, "DynamicDataSourceManager", { enumerable: true, get: function () { return __importDefault(DynamicDataSourceManager_1).default; } });
22
26
  var DynamicProperty_1 = require("./DynamicProperty");
23
- Object.defineProperty(exports, "DynamicProperty", { enumerable: true, get: function () { return DynamicProperty_1.default; } });
27
+ Object.defineProperty(exports, "DynamicProperty", { enumerable: true, get: function () { return __importDefault(DynamicProperty_1).default; } });
24
28
  var LegacyThirdPartyFabricCoreLoader_1 = require("./LegacyThirdPartyFabricCoreLoader");
25
- Object.defineProperty(exports, "_LegacyThirdPartyFabricCoreLoader", { enumerable: true, get: function () { return LegacyThirdPartyFabricCoreLoader_1.default; } });
29
+ Object.defineProperty(exports, "_LegacyThirdPartyFabricCoreLoader", { enumerable: true, get: function () { return __importDefault(LegacyThirdPartyFabricCoreLoader_1).default; } });
26
30
  var PropertyMetadataProcessor_1 = require("./PropertyMetadataProcessor");
27
31
  Object.defineProperty(exports, "_PropertyMetadataProcessor", { enumerable: true, get: function () { return PropertyMetadataProcessor_1.PropertyMetadataProcessor; } });
28
32
  var ThemeProvider_1 = require("./themeProvider/ThemeProvider");
@@ -30,7 +34,9 @@ Object.defineProperty(exports, "ThemeChangedEventArgs", { enumerable: true, get:
30
34
  Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
31
35
  // ShimmerFactory
32
36
  var ShimmerFactory_1 = require("./ShimmerFactory");
33
- Object.defineProperty(exports, "_ShimmerFactory", { enumerable: true, get: function () { return ShimmerFactory_1.default; } });
37
+ Object.defineProperty(exports, "_ShimmerFactory", { enumerable: true, get: function () { return __importDefault(ShimmerFactory_1).default; } });
34
38
  var EnsureIsolatedDomainUrl_1 = require("./EnsureIsolatedDomainUrl");
35
39
  Object.defineProperty(exports, "_ensureIsolatedDomainUrl", { enumerable: true, get: function () { return EnsureIsolatedDomainUrl_1.ensureIsolatedDomainUrl; } });
40
+ var WebPartLoadDataCollector_1 = require("./dataCollector/WebPartLoadDataCollector");
41
+ Object.defineProperty(exports, "_WebPartLoadDataCollector", { enumerable: true, get: function () { return WebPartLoadDataCollector_1.WebPartLoadDataCollector; } });
36
42
  //# sourceMappingURL=index.js.map
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MockComponent = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var BaseComponent_1 = tslib_1.__importDefault(require("../BaseComponent"));
5
+ var BaseComponent_1 = (0, tslib_1.__importDefault)(require("../BaseComponent"));
6
6
  var MockComponentContext_1 = require("./MockComponentContext");
7
7
  var MockComponent = /** @class */ (function (_super) {
8
- tslib_1.__extends(MockComponent, _super);
8
+ (0, tslib_1.__extends)(MockComponent, _super);
9
9
  function MockComponent(mockScope) {
10
10
  var _this = _super.call(this) || this;
11
11
  _this.mockIDynamicData = {
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MockComponentContext = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var BaseComponentContext_1 = tslib_1.__importDefault(require("../BaseComponentContext"));
5
+ var BaseComponentContext_1 = (0, tslib_1.__importDefault)(require("../BaseComponentContext"));
6
6
  var MockComponentContext = /** @class */ (function (_super) {
7
- tslib_1.__extends(MockComponentContext, _super);
7
+ (0, tslib_1.__extends)(MockComponentContext, _super);
8
8
  function MockComponentContext(mockRootScope) {
9
9
  return _super.call(this, {
10
10
  parentServiceScope: mockRootScope,
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MockComponentContext = exports.MockComponent = void 0;
3
4
  var MockComponent_1 = require("./MockComponent");
4
5
  Object.defineProperty(exports, "MockComponent", { enumerable: true, get: function () { return MockComponent_1.MockComponent; } });
5
6
  var MockComponentContext_1 = require("./MockComponentContext");
@@ -9,7 +9,7 @@ var sp_core_library_1 = require("@microsoft/sp-core-library");
9
9
  * @public
10
10
  */
11
11
  var ThemeChangedEventArgs = /** @class */ (function (_super) {
12
- tslib_1.__extends(ThemeChangedEventArgs, _super);
12
+ (0, tslib_1.__extends)(ThemeChangedEventArgs, _super);
13
13
  function ThemeChangedEventArgs() {
14
14
  return _super !== null && _super.apply(this, arguments) || this;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-component-base",
3
- "version": "1.14.0-rc.2",
3
+ "version": "1.15.0-beta.6",
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,18 +11,18 @@
11
11
  "tsdocFlavor": "AEDoc"
12
12
  },
13
13
  "dependencies": {
14
- "@microsoft/office-ui-fabric-react-bundle": "1.14.0-rc.2",
15
- "@microsoft/sp-core-library": "1.14.0-rc.2",
16
- "@microsoft/sp-diagnostics": "1.14.0-rc.2",
17
- "@microsoft/sp-dynamic-data": "1.14.0-rc.2",
18
- "@microsoft/sp-http": "1.14.0-rc.2",
19
- "@microsoft/sp-lodash-subset": "1.14.0-rc.2",
20
- "@microsoft/sp-module-interfaces": "1.14.0-rc.2",
21
- "@microsoft/sp-page-context": "1.14.0-rc.2",
22
- "tslib": "~1.10.0"
14
+ "@microsoft/office-ui-fabric-react-bundle": "1.15.0-beta.6",
15
+ "@microsoft/sp-core-library": "1.15.0-beta.6",
16
+ "@microsoft/sp-diagnostics": "1.15.0-beta.6",
17
+ "@microsoft/sp-dynamic-data": "1.15.0-beta.6",
18
+ "@microsoft/sp-http": "1.15.0-beta.6",
19
+ "@microsoft/sp-lodash-subset": "1.15.0-beta.6",
20
+ "@microsoft/sp-module-interfaces": "1.15.0-beta.6",
21
+ "@microsoft/sp-page-context": "1.15.0-beta.6",
22
+ "tslib": "2.3.1"
23
23
  },
24
24
  "scripts": {},
25
25
  "engines": {
26
- "node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0"
26
+ "node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"
27
27
  }
28
28
  }
@@ -1 +0,0 @@
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_default_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":"SourceAlreadyInitialized","i":"NoSendEventWhenAllowedEventsIsNonEmpty","t":"DynamicDataSourceManagerIsDisposed","n":"DynamicDataSourceManagerIsNotInitialized","e":"DynamicDataSourceIsNotInitialized","a":"InvalidEvent"}')},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}})});