@esri/solutions-components 0.10.35 → 0.10.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -0
  2. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +3 -3
  4. package/dist/cjs/calcite-block_5.cjs.entry.js +2 -2
  5. package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
  6. package/dist/cjs/{constants-0a4fc296.js → constants-51cf394f.js} +57 -1
  7. package/dist/cjs/crowdsource-manager.cjs.entry.js +25 -29
  8. package/dist/cjs/{downloadUtils-20637f89.js → downloadUtils-76bc7e30.js} +6 -5
  9. package/dist/cjs/feature-list.cjs.entry.js +3 -3
  10. package/dist/cjs/{helpers-415179ad.js → helpers-afcac967.js} +1 -1
  11. package/dist/cjs/{index.es-a242cb45.js → index.es-8336efed.js} +2 -2
  12. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +26 -13
  13. package/dist/cjs/instant-apps-export.cjs.entry.js +1086 -59
  14. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -4
  15. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +10 -5
  16. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +1 -1
  17. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +52 -12
  18. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +9 -3
  19. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +19 -13
  20. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -2
  21. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
  22. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  23. package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
  24. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
  25. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +13 -9
  26. package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
  27. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +11 -9
  28. package/dist/cjs/loader.cjs.js +1 -1
  29. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  30. package/dist/cjs/{popupUtils-d477705b.js → popupUtils-bc762034.js} +1 -1
  31. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  32. package/dist/cjs/solution-item-accordion.cjs.entry.js +7 -3
  33. package/dist/cjs/solutions-components.cjs.js +1 -1
  34. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +27 -29
  35. package/dist/collection/components/map-legend/map-legend.js +1 -0
  36. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +7 -3
  37. package/dist/collection/demos/solution-item-accordion.html +32 -0
  38. package/dist/collection/utils/downloadUtils.js +5 -3
  39. package/dist/collection/utils/downloadUtils.ts +6 -3
  40. package/dist/collection/utils/test/downloadUtils.spec.tsx +10 -12
  41. package/dist/components/crowdsource-manager.js +26 -29
  42. package/dist/components/downloadUtils.js +5 -4
  43. package/dist/components/instant-apps-app-guide.js +28 -14
  44. package/dist/components/instant-apps-export.js +1119 -76
  45. package/dist/components/instant-apps-interactive-legend-classic2.js +8 -4
  46. package/dist/components/instant-apps-interactive-legend-count2.js +6 -3
  47. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +5 -2
  48. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +52 -12
  49. package/dist/components/instant-apps-interactive-legend.js +13 -4
  50. package/dist/components/instant-apps-landing-page.js +19 -13
  51. package/dist/components/instant-apps-language-switcher.js +3 -1
  52. package/dist/components/instant-apps-language-translator2.js +57 -1
  53. package/dist/components/instant-apps-measurement-tool2.js +2 -2
  54. package/dist/components/instant-apps-measurement.js +2 -2
  55. package/dist/components/instant-apps-popover.js +1 -1
  56. package/dist/components/instant-apps-scoreboard.js +1 -1
  57. package/dist/components/instant-apps-sign-in2.js +14 -9
  58. package/dist/components/instant-apps-social-share2.js +2 -2
  59. package/dist/components/instant-apps-splash.js +1 -1
  60. package/dist/components/instant-apps-time-filter.js +11 -9
  61. package/dist/components/map-legend2.js +1 -0
  62. package/dist/components/solution-item-accordion.js +7 -3
  63. package/dist/components/store.js +1 -1
  64. package/dist/esm/basemap-gallery_7.entry.js +1 -0
  65. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  66. package/dist/esm/calcite-alert_5.entry.js +3 -3
  67. package/dist/esm/calcite-block_5.entry.js +2 -2
  68. package/dist/esm/card-manager_3.entry.js +2 -2
  69. package/dist/esm/{constants-045d6a1b.js → constants-886c7c2c.js} +57 -1
  70. package/dist/esm/crowdsource-manager.entry.js +25 -29
  71. package/dist/esm/{downloadUtils-e266e98d.js → downloadUtils-bc7a4ba1.js} +6 -5
  72. package/dist/esm/feature-list.entry.js +3 -3
  73. package/dist/esm/{helpers-f9bf9c0b.js → helpers-91087955.js} +1 -1
  74. package/dist/esm/{index.es-c5f258e2.js → index.es-0d189a34.js} +2 -2
  75. package/dist/esm/instant-apps-app-guide.entry.js +26 -13
  76. package/dist/esm/instant-apps-export.entry.js +1086 -59
  77. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -4
  78. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +10 -5
  79. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +1 -1
  80. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +52 -12
  81. package/dist/esm/instant-apps-interactive-legend.entry.js +9 -3
  82. package/dist/esm/instant-apps-landing-page.entry.js +19 -13
  83. package/dist/esm/instant-apps-language-switcher.entry.js +3 -2
  84. package/dist/esm/instant-apps-language-translator.entry.js +1 -1
  85. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  86. package/dist/esm/instant-apps-popover.entry.js +1 -1
  87. package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
  88. package/dist/esm/instant-apps-sign-in.entry.js +13 -9
  89. package/dist/esm/instant-apps-splash.entry.js +1 -1
  90. package/dist/esm/instant-apps-time-filter.entry.js +11 -9
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/map-select-tools_3.entry.js +2 -2
  93. package/dist/esm/{popupUtils-4570096e.js → popupUtils-03dc398a.js} +1 -1
  94. package/dist/esm/public-notification.entry.js +2 -2
  95. package/dist/esm/solution-item-accordion.entry.js +7 -3
  96. package/dist/esm/solutions-components.js +1 -1
  97. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +0 -5
  98. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +4 -0
  99. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +14 -0
  100. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +9 -0
  101. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +5 -3
  102. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +29 -0
  103. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +8 -0
  104. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +22 -0
  105. package/dist/solutions-components/demos/solution-item-accordion.html +32 -0
  106. package/dist/solutions-components/{p-cb3199f9.entry.js → p-04ab956c.entry.js} +1 -1
  107. package/dist/solutions-components/p-1e14b3d0.entry.js +6 -0
  108. package/dist/solutions-components/p-2542d5c9.entry.js +6 -0
  109. package/dist/solutions-components/{p-70ecc979.entry.js → p-374ddead.entry.js} +1 -1
  110. package/dist/solutions-components/{p-146acd9a.entry.js → p-3fc18283.entry.js} +1 -1
  111. package/dist/solutions-components/p-43699470.entry.js +6 -0
  112. package/dist/solutions-components/p-5585dcd3.entry.js +6 -0
  113. package/dist/solutions-components/{p-3a513c67.entry.js → p-5b3c0418.entry.js} +1 -1
  114. package/dist/solutions-components/{p-f7e7b830.entry.js → p-6438d1ea.entry.js} +1 -1
  115. package/dist/solutions-components/{p-a568af9f.js → p-6f606cdb.js} +1 -1
  116. package/dist/solutions-components/p-720de4db.entry.js +6 -0
  117. package/dist/solutions-components/p-750b3277.entry.js +6 -0
  118. package/dist/solutions-components/p-8779ee41.entry.js +6 -0
  119. package/dist/solutions-components/p-90fc786f.entry.js +6 -0
  120. package/dist/solutions-components/p-97fe6ec5.entry.js +6 -0
  121. package/dist/solutions-components/{p-43165ebd.entry.js → p-9c170b30.entry.js} +1 -1
  122. package/dist/solutions-components/{p-b4c49411.entry.js → p-9c4fef09.entry.js} +1 -1
  123. package/dist/solutions-components/p-a5b751e2.entry.js +6 -0
  124. package/dist/solutions-components/{p-89046451.entry.js → p-aac0c89c.entry.js} +1 -1
  125. package/dist/solutions-components/p-af573e0d.js +6 -0
  126. package/dist/solutions-components/p-bb8b1ee2.entry.js +6 -0
  127. package/dist/solutions-components/{p-b79f296d.entry.js → p-c48be45f.entry.js} +2 -2
  128. package/dist/solutions-components/p-ca3cbd29.entry.js +6 -0
  129. package/dist/solutions-components/p-cd482a33.js +21 -0
  130. package/dist/solutions-components/p-ceb1030b.js +6 -0
  131. package/dist/solutions-components/{p-b86b2664.entry.js → p-d2612c30.entry.js} +1 -1
  132. package/dist/solutions-components/{p-29047e77.entry.js → p-e1391389.entry.js} +1 -1
  133. package/dist/solutions-components/{p-588adf13.entry.js → p-e345f9c4.entry.js} +1 -1
  134. package/dist/solutions-components/p-f3b71784.entry.js +6 -0
  135. package/dist/solutions-components/{p-759d0beb.entry.js → p-f728af86.entry.js} +1 -1
  136. package/dist/solutions-components/{p-46c8015c.js → p-ff9e28d1.js} +30 -30
  137. package/dist/solutions-components/solutions-components.esm.js +1 -1
  138. package/dist/solutions-components/utils/downloadUtils.ts +6 -3
  139. package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +10 -12
  140. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -7
  141. package/package.json +8 -7
  142. package/dist/solutions-components/p-07a194e6.entry.js +0 -6
  143. package/dist/solutions-components/p-14d78748.entry.js +0 -6
  144. package/dist/solutions-components/p-2360802a.js +0 -21
  145. package/dist/solutions-components/p-24e3f09f.entry.js +0 -6
  146. package/dist/solutions-components/p-3a33ef72.entry.js +0 -6
  147. package/dist/solutions-components/p-402301cb.js +0 -6
  148. package/dist/solutions-components/p-41a6f03d.entry.js +0 -6
  149. package/dist/solutions-components/p-4db86c5e.entry.js +0 -6
  150. package/dist/solutions-components/p-5eb9a413.entry.js +0 -6
  151. package/dist/solutions-components/p-750f234e.entry.js +0 -6
  152. package/dist/solutions-components/p-7e97d4d6.entry.js +0 -6
  153. package/dist/solutions-components/p-7eb5d31a.js +0 -6
  154. package/dist/solutions-components/p-90d2aadc.entry.js +0 -6
  155. package/dist/solutions-components/p-b78a4ce7.entry.js +0 -6
  156. package/dist/solutions-components/p-ecf642c2.entry.js +0 -6
  157. package/dist/solutions-components/p-efb4cb43.entry.js +0 -6
