@esri/solutions-components 0.7.7 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. package/dist/assets/t9n/layer-table/resources.json +1 -0
  2. package/dist/assets/t9n/layer-table/resources_en.json +1 -0
  3. package/dist/cjs/basemap-gallery_7.cjs.entry.js +3 -3
  4. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +1 -1
  6. package/dist/cjs/calcite-alert_3.cjs.entry.js +2 -2
  7. package/dist/cjs/calcite-combobox_6.cjs.entry.js +16 -7
  8. package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +16 -9
  9. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  10. package/dist/cjs/card-manager_3.cjs.entry.js +44 -7
  11. package/dist/cjs/crowdsource-manager.cjs.entry.js +13 -2
  12. package/dist/cjs/{helpers-ff831524.js → helpers-a0719076.js} +1 -1
  13. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +10 -10
  14. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  15. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  16. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  17. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  18. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -4
  19. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +7 -7
  20. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +6 -6
  21. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +4 -4
  22. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +3 -3
  23. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  24. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +8 -8
  25. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +7 -7
  26. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  27. package/dist/cjs/instant-apps-popover.cjs.entry.js +3 -3
  28. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +3 -3
  29. package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
  30. package/dist/cjs/{languageSwitcher-cae609d9.js → languageSwitcher-7de41e17.js} +1 -1
  31. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  32. package/dist/cjs/{loadModules-1d0f0316.js → loadModules-51c30ab9.js} +1 -1
  33. package/dist/cjs/loader.cjs.js +1 -1
  34. package/dist/cjs/{locale-56c3447b.js → locale-9b9d0e94.js} +1 -1
  35. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  36. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  37. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  38. package/dist/cjs/solutions-components.cjs.js +1 -1
  39. package/dist/cjs/{utils-41eb3a01.js → utils-35b31785.js} +1 -1
  40. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +5 -5
  41. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +20 -2
  42. package/dist/collection/components/edit-card/edit-card.css +3 -3
  43. package/dist/collection/components/info-card/info-card.css +2 -2
  44. package/dist/collection/components/json-editor/json-editor.css +3 -123
  45. package/dist/collection/components/layer-table/layer-table.css +9 -12
  46. package/dist/collection/components/layer-table/layer-table.js +43 -6
  47. package/dist/collection/components/layout-manager/layout-manager.css +73 -73
  48. package/dist/collection/components/map-draw-tools/map-draw-tools.css +1 -1
  49. package/dist/collection/components/map-layer-picker/map-layer-picker.css +6 -3
  50. package/dist/collection/components/map-layer-picker/map-layer-picker.js +70 -6
  51. package/dist/collection/components/map-picker/map-picker.css +3 -3
  52. package/dist/collection/components/map-search/map-search.css +24 -24
  53. package/dist/collection/components/map-select-tools/map-select-tools.css +5 -5
  54. package/dist/collection/components/map-tools/map-tools.css +1 -1
  55. package/dist/collection/components/public-notification/public-notification.css +11 -11
  56. package/dist/collection/components/public-notification/public-notification.js +1 -1
  57. package/dist/collection/components/refine-selection/refine-selection.css +2 -2
  58. package/dist/collection/components/solution-item-details/solution-item-details.css +0 -148
  59. package/dist/collection/components/solution-item-icon/solution-item-icon.css +2 -124
  60. package/dist/collection/components/solution-item-sharing/solution-item-sharing.css +5 -125
  61. package/dist/collection/components/solution-organization-variables/solution-organization-variables.css +6 -126
  62. package/dist/collection/components/solution-resource-item/solution-resource-item.css +6 -126
  63. package/dist/collection/components/solution-variables/solution-variables.css +9 -129
  64. package/dist/collection/demos/browse-solutions.html +2 -0
  65. package/dist/collection/demos/buffer-tools.html +1 -1
  66. package/dist/collection/demos/card-manager.html +2 -2
  67. package/dist/collection/demos/crowdsource-manager.html +3 -3
  68. package/dist/collection/demos/crowdsource-reporter.html +5 -5
  69. package/dist/collection/demos/deduct-calculator.html +1 -1
  70. package/dist/collection/demos/info-card.html +2 -2
  71. package/dist/collection/demos/layer-table.html +2 -2
  72. package/dist/collection/demos/list-item.html +2 -2
  73. package/dist/collection/demos/map-card.html +2 -2
  74. package/dist/collection/demos/map-draw-tools.html +1 -1
  75. package/dist/collection/demos/map-layer-picker.html +1 -1
  76. package/dist/collection/demos/map-select-tools.html +1 -1
  77. package/dist/collection/demos/new-public-notification.html +5 -5
  78. package/dist/collection/demos/pci-calculator.html +1 -1
  79. package/dist/collection/utils/interfaces.ts +5 -0
  80. package/dist/components/crowdsource-manager.js +16 -4
  81. package/dist/components/edit-card2.js +1 -1
  82. package/dist/components/info-card2.js +1 -1
  83. package/dist/components/instant-apps-ckeditor-wrapper2.js +2 -2
  84. package/dist/components/instant-apps-control-panel.js +1 -1
  85. package/dist/components/instant-apps-export.js +2 -2
  86. package/dist/components/instant-apps-filter-list2.js +4 -2
  87. package/dist/components/instant-apps-header2.js +2 -2
  88. package/dist/components/instant-apps-interactive-legend-classic2.js +1 -1
  89. package/dist/components/instant-apps-interactive-legend-count2.js +1 -1
  90. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +5 -5
  91. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +1 -1
  92. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
  93. package/dist/components/instant-apps-interactive-legend-layer-element2.js +1 -1
  94. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +1 -1
  95. package/dist/components/instant-apps-interactive-legend-relationship2.js +1 -1
  96. package/dist/components/instant-apps-interactive-legend.js +1 -1
  97. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  98. package/dist/components/instant-apps-landing-page.js +1 -1
  99. package/dist/components/instant-apps-language-switcher.js +4 -4
  100. package/dist/components/instant-apps-language-translator-item2.js +4 -4
  101. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  102. package/dist/components/instant-apps-language-translator2.js +3 -3
  103. package/dist/components/instant-apps-measurement.js +2 -2
  104. package/dist/components/instant-apps-popover.js +1 -1
  105. package/dist/components/instant-apps-scoreboard.js +1 -1
  106. package/dist/components/instant-apps-social-share2.js +11 -5
  107. package/dist/components/instant-apps-splash.js +1 -1
  108. package/dist/components/json-editor2.js +1 -1
  109. package/dist/components/layer-table2.js +44 -7
  110. package/dist/components/layout-manager.js +1 -1
  111. package/dist/components/loadModules2.js +1 -1
  112. package/dist/components/map-draw-tools2.js +1 -1
  113. package/dist/components/map-layer-picker2.js +18 -7
  114. package/dist/components/map-picker2.js +1 -1
  115. package/dist/components/map-search2.js +1 -1
  116. package/dist/components/map-select-tools2.js +1 -1
  117. package/dist/components/map-tools2.js +1 -1
  118. package/dist/components/public-notification.js +2 -2
  119. package/dist/components/refine-selection2.js +1 -1
  120. package/dist/components/solution-item-details2.js +1 -1
  121. package/dist/components/solution-item-icon2.js +1 -1
  122. package/dist/components/solution-item-sharing2.js +1 -1
  123. package/dist/components/solution-organization-variables2.js +1 -1
  124. package/dist/components/solution-resource-item2.js +1 -1
  125. package/dist/components/solution-variables2.js +1 -1
  126. package/dist/esm/basemap-gallery_7.entry.js +3 -3
  127. package/dist/esm/buffer-tools_3.entry.js +1 -1
  128. package/dist/esm/calcite-action-pad_2.entry.js +1 -1
  129. package/dist/esm/calcite-alert_3.entry.js +2 -2
  130. package/dist/esm/calcite-combobox_6.entry.js +16 -7
  131. package/dist/esm/calcite-input-date-picker_3.entry.js +16 -9
  132. package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
  133. package/dist/esm/card-manager_3.entry.js +44 -7
  134. package/dist/esm/crowdsource-manager.entry.js +13 -2
  135. package/dist/esm/{helpers-e8282221.js → helpers-078591d2.js} +1 -1
  136. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +10 -10
  137. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  138. package/dist/esm/instant-apps-export.entry.js +4 -4
  139. package/dist/esm/instant-apps-header.entry.js +2 -2
  140. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  141. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -4
  142. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +7 -7
  143. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +6 -6
  144. package/dist/esm/instant-apps-interactive-legend.entry.js +4 -4
  145. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +3 -3
  146. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  147. package/dist/esm/instant-apps-language-switcher.entry.js +8 -8
  148. package/dist/esm/instant-apps-language-translator.entry.js +7 -7
  149. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  150. package/dist/esm/instant-apps-popover.entry.js +3 -3
  151. package/dist/esm/instant-apps-scoreboard.entry.js +3 -3
  152. package/dist/esm/instant-apps-splash.entry.js +3 -3
  153. package/dist/esm/{languageSwitcher-75765d90.js → languageSwitcher-62232826.js} +1 -1
  154. package/dist/esm/layout-manager.entry.js +1 -1
  155. package/dist/esm/{loadModules-037feea8.js → loadModules-b677d6d7.js} +1 -1
  156. package/dist/esm/loader.js +1 -1
  157. package/dist/esm/{locale-53d724b5.js → locale-89b49505.js} +1 -1
  158. package/dist/esm/map-select-tools_3.entry.js +2 -2
  159. package/dist/esm/public-notification.entry.js +2 -2
  160. package/dist/esm/solution-item-icon.entry.js +1 -1
  161. package/dist/esm/solutions-components.js +1 -1
  162. package/dist/esm/{utils-06bace50.js → utils-b1bd777e.js} +1 -1
  163. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +20 -20
  164. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +3 -3
  165. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +3 -3
  166. 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 +4 -4
  167. 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 +1 -1
  168. 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 +5 -7
  169. 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 -7
  170. 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 +4 -5
  171. 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 +1 -1
  172. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend.css +2 -2
  173. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-keyboard-shortcuts/instant-apps-keyboard-shortcuts.css +4 -4
  174. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +6 -6
  175. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-switcher/instant-apps-language-switcher.css +4 -4
  176. 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 +7 -7
  177. 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 +2 -2
  178. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +2 -2
  179. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-measurement/instant-apps-measurement.css +2 -2
  180. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-popover/instant-apps-popover.css +3 -3
  181. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-scoreboard/instant-apps-scoreboard.css +4 -4
  182. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-social-share/instant-apps-social-share.css +6 -6
  183. package/dist/solutions-components/demos/browse-solutions.html +2 -0
  184. package/dist/solutions-components/demos/buffer-tools.html +1 -1
  185. package/dist/solutions-components/demos/card-manager.html +2 -2
  186. package/dist/solutions-components/demos/crowdsource-manager.html +3 -3
  187. package/dist/solutions-components/demos/crowdsource-reporter.html +5 -5
  188. package/dist/solutions-components/demos/deduct-calculator.html +1 -1
  189. package/dist/solutions-components/demos/info-card.html +2 -2
  190. package/dist/solutions-components/demos/layer-table.html +2 -2
  191. package/dist/solutions-components/demos/list-item.html +2 -2
  192. package/dist/solutions-components/demos/map-card.html +2 -2
  193. package/dist/solutions-components/demos/map-draw-tools.html +1 -1
  194. package/dist/solutions-components/demos/map-layer-picker.html +1 -1
  195. package/dist/solutions-components/demos/map-select-tools.html +1 -1
  196. package/dist/solutions-components/demos/new-public-notification.html +5 -5
  197. package/dist/solutions-components/demos/pci-calculator.html +1 -1
  198. package/dist/solutions-components/{p-bab0aa05.js → p-00f9774c.js} +1 -1
  199. package/dist/solutions-components/p-14097810.entry.js +6 -0
  200. package/dist/solutions-components/{p-019f0baa.entry.js → p-166d5bcc.entry.js} +1 -1
  201. package/dist/solutions-components/p-3bf0115f.entry.js +6 -0
  202. package/dist/solutions-components/{p-796ce3a2.entry.js → p-3ea18af7.entry.js} +1 -1
  203. package/dist/solutions-components/p-60d212df.entry.js +6 -0
  204. package/dist/solutions-components/{p-bd3f4aa6.entry.js → p-627c19b5.entry.js} +1 -1
  205. package/dist/solutions-components/{p-84034340.js → p-62e92138.js} +1 -1
  206. package/dist/solutions-components/{p-149d80ad.js → p-68434a63.js} +1 -1
  207. package/dist/solutions-components/{p-b2a9bae3.entry.js → p-75f7bfe3.entry.js} +1 -1
  208. package/dist/solutions-components/{p-188483e2.entry.js → p-789f606f.entry.js} +1 -1
  209. package/dist/solutions-components/{p-a7a06d6a.js → p-83225907.js} +1 -1
  210. package/dist/solutions-components/{p-c3fa8a3d.entry.js → p-95ebc2e5.entry.js} +1 -1
  211. package/dist/solutions-components/p-98fe7b5d.entry.js +6 -0
  212. package/dist/solutions-components/p-99ca7674.entry.js +6 -0
  213. package/dist/solutions-components/p-a0b8cecf.entry.js +6 -0
  214. package/dist/solutions-components/{p-7eec285c.entry.js → p-a5d924a9.entry.js} +1 -1
  215. package/dist/solutions-components/{p-0ad0b29a.js → p-a8a0187d.js} +1 -1
  216. package/dist/solutions-components/{p-8c7d5880.entry.js → p-a9bbd352.entry.js} +1 -1
  217. package/dist/solutions-components/p-a9f21aaf.entry.js +6 -0
  218. package/dist/solutions-components/{p-a2467088.entry.js → p-b42bde59.entry.js} +1 -1
  219. package/dist/solutions-components/p-baf82bab.entry.js +6 -0
  220. package/dist/solutions-components/p-c504529e.entry.js +6 -0
  221. package/dist/solutions-components/p-c556ed60.entry.js +6 -0
  222. package/dist/solutions-components/p-c99843aa.entry.js +6 -0
  223. package/dist/solutions-components/p-c9b4d52f.entry.js +6 -0
  224. package/dist/solutions-components/p-cc774829.entry.js +6 -0
  225. package/dist/solutions-components/p-ced4e208.entry.js +6 -0
  226. package/dist/solutions-components/{p-9e92fd19.entry.js → p-d78f13cb.entry.js} +1 -1
  227. package/dist/solutions-components/{p-10e99d5d.entry.js → p-d8b3d156.entry.js} +1 -1
  228. package/dist/solutions-components/p-db3ca38d.entry.js +17 -0
  229. package/dist/solutions-components/p-dcd6e7b9.entry.js +6 -0
  230. package/dist/solutions-components/{p-811313d1.entry.js → p-dd48cc25.entry.js} +1 -1
  231. package/dist/solutions-components/p-e8011829.entry.js +47 -0
  232. package/dist/solutions-components/p-f7870ec1.entry.js +6 -0
  233. package/dist/solutions-components/solutions-components.css +1 -7
  234. package/dist/solutions-components/solutions-components.esm.js +1 -1
  235. package/dist/solutions-components/utils/interfaces.ts +5 -0
  236. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +8 -0
  237. package/dist/types/components/layer-table/layer-table.d.ts +14 -0
  238. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +15 -1
  239. package/dist/types/components.d.ts +23 -2
  240. package/dist/types/preact.d.ts +3 -2
  241. package/dist/types/utils/interfaces.d.ts +4 -0
  242. package/package.json +2 -2
  243. package/dist/solutions-components/p-0103dee1.entry.js +0 -6
  244. package/dist/solutions-components/p-2f496e4c.entry.js +0 -6
  245. package/dist/solutions-components/p-3977568f.entry.js +0 -17
  246. package/dist/solutions-components/p-3c3c2587.entry.js +0 -6
  247. package/dist/solutions-components/p-4b3ebd24.entry.js +0 -6
  248. package/dist/solutions-components/p-59407d94.entry.js +0 -6
  249. package/dist/solutions-components/p-7283bfe4.entry.js +0 -6
  250. package/dist/solutions-components/p-74a89c71.entry.js +0 -6
  251. package/dist/solutions-components/p-81c5c5f2.entry.js +0 -6
  252. package/dist/solutions-components/p-847193e7.entry.js +0 -6
  253. package/dist/solutions-components/p-9270f6da.entry.js +0 -6
  254. package/dist/solutions-components/p-a1c924c0.entry.js +0 -47
  255. package/dist/solutions-components/p-a44f1e85.entry.js +0 -6
  256. package/dist/solutions-components/p-abab359e.entry.js +0 -6
  257. package/dist/solutions-components/p-ad5f374e.entry.js +0 -6
  258. package/dist/solutions-components/p-afd9d486.entry.js +0 -6
  259. package/dist/solutions-components/p-f4742b64.entry.js +0 -6
  260. package/dist/solutions-components/p-f7042c6a.entry.js +0 -6
