@esri/solutions-components 0.10.46 → 0.10.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/cjs/calcite-block_5.cjs.entry.js +21 -1
  2. package/dist/cjs/crowdsource-reporter.cjs.entry.js +53 -3
  3. package/dist/cjs/instant-apps-export.cjs.entry.js +18 -5
  4. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +5 -6
  5. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +13 -6
  6. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +7 -12
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/solutions-components.cjs.js +1 -1
  9. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +84 -2
  10. package/dist/components/crowdsource-reporter.js +57 -5
  11. package/dist/components/instant-apps-export.js +18 -5
  12. package/dist/components/instant-apps-filter-list2.js +23 -2
  13. package/dist/components/instant-apps-language-switcher.js +5 -6
  14. package/dist/components/instant-apps-scoreboard.js +14 -6
  15. package/dist/components/instant-apps-time-filter.js +7 -12
  16. package/dist/esm/calcite-block_5.entry.js +21 -1
  17. package/dist/esm/crowdsource-reporter.entry.js +53 -3
  18. package/dist/esm/instant-apps-export.entry.js +18 -5
  19. package/dist/esm/instant-apps-language-switcher.entry.js +5 -6
  20. package/dist/esm/instant-apps-scoreboard.entry.js +13 -6
  21. package/dist/esm/instant-apps-time-filter.entry.js +7 -12
  22. package/dist/esm/loader.js +1 -1
  23. package/dist/esm/solutions-components.js +1 -1
  24. package/dist/solutions-components/p-94e51621.entry.js +6 -0
  25. package/dist/solutions-components/{p-2cf41651.entry.js → p-c7f86f73.entry.js} +1 -1
  26. package/dist/solutions-components/p-e9a0d2f3.entry.js +6 -0
  27. package/dist/solutions-components/p-f09744aa.entry.js +6 -0
  28. package/dist/solutions-components/p-f86c2a0c.entry.js +6 -0
  29. package/dist/solutions-components/p-fdeceaf6.entry.js +29 -0
  30. package/dist/solutions-components/solutions-components.esm.js +1 -1
  31. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +17 -0
  32. package/dist/types/components.d.ts +4 -0
  33. package/package.json +7 -7
  34. package/dist/solutions-components/p-2291bf3f.entry.js +0 -6
  35. package/dist/solutions-components/p-5e694bcc.entry.js +0 -29
  36. package/dist/solutions-components/p-6e5ea1cb.entry.js +0 -6
  37. package/dist/solutions-components/p-cb27611e.entry.js +0 -6
  38. package/dist/solutions-components/p-f4880179.entry.js +0 -6
@@ -211,6 +211,10 @@ const CrowdsourceReporter = class {
211
211
  * { [key: string]: string }: definitionExpressions for each layer
212
212
  */
213
213
  _initDefExpressions;
214
+ /**
215
+ * ILayerExpression[]: translated values for layerExpressions
216
+ */
217
+ _t9nLayerExpressions;
214
218
  //--------------------------------------------------------------------------
215
219
  //
216
220
  // Watch handlers
@@ -281,11 +285,34 @@ const CrowdsourceReporter = class {
281
285
  }, 50);
282
286
  }
283
287
  }
288
+ /**
289
+ * Called each time the layerExpressions prop is changed
290
+ */
291
+ async layerExpressionsWatchHandler() {
292
+ this.resetFilterList();
293
+ await this.handleSelectedLayersFilter();
294
+ await this._featureList?.refresh();
295
+ }
284
296
  //--------------------------------------------------------------------------
285
297
  //
286
298
  // Methods (public)
287
299
  //
288
300
  //--------------------------------------------------------------------------
301
+ /**
302
+ * Method to update layerExpressions with the translated values
303
+ */
304
+ async updateLayerExpressionsT9n(t9nLayerExpressions) {
305
+ this._t9nLayerExpressions = t9nLayerExpressions ? t9nLayerExpressions : this.layerExpressions;
306
+ if (this._filterList != null) {
307
+ await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);
308
+ }
309
+ else if (this._currentLayerExpressions != null) {
310
+ const currentLayerExpressions = structuredClone(this._currentLayerExpressions);
311
+ this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
312
+ this._currentLayerExpressions = currentLayerExpressions;
313
+ }
314
+ return Promise.resolve();
315
+ }
289
316
  //--------------------------------------------------------------------------
290
317
  //
291
318
  // Events (public)
