@esri/solutions-components 0.10.9 → 0.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (317) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-alert_4.cjs.entry.js +6 -6
  5. package/dist/cjs/calcite-block_5.cjs.entry.js +4 -4
  6. package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -2
  7. package/dist/cjs/calcite-flow_6.cjs.entry.js +2 -2
  8. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +5 -5
  9. package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
  10. package/dist/cjs/{common-61b41813.js → common-4d4cf291.js} +1 -1
  11. package/dist/cjs/consent-manager.cjs.entry.js +2 -2
  12. package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
  13. package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
  14. package/dist/cjs/{downloadUtils-b757205e.js → downloadUtils-60ee99e0.js} +4 -4
  15. package/dist/cjs/feature-list.cjs.entry.js +6 -6
  16. package/dist/cjs/{helpers-1deec961.js → helpers-6f7660d4.js} +1 -1
  17. package/dist/cjs/{index.es-6c8b7d64.js → index.es-38913dfa.js} +5 -5
  18. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  19. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  20. package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
  21. package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
  22. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  28. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +5 -5
  29. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
  30. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
  32. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  33. package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
  34. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
  35. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
  36. package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
  37. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +4 -4
  38. package/dist/cjs/{languageSwitcher-dc2dd354.js → languageSwitcher-f0bb94fa.js} +1 -1
  39. package/dist/cjs/{languageUtil-a3e1eafd.js → languageUtil-f22ce913.js} +1 -1
  40. package/dist/cjs/layout-manager.cjs.entry.js +2 -2
  41. package/dist/cjs/{loadModules-8567855e.js → loadModules-36d49819.js} +1 -1
  42. package/dist/cjs/{locale-a1bcb6eb.js → locale-239118c6.js} +2 -2
  43. package/dist/cjs/{locale-4e7fe921.js → locale-2dc1252d.js} +1 -1
  44. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  45. package/dist/cjs/{popupUtils-2b5ec788.js → popupUtils-0cabaa1f.js} +2 -2
  46. package/dist/cjs/public-notification.cjs.entry.js +5 -5
  47. package/dist/cjs/{restHelpersGet-bf484fda.js → restHelpersGet-88ba0e25.js} +20 -24
  48. package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
  49. package/dist/cjs/solution-contents_3.cjs.entry.js +6 -6
  50. package/dist/cjs/{solution-resource-57cf345b.js → solution-resource-16c7510c.js} +1 -1
  51. package/dist/cjs/{solution-store-71bb46fa.js → solution-store-747a28ab.js} +58 -65
  52. package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
  53. package/dist/cjs/store-manager.cjs.entry.js +4 -4
  54. package/dist/cjs/{templates-e4b98319.js → templates-2f44c01b.js} +2 -2
  55. package/dist/cjs/{utils-b43fe04f.js → utils-e486aa01.js} +1 -1
  56. package/dist/components/restHelpersGet.js +19 -23
  57. package/dist/components/solution-resource.js +1 -1
  58. package/dist/components/solution-store.js +56 -63
  59. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  60. package/dist/esm/buffer-tools_3.entry.js +2 -2
  61. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  62. package/dist/esm/calcite-alert_4.entry.js +6 -6
  63. package/dist/esm/calcite-block_5.entry.js +4 -4
  64. package/dist/esm/calcite-combobox_3.entry.js +2 -2
  65. package/dist/esm/calcite-flow_6.entry.js +2 -2
  66. package/dist/esm/calcite-shell-panel_14.entry.js +5 -5
  67. package/dist/esm/card-manager_3.entry.js +5 -5
  68. package/dist/esm/{common-1618d62f.js → common-3b99e350.js} +1 -1
  69. package/dist/esm/consent-manager.entry.js +2 -2
  70. package/dist/esm/crowdsource-manager.entry.js +2 -2
  71. package/dist/esm/crowdsource-reporter.entry.js +2 -2
  72. package/dist/esm/{downloadUtils-16c51b10.js → downloadUtils-51c2c502.js} +4 -4
  73. package/dist/esm/feature-list.entry.js +6 -6
  74. package/dist/esm/{helpers-2298687e.js → helpers-62213648.js} +1 -1
  75. package/dist/esm/{index.es-d950915a.js → index.es-afea294f.js} +5 -5
  76. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  77. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  78. package/dist/esm/instant-apps-create.entry.js +4 -4
  79. package/dist/esm/instant-apps-export-views.entry.js +4 -4
  80. package/dist/esm/instant-apps-export.entry.js +4 -4
  81. package/dist/esm/instant-apps-header.entry.js +2 -2
  82. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  83. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  84. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  85. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  86. package/dist/esm/instant-apps-interactive-legend.entry.js +5 -5
  87. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
  88. package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
  89. package/dist/esm/instant-apps-language-translator.entry.js +6 -6
  90. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  91. package/dist/esm/instant-apps-popover.entry.js +4 -4
  92. package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
  93. package/dist/esm/instant-apps-sign-in.entry.js +4 -4
  94. package/dist/esm/instant-apps-splash.entry.js +4 -4
  95. package/dist/esm/instant-apps-time-filter.entry.js +4 -4
  96. package/dist/esm/{languageSwitcher-9db90f1e.js → languageSwitcher-b665499d.js} +1 -1
  97. package/dist/esm/{languageUtil-2b6e191a.js → languageUtil-a3e6adf6.js} +1 -1
  98. package/dist/esm/layout-manager.entry.js +2 -2
  99. package/dist/esm/{loadModules-03ba7abe.js → loadModules-9c062d08.js} +1 -1
  100. package/dist/esm/{locale-adb5ff0b.js → locale-35ebf4af.js} +2 -2
  101. package/dist/esm/{locale-7162b55a.js → locale-e758c2ee.js} +1 -1
  102. package/dist/esm/map-select-tools_3.entry.js +5 -5
  103. package/dist/esm/{popupUtils-44f11275.js → popupUtils-d4fe0b41.js} +2 -2
  104. package/dist/esm/public-notification.entry.js +5 -5
  105. package/dist/esm/{restHelpersGet-0a15c2f4.js → restHelpersGet-788d7f7b.js} +20 -24
  106. package/dist/esm/solution-configuration.entry.js +6 -6
  107. package/dist/esm/solution-contents_3.entry.js +6 -6
  108. package/dist/esm/{solution-resource-ab63a236.js → solution-resource-966f8511.js} +1 -1
  109. package/dist/esm/{solution-store-e2690620.js → solution-store-0586e891.js} +58 -65
  110. package/dist/esm/spatial-ref.entry.js +4 -4
  111. package/dist/esm/store-manager.entry.js +4 -4
  112. package/dist/esm/{templates-9556eb87.js → templates-9330d7b8.js} +2 -2
  113. package/dist/esm/{utils-178e7afe.js → utils-72a48b01.js} +1 -1
  114. package/dist/solutions-components/{p-618bafec.entry.js → p-0034f196.entry.js} +1 -1
  115. package/dist/solutions-components/{p-edd70ba3.entry.js → p-00786a30.entry.js} +1 -1
  116. package/dist/solutions-components/{p-00b26aac.js → p-01cc2423.js} +2 -2
  117. package/dist/solutions-components/{p-d7868dd4.js → p-09b47605.js} +1 -1
  118. package/dist/solutions-components/{p-7bfecd07.js → p-09d62c22.js} +1 -1
  119. package/dist/solutions-components/{p-0abc1354.entry.js → p-104fa4cf.entry.js} +1 -1
  120. package/dist/solutions-components/{p-38cfa3cd.entry.js → p-1176ec70.entry.js} +1 -1
  121. package/dist/solutions-components/{p-8a6fa619.entry.js → p-13f83a1a.entry.js} +1 -1
  122. package/dist/solutions-components/{p-4b3cc01f.js → p-2923d5ed.js} +2 -2
  123. package/dist/solutions-components/{p-4848b48f.entry.js → p-29962ae5.entry.js} +1 -1
  124. package/dist/solutions-components/{p-a8e6463b.js → p-2cff27c5.js} +2 -2
  125. package/dist/solutions-components/{p-5b818d29.entry.js → p-2d03b0d7.entry.js} +1 -1
  126. package/dist/solutions-components/{p-0f7b5d36.entry.js → p-2ed4f0cf.entry.js} +1 -1
  127. package/dist/solutions-components/{p-f12a94e6.entry.js → p-3058da8b.entry.js} +1 -1
  128. package/dist/solutions-components/{p-36b50b5b.entry.js → p-3581d7dc.entry.js} +1 -1
  129. package/dist/solutions-components/{p-dc17b638.entry.js → p-386429a4.entry.js} +1 -1
  130. package/dist/solutions-components/{p-69cfa9e6.entry.js → p-483fbfa7.entry.js} +1 -1
  131. package/dist/solutions-components/{p-78712b70.entry.js → p-4a0838c0.entry.js} +1 -1
  132. package/dist/solutions-components/{p-6de944af.entry.js → p-4b843bc0.entry.js} +1 -1
  133. package/dist/solutions-components/{p-abc9e858.entry.js → p-4c0b8e55.entry.js} +1 -1
  134. package/dist/solutions-components/{p-90d6755b.js → p-4d03fed9.js} +1 -1
  135. package/dist/solutions-components/{p-6b30ca36.entry.js → p-51cfb4a6.entry.js} +1 -1
  136. package/dist/solutions-components/{p-8e8b92b4.entry.js → p-614edd9f.entry.js} +1 -1
  137. package/dist/solutions-components/{p-3438cbc4.entry.js → p-65283b75.entry.js} +1 -1
  138. package/dist/solutions-components/{p-4cd4cb85.js → p-65581d83.js} +1 -1
  139. package/dist/solutions-components/{p-ef6567ae.entry.js → p-6f836c0a.entry.js} +1 -1
  140. package/dist/solutions-components/{p-badcaf04.js → p-7c583516.js} +1 -1
  141. package/dist/solutions-components/{p-5d201016.entry.js → p-8af893c6.entry.js} +1 -1
  142. package/dist/solutions-components/{p-7d514d7f.entry.js → p-8b611f1f.entry.js} +1 -1
  143. package/dist/solutions-components/{p-bebd4646.entry.js → p-91a87888.entry.js} +1 -1
  144. package/dist/solutions-components/{p-b850796d.entry.js → p-92744164.entry.js} +1 -1
  145. package/dist/solutions-components/{p-1867168b.entry.js → p-93c34427.entry.js} +1 -1
  146. package/dist/solutions-components/{p-445213cf.entry.js → p-9a370c05.entry.js} +1 -1
  147. package/dist/solutions-components/{p-c6473b38.entry.js → p-a2150807.entry.js} +1 -1
  148. package/dist/solutions-components/{p-a860f365.js → p-a7710355.js} +7 -8
  149. package/dist/solutions-components/{p-a22b8cc1.entry.js → p-a7b05a79.entry.js} +1 -1
  150. package/dist/solutions-components/{p-cc092b22.entry.js → p-ab2c4033.entry.js} +1 -1
  151. package/dist/solutions-components/{p-ac122d9e.js → p-af2c8aa9.js} +1 -1
  152. package/dist/solutions-components/{p-a091bc9a.js → p-afad4f05.js} +1 -1
  153. package/dist/solutions-components/{p-913413c3.entry.js → p-b981067f.entry.js} +1 -1
  154. package/dist/solutions-components/{p-24b3aedc.entry.js → p-beeccd19.entry.js} +1 -1
  155. package/dist/solutions-components/{p-2fc63144.js → p-c742acd9.js} +1 -1
  156. package/dist/solutions-components/{p-2e8a428a.entry.js → p-cc47ff22.entry.js} +1 -1
  157. package/dist/solutions-components/{p-8ea95c9f.entry.js → p-cdb01b99.entry.js} +1 -1
  158. package/dist/solutions-components/{p-425a1dab.entry.js → p-de30afd0.entry.js} +1 -1
  159. package/dist/solutions-components/{p-ce454f5a.entry.js → p-e6742158.entry.js} +1 -1
  160. package/dist/solutions-components/{p-20c465e9.entry.js → p-e936f80a.entry.js} +1 -1
  161. package/dist/solutions-components/{p-b19ca04e.entry.js → p-ed9b7fa1.entry.js} +1 -1
  162. package/dist/solutions-components/{p-86e6b5b3.entry.js → p-ef493a84.entry.js} +1 -1
  163. package/dist/solutions-components/{p-2fa78dd8.js → p-f067a46c.js} +1 -1
  164. package/dist/solutions-components/{p-1904654e.js → p-f2ac5d0e.js} +1 -1
  165. package/dist/solutions-components/{p-932f22b5.entry.js → p-f4828ba4.entry.js} +1 -1
  166. package/dist/solutions-components/{p-d8047d8f.entry.js → p-f7d822f7.entry.js} +1 -1
  167. package/dist/solutions-components/{p-8fb95f9a.entry.js → p-fee0a94a.entry.js} +3 -3
  168. package/dist/solutions-components/solutions-components.esm.js +1 -1
  169. package/dist/solutions-components_commit.txt +7 -0
  170. package/package.json +6 -6
  171. package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion/accordion.css +0 -77
  172. package/dist/node_modules/@esri/calcite-components/dist/collection/components/accordion-item/accordion-item.css +0 -263
  173. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action/action.css +0 -341
  174. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-bar/action-bar.css +0 -105
  175. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-group/action-group.css +0 -113
  176. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-menu/action-menu.css +0 -73
  177. package/dist/node_modules/@esri/calcite-components/dist/collection/components/action-pad/action-pad.css +0 -113
  178. package/dist/node_modules/@esri/calcite-components/dist/collection/components/alert/alert.css +0 -428
  179. package/dist/node_modules/@esri/calcite-components/dist/collection/components/avatar/avatar.css +0 -81
  180. package/dist/node_modules/@esri/calcite-components/dist/collection/components/block/block.css +0 -337
  181. package/dist/node_modules/@esri/calcite-components/dist/collection/components/block-section/block-section.css +0 -156
  182. package/dist/node_modules/@esri/calcite-components/dist/collection/components/button/button.css +0 -811
  183. package/dist/node_modules/@esri/calcite-components/dist/collection/components/card/card.css +0 -339
  184. package/dist/node_modules/@esri/calcite-components/dist/collection/components/card-group/card-group.css +0 -73
  185. package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel/carousel.css +0 -330
  186. package/dist/node_modules/@esri/calcite-components/dist/collection/components/carousel-item/carousel-item.css +0 -45
  187. package/dist/node_modules/@esri/calcite-components/dist/collection/components/checkbox/checkbox.css +0 -179
  188. package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip/chip.css +0 -514
  189. package/dist/node_modules/@esri/calcite-components/dist/collection/components/chip-group/chip-group.css +0 -78
  190. package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker/color-picker.css +0 -249
  191. package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +0 -66
  192. package/dist/node_modules/@esri/calcite-components/dist/collection/components/color-picker-swatch/color-picker-swatch.css +0 -74
  193. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox/combobox.css +0 -450
  194. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item/combobox-item.css +0 -248
  195. package/dist/node_modules/@esri/calcite-components/dist/collection/components/combobox-item-group/combobox-item-group.css +0 -101
  196. package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker/date-picker.css +0 -72
  197. package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-day/date-picker-day.css +0 -294
  198. package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month/date-picker-month.css +0 -96
  199. package/dist/node_modules/@esri/calcite-components/dist/collection/components/date-picker-month-header/date-picker-month-header.css +0 -189
  200. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dialog/dialog.css +0 -322
  201. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown/dropdown.css +0 -140
  202. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-group/dropdown-group.css +0 -84
  203. package/dist/node_modules/@esri/calcite-components/dist/collection/components/dropdown-item/dropdown-item.css +0 -199
  204. package/dist/node_modules/@esri/calcite-components/dist/collection/components/fab/fab.css +0 -76
  205. package/dist/node_modules/@esri/calcite-components/dist/collection/components/filter/filter.css +0 -140
  206. package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow/flow.css +0 -98
  207. package/dist/node_modules/@esri/calcite-components/dist/collection/components/flow-item/flow-item.css +0 -94
  208. package/dist/node_modules/@esri/calcite-components/dist/collection/components/graph/graph.css +0 -51
  209. package/dist/node_modules/@esri/calcite-components/dist/collection/components/handle/handle.css +0 -102
  210. package/dist/node_modules/@esri/calcite-components/dist/collection/components/icon/icon.css +0 -73
  211. package/dist/node_modules/@esri/calcite-components/dist/collection/components/inline-editable/inline-editable.css +0 -93
  212. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input/input.css +0 -650
  213. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-date-picker/input-date-picker.css +0 -293
  214. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-message/input-message.css +0 -92
  215. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-number/input-number.css +0 -504
  216. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-text/input-text.css +0 -417
  217. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-picker/input-time-picker.css +0 -125
  218. package/dist/node_modules/@esri/calcite-components/dist/collection/components/input-time-zone/input-time-zone.css +0 -71
  219. package/dist/node_modules/@esri/calcite-components/dist/collection/components/label/label.css +0 -138
  220. package/dist/node_modules/@esri/calcite-components/dist/collection/components/link/link.css +0 -152
  221. package/dist/node_modules/@esri/calcite-components/dist/collection/components/list/list.css +0 -106
  222. package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item/list-item.css +0 -347
  223. package/dist/node_modules/@esri/calcite-components/dist/collection/components/list-item-group/list-item-group.css +0 -79
  224. package/dist/node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css +0 -297
  225. package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu/menu.css +0 -50
  226. package/dist/node_modules/@esri/calcite-components/dist/collection/components/menu-item/menu-item.css +0 -281
  227. package/dist/node_modules/@esri/calcite-components/dist/collection/components/meter/meter.css +0 -187
  228. package/dist/node_modules/@esri/calcite-components/dist/collection/components/modal/modal.css +0 -529
  229. package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation/navigation.css +0 -142
  230. package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-logo/navigation-logo.css +0 -137
  231. package/dist/node_modules/@esri/calcite-components/dist/collection/components/navigation-user/navigation-user.css +0 -112
  232. package/dist/node_modules/@esri/calcite-components/dist/collection/components/notice/notice.css +0 -289
  233. package/dist/node_modules/@esri/calcite-components/dist/collection/components/option/option.css +0 -36
  234. package/dist/node_modules/@esri/calcite-components/dist/collection/components/option-group/option-group.css +0 -36
  235. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pagination/pagination.css +0 -151
  236. package/dist/node_modules/@esri/calcite-components/dist/collection/components/panel/panel.css +0 -323
  237. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list/pick-list.css +0 -96
  238. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-group/pick-list-group.css +0 -83
  239. package/dist/node_modules/@esri/calcite-components/dist/collection/components/pick-list-item/pick-list-item.css +0 -183
  240. package/dist/node_modules/@esri/calcite-components/dist/collection/components/popover/popover.css +0 -198
  241. package/dist/node_modules/@esri/calcite-components/dist/collection/components/progress/progress.css +0 -110
  242. package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button/radio-button.css +0 -168
  243. package/dist/node_modules/@esri/calcite-components/dist/collection/components/radio-button-group/radio-button-group.css +0 -96
  244. package/dist/node_modules/@esri/calcite-components/dist/collection/components/rating/rating.css +0 -182
  245. package/dist/node_modules/@esri/calcite-components/dist/collection/components/scrim/scrim.css +0 -76
  246. package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control/segmented-control.css +0 -120
  247. package/dist/node_modules/@esri/calcite-components/dist/collection/components/segmented-control-item/segmented-control-item.css +0 -179
  248. package/dist/node_modules/@esri/calcite-components/dist/collection/components/select/select.css +0 -252
  249. package/dist/node_modules/@esri/calcite-components/dist/collection/components/sheet/sheet.css +0 -267
  250. package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell/shell.css +0 -194
  251. package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-center-row/shell-center-row.css +0 -124
  252. package/dist/node_modules/@esri/calcite-components/dist/collection/components/shell-panel/shell-panel.css +0 -394
  253. package/dist/node_modules/@esri/calcite-components/dist/collection/components/slider/slider.css +0 -392
  254. package/dist/node_modules/@esri/calcite-components/dist/collection/components/sortable-list/sortable-list.css +0 -72
  255. package/dist/node_modules/@esri/calcite-components/dist/collection/components/split-button/split-button.css +0 -192
  256. package/dist/node_modules/@esri/calcite-components/dist/collection/components/stack/stack.css +0 -116
  257. package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper/stepper.css +0 -150
  258. package/dist/node_modules/@esri/calcite-components/dist/collection/components/stepper-item/stepper-item.css +0 -475
  259. package/dist/node_modules/@esri/calcite-components/dist/collection/components/switch/switch.css +0 -188
  260. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab/tab.css +0 -105
  261. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-nav/tab-nav.css +0 -158
  262. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tab-title/tab-title.css +0 -422
  263. package/dist/node_modules/@esri/calcite-components/dist/collection/components/table/table.css +0 -135
  264. package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-cell/table-cell.css +0 -170
  265. package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-header/table-header.css +0 -154
  266. package/dist/node_modules/@esri/calcite-components/dist/collection/components/table-row/table-row.css +0 -82
  267. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tabs/tabs.css +0 -101
  268. package/dist/node_modules/@esri/calcite-components/dist/collection/components/text-area/text-area.css +0 -300
  269. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile/tile.css +0 -297
  270. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-group/tile-group.css +0 -86
  271. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select/tile-select.css +0 -239
  272. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tile-select-group/tile-select-group.css +0 -68
  273. package/dist/node_modules/@esri/calcite-components/dist/collection/components/time-picker/time-picker.css +0 -144
  274. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip/tip.css +0 -151
  275. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-group/tip-group.css +0 -47
  276. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tip-manager/tip-manager.css +0 -194
  277. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tooltip/tooltip.css +0 -120
  278. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree/tree.css +0 -41
  279. package/dist/node_modules/@esri/calcite-components/dist/collection/components/tree-item/tree-item.css +0 -326
  280. package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list/value-list.css +0 -109
  281. package/dist/node_modules/@esri/calcite-components/dist/collection/components/value-list-item/value-list-item.css +0 -125
  282. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-control-panel/instant-apps-control-panel.css +0 -3
  283. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +0 -150
  284. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +0 -92
  285. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export-views/instant-apps-export-views.css +0 -92
  286. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +0 -108
  287. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +0 -180
  288. 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 +0 -124
  289. 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 +0 -18
  290. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element/instant-apps-interactive-legend-group-legend-element.css +0 -10
  291. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-group-legend-element-caption/instant-apps-interactive-legend-group-legend-element-caption.css +0 -65
  292. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element/instant-apps-interactive-legend-layer-element.css +0 -17
  293. 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 +0 -66
  294. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element/instant-apps-interactive-legend-legend-element.css +0 -10
  295. 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 +0 -51
  296. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-relationship/instant-apps-interactive-legend-relationship.css +0 -15
  297. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +0 -12
  298. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +0 -33
  299. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +0 -241
  300. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +0 -13
  301. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-ckeditor-wrapper/instant-apps-ckeditor-wrapper.css +0 -3
  302. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-item/instant-apps-language-translator-item.css +0 -90
  303. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator-search/instant-apps-language-translator-search.css +0 -34
  304. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +0 -86
  305. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement-tool/instant-apps-measurement-tool.css +0 -6
  306. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +0 -6
  307. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +0 -58
  308. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popovers/instant-apps-popovers.css +0 -3
  309. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +0 -200
  310. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +0 -93
  311. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +0 -286
  312. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +0 -13
  313. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-time-filter/instant-apps-time-filter.css +0 -42
  314. /package/dist/cjs/{esri-loader-08dc41bd.js → esri-loader-a56cbcbe.js} +0 -0
  315. /package/dist/esm/{esri-loader-c6842c6b.js → esri-loader-781d738a.js} +0 -0
  316. /package/dist/solutions-components/{p-9fe07c30.js → p-659678f1.js} +0 -0
  317. /package/dist/solutions-components/{p-0a24ad5f.js → p-6a68306c.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import './solution-resource-ab63a236.js';
6
+ import './solution-resource-966f8511.js';
7
7
 
8
8
  /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
@@ -603,8 +603,8 @@ function cleanUrl(url) {
603
603
  * @returns A promise that will resolve with JSON or null
604
604
  */
605
605
  function blobToJson(blob) {
606
- return new Promise(resolve => {
607
- blobToText(blob).then(blobContents => {
606
+ return new Promise((resolve) => {
607
+ blobToText(blob).then((blobContents) => {
608
608
  try {
609
609
  resolve(JSON.parse(blobContents));
610
610
  }
@@ -624,7 +624,7 @@ function blobToJson(blob) {
624
624
  */
625
625
  function blobToFile(blob, filename, mimeType) {
626
626
  return new File([blob], filename ? filename : "", {
627
- type: mimeType ?? blob.type // Blobs default to type=""
627
+ type: mimeType ?? blob.type, // Blobs default to type=""
628
628
  });
629
629
  }
630
630
  /**
@@ -634,7 +634,7 @@ function blobToFile(blob, filename, mimeType) {
634
634
  * @returns A promise that will resolve with text read from blob
635
635
  */
636
636
  function blobToText(blob) {
637
- return new Promise(resolve => {
637
+ return new Promise((resolve) => {
638
638
  const reader = new FileReader();
639
639
  reader.onload = function (evt) {
640
640
  // Disable needed because Node requires cast
@@ -751,9 +751,9 @@ function getBlob(url, authentication, requestOptions = {}) {
751
751
  const blobRequestOptions = {
752
752
  authentication: authentication,
753
753
  rawResponse: true,
754
- ...requestOptions
754
+ ...requestOptions,
755
755
  };
756
- return request(url, blobRequestOptions).then(response => {
756
+ return request(url, blobRequestOptions).then((response) => {
757
757
  return response.blob();
758
758
  });
759
759
  }
@@ -786,7 +786,7 @@ const ZIP_FILE_HEADER_SIGNATURE = "PK";
786
786
  function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
787
787
  return new Promise((resolve, reject) => {
788
788
  // Get the blob from the URL
789
- getBlobCheckForError(url, authentication, ignoreErrors).then(blob => !blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType)), reject);
789
+ getBlobCheckForError(url, authentication, ignoreErrors).then((blob) => (!blob ? resolve(null) : resolve(blobToFile(blob, filename, mimeType))), reject);
790
790
  });
791
791
  }
792
792
  /**
@@ -800,9 +800,9 @@ function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeTyp
800
800
  function getBlobCheckForError(url, authentication, ignoreErrors = []) {
801
801
  return new Promise((resolve, reject) => {
802
802
  // Get the blob from the URL
803
- getBlob(url, authentication).then(blob => {
803
+ getBlob(url, authentication).then((blob) => {
804
804
  // Reclassify text/plain blobs as needed
805
- _fixTextBlobType(blob).then(adjustedBlob => {
805
+ _fixTextBlobType(blob).then((adjustedBlob) => {
806
806
  if (adjustedBlob.type === "application/json") {
807
807
  // Blob may be an error
808
808
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
@@ -838,8 +838,8 @@ function getBlobCheckForError(url, authentication, ignoreErrors = []) {
838
838
  * @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
839
839
  */
840
840
  function getItemDataAsJson(itemId, authentication) {
841
- return new Promise(resolve => {
842
- getItemDataBlob(itemId, authentication).then(blob => resolve(blobToJson(blob)), () => resolve(null));
841
+ return new Promise((resolve) => {
842
+ getItemDataBlob(itemId, authentication).then((blob) => resolve(blobToJson(blob)), () => resolve(null));
843
843
  });
844
844
  }
845
845
  /**
@@ -850,9 +850,9 @@ function getItemDataAsJson(itemId, authentication) {
850
850
  * @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
851
851
  */
852
852
  function getItemDataBlob(itemId, authentication) {
853
- return new Promise(resolve => {
853
+ return new Promise((resolve) => {
854
854
  const url = getItemDataBlobUrl(itemId, authentication);
855
- getBlobCheckForError(url, authentication, [400, 500]).then(blob => resolve(_fixTextBlobType(blob)), () => resolve(null));
855
+ getBlobCheckForError(url, authentication, [400, 500]).then((blob) => resolve(_fixTextBlobType(blob)), () => resolve(null));
856
856
  });
857
857
  }
858
858
  /**
@@ -876,11 +876,11 @@ function getJson(url, authentication) {
876
876
  // Get the blob from the URL
877
877
  const requestOptions = { httpMethod: "GET" };
878
878
  return getBlob(url, authentication, requestOptions)
879
- .then(blob => {
879
+ .then((blob) => {
880
880
  // Reclassify text/plain blobs as needed
881
881
  return _fixTextBlobType(blob);
882
882
  })
883
- .then(adjustedBlob => {
883
+ .then((adjustedBlob) => {
884
884
  if (adjustedBlob.type === "application/json") {
885
885
  // Blob may be an error
886
886
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
@@ -902,7 +902,7 @@ function getPortalSharingUrlFromAuth(authentication) {
902
902
  return getProp(authentication, "portal") || "https://www.arcgis.com/sharing/rest";
903
903
  }
904
904
  function getThumbnailFile(url, filename, authentication) {
905
- return new Promise(resolve => {
905
+ return new Promise((resolve) => {
906
906
  getBlobAsFile(url, filename, authentication, [500]).then(resolve, () => resolve(null));
907
907
  });
908
908
  }
@@ -917,11 +917,8 @@ function getThumbnailFile(url, filename, authentication) {
917
917
  */
918
918
  function _fixTextBlobType(blob) {
919
919
  return new Promise((resolve, reject) => {
920
- if (blob &&
921
- blob.size > 0 &&
922
- (blob.type.startsWith("text/plain") ||
923
- blob.type.startsWith("application/json"))) {
924
- blobToText(blob).then(blobText => {
920
+ if (blob && blob.size > 0 && (blob.type.startsWith("text/plain") || blob.type.startsWith("application/json"))) {
921
+ blobToText(blob).then((blobText) => {
925
922
  // Convertible to JSON?
926
923
  try {
927
924
  JSON.parse(blobText);
@@ -930,8 +927,7 @@ function _fixTextBlobType(blob) {
930
927
  }
931
928
  catch (ignored) {
932
929
  // Nope; test for ZIP file
933
- if (blobText.length > 4 &&
934
- blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
930
+ if (blobText.length > 4 && blobText.substr(0, 4) === ZIP_FILE_HEADER_SIGNATURE) {
935
931
  // Yes; reclassify as ZIP
936
932
  resolve(new Blob([blob], { type: "application/zip" }));
937
933
  }
@@ -4,15 +4,15 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { g as getElement, r as registerInstance, h, H as Host } from './index-e3f04fa1.js';
7
- import { g as getSolutionVariables, a as getOrganizationVariables, b as getInventoryItems } from './templates-9556eb87.js';
8
- import { s as state } from './solution-store-e2690620.js';
9
- import './solution-resource-ab63a236.js';
10
- import { g as getLocaleComponentStrings } from './locale-7162b55a.js';
11
- import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError } from './restHelpersGet-0a15c2f4.js';
7
+ import { g as getSolutionVariables, a as getOrganizationVariables, b as getInventoryItems } from './templates-9330d7b8.js';
8
+ import { s as state } from './solution-store-0586e891.js';
9
+ import './solution-resource-966f8511.js';
10
+ import { g as getLocaleComponentStrings } from './locale-e758c2ee.js';
11
+ import { r as request, N as NODEJS_DEFAULT_REFERER_HEADER, c as cleanUrl, e as encodeQueryString, A as ArcGISAuthError } from './restHelpersGet-788d7f7b.js';
12
12
  import './interfaces-659e3836.js';
13
13
  import './index-1dc14abf.js';
14
14
  import './_commonjsHelpers-089957fe.js';
15
- import './esri-loader-c6842c6b.js';
15
+ import './esri-loader-781d738a.js';
16
16
 
17
17
  /* Copyright (c) 2017-2020 Environmental Systems Research Institute, Inc.
18
18
  * Apache-2.0 */
@@ -4,15 +4,15 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, g as getElement, h, H as Host } from './index-e3f04fa1.js';
7
- import { s as state } from './solution-store-e2690620.js';
8
- import { g as getLocaleComponentStrings } from './locale-7162b55a.js';
9
- import { n as nodeListToArray } from './common-1618d62f.js';
7
+ import { s as state } from './solution-store-0586e891.js';
8
+ import { g as getLocaleComponentStrings } from './locale-e758c2ee.js';
9
+ import { n as nodeListToArray } from './common-3b99e350.js';
10
10
  import { C as CSpatialRefCustomizingPrefix, g as CSpatialRefCustomizingSuffix } from './interfaces-659e3836.js';
11
11
  import './index-1dc14abf.js';
12
- import './solution-resource-ab63a236.js';
12
+ import './solution-resource-966f8511.js';
13
13
  import './_commonjsHelpers-089957fe.js';
14
- import './restHelpersGet-0a15c2f4.js';
15
- import './esri-loader-c6842c6b.js';
14
+ import './restHelpersGet-788d7f7b.js';
15
+ import './esri-loader-781d738a.js';
16
16
 
17
17
  const solutionContentsCss = ".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
18
18
  const SolutionContentsStyle0 = solutionContentsCss;
@@ -1806,7 +1806,7 @@ var ESortVisitState;
1806
1806
  /** visited, in progress */
1807
1807
  ESortVisitState[ESortVisitState["InProgress"] = 1] = "InProgress";
1808
1808
  /** finished */
1809
- ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished"; // BLACK
1809
+ ESortVisitState[ESortVisitState["Finished"] = 2] = "Finished";
1810
1810
  })(ESortVisitState || (ESortVisitState = {}));
1811
1811
 
1812
1812
  /** @license
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { c as createStore } from './index-1dc14abf.js';
7
7
  import { d as EUpdateType, C as CSpatialRefCustomizingPrefix } from './interfaces-659e3836.js';
8
- import { E as EFileType, J as JSZip, S as SolutionTemplateFormatVersion } from './solution-resource-ab63a236.js';
9
- import { c as cleanUrl, r as request, d as blobToFile, f as checkUrlPathTermination, h as getThumbnailFile, i as getItemDataAsJson, b as getPropWithDefault, s as setCreateProp, a as getProp, j as setProp } from './restHelpersGet-0a15c2f4.js';
8
+ import { E as EFileType, J as JSZip, S as SolutionTemplateFormatVersion } from './solution-resource-966f8511.js';
9
+ import { c as cleanUrl, r as request, d as blobToFile, f as checkUrlPathTermination, h as getThumbnailFile, i as getItemDataAsJson, b as getPropWithDefault, s as setCreateProp, a as getProp, j as setProp } from './restHelpersGet-788d7f7b.js';
10
10
 
11
11
  /*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -276,7 +276,7 @@ function chunkArray(arr, size) {
276
276
  }
277
277
 
278
278
  /** @license
279
- * Copyright 2021 Esri
279
+ * Copyright 2018 Esri
280
280
  *
281
281
  * Licensed under the Apache License, Version 2.0 (the "License");
282
282
  * you may not use this file except in compliance with the License.
@@ -290,25 +290,32 @@ function chunkArray(arr, size) {
290
290
  * See the License for the specific language governing permissions and
291
291
  * limitations under the License.
292
292
  */
293
- // ------------------------------------------------------------------------------------------------------------------ //
294
293
  /**
295
- * Generates IAssociatedFileCopyResults object.
294
+ * Updates an item.
296
295
  *
297
- * @param fileInfo Info about item that was to be copied
298
- * @param fetchedFromSource Status of fetching item from source
299
- * @param copiedToDestination Status of copying item to destination
300
- * @returns IAssociatedFileCopyResults object
296
+ * @param itemInfo The base info of an item; note that this content will be serialized, which doesn't work
297
+ * for binary content
298
+ * @param authentication Credentials for request
299
+ * @param folderId Item's folder
300
+ * @param additionalParams Updates that are put under the `params` property, which is not serialized
301
+ * @return
301
302
  */
302
- function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
303
- return {
304
- ...fileInfo,
305
- fetchedFromSource,
306
- copiedToDestination
307
- };
303
+ function updateItem(itemInfo, authentication, folderId, additionalParams) {
304
+ return new Promise((resolve, reject) => {
305
+ const updateOptions = {
306
+ item: itemInfo,
307
+ folderId: folderId,
308
+ authentication: authentication,
309
+ params: {
310
+ ...(additionalParams ?? {}),
311
+ },
312
+ };
313
+ updateItem$1(updateOptions).then((response) => (response.success ? resolve(response) : reject(response)), (err) => reject(err));
314
+ });
308
315
  }
309
316
 
310
317
  /** @license
311
- * Copyright 2018 Esri
318
+ * Copyright 2021 Esri
312
319
  *
313
320
  * Licensed under the Apache License, Version 2.0 (the "License");
314
321
  * you may not use this file except in compliance with the License.
@@ -322,28 +329,21 @@ function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
322
329
  * See the License for the specific language governing permissions and
323
330
  * limitations under the License.
324
331
  */
332
+ // ------------------------------------------------------------------------------------------------------------------ //
325
333
  /**
326
- * Updates an item.
334
+ * Generates IAssociatedFileCopyResults object.
327
335
  *
328
- * @param itemInfo The base info of an item; note that this content will be serialized, which doesn't work
329
- * for binary content
330
- * @param authentication Credentials for request
331
- * @param folderId Item's folder
332
- * @param additionalParams Updates that are put under the `params` property, which is not serialized
333
- * @return
336
+ * @param fileInfo Info about item that was to be copied
337
+ * @param fetchedFromSource Status of fetching item from source
338
+ * @param copiedToDestination Status of copying item to destination
339
+ * @returns IAssociatedFileCopyResults object
334
340
  */
335
- function updateItem(itemInfo, authentication, folderId, additionalParams) {
336
- return new Promise((resolve, reject) => {
337
- const updateOptions = {
338
- item: itemInfo,
339
- folderId: folderId,
340
- authentication: authentication,
341
- params: {
342
- ...(additionalParams ?? {})
343
- }
344
- };
345
- updateItem$1(updateOptions).then(response => (response.success ? resolve(response) : reject(response)), err => reject(err));
346
- });
341
+ function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
342
+ return {
343
+ ...fileInfo,
344
+ fetchedFromSource,
345
+ copiedToDestination,
346
+ };
347
347
  }
348
348
 
349
349
  /** @license
@@ -437,9 +437,7 @@ function convertStorageResourceToItemResource(storageResourceFilename, storageVe
437
437
  function copyResourceIntoZip(file, zipInfo) {
438
438
  // Add it to the zip
439
439
  if (file.folder) {
440
- zipInfo.zip
441
- .folder(file.folder)
442
- .file(file.filename, file.file, { binary: true });
440
+ zipInfo.zip.folder(file.folder).file(file.filename, file.file, { binary: true });
443
441
  }
444
442
  else {
445
443
  zipInfo.zip.file(file.filename, file.file, { binary: true });
@@ -473,7 +471,7 @@ function copyResourceIntoZip(file, zipInfo) {
473
471
  * @returns A promise which resolves to the result of the copy
474
472
  */
475
473
  function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication) {
476
- return new Promise(resolve => {
474
+ return new Promise((resolve) => {
477
475
  zipInfo.zip
478
476
  .generateAsync({ type: "blob" })
479
477
  .then((content) => {
@@ -485,13 +483,12 @@ function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication)
485
483
  resource: zipfile,
486
484
  authentication: destinationAuthentication,
487
485
  params: {
488
- archive: true
489
- }
486
+ archive: true,
487
+ },
490
488
  };
491
489
  return addItemResource(addResourceOptions);
492
490
  })
493
- .then(() => resolve(createCopyResults(zipInfo, true, true)), () => resolve(createCopyResults(zipInfo, true, false)) // unable to add resource
494
- );
491
+ .then(() => resolve(createCopyResults(zipInfo, true, true)), () => resolve(createCopyResults(zipInfo, true, false)));
495
492
  });
496
493
  }
497
494
 
@@ -522,7 +519,7 @@ function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication)
522
519
  * @returns A promise which resolves to a list of the result of the copies
523
520
  */
524
521
  function copyFilesAsResources(files, destinationItemId, destinationAuthentication, filesPerZip = 40) {
525
- return new Promise(resolve => {
522
+ return new Promise((resolve) => {
526
523
  let awaitAllItems = [];
527
524
  const zipInfos = [];
528
525
  if (files.length > 0) {
@@ -537,9 +534,9 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
537
534
  const zipInfo = {
538
535
  filename: `resources${index}.zip`,
539
536
  zip: new JSZip(),
540
- filelist: []
537
+ filelist: [],
541
538
  };
542
- awaitAllItems = awaitAllItems.concat(chunk.map(file => copyResourceIntoZip(file, zipInfo)));
539
+ awaitAllItems = awaitAllItems.concat(chunk.map((file) => copyResourceIntoZip(file, zipInfo)));
543
540
  zipInfos.push(zipInfo);
544
541
  });
545
542
  }
@@ -553,8 +550,7 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
553
550
  // | true | true | file has been fetched and sent to AGO |
554
551
  // | true | undefined | file has been fetched and will be sent via zip |
555
552
  // Filter out copiedToDestination===undefined; we'll get their status when we send their zip
556
- results = results.filter((result) => !(result.fetchedFromSource &&
557
- typeof result.copiedToDestination === "undefined"));
553
+ results = results.filter((result) => !(result.fetchedFromSource && typeof result.copiedToDestination === "undefined"));
558
554
  // Now send the resources to AGO
559
555
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
560
556
  _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication).then((zipResults) => {
@@ -578,7 +574,7 @@ function copyFilesAsResources(files, destinationItemId, destinationAuthenticatio
578
574
  * @private
579
575
  */
580
576
  function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication) {
581
- return new Promise(resolve => {
577
+ return new Promise((resolve) => {
582
578
  const results = [];
583
579
  // Filter out empty zips, which can happen when none of the files in the chunk going into a zip
584
580
  // can be fetched; e.g., the only file is metadata.xml, and the source item doesn't have metadata
@@ -604,7 +600,7 @@ function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthent
604
600
  * @returns A promise which resolves to a list of the result of the copies
605
601
  */
606
602
  function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthentication) {
607
- return new Promise(resolve => {
603
+ return new Promise((resolve) => {
608
604
  let allResults = [];
609
605
  // Remove zip from bottom of list
610
606
  const zipInfoToSend = zipInfos.pop();
@@ -617,7 +613,7 @@ function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthent
617
613
  .then((response) => {
618
614
  allResults = response;
619
615
  // Stall a little to give AGO time to catch up
620
- return new Promise(resolveSleep => {
616
+ return new Promise((resolveSleep) => {
621
617
  setTimeout(() => resolveSleep(), 1000);
622
618
  });
623
619
  })
@@ -660,7 +656,7 @@ function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthent
660
656
  * @returns A promise which resolves to a list of the filenames under which the resource/metadata are stored
661
657
  */
662
658
  function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
663
- return new Promise(resolve => {
659
+ return new Promise((resolve) => {
664
660
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
665
661
  void copyFilesAsResources(files, storageItemId, storageAuthentication).then((results) => {
666
662
  resolve(results
@@ -680,11 +676,7 @@ function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
680
676
  * @returns URL string
681
677
  */
682
678
  function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourceFilename) {
683
- return (checkUrlPathTermination(sourcePortalSharingUrl) +
684
- "content/items/" +
685
- itemId +
686
- "/resources/" +
687
- sourceResourceFilename);
679
+ return (checkUrlPathTermination(sourcePortalSharingUrl) + "content/items/" + itemId + "/resources/" + sourceResourceFilename);
688
680
  }
689
681
  /**
690
682
  * Generates a list of full URLs and folder/filename combinations used to store the resources, metadata,
@@ -697,10 +689,10 @@ function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourc
697
689
  * @returns List of item files' URLs and folder/filenames for storing the files
698
690
  */
699
691
  function generateStorageFilePaths(portalSharingUrl, storageItemId, resourceFilenames = [], storageVersion = 0) {
700
- return resourceFilenames.map(resourceFilename => {
692
+ return resourceFilenames.map((resourceFilename) => {
701
693
  return {
702
694
  url: generateSourceResourceUrl(portalSharingUrl, storageItemId, resourceFilename),
703
- ...convertStorageResourceToItemResource(resourceFilename, storageVersion)
695
+ ...convertStorageResourceToItemResource(resourceFilename, storageVersion),
704
696
  };
705
697
  });
706
698
  }
@@ -709,8 +701,7 @@ function isSupportedFileType(filename) {
709
701
  // .svgz, .geodatabase (https://developers.arcgis.com/rest/users-groups-and-items/add-resources.htm)
710
702
  const filenameExtension = filename.match(/\.([a-z]+)$/i);
711
703
  const supportedExtensions = "|.json|.xml|.txt|.png|.pbf|.zip|.jpeg|.jpg|.gif|.bmp|.gz|.svg|.svgz|.geodatabase|";
712
- return (!!filenameExtension &&
713
- supportedExtensions.indexOf("|" + filenameExtension[0] + "|") >= 0);
704
+ return !!filenameExtension && supportedExtensions.indexOf("|" + filenameExtension[0] + "|") >= 0;
714
705
  }
715
706
  /**
716
707
  * Gets the thumbnail of an item or group.
@@ -722,7 +713,7 @@ function isSupportedFileType(filename) {
722
713
  function getThumbnailFromStorageItem(authentication, filePaths) {
723
714
  let thumbnailUrl;
724
715
  let thumbnailFilename;
725
- filePaths.forEach(path => {
716
+ filePaths.forEach((path) => {
726
717
  if (path.type === EFileType.Thumbnail) {
727
718
  thumbnailUrl = path.url;
728
719
  thumbnailFilename = path.filename;
@@ -745,7 +736,7 @@ function removeItemResourceFile(itemId, filename, authentication) {
745
736
  return removeItemResource({
746
737
  id: itemId,
747
738
  resource: filename,
748
- authentication: authentication
739
+ authentication: authentication,
749
740
  });
750
741
  }
751
742
  /**
@@ -760,14 +751,16 @@ function removeItemResourceFile(itemId, filename, authentication) {
760
751
  function updateItemResourceFile(itemId, filename, resource, authentication) {
761
752
  // Prefix has to be specified separately
762
753
  const prefixedFilenameParts = filename.split("/");
763
- const prefix = prefixedFilenameParts.length > 1 ? prefixedFilenameParts.slice(0, prefixedFilenameParts.length - 1).join("/") : undefined;
754
+ const prefix = prefixedFilenameParts.length > 1
755
+ ? prefixedFilenameParts.slice(0, prefixedFilenameParts.length - 1).join("/")
756
+ : undefined;
764
757
  const suffix = prefixedFilenameParts[prefixedFilenameParts.length - 1];
765
758
  return updateItemResource({
766
759
  id: itemId,
767
760
  prefix: prefix,
768
761
  name: suffix,
769
762
  resource,
770
- authentication: authentication
763
+ authentication: authentication,
771
764
  });
772
765
  }
773
766
 
@@ -4,11 +4,11 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-e3f04fa1.js';
7
- import { g as getLocaleComponentStrings } from './locale-7162b55a.js';
8
- import { n as nodeListToArray } from './common-1618d62f.js';
9
- import './esri-loader-c6842c6b.js';
7
+ import { g as getLocaleComponentStrings } from './locale-e758c2ee.js';
8
+ import { n as nodeListToArray } from './common-3b99e350.js';
9
+ import './esri-loader-781d738a.js';
10
10
  import './_commonjsHelpers-089957fe.js';
11
- import './solution-resource-ab63a236.js';
11
+ import './solution-resource-966f8511.js';
12
12
  import './interfaces-659e3836.js';
13
13
 
14
14
  /** @license
@@ -4,13 +4,13 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, g as getElement } from './index-e3f04fa1.js';
7
- import { s as state } from './solution-store-e2690620.js';
8
- import { c as getFeatureServices, d as getSpatialReferenceInfo } from './templates-9556eb87.js';
7
+ import { s as state } from './solution-store-0586e891.js';
8
+ import { c as getFeatureServices, d as getSpatialReferenceInfo } from './templates-9330d7b8.js';
9
9
  import './index-1dc14abf.js';
10
10
  import './interfaces-659e3836.js';
11
- import './solution-resource-ab63a236.js';
11
+ import './solution-resource-966f8511.js';
12
12
  import './_commonjsHelpers-089957fe.js';
13
- import './restHelpersGet-0a15c2f4.js';
13
+ import './restHelpersGet-788d7f7b.js';
14
14
 
15
15
  const StoreManager = class {
16
16
  constructor(hostRef) {
@@ -4,8 +4,8 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { C as CSpatialRefCustomizingPrefix } from './interfaces-659e3836.js';
7
- import './solution-resource-ab63a236.js';
8
- import { a as getProp, b as getPropWithDefault } from './restHelpersGet-0a15c2f4.js';
7
+ import './solution-resource-966f8511.js';
8
+ import { a as getProp, b as getPropWithDefault } from './restHelpersGet-788d7f7b.js';
9
9
 
10
10
  /** @license
11
11
  * Copyright 2022 Esri
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import { b as getLocaleComponentStrings } from './locale-adb5ff0b.js';
6
+ import { b as getLocaleComponentStrings } from './locale-35ebf4af.js';
7
7
  import { c as createStore } from './index-1dc14abf.js';
8
8
 
9
9
  var EInputType;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{g as a,r as x,c as e,h as t,H as n}from"./p-f4c4a2b7.js";import{g as m}from"./p-d7868dd4.js";import{n as l}from"./p-2fa78dd8.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-9fe07c30.js";import"./p-80cb7c73.js";
6
+ import{g as a,r as x,c as e,h as t,H as n}from"./p-f4c4a2b7.js";import{g as m}from"./p-09b47605.js";import{n as l}from"./p-f067a46c.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-659678f1.js";import"./p-80cb7c73.js";
7
7
  /** @license
8
8
  * Copyright 2022 Esri
9
9
  *
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as s,h as i,g as e}from"./p-f4c4a2b7.js";import{S as o}from"./p-36c1c370.js";import{g as n}from"./p-7bfecd07.js";import"./p-4cd4cb85.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";function l(t){var s;return!!(null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s?void 0:s.getItem(t))}const a=class{constructor(i){var e;t(this,i),this.splashClose=s(this,"splashClose",7),this._sanitizer=null==(e=o)||"function"!=typeof e?null:new e({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0),this.localStorageKey=void 0,this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.secondaryButtonText=void 0,this.secondaryButtonIcon=void 0,this.secondaryButtonCallback=void 0,this.messages=void 0}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}componentWillLoad(){let t;const{localStorageKey:s}=this;t=s?this.open&&!l(this.localStorageKey):this.open,this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}componentDidLoad(){n(this)}render(){return i("calcite-modal",{key:"6d98522026f0aba032808d486474ac04501e9a81",onCalciteModalClose:this.close.bind(this),open:this.open,closeButtonDisabled:this.closeButtonDisabled,outsideCloseDisabled:this.outsideCloseDisabled},this.renderHeader(),this.renderContent(),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.renderPrimaryButton(),this.secondaryButton?this.renderSecondaryButton():null)}renderHeader(){const{titleText:t}=this;return i("header",{slot:"header"},t)}renderContent(){const{content:t}=this;return i("div",{slot:"content",innerHTML:t},i("slot",{name:"custom-action"}))}renderDontShowThisAgainCheckbox(){const{localStorageKey:t,messages:s}=this,e=!!l(t)||null;return i("div",{class:"instant-apps-splash__back-content",slot:"back"},i("calcite-label",{layout:"inline"},i("calcite-checkbox",{onCalciteCheckboxChange:this.handleDontShowThisAgain.bind(this),checked:null!=e?e:void 0}),null==s?void 0:s.dontShowThisAgain))}renderPrimaryButton(){const{primaryButtonText:t}=this;return i("calcite-button",{onClick:this.close.bind(this),slot:"primary"},t||"Enter")}renderSecondaryButton(){var t;return i("calcite-button",{onClick:null===(t=this.secondaryButtonCallback)||void 0===t?void 0:t.bind(this),slot:"secondary","icon-start":this.secondaryButtonIcon,appearance:"outline"},this.secondaryButtonText)}close(){this.open=!1,this.splashClose.emit()}handleDontShowThisAgain(t){const{localStorageKey:s}=this;if(!s)return;const i=t.target,{checked:e}=i;e?null===window||void 0===window||window.localStorage.setItem(s,"false"):function(t){var s;null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s||s.removeItem(t)}(s)}get el(){return e(this)}static get watchers(){return{content:["sanitizeContent"]}}};a.style=":host{display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}";export{a as instant_apps_splash}
6
+ import{r as t,c as s,h as i,g as e}from"./p-f4c4a2b7.js";import{S as o}from"./p-36c1c370.js";import{g as n}from"./p-09d62c22.js";import"./p-65581d83.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-af2c8aa9.js";function l(t){var s;return!!(null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s?void 0:s.getItem(t))}const a=class{constructor(i){var e;t(this,i),this.splashClose=s(this,"splashClose",7),this._sanitizer=null==(e=o)||"function"!=typeof e?null:new e({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0),this.localStorageKey=void 0,this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.secondaryButtonText=void 0,this.secondaryButtonIcon=void 0,this.secondaryButtonCallback=void 0,this.messages=void 0}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}componentWillLoad(){let t;const{localStorageKey:s}=this;t=s?this.open&&!l(this.localStorageKey):this.open,this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}componentDidLoad(){n(this)}render(){return i("calcite-modal",{key:"6d98522026f0aba032808d486474ac04501e9a81",onCalciteModalClose:this.close.bind(this),open:this.open,closeButtonDisabled:this.closeButtonDisabled,outsideCloseDisabled:this.outsideCloseDisabled},this.renderHeader(),this.renderContent(),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.renderPrimaryButton(),this.secondaryButton?this.renderSecondaryButton():null)}renderHeader(){const{titleText:t}=this;return i("header",{slot:"header"},t)}renderContent(){const{content:t}=this;return i("div",{slot:"content",innerHTML:t},i("slot",{name:"custom-action"}))}renderDontShowThisAgainCheckbox(){const{localStorageKey:t,messages:s}=this,e=!!l(t)||null;return i("div",{class:"instant-apps-splash__back-content",slot:"back"},i("calcite-label",{layout:"inline"},i("calcite-checkbox",{onCalciteCheckboxChange:this.handleDontShowThisAgain.bind(this),checked:null!=e?e:void 0}),null==s?void 0:s.dontShowThisAgain))}renderPrimaryButton(){const{primaryButtonText:t}=this;return i("calcite-button",{onClick:this.close.bind(this),slot:"primary"},t||"Enter")}renderSecondaryButton(){var t;return i("calcite-button",{onClick:null===(t=this.secondaryButtonCallback)||void 0===t?void 0:t.bind(this),slot:"secondary","icon-start":this.secondaryButtonIcon,appearance:"outline"},this.secondaryButtonText)}close(){this.open=!1,this.splashClose.emit()}handleDontShowThisAgain(t){const{localStorageKey:s}=this;if(!s)return;const i=t.target,{checked:e}=i;e?null===window||void 0===window||window.localStorage.setItem(s,"false"):function(t){var s;null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s||s.removeItem(t)}(s)}get el(){return e(this)}static get watchers(){return{content:["sanitizeContent"]}}};a.style=":host{display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}";export{a as instant_apps_splash}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{_ as t}from"./p-4b3cc01f.js";import{l as s}from"./p-d7868dd4.js";
6
+ import{_ as t}from"./p-2923d5ed.js";import{l as s}from"./p-09b47605.js";
7
7
  /** @license
8
8
  * Copyright 2022 Esri
9
9
  *
@@ -18,4 +18,4 @@ import{_ as t}from"./p-4b3cc01f.js";import{l as s}from"./p-d7868dd4.js";
18
18
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
19
  * See the License for the specific language governing permissions and
20
20
  * limitations under the License.
21
- */class i{arcade;intl;async getPopupTitle(s,i){this.arcade||await this._initModules();let e={};for(const[t,i]of Object.entries(s.attributes))e={...e,[`{${t.toUpperCase()}}`]:i};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:i});null==r&&""===r||(e[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate.fieldInfos&&a.fields.forEach((i=>{const o=s.attributes[i.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===i.name.toLowerCase())),r=t(o,i.type,i.domain,n?.format,this.intl);e[`{${i.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=e[t.toUpperCase()]?e[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,i]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=i}}export{i as P}
21
+ */class e{arcade;intl;async getPopupTitle(s,e){this.arcade||await this._initModules();let i={};for(const[t,e]of Object.entries(s.attributes))i={...i,[`{${t.toUpperCase()}}`]:e};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:e});null==r&&""===r||(i[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate.fieldInfos&&a.fields.forEach((e=>{const o=s.attributes[e.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===e.name.toLowerCase())),r=t(o,e.type,e.domain,n?.format,this.intl);i[`{${e.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=i[t.toUpperCase()]?i[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,e]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=e}}export{e as P}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{e as t}from"./p-0a24ad5f.js";import{a}from"./p-f4c4a2b7.js";
6
+ import{e as t}from"./p-6a68306c.js";import{a}from"./p-f4c4a2b7.js";
7
7
  /** @license
8
8
  * Copyright 2022 Esri
9
9
  *
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{l as n}from"./p-4cd4cb85.js";import{l as t}from"./p-ac122d9e.js";const o=new URL(window.location.href).origin.includes("localhost:4444");function a(){const n=(document.documentElement.lang||(null===navigator||void 0===navigator?void 0:navigator.language)||"en").toLowerCase();return t.has(n)?t.get(n):t.has(n.slice(0,2))?t.get(n.slice(0,2)):"en"}async function c(n,t){const a=`assets/t9n/${n}/resources_${t}.json`,c=new URL(`./${a}`,window.location.href).href,e=`${new URL(window.location.href).origin}/dist/${a}`;async function r(n){const t=await fetch(n);if(!t.ok)throw new Error(`Fetch failed with status ${t.status}: ${t.statusText}`);const o=t.headers.get("content-type");if(!o||!o.includes("application/json")){const n=await t.text();throw console.error(`Expected JSON, but received (${o}): ${n}`),new Error("Fetched content is not JSON")}return await t.json()}try{return await r(o?e:c)}catch(n){console.error(`Primary fetch error: ${n}`);try{return await r(e)}catch(n){throw console.error(`Fallback fetch error: ${n}`),new Error("Both primary and fallback fetches failed")}}}function e(n,t){var o,a;const c=null===(o=null==t?void 0:t.user)||void 0===o?void 0:o.culture,e=null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.language,r=n.getLocale();return n.normalizeMessageBundleLocale(c||e||r||"en")}async function r(n,t){const o=n.tagName.toLowerCase(),e=null!=t?t:a();let r;try{r=await c(o,e)}catch(n){console.warn(`no locale for ${o} (${e}) loading default locale en.`),r=await c(o,"en")}return[r,e]}async function i(t,o){try{s(t,await r(t.el),o)}catch(n){}finally{try{const[a]=await n(["esri/intl"]);a.onLocaleChange(function(n,t){return async o=>{const a=await r(n.el,o);s(n,a,t)}}(t,o))}catch(n){}}}function s(n,t,o){n.messages=t[0],o&&(n.messages=Object.assign(Object.assign({},n.messages),o))}export{e as a,r as b,a as c,i as g}
6
+ import{l as n}from"./p-65581d83.js";import{l as t}from"./p-af2c8aa9.js";const o=new URL(window.location.href).origin.includes("localhost:4444");function a(){const n=(document.documentElement.lang||(null===navigator||void 0===navigator?void 0:navigator.language)||"en").toLowerCase();return t.has(n)?t.get(n):t.has(n.slice(0,2))?t.get(n.slice(0,2)):"en"}async function c(n,t){const a=`assets/t9n/${n}/resources_${t}.json`,c=new URL(`./${a}`,window.location.href).href,r=`${new URL(window.location.href).origin}/dist/${a}`;async function e(n){const t=await fetch(n);if(!t.ok)throw new Error(`Fetch failed with status ${t.status}: ${t.statusText}`);const o=t.headers.get("content-type");if(!o||!o.includes("application/json")){const n=await t.text();throw console.error(`Expected JSON, but received (${o}): ${n}`),new Error("Fetched content is not JSON")}return await t.json()}try{return await e(o?r:c)}catch(n){console.error(`Primary fetch error: ${n}`);try{return await e(r)}catch(n){throw console.error(`Fallback fetch error: ${n}`),new Error("Both primary and fallback fetches failed")}}}function r(n,t){var o,a;const c=null===(o=null==t?void 0:t.user)||void 0===o?void 0:o.culture,r=null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.language,e=n.getLocale();return n.normalizeMessageBundleLocale(c||r||e||"en")}async function e(n,t){const o=n.tagName.toLowerCase(),r=null!=t?t:a();let e;try{e=await c(o,r)}catch(n){console.warn(`no locale for ${o} (${r}) loading default locale en.`),e=await c(o,"en")}return[e,r]}async function i(t,o){try{s(t,await e(t.el),o)}catch(n){}finally{try{const[a]=await n(["esri/intl"]);a.onLocaleChange(function(n,t){return async o=>{const a=await e(n.el,o);s(n,a,t)}}(t,o))}catch(n){}}}function s(n,t,o){n.messages=t[0],o&&(n.messages=Object.assign(Object.assign({},n.messages),o))}export{r as a,e as b,a as c,i as g}