@@ -36,7 +36,7 @@
36
36
  .over-map {
37
37
  position: absolute;
38
38
  left: 0px;
39
- background-color: var(--calcite-ui-foreground-1);
39
+ background-color: var(--calcite-color-foreground-1);
40
40
  }
41
41
  .over-map[dir="rtl"] {
42
42
  right: 0px;
@@ -44,7 +44,7 @@
44
44
  .column {
45
45
  width: 320px;
46
46
  padding: 1rem;
47
- border: 1px solid var(--calcite-ui-border-2);
47
+ border: 1px solid var(--calcite-color-border-2);
48
48
  height: -webkit-fill-available;
49
49
  height: 100%;
50
50
  }
@@ -55,17 +55,17 @@
55
55
 
56
56
  <link
57
57
  rel="stylesheet"
58
- href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
58
+ href="https://jsdev.arcgis.com/4.29/esri/themes/light/main.css"
59
59
  />
60
60
  <!-- <link
61
61
  rel="stylesheet"
62
- href="https://jsdev.arcgis.com/4.28/esri/themes/dark/main.css"
62
+ href="https://jsdev.arcgis.com/4.29/esri/themes/dark/main.css"
63
63
  /> -->
64
64
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
65
65
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
66
66
  <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.0.0/calcite.css" />
67
67
 
68
- <script src="https://jsdev.arcgis.com/4.28/"></script>
68
+ <script src="https://jsdev.arcgis.com/4.29/"></script>
69
69
  <script type="module" src="../solutions-components.esm.js"></script>
70
70
 
71
71
  <script>
@@ -23,7 +23,7 @@
23
23
  -->
24
24
  <style>
25
25
  .main {
26
- background-color: var(--calcite-ui-foreground-1);
26
+ background-color: var(--calcite-color-foreground-1);
27
27
  display: grid;
28
28
  align-self: center;
29
29
  }
@@ -23,14 +23,14 @@
23
23
  -->
24
24
  <style>
25
25
  .main {
26
- background-color: var(--calcite-ui-foreground-1);
26
+ background-color: var(--calcite-color-foreground-1);
27
27
  display: grid;
28
28
  align-self: center;
29
29
  }
30
30
  .column {
31
31
  min-width: 300px;
32
32
  padding: 1rem;
33
- border: 1px solid var(--calcite-ui-border-2);
33
+ border: 1px solid var(--calcite-color-border-2);
34
34
  }
35
35
  </style>
36
36
 
@@ -31,12 +31,12 @@
31
31
  .over-map {
32
32
  position: absolute;
33
33
  right: 0px;
34
- background-color: var(--calcite-ui-foreground-1);
34
+ background-color: var(--calcite-color-foreground-1);
35
35
  }
36
36
  .column {
37
37
  width: 50%;
38
38
  height: 100%;
39
- border: 1px solid var(--calcite-ui-border-2);
39
+ border: 1px solid var(--calcite-color-border-2);
40
40
  }
41
41
  .column[dir="rtl"] {
42
42
  float: left;
@@ -25,12 +25,12 @@
25
25
  .over-map {
26
26
  position: absolute;
27
27
  right: 0px;
28
- background-color: var(--calcite-ui-foreground-1);
28
+ background-color: var(--calcite-color-foreground-1);
29
29
  }
30
30
  .column {
31
31
  min-width: 300px;
32
32
  padding: 1rem;
33
- border: 1px solid var(--calcite-ui-border-2);
33
+ border: 1px solid var(--calcite-color-border-2);
34
34
  height: -webkit-fill-available;
35
35
  height: 100%;
36
36
  }
@@ -25,12 +25,12 @@
25
25
  .over-map {
26
26
  position: absolute;
27
27
  right: 0px;
28
- background-color: var(--calcite-ui-foreground-1);
28
+ background-color: var(--calcite-color-foreground-1);
29
29
  }
30
30
  .column {
31
31
  width: 100%;
32
32
  height: 100%;
33
- border: 1px solid var(--calcite-ui-border-2);
33
+ border: 1px solid var(--calcite-color-border-2);
34
34
  }
35
35
  .column[dir="rtl"] {
36
36
  float: left;
@@ -32,7 +32,7 @@
32
32
  .over-map {
33
33
  position: absolute;
34
34
  right: 0px;
35
- background-color: var(--calcite-ui-foreground-1);
35
+ background-color: var(--calcite-color-foreground-1);
36
36
  }
37
37
  .column {
38
38
  min-width: 300px;
@@ -31,7 +31,7 @@
31
31
  .over-map {
32
32
  position: absolute;
33
33
  right: 0px;
34
- background-color: var(--calcite-ui-foreground-1);
34
+ background-color: var(--calcite-color-foreground-1);
35
35
  }
36
36
  .column {
37
37
  min-width: 300px;
@@ -31,7 +31,7 @@
31
31
  .over-map {
32
32
  position: absolute;
33
33
  right: 0px;
34
- background-color: var(--calcite-ui-foreground-1);
34
+ background-color: var(--calcite-color-foreground-1);
35
35
  }
36
36
  .column {
37
37
  min-width: 300px;
@@ -36,7 +36,7 @@
36
36
  .over-map {
37
37
  position: absolute;
38
38
  right: 0px;
39
- background-color: var(--calcite-ui-foreground-1);
39
+ background-color: var(--calcite-color-foreground-1);
40
40
  }
41
41
  .over-map[dir="rtl"] {
42
42
  left: 0px;
@@ -44,7 +44,7 @@
44
44
  .column {
45
45
  width: 320px;
46
46
  padding: 1rem;
47
- border: 1px solid var(--calcite-ui-border-2);
47
+ border: 1px solid var(--calcite-color-border-2);
48
48
  height: -webkit-fill-available;
49
49
  height: 100%;
50
50
  }
@@ -55,17 +55,17 @@
55
55
 
56
56
  <link
57
57
  rel="stylesheet"
58
- href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
58
+ href="https://jsdev.arcgis.com/4.29/esri/themes/light/main.css"
59
59
  />
60
60
  <!-- <link
61
61
  rel="stylesheet"
62
- href="https://jsdev.arcgis.com/4.28/esri/themes/dark/main.css"
62
+ href="https://jsdev.arcgis.com/4.29/esri/themes/dark/main.css"
63
63
  /> -->
64
64
  <link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
65
65
  <link rel="stylesheet" href="../solutions-components.css" type="text/css">
66
66
  <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.0.0/calcite.css" />
67
67
 
68
- <script src="https://jsdev.arcgis.com/4.28/"></script>
68
+ <script src="https://jsdev.arcgis.com/4.29/"></script>
69
69
  <script type="module" src="../solutions-components.esm.js"></script>
70
70
 
71
71
  <script>
@@ -23,7 +23,7 @@
23
23
  -->
24
24
  <style>
25
25
  .main {
26
- background-color: var(--calcite-ui-foreground-1);
26
+ background-color: var(--calcite-color-foreground-1);
27
27
  display: grid;
28
28
  align-self: center;
29
29
  }
@@ -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 o}from"./p-0ad0b29a.js";async function t(o,t){var n,a,e;try{const s=null===(e=null===(a=null===(n=null==t?void 0:t.portalItem)||void 0===n?void 0:n.portal)||void 0===a?void 0:a.credential)||void 0===e?void 0:e.token,i={responseType:"json"};s&&(i.query={token:s});var r="cacheBuster="+Date.now();const l=`${t.url}?${r}`,c=await o(l,i);return Promise.resolve(c.data)}catch(o){console.error("Unable to get resource t9n data.")}}async function n(t){if(!t)return null;const[n]=await o(["esri/portal/PortalItemResource"]),a=await t.fetchResources(),e=`t9n/${null==t?void 0:t.id}.json`,r=new n({path:e,portalItem:t}),s=a.resources.filter((o=>o.resource.path===e));if(0!==s.length)return Promise.resolve(s[0].resource);{const o="application/json",n=new Blob([JSON.stringify({})],{type:o});try{await t.addResource(r,n);const o=await t.fetchResources(),a=`t9n/${null==t?void 0:t.id}.json`,e=o.resources.filter((o=>o.resource.path===a));return Promise.resolve(e[0].resource)}catch(o){return console.error("ERROR: ",o),Promise.reject(null)}}}export{t as f,n as g}
6
+ import{l as o}from"./p-a8a0187d.js";async function t(o,t){var n,a,e;try{const s=null===(e=null===(a=null===(n=null==t?void 0:t.portalItem)||void 0===n?void 0:n.portal)||void 0===a?void 0:a.credential)||void 0===e?void 0:e.token,i={responseType:"json"};s&&(i.query={token:s});var r="cacheBuster="+Date.now();const l=`${t.url}?${r}`,c=await o(l,i);return Promise.resolve(c.data)}catch(o){console.error("Unable to get resource t9n data.")}}async function n(t){if(!t)return null;const[n]=await o(["esri/portal/PortalItemResource"]),a=await t.fetchResources(),e=`t9n/${null==t?void 0:t.id}.json`,r=new n({path:e,portalItem:t}),s=a.resources.filter((o=>o.resource.path===e));if(0!==s.length)return Promise.resolve(s[0].resource);{const o="application/json",n=new Blob([JSON.stringify({})],{type:o});try{await t.addResource(r,n);const o=await t.fetchResources(),a=`t9n/${null==t?void 0:t.id}.json`,e=o.resources.filter((o=>o.resource.path===a));return Promise.resolve(e[0].resource)}catch(o){return console.error("ERROR: ",o),Promise.reject(null)}}}export{t as f,n as g}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as s,h as i,H as o,g as e}from"./p-78780f63.js";import{l as n}from"./p-a8a0187d.js";import{b as a}from"./p-83225907.js";import{w as r}from"./p-abea8ef5.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";const l="instant-apps-scoreboard",d=`${l}--`,c=`${l}__`,p=r.medium[1],h={BASE:l,itemsContainer:`${c}items-container`,items:`${c}items`,item:`${c}item`,label:`${c}item-label`,value:`${c}item-value`,valuePlaceholder:`${c}item-value-placeholder`,position:{bottom:`${c}position--bottom`,side:`${c}position--side`,left:`${c}position--left`,right:`${c}position--right`},mode:{floating:`${c}mode--floating`,pinned:`${c}mode--pinned`}},b=class{constructor(i){t(this,i),this.scoreboardItemsUpdated=s(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await this.view.map.loadAll();const t=this.items.map((t=>{var s;return null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id}));this.layers=this.view.map.allLayers.filter((s=>(s=>(t=>!t.isTable)(s)&&(t=>"feature"===t.type||"scene"===t.type)(s)&&(s=>t.indexOf(s.id)>-1)(s))(s))),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach((t=>t.outFields=["*"]));const t=[];this.layers.forEach((s=>{const i=this.view.whenLayerView(s);t.push(i)}));const s=(await Promise.allSettled(t)).filter((t=>"fulfilled"==t.status&&t.value)).map((t=>t.value)),i=[];s.forEach((t=>{var s;return i.push(null===(s=this.reactiveUtils)||void 0===s?void 0:s.whenOnce((()=>!t.updating)))})),await Promise.all(i),this.layerViews=new this.Collection([...s])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&0===this.layers.length||this.layerViews&&0===this.layerViews.length)return;this.state="calculating";const t=[...this.items],s=[];this.queryStatDefinitions(t,s);const i=await Promise.all(s);this.handleQueryFeaturesResponses(i,t),this.items.length=0,t.forEach((t=>this.items.push(t))),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){var t;new ResizeObserver((()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)})).observe(null===(t=this.el)||void 0===t?void 0:t.parentElement);try{this.state="loading",await this.initMessages()}catch(t){return this.state="disabled",Promise.reject()}finally{if(!this.view||!this.items)return this.state="disabled",Promise.reject();try{return await this.initModules(),Promise.resolve()}catch(t){return this.state="disabled",Promise.reject()}}}async componentDidLoad(){var t;if("disabled"!==this.state)try{await(null===(t=this.reactiveUtils)||void 0===t?void 0:t.whenOnce((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.ready}))),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch(t){this.state="disabled",console.error(`${l}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){var t,s,i,o,e,n;this.state="disabled",this.itemIndex=0,null===(t=this.layers)||void 0===t||t.removeAll(),null===(s=this.layers)||void 0===s||s.destroy(),this.layers=null,null===(i=this.layerViews)||void 0===i||i.removeAll(),null===(o=this.layerViews)||void 0===o||o.destroy(),this.layerViews=null,null===(e=this.handles)||void 0===e||e.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await a(this.el))[0],this.messages=Object.assign(Object.assign({},this.messages),t),Promise.resolve()}catch(t){console.error("FAILED TO LOAD MESSAGES"),Promise.reject()}}async initModules(){try{const[t,s,i,o]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/core/Collection","esri/intl"]);return this.reactiveUtils=s,this.Collection=i,this.intl=o,this.handles=new t,this.layers=new i,this.layerViews=new i,Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}async loadMapResources(){const{map:t}=this.view,s=t;try{return await s.loadAll(),Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}generateUID(){return t=>{const s=Math.random(),i=Math.floor(10*Math.random())+11,o=s.toString(i).replace("0.","");t.uid=o}}render(){var t,s;const{state:e}=this,n="disabled"===e,a="loading"===e||"calculating"===e||(null===(t=this.view)||void 0===t?void 0:t.updating)?this.renderProgress():null;return i(o,{class:`${this.getPositionClass} ${this.getStyleClass}`},n?null:[a,(null===(s=this.items)||void 0===s?void 0:s.length)>0?this.renderBase():null])}renderBase(){return i("div",{key:"instant-apps-scoreboard-base",class:l},this.renderContent())}renderContent(){const{state:t}=this;return"loading"===t?this.renderLoader():"calculating"===t||"complete"===t?this.renderItemsContainer():null}renderItemsContainer(){const[t,s]=this.renderPreviousNextButtons();return i("div",{class:h.itemsContainer},t,this.renderItems(),s)}renderPreviousNextButtons(){var t,s,o;const e=this.getItemLimit(),n=(null===(t=this.items.filter((t=>t.visible)))||void 0===t?void 0:t.length)<=e,a=0===this.itemIndex,r=this.isEnd,l=!!this.isMobile||"bottom"===this.position,d=l?"start":"center",c={previous:l?"chevron-left":"chevron-up",next:l?"chevron-right":"chevron-down"},p=a||n?"blank":c.previous,h=r||n?"blank":c.next,b={previous:a||n,next:r||n},u="transparent",m=this.isMobile?"s":"l",v={previous:null===(s=this.messages)||void 0===s?void 0:s.previous,next:null===(o=this.messages)||void 0===o?void 0:o.next};return[i("calcite-action",{onClick:this.previousItem.bind(this),icon:p,disabled:b.previous,alignment:d,scale:m,appearance:u,text:v.previous,label:v.previous}),i("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:d,scale:m,appearance:u,text:v.next,label:v.next})]}renderItems(){const{items:t}=h,s=this.getItemsToDisplay.map((t=>this.renderItem(t)));return i("ul",{class:t},s)}renderItem(t){const{label:s}=t;return i("li",{class:h.item},i("span",{class:h.label,title:s},s),this.renderValue(t))}renderValue(t){var s,o,e;const{displayValue:n}=t,a="disabled"===this.state,r=void 0===n&&"calculating"===this.state,l=n||(null===(s=this.messages)||void 0===s?void 0:s.NA),d=null===(o=this.layers)||void 0===o?void 0:o.find((s=>{var i;return(null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id)===s.id})),c=!(null==d?void 0:d.visible),p=r?this.renderValuePlaceholder():a?"":c?i("calcite-icon",{icon:"view-hide",scale:"l",title:null===(e=this.messages)||void 0===e?void 0:e.layerVisibilityOff}):l;return i("span",{class:h.value},p)}renderValuePlaceholder(){return i("span",{class:h.valuePlaceholder})}renderProgress(){return i("calcite-progress",{key:`${d}calcite-progress`,type:"indeterminate"})}renderLoader(){var t;const s=null===(t=this.messages)||void 0===t?void 0:t.loading;return i("calcite-loader",{key:`${d}calcite-loader`,label:s,text:s,scale:"m"})}get getPositionClass(){const{bottom:t,left:s,right:i,side:o}=h.position;return this.isMobile||"bottom"===this.position?t:`${"left"===this.position?s:i} ${o}`}get getStyleClass(){const{floating:t,pinned:s}=h.mode;return this.isMobile?s:"floating"===this.mode?t:s}get checkMobile(){var t,s;const i=null===(s=null===(t=this.el)||void 0===t?void 0:t.parentElement)||void 0===s?void 0:s.offsetWidth;return!isNaN(i)&&i>0&&i<p}get getItemsToDisplay(){const t=this.getItemLimit();return this.items.filter((t=>t.visible)).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){const t=this.getItemLimit(),s=this.items.slice(this.items.length-t).map((t=>t.uid)),i=this.items.slice(this.itemIndex,this.itemIndex+t).map((t=>t.uid));return s.every(((t,s)=>t===i[s]))}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,s){const i=(t,s)=>{const i=t.createQuery(),o=this.geometry?this.geometry:this.view.extent;return i.outStatistics=[s],i.geometry=o,i};t.forEach((()=>async t=>{var o;const e=null===(o=this.layerViews)||void 0===o?void 0:o.find((s=>{var i;return s.layer.id===(null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id)}));if(!e)return;const n=(t=>{const{field:s,operation:i}=t;return{onStatisticField:s,outStatisticFieldName:`${s}_${i}`,statisticType:i}})(t),a=i(e,n),r=e.queryFeatures(a);s.push(r)})())}handleQueryFeaturesResponses(t,s){t.forEach((()=>(t,i)=>{const o=(t=>{const s=t.features[0],{attributes:i}=s;return Object.values(i)[0]})(t),e=null!==o,n=e?this.intl.formatNumber(o,{notation:"compact",compactDisplay:"short"}):null;s[i].displayValue=e?`${n}`:"",s[i].value=o})())}initStationaryWatcher(){var t,s;const i={once:!0,initial:!0},o=()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.interacting)}),(()=>this.calculateScoreboardItemValues()),i)},e="stationary-watcher-key";(null===(t=this.handles)||void 0===t?void 0:t.has(e))&&this.handles.remove(e),null===(s=this.handles)||void 0===s||s.add((()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.stationary}),(()=>o()))})(),e)}initViewUpdateWatcher(){return this.reactiveUtils.watch((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.updating}),(()=>{this.reactiveUtils.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.updating)}),(()=>this.calculateScoreboardItemValues()),{once:!0,initial:!0})}),{initial:!0})}watchLayerVisibility(){var t,s;if(!this.layers)return;const i="visbilityWatcherKey";null===(t=this.handles)||void 0===t||t.remove(i);const o=[];this.layers.forEach((t=>{const s=async()=>{const s=await this.view.whenLayerView(t);await this.reactiveUtils.whenOnce((()=>!1===(null==s?void 0:s.updating))),this.calculateScoreboardItemValues()},i=this.reactiveUtils.watch((()=>null==t?void 0:t.visible),(async()=>s()));o.push(i)})),null===(s=this.handles)||void 0===s||s.add([...o],i)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?6:this.itemLimit}get el(){return e(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};b.style=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word;font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}";export{b as instant_apps_scoreboard}
@@ -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 i,h as a,H as e,g as n}from"./p-78780f63.js";import{g as o}from"./p-6b943f52.js";import{E as c}from"./p-4af32c75.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const s=class{constructor(a){t(this,a),this.layoutChanged=i(this,"layoutChanged",7),this._layoutMode=c.GRID,this._translations=void 0}async componentWillLoad(){await this._getTranslations()}render(){return a(e,null,a("div",{class:"display-flex"},a("div",{class:"display-flex action-center"},a("calcite-icon",{class:"icon icon-color",icon:"information",id:"app-information-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"app-information-icon"},a("span",{class:"tooltip-message"},this._translations.appInfo))),a("div",{class:"header-text"},this._translations.layout),this._getAction("grid-background",c.GRID,this._translations.grid),this._getAction("vertical-background",c.VERTICAL,this._translations.vertical),this._getAction("horizontal-background",c.HORIZONTAL,this._translations.horizontal)))}_getAction(t,i,e){return a("div",null,a("calcite-action",{alignment:"center",appearance:"transparent",compact:!1,id:t,indicator:i===this._layoutMode,onClick:()=>{this._setLayoutMode(i)},text:""},a("div",{class:t+" img-background"})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,e)))}_setLayoutMode(t){this._layoutMode=t,this.layoutChanged.emit(this._layoutMode)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return n(this)}};s.style=":host{display:block}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.display-flex{display:flex}.icon-color{--calcite-ui-icon-color:var(--calcite-ui-brand)}.icon{cursor:pointer}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}.header-text{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);padding-inline:0.75rem;padding-block:0.875rem;line-height:1.25rem}.img-background{background-repeat:no-repeat;background-size:100% 100%;width:38px;height:26px}.grid-background{background-image:url('../../assets/data/images/grid.png')}.horizontal-background{background-image:url('../../assets/data/images/horizontal.png')}.vertical-background{background-image:url('../../assets/data/images/vertical.png')}";export{s as layout_manager}
6
+ import{r as t,c as i,h as a,H as e,g as o}from"./p-78780f63.js";import{g as n}from"./p-6b943f52.js";import{E as c}from"./p-4af32c75.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const r=class{constructor(a){t(this,a),this.layoutChanged=i(this,"layoutChanged",7),this._layoutMode=c.GRID,this._translations=void 0}async componentWillLoad(){await this._getTranslations()}render(){return a(e,null,a("div",{class:"display-flex"},a("div",{class:"display-flex action-center"},a("calcite-icon",{class:"icon icon-color",icon:"information",id:"app-information-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"app-information-icon"},a("span",{class:"tooltip-message"},this._translations.appInfo))),a("div",{class:"header-text"},this._translations.layout),this._getAction("grid-background",c.GRID,this._translations.grid),this._getAction("vertical-background",c.VERTICAL,this._translations.vertical),this._getAction("horizontal-background",c.HORIZONTAL,this._translations.horizontal)))}_getAction(t,i,e){return a("div",null,a("calcite-action",{alignment:"center",appearance:"transparent",compact:!1,id:t,indicator:i===this._layoutMode,onClick:()=>{this._setLayoutMode(i)},text:""},a("div",{class:t+" img-background"})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,e)))}_setLayoutMode(t){this._layoutMode=t,this.layoutChanged.emit(this._layoutMode)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}get el(){return o(this)}};r.style=":host{display:block}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.display-flex{display:flex}.icon-color{--calcite-color-icon-color:var(--calcite-color-brand)}.icon{cursor:pointer}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}.header-text{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);padding-inline:0.75rem;padding-block:0.875rem;line-height:1.25rem}.img-background{background-repeat:no-repeat;background-size:100% 100%;width:38px;height:26px}.grid-background{background-image:url('../../assets/data/images/grid.png')}.horizontal-background{background-image:url('../../assets/data/images/horizontal.png')}.vertical-background{background-image:url('../../assets/data/images/vertical.png')}";export{r as layout_manager}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as o,h as i,H as e,g as a}from"./p-78780f63.js";import{g as l}from"./p-83225907.js";import"./p-a8a0187d.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";const s=class{constructor(i){t(this,i),this.measureActive=o(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){l(this)}componentDidLoad(){}render(){var t;return i(e,null,i("calcite-panel",{heading:null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.label,closable:this.closable},i("div",null,this.renderActionPad()),this.renderMeasureToolPanel()))}renderMeasureToolPanel(){const{view:t,coordinateFormat:o,areaUnit:e,linearUnit:a,activeToolType:l}=this;return i("calcite-panel",{class:"instant-apps-measurement__content"},i("instant-apps-measurement-tool",{ref:t=>{this.measureTool=t},view:t,measureConfiguration:{coordinateFormat:o,areaUnit:e,linearUnit:a,activeToolType:l}}))}renderActionPad(){const{messages:t,activeToolType:o}=this;return i("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},i("calcite-action",{class:"distance"===o?"active-tool":"",text:null==t?void 0:t.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},i("calcite-tooltip",{"close-on-click":!0,placement:"bottom",slot:"tooltip"},null==t?void 0:t.line)),i("calcite-action",{class:"area"===o?"active-tool":"",text:null==t?void 0:t.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},i("calcite-tooltip",{"close-on-click":!0,placement:"bottom",slot:"tooltip"},null==t?void 0:t.area)),i("calcite-action",{class:"point"===o?"active-tool":"",text:null==t?void 0:t.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},i("calcite-tooltip",{"close-on-click":!0,placement:"bottom",slot:"tooltip"},null==t?void 0:t.point)),i("calcite-action",{text:null==t?void 0:t.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},i("calcite-tooltip",{"close-on-click":!0,placement:"bottom",slot:"tooltip"},null==t?void 0:t.clear)))}_handleToolClick(t){var o,i,e,a;if(!(null==this?void 0:this.measureTool))return;const l=null===(o=null==t?void 0:t.target)||void 0===o?void 0:o.dataset.value;this.measureTool.activeTool=l;const s=document.getElementsByClassName("active-tool");for(let t=0;t<(null==s?void 0:s.length);t++)null===(e=null===(i=s[t])||void 0===i?void 0:i.classList)||void 0===e||e.remove("active-tool");null===(a=null==t?void 0:t.target)||void 0===a||a.classList.add("active-tool"),this.measureActive.emit(void 0!==l&&"clear"!==l)}get el(){return a(this)}};s.style=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}";export{s as instant_apps_measurement}
@@ -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-78780f63.js";import{S as n}from"./p-a230b270.js";import{b as o}from"./p-a7a06d6a.js";import"./p-0ad0b29a.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.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=n)||"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.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(){this.setMessages()}render(){return i("calcite-modal",{onCalciteModalClose:this.close.bind(this),open:this.open,closeButtonDisabled:this.closeButtonDisabled},this.renderHeader(),this.renderContent(),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.renderPrimaryButton())}renderHeader(){const{titleText:t}=this;return i("header",{slot:"header"},t)}renderContent(){const{content:t}=this;return i("div",{slot:"content",innerHTML:t})}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:e}),null==s?void 0:s.dontShowThisAgain))}renderPrimaryButton(){const{primaryButtonText:t}=this;return i("calcite-button",{onClick:this.close.bind(this),slot:"primary"},t)}close(){this.open=!1,this.splashClose.emit()}async setMessages(){const t=await o(this.el);this.messages=t[0]}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 .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-78780f63.js";import{S as n}from"./p-a230b270.js";import{b as o}from"./p-83225907.js";import"./p-a8a0187d.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.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=n)||"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.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(){this.setMessages()}render(){return i("calcite-modal",{onCalciteModalClose:this.close.bind(this),open:this.open,closeButtonDisabled:this.closeButtonDisabled},this.renderHeader(),this.renderContent(),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.renderPrimaryButton())}renderHeader(){const{titleText:t}=this;return i("header",{slot:"header"},t)}renderContent(){const{content:t}=this;return i("div",{slot:"content",innerHTML:t})}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)}close(){this.open=!1,this.splashClose.emit()}async setMessages(){const t=await o(this.el);this.messages=t[0]}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 .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}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as e,f as t,h as n,g as i,c as a}from"./p-78780f63.js";import{l as s}from"./p-a8a0187d.js";import{g as r,i as l,q as c,r as o,t as p,m as d,w as v,x as g,k as h,v as m}from"./p-68434a63.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";const u=class{constructor(t){e(this,t),this.showTotal=!1,this.legendvm=void 0,this.activeLayerInfo=void 0,this.categoryId=void 0,this.infoIndex=void 0,this.messages=void 0,this.selected=void 0,this.legendElement=void 0}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0});const[e]=await s(["esri/intl","esri/core/reactiveUtils","esri/core/Handles"]);this.intl=e}render(){var e;return n("div",{key:"int-legend-count"},this.showTotal?n("span",null,null===(e=this.messages)||void 0===e?void 0:e.totalFeatureCount,": ",this.getTotalFeatureCount()):n("span",{key:"element-info-count",class:` instant-apps-interactive-legend__info-count-text ${r(this.el)}${this.selected?" instant-apps-interactive-legend__info-count-text--selected":""}`},this.getCount()))}getCount(){var e,t;const{categoryId:n}=this,i=this.activeLayerInfo.layer.id,a=null===(t=null===(e=l.data[i])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size;if(!(l.data&&i&&n||a))return"";const s=l.data[i];if(!s)return;const{categories:r}=s,c=r.get(n);let o;return o=(null==c?void 0:c.nestedInfos)?g(c,this.infoIndex):c,isNaN(null==o?void 0:o.count)?"":this.intl.formatNumber(o.count)}getTotalFeatureCount(){const e=this.activeLayerInfo.layer.id;if(!l.data||!e)return"";const t=l.data[e];if(!t)return;const{categories:n}=t,i=c(n);let a;if(o(n))a=p(i);else if(d(this.activeLayerInfo)){const e=h(this.activeLayerInfo.layer);a=c(e.categories)[1].count}else a=v(i);return this.intl.formatNumber(a)}get el(){return i(this)}};u.style=".sc-instant-apps-interactive-legend-count-h{display:flex;align-items:center}.instant-apps-interactive-legend__info-count-text.sc-instant-apps-interactive-legend-count{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected.sc-instant-apps-interactive-legend-count{color:var(--calcite-color-text-inverse)}html[dir=rtl] .sc-instant-apps-interactive-legend-count-h{margin-left:0;margin-right:auto}";const y=class{constructor(t){e(this,t),this.layerCaptionElementExpandUpdatedEvent=a(this,"layerCaptionElementExpandUpdated",7),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}render(){var e,t,i;const a=m(this.activeLayerInfo),{expanded:s}=this,l=s?null===(e=this.messages)||void 0===e?void 0:e.collapse:null===(t=this.messages)||void 0===t?void 0:t.expand,c=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return n("header",{class:`instant-apps-interactive-legend__header ${r(this.el)}`},n("calcite-action",{onClick:this.toggleExpanded(),icon:s?"chevron-down":"chevron-up",appearance:"transparent",text:l,label:l,scale:"s"}),n("span",null,n("span",{class:"instant-apps-interactive-legend__header-action-container"},n("h3",{class:`esri-widget__heading esri-legend__service-label${c}`},null===(i=this.activeLayerInfo)||void 0===i?void 0:i.title)),this.featureCount&&a?n("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":!0,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return i(this)}};y.style=".sc-instant-apps-interactive-legend-layer-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{overflow:hidden;margin:0;overflow-x:hidden;display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption h3.sc-instant-apps-interactive-legend-layer-element-caption{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-layer-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption span.sc-instant-apps-interactive-legend-layer-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-layer-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}";export{u as instant_apps_interactive_legend_count,y as instant_apps_interactive_legend_layer_element_caption}
@@ -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 e,h as a,a as t,g as i}from"./p-78780f63.js";const o=class{constructor(a){e(this,a),this.isPortal=!1,this.type="",this.typeKeywords=[]}render(){return a("div",{title:this.type},a("img",{class:"item-type-icon item-type-icon-margin",height:"16",src:this._getIconUrl(this.type,this.typeKeywords),width:"16"}))}_getIconUrl(e,a){const i=e&&e.toLowerCase()||"";let o=!1,c=!1,l=!1,r=!1,p=!1,s=!1,n="";return a=a||[],i.indexOf("service")>0||"feature collection"===i||"kml"===i||"wms"===i||"wmts"===i||"wfs"===i?(o=a.indexOf("Hosted Service")>-1,"feature service"===i||"feature collection"===i||"kml"===i||"wfs"===i?(r=a.indexOf("Table")>-1,c=a.indexOf("Route Layer")>-1,l=a.indexOf("Markup")>-1,p=-1!==a.indexOf("Spatiotemporal"),n=p&&r?"spatiotemporaltable":r?"table":c?"routelayer":l?"markup":p?"spatiotemporal":o?"featureshosted":"features"):"map service"===i||"wms"===i||"wmts"===i?(p=-1!==a.indexOf("Spatiotemporal"),s=-1!==a.indexOf("Relational"),n=p||s?"mapimages":o||a.indexOf("Tiled")>-1||"wmts"===i?"maptiles":"mapimages"):n="scene service"===i?a.indexOf("Line")>-1?"sceneweblayerline":a.indexOf("3DObject")>-1?"sceneweblayermultipatch":a.indexOf("Point")>-1?"sceneweblayerpoint":a.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":a.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":a.indexOf("Polygon")>-1?"sceneweblayerpolygon":a.indexOf("Building")>-1?"sceneweblayerbuilding":"sceneweblayer":"image service"===i?a.indexOf("Elevation 3D Layer")>-1?"elevationlayer":a.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===i?"streamlayer":"vector tile service"===i?"vectortile":"datastore catalog service"===i?"datastorecollection":"geocoding service"===i?"geocodeservice":"geoprocessing service"===i&&a.indexOf("Web Tool")>-1&&this.isPortal?"tool":"layers"):n="web map"===i||"cityengine web scene"===i?"maps":"web scene"===i?a.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===i||"mobile application"===i||"application"===i||"operation view"===i||"desktop application"===i?"apps":"map document"===i||"map package"===i||"published map"===i||"scene document"===i||"globe document"===i||"basemap package"===i||"mobile basemap package"===i||"mobile map package"===i||"project package"===i||"project template"===i||"pro map"===i||"layout"===i||"layer"===i&&a.indexOf("ArcGIS Pro")>-1||"explorer map"===i&&a.indexOf("Explorer Document")?"mapsgray":"service definition"===i||"csv"===i||"shapefile"===i||"cad drawing"===i||"geojson"===i||"360 vr experience"===i||"netcdf"===i||"administrative report"===i?"datafiles":"explorer add in"===i||"desktop add in"===i||"windows viewer add in"===i||"windows viewer configuration"===i?"appsgray":"arcgis pro add in"===i||"arcgis pro configuration"===i?"addindesktop":"rule package"===i||"file geodatabase"===i||"sqlite geodatabase"===i||"csv collection"===i||"kml collection"===i||"windows mobile package"===i||"map template"===i||"desktop application template"===i||"gml"===i||"arcpad package"===i||"code sample"===i||"form"===i||"document link"===i||"operations dashboard add in"===i||"rules package"===i||"image"===i||"workflow manager package"===i||"explorer map"===i&&a.indexOf("Explorer Mapping Application")>-1||a.indexOf("Document")>-1?"datafilesgray":"network analysis service"===i||"geoprocessing service"===i||"geodata service"===i||"geometry service"===i||"geoprocessing package"===i||"locator package"===i||"geoprocessing sample"===i||"workflow manager service"===i?"toolsgray":"layer"===i||"layer package"===i||"explorer layer"===i?"layersgray":"scene package"===i?"scenepackage":"mobile scene package"===i?"mobilescenepackage":"tile package"===i||"compact tile package"===i?"tilepackage":"task file"===i?"taskfile":"report template"===i?"report-template":"statistical data collection"===i?"statisticaldatacollection":"insights workbook"===i?"workbook":"insights model"===i?"insightsmodel":"insights page"===i?"insightspage":"insights theme"===i?"insightstheme":"hub initiative"===i?"hubinitiative":"hub page"===i?"hubpage":"hub site application"===i?"hubsite":"hub event"===i?"hubevent":"relational database connection"===i?"relationaldatabaseconnection":"big data file share"===i?"datastorecollection":"image collection"===i?"imagecollection":"desktop style"===i?"desktopstyle":"style"===i?"style":"dashboard"===i?"dashboard":"raster function template"===i?"rasterprocessingtemplate":"vector tile package"===i?"vectortilepackage":"ortho mapping project"===i?"orthomappingproject":"ortho mapping template"===i?"orthomappingtemplate":"solution"===i?"solutions":"geopackage"===i?"geopackage":"deep learning package"===i?"deeplearningpackage":"real time analytic"===i?"realtimeanalytics":"big data analytic"===i?"bigdataanalytics":"feed"===i?"feed":"excalibur imagery project"===i?"excaliburimageryproject":"notebook"===i?"notebook":"storymap"===i?"storymap":"survey123 add in"===i?"survey123addin":"mission"===i?"mission":"mission report"===i?"missionreport":"quickcapture project"===i?"quickcaptureproject":"pro report"===i?"proreport":"urban model"===i?"urbanmodel":"web experience"===i?"experiencebuilder":"web experience template"===i?"webexperiencetemplate":"workflow"===i?"workflow":"kernel gateway connection"===i?"kernelgatewayconnection":"insights script"===i?"insightsscript":"hub initiative template"===i?"hubinitiativetemplate":"storymap theme"===i?"storymaptheme":"group"===i?"group":"maps",n?t("./item-icons/"+n+"16.png"):null}static get assetsDirs(){return["item-icons"]}get el(){return i(this)}};o.style='.item-type-icon{pointer-events:none;display:block;height:1rem;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}.item-type-icon-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.item-type-icon-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.item-type-icon-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.item-type-icon-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.item-type-icon-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.item-type-icon-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.item-type-icon-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.item-type-icon-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face .item-type-icon{letter-spacing:0em;font-family:"Consolas", "Andale Mono", "Lucida Console", "Monaco", monospace;font-weight:400;font-style:normal}.code-face .item-type-icon b,.code-face .item-type-icon strong{font-weight:400}.code-italic .item-type-icon{letter-spacing:0em;font-family:"Consolas", "Andale Mono", "Lucida Console", "Monaco", monospace;font-weight:400;font-style:italic}.code-italic .item-type-icon b,.code-italic .item-type-icon strong{font-weight:400}.item-type-icon{margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}';export{o as solution_item_icon}
6
+ import{r as e,h as a,a as t,g as i}from"./p-78780f63.js";const o=class{constructor(a){e(this,a),this.isPortal=!1,this.type="",this.typeKeywords=[]}render(){return a("div",{title:this.type},a("img",{class:"item-type-icon item-type-icon-margin",height:"16",src:this._getIconUrl(this.type,this.typeKeywords),width:"16"}))}_getIconUrl(e,a){const i=e&&e.toLowerCase()||"";let o=!1,r=!1,s=!1,n=!1,c=!1,p=!1,l="";return a=a||[],i.indexOf("service")>0||"feature collection"===i||"kml"===i||"wms"===i||"wmts"===i||"wfs"===i?(o=a.indexOf("Hosted Service")>-1,"feature service"===i||"feature collection"===i||"kml"===i||"wfs"===i?(n=a.indexOf("Table")>-1,r=a.indexOf("Route Layer")>-1,s=a.indexOf("Markup")>-1,c=-1!==a.indexOf("Spatiotemporal"),l=c&&n?"spatiotemporaltable":n?"table":r?"routelayer":s?"markup":c?"spatiotemporal":o?"featureshosted":"features"):"map service"===i||"wms"===i||"wmts"===i?(c=-1!==a.indexOf("Spatiotemporal"),p=-1!==a.indexOf("Relational"),l=c||p?"mapimages":o||a.indexOf("Tiled")>-1||"wmts"===i?"maptiles":"mapimages"):l="scene service"===i?a.indexOf("Line")>-1?"sceneweblayerline":a.indexOf("3DObject")>-1?"sceneweblayermultipatch":a.indexOf("Point")>-1?"sceneweblayerpoint":a.indexOf("IntegratedMesh")>-1?"sceneweblayermesh":a.indexOf("PointCloud")>-1?"sceneweblayerpointcloud":a.indexOf("Polygon")>-1?"sceneweblayerpolygon":a.indexOf("Building")>-1?"sceneweblayerbuilding":"sceneweblayer":"image service"===i?a.indexOf("Elevation 3D Layer")>-1?"elevationlayer":a.indexOf("Tiled Imagery")>-1?"tiledimagerylayer":"imagery":"stream service"===i?"streamlayer":"vector tile service"===i?"vectortile":"datastore catalog service"===i?"datastorecollection":"geocoding service"===i?"geocodeservice":"geoprocessing service"===i&&a.indexOf("Web Tool")>-1&&this.isPortal?"tool":"layers"):l="web map"===i||"cityengine web scene"===i?"maps":"web scene"===i?a.indexOf("ViewingMode-Local")>-1?"webscenelocal":"websceneglobal":"web mapping application"===i||"mobile application"===i||"application"===i||"operation view"===i||"desktop application"===i?"apps":"map document"===i||"map package"===i||"published map"===i||"scene document"===i||"globe document"===i||"basemap package"===i||"mobile basemap package"===i||"mobile map package"===i||"project package"===i||"project template"===i||"pro map"===i||"layout"===i||"layer"===i&&a.indexOf("ArcGIS Pro")>-1||"explorer map"===i&&a.indexOf("Explorer Document")?"mapsgray":"service definition"===i||"csv"===i||"shapefile"===i||"cad drawing"===i||"geojson"===i||"360 vr experience"===i||"netcdf"===i||"administrative report"===i?"datafiles":"explorer add in"===i||"desktop add in"===i||"windows viewer add in"===i||"windows viewer configuration"===i?"appsgray":"arcgis pro add in"===i||"arcgis pro configuration"===i?"addindesktop":"rule package"===i||"file geodatabase"===i||"sqlite geodatabase"===i||"csv collection"===i||"kml collection"===i||"windows mobile package"===i||"map template"===i||"desktop application template"===i||"gml"===i||"arcpad package"===i||"code sample"===i||"form"===i||"document link"===i||"operations dashboard add in"===i||"rules package"===i||"image"===i||"workflow manager package"===i||"explorer map"===i&&a.indexOf("Explorer Mapping Application")>-1||a.indexOf("Document")>-1?"datafilesgray":"network analysis service"===i||"geoprocessing service"===i||"geodata service"===i||"geometry service"===i||"geoprocessing package"===i||"locator package"===i||"geoprocessing sample"===i||"workflow manager service"===i?"toolsgray":"layer"===i||"layer package"===i||"explorer layer"===i?"layersgray":"scene package"===i?"scenepackage":"mobile scene package"===i?"mobilescenepackage":"tile package"===i||"compact tile package"===i?"tilepackage":"task file"===i?"taskfile":"report template"===i?"report-template":"statistical data collection"===i?"statisticaldatacollection":"insights workbook"===i?"workbook":"insights model"===i?"insightsmodel":"insights page"===i?"insightspage":"insights theme"===i?"insightstheme":"hub initiative"===i?"hubinitiative":"hub page"===i?"hubpage":"hub site application"===i?"hubsite":"hub event"===i?"hubevent":"relational database connection"===i?"relationaldatabaseconnection":"big data file share"===i?"datastorecollection":"image collection"===i?"imagecollection":"desktop style"===i?"desktopstyle":"style"===i?"style":"dashboard"===i?"dashboard":"raster function template"===i?"rasterprocessingtemplate":"vector tile package"===i?"vectortilepackage":"ortho mapping project"===i?"orthomappingproject":"ortho mapping template"===i?"orthomappingtemplate":"solution"===i?"solutions":"geopackage"===i?"geopackage":"deep learning package"===i?"deeplearningpackage":"real time analytic"===i?"realtimeanalytics":"big data analytic"===i?"bigdataanalytics":"feed"===i?"feed":"excalibur imagery project"===i?"excaliburimageryproject":"notebook"===i?"notebook":"storymap"===i?"storymap":"survey123 add in"===i?"survey123addin":"mission"===i?"mission":"mission report"===i?"missionreport":"quickcapture project"===i?"quickcaptureproject":"pro report"===i?"proreport":"urban model"===i?"urbanmodel":"web experience"===i?"experiencebuilder":"web experience template"===i?"webexperiencetemplate":"workflow"===i?"workflow":"kernel gateway connection"===i?"kernelgatewayconnection":"insights script"===i?"insightsscript":"hub initiative template"===i?"hubinitiativetemplate":"storymap theme"===i?"storymaptheme":"group"===i?"group":"maps",l?t("./item-icons/"+l+"16.png"):null}static get assetsDirs(){return["item-icons"]}get el(){return i(this)}};o.style=".item-type-icon{pointer-events:none;display:block;height:1rem;margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}";export{o as solution_item_icon}
@@ -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{b as n}from"./p-a7a06d6a.js";import{c as t}from"./p-225c4ca4.js";var a,e,l,o;!function(n){n.User="user",n.Translation="translation"}(a||(a={})),function(n){n.String="string",n.TextEditor="textEditor"}(e||(e={})),function(n){n.ExpandCollapse="list-merge",n.SettingIndicator="list-button",n.Popover="information",n.Expanded="chevron-down",n.Collapsed="chevron-right",n.Copy="copy-to-clipboard",n.Breadcrumb="chevron-right",n.DefaultIcon="language"}(l||(l={})),function(n){n.Light="calcite-mode-light",n.Dark="calcite-mode-dark"}(o||(o={}));const u=t({uiData:null,currentLanguage:null,lastSave:null,saving:!1,currentLocaleSettingItem:null,portalItemResource:null,portalItemResourceT9n:null}),r=u.state,c=u;function i(n,t){var a;if(!n)return;const e=c.get("uiData"),l=new Map;l.set("locales",t),l.set("translatedLanguageLabels",Object.assign({},n.translatedLanguageLabels)),n.content.forEach((n=>{var t;const{type:a,label:o,value:u,uiLocation:r}=n,c=null==e?void 0:e.get(n.id);l.set(n.id,{userLocaleData:{type:a,label:o,value:u},expanded:!0,selected:null!==(t=null==c?void 0:c.selected)&&void 0!==t&&t,uiLocation:r,tip:null==n?void 0:n.tip})}));const o=n.content.map((n=>n.id)),u=o.every((n=>!l.get(n).selected)),r=l.get(o[0]);if(u&&r){const n=null==e?void 0:e.get(o[0]);r.selected=null===(a=null==n?void 0:n.selected)||void 0===a||a}return l}async function s(t){return(await n(t))[0]}function d(){var n;const t=[];return null===(n=r.uiData)||void 0===n||n.forEach(((n,a)=>{"locales"!==a&&"translatedLanguageLabels"!==a&&t.push(a)})),t}function v(n,t){const a=c.get("portalItemResourceT9n");let e;return(null==a?void 0:a[n])||(a[n]={}),e=Object.assign(Object.assign({},a),{[n]:Object.assign(Object.assign({},a[n]),t)}),e}function f(n){var t;return null!==(t=null==n?void 0:n.map((n=>n.locale)))&&void 0!==t?t:[]}function g(){return document.body.classList.contains(o.Dark)}export{l as E,i as a,f as b,d as c,e as d,o as e,a as f,s as g,v as h,g as i,r as l,c as s}
6
+ import{b as n}from"./p-83225907.js";import{c as t}from"./p-225c4ca4.js";var a,e,l,o;!function(n){n.User="user",n.Translation="translation"}(a||(a={})),function(n){n.String="string",n.TextEditor="textEditor"}(e||(e={})),function(n){n.ExpandCollapse="list-merge",n.SettingIndicator="list-button",n.Popover="information",n.Expanded="chevron-down",n.Collapsed="chevron-right",n.Copy="copy-to-clipboard",n.Breadcrumb="chevron-right",n.DefaultIcon="language"}(l||(l={})),function(n){n.Light="calcite-mode-light",n.Dark="calcite-mode-dark"}(o||(o={}));const u=t({uiData:null,currentLanguage:null,lastSave:null,saving:!1,currentLocaleSettingItem:null,portalItemResource:null,portalItemResourceT9n:null}),r=u.state,c=u;function i(n,t){var a;if(!n)return;const e=c.get("uiData"),l=new Map;l.set("locales",t),l.set("translatedLanguageLabels",Object.assign({},n.translatedLanguageLabels)),n.content.forEach((n=>{var t;const{type:a,label:o,value:u,uiLocation:r}=n,c=null==e?void 0:e.get(n.id);l.set(n.id,{userLocaleData:{type:a,label:o,value:u},expanded:!0,selected:null!==(t=null==c?void 0:c.selected)&&void 0!==t&&t,uiLocation:r,tip:null==n?void 0:n.tip})}));const o=n.content.map((n=>n.id)),u=o.every((n=>!l.get(n).selected)),r=l.get(o[0]);if(u&&r){const n=null==e?void 0:e.get(o[0]);r.selected=null===(a=null==n?void 0:n.selected)||void 0===a||a}return l}async function s(t){return(await n(t))[0]}function d(){var n;const t=[];return null===(n=r.uiData)||void 0===n||n.forEach(((n,a)=>{"locales"!==a&&"translatedLanguageLabels"!==a&&t.push(a)})),t}function v(n,t){const a=c.get("portalItemResourceT9n");let e;return(null==a?void 0:a[n])||(a[n]={}),e=Object.assign(Object.assign({},a),{[n]:Object.assign(Object.assign({},a[n]),t)}),e}function f(n){var t;return null!==(t=null==n?void 0:n.map((n=>n.locale)))&&void 0!==t?t:[]}function g(){return document.body.classList.contains(o.Dark)}export{l as E,i as a,f as b,d as c,e as d,o as e,a as f,s as g,v as h,g as i,r as l,c as s}
@@ -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}from"./p-0ad0b29a.js";import{c as n}from"./p-225c4ca4.js";async function o(n,o,i){const[u]=await l(["esri/layers/effects/jsonUtils"]),{toJSON:d,fromJSON:v}=u,e=null==o?void 0:o.layer;if(!n)return(null==e?void 0:e.effect)?e.effect:(null==e?void 0:e.featureEffect)?"includedEffect"===i?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;const t=d(n);let r;r=e.featureEffect?"includedEffect"===i?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:e.effect;const a=r?d(r):null;if(!a)return v(t);let s=[...a];return t&&t.forEach((l=>{s.forEach((n=>{const{value:o}=n;if(o)o.forEach(((i,u)=>{i.type===l.type?o[u]=l:!n.value.find((l=>l.type===t[0].type))&&(n.value=[...n.value,...t])}));else{const o=!s.find((l=>l.type===n.type));!s.find((n=>n.type===l.type))&&(s=[...s,l]),o&&(s=[...s,n])}}))})),v(s)}const i=n({data:{},relationshipRampExpandStates:{}}),u=i.state,d=i;async function v(l,n,o){var i,u,d,v,e,t,r,a,s;try{const c="group"===(null===(i=null==n?void 0:n.layer)||void 0===i?void 0:i.type),f=null===(d=null===(u=null==n?void 0:n.layer)||void 0===u?void 0:u.layers)||void 0===d?void 0:d.some((l=>l.visible)),$=null===(e=null===(v=null==n?void 0:n.layer)||void 0===v?void 0:v.layers)||void 0===e?void 0:e.every((l=>!(null==l?void 0:l.legendEnabled)));await o.whenOnce((()=>"ready"===(null==l?void 0:l.state))),!c||c&&f?c&&$?await o.whenOnce((()=>{var l;return null===(l=null==n?void 0:n.layer)||void 0===l?void 0:l.loaded})):await o.whenOnce((()=>null==n?void 0:n.ready)):await o.whenOnce((()=>null==n?void 0:n.legendElements));const y=null===(t=null==n?void 0:n.legendElements)||void 0===t?void 0:t[0],m=new Map,p=n.layer,N=await l.view.whenLayerView(p);await o.whenOnce((()=>!1===(null==N?void 0:N.updating)));const O=null===(r=p.renderer)||void 0===r?void 0:r.get("field");return void 0!==y&&(null===(a=null==y?void 0:y.infos)||void 0===a||a.forEach((l=>{var n;if("symbol-table"===l.type){const n=[];l.infos.forEach((l=>{n.push({count:null,selected:!1,legendElementInfo:l})})),m.set(l.title,{count:null,selected:!1,legendElementInfo:l,nestedInfos:n})}else m.set(null!==(n=l.label)&&void 0!==n?n:p.id,{count:null,selected:!1,legendElementInfo:l})}))),Promise.resolve({activeLayerInfo:n,title:null===(s=null==N?void 0:N.layer)||void 0===s?void 0:s.title,categories:m,field:O,queryExpressions:[],totalCount:null,fLayerView:N,legendElement:y})}catch(l){return Promise.resolve(null)}}async function e(l,n){const o={},i=[];l.activeLayerInfos.forEach(function(l,n,o){return i=>{var u;const d=null===(u=null==i?void 0:i.layer)||void 0===u?void 0:u.type;if("feature"===d||"group"===d){const u=v(n,i,o).then((l=>l));u&&l.push(u);const d=i=>{const u=v(n,i,o).then((l=>l));u&&l.push(u)};i.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{d(l)}))}))}))}}}(i,l,n));try{return(await Promise.all(i)).forEach((l=>{var n,i;return o[null===(i=null===(n=null==l?void 0:l.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===i?void 0:i.id]=l})),Promise.resolve(o)}catch(l){return Promise.reject(null)}}function t(l){return Array.from(l).map((l=>l[1]))}function r(l,n,o,i,u){var d,v,e;return i?null===(d=null==i?void 0:i.nestedInfos)||void 0===d?void 0:d[u]:null===(v=null==l?void 0:l.categories)||void 0===v?void 0:v.get(null!==(e=null==o?void 0:o.label)&&void 0!==e?e:null==n?void 0:n.id)}function a(l){var n;return null===(n=null==u?void 0:u.data)||void 0===n?void 0:n[null==l?void 0:l.id]}async function s(n,i,u,d,v){var e,t;const[r,a]=await l(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]),{queryExpressions:s,fLayerView:$}=n;!function(l,n,o,i){var u,d,v,e;const{field:t,legendElement:r,categories:a,fLayerView:s}=l,$=null==l?void 0:l.queryExpressions;i&&Array.from(l.categories).map((l=>l[1])).forEach((l=>{var n,o;(null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected)))&&(null===(o=l.nestedInfos)||void 0===o||o.forEach((l=>{const n=t?`${t} = '${l.legendElementInfo.value}'`:null,o=n?$.indexOf(n):-1;n&&-1!==o&&$.splice(o,1)})))}));const m=null==r?void 0:r.infos,p=y(s);let N=p?c(n,s):f(n,t,o,r,m,"");const O=i?null===(d=null===(u=a.get(i.title))||void 0===u?void 0:u.nestedInfos)||void 0===d?void 0:d[o]:a.get(null!==(v=n.label)&&void 0!==v?v:null===(e=null==s?void 0:s.layer)||void 0===e?void 0:e.id);O&&(O.selected=!(null==O?void 0:O.selected));const w=m&&1===m.length,A=$.indexOf(N);if(p){const l=$.indexOf(N);0===$.length||-1===l?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]?$[0]="1=0":$&&1===$.length||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]?$[0]=null:$.splice(l,1),$.join(" OR ")}else 0===$.length||-1===A?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]&&!w?$[0]="1=0":$&&1===$.length&&!w||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]&&!w?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]&&!w?$[0]=null:$.splice(A,1);if(i){const n=[];Array.from(l.categories).map((l=>l[1])).forEach((l=>{var o,i;(null===(o=l.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=l.nestedInfos)||void 0===i||i.forEach((l=>{t&&`${t} = '${l.legendElementInfo.value}'`&&n.push(`${t} = '${l.legendElementInfo.value}'`)})))})),n.forEach((l=>{-1===$.indexOf(l)&&$.push(l)}))}}(n,i,u,v);const m=s.join(" OR "),p=null!==(t=null===(e=null==$?void 0:$.filter)||void 0===e?void 0:e.timeExtent)&&void 0!==t?t:null,{type:N}=d;if("filter"===N)$.filter=new r({where:m,timeExtent:p});else if(d.effect){const{includedEffect:l,excludedEffect:n}=d.effect,i=await o(n,$,"excludedEffect"),u=await o(l,$,"includedEffect");$.featureEffect=new a({filter:new r({where:m,timeExtent:p}),includedEffect:u,excludedEffect:i})}return Promise.resolve()}function c(l,n){const o=n?n.layer.renderer.authoringInfo:null,i=o?o.fields:null,u=[];if(!i)return"";if(l.hasOwnProperty("value"))return i.forEach((n=>{l.value!==n&&u.push(`(${l.value} > ${n} OR (${n} IS NULL AND ${l.value} <> 0 AND ${l.value} IS NOT NULL))`)})),u.join(" AND ");{const l=[];i.forEach((n=>{l.push(`${n} = 0`)}));const n=[];if(i.length>2){i.forEach((l=>{i.forEach((o=>{if(l===o)return;const u=[];i.forEach((n=>{l!==n&&o!==n&&u.push(`${l} = ${o} AND (${l} > ${n} OR ${l} >= ${n})`)})),n.push(`(${u.join(" AND ")})`)}))}));const o=[];return i.forEach((l=>{o.push(`${l} IS NULL`)})),`(${l.join(" AND ")}) OR (${n.join(" OR ")}) OR (${o.join(" AND ")})`}{const n=[];i.forEach((o=>{i.forEach((i=>{o!==i&&(n.push(`${o} = ${i}`),n.push(`(${l.join(" AND ")})`))}))}));const o=[];return i.forEach((l=>{i.forEach((n=>{l!==n&&o.push(`(${l} = 0 AND ${n} IS NULL) OR (${l} IS NULL AND ${n} IS NULL)`)}))})),`(${n.join(" OR ")}) OR (${o.join(" OR ")})`}}}function f(l,n,o,i,u,d){const{value:v}=l;if("symbol-table"===i.type){if(!l.hasOwnProperty("value")||Array.isArray(l.value)&&1===(null==u?void 0:u.length)){if((null==u?void 0:u[0].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[0].value)&&(null==u?void 0:u[(null==u?void 0:u.length)-2])&&(null==u?void 0:u[(null==u?void 0:u.length)-2].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[(null==u?void 0:u.length)-2].value))return d?`((${n}/${d}) > ${null==u?void 0:u[0].value[1]}) OR ((${n}/${d}) < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]}) OR ${d} = 0 OR ${d} IS NULL`:`${n} > ${null==u?void 0:u[0].value[1]} OR ${n} < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]} OR ${n} IS NULL`;if(1===(null==u?void 0:u.length))return"1=0";{const l=[];null==u||u.forEach((o=>{if(null==o?void 0:o.value){const{value:i}=o,u=-1!==i.indexOf("'")?i.split("'").join("''"):null,d=u?`${n} <> '${u}'`:isNaN(i)||"string"==typeof i&&!i.trim()?`${n} <> '${i}'`:`${n} <> ${i} AND ${n} <> '${i}'`;l.push(d)}}));const o=l.join(" AND ");return n&&o?`${o} OR ${n} IS NULL`:""}}{const i=-1!==v.indexOf("'")?v.split("'").join("''"):null,e=Array.isArray(l.value),t=(null==u?void 0:u.length)-1===o,r=!(null==u?void 0:u[(null==u?void 0:u.length)-1].hasOwnProperty("value")),a=o===(null==u?void 0:u.length)-2;return e?d?t||r&&a?`(${n}/${d}) >= ${v[0]} AND (${n}/${d}) <= ${l.value[1]}`:`(${n}/${d}) > ${v[0]} AND (${n}/${d}) <= ${l.value[1]}`:t||r&&a?`${n} >= ${v[0]} AND ${n} <= ${v[1]}`:`${n} > ${v[0]} AND ${n} <= ${v[1]}`:1===(null==u?void 0:u.length)&&n?isNaN(v)||!v.trim().length?`${n} <> '${v}'`:`${n} <> ${v} OR ${n} <> '${v}'`:i?`${n} = '${i}'`:isNaN(v)||!v.trim().length?`${n} = '${v}'`:`${n} = ${v} OR ${n} = '${v}'`}}return""}function $(l){return Array.isArray(l)?l.every((l=>!l.selected)):l&&Array.from(l.categories.entries()).every((l=>!l[1].selected))&&"1=0"!==l.queryExpressions[0]}function y(l){return"predominance"===(null==l?void 0:l.get("layer.renderer.authoringInfo.type"))}function m(l){var n;return"relationship-ramp"===(null===(n=null==l?void 0:l.legendElements[1])||void 0===n?void 0:n.type)}function p(l,n,o){var i,u,d,v,e,t,r,a,s;const c=l.layer,f=null===(i=null==c?void 0:c.renderer)||void 0===i?void 0:i.field,$=null==n?void 0:n.type,m=l.get("layerView"),p=null==m?void 0:m.get("layer.renderer.classBreakInfos"),N=(null==m?void 0:m.get("layer.renderer.uniqueValueInfos"))&&f,O="size-ramp"===$,w="color-ramp"===$,A="opacity-ramp"===$,E="heatmap-ramp"===$,b=m&&p&&p.length>1,R=null==m?void 0:m.get("layer.renderer.authoringInfo.type"),L="class-breaks-color"===R,I="class-breaks-size"===R,D=1===(null===(u=null==n?void 0:n.infos)||void 0===u?void 0:u.length)&&!f,g="relationship"===R&&"size-ramp"!==(null==n?void 0:n.type)&&"symbol-table"!==(null==n?void 0:n.type),h="feature"===(null==l?void 0:l.get("layer.type")),x=h&&f&&!w&&!O&&b,P=!(!h||!f||w||O||b),S=!!(P||y(m)&&!O||L&&f||I&&f||D&&!f&&null!==f||g||N),j=(null==l?void 0:l.get("layer.featureReduction"))&&"size-ramp"===(null===(d=null==l?void 0:l.legendElements[o])||void 0===d?void 0:d.type),U="symbol-table"===(null==n?void 0:n.type)&&1===(null===(v=null==n?void 0:n.infos)||void 0===v?void 0:v.length),z=!(null==l?void 0:l.legendElements.every((l=>"color-ramp"!==l.type))),k=!(null==l?void 0:l.legendElements.every((l=>"size-ramp"!==l.type))),F=U&&z,V=U&&k,q=null===(e=null==n?void 0:n.infos)||void 0===e?void 0:e.every((l=>"number"==typeof l.value)),C="symbol-table"===(null===(r=null===(t=null==l?void 0:l.legendElements)||void 0===t?void 0:t[0])||void 0===r?void 0:r.type)&&"color-ramp"===(null===(s=null===(a=null==l?void 0:l.legendElements)||void 0===a?void 0:a[1])||void 0===s?void 0:s.type);return!(!h||j||A||E||F||V||q||C||"dot-density"===R)&&(p?x||S:P||S)}function N(l){var n,o,i,u,d;return l.queryExpressions=[],(null===(o=null===(n=null==l?void 0:l.fLayerView)||void 0===n?void 0:n.filter)||void 0===o?void 0:o.where)&&(l.fLayerView.filter.where=""),(null===(d=null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.featureEffect)||void 0===u?void 0:u.filter)||void 0===d?void 0:d.where)&&(l.fLayerView.featureEffect=null),l.categories.forEach((l=>{l.selected=!1})),l}function O(l,n){var o,i,u,d,v,e,t,r,a,s,c;const f=l.categories.get(n);null===(o=null==f?void 0:f.nestedInfos)||void 0===o||o.forEach((n=>{const o=l.queryExpressions.indexOf(`${l.field} = '${n.legendElementInfo.value}'`);-1!==o&&l.queryExpressions.splice(o,1),n.selected=!1}));const $=[],y=Array.from(l.categories).map((l=>l[1]));y.forEach((n=>{var o,i;(null===(o=n.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=n.nestedInfos)||void 0===i||i.forEach((n=>{$.push(`${l.field} = '${n.legendElementInfo.value}'`)})))})),$.forEach((n=>{-1===l.queryExpressions.indexOf(n)&&l.queryExpressions.push(n)}));let m=l.queryExpressions.join(" OR ");const p=y.every((l=>{var n;return null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected))}));return p?((null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.filter)||void 0===u?void 0:u.where)&&(l.fLayerView.filter.where=""),(null===(e=null===(v=null===(d=null==l?void 0:l.fLayerView)||void 0===d?void 0:d.featureEffect)||void 0===v?void 0:v.filter)||void 0===e?void 0:e.where)&&(l.fLayerView.featureEffect=null),l.queryExpressions=[]):((null===(r=null===(t=null==l?void 0:l.fLayerView)||void 0===t?void 0:t.filter)||void 0===r?void 0:r.where)&&(l.fLayerView.filter.where=m),(null===(c=null===(s=null===(a=null==l?void 0:l.fLayerView)||void 0===a?void 0:a.featureEffect)||void 0===s?void 0:s.filter)||void 0===c?void 0:c.where)&&(l.fLayerView.featureEffect.filter.where=m)),l}async function w(l,n,o){var i,u;const d=l.fLayerView.createQuery();if(o)if(o.nestedInfos.every((l=>!l.selected))){const n=o.nestedInfos.map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");d.where=n}else{const n=o.nestedInfos.filter((l=>l.selected)).map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");d.where=n}else{const n=l.queryExpressions.join(" OR ");d.where=n}try{const o=await(null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.layer)||void 0===u?void 0:u.queryExtent(d));await n.goTo(o)}catch(l){}}function A(l){return l.map((l=>null==l?void 0:l.count)).reduce(((l,n)=>l+n))}function E(l){return l.map((l=>{var n;return null===(n=null==l?void 0:l.nestedInfos)||void 0===n?void 0:n.map((l=>l.count)).reduce(((l,n)=>l+n))})).reduce(((l,n)=>l+n))}async function b(l,n,o,i,u,d,v,e){var t,r,a;if(!n)return;const s="feature"===(null===(t=null==n?void 0:n.layer)||void 0===t?void 0:t.type)?n.createQuery():null,$=y(n)?c(i,n):i.type?f(v,o,e,i,i.infos):f(i,o,u,d,d.infos);s&&$&&(s.where="1=0"===$?"1=1":$,s.geometry=l);try{const l=s?await n.queryFeatureCount(s):null;return Promise.resolve({[null!==(r=i.label)&&void 0!==r?r:null===(a=null==n?void 0:n.layer)||void 0===a?void 0:a.id]:l})}catch(l){console.error("FAILURE AT 'getInfoCount': ",l)}return Promise.resolve(null)}async function R(l,n){let o=Object.assign({},n);const{activeLayerInfos:i}=l;let u={};const d={};i.forEach((async o=>{var i,u,v,e;const t=o.legendElements[0],r=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,a=null===(v=o.layer.renderer)||void 0===v?void 0:v.get("field"),s=[];d[o.layer.id]=[],null===(e=null==t?void 0:t.infos)||void 0===e||e.forEach(((n,i)=>{var u;const v=null===(u=t.infos)||void 0===u?void 0:u.every((l=>"symbol-table"===l.type));if(v){const u=[];n.infos.forEach(((o,d)=>{const v=b(l.view.extent,r,a,n,i,t,o,d);u.push(v)})),d[o.layer.id].push(u)}else s.push(b(l.view.extent,r,a,n,i,t)),d[o.layer.id]=s}));const c=o=>{var i,u,v,e;const t=[],r=o.legendElements[0],a=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,s=null===(v=o.layer.renderer)||void 0===v?void 0:v.get("field");null===(e=null==r?void 0:r.infos)||void 0===e||e.forEach(((n,o)=>t.push(b(l.view.extent,a,s,n,o,r)))),d[o.layer.id]=t};o.children.forEach((async l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{c(l)}))}))}))}));for(const l in d){let n=u[l];n||(n=u[l]={});const o=await Promise.all(d[l]);if(o.every((l=>Array.isArray(l)))){const i=await Promise.all(o.map((async l=>(await Promise.all(l)).map((l=>l&&Object.values(l)[0])))));n[l]=i,u[l]=Object.assign({},n[l])}else{const i={};o.forEach((l=>{if(!l)return;const n=Object.keys(l)[0];i[n]=l[n]})),l&&(n[l]=i),u[l]=Object.assign({},n[l])}}return i.forEach((l=>{var o;const i=n[l.layer.id],d=l.layer.id;null===(o=null==i?void 0:i.categories)||void 0===o||o.forEach(((n,o)=>{var v;const e=Array.from(null==i?void 0:i.categories).findIndex((l=>l[0]===o));if(null==n?void 0:n.nestedInfos)null==n||n.nestedInfos.forEach(((n,o)=>{var i,d,v;const t=null===(v=null===(d=null==u?void 0:u[null===(i=null==l?void 0:l.layer)||void 0===i?void 0:i.id])||void 0===d?void 0:d[e])||void 0===v?void 0:v[o];n.count=isNaN(t)?null:t}));else{const l=null===(v=null==u?void 0:u[d])||void 0===v?void 0:v[o];n.count=isNaN(l)?null:l}}));const v=l=>{var o;const i=l.layer.id,d=n[i];null===(o=null==d?void 0:d.categories)||void 0===o||o.forEach(((l,n)=>{var o;const d=null===(o=null==u?void 0:u[i])||void 0===o?void 0:o[n];l.count=d}))};l.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{v(l)}))}))}))})),Promise.resolve(o)}function L(l,n){var o;return null===(o=null==l?void 0:l.nestedInfos)||void 0===o?void 0:o[n]}function I(l){return Array.from(l).map((l=>l[1])).every((l=>!!(null==l?void 0:l.nestedInfos)))}function D(l){var n,o,i,u;return!!(null===(u=null===(i=null===(o=null===(n=null==l?void 0:l.legendElements)||void 0===n?void 0:n[0])||void 0===o?void 0:o.infos)||void 0===i?void 0:i.every)||void 0===u?void 0:u.call(i,(l=>"symbol-table"===(null==l?void 0:l.type))))}function g(l,n){var o;return null===(o=null==l?void 0:l.categories)||void 0===o?void 0:o.get(null==n?void 0:n.title)}function h(l){const n="calcite-mode-",o=`${n}light`,i=`${n}dark`;return l.classList.contains(i)?i:o}function x(l){if(l.layerId&&l.intLegendLayerData){const n=l.layerId,o=l.intLegendLayerData;d.set("data",Object.assign(Object.assign({},u.data),{[n]:o}))}}function P(n,i){const{type:u}=n;"filter"===u?function(l){var n,o;null===(o=null===(n=null==l?void 0:l.allLayerViews)||void 0===n?void 0:n.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})))||void 0===o||o.forEach((l=>{const n=S(l);l.filter=n,l.set("featureEffect",null)}))}(i):"effect"===u&&function(n,i){var u;null===(u=null==i?void 0:i.allLayerViews)||void 0===u||u.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})).forEach((async i=>{if((null==n?void 0:n.effect)&&i){const[u]=await l(["esri/layers/support/FeatureEffect"]),{includedEffect:d,excludedEffect:v}=n.effect,e=await o(v,i,"excludedEffect"),t=await o(d,i,"includedEffect"),r=S(i);i.featureEffect=new u({filter:r,includedEffect:t,excludedEffect:e}),i.set("filter",null)}}))}(n,i)}function S(l){var n;return(null==l?void 0:l.filter)||(null===(n=null==l?void 0:l.featureEffect)||void 0===n?void 0:n.filter)}export{e as a,g as b,r as c,$ as d,R as e,v as f,h as g,P as h,u as i,s as j,a as k,D as l,m,O as n,N as o,o as p,t as q,I as r,d as s,E as t,x as u,p as v,A as w,L as x,w as z}
6
+ import{l}from"./p-a8a0187d.js";import{c as n}from"./p-225c4ca4.js";async function o(n,o,i){const[u]=await l(["esri/layers/effects/jsonUtils"]),{toJSON:d,fromJSON:v}=u,e=null==o?void 0:o.layer;if(!n)return(null==e?void 0:e.effect)?e.effect:(null==e?void 0:e.featureEffect)?"includedEffect"===i?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;const t=d(n);let r;r=e.featureEffect?"includedEffect"===i?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:e.effect;const a=r?d(r):null;if(!a)return v(t);let s=[...a];return t&&t.forEach((l=>{s.forEach((n=>{const{value:o}=n;if(o)o.forEach(((i,u)=>{i.type===l.type?o[u]=l:!n.value.find((l=>l.type===t[0].type))&&(n.value=[...n.value,...t])}));else{const o=!s.find((l=>l.type===n.type));!s.find((n=>n.type===l.type))&&(s=[...s,l]),o&&(s=[...s,n])}}))})),v(s)}const i=n({data:{},relationshipRampExpandStates:{}}),u=i.state,d=i;async function v(l,n,o){var i,u,d,v,e,t,r,a,s;try{const c="group"===(null===(i=null==n?void 0:n.layer)||void 0===i?void 0:i.type),f=null===(d=null===(u=null==n?void 0:n.layer)||void 0===u?void 0:u.layers)||void 0===d?void 0:d.some((l=>l.visible)),$=null===(e=null===(v=null==n?void 0:n.layer)||void 0===v?void 0:v.layers)||void 0===e?void 0:e.every((l=>!(null==l?void 0:l.legendEnabled)));await o.whenOnce((()=>"ready"===(null==l?void 0:l.state))),!c||c&&f?c&&$?await o.whenOnce((()=>{var l;return null===(l=null==n?void 0:n.layer)||void 0===l?void 0:l.loaded})):await o.whenOnce((()=>null==n?void 0:n.ready)):await o.whenOnce((()=>null==n?void 0:n.legendElements));const y=null===(t=null==n?void 0:n.legendElements)||void 0===t?void 0:t[0],m=new Map,p=n.layer,N=await l.view.whenLayerView(p);await o.whenOnce((()=>!1===(null==N?void 0:N.updating)));const O=null===(r=p.renderer)||void 0===r?void 0:r.get("field");return void 0!==y&&(null===(a=null==y?void 0:y.infos)||void 0===a||a.forEach((l=>{var n;if("symbol-table"===l.type){const n=[];l.infos.forEach((l=>{n.push({count:null,selected:!1,legendElementInfo:l})})),m.set(l.title,{count:null,selected:!1,legendElementInfo:l,nestedInfos:n})}else m.set(null!==(n=l.label)&&void 0!==n?n:p.id,{count:null,selected:!1,legendElementInfo:l})}))),Promise.resolve({activeLayerInfo:n,title:null===(s=null==N?void 0:N.layer)||void 0===s?void 0:s.title,categories:m,field:O,queryExpressions:[],totalCount:null,fLayerView:N,legendElement:y})}catch(l){return Promise.resolve(null)}}async function e(l,n){const o={},i=[];l.activeLayerInfos.forEach(function(l,n,o){return i=>{var u;const d=null===(u=null==i?void 0:i.layer)||void 0===u?void 0:u.type;if("feature"===d||"group"===d){const u=v(n,i,o).then((l=>l));u&&l.push(u);const d=i=>{const u=v(n,i,o).then((l=>l));u&&l.push(u)};i.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{d(l)}))}))}))}}}(i,l,n));try{return(await Promise.all(i)).forEach((l=>{var n,i;return o[null===(i=null===(n=null==l?void 0:l.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===i?void 0:i.id]=l})),Promise.resolve(o)}catch(l){return Promise.reject(null)}}function t(l){return Array.from(l).map((l=>l[1]))}function r(l,n,o,i,u){var d,v,e;return i?null===(d=null==i?void 0:i.nestedInfos)||void 0===d?void 0:d[u]:null===(v=null==l?void 0:l.categories)||void 0===v?void 0:v.get(null!==(e=null==o?void 0:o.label)&&void 0!==e?e:null==n?void 0:n.id)}function a(l){var n;return null===(n=null==u?void 0:u.data)||void 0===n?void 0:n[null==l?void 0:l.id]}async function s(n,i,u,d,v){var e,t;const[r,a]=await l(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]),{queryExpressions:s,fLayerView:$}=n;!function(l,n,o,i){var u,d,v,e;const{field:t,legendElement:r,categories:a,fLayerView:s}=l,$=null==l?void 0:l.queryExpressions;i&&Array.from(l.categories).map((l=>l[1])).forEach((l=>{var n,o;(null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected)))&&(null===(o=l.nestedInfos)||void 0===o||o.forEach((l=>{const n=t?`${t} = '${l.legendElementInfo.value}'`:null,o=n?$.indexOf(n):-1;n&&-1!==o&&$.splice(o,1)})))}));const m=null==r?void 0:r.infos,p=y(s);let N=p?c(n,s):f(n,t,o,r,m,"");const O=i?null===(d=null===(u=a.get(i.title))||void 0===u?void 0:u.nestedInfos)||void 0===d?void 0:d[o]:a.get(null!==(v=n.label)&&void 0!==v?v:null===(e=null==s?void 0:s.layer)||void 0===e?void 0:e.id);O&&(O.selected=!(null==O?void 0:O.selected));const w=m&&1===m.length,A=$.indexOf(N);if(p){const l=$.indexOf(N);0===$.length||-1===l?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]?$[0]="1=0":$&&1===$.length||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]?$[0]=null:$.splice(l,1),$.join(" OR ")}else 0===$.length||-1===A?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]&&!w?$[0]="1=0":$&&1===$.length&&!w||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]&&!w?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]&&!w?$[0]=null:$.splice(A,1);if(i){const n=[];Array.from(l.categories).map((l=>l[1])).forEach((l=>{var o,i;(null===(o=l.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=l.nestedInfos)||void 0===i||i.forEach((l=>{t&&`${t} = '${l.legendElementInfo.value}'`&&n.push(`${t} = '${l.legendElementInfo.value}'`)})))})),n.forEach((l=>{-1===$.indexOf(l)&&$.push(l)}))}}(n,i,u,v);const m=s.join(" OR "),p=null!==(t=null===(e=null==$?void 0:$.filter)||void 0===e?void 0:e.timeExtent)&&void 0!==t?t:null,{type:N}=d;if("filter"===N)$.filter=new r({where:m,timeExtent:p});else if(d.effect){const{includedEffect:l,excludedEffect:n}=d.effect,i=await o(n,$,"excludedEffect"),u=await o(l,$,"includedEffect");$.featureEffect=new a({filter:new r({where:m,timeExtent:p}),includedEffect:u,excludedEffect:i})}return Promise.resolve()}function c(l,n){const o=n?n.layer.renderer.authoringInfo:null,i=o?o.fields:null,u=[];if(!i)return"";if(l.hasOwnProperty("value"))return i.forEach((n=>{l.value!==n&&u.push(`(${l.value} > ${n} OR (${n} IS NULL AND ${l.value} <> 0 AND ${l.value} IS NOT NULL))`)})),u.join(" AND ");{const l=[];i.forEach((n=>{l.push(`${n} = 0`)}));const n=[];if(i.length>2){i.forEach((l=>{i.forEach((o=>{if(l===o)return;const u=[];i.forEach((n=>{l!==n&&o!==n&&u.push(`${l} = ${o} AND (${l} > ${n} OR ${l} >= ${n})`)})),n.push(`(${u.join(" AND ")})`)}))}));const o=[];return i.forEach((l=>{o.push(`${l} IS NULL`)})),`(${l.join(" AND ")}) OR (${n.join(" OR ")}) OR (${o.join(" AND ")})`}{const n=[];i.forEach((o=>{i.forEach((i=>{o!==i&&(n.push(`${o} = ${i}`),n.push(`(${l.join(" AND ")})`))}))}));const o=[];return i.forEach((l=>{i.forEach((n=>{l!==n&&o.push(`(${l} = 0 AND ${n} IS NULL) OR (${l} IS NULL AND ${n} IS NULL)`)}))})),`(${n.join(" OR ")}) OR (${o.join(" OR ")})`}}}function f(l,n,o,i,u,d){const{value:v}=l;if("symbol-table"===i.type){if(!l.hasOwnProperty("value")||Array.isArray(l.value)&&1===(null==u?void 0:u.length)){if((null==u?void 0:u[0].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[0].value)&&(null==u?void 0:u[(null==u?void 0:u.length)-2])&&(null==u?void 0:u[(null==u?void 0:u.length)-2].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[(null==u?void 0:u.length)-2].value))return d?`((${n}/${d}) > ${null==u?void 0:u[0].value[1]}) OR ((${n}/${d}) < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]}) OR ${d} = 0 OR ${d} IS NULL`:`${n} > ${null==u?void 0:u[0].value[1]} OR ${n} < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]} OR ${n} IS NULL`;if(1===(null==u?void 0:u.length))return"1=0";{const l=[];null==u||u.forEach((o=>{if(null==o?void 0:o.value){const{value:i}=o,u=-1!==i.indexOf("'")?i.split("'").join("''"):null,d=u?`${n} <> '${u}'`:isNaN(i)||"string"==typeof i&&!i.trim()?`${n} <> '${i}'`:`${n} <> ${i} AND ${n} <> '${i}'`;l.push(d)}}));const o=l.join(" AND ");return n&&o?`${o} OR ${n} IS NULL`:""}}{const i=-1!==v.indexOf("'")?v.split("'").join("''"):null,e=Array.isArray(l.value),t=(null==u?void 0:u.length)-1===o,r=!(null==u?void 0:u[(null==u?void 0:u.length)-1].hasOwnProperty("value")),a=o===(null==u?void 0:u.length)-2;return e?d?t||r&&a?`(${n}/${d}) >= ${v[0]} AND (${n}/${d}) <= ${l.value[1]}`:`(${n}/${d}) > ${v[0]} AND (${n}/${d}) <= ${l.value[1]}`:t||r&&a?`${n} >= ${v[0]} AND ${n} <= ${v[1]}`:`${n} > ${v[0]} AND ${n} <= ${v[1]}`:1===(null==u?void 0:u.length)&&n?isNaN(v)||!v.trim().length?`${n} <> '${v}'`:`${n} <> ${v} OR ${n} <> '${v}'`:i?`${n} = '${i}'`:isNaN(v)||!v.trim().length?`${n} = '${v}'`:`${n} = ${v} OR ${n} = '${v}'`}}return""}function $(l){return Array.isArray(l)?l.every((l=>!l.selected)):l&&Array.from(l.categories.entries()).every((l=>!l[1].selected))&&"1=0"!==l.queryExpressions[0]}function y(l){return"predominance"===(null==l?void 0:l.get("layer.renderer.authoringInfo.type"))}function m(l){var n;return"relationship-ramp"===(null===(n=null==l?void 0:l.legendElements[1])||void 0===n?void 0:n.type)}function p(l,n,o){var i,u,d,v,e,t,r,a,s;const c=l.layer,f=null===(i=null==c?void 0:c.renderer)||void 0===i?void 0:i.field,$=null==n?void 0:n.type,m=l.get("layerView"),p=null==m?void 0:m.get("layer.renderer.classBreakInfos"),N=(null==m?void 0:m.get("layer.renderer.uniqueValueInfos"))&&f,O="size-ramp"===$,w="color-ramp"===$,A="opacity-ramp"===$,E="heatmap-ramp"===$,R=m&&p&&p.length>1,b=null==m?void 0:m.get("layer.renderer.authoringInfo.type"),L="class-breaks-color"===b,I="class-breaks-size"===b,D=1===(null===(u=null==n?void 0:n.infos)||void 0===u?void 0:u.length)&&!f,g="relationship"===b&&"size-ramp"!==(null==n?void 0:n.type)&&"symbol-table"!==(null==n?void 0:n.type),h="feature"===(null==l?void 0:l.get("layer.type")),x=h&&f&&!w&&!O&&R,P=!(!h||!f||w||O||R),S=!!(P||y(m)&&!O||L&&f||I&&f||D&&!f&&null!==f||g||N),j=(null==l?void 0:l.get("layer.featureReduction"))&&"size-ramp"===(null===(d=null==l?void 0:l.legendElements[o])||void 0===d?void 0:d.type),U="symbol-table"===(null==n?void 0:n.type)&&1===(null===(v=null==n?void 0:n.infos)||void 0===v?void 0:v.length),z=!(null==l?void 0:l.legendElements.every((l=>"color-ramp"!==l.type))),k=!(null==l?void 0:l.legendElements.every((l=>"size-ramp"!==l.type))),F=U&&z,V=U&&k,q=null===(e=null==n?void 0:n.infos)||void 0===e?void 0:e.every((l=>"number"==typeof l.value)),C="symbol-table"===(null===(r=null===(t=null==l?void 0:l.legendElements)||void 0===t?void 0:t[0])||void 0===r?void 0:r.type)&&"color-ramp"===(null===(s=null===(a=null==l?void 0:l.legendElements)||void 0===a?void 0:a[1])||void 0===s?void 0:s.type);return!(!h||j||A||E||F||V||q||C||"dot-density"===b)&&(p?x||S:P||S)}function N(l){var n,o,i,u,d;return l.queryExpressions=[],(null===(o=null===(n=null==l?void 0:l.fLayerView)||void 0===n?void 0:n.filter)||void 0===o?void 0:o.where)&&(l.fLayerView.filter.where=""),(null===(d=null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.featureEffect)||void 0===u?void 0:u.filter)||void 0===d?void 0:d.where)&&(l.fLayerView.featureEffect=null),l.categories.forEach((l=>{l.selected=!1})),l}function O(l,n){var o,i,u,d,v,e,t,r,a,s,c;const f=l.categories.get(n);null===(o=null==f?void 0:f.nestedInfos)||void 0===o||o.forEach((n=>{const o=l.queryExpressions.indexOf(`${l.field} = '${n.legendElementInfo.value}'`);-1!==o&&l.queryExpressions.splice(o,1),n.selected=!1}));const $=[],y=Array.from(l.categories).map((l=>l[1]));y.forEach((n=>{var o,i;(null===(o=n.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=n.nestedInfos)||void 0===i||i.forEach((n=>{$.push(`${l.field} = '${n.legendElementInfo.value}'`)})))})),$.forEach((n=>{-1===l.queryExpressions.indexOf(n)&&l.queryExpressions.push(n)}));let m=l.queryExpressions.join(" OR ");const p=y.every((l=>{var n;return null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected))}));return p?((null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.filter)||void 0===u?void 0:u.where)&&(l.fLayerView.filter.where=""),(null===(e=null===(v=null===(d=null==l?void 0:l.fLayerView)||void 0===d?void 0:d.featureEffect)||void 0===v?void 0:v.filter)||void 0===e?void 0:e.where)&&(l.fLayerView.featureEffect=null),l.queryExpressions=[]):((null===(r=null===(t=null==l?void 0:l.fLayerView)||void 0===t?void 0:t.filter)||void 0===r?void 0:r.where)&&(l.fLayerView.filter.where=m),(null===(c=null===(s=null===(a=null==l?void 0:l.fLayerView)||void 0===a?void 0:a.featureEffect)||void 0===s?void 0:s.filter)||void 0===c?void 0:c.where)&&(l.fLayerView.featureEffect.filter.where=m)),l}async function w(l,n,o){var i,u;const d=l.fLayerView.createQuery();if(o)if(o.nestedInfos.every((l=>!l.selected))){const n=o.nestedInfos.map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");d.where=n}else{const n=o.nestedInfos.filter((l=>l.selected)).map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");d.where=n}else{const n=l.queryExpressions.join(" OR ");d.where=n}try{const o=await(null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.layer)||void 0===u?void 0:u.queryExtent(d));await n.goTo(o)}catch(l){}}function A(l){return l.map((l=>null==l?void 0:l.count)).reduce(((l,n)=>l+n))}function E(l){return l.map((l=>{var n;return null===(n=null==l?void 0:l.nestedInfos)||void 0===n?void 0:n.map((l=>l.count)).reduce(((l,n)=>l+n))})).reduce(((l,n)=>l+n))}async function R(l,n,o,i,u,d,v,e){var t,r,a;if(!n)return;const s="feature"===(null===(t=null==n?void 0:n.layer)||void 0===t?void 0:t.type)?n.createQuery():null,$=y(n)?c(i,n):i.type?f(v,o,e,i,i.infos):f(i,o,u,d,d.infos);s&&$&&(s.where="1=0"===$?"1=1":$,s.geometry=l);try{const l=s?await n.queryFeatureCount(s):null;return Promise.resolve({[null!==(r=i.label)&&void 0!==r?r:null===(a=null==n?void 0:n.layer)||void 0===a?void 0:a.id]:l})}catch(l){console.error("FAILURE AT 'getInfoCount': ",l)}return Promise.resolve(null)}async function b(l,n){let o=Object.assign({},n);const{activeLayerInfos:i}=l;let u={};const d={};i.forEach((async o=>{var i,u,v,e;const t=o.legendElements[0],r=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,a=null===(v=o.layer.renderer)||void 0===v?void 0:v.get("field"),s=[];d[o.layer.id]=[],null===(e=null==t?void 0:t.infos)||void 0===e||e.forEach(((n,i)=>{var u;const v=null===(u=t.infos)||void 0===u?void 0:u.every((l=>"symbol-table"===l.type));if(v){const u=[];n.infos.forEach(((o,d)=>{const v=R(l.view.extent,r,a,n,i,t,o,d);u.push(v)})),d[o.layer.id].push(u)}else s.push(R(l.view.extent,r,a,n,i,t)),d[o.layer.id]=s}));const c=o=>{var i,u,v,e;const t=[],r=o.legendElements[0],a=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,s=null===(v=o.layer.renderer)||void 0===v?void 0:v.get("field");null===(e=null==r?void 0:r.infos)||void 0===e||e.forEach(((n,o)=>t.push(R(l.view.extent,a,s,n,o,r)))),d[o.layer.id]=t};o.children.forEach((async l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{c(l)}))}))}))}));for(const l in d){let n=u[l];n||(n=u[l]={});const o=await Promise.all(d[l]);if(o.every((l=>Array.isArray(l)))){const i=await Promise.all(o.map((async l=>(await Promise.all(l)).map((l=>l&&Object.values(l)[0])))));n[l]=i,u[l]=Object.assign({},n[l])}else{const i={};o.forEach((l=>{if(!l)return;const n=Object.keys(l)[0];i[n]=l[n]})),l&&(n[l]=i),u[l]=Object.assign({},n[l])}}return i.forEach((l=>{var o;const i=n[l.layer.id],d=l.layer.id;null===(o=null==i?void 0:i.categories)||void 0===o||o.forEach(((n,o)=>{var v;const e=Array.from(null==i?void 0:i.categories).findIndex((l=>l[0]===o));if(null==n?void 0:n.nestedInfos)null==n||n.nestedInfos.forEach(((n,o)=>{var i,d,v;const t=null===(v=null===(d=null==u?void 0:u[null===(i=null==l?void 0:l.layer)||void 0===i?void 0:i.id])||void 0===d?void 0:d[e])||void 0===v?void 0:v[o];n.count=isNaN(t)?null:t}));else{const l=null===(v=null==u?void 0:u[d])||void 0===v?void 0:v[o];n.count=isNaN(l)?null:l}}));const v=l=>{var o;const i=l.layer.id,d=n[i];null===(o=null==d?void 0:d.categories)||void 0===o||o.forEach(((l,n)=>{var o;const d=null===(o=null==u?void 0:u[i])||void 0===o?void 0:o[n];l.count=d}))};l.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{v(l)}))}))}))})),Promise.resolve(o)}function L(l,n){var o;return null===(o=null==l?void 0:l.nestedInfos)||void 0===o?void 0:o[n]}function I(l){return Array.from(l).map((l=>l[1])).every((l=>!!(null==l?void 0:l.nestedInfos)))}function D(l){var n,o,i,u;return!!(null===(u=null===(i=null===(o=null===(n=null==l?void 0:l.legendElements)||void 0===n?void 0:n[0])||void 0===o?void 0:o.infos)||void 0===i?void 0:i.every)||void 0===u?void 0:u.call(i,(l=>"symbol-table"===(null==l?void 0:l.type))))}function g(l,n){var o;return null===(o=null==l?void 0:l.categories)||void 0===o?void 0:o.get(null==n?void 0:n.title)}function h(l){const n="calcite-mode-",o=`${n}light`,i=`${n}dark`;return l.classList.contains(i)?i:o}function x(l){if(l.layerId&&l.intLegendLayerData){const n=l.layerId,o=l.intLegendLayerData;d.set("data",Object.assign(Object.assign({},u.data),{[n]:o}))}}function P(n,i){const{type:u}=n;"filter"===u?function(l){var n,o;null===(o=null===(n=null==l?void 0:l.allLayerViews)||void 0===n?void 0:n.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})))||void 0===o||o.forEach((l=>{const n=S(l);l.filter=n,l.set("featureEffect",null)}))}(i):"effect"===u&&function(n,i){var u;null===(u=null==i?void 0:i.allLayerViews)||void 0===u||u.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})).forEach((async i=>{if((null==n?void 0:n.effect)&&i){const[u]=await l(["esri/layers/support/FeatureEffect"]),{includedEffect:d,excludedEffect:v}=n.effect,e=await o(v,i,"excludedEffect"),t=await o(d,i,"includedEffect"),r=S(i);i.featureEffect=new u({filter:r,includedEffect:t,excludedEffect:e}),i.set("filter",null)}}))}(n,i)}function S(l){var n;return(null==l?void 0:l.filter)||(null===(n=null==l?void 0:l.featureEffect)||void 0===n?void 0:n.filter)}export{e as a,g as b,r as c,$ as d,b as e,v as f,h as g,P as h,u as i,s as j,a as k,D as l,m,O as n,N as o,o as p,t as q,I as r,d as s,E as t,x as u,p as v,A as w,L as x,w as z}
@@ -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 i,f as t,h as e,g as s}from"./p-78780f63.js";import{l as n}from"./p-0ad0b29a.js";import{g as a}from"./p-a7a06d6a.js";import{g as r}from"./p-149d80ad.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";import"./p-225c4ca4.js";const o={base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component",iconLayerList:"esri-icon-layer-list"},d=class{constructor(t){i(this,t),this.handles=void 0,this.reactiveUtils=void 0,this.legendvm=void 0,this.widget=void 0,this.view=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0}),await this.initializeModules()}async componentDidLoad(){a(this)}async initializeModules(){const[i,t,e,s]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/widgets/Widget","esri/widgets/Legend"]);this.handles=new i,this.reactiveUtils=t,this.widget=new e;const a=new s;return await t.whenOnce((()=>null==a?void 0:a.messages)),this.messages=Object.assign(Object.assign({},this.messages),a.messages),Promise.resolve()}async init(){if(this.reactiveUtils&&this.view&&this.handles)try{const{on:i}=this.reactiveUtils,[t]=await n(["esri/widgets/Legend/LegendViewModel"]),e=new t({view:this.view});this.legendvm=e,this.handles.add([i((()=>{var i;return null===(i=this.legendvm)||void 0===i?void 0:i.activeLayerInfos}),"change",(()=>{var i;return this._refreshActiveLayerInfos(null===(i=null==this?void 0:this.legendvm)||void 0===i?void 0:i.activeLayerInfos,this.reactiveUtils)}))])}catch(i){console.error('Failed at "init": ',i)}}render(){var i;const{base:t,component:s,widget:n,widgetPanel:a}=o;return e("div",{key:"interactive-legend",class:null===(i=this.widget)||void 0===i?void 0:i.classes(t,s,n,a)},e("instant-apps-interactive-legend-classic",{key:"interactive-legend-classic",ref:i=>this.ref=i,class:r(this.el),legendvm:this.legendvm,"zoom-to":this.zoomTo,filterMode:this.filterMode,"feature-count":this.featureCount,messages:this.messages}))}_refreshActiveLayerInfos(i,t){i&&(this.handles.removeAll(),i.forEach((i=>this._renderOnActiveLayerInfoChange(i,t))))}_renderOnActiveLayerInfoChange(i,t){var e;const{on:s}=this.reactiveUtils,n=s((()=>i.children),"change",(()=>i.children.forEach((i=>this._renderOnActiveLayerInfoChange(i,t)))));this.handles.add(n,`children_${null===(e=null==i?void 0:i.layer)||void 0===e?void 0:e.uid}`),i.children.forEach((i=>{var e,s;this._renderOnActiveLayerInfoChange(i,t),(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)>0&&(null===(s=null==i?void 0:i.children)||void 0===s||s.forEach((i=>this._renderOnActiveLayerInfoChange(i,t))))}))}get el(){return s(this)}static get watchers(){return{handles:["init"],reactiveUtils:["init"],view:["init"]}}};d.style=".sc-instant-apps-interactive-legend-h{display:block;height:100%}.sc-instant-apps-interactive-legend-h .esri-legend.sc-instant-apps-interactive-legend{height:100%;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1)}.sc-instant-apps-interactive-legend-h .esri-legend.esri-component.esri-widget.esri-widget--panel.sc-instant-apps-interactive-legend{margin:0}";export{d as instant_apps_interactive_legend}
6
+ import{r as i,f as t,h as e,g as s}from"./p-78780f63.js";import{l as n}from"./p-a8a0187d.js";import{g as a}from"./p-83225907.js";import{g as r}from"./p-68434a63.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";import"./p-225c4ca4.js";const o={base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component",iconLayerList:"esri-icon-layer-list"},c=class{constructor(t){i(this,t),this.handles=void 0,this.reactiveUtils=void 0,this.legendvm=void 0,this.widget=void 0,this.view=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0}),await this.initializeModules()}async componentDidLoad(){a(this)}async initializeModules(){const[i,t,e,s]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/widgets/Widget","esri/widgets/Legend"]);this.handles=new i,this.reactiveUtils=t,this.widget=new e;const a=new s;return await t.whenOnce((()=>null==a?void 0:a.messages)),this.messages=Object.assign(Object.assign({},this.messages),a.messages),Promise.resolve()}async init(){if(this.reactiveUtils&&this.view&&this.handles)try{const{on:i}=this.reactiveUtils,[t]=await n(["esri/widgets/Legend/LegendViewModel"]),e=new t({view:this.view});this.legendvm=e,this.handles.add([i((()=>{var i;return null===(i=this.legendvm)||void 0===i?void 0:i.activeLayerInfos}),"change",(()=>{var i;return this._refreshActiveLayerInfos(null===(i=null==this?void 0:this.legendvm)||void 0===i?void 0:i.activeLayerInfos,this.reactiveUtils)}))])}catch(i){console.error('Failed at "init": ',i)}}render(){var i;const{base:t,component:s,widget:n,widgetPanel:a}=o;return e("div",{key:"interactive-legend",class:null===(i=this.widget)||void 0===i?void 0:i.classes(t,s,n,a)},e("instant-apps-interactive-legend-classic",{key:"interactive-legend-classic",ref:i=>this.ref=i,class:r(this.el),legendvm:this.legendvm,"zoom-to":this.zoomTo,filterMode:this.filterMode,"feature-count":this.featureCount,messages:this.messages}))}_refreshActiveLayerInfos(i,t){i&&(this.handles.removeAll(),i.forEach((i=>this._renderOnActiveLayerInfoChange(i,t))))}_renderOnActiveLayerInfoChange(i,t){var e;const{on:s}=this.reactiveUtils,n=s((()=>i.children),"change",(()=>i.children.forEach((i=>this._renderOnActiveLayerInfoChange(i,t)))));this.handles.add(n,`children_${null===(e=null==i?void 0:i.layer)||void 0===e?void 0:e.uid}`),i.children.forEach((i=>{var e,s;this._renderOnActiveLayerInfoChange(i,t),(null===(e=null==i?void 0:i.children)||void 0===e?void 0:e.length)>0&&(null===(s=null==i?void 0:i.children)||void 0===s||s.forEach((i=>this._renderOnActiveLayerInfoChange(i,t))))}))}get el(){return s(this)}static get watchers(){return{handles:["init"],reactiveUtils:["init"],view:["init"]}}};c.style=".sc-instant-apps-interactive-legend-h{display:block;height:100%}.sc-instant-apps-interactive-legend-h .esri-legend.sc-instant-apps-interactive-legend{height:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1)}.sc-instant-apps-interactive-legend-h .esri-legend.esri-component.esri-widget.esri-widget--panel.sc-instant-apps-interactive-legend{margin:0}";export{c as instant_apps_interactive_legend}
@@ -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,h as i,H as l,g as s}from"./p-78780f63.js";import{g as o}from"./p-a7a06d6a.js";import"./p-0ad0b29a.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";const n=class{constructor(i){t(this,i),this.messages=void 0,this.view=void 0}render(){var t,s,o,n,a,e,h;const d="2d"!==(null===(t=null==this?void 0:this.view)||void 0===t?void 0:t.type)&&(null==this?void 0:this.view)?this._getSceneViewCommands():this._getMapViewCommands(),r=this._isMacLike()?"Option":"Alt";return i(l,null,i("calcite-block",{open:!0,class:"instant-apps-keyboard-shortcuts__content",heading:null===(o=null===(s=null==this?void 0:this.messages)||void 0===s?void 0:s.generalShortcuts)||void 0===o?void 0:o.label},i("table",null,this.renderTableHeader(),i("tr",null,i("td",null,`${r} + M`),i("td",null,null===(a=null===(n=null==this?void 0:this.messages)||void 0===n?void 0:n.generalShortcuts)||void 0===a?void 0:a.title))),i("calcite-label",null,null===(h=null===(e=null==this?void 0:this.messages)||void 0===e?void 0:e.generalShortcuts)||void 0===h?void 0:h.title),i("table",null,this.renderTableHeader(),d.map((t=>i("tr",null,i("td",null,t.alias),i("td",null,t.title)))))))}componentDidLoad(){o(this)}renderTableHeader(){var t,l;return(null==this?void 0:this.messages)?i("tr",null,i("th",null,null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.generalShortcuts.shortcut),i("th",null,null===(l=null==this?void 0:this.messages)||void 0===l?void 0:l.generalShortcuts.action)):null}_getMapViewCommands(){return(null==this?void 0:this.messages)?[{alias:null==this?void 0:this.messages.mapShortcuts.arrowKeys,title:null==this?void 0:this.messages.mapShortcuts.nudge},{alias:"N",title:null==this?void 0:this.messages.mapShortcuts.N},{alias:"A",title:null==this?void 0:this.messages.mapShortcuts.A},{alias:"D",title:null==this?void 0:this.messages.mapShortcuts.D},{alias:"+",title:null==this?void 0:this.messages.mapShortcuts.plus},{alias:"-",title:null==this?void 0:this.messages.mapShortcuts.minus}]:[]}_getSceneViewCommands(){var t;const i="global"===(null===(t=null==this?void 0:this.view)||void 0===t?void 0:t.viewingMode),l=(null==this?void 0:this.messages)?[{alias:null==this?void 0:this.messages.mapShortcuts.arrowKeys,title:null==this?void 0:this.messages.mapShortcuts.nudge,show:!!i},{alias:"P",title:null==this?void 0:this.messages.sceneShortcuts.P,show:!0},{alias:"N",title:null==this?void 0:this.messages.sceneShortcuts.N,show:!0},{alias:"W",title:null==this?void 0:this.messages.sceneShortcuts.W,show:!0},{alias:"A",title:null==this?void 0:this.messages.sceneShortcuts.A,show:!0},{alias:"D",title:null==this?void 0:this.messages.sceneShortcuts.D,show:!0},{alias:"S",title:null==this?void 0:this.messages.sceneShortcuts.S,show:!0},{alias:"J",title:null==this?void 0:this.messages.sceneShortcuts.globalCommands.J,show:!!i},{alias:"U",title:null==this?void 0:this.messages.sceneShortcuts.globalCommands.U,show:!!i}]:[];return(null==this?void 0:this.messages)?null==l?void 0:l.filter((t=>t.show)):[]}_isMacLike(){return/(Mac)/i.test(navigator.platform)}get el(){return s(this)}};n.style=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-ui-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-ui-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}";export{n as instant_apps_keyboard_shortcuts}
6
+ import{r as t,h as i,H as l,g as s}from"./p-78780f63.js";import{g as o}from"./p-83225907.js";import"./p-a8a0187d.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-14a48b14.js";const n=class{constructor(i){t(this,i),this.messages=void 0,this.view=void 0}render(){var t,s,o,n,a,e,h;const d="2d"!==(null===(t=null==this?void 0:this.view)||void 0===t?void 0:t.type)&&(null==this?void 0:this.view)?this._getSceneViewCommands():this._getMapViewCommands(),r=this._isMacLike()?"Option":"Alt";return i(l,null,i("calcite-block",{open:!0,class:"instant-apps-keyboard-shortcuts__content",heading:null===(o=null===(s=null==this?void 0:this.messages)||void 0===s?void 0:s.generalShortcuts)||void 0===o?void 0:o.label},i("table",null,this.renderTableHeader(),i("tr",null,i("td",null,`${r} + M`),i("td",null,null===(a=null===(n=null==this?void 0:this.messages)||void 0===n?void 0:n.generalShortcuts)||void 0===a?void 0:a.title))),i("calcite-label",null,null===(h=null===(e=null==this?void 0:this.messages)||void 0===e?void 0:e.generalShortcuts)||void 0===h?void 0:h.title),i("table",null,this.renderTableHeader(),d.map((t=>i("tr",null,i("td",null,t.alias),i("td",null,t.title)))))))}componentDidLoad(){o(this)}renderTableHeader(){var t,l;return(null==this?void 0:this.messages)?i("tr",null,i("th",null,null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.generalShortcuts.shortcut),i("th",null,null===(l=null==this?void 0:this.messages)||void 0===l?void 0:l.generalShortcuts.action)):null}_getMapViewCommands(){return(null==this?void 0:this.messages)?[{alias:null==this?void 0:this.messages.mapShortcuts.arrowKeys,title:null==this?void 0:this.messages.mapShortcuts.nudge},{alias:"N",title:null==this?void 0:this.messages.mapShortcuts.N},{alias:"A",title:null==this?void 0:this.messages.mapShortcuts.A},{alias:"D",title:null==this?void 0:this.messages.mapShortcuts.D},{alias:"+",title:null==this?void 0:this.messages.mapShortcuts.plus},{alias:"-",title:null==this?void 0:this.messages.mapShortcuts.minus}]:[]}_getSceneViewCommands(){var t;const i="global"===(null===(t=null==this?void 0:this.view)||void 0===t?void 0:t.viewingMode),l=(null==this?void 0:this.messages)?[{alias:null==this?void 0:this.messages.mapShortcuts.arrowKeys,title:null==this?void 0:this.messages.mapShortcuts.nudge,show:!!i},{alias:"P",title:null==this?void 0:this.messages.sceneShortcuts.P,show:!0},{alias:"N",title:null==this?void 0:this.messages.sceneShortcuts.N,show:!0},{alias:"W",title:null==this?void 0:this.messages.sceneShortcuts.W,show:!0},{alias:"A",title:null==this?void 0:this.messages.sceneShortcuts.A,show:!0},{alias:"D",title:null==this?void 0:this.messages.sceneShortcuts.D,show:!0},{alias:"S",title:null==this?void 0:this.messages.sceneShortcuts.S,show:!0},{alias:"J",title:null==this?void 0:this.messages.sceneShortcuts.globalCommands.J,show:!!i},{alias:"U",title:null==this?void 0:this.messages.sceneShortcuts.globalCommands.U,show:!!i}]:[];return(null==this?void 0:this.messages)?null==l?void 0:l.filter((t=>t.show)):[]}_isMacLike(){return/(Mac)/i.test(navigator.platform)}get el(){return s(this)}};n.style=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}";export{n as instant_apps_keyboard_shortcuts}
@@ -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-0ad0b29a.js";import{l as o}from"./p-14a48b14.js";function a(n){var a,i,t;const l=null!==(a=n.closest("[lang]"))&&void 0!==a?a:null===(t=null===(i=n.shadowRoot)||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.documentElement,s=((null==l?void 0:l.lang)||(null===navigator||void 0===navigator?void 0:navigator.language)||"en").toLowerCase();return o.has(s)?o.get(s):o.has(s.slice(0,2))?o.get(s.slice(0,2)):"en"}function i(n,o){return new Promise(((a,i)=>{const t=`./assets/t9n/${n}/resources_${o}.json`,{href:l}=new URL(t,window.location.href);fetch(l).then((n=>{n.ok?a(n.json()):i()}),(()=>i()))}))}function t(n,o){var a;const i=null==o?void 0:o.get("user.culture"),t=null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.language,l=n.getLocale();return n.normalizeMessageBundleLocale(i||t||l||"en")}async function l(n,o){const t=n.tagName.toLowerCase(),l=null!=o?o:a(n);let s;try{s=await i(t,l)}catch(n){console.warn(`no locale for ${t} (${l}) loading default locale en.`),s=await i(t,"en")}return[s,l]}async function s(o){const a=await l(o.el);o.messages=a[0];const[i]=await n(["esri/intl"]);i.onLocaleChange((async n=>{const a=await l(o.el,n);o.messages=a[0]}))}export{t as a,l as b,a as c,s as g}
6
+ import{l as n}from"./p-a8a0187d.js";import{l as o}from"./p-14a48b14.js";function a(n){var a,i,t;const l=null!==(a=n.closest("[lang]"))&&void 0!==a?a:null===(t=null===(i=n.shadowRoot)||void 0===i?void 0:i.ownerDocument)||void 0===t?void 0:t.documentElement,s=((null==l?void 0:l.lang)||(null===navigator||void 0===navigator?void 0:navigator.language)||"en").toLowerCase();return o.has(s)?o.get(s):o.has(s.slice(0,2))?o.get(s.slice(0,2)):"en"}function i(n,o){return new Promise(((a,i)=>{const t=`./assets/t9n/${n}/resources_${o}.json`,{href:l}=new URL(t,window.location.href);fetch(l).then((n=>{n.ok?a(n.json()):i()}),(()=>i()))}))}function t(n,o){var a;const i=null==o?void 0:o.get("user.culture"),t=null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.language,l=n.getLocale();return n.normalizeMessageBundleLocale(i||t||l||"en")}async function l(n,o){const t=n.tagName.toLowerCase(),l=null!=o?o:a(n);let s;try{s=await i(t,l)}catch(n){console.warn(`no locale for ${t} (${l}) loading default locale en.`),s=await i(t,"en")}return[s,l]}async function s(o){const a=await l(o.el);o.messages=a[0];const[i]=await n(["esri/intl"]);i.onLocaleChange((async n=>{const a=await l(o.el,n);o.messages=a[0]}))}export{t as a,l as b,a as c,s as g}