@@ -332,7 +359,7 @@ const CrowdsourceReporter = class {
332
359
  */
333
360
  render() {
334
361
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
335
- return (h(Host, { key: 'f1dd6d85210210a73fff30a5d98370da1834be7b' }, this._reportSubmitted && h("calcite-alert", { key: 'b84760fcbf4bfcf0f038be272f74eda97ce17bd9', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '27aa04dd8575ad27898f7848bc2733a03a33e70f', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '3fc2721bed573ad10bbb1c81af126e2e8ca90b12', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: '4993e5c5b52d650b094c2890d0e4516cc87ffb69', slot: "title" }, this._translations.error), h("div", { key: '272b17f4c0239d8b295d6f2c0c02f1ba236d840d', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: '5b9e1a2bd129888ec0764ad9b05e5056653d3c33', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'bd428297f5fe85cbf7edc42c61c64c299d7954b7', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: '2aa1927ca27f9ec15a16f8e68905a1cf203ef833', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: '4bff5fb03586edf0f9ea21649d1de4c34034e539', slot: "title" }, this._translations.error), h("div", { key: '7ea6c71dbbac15c2f43242ba00c9e461177051a1', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '3aa6bfc19a1e82ab90d2ab42aa9a577b3a2b6d8f' }, h("calcite-shell", { key: 'f27355d4f655c0a0931158f38f0be3eb28f6c4d4', "content-behind": true }, this._getReporter()))));
362
+ return (h(Host, { key: 'b6052369762b8c3e58ef1a4bf49f9f639e8f20f0' }, this._reportSubmitted && h("calcite-alert", { key: 'ea78ecf7f186cd9d2642288cd20017fc51945a47', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, h("div", { key: 'bca0fe4cc41938d401f2209e8e0eeb0ec8eb7eb4', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && h("calcite-alert", { key: '3cc3f7823c77997002261e5a44da38b798355078', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, h("div", { key: 'bfb524575668f85759111f71ed76a62aa4d8ff36', slot: "title" }, this._translations.error), h("div", { key: '25b174bdcf9126a6ea2ee3bf0b0a3d3e1a84d37f', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && h("calcite-alert", { key: 'f2cf41d7f1a09a8c56a8a70ec9c87685463e0ed3', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, h("div", { key: '000e66b1b85c954da28eda2cdde44d6a4f441ff8', slot: "message" }, this.commentSubmittedMessage || this._translations.commentSubmittedMsg)), this._addingCommentFailed && h("calcite-alert", { key: 'ec0d3b4ca27690452bb14777e716cf1c100e0ec8', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, h("div", { key: 'dedf6bbf4d250e7108562a9bd05417e71c94dad4', slot: "title" }, this._translations.error), h("div", { key: 'b5c591bcc14feed655fa07e8d87accd281108f09', slot: "message" }, this._translations.addingCommentFailedMsg)), h("div", { key: '301ea807350d9c0a2bf5f45c01e40897bf644dd8' }, h("calcite-shell", { key: '386e94e32d12bf41ae76e9c78ad26a3d00158db6', "content-behind": true }, this._getReporter()))));
336
363
  }
337
364
  //--------------------------------------------------------------------------
338
365
  //
@@ -1215,7 +1242,11 @@ const CrowdsourceReporter = class {
1215
1242
  */
1216
1243
  async handleSelectedLayersFilter() {
1217
1244
  if (this._selectedLayer) {
1218
- this._currentLayerExpressions = this.layerExpressions ? this.layerExpressions.filter(exp => exp.id === this._selectedLayerId) : [];
1245
+ const currentLayerExpressions = this.layerExpressions ? structuredClone(this.layerExpressions.filter(exp => exp.id === this._selectedLayerId)) : [];
1246
+ if (this._t9nLayerExpressions != null) {
1247
+ this.handleLayerExpressionsT9n(currentLayerExpressions, this._t9nLayerExpressions);
1248
+ }
1249
+ this._currentLayerExpressions = currentLayerExpressions;
1219
1250
  this.setActiveDefinitionExpressions();
1220
1251
  }
1221
1252
  }
@@ -1294,12 +1325,31 @@ const CrowdsourceReporter = class {
1294
1325
  this._initDefExpressions[fl.id] = fl.definitionExpression;
1295
1326
  });
1296
1327
  }
1328
+ /**
1329
+ * Handles updating the layer expressions with the translated strings
1330
+ * @protected
1331
+ */
1332
+ handleLayerExpressionsT9n(layerExpressions, layerExpressionsT9n) {
1333
+ layerExpressions?.forEach(layerExpression => {
1334
+ const t9nLayerExpression = layerExpressionsT9n?.find(t9nLayerExpression => t9nLayerExpression.id === layerExpression.id);
1335
+ if (t9nLayerExpression != null) {
1336
+ layerExpression.title = t9nLayerExpression.title;
1337
+ layerExpression.expressions?.forEach(expression => {
1338
+ const t9nExpression = t9nLayerExpression.expressions?.find(t9nExpression => t9nExpression.id === expression.id);
1339
+ if (t9nExpression != null) {
1340
+ expression.name = t9nExpression.name;
1341
+ }
1342
+ });
1343
+ }
1344
+ });
1345
+ }
1297
1346
  static get watchers() { return {
1298
1347
  "isMobile": ["isMobileWatchHandler"],
1299
1348
  "locale": ["localeWatchHandler"],
1300
1349
  "mapView": ["mapViewWatchHandler"],
1301
1350
  "floorLevel": ["floorLevelWatchHandler"],
1302
- "showMyReportsOnly": ["showMyReportsOnlyWatchHandler"]
1351
+ "showMyReportsOnly": ["showMyReportsOnlyWatchHandler"],
1352
+ "layerExpressions": ["layerExpressionsWatchHandler"]
1303
1353
  }; }
1304
1354
  };
1305
1355
  CrowdsourceReporter.style = CrowdsourceReporterStyle0;
@@ -1548,18 +1548,31 @@ const InstantAppsExport = class {
1548
1548
  }
1549
1549
  }
1550
1550
  }
1551
- convertToImage() {
1551
+ async convertToImage() {
1552
1552
  const options = { backgroundColor: '#FFF', skipFonts: true };
1553
- if (this.selectedFileType === 'JPG') {
1554
- toJpeg(this.printEl, options).then(this.handleGetImage.bind(this));
1553
+ let data = '';
1554
+ try {
1555
+ if (this.selectedFileType === 'JPG') {
1556
+ data = await toJpeg(this.printEl, options);
1557
+ }
1558
+ else {
1559
+ data = await toPng(this.printEl, options);
1560
+ }
1555
1561
  }
1556
- else {
1557
- toPng(this.printEl, options).then(this.handleGetImage.bind(this));
1562
+ catch (_a) {
1563
+ this.logoImage = undefined;
1564
+ await new Promise(resolve => setTimeout(resolve, 500));
1565
+ data = await toJpeg(this.printEl, options);
1566
+ }
1567
+ finally {
1568
+ this.handleGetImage(data);
1558
1569
  }
1559
1570
  }
1560
1571
  handleGetImage(dataUrl) {
1561
1572
  var _a;
1562
1573
  this.resetPrintContent();
1574
+ if (!dataUrl)
1575
+ return;
1563
1576
  this.dataUrl = dataUrl;
1564
1577
  this.setMapAreaOnClick(false);
1565
1578
  this.showPreview(dataUrl);
@@ -106,14 +106,13 @@ const InstantAppsLanguageSwitcher = class {
106
106
  if (selectedLanguage !== userLocale)
107
107
  eventData['data'] = t9nData[translatedLanguage];
108
108
  const params = new URLSearchParams(window.location.search);
109
- if (selectedLanguage !== userLocale) {
110
- // Set url parameter 'locale' with value
109
+ const locale = this.intl.normalizeMessageBundleLocale(this.selectedLanguage);
110
+ intl.setLocale(locale);
111
+ // Set url parameter 'locale' with value
112
+ const docElLang = this.intl.normalizeMessageBundleLocale(document.documentElement.lang);
113
+ if (docElLang !== this.selectedLanguage) {
111
114
  params.set('locale', this.selectedLanguage);
112
115
  }
113
- else {
114
- params.delete('locale');
115
- }
116
- intl.setLocale(selectedLanguage);
117
116
  if (this.view) {
118
117
  const [WebMap] = await loadModules(['esri/WebMap']);
119
118
  const webmap = (_b = (_a = this.locales.filter(localeItem => localeItem.locale === selectedLanguage)) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.webmap;
@@ -50,6 +50,7 @@ const InstantAppsScoreboard = class {
50
50
  this.itemLimit = 6;
51
51
  this.autoDockEnabled = true;
52
52
  this.geometry = null;
53
+ this.queryType = 'layerView';
53
54
  this.state = "loading" /* Scoreboard.Loading */;
54
55
  this.messages = undefined;
55
56
  this.itemIndex = 0;
@@ -241,10 +242,10 @@ const InstantAppsScoreboard = class {
241
242
  const isLoading = state === "loading" /* Scoreboard.Loading */;
242
243
  const isCalculating = state === "calculating" /* Scoreboard.Calculating */;
243
244
  const isDisabled = state === "disabled" /* Scoreboard.Disabled */;
244
- const progress = isLoading || isCalculating || ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating) ? this.renderProgress() : null;
245
+ const progress = isLoading || isCalculating || (this.queryType === 'layerView' && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating)) ? this.renderProgress() : null;
245
246
  const positionClass = this.getPositionClass;
246
247
  const styleClass = this.getStyleClass;
247
- return h(Host, { key: '5fed5010f728e5d8c4866af3bc38b41ac9b5424f', class: `${positionClass} ${styleClass}` }, isDisabled ? null : [progress, ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.renderBase() : null]);
248
+ return h(Host, { key: '5a7e3fdc0753d3f951a71397519ebf07ecd68e03', class: `${positionClass} ${styleClass}` }, isDisabled ? null : [progress, ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.renderBase() : null]);
248
249
  }
249
250
  renderBase() {
250
251
  return (h("div", { key: "instant-apps-scoreboard-base", class: BASE }, this.renderContent()));
@@ -362,7 +363,7 @@ const InstantAppsScoreboard = class {
362
363
  };
363
364
  const getStatDefinitionQuery = (layerView, statDefinition) => {
364
365
  var _a, _b, _c, _d, _e;
365
- const query = layerView.createQuery();
366
+ const query = this.queryType === 'layer' ? layerView.layer.createQuery() : layerView.createQuery();
366
367
  const outStatistics = [statDefinition];
367
368
  const geometry = this.geometry ? this.geometry : this.view.extent;
368
369
  query.outStatistics = outStatistics;
@@ -380,7 +381,7 @@ const InstantAppsScoreboard = class {
380
381
  return;
381
382
  const statDefinition = getStatsDefinition(item);
382
383
  const query = getStatDefinitionQuery(layerView, statDefinition);
383
- const queryFeaturesRes = layerView.queryFeatures(query);
384
+ const queryFeaturesRes = this.queryType === 'layer' ? layerView.layer.queryFeatures(query) : layerView.queryFeatures(query);
384
385
  queryFeaturePromises.push(queryFeaturesRes);
385
386
  };
386
387
  };
@@ -417,7 +418,10 @@ const InstantAppsScoreboard = class {
417
418
  const whenOnceConfig = { once: true, initial: true };
418
419
  const isNotInteractingWatcher = () => {
419
420
  var _a;
420
- return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () => this.calculateScoreboardItemValues(), whenOnceConfig);
421
+ return (_a = this.reactiveUtils) === null || _a === void 0 ? void 0 : _a.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.interacting); }, () => {
422
+ if (this.queryType === 'layerView')
423
+ this.calculateScoreboardItemValues();
424
+ }, whenOnceConfig);
421
425
  };
422
426
  const stationaryWatcher = () => {
423
427
  var _a;
@@ -430,7 +434,10 @@ const InstantAppsScoreboard = class {
430
434
  }
431
435
  initViewUpdateWatcher() {
432
436
  return this.reactiveUtils.watch(() => { var _a; return (_a = this.view) === null || _a === void 0 ? void 0 : _a.updating; }, () => {
433
- this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () => this.calculateScoreboardItemValues(), { once: true, initial: true });
437
+ this.reactiveUtils.when(() => { var _a; return !((_a = this.view) === null || _a === void 0 ? void 0 : _a.updating); }, () => {
438
+ if (this.queryType === 'layerView')
439
+ this.calculateScoreboardItemValues();
440
+ }, { once: true, initial: true });
434
441
  }, { initial: true });
435
442
  }
436
443
  watchLayerVisibility() {
@@ -33,31 +33,25 @@ let e$a;function has(a){return "function"==typeof e$a[a]?e$a[a]=e$a[a](globalThi
33
33
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
34
34
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
35
35
  */
36
- function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$6(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
36
+ function o$8(n){return "Int8Array"===n?.constructor?.name}function u$6(n){return "Uint8Array"===n?.constructor?.name}function e$9(n){return "Uint8ClampedArray"===n?.constructor?.name}function c$6(n){return "Int16Array"===n?.constructor?.name}function i$6(n){return "Uint16Array"===n?.constructor?.name}function a$5(n){return "Int32Array"===n?.constructor?.name}function f$5(n){return "Uint32Array"===n?.constructor?.name}function s$6(n){return "Float32Array"===n?.constructor?.name}function m$5(n){return "Float64Array"===n?.constructor?.name}
37
37
 
38
38
  /*
39
39
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
40
40
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
41
41
  */
42
- function a$5(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$5);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$5(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$6(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$5(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$5(e));return n}return null}
42
+ function a$4(t){if(!t||"object"!=typeof t||"function"==typeof t)return t;const n=O$2(t);if(null!=n)return n;if(y$4(t))return t.clone();if(m$4(t))return t.map(a$4);if(b$2(t))return t.clone();const e={};for(const r of Object.getOwnPropertyNames(t))e[r]=a$4(t[r]);return e}function y$4(t){return "function"==typeof t.clone}function m$4(t){return "function"==typeof t.map&&"function"==typeof t.forEach}function b$2(t){return "function"==typeof t.notifyChange&&"function"==typeof t.watch}function O$2(t){if(o$8(t)||u$6(t)||e$9(t)||c$6(t)||i$6(t)||a$5(t)||f$5(t)||s$6(t)||m$5(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer){return t.slice(0,t.byteLength)}if(t instanceof Map){const n=new Map;for(const[e,r]of t)n.set(e,a$4(r));return n}if(t instanceof Set){const n=new Set;for(const e of t)n.add(a$4(e));return n}return null}
43
43
 
44
44
  /*
45
45
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
46
46
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
47
47
  */
48
- function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$5(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
48
+ function n$7(r,n,t=!1){return f$4(r,n,t)}function t$4(r,n){if(null!=n)return n[r]||u$5(r.split("."),!1,n)}function u$5(r,n,t){let e=t;for(const i of r){if(null==e)return;if(!(i in e)){if(!n)return;e[i]={};}e=e[i];}return e}function f$4(n,t,e){return t?Object.keys(t).reduce(((n,i)=>{let u=n[i],l=t[i];return u===l?n:void 0===u?(n[i]=a$4(l),n):(Array.isArray(l)||Array.isArray(n)?(u=u?Array.isArray(u)?n[i]=u.slice():n[i]=[u]:n[i]=[],l&&(Array.isArray(l)||(l=[l]),e?l.forEach((r=>{u.includes(r)||u.push(r);})):n[i]=l.slice())):l&&"object"==typeof l?n[i]=f$4(u,l,e):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=l),n)}),n||{}):n}
49
49
 
50
50
  /*
51
51
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
52
52
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
53
53
  */
54
- const a$4="20241101";
55
-
56
- /*
57
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
58
- See https://js.arcgis.com/4.31/esri/copyright.txt for details.
59
- */
60
- const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31.0";s$5.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${a$4}/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
54
+ const s$5={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(n$7(s$5,globalThis.esriConfig,!0),delete s$5.has),!s$5.assetsPath){{const e="4.31";s$5.assetsPath=`https://js.arcgis.com/${e}/@arcgis/core/assets`;}s$5.defaultAssetsPath=s$5.assetsPath;}
61
55
 
62
56
  /*
63
57
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -81,7 +75,7 @@ function s$4(s,e){return s.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,((s,r)
81
75
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
82
76
  See https://js.arcgis.com/4.31/esri/copyright.txt for details.
83
77
  */
84
- class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$5(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
78
+ class s$3 extends e$8{constructor(e,t,r){super(e,t,r);}toJSON(){if(null!=this.details)try{return {name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((t,r)=>{if(r&&"object"==typeof r&&"function"==typeof r.toJSON)return r;try{return a$4(r)}catch(s){return "[object]"}})))}}catch(r){throw n$6.getLogger("esri.core.Error").error(r),r}return {name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s$3(e.name,e.message,e.details)}}s$3.prototype.type="error";
85
79
 
86
80
  /*
87
81
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
@@ -390,11 +384,12 @@ class InstantAppsTimeFilterViewModel {
390
384
  }
391
385
  }
392
386
  applyFeatureEffect(layerView, timeExtent, filterMode) {
387
+ var _a;
393
388
  if (!layerView)
394
389
  return;
395
390
  if (layerView.filter)
396
391
  layerView.set('filter', null);
397
- if (!layerView.featureEffect || filterMode) {
392
+ if (!(layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) || !((_a = layerView === null || layerView === void 0 ? void 0 : layerView.featureEffect) === null || _a === void 0 ? void 0 : _a.filter) || filterMode) {
398
393
  this.handleUpdatedFeatureEffect(layerView, timeExtent);
399
394
  return;
400
395
  }