@@ -195,9 +195,9 @@ const InstantAppsMeasurementTool = class {
195
195
  this._init();
196
196
  }
197
197
  render() {
198
- return (h(Host, { key: '4357b8a39789ea390bedfcd96f4d21c1a0211484' }, h("div", { key: 'b42cca8e290ba490b8a1afca1818c9d95dfcc32b', class: CSS.base }, h("div", { key: '59be3dd42e293dcd8f7fa3e132fa65cfef12ffa7', ref: el => {
198
+ return (h(Host, { key: 'eabd8e43ae6d095e02bcc99935a2069ba620d66a' }, h("div", { key: '5bb33f7f1785e60e4cde37ee8ba08bae4681751d', class: CSS.base }, h("div", { key: '8826eb9665c17f8eed640e0bcab3cff50a02ec23', ref: el => {
199
199
  this._measureElement = el;
200
- } }), h("div", { key: '2ee6045804e3b7eeb3db1a5bdb5dc5d0cf15a5c8', class: CSS.hide, ref: el => {
200
+ } }), h("div", { key: '0e3b7364403866976f5e6578c08b8fdc50d1e33f', class: CSS.hide, ref: el => {
201
201
  this._coordinateElement = el;
202
202
  } }))));
203
203
  }
@@ -15,7 +15,7 @@ import { u as updateHostInteraction, I as InteractiveContainer } from './interac
15
15
  import { S as SLOTS$2 } from './resources-35208c6c.js';
16
16
  import { l as loadModules, g as getLocaleComponentStrings } from './locale-0d06fca0.js';
17
17
  import { a as getAllLayers, g as getLayerOrTable } from './mapViewUtils-f54edae3.js';
18
- import { P as PopupUtils } from './popupUtils-4570096e.js';
18
+ import { P as PopupUtils } from './popupUtils-03dc398a.js';
19
19
  import './guid-b0fb1de3.js';
20
20
  import './resources-8e2ed936.js';
21
21
  import './browser-b67d8df6.js';
@@ -24,9 +24,9 @@ import './observers-c83631e8.js';
24
24
  import './esri-loader-c6842c6b.js';
25
25
  import './_commonjsHelpers-089957fe.js';
26
26
  import './interfaces-659e3836.js';
27
- import './downloadUtils-e266e98d.js';
28
- import './solution-resource-f5809979.js';
27
+ import './downloadUtils-bc7a4ba1.js';
29
28
  import './index-e14fade9.js';
29
+ import './solution-resource-f5809979.js';
30
30
  import './restHelpersGet-48113381.js';
31
31
 
32
32
  /*!
@@ -2706,10 +2706,10 @@ const InstantAppsSocialShare = class {
2706
2706
  const content = this.copied && this.mode === 'popover' ? (this.renderSuccess()) : (h("div", { class: CSS.dialogContent }, this.renderOptions(), this.displayTipText ? this.renderTip() : null, this.embed ? this.renderEmbed() : null));
2707
2707
  const layoutClass = this.shareIconsLayout === 'vertical' ? ` ${CSS.layout.vertical}` : ` ${CSS.layout.horizontal}`;
2708
2708
  const mode = ` calcite-mode-${!!this.el.closest(CALCITE_MODE_DARK) ? 'dark' : 'light'}`;
2709
- const dialogContent = (h("div", { key: 'b23e14b1ba2ca6f64137f676aae9f19fde42260d', ref: el => (this.dialogContentRef = el), class: `${CSS.dialog}${layoutClass}${mode}` }, content));
2709
+ const dialogContent = (h("div", { key: 'f205f0e614bc6c4a645f7047951979f88b8c61e3', ref: el => (this.dialogContentRef = el), class: `${CSS.dialog}${layoutClass}${mode}` }, content));
2710
2710
  const defaultOffset = 6;
2711
2711
  const offsetDistance = this.removePopoverOffset ? 0 : defaultOffset;
2712
- return (h(Host, { key: '5143e472b8381d068e6cc6f155b5c65d3aaf4c53' }, this.mode === 'popover'
2712
+ return (h(Host, { key: 'efe99545244d7b5f9ae4065bba069c25d45beb0a' }, this.mode === 'popover'
2713
2713
  ? [
2714
2714
  h("calcite-popover", { ref: (el) => (this.popoverRef = el), label: (_b = (_a = this.messages) === null || _a === void 0 ? void 0 : _a.share) === null || _b === void 0 ? void 0 : _b.label, referenceElement: "shareButton", placement: "bottom-start", scale: this.scale, "overlay-positioning": this.popoverPositioning, "offset-distance": offsetDistance, "pointer-disabled": this.removePopoverOffset }, dialogContent),
2715
2715
  this.renderButton(),
@@ -6,12 +6,12 @@
6
6
  import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-904bc599.js';
7
7
  import { g as getLocaleComponentStrings, l as loadModules } from './locale-0d06fca0.js';
8
8
  import { g as getLayerOrTable, q as queryFeaturesByID, e as goToSelection, f as queryAllIds, i as queryAllOidsWithQueryFeatures, j as queryFeaturesByGlobalID, c as getFeatureLayerView } from './mapViewUtils-f54edae3.js';
9
- import { d as downloadCSV } from './downloadUtils-e266e98d.js';
9
+ import { d as downloadCSV } from './downloadUtils-bc7a4ba1.js';
10
10
  import './esri-loader-c6842c6b.js';
11
11
  import './_commonjsHelpers-089957fe.js';
12
12
  import './interfaces-659e3836.js';
13
- import './solution-resource-f5809979.js';
14
13
  import './index-e14fade9.js';
14
+ import './solution-resource-f5809979.js';
15
15
  import './restHelpersGet-48113381.js';
16
16
 
17
17
  const cardManagerCss = ":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";
@@ -123,6 +123,7 @@ const LANGUAGE_DATA = {
123
123
  id: {
124
124
  language: "Indonesian",
125
125
  translated: "Bahasa Indonesia",
126
+ supportsAutoTranslate: true,
126
127
  },
127
128
  it: {
128
129
  language: "Italian",
@@ -229,6 +230,7 @@ const LANGUAGE_DATA = {
229
230
  af: {
230
231
  language: "Afrikaans",
231
232
  translated: "Afrikaans",
233
+ supportsAutoTranslate: true,
232
234
  },
233
235
  ak: {
234
236
  language: "Akan",
@@ -237,10 +239,12 @@ const LANGUAGE_DATA = {
237
239
  sq: {
238
240
  language: "Albanian",
239
241
  translated: "Shqip",
242
+ supportsAutoTranslate: true,
240
243
  },
241
244
  am: {
242
245
  language: "Amharic",
243
246
  translated: "አማርኛ",
247
+ supportsAutoTranslate: true,
244
248
  },
245
249
  an: {
246
250
  language: "Aragonese",
@@ -249,10 +253,12 @@ const LANGUAGE_DATA = {
249
253
  hy: {
250
254
  language: "Armenian",
251
255
  translated: "Հայերեն",
256
+ supportsAutoTranslate: true,
252
257
  },
253
258
  as: {
254
259
  language: "Assamese",
255
260
  translated: "অসমীয়া",
261
+ supportsAutoTranslate: true,
256
262
  },
257
263
  av: {
258
264
  language: "Avaric",
@@ -277,10 +283,12 @@ const LANGUAGE_DATA = {
277
283
  ba: {
278
284
  language: "Bashkir",
279
285
  translated: "Башҡорт теле",
286
+ supportsAutoTranslate: true,
280
287
  },
281
288
  eu: {
282
289
  language: "Basque",
283
290
  translated: "euskara",
291
+ supportsAutoTranslate: true,
284
292
  },
285
293
  be: {
286
294
  language: "Belarusian",
@@ -341,6 +349,7 @@ const LANGUAGE_DATA = {
341
349
  dv: {
342
350
  language: "Divehi",
343
351
  translated: "ދިވެހި",
352
+ supportsAutoTranslate: true,
344
353
  },
345
354
  eo: {
346
355
  language: "Esperanto",
@@ -353,6 +362,7 @@ const LANGUAGE_DATA = {
353
362
  fo: {
354
363
  language: "Faroese",
355
364
  translated: "føroyskt",
365
+ supportsAutoTranslate: true,
356
366
  },
357
367
  fj: {
358
368
  language: "Fijian",
@@ -365,10 +375,12 @@ const LANGUAGE_DATA = {
365
375
  gl: {
366
376
  language: "Galician",
367
377
  translated: "galego",
378
+ supportsAutoTranslate: true,
368
379
  },
369
380
  ka: {
370
381
  language: "Georgian",
371
382
  translated: "ქართული",
383
+ supportsAutoTranslate: true,
372
384
  },
373
385
  gn: {
374
386
  language: "Guarani",
@@ -377,14 +389,17 @@ const LANGUAGE_DATA = {
377
389
  gu: {
378
390
  language: "Gujarati",
379
391
  translated: "ગુજરાતી",
392
+ supportsAutoTranslate: true,
380
393
  },
381
394
  ht: {
382
- language: "Haitian",
395
+ language: "Haitian Creole",
383
396
  translated: "Kreyòl Ayisyen",
397
+ supportsAutoTranslate: true,
384
398
  },
385
399
  ha: {
386
400
  language: "Hausa",
387
401
  translated: "هَوُسَ",
402
+ supportsAutoTranslate: true,
388
403
  },
389
404
  hz: {
390
405
  language: "Herero",
@@ -401,6 +416,7 @@ const LANGUAGE_DATA = {
401
416
  is: {
402
417
  language: "Icelandic",
403
418
  translated: "Íslenska",
419
+ supportsAutoTranslate: true,
404
420
  },
405
421
  io: {
406
422
  language: "Ido",
@@ -409,6 +425,7 @@ const LANGUAGE_DATA = {
409
425
  ig: {
410
426
  language: "Igbo",
411
427
  translated: "Asụsụ Igbo",
428
+ supportsAutoTranslate: true,
412
429
  },
413
430
  ia: {
414
431
  language: "Interlingua",
@@ -421,6 +438,7 @@ const LANGUAGE_DATA = {
421
438
  iu: {
422
439
  language: "Inuktitut",
423
440
  translated: "ᐃᓄᒃᑎᑐᑦ",
441
+ supportsAutoTranslate: true,
424
442
  },
425
443
  ip: {
426
444
  language: "Inupiaq",
@@ -429,6 +447,7 @@ const LANGUAGE_DATA = {
429
447
  ga: {
430
448
  language: "Irish",
431
449
  translated: "Gaeilge",
450
+ supportsAutoTranslate: true,
432
451
  },
433
452
  jv: {
434
453
  language: "Javanese",
@@ -441,6 +460,7 @@ const LANGUAGE_DATA = {
441
460
  kn: {
442
461
  language: "Kannada",
443
462
  translated: "ಕನ್ನಡ",
463
+ supportsAutoTranslate: true,
444
464
  },
445
465
  kr: {
446
466
  language: "Kanuri",
@@ -449,14 +469,17 @@ const LANGUAGE_DATA = {
449
469
  ks: {
450
470
  language: "Kashmiri",
451
471
  translated: "कश्मीरी",
472
+ supportsAutoTranslate: true,
452
473
  },
453
474
  kk: {
454
475
  language: "Kazakh",
455
476
  translated: "қазақ тілі",
477
+ supportsAutoTranslate: true,
456
478
  },
457
479
  km: {
458
480
  language: "Khmer",
459
481
  translated: "ខ្មែរ",
482
+ supportsAutoTranslate: true,
460
483
  },
461
484
  ki: {
462
485
  language: "Kikuyu",
@@ -465,6 +488,7 @@ const LANGUAGE_DATA = {
465
488
  rw: {
466
489
  language: "Kinyarwanda",
467
490
  translated: "Kinyarwanda",
491
+ supportsAutoTranslate: true,
468
492
  },
469
493
  rn: {
470
494
  language: "Kirundi",
@@ -481,6 +505,7 @@ const LANGUAGE_DATA = {
481
505
  ku: {
482
506
  language: "Kurdish",
483
507
  translated: "Kurdî",
508
+ supportsAutoTranslate: true,
484
509
  },
485
510
  kj: {
486
511
  language: "Kwanyama",
@@ -493,6 +518,7 @@ const LANGUAGE_DATA = {
493
518
  lo: {
494
519
  language: "Lao",
495
520
  translated: "ພາສາລາວ",
521
+ supportsAutoTranslate: true,
496
522
  },
497
523
  la: {
498
524
  language: "Latin",
@@ -521,22 +547,27 @@ const LANGUAGE_DATA = {
521
547
  mk: {
522
548
  language: "Macedonian",
523
549
  translated: "македонски јазик",
550
+ supportsAutoTranslate: true,
524
551
  },
525
552
  mg: {
526
553
  language: "Malagasy",
527
554
  translated: "fiteny malagasy",
555
+ supportsAutoTranslate: true,
528
556
  },
529
557
  ms: {
530
558
  language: "Malay",
531
559
  translated: "Bahasa Melayu",
560
+ supportsAutoTranslate: true,
532
561
  },
533
562
  ml: {
534
563
  language: "Malayalam",
535
564
  translated: "മലയാളം",
565
+ supportsAutoTranslate: true,
536
566
  },
537
567
  mt: {
538
568
  language: "Maltese",
539
569
  translated: "Malti",
570
+ supportsAutoTranslate: true,
540
571
  },
541
572
  gv: {
542
573
  language: "Manx",
@@ -545,10 +576,12 @@ const LANGUAGE_DATA = {
545
576
  mi: {
546
577
  language: "Maori",
547
578
  translated: "te reo Māori",
579
+ supportsAutoTranslate: true,
548
580
  },
549
581
  mr: {
550
582
  language: "Marathi",
551
583
  translated: "मराठी",
584
+ supportsAutoTranslate: true,
552
585
  },
553
586
  mh: {
554
587
  language: "Marshallese",
@@ -573,6 +606,7 @@ const LANGUAGE_DATA = {
573
606
  ne: {
574
607
  language: "Nepali",
575
608
  translated: "नेपाली",
609
+ supportsAutoTranslate: true,
576
610
  },
577
611
  nd: {
578
612
  language: "North Ndebele",
@@ -605,6 +639,7 @@ const LANGUAGE_DATA = {
605
639
  or: {
606
640
  language: "Oriya",
607
641
  translated: "ଓଡ଼ିଆ",
642
+ supportsAutoTranslate: true,
608
643
  },
609
644
  om: {
610
645
  language: "Oromo",
@@ -625,10 +660,12 @@ const LANGUAGE_DATA = {
625
660
  ps: {
626
661
  language: "Pashto",
627
662
  translated: "پښتو",
663
+ supportsAutoTranslate: true,
628
664
  },
629
665
  fa: {
630
666
  language: "Persian",
631
667
  translated: "فارسی",
668
+ supportsAutoTranslate: true,
632
669
  },
633
670
  qu: {
634
671
  language: "Quechua",
@@ -641,6 +678,7 @@ const LANGUAGE_DATA = {
641
678
  sm: {
642
679
  language: "Samoan",
643
680
  translated: "gagana fa'a Samoa",
681
+ supportsAutoTranslate: true,
644
682
  },
645
683
  sg: {
646
684
  language: "Sango",
@@ -665,14 +703,17 @@ const LANGUAGE_DATA = {
665
703
  sd: {
666
704
  language: "Sindhi",
667
705
  translated: "सिन्धी",
706
+ supportsAutoTranslate: true,
668
707
  },
669
708
  si: {
670
709
  language: "Sinhala",
671
710
  translated: "සිංහල",
711
+ supportsAutoTranslate: true,
672
712
  },
673
713
  so: {
674
714
  language: "Somali",
675
715
  translated: "Soomaaliga",
716
+ supportsAutoTranslate: true,
676
717
  },
677
718
  nr: {
678
719
  language: "South Ndebele",
@@ -689,6 +730,7 @@ const LANGUAGE_DATA = {
689
730
  sw: {
690
731
  language: "Swahili",
691
732
  translated: "Kiswahili",
733
+ supportsAutoTranslate: true,
692
734
  },
693
735
  ss: {
694
736
  language: "Swati",
@@ -701,6 +743,7 @@ const LANGUAGE_DATA = {
701
743
  ty: {
702
744
  language: "Tahitian",
703
745
  translated: "Reo Tahiti",
746
+ supportsAutoTranslate: true,
704
747
  },
705
748
  tg: {
706
749
  language: "Tajik",
@@ -709,26 +752,32 @@ const LANGUAGE_DATA = {
709
752
  ta: {
710
753
  language: "Tamil",
711
754
  translated: "தமிழ்",
755
+ supportsAutoTranslate: true,
712
756
  },
713
757
  tt: {
714
758
  language: "Tatar",
715
759
  translated: "татар теле",
760
+ supportsAutoTranslate: true,
716
761
  },
717
762
  te: {
718
763
  language: "Telugu",
719
764
  translated: "తెలుగు",
765
+ supportsAutoTranslate: true,
720
766
  },
721
767
  bo: {
722
768
  language: "Tibetan",
723
769
  translated: "བོད་ཡིག",
770
+ supportsAutoTranslate: true,
724
771
  },
725
772
  ti: {
726
773
  language: "Tigrinya",
727
774
  translated: "ትግርኛ",
775
+ supportsAutoTranslate: true,
728
776
  },
729
777
  to: {
730
778
  language: "Tonga",
731
779
  translated: "faka Tonga",
780
+ supportsAutoTranslate: true,
732
781
  },
733
782
  ts: {
734
783
  language: "Tsonga",
@@ -741,6 +790,7 @@ const LANGUAGE_DATA = {
741
790
  tk: {
742
791
  language: "Turkmen",
743
792
  translated: "Türkmen",
793
+ supportsAutoTranslate: true,
744
794
  },
745
795
  tw: {
746
796
  language: "Twi",
@@ -753,10 +803,12 @@ const LANGUAGE_DATA = {
753
803
  ur: {
754
804
  language: "Urdu",
755
805
  translated: "اردو",
806
+ supportsAutoTranslate: true,
756
807
  },
757
808
  uz: {
758
809
  language: "Uzbek",
759
810
  translated: "O'zbek",
811
+ supportsAutoTranslate: true,
760
812
  },
761
813
  ve: {
762
814
  language: "Venda",
@@ -773,6 +825,7 @@ const LANGUAGE_DATA = {
773
825
  cy: {
774
826
  language: "Welsh",
775
827
  translated: "Cymraeg",
828
+ supportsAutoTranslate: true,
776
829
  },
777
830
  fy: {
778
831
  language: "Western Frisian",
@@ -785,6 +838,7 @@ const LANGUAGE_DATA = {
785
838
  xh: {
786
839
  language: "Xhosa",
787
840
  translated: "isiXhosa",
841
+ supportsAutoTranslate: true,
788
842
  },
789
843
  yi: {
790
844
  language: "Yiddish",
@@ -793,6 +847,7 @@ const LANGUAGE_DATA = {
793
847
  yo: {
794
848
  language: "Yoruba",
795
849
  translated: "Yorùbá",
850
+ supportsAutoTranslate: true,
796
851
  },
797
852
  za: {
798
853
  language: "Zhuang",
@@ -801,6 +856,7 @@ const LANGUAGE_DATA = {
801
856
  zu: {
802
857
  language: "Zulu",
803
858
  translated: "isiZulu",
859
+ supportsAutoTranslate: true,
804
860
  },
805
861
  },
806
862
  };
@@ -131,6 +131,22 @@ const CrowdsourceManager = class {
131
131
  // Watch handlers
132
132
  //
133
133
  //--------------------------------------------------------------------------
134
+ /**
135
+ * Adjust layout based on current appLayout value
136
+ */
137
+ appLayoutWatchHandler(newAppLayout, oldAppLayout) {
138
+ if (newAppLayout !== oldAppLayout) {
139
+ this._setActiveLayout(newAppLayout);
140
+ // update the layer if table selected while switching to map view
141
+ if (this.appLayout === "mapView" && this._layer.isTable) {
142
+ void this._mapCard.updateLayer();
143
+ }
144
+ if (this._isMapViewOnLoad) {
145
+ void this._layerTable.refresh();
146
+ this._isMapViewOnLoad = false;
147
+ }
148
+ }
149
+ }
134
150
  /**
135
151
  * When true the map zoom tools will be available
136
152
  */
@@ -199,7 +215,7 @@ const CrowdsourceManager = class {
199
215
  layer && await layer.when(() => {
200
216
  // on render if no layer is present and only one table is present in map and app is in map view layer then change it to split layout
201
217
  if (this._layerIds.length === 0 && this.appLayout === 'mapView' && layer.isTable) {
202
- this._changeLayout('splitView');
218
+ this.appLayout = "splitView";
203
219
  }
204
220
  this._layer = layer;
205
221
  this._initLayerExpressions();
@@ -232,7 +248,7 @@ const CrowdsourceManager = class {
232
248
  render() {
233
249
  // only avoid border when we have a header color that is not white
234
250
  const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
235
- return (h(Host, { key: 'ddb8bb35d74ab89ffd62d7bd0468b5a757fa5ba1' }, h("calcite-shell", { key: '74d941a3b1d4149a57c88cea263a2fd7e2b4f840', class: "position-relative" }, h("calcite-panel", { key: '3ff44942eab43c6f3a1cd92c918c0e2bae3d500a', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
251
+ return (h(Host, { key: 'ace73bfa1aa7d460f1cba60d13e94c4f47f77bd0' }, h("calcite-shell", { key: 'f14e70be762bf236be566111b45e40a42f0997f7', class: "position-relative" }, h("calcite-panel", { key: '0dde9426295a780b6a12cd98513f655914c0dab5', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
236
252
  }
237
253
  /**
238
254
  * Called after each render
@@ -465,10 +481,9 @@ const CrowdsourceManager = class {
465
481
  const cardManagerHeight = isTableLayout && this.mapInfos?.length > 1 ? "adjusted-height-100-51" : isMapLayout || isTableLayout ? "height-full" : (this._numSelected > 0 && !this._isMobile) ? "height-50" : !this._showInformationHeader ? "adjusted-height-50_25" : !this._isPortraitMobile ? "height-50" : "height-full";
466
482
  const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
467
483
  return (h("div", { class: `width-50 height-full ${themeClass}` }, h("card-manager", { class: `${cardManagerHeight} width-full`, customInfoText: this.customInfoText, enableCreateFeatures: this._enableCreateFeatures && !this._isMobile, enableEditGeometry: this?._mapInfo?.enableEditGeometry, isMobile: this._isPortraitMobile, layer: this._layer, mapView: this?._mapView, onBackFromCreateWorkFlow: () => {
468
- this._changeLayout(this.appLayout);
469
484
  this._showInformationHeader = true;
470
485
  }, onCreateWorkFlowStarted: () => {
471
- this._changeLayout(this._layer.isTable ? "tableView" : "mapView");
486
+ this.appLayout = this._layer.isTable ? "tableView" : "mapView";
472
487
  this._showInformationHeader = false;
473
488
  }, onFeatureOrRecordSubmitted: () => void this._layerTable.refresh(), selectedFeaturesIds: this._layerTable?.selectedIds, selectingFeatureFromMap: this.appLayout === "mapView", zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
474
489
  }
@@ -506,7 +521,7 @@ const CrowdsourceManager = class {
506
521
  const icon = this._getDividerIcon(layoutMode, panelOpen);
507
522
  const tooltip = panelOpen ? this._translations.close : this._translations.open;
508
523
  const id = "toggle-layout";
509
- return (h(Fragment, null, h("calcite-action", { active: this.appLayout === 'splitView', class: "toggle-node", icon: "browser", id: "browser-action", onClick: () => { this._changeLayout('splitView'); }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "browser-action" }, h("span", null, this._translations.splitView)), h("calcite-action", { active: this.appLayout === 'tableView', class: "toggle-node", icon: "dock-left", id: "dock-left-action", onClick: () => { this._changeLayout('tableView'); }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "dock-left-action" }, h("span", null, this._translations.tableView)), h("calcite-action", { active: this.appLayout === 'mapView', class: "toggle-node", disabled: this._layerIds?.length === 0, icon: "browser-map", id: "browser-map-action", onClick: () => { this._changeLayout('mapView'); }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "browser-map-action" }, h("span", null, this._translations.mapView)), h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), slot: "actions-end", text: "" }), h("calcite-tooltip", { placement: "bottom", "reference-element": id }, h("span", null, tooltip))));
524
+ return (h(Fragment, null, h("calcite-action", { active: this.appLayout === 'splitView', class: "toggle-node", icon: "browser", id: "browser-action", onClick: () => { this.appLayout = "splitView"; }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "browser-action" }, h("span", null, this._translations.splitView)), h("calcite-action", { active: this.appLayout === 'tableView', class: "toggle-node", icon: "dock-left", id: "dock-left-action", onClick: () => { this.appLayout = "tableView"; }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "dock-left-action" }, h("span", null, this._translations.tableView)), h("calcite-action", { active: this.appLayout === 'mapView', class: "toggle-node", disabled: this._layerIds?.length === 0, icon: "browser-map", id: "browser-map-action", onClick: () => { this.appLayout = "mapView"; }, text: "" }), h("calcite-tooltip", { placement: "right", "reference-element": "browser-map-action" }, h("span", null, this._translations.mapView)), h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), slot: "actions-end", text: "" }), h("calcite-tooltip", { placement: "bottom", "reference-element": id }, h("span", null, tooltip))));
510
525
  }
511
526
  /**
512
527
  * Show filter component in modal
@@ -579,7 +594,7 @@ const CrowdsourceManager = class {
579
594
  if (this._isMobile) {
580
595
  this.showHideMapPopupAndTable(!this._isMobile);
581
596
  this._isPortraitMobile = !!window.matchMedia("(orientation: portrait)").matches;
582
- this._changeLayout('splitView');
597
+ this.appLayout = "splitView";
583
598
  }
584
599
  else {
585
600
  this._isPortraitMobile = false;
@@ -595,34 +610,14 @@ const CrowdsourceManager = class {
595
610
  _toggleLayout() {
596
611
  this._panelOpen = !this._panelOpen;
597
612
  }
598
- /**
599
- * Changes the layout mode
600
- * @param appLayout selected active app layout
601
- *
602
- * @protected
603
- */
604
- _changeLayout(appLayout) {
605
- if (this.appLayout !== appLayout) {
606
- this._setActiveLayout(appLayout);
607
- this.appLayout = appLayout;
608
- // update the layer if table selected while switching to map view
609
- if (this.appLayout === "mapView" && this._layer.isTable) {
610
- void this._mapCard.updateLayer();
611
- }
612
- if (this._isMapViewOnLoad) {
613
- void this._layerTable.refresh();
614
- this._isMapViewOnLoad = false;
615
- }
616
- }
617
- }
618
613
  /**
619
614
  * shows the map in card view
620
615
  *
621
616
  * @protected
622
617
  */
623
618
  _showMapInCardView() {
624
- if (this.appLayout === 'mapView') {
625
- const fullMapView = document.getElementById('full-map-view').childNodes[0];
619
+ if (this.appLayout !== "mapView") {
620
+ const fullMapView = document.getElementById('full-map-view')?.childNodes[0];
626
621
  const splitMapClass = document.getElementById('card-mapView');
627
622
  if (fullMapView) {
628
623
  splitMapClass.appendChild(fullMapView);
@@ -635,7 +630,7 @@ const CrowdsourceManager = class {
635
630
  * @protected
636
631
  */
637
632
  _showMapInFullView() {
638
- const splitMap = document.getElementById('card-mapView').childNodes[0];
633
+ const splitMap = document.getElementById('card-mapView')?.childNodes[0];
639
634
  const fullMapViewClass = document.getElementById('full-map-view');
640
635
  if (splitMap) {
641
636
  fullMapViewClass.appendChild(splitMap);
@@ -720,6 +715,7 @@ const CrowdsourceManager = class {
720
715
  this._translations = messages[0];
721
716
  }
722
717
  static get watchers() { return {
718
+ "appLayout": ["appLayoutWatchHandler"],
723
719
  "enableZoom": ["enableZoomWatchHandler"],
724
720
  "hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
725
721
  }; }
@@ -7,8 +7,8 @@ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-089957fe.js';
7
7
  import { a as getAssetPath } from './index-904bc599.js';
8
8
  import { l as loadModules } from './locale-0d06fca0.js';
9
9
  import { q as queryFeaturesByID } from './mapViewUtils-f54edae3.js';
10
+ import { S as Sanitizer } from './index-e14fade9.js';
10
11
  import './solution-resource-f5809979.js';
11
- import './index-e14fade9.js';
12
12
  import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-48113381.js';
13
13
 
14
14
  /** @license
@@ -1585,7 +1585,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1585
1585
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1586
1586
  * ====================================================================
1587
1587
  */
1588
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-c5f258e2.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1588
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-0d189a34.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1589
1589
  /** ====================================================================
1590
1590
  * @license
1591
1591
  * jsPDF XMP metadata plugin
@@ -2541,12 +2541,13 @@ function _cleanupLabel(labelText) {
2541
2541
  labelText = labelText.replace(/<\/p>/gi, "");
2542
2542
  // Replace \n with the line separator character
2543
2543
  labelText = labelText.replace(/\n/gi, "|");
2544
- // Remove remaining HTML tags, replace 0xA0 that popup uses for spaces, and replace some char representations
2544
+ // Remove tricky stuff
2545
+ const sanitizer = new Sanitizer();
2546
+ labelText = sanitizer.sanitize(labelText);
2547
+ // Remove remaining HTML tags, replace 0xA0 that popup uses for spaces, and replace &nbsp;
2545
2548
  labelText = labelText
2546
2549
  .replace(/<[\s.]*[^<>]*\/?>/gi, "")
2547
2550
  .replace(/\xA0/gi, " ")
2548
- .replace(/&lt;/gi, "<")
2549
- .replace(/&gt;/gi, ">")
2550
2551
  .replace(/&nbsp;/gi, " ");
2551
2552
  // Trim each line
2552
2553
  labelText = labelText.replace(/\s*\|\s*/g, "|");
@@ -5,13 +5,13 @@
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, g as getElement, h } from './index-904bc599.js';
7
7
  import { l as loadModules, g as getLocaleComponentStrings } from './locale-0d06fca0.js';
8
- import { P as PopupUtils } from './popupUtils-4570096e.js';
8
+ import { P as PopupUtils } from './popupUtils-03dc398a.js';
9
9
  import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils-f54edae3.js';
10
10
  import './esri-loader-c6842c6b.js';
11
11
  import './_commonjsHelpers-089957fe.js';
12
- import './downloadUtils-e266e98d.js';
13
- import './solution-resource-f5809979.js';
12
+ import './downloadUtils-bc7a4ba1.js';
14
13
  import './index-e14fade9.js';
14
+ import './solution-resource-f5809979.js';
15
15
  import './restHelpersGet-48113381.js';
16
16
  import './interfaces-659e3836.js';
17
17
 
@@ -79,7 +79,7 @@ async function getMergedEffect(presetLayerEffect, featureLayerView, type) {
79
79
  return mergedEffect;
80
80
  }
81
81
 
82
- const InteractiveLegendStore = createStore({ data: {}, relationshipRampExpandStates: {} });
82
+ const InteractiveLegendStore = createStore({ data: {}, relationshipRampExpandStates: {}, compact: false });
83
83
  const interactiveLegendState = InteractiveLegendStore.state;
84
84
  const store = InteractiveLegendStore;
85
85