@esri/solutions-components 0.10.24 → 0.10.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1051) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +9 -9
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-alert_5.cjs.entry.js +20 -21
  5. package/dist/cjs/calcite-block_5.cjs.entry.js +5 -7
  6. package/dist/cjs/{calcite-carousel.cjs.entry.js → calcite-carousel_2.cjs.entry.js} +52 -18
  7. package/dist/cjs/calcite-combobox_3.cjs.entry.js +15 -3
  8. package/dist/cjs/calcite-flow_4.cjs.entry.js +6 -6
  9. package/dist/cjs/calcite-modal_3.cjs.entry.js +1 -1
  10. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  11. package/dist/cjs/card-manager_3.cjs.entry.js +473 -53
  12. package/dist/cjs/crowdsource-manager.cjs.entry.js +55 -21
  13. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  15. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  16. package/dist/cjs/feature-list.cjs.entry.js +3 -3
  17. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  18. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +106 -0
  19. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
  20. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  21. package/dist/cjs/instant-apps-export-views.cjs.entry.js +1 -1
  22. package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -3
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +2 -2
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +7 -7
  28. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
  29. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  30. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +34 -14
  32. package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
  33. package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
  34. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
  35. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
  36. package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
  37. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +59 -29
  38. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  39. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  40. package/dist/cjs/loader.cjs.js +1 -1
  41. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  42. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  43. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  44. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  45. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  46. package/dist/cjs/share-item.cjs.entry.js +1 -1
  47. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  48. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  49. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  50. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  51. package/dist/cjs/solutions-components.cjs.js +1 -1
  52. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  53. package/dist/cjs/{utils-9343bd5b.js → utils-62072741.js} +23 -0
  54. package/dist/collection/assets/t9n/card-manager/resources.json +1 -0
  55. package/dist/collection/assets/t9n/card-manager/resources_en.json +2 -1
  56. package/dist/collection/assets/t9n/create-feature/resources_ar.json +5 -0
  57. package/dist/collection/assets/t9n/create-feature/resources_bg.json +5 -0
  58. package/dist/collection/assets/t9n/create-feature/resources_bs.json +5 -0
  59. package/dist/collection/assets/t9n/create-feature/resources_ca.json +5 -0
  60. package/dist/collection/assets/t9n/create-feature/resources_cs.json +5 -0
  61. package/dist/collection/assets/t9n/create-feature/resources_da.json +5 -0
  62. package/dist/collection/assets/t9n/create-feature/resources_de.json +5 -0
  63. package/dist/collection/assets/t9n/create-feature/resources_el.json +5 -0
  64. package/dist/collection/assets/t9n/create-feature/resources_es.json +5 -0
  65. package/dist/collection/assets/t9n/create-feature/resources_et.json +5 -0
  66. package/dist/collection/assets/t9n/create-feature/resources_fi.json +5 -0
  67. package/dist/collection/assets/t9n/create-feature/resources_fr.json +5 -0
  68. package/dist/collection/assets/t9n/create-feature/resources_he.json +5 -0
  69. package/dist/collection/assets/t9n/create-feature/resources_hr.json +5 -0
  70. package/dist/collection/assets/t9n/create-feature/resources_hu.json +5 -0
  71. package/dist/collection/assets/t9n/create-feature/resources_id.json +5 -0
  72. package/dist/collection/assets/t9n/create-feature/resources_it.json +5 -0
  73. package/dist/collection/assets/t9n/create-feature/resources_ja.json +5 -0
  74. package/dist/collection/assets/t9n/create-feature/resources_ko.json +5 -0
  75. package/dist/collection/assets/t9n/create-feature/resources_lt.json +5 -0
  76. package/dist/collection/assets/t9n/create-feature/resources_lv.json +5 -0
  77. package/dist/collection/assets/t9n/create-feature/resources_nb.json +5 -0
  78. package/dist/collection/assets/t9n/create-feature/resources_nl.json +5 -0
  79. package/dist/collection/assets/t9n/create-feature/resources_pl.json +5 -0
  80. package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +5 -0
  81. package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +5 -0
  82. package/dist/collection/assets/t9n/create-feature/resources_ro.json +5 -0
  83. package/dist/collection/assets/t9n/create-feature/resources_ru.json +5 -0
  84. package/dist/collection/assets/t9n/create-feature/resources_sk.json +5 -0
  85. package/dist/collection/assets/t9n/create-feature/resources_sl.json +5 -0
  86. package/dist/collection/assets/t9n/create-feature/resources_sr.json +5 -0
  87. package/dist/collection/assets/t9n/create-feature/resources_sv.json +5 -0
  88. package/dist/collection/assets/t9n/create-feature/resources_th.json +5 -0
  89. package/dist/collection/assets/t9n/create-feature/resources_tr.json +5 -0
  90. package/dist/collection/assets/t9n/create-feature/resources_uk.json +5 -0
  91. package/dist/collection/assets/t9n/create-feature/resources_vi.json +5 -0
  92. package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +5 -0
  93. package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +5 -0
  94. package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +5 -0
  95. package/dist/collection/assets/t9n/create-related-feature/resources_ar.json +3 -0
  96. package/dist/collection/assets/t9n/create-related-feature/resources_bg.json +3 -0
  97. package/dist/collection/assets/t9n/create-related-feature/resources_bs.json +3 -0
  98. package/dist/collection/assets/t9n/create-related-feature/resources_ca.json +3 -0
  99. package/dist/collection/assets/t9n/create-related-feature/resources_cs.json +3 -0
  100. package/dist/collection/assets/t9n/create-related-feature/resources_da.json +3 -0
  101. package/dist/collection/assets/t9n/create-related-feature/resources_de.json +3 -0
  102. package/dist/collection/assets/t9n/create-related-feature/resources_el.json +3 -0
  103. package/dist/collection/assets/t9n/create-related-feature/resources_es.json +3 -0
  104. package/dist/collection/assets/t9n/create-related-feature/resources_et.json +3 -0
  105. package/dist/collection/assets/t9n/create-related-feature/resources_fi.json +3 -0
  106. package/dist/collection/assets/t9n/create-related-feature/resources_fr.json +3 -0
  107. package/dist/collection/assets/t9n/create-related-feature/resources_he.json +3 -0
  108. package/dist/collection/assets/t9n/create-related-feature/resources_hr.json +3 -0
  109. package/dist/collection/assets/t9n/create-related-feature/resources_hu.json +3 -0
  110. package/dist/collection/assets/t9n/create-related-feature/resources_id.json +3 -0
  111. package/dist/collection/assets/t9n/create-related-feature/resources_it.json +3 -0
  112. package/dist/collection/assets/t9n/create-related-feature/resources_ja.json +3 -0
  113. package/dist/collection/assets/t9n/create-related-feature/resources_ko.json +3 -0
  114. package/dist/collection/assets/t9n/create-related-feature/resources_lt.json +3 -0
  115. package/dist/collection/assets/t9n/create-related-feature/resources_lv.json +3 -0
  116. package/dist/collection/assets/t9n/create-related-feature/resources_nb.json +3 -0
  117. package/dist/collection/assets/t9n/create-related-feature/resources_nl.json +3 -0
  118. package/dist/collection/assets/t9n/create-related-feature/resources_pl.json +3 -0
  119. package/dist/collection/assets/t9n/create-related-feature/resources_pt-BR.json +3 -0
  120. package/dist/collection/assets/t9n/create-related-feature/resources_pt-PT.json +3 -0
  121. package/dist/collection/assets/t9n/create-related-feature/resources_ro.json +3 -0
  122. package/dist/collection/assets/t9n/create-related-feature/resources_ru.json +3 -0
  123. package/dist/collection/assets/t9n/create-related-feature/resources_sk.json +3 -0
  124. package/dist/collection/assets/t9n/create-related-feature/resources_sl.json +3 -0
  125. package/dist/collection/assets/t9n/create-related-feature/resources_sr.json +3 -0
  126. package/dist/collection/assets/t9n/create-related-feature/resources_sv.json +3 -0
  127. package/dist/collection/assets/t9n/create-related-feature/resources_th.json +3 -0
  128. package/dist/collection/assets/t9n/create-related-feature/resources_tr.json +3 -0
  129. package/dist/collection/assets/t9n/create-related-feature/resources_uk.json +3 -0
  130. package/dist/collection/assets/t9n/create-related-feature/resources_vi.json +3 -0
  131. package/dist/collection/assets/t9n/create-related-feature/resources_zh-CN.json +3 -0
  132. package/dist/collection/assets/t9n/create-related-feature/resources_zh-HK.json +3 -0
  133. package/dist/collection/assets/t9n/create-related-feature/resources_zh-TW.json +3 -0
  134. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +0 -1
  135. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
  136. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
  137. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
  138. package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
  139. package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
  140. package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
  141. package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
  142. package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
  143. package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
  144. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
  145. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
  146. package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
  147. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
  148. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
  149. package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
  150. package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
  151. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
  152. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
  153. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
  154. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
  155. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
  156. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
  157. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
  158. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
  159. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
  160. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
  161. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
  162. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
  163. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
  164. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
  165. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
  166. package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
  167. package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
  168. package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
  169. package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
  170. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
  171. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
  172. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
  173. package/dist/collection/assets/t9n/delete-button/resources_ar.json +6 -6
  174. package/dist/collection/assets/t9n/delete-button/resources_bg.json +6 -6
  175. package/dist/collection/assets/t9n/delete-button/resources_bs.json +6 -6
  176. package/dist/collection/assets/t9n/delete-button/resources_ca.json +6 -6
  177. package/dist/collection/assets/t9n/delete-button/resources_cs.json +6 -6
  178. package/dist/collection/assets/t9n/delete-button/resources_da.json +6 -6
  179. package/dist/collection/assets/t9n/delete-button/resources_de.json +6 -6
  180. package/dist/collection/assets/t9n/delete-button/resources_el.json +6 -6
  181. package/dist/collection/assets/t9n/delete-button/resources_es.json +6 -6
  182. package/dist/collection/assets/t9n/delete-button/resources_et.json +6 -6
  183. package/dist/collection/assets/t9n/delete-button/resources_fi.json +6 -6
  184. package/dist/collection/assets/t9n/delete-button/resources_fr.json +6 -6
  185. package/dist/collection/assets/t9n/delete-button/resources_he.json +6 -6
  186. package/dist/collection/assets/t9n/delete-button/resources_hr.json +6 -6
  187. package/dist/collection/assets/t9n/delete-button/resources_hu.json +6 -6
  188. package/dist/collection/assets/t9n/delete-button/resources_id.json +6 -6
  189. package/dist/collection/assets/t9n/delete-button/resources_it.json +6 -6
  190. package/dist/collection/assets/t9n/delete-button/resources_ja.json +6 -6
  191. package/dist/collection/assets/t9n/delete-button/resources_ko.json +6 -6
  192. package/dist/collection/assets/t9n/delete-button/resources_lt.json +6 -6
  193. package/dist/collection/assets/t9n/delete-button/resources_lv.json +6 -6
  194. package/dist/collection/assets/t9n/delete-button/resources_nb.json +6 -6
  195. package/dist/collection/assets/t9n/delete-button/resources_nl.json +6 -6
  196. package/dist/collection/assets/t9n/delete-button/resources_pl.json +6 -6
  197. package/dist/collection/assets/t9n/delete-button/resources_pt-BR.json +6 -6
  198. package/dist/collection/assets/t9n/delete-button/resources_pt-PT.json +6 -6
  199. package/dist/collection/assets/t9n/delete-button/resources_ro.json +6 -6
  200. package/dist/collection/assets/t9n/delete-button/resources_ru.json +6 -6
  201. package/dist/collection/assets/t9n/delete-button/resources_sk.json +6 -6
  202. package/dist/collection/assets/t9n/delete-button/resources_sl.json +6 -6
  203. package/dist/collection/assets/t9n/delete-button/resources_sr.json +6 -6
  204. package/dist/collection/assets/t9n/delete-button/resources_sv.json +6 -6
  205. package/dist/collection/assets/t9n/delete-button/resources_th.json +6 -6
  206. package/dist/collection/assets/t9n/delete-button/resources_tr.json +6 -6
  207. package/dist/collection/assets/t9n/delete-button/resources_uk.json +6 -6
  208. package/dist/collection/assets/t9n/delete-button/resources_vi.json +6 -6
  209. package/dist/collection/assets/t9n/delete-button/resources_zh-CN.json +6 -6
  210. package/dist/collection/assets/t9n/delete-button/resources_zh-HK.json +6 -6
  211. package/dist/collection/assets/t9n/delete-button/resources_zh-TW.json +6 -6
  212. package/dist/collection/assets/t9n/edit-card/resources_ar.json +1 -1
  213. package/dist/collection/assets/t9n/edit-card/resources_bg.json +1 -1
  214. package/dist/collection/assets/t9n/edit-card/resources_bs.json +1 -1
  215. package/dist/collection/assets/t9n/edit-card/resources_ca.json +1 -1
  216. package/dist/collection/assets/t9n/edit-card/resources_cs.json +1 -1
  217. package/dist/collection/assets/t9n/edit-card/resources_da.json +1 -1
  218. package/dist/collection/assets/t9n/edit-card/resources_de.json +1 -1
  219. package/dist/collection/assets/t9n/edit-card/resources_el.json +1 -1
  220. package/dist/collection/assets/t9n/edit-card/resources_es.json +1 -1
  221. package/dist/collection/assets/t9n/edit-card/resources_et.json +1 -1
  222. package/dist/collection/assets/t9n/edit-card/resources_fi.json +1 -1
  223. package/dist/collection/assets/t9n/edit-card/resources_fr.json +1 -1
  224. package/dist/collection/assets/t9n/edit-card/resources_he.json +1 -1
  225. package/dist/collection/assets/t9n/edit-card/resources_hr.json +1 -1
  226. package/dist/collection/assets/t9n/edit-card/resources_hu.json +1 -1
  227. package/dist/collection/assets/t9n/edit-card/resources_id.json +1 -1
  228. package/dist/collection/assets/t9n/edit-card/resources_it.json +1 -1
  229. package/dist/collection/assets/t9n/edit-card/resources_ja.json +1 -1
  230. package/dist/collection/assets/t9n/edit-card/resources_ko.json +1 -1
  231. package/dist/collection/assets/t9n/edit-card/resources_lt.json +1 -1
  232. package/dist/collection/assets/t9n/edit-card/resources_lv.json +1 -1
  233. package/dist/collection/assets/t9n/edit-card/resources_nb.json +1 -1
  234. package/dist/collection/assets/t9n/edit-card/resources_nl.json +1 -1
  235. package/dist/collection/assets/t9n/edit-card/resources_pl.json +1 -1
  236. package/dist/collection/assets/t9n/edit-card/resources_pt-BR.json +1 -1
  237. package/dist/collection/assets/t9n/edit-card/resources_pt-PT.json +1 -1
  238. package/dist/collection/assets/t9n/edit-card/resources_ro.json +1 -1
  239. package/dist/collection/assets/t9n/edit-card/resources_ru.json +1 -1
  240. package/dist/collection/assets/t9n/edit-card/resources_sk.json +1 -1
  241. package/dist/collection/assets/t9n/edit-card/resources_sl.json +1 -1
  242. package/dist/collection/assets/t9n/edit-card/resources_sr.json +1 -1
  243. package/dist/collection/assets/t9n/edit-card/resources_sv.json +1 -1
  244. package/dist/collection/assets/t9n/edit-card/resources_th.json +1 -1
  245. package/dist/collection/assets/t9n/edit-card/resources_tr.json +1 -1
  246. package/dist/collection/assets/t9n/edit-card/resources_uk.json +1 -1
  247. package/dist/collection/assets/t9n/edit-card/resources_vi.json +1 -1
  248. package/dist/collection/assets/t9n/edit-card/resources_zh-CN.json +1 -1
  249. package/dist/collection/assets/t9n/edit-card/resources_zh-HK.json +1 -1
  250. package/dist/collection/assets/t9n/edit-card/resources_zh-TW.json +1 -1
  251. package/dist/collection/assets/t9n/info-card/resources_ar.json +8 -8
  252. package/dist/collection/assets/t9n/info-card/resources_bg.json +8 -8
  253. package/dist/collection/assets/t9n/info-card/resources_bs.json +8 -8
  254. package/dist/collection/assets/t9n/info-card/resources_ca.json +8 -8
  255. package/dist/collection/assets/t9n/info-card/resources_cs.json +8 -8
  256. package/dist/collection/assets/t9n/info-card/resources_da.json +8 -8
  257. package/dist/collection/assets/t9n/info-card/resources_de.json +8 -8
  258. package/dist/collection/assets/t9n/info-card/resources_el.json +8 -8
  259. package/dist/collection/assets/t9n/info-card/resources_es.json +8 -8
  260. package/dist/collection/assets/t9n/info-card/resources_et.json +8 -8
  261. package/dist/collection/assets/t9n/info-card/resources_fi.json +8 -8
  262. package/dist/collection/assets/t9n/info-card/resources_fr.json +8 -8
  263. package/dist/collection/assets/t9n/info-card/resources_he.json +8 -8
  264. package/dist/collection/assets/t9n/info-card/resources_hr.json +8 -8
  265. package/dist/collection/assets/t9n/info-card/resources_hu.json +8 -8
  266. package/dist/collection/assets/t9n/info-card/resources_id.json +8 -8
  267. package/dist/collection/assets/t9n/info-card/resources_it.json +8 -8
  268. package/dist/collection/assets/t9n/info-card/resources_ja.json +8 -8
  269. package/dist/collection/assets/t9n/info-card/resources_ko.json +8 -8
  270. package/dist/collection/assets/t9n/info-card/resources_lt.json +8 -8
  271. package/dist/collection/assets/t9n/info-card/resources_lv.json +8 -8
  272. package/dist/collection/assets/t9n/info-card/resources_nb.json +8 -8
  273. package/dist/collection/assets/t9n/info-card/resources_nl.json +8 -8
  274. package/dist/collection/assets/t9n/info-card/resources_pl.json +8 -8
  275. package/dist/collection/assets/t9n/info-card/resources_pt-BR.json +8 -8
  276. package/dist/collection/assets/t9n/info-card/resources_pt-PT.json +8 -8
  277. package/dist/collection/assets/t9n/info-card/resources_ro.json +8 -8
  278. package/dist/collection/assets/t9n/info-card/resources_ru.json +8 -8
  279. package/dist/collection/assets/t9n/info-card/resources_sk.json +8 -8
  280. package/dist/collection/assets/t9n/info-card/resources_sl.json +8 -8
  281. package/dist/collection/assets/t9n/info-card/resources_sr.json +8 -8
  282. package/dist/collection/assets/t9n/info-card/resources_sv.json +8 -8
  283. package/dist/collection/assets/t9n/info-card/resources_th.json +8 -8
  284. package/dist/collection/assets/t9n/info-card/resources_tr.json +8 -8
  285. package/dist/collection/assets/t9n/info-card/resources_uk.json +8 -8
  286. package/dist/collection/assets/t9n/info-card/resources_vi.json +8 -8
  287. package/dist/collection/assets/t9n/info-card/resources_zh-CN.json +8 -8
  288. package/dist/collection/assets/t9n/info-card/resources_zh-HK.json +8 -8
  289. package/dist/collection/assets/t9n/info-card/resources_zh-TW.json +8 -8
  290. package/dist/collection/assets/t9n/layer-table/resources.json +1 -0
  291. package/dist/collection/assets/t9n/layer-table/resources_en.json +1 -0
  292. package/dist/collection/assets/t9n/map-card/resources.json +2 -1
  293. package/dist/collection/assets/t9n/map-card/resources_en.json +2 -1
  294. package/dist/collection/collection-manifest.json +1 -0
  295. package/dist/collection/components/card-manager/card-manager.js +22 -3
  296. package/dist/collection/components/create-feature/create-feature.js +36 -19
  297. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +8 -4
  298. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +64 -21
  299. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
  300. package/dist/collection/components/delete-button/delete-button.js +1 -1
  301. package/dist/collection/components/edit-card/edit-card.js +1 -1
  302. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  303. package/dist/collection/components/feature-details/feature-details.js +6 -6
  304. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  305. package/dist/collection/components/feature-list/feature-list.js +3 -3
  306. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  307. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  308. package/dist/collection/components/info-card/info-card.js +2 -2
  309. package/dist/collection/components/json-editor/json-editor.js +1 -1
  310. package/dist/collection/components/layer-table/layer-table.css +4 -0
  311. package/dist/collection/components/layer-table/layer-table.js +49 -22
  312. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  313. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  314. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  315. package/dist/collection/components/map-card/map-card.css +10 -2
  316. package/dist/collection/components/map-card/map-card.js +471 -30
  317. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  318. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  319. package/dist/collection/components/map-layer-picker/map-layer-picker.js +55 -5
  320. package/dist/collection/components/map-legend/map-legend.js +1 -1
  321. package/dist/collection/components/map-picker/map-picker.css +7 -3
  322. package/dist/collection/components/map-picker/map-picker.js +3 -3
  323. package/dist/collection/components/map-search/map-search.js +1 -1
  324. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  325. package/dist/collection/components/map-tools/map-tools.js +1 -1
  326. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  327. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  328. package/dist/collection/components/public-notification/public-notification.js +1 -1
  329. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  330. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  331. package/dist/collection/components/share-item/share-item.js +1 -1
  332. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  333. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  334. package/dist/collection/components/solution-item/solution-item.js +1 -1
  335. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  336. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  337. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  338. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  339. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  340. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  341. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  342. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  343. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  344. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  345. package/dist/components/calcite-carousel-item.js +1 -54
  346. package/dist/components/calcite-carousel.js +1 -517
  347. package/dist/components/card-manager2.js +6 -3
  348. package/dist/{esm/calcite-carousel-item.entry.js → components/carousel-item.js} +28 -9
  349. package/dist/{esm/calcite-carousel.entry.js → components/carousel.js} +76 -19
  350. package/dist/components/create-feature2.js +19 -19
  351. package/dist/components/crowdsource-manager.js +60 -23
  352. package/dist/components/crowdsource-reporter.js +1 -1
  353. package/dist/components/delete-button2.js +19 -13
  354. package/dist/components/edit-card2.js +1 -1
  355. package/dist/components/feature-comments.js +1 -1
  356. package/dist/components/feature-details2.js +6 -6
  357. package/dist/components/feature-form-flow-item.js +1 -1
  358. package/dist/components/feature-list2.js +3 -3
  359. package/dist/components/features-flow-item.js +1 -1
  360. package/dist/components/floor-filter2.js +1 -1
  361. package/dist/components/info-card2.js +2 -2
  362. package/dist/components/instant-apps-app-guide.js +184 -0
  363. package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
  364. package/dist/components/instant-apps-control-panel.js +1 -1
  365. package/dist/components/instant-apps-export-views.js +1 -1
  366. package/dist/components/instant-apps-export.js +1 -1
  367. package/dist/components/instant-apps-filter-list2.js +3 -5
  368. package/dist/components/instant-apps-header2.js +1 -1
  369. package/dist/components/instant-apps-interactive-legend-classic2.js +8 -3
  370. package/dist/components/instant-apps-interactive-legend-group-legend-element-caption.js +2 -2
  371. package/dist/components/instant-apps-interactive-legend-group-legend-element2.js +2 -2
  372. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +1 -1
  373. package/dist/components/instant-apps-interactive-legend-layer-element2.js +2 -2
  374. package/dist/components/instant-apps-interactive-legend-legend-element2.js +1 -1
  375. package/dist/components/instant-apps-interactive-legend-relationship2.js +2 -2
  376. package/dist/components/instant-apps-keyboard-shortcuts.js +1 -1
  377. package/dist/components/instant-apps-landing-page.js +1 -1
  378. package/dist/components/instant-apps-language-switcher.js +3 -3
  379. package/dist/components/instant-apps-language-translator-item2.js +1 -1
  380. package/dist/components/instant-apps-language-translator-search2.js +1 -1
  381. package/dist/components/instant-apps-language-translator2.js +33 -13
  382. package/dist/components/instant-apps-measurement-tool2.js +2 -2
  383. package/dist/components/instant-apps-measurement.js +1 -1
  384. package/dist/components/instant-apps-popover.js +1 -1
  385. package/dist/components/instant-apps-scoreboard.js +1 -1
  386. package/dist/components/instant-apps-sign-in2.js +1 -1
  387. package/dist/components/instant-apps-social-share2.js +2 -2
  388. package/dist/components/instant-apps-splash.js +1 -1
  389. package/dist/components/instant-apps-time-filter.js +59 -29
  390. package/dist/components/json-editor2.js +1 -1
  391. package/dist/components/layer-table2.js +44 -23
  392. package/dist/components/layout-manager.js +1 -1
  393. package/dist/components/list-flow-item.js +1 -1
  394. package/dist/components/location-flow-item.js +1 -1
  395. package/dist/components/map-card2.js +436 -33
  396. package/dist/components/map-draw-tools2.js +1 -1
  397. package/dist/components/map-fullscreen2.js +1 -1
  398. package/dist/components/map-layer-picker2.js +19 -5
  399. package/dist/components/map-legend2.js +1 -1
  400. package/dist/components/map-picker2.js +4 -4
  401. package/dist/components/map-search2.js +1 -1
  402. package/dist/components/map-select-tools2.js +1 -1
  403. package/dist/components/map-tools2.js +1 -1
  404. package/dist/components/pci-calculator.js +1 -1
  405. package/dist/components/pdf-download2.js +1 -1
  406. package/dist/components/public-notification.js +1 -1
  407. package/dist/components/refine-results-flow-item.js +1 -1
  408. package/dist/components/refine-selection2.js +1 -1
  409. package/dist/components/share-item.js +1 -1
  410. package/dist/components/solution-configuration.js +3 -3
  411. package/dist/components/solution-contents2.js +1 -1
  412. package/dist/components/solution-item-accordion.js +1 -1
  413. package/dist/components/solution-item-details2.js +1 -1
  414. package/dist/components/solution-item-icon2.js +1 -1
  415. package/dist/components/solution-item-sharing2.js +1 -1
  416. package/dist/components/solution-item2.js +1 -1
  417. package/dist/components/solution-organization-variables2.js +1 -1
  418. package/dist/components/solution-resource-item2.js +1 -1
  419. package/dist/components/solution-spatial-ref2.js +1 -1
  420. package/dist/components/solution-template-data2.js +1 -1
  421. package/dist/components/solution-variables2.js +1 -1
  422. package/dist/components/spatial-ref.js +1 -1
  423. package/dist/components/utils4.js +22 -1
  424. package/dist/esm/{ExpandToggle-9289b7ca.js → ExpandToggle-076b4360.js} +1 -1
  425. package/dist/esm/{ar-8dded5d5.js → ar-3e3c0d14.js} +8 -8
  426. package/dist/esm/basemap-gallery_7.entry.js +9 -9
  427. package/dist/esm/{bg-c1cdf619.js → bg-a872736b.js} +8 -8
  428. package/dist/esm/{bs-a40506a4.js → bs-fe545c28.js} +8 -8
  429. package/dist/esm/buffer-tools_3.entry.js +2 -2
  430. package/dist/esm/{ca-67879a0c.js → ca-8a2abdaa.js} +8 -8
  431. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  432. package/dist/esm/calcite-action-bar.entry.js +4 -4
  433. package/dist/esm/calcite-action-group.entry.js +3 -3
  434. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  435. package/dist/esm/calcite-action-pad_2.entry.js +6 -6
  436. package/dist/esm/calcite-action_2.entry.js +6 -6
  437. package/dist/esm/calcite-alert_5.entry.js +24 -25
  438. package/dist/esm/calcite-avatar.entry.js +1 -1
  439. package/dist/esm/calcite-block-section.entry.js +3 -3
  440. package/dist/esm/calcite-block_5.entry.js +14 -16
  441. package/dist/esm/calcite-button.entry.js +5 -5
  442. package/dist/esm/calcite-card-group.entry.js +1 -1
  443. package/dist/esm/calcite-card.entry.js +3 -3
  444. package/dist/esm/calcite-carousel_2.entry.js +500 -0
  445. package/dist/esm/calcite-checkbox.entry.js +3 -3
  446. package/dist/esm/calcite-chip-group.entry.js +1 -1
  447. package/dist/esm/calcite-chip_2.entry.js +4 -4
  448. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  449. package/dist/esm/calcite-color-picker.entry.js +3 -3
  450. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  451. package/dist/esm/calcite-combobox_3.entry.js +24 -12
  452. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  453. package/dist/esm/calcite-dialog.entry.js +5 -5
  454. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  455. package/dist/esm/calcite-fab.entry.js +1 -1
  456. package/dist/esm/calcite-filter_5.entry.js +3 -3
  457. package/dist/esm/calcite-flow_4.entry.js +6 -6
  458. package/dist/esm/calcite-graph_2.entry.js +4 -4
  459. package/dist/esm/calcite-icon_2.entry.js +2 -2
  460. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  461. package/dist/esm/calcite-input-number.entry.js +5 -5
  462. package/dist/esm/calcite-input-text.entry.js +5 -5
  463. package/dist/esm/{calcite-input-time-picker-37845feb.js → calcite-input-time-picker-2fbabd28.js} +56 -56
  464. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  465. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  466. package/dist/esm/calcite-input_2.entry.js +5 -5
  467. package/dist/esm/calcite-label.entry.js +2 -2
  468. package/dist/esm/calcite-link.entry.js +1 -1
  469. package/dist/esm/calcite-menu-item.entry.js +3 -3
  470. package/dist/esm/calcite-menu.entry.js +3 -3
  471. package/dist/esm/calcite-meter.entry.js +3 -3
  472. package/dist/esm/calcite-modal_3.entry.js +6 -6
  473. package/dist/esm/calcite-navigation.entry.js +1 -1
  474. package/dist/esm/calcite-notice.entry.js +4 -4
  475. package/dist/esm/calcite-option_2.entry.js +3 -3
  476. package/dist/esm/calcite-pagination.entry.js +3 -3
  477. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  478. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  479. package/dist/esm/calcite-pick-list.entry.js +2 -2
  480. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  481. package/dist/esm/calcite-radio-button.entry.js +3 -3
  482. package/dist/esm/calcite-rating.entry.js +5 -5
  483. package/dist/esm/calcite-scrim.entry.js +3 -3
  484. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  485. package/dist/esm/calcite-sheet.entry.js +3 -3
  486. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  487. package/dist/esm/calcite-shell-panel_14.entry.js +11 -11
  488. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  489. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  490. package/dist/esm/calcite-stepper.entry.js +3 -3
  491. package/dist/esm/calcite-switch.entry.js +3 -3
  492. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  493. package/dist/esm/calcite-table-row.entry.js +1 -1
  494. package/dist/esm/calcite-table.entry.js +3 -3
  495. package/dist/esm/calcite-text-area.entry.js +5 -5
  496. package/dist/esm/calcite-tile-group.entry.js +1 -1
  497. package/dist/esm/calcite-tile.entry.js +1 -1
  498. package/dist/esm/calcite-time-picker.entry.js +4 -4
  499. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  500. package/dist/esm/calcite-tip.entry.js +3 -3
  501. package/dist/esm/calcite-tooltip.entry.js +3 -3
  502. package/dist/esm/calcite-tree_2.entry.js +1 -1
  503. package/dist/esm/card-manager_3.entry.js +474 -54
  504. package/dist/esm/crowdsource-manager.entry.js +55 -21
  505. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  506. package/dist/esm/{cs-b01aecfc.js → cs-f9bfb6dd.js} +8 -8
  507. package/dist/esm/{da-87ac64be.js → da-0528de8d.js} +8 -8
  508. package/dist/esm/{date-7a1345c1.js → date-f0c83d13.js} +1 -1
  509. package/dist/esm/{de-at-2db1a5d5.js → de-at-c7c45014.js} +8 -8
  510. package/dist/esm/{de-ch-063c0a6b.js → de-ch-e9338f1b.js} +8 -8
  511. package/dist/esm/{de-0eb6c065.js → de-d149b983.js} +8 -8
  512. package/dist/esm/{dom-451ed293.js → dom-42a638f6.js} +1 -1
  513. package/dist/esm/{el-eb29e645.js → el-d86fff8e.js} +8 -8
  514. package/dist/esm/{en-au-00f884ad.js → en-au-e722c119.js} +8 -8
  515. package/dist/esm/{en-ca-1e7456d7.js → en-ca-8f38a3b8.js} +8 -8
  516. package/dist/esm/{en-gb-60a33692.js → en-gb-24dd064c.js} +8 -8
  517. package/dist/esm/{es-74f8b164.js → es-39a9e113.js} +8 -8
  518. package/dist/esm/{es-mx-2bfa704a.js → es-mx-fa0cbd42.js} +8 -8
  519. package/dist/esm/{et-b1a2d978.js → et-51eabe80.js} +8 -8
  520. package/dist/esm/feature-comments.entry.js +1 -1
  521. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  522. package/dist/esm/feature-list.entry.js +3 -3
  523. package/dist/esm/features-flow-item.entry.js +1 -1
  524. package/dist/esm/{fi-70441d5b.js → fi-64ca8666.js} +8 -8
  525. package/dist/esm/{floating-ui-4b1f5138.js → floating-ui-a14930d0.js} +1 -1
  526. package/dist/esm/{focusTrapComponent-b9709e71.js → focusTrapComponent-c1def619.js} +1 -1
  527. package/dist/esm/{form-fa4c471b.js → form-46367137.js} +1 -1
  528. package/dist/esm/{fr-ch-8faa2fcf.js → fr-ch-6fe6a6e6.js} +8 -8
  529. package/dist/esm/{fr-cea05ec9.js → fr-e20306bf.js} +8 -8
  530. package/dist/esm/{he-058ece46.js → he-32ec6cce.js} +8 -8
  531. package/dist/esm/{hi-163a268e.js → hi-da2b085c.js} +8 -8
  532. package/dist/esm/{hr-2b69b2ad.js → hr-5a52222a.js} +8 -8
  533. package/dist/esm/{hu-e46e0cb6.js → hu-d3bbacef.js} +8 -8
  534. package/dist/esm/{id-ebccdbbb.js → id-dcdac250.js} +8 -8
  535. package/dist/esm/instant-apps-app-guide.entry.js +102 -0
  536. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
  537. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  538. package/dist/esm/instant-apps-export-views.entry.js +1 -1
  539. package/dist/esm/instant-apps-export.entry.js +1 -1
  540. package/dist/esm/instant-apps-header.entry.js +1 -1
  541. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -3
  542. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
  543. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +2 -2
  544. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +7 -7
  545. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
  546. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  547. package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
  548. package/dist/esm/instant-apps-language-translator.entry.js +34 -14
  549. package/dist/esm/instant-apps-measurement.entry.js +1 -1
  550. package/dist/esm/instant-apps-popover.entry.js +1 -1
  551. package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
  552. package/dist/esm/instant-apps-sign-in.entry.js +1 -1
  553. package/dist/esm/instant-apps-splash.entry.js +1 -1
  554. package/dist/esm/instant-apps-time-filter.entry.js +59 -29
  555. package/dist/esm/{it-813be6d0.js → it-360f430f.js} +8 -8
  556. package/dist/esm/{it-ch-bc95119e.js → it-ch-0ec68776.js} +8 -8
  557. package/dist/esm/{ja-3488d28c.js → ja-a95cae4c.js} +8 -8
  558. package/dist/esm/{ko-54faa268.js → ko-f0edd78f.js} +8 -8
  559. package/dist/esm/{label-414f1003.js → label-f2ec1100.js} +1 -1
  560. package/dist/esm/layout-manager.entry.js +1 -1
  561. package/dist/esm/list-flow-item.entry.js +1 -1
  562. package/dist/esm/loader.js +1 -1
  563. package/dist/esm/{locale-337dc231.js → locale-a53a7bc6.js} +1 -1
  564. package/dist/esm/location-flow-item.entry.js +1 -1
  565. package/dist/esm/{lt-8c773940.js → lt-bff432da.js} +8 -8
  566. package/dist/esm/{lv-4882a326.js → lv-0c7edf32.js} +8 -8
  567. package/dist/esm/map-select-tools_3.entry.js +3 -3
  568. package/dist/esm/{mk-d045a827.js → mk-876446b8.js} +8 -8
  569. package/dist/esm/{nb-529fd6f8.js → nb-25537e87.js} +8 -8
  570. package/dist/esm/{nl-ebd398ac.js → nl-8be84da3.js} +8 -8
  571. package/dist/esm/{openCloseComponent-80c6ee4b.js → openCloseComponent-9d44719e.js} +1 -1
  572. package/dist/esm/pci-calculator.entry.js +1 -1
  573. package/dist/esm/{pl-4cd334ed.js → pl-8d4fe5a7.js} +8 -8
  574. package/dist/esm/{pt-br-29226fc3.js → pt-br-3015e62b.js} +8 -8
  575. package/dist/esm/{pt-be0c86a5.js → pt-dcc887b4.js} +8 -8
  576. package/dist/esm/public-notification.entry.js +1 -1
  577. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  578. package/dist/esm/{ro-6555f5dd.js → ro-b973c654.js} +8 -8
  579. package/dist/esm/{ru-67b5c59c.js → ru-59a7f10b.js} +8 -8
  580. package/dist/esm/share-item.entry.js +1 -1
  581. package/dist/esm/{shared-list-render-c8da5fde.js → shared-list-render-097ee366.js} +1 -1
  582. package/dist/esm/{sk-81f19081.js → sk-a00e5b97.js} +8 -8
  583. package/dist/esm/{sl-4b892d99.js → sl-55c8a748.js} +8 -8
  584. package/dist/esm/solution-configuration.entry.js +3 -3
  585. package/dist/esm/solution-contents_3.entry.js +3 -3
  586. package/dist/esm/solution-item-accordion.entry.js +1 -1
  587. package/dist/esm/solution-item-icon.entry.js +1 -1
  588. package/dist/esm/solutions-components.js +1 -1
  589. package/dist/esm/spatial-ref.entry.js +1 -1
  590. package/dist/esm/{sr-6cb6f797.js → sr-e4fc3293.js} +8 -8
  591. package/dist/esm/{sv-aacab364.js → sv-f0782d2a.js} +8 -8
  592. package/dist/esm/{t9n-7d4462c0.js → t9n-b33c486a.js} +1 -1
  593. package/dist/esm/{th-6b423678.js → th-d2abb499.js} +8 -8
  594. package/dist/esm/{time-b0bba3f9.js → time-f99aceff.js} +1 -1
  595. package/dist/esm/{tr-0e2b854e.js → tr-512413e1.js} +8 -8
  596. package/dist/esm/{uk-af0a30cc.js → uk-79fe44f1.js} +8 -8
  597. package/dist/esm/{utils-6493bff2.js → utils-6f13e31e.js} +22 -1
  598. package/dist/esm/{utils-37bc2853.js → utils-d67a6d71.js} +1 -1
  599. package/dist/esm/{vi-62071c6f.js → vi-53b51e7a.js} +8 -8
  600. package/dist/esm/{zh-cn-8f53db2f.js → zh-cn-7d19a53a.js} +8 -8
  601. package/dist/esm/{zh-hk-a8c68b9c.js → zh-hk-4fb6c3eb.js} +8 -8
  602. package/dist/esm/{zh-tw-3006115d.js → zh-tw-6a5d2c2b.js} +8 -8
  603. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +75 -0
  604. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-language-translator/instant-apps-language-translator.css +16 -0
  605. package/dist/solutions-components/assets/t9n/card-manager/resources.json +1 -0
  606. package/dist/solutions-components/assets/t9n/card-manager/resources_en.json +2 -1
  607. package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +5 -0
  608. package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +5 -0
  609. package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +5 -0
  610. package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +5 -0
  611. package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +5 -0
  612. package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +5 -0
  613. package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +5 -0
  614. package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +5 -0
  615. package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +5 -0
  616. package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +5 -0
  617. package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +5 -0
  618. package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +5 -0
  619. package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +5 -0
  620. package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +5 -0
  621. package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +5 -0
  622. package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +5 -0
  623. package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +5 -0
  624. package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +5 -0
  625. package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +5 -0
  626. package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +5 -0
  627. package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +5 -0
  628. package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +5 -0
  629. package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +5 -0
  630. package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +5 -0
  631. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +5 -0
  632. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +5 -0
  633. package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +5 -0
  634. package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +5 -0
  635. package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +5 -0
  636. package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +5 -0
  637. package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +5 -0
  638. package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +5 -0
  639. package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +5 -0
  640. package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +5 -0
  641. package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +5 -0
  642. package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +5 -0
  643. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +5 -0
  644. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +5 -0
  645. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +5 -0
  646. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ar.json +3 -0
  647. package/dist/solutions-components/assets/t9n/create-related-feature/resources_bg.json +3 -0
  648. package/dist/solutions-components/assets/t9n/create-related-feature/resources_bs.json +3 -0
  649. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ca.json +3 -0
  650. package/dist/solutions-components/assets/t9n/create-related-feature/resources_cs.json +3 -0
  651. package/dist/solutions-components/assets/t9n/create-related-feature/resources_da.json +3 -0
  652. package/dist/solutions-components/assets/t9n/create-related-feature/resources_de.json +3 -0
  653. package/dist/solutions-components/assets/t9n/create-related-feature/resources_el.json +3 -0
  654. package/dist/solutions-components/assets/t9n/create-related-feature/resources_es.json +3 -0
  655. package/dist/solutions-components/assets/t9n/create-related-feature/resources_et.json +3 -0
  656. package/dist/solutions-components/assets/t9n/create-related-feature/resources_fi.json +3 -0
  657. package/dist/solutions-components/assets/t9n/create-related-feature/resources_fr.json +3 -0
  658. package/dist/solutions-components/assets/t9n/create-related-feature/resources_he.json +3 -0
  659. package/dist/solutions-components/assets/t9n/create-related-feature/resources_hr.json +3 -0
  660. package/dist/solutions-components/assets/t9n/create-related-feature/resources_hu.json +3 -0
  661. package/dist/solutions-components/assets/t9n/create-related-feature/resources_id.json +3 -0
  662. package/dist/solutions-components/assets/t9n/create-related-feature/resources_it.json +3 -0
  663. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ja.json +3 -0
  664. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ko.json +3 -0
  665. package/dist/solutions-components/assets/t9n/create-related-feature/resources_lt.json +3 -0
  666. package/dist/solutions-components/assets/t9n/create-related-feature/resources_lv.json +3 -0
  667. package/dist/solutions-components/assets/t9n/create-related-feature/resources_nb.json +3 -0
  668. package/dist/solutions-components/assets/t9n/create-related-feature/resources_nl.json +3 -0
  669. package/dist/solutions-components/assets/t9n/create-related-feature/resources_pl.json +3 -0
  670. package/dist/solutions-components/assets/t9n/create-related-feature/resources_pt-BR.json +3 -0
  671. package/dist/solutions-components/assets/t9n/create-related-feature/resources_pt-PT.json +3 -0
  672. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ro.json +3 -0
  673. package/dist/solutions-components/assets/t9n/create-related-feature/resources_ru.json +3 -0
  674. package/dist/solutions-components/assets/t9n/create-related-feature/resources_sk.json +3 -0
  675. package/dist/solutions-components/assets/t9n/create-related-feature/resources_sl.json +3 -0
  676. package/dist/solutions-components/assets/t9n/create-related-feature/resources_sr.json +3 -0
  677. package/dist/solutions-components/assets/t9n/create-related-feature/resources_sv.json +3 -0
  678. package/dist/solutions-components/assets/t9n/create-related-feature/resources_th.json +3 -0
  679. package/dist/solutions-components/assets/t9n/create-related-feature/resources_tr.json +3 -0
  680. package/dist/solutions-components/assets/t9n/create-related-feature/resources_uk.json +3 -0
  681. package/dist/solutions-components/assets/t9n/create-related-feature/resources_vi.json +3 -0
  682. package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-CN.json +3 -0
  683. package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-HK.json +3 -0
  684. package/dist/solutions-components/assets/t9n/create-related-feature/resources_zh-TW.json +3 -0
  685. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +0 -1
  686. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +0 -1
  687. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +0 -1
  688. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +0 -1
  689. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +0 -1
  690. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +0 -1
  691. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +0 -1
  692. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +0 -1
  693. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +0 -1
  694. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +0 -1
  695. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +0 -1
  696. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +0 -1
  697. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +0 -1
  698. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +0 -1
  699. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +0 -1
  700. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +0 -1
  701. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +0 -1
  702. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +0 -1
  703. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +0 -1
  704. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +0 -1
  705. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +0 -1
  706. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +0 -1
  707. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +0 -1
  708. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +0 -1
  709. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +0 -1
  710. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +0 -1
  711. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +0 -1
  712. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +0 -1
  713. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +0 -1
  714. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +0 -1
  715. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +0 -1
  716. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +0 -1
  717. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +0 -1
  718. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +0 -1
  719. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +0 -1
  720. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +0 -1
  721. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +0 -1
  722. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +0 -1
  723. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +0 -1
  724. package/dist/solutions-components/assets/t9n/delete-button/resources_ar.json +6 -6
  725. package/dist/solutions-components/assets/t9n/delete-button/resources_bg.json +6 -6
  726. package/dist/solutions-components/assets/t9n/delete-button/resources_bs.json +6 -6
  727. package/dist/solutions-components/assets/t9n/delete-button/resources_ca.json +6 -6
  728. package/dist/solutions-components/assets/t9n/delete-button/resources_cs.json +6 -6
  729. package/dist/solutions-components/assets/t9n/delete-button/resources_da.json +6 -6
  730. package/dist/solutions-components/assets/t9n/delete-button/resources_de.json +6 -6
  731. package/dist/solutions-components/assets/t9n/delete-button/resources_el.json +6 -6
  732. package/dist/solutions-components/assets/t9n/delete-button/resources_es.json +6 -6
  733. package/dist/solutions-components/assets/t9n/delete-button/resources_et.json +6 -6
  734. package/dist/solutions-components/assets/t9n/delete-button/resources_fi.json +6 -6
  735. package/dist/solutions-components/assets/t9n/delete-button/resources_fr.json +6 -6
  736. package/dist/solutions-components/assets/t9n/delete-button/resources_he.json +6 -6
  737. package/dist/solutions-components/assets/t9n/delete-button/resources_hr.json +6 -6
  738. package/dist/solutions-components/assets/t9n/delete-button/resources_hu.json +6 -6
  739. package/dist/solutions-components/assets/t9n/delete-button/resources_id.json +6 -6
  740. package/dist/solutions-components/assets/t9n/delete-button/resources_it.json +6 -6
  741. package/dist/solutions-components/assets/t9n/delete-button/resources_ja.json +6 -6
  742. package/dist/solutions-components/assets/t9n/delete-button/resources_ko.json +6 -6
  743. package/dist/solutions-components/assets/t9n/delete-button/resources_lt.json +6 -6
  744. package/dist/solutions-components/assets/t9n/delete-button/resources_lv.json +6 -6
  745. package/dist/solutions-components/assets/t9n/delete-button/resources_nb.json +6 -6
  746. package/dist/solutions-components/assets/t9n/delete-button/resources_nl.json +6 -6
  747. package/dist/solutions-components/assets/t9n/delete-button/resources_pl.json +6 -6
  748. package/dist/solutions-components/assets/t9n/delete-button/resources_pt-BR.json +6 -6
  749. package/dist/solutions-components/assets/t9n/delete-button/resources_pt-PT.json +6 -6
  750. package/dist/solutions-components/assets/t9n/delete-button/resources_ro.json +6 -6
  751. package/dist/solutions-components/assets/t9n/delete-button/resources_ru.json +6 -6
  752. package/dist/solutions-components/assets/t9n/delete-button/resources_sk.json +6 -6
  753. package/dist/solutions-components/assets/t9n/delete-button/resources_sl.json +6 -6
  754. package/dist/solutions-components/assets/t9n/delete-button/resources_sr.json +6 -6
  755. package/dist/solutions-components/assets/t9n/delete-button/resources_sv.json +6 -6
  756. package/dist/solutions-components/assets/t9n/delete-button/resources_th.json +6 -6
  757. package/dist/solutions-components/assets/t9n/delete-button/resources_tr.json +6 -6
  758. package/dist/solutions-components/assets/t9n/delete-button/resources_uk.json +6 -6
  759. package/dist/solutions-components/assets/t9n/delete-button/resources_vi.json +6 -6
  760. package/dist/solutions-components/assets/t9n/delete-button/resources_zh-CN.json +6 -6
  761. package/dist/solutions-components/assets/t9n/delete-button/resources_zh-HK.json +6 -6
  762. package/dist/solutions-components/assets/t9n/delete-button/resources_zh-TW.json +6 -6
  763. package/dist/solutions-components/assets/t9n/edit-card/resources_ar.json +1 -1
  764. package/dist/solutions-components/assets/t9n/edit-card/resources_bg.json +1 -1
  765. package/dist/solutions-components/assets/t9n/edit-card/resources_bs.json +1 -1
  766. package/dist/solutions-components/assets/t9n/edit-card/resources_ca.json +1 -1
  767. package/dist/solutions-components/assets/t9n/edit-card/resources_cs.json +1 -1
  768. package/dist/solutions-components/assets/t9n/edit-card/resources_da.json +1 -1
  769. package/dist/solutions-components/assets/t9n/edit-card/resources_de.json +1 -1
  770. package/dist/solutions-components/assets/t9n/edit-card/resources_el.json +1 -1
  771. package/dist/solutions-components/assets/t9n/edit-card/resources_es.json +1 -1
  772. package/dist/solutions-components/assets/t9n/edit-card/resources_et.json +1 -1
  773. package/dist/solutions-components/assets/t9n/edit-card/resources_fi.json +1 -1
  774. package/dist/solutions-components/assets/t9n/edit-card/resources_fr.json +1 -1
  775. package/dist/solutions-components/assets/t9n/edit-card/resources_he.json +1 -1
  776. package/dist/solutions-components/assets/t9n/edit-card/resources_hr.json +1 -1
  777. package/dist/solutions-components/assets/t9n/edit-card/resources_hu.json +1 -1
  778. package/dist/solutions-components/assets/t9n/edit-card/resources_id.json +1 -1
  779. package/dist/solutions-components/assets/t9n/edit-card/resources_it.json +1 -1
  780. package/dist/solutions-components/assets/t9n/edit-card/resources_ja.json +1 -1
  781. package/dist/solutions-components/assets/t9n/edit-card/resources_ko.json +1 -1
  782. package/dist/solutions-components/assets/t9n/edit-card/resources_lt.json +1 -1
  783. package/dist/solutions-components/assets/t9n/edit-card/resources_lv.json +1 -1
  784. package/dist/solutions-components/assets/t9n/edit-card/resources_nb.json +1 -1
  785. package/dist/solutions-components/assets/t9n/edit-card/resources_nl.json +1 -1
  786. package/dist/solutions-components/assets/t9n/edit-card/resources_pl.json +1 -1
  787. package/dist/solutions-components/assets/t9n/edit-card/resources_pt-BR.json +1 -1
  788. package/dist/solutions-components/assets/t9n/edit-card/resources_pt-PT.json +1 -1
  789. package/dist/solutions-components/assets/t9n/edit-card/resources_ro.json +1 -1
  790. package/dist/solutions-components/assets/t9n/edit-card/resources_ru.json +1 -1
  791. package/dist/solutions-components/assets/t9n/edit-card/resources_sk.json +1 -1
  792. package/dist/solutions-components/assets/t9n/edit-card/resources_sl.json +1 -1
  793. package/dist/solutions-components/assets/t9n/edit-card/resources_sr.json +1 -1
  794. package/dist/solutions-components/assets/t9n/edit-card/resources_sv.json +1 -1
  795. package/dist/solutions-components/assets/t9n/edit-card/resources_th.json +1 -1
  796. package/dist/solutions-components/assets/t9n/edit-card/resources_tr.json +1 -1
  797. package/dist/solutions-components/assets/t9n/edit-card/resources_uk.json +1 -1
  798. package/dist/solutions-components/assets/t9n/edit-card/resources_vi.json +1 -1
  799. package/dist/solutions-components/assets/t9n/edit-card/resources_zh-CN.json +1 -1
  800. package/dist/solutions-components/assets/t9n/edit-card/resources_zh-HK.json +1 -1
  801. package/dist/solutions-components/assets/t9n/edit-card/resources_zh-TW.json +1 -1
  802. package/dist/solutions-components/assets/t9n/info-card/resources_ar.json +8 -8
  803. package/dist/solutions-components/assets/t9n/info-card/resources_bg.json +8 -8
  804. package/dist/solutions-components/assets/t9n/info-card/resources_bs.json +8 -8
  805. package/dist/solutions-components/assets/t9n/info-card/resources_ca.json +8 -8
  806. package/dist/solutions-components/assets/t9n/info-card/resources_cs.json +8 -8
  807. package/dist/solutions-components/assets/t9n/info-card/resources_da.json +8 -8
  808. package/dist/solutions-components/assets/t9n/info-card/resources_de.json +8 -8
  809. package/dist/solutions-components/assets/t9n/info-card/resources_el.json +8 -8
  810. package/dist/solutions-components/assets/t9n/info-card/resources_es.json +8 -8
  811. package/dist/solutions-components/assets/t9n/info-card/resources_et.json +8 -8
  812. package/dist/solutions-components/assets/t9n/info-card/resources_fi.json +8 -8
  813. package/dist/solutions-components/assets/t9n/info-card/resources_fr.json +8 -8
  814. package/dist/solutions-components/assets/t9n/info-card/resources_he.json +8 -8
  815. package/dist/solutions-components/assets/t9n/info-card/resources_hr.json +8 -8
  816. package/dist/solutions-components/assets/t9n/info-card/resources_hu.json +8 -8
  817. package/dist/solutions-components/assets/t9n/info-card/resources_id.json +8 -8
  818. package/dist/solutions-components/assets/t9n/info-card/resources_it.json +8 -8
  819. package/dist/solutions-components/assets/t9n/info-card/resources_ja.json +8 -8
  820. package/dist/solutions-components/assets/t9n/info-card/resources_ko.json +8 -8
  821. package/dist/solutions-components/assets/t9n/info-card/resources_lt.json +8 -8
  822. package/dist/solutions-components/assets/t9n/info-card/resources_lv.json +8 -8
  823. package/dist/solutions-components/assets/t9n/info-card/resources_nb.json +8 -8
  824. package/dist/solutions-components/assets/t9n/info-card/resources_nl.json +8 -8
  825. package/dist/solutions-components/assets/t9n/info-card/resources_pl.json +8 -8
  826. package/dist/solutions-components/assets/t9n/info-card/resources_pt-BR.json +8 -8
  827. package/dist/solutions-components/assets/t9n/info-card/resources_pt-PT.json +8 -8
  828. package/dist/solutions-components/assets/t9n/info-card/resources_ro.json +8 -8
  829. package/dist/solutions-components/assets/t9n/info-card/resources_ru.json +8 -8
  830. package/dist/solutions-components/assets/t9n/info-card/resources_sk.json +8 -8
  831. package/dist/solutions-components/assets/t9n/info-card/resources_sl.json +8 -8
  832. package/dist/solutions-components/assets/t9n/info-card/resources_sr.json +8 -8
  833. package/dist/solutions-components/assets/t9n/info-card/resources_sv.json +8 -8
  834. package/dist/solutions-components/assets/t9n/info-card/resources_th.json +8 -8
  835. package/dist/solutions-components/assets/t9n/info-card/resources_tr.json +8 -8
  836. package/dist/solutions-components/assets/t9n/info-card/resources_uk.json +8 -8
  837. package/dist/solutions-components/assets/t9n/info-card/resources_vi.json +8 -8
  838. package/dist/solutions-components/assets/t9n/info-card/resources_zh-CN.json +8 -8
  839. package/dist/solutions-components/assets/t9n/info-card/resources_zh-HK.json +8 -8
  840. package/dist/solutions-components/assets/t9n/info-card/resources_zh-TW.json +8 -8
  841. package/dist/solutions-components/assets/t9n/layer-table/resources.json +1 -0
  842. package/dist/solutions-components/assets/t9n/layer-table/resources_en.json +1 -0
  843. package/dist/solutions-components/assets/t9n/map-card/resources.json +2 -1
  844. package/dist/solutions-components/assets/t9n/map-card/resources_en.json +2 -1
  845. package/dist/solutions-components/{p-bb9492ed.js → p-022d51db.js} +1 -1
  846. package/dist/solutions-components/{p-beba6703.js → p-03f3cf77.js} +1 -1
  847. package/dist/solutions-components/{p-3955461a.js → p-03ffbb1b.js} +1 -1
  848. package/dist/solutions-components/{p-db2c82ad.js → p-0a1a9ff1.js} +1 -1
  849. package/dist/solutions-components/{p-af3e49d8.entry.js → p-0a311862.entry.js} +1 -1
  850. package/dist/solutions-components/p-0a64be62.js +6 -0
  851. package/dist/solutions-components/{p-a0ef9cee.js → p-0ded20f0.js} +1 -1
  852. package/dist/solutions-components/{p-f88c3477.entry.js → p-100bf9eb.entry.js} +1 -1
  853. package/dist/solutions-components/{p-abc30e04.js → p-12be6545.js} +1 -1
  854. package/dist/solutions-components/{p-6384a9a5.entry.js → p-1692858b.entry.js} +1 -1
  855. package/dist/solutions-components/{p-4182a628.js → p-174aa4da.js} +3 -3
  856. package/dist/solutions-components/{p-981afe9e.entry.js → p-1826154b.entry.js} +1 -1
  857. package/dist/solutions-components/{p-593a6f17.js → p-1a047db6.js} +1 -1
  858. package/dist/solutions-components/{p-d1371897.js → p-1df2d94d.js} +1 -1
  859. package/dist/solutions-components/{p-8badcaf5.entry.js → p-216ae423.entry.js} +1 -1
  860. package/dist/solutions-components/{p-7586e1de.entry.js → p-219f0273.entry.js} +1 -1
  861. package/dist/solutions-components/{p-ae8ed06a.entry.js → p-283e344a.entry.js} +1 -1
  862. package/dist/solutions-components/{p-7f090468.entry.js → p-2a059548.entry.js} +1 -1
  863. package/dist/solutions-components/{p-118e1989.entry.js → p-2bb9b365.entry.js} +1 -1
  864. package/dist/solutions-components/{p-fd730974.js → p-2caf1f94.js} +2 -2
  865. package/dist/solutions-components/{p-92de7cd3.entry.js → p-2cb47eff.entry.js} +2 -2
  866. package/dist/solutions-components/{p-ac7868a6.entry.js → p-2cc624c3.entry.js} +1 -1
  867. package/dist/solutions-components/{p-e5736093.entry.js → p-2d2b06db.entry.js} +1 -1
  868. package/dist/solutions-components/{p-4d97016e.js → p-2d2dcf8a.js} +1 -1
  869. package/dist/solutions-components/{p-472be784.js → p-2d5e428d.js} +1 -1
  870. package/dist/solutions-components/{p-89ddc916.js → p-2e7d005f.js} +1 -1
  871. package/dist/solutions-components/{p-ef360459.entry.js → p-3016bf77.entry.js} +1 -1
  872. package/dist/solutions-components/p-31524836.entry.js +6 -0
  873. package/dist/solutions-components/{p-a2d4c97e.js → p-3244e59a.js} +2 -2
  874. package/dist/solutions-components/p-3305a61f.entry.js +6 -0
  875. package/dist/solutions-components/{p-54fa7a94.js → p-365169c2.js} +1 -1
  876. package/dist/solutions-components/{p-e013e797.js → p-372e4640.js} +1 -1
  877. package/dist/solutions-components/p-3d6f8c9e.entry.js +29 -0
  878. package/dist/solutions-components/{p-458a3f01.entry.js → p-3de85f54.entry.js} +1 -1
  879. package/dist/solutions-components/{p-030e5077.entry.js → p-3e3b7172.entry.js} +1 -1
  880. package/dist/solutions-components/{p-2756e4ac.entry.js → p-42710186.entry.js} +1 -1
  881. package/dist/solutions-components/{p-16d721ef.entry.js → p-44270ade.entry.js} +1 -1
  882. package/dist/solutions-components/{p-d6c50190.entry.js → p-47398e76.entry.js} +1 -1
  883. package/dist/solutions-components/{p-20393dcf.entry.js → p-4881885b.entry.js} +3 -3
  884. package/dist/solutions-components/{p-5a76a4c8.entry.js → p-496b7a1f.entry.js} +1 -1
  885. package/dist/solutions-components/{p-89f14b8a.entry.js → p-4aafcac7.entry.js} +1 -1
  886. package/dist/solutions-components/{p-5d4efa42.entry.js → p-4cfe3d80.entry.js} +1 -1
  887. package/dist/solutions-components/{p-19697807.entry.js → p-4feaf7db.entry.js} +1 -1
  888. package/dist/solutions-components/{p-c8325ead.entry.js → p-50323300.entry.js} +1 -1
  889. package/dist/solutions-components/{p-f4e30ab2.js → p-50ab7903.js} +1 -1
  890. package/dist/solutions-components/{p-960a4993.entry.js → p-50c2d3e5.entry.js} +1 -1
  891. package/dist/solutions-components/{p-33fe9a28.js → p-50e2a33b.js} +1 -1
  892. package/dist/solutions-components/{p-6e0b76ce.js → p-51abfcb7.js} +1 -1
  893. package/dist/solutions-components/{p-1a7c4e9a.js → p-524a996f.js} +1 -1
  894. package/dist/solutions-components/p-52dad11d.entry.js +6 -0
  895. package/dist/solutions-components/{p-00cfce5b.entry.js → p-54879c84.entry.js} +1 -1
  896. package/dist/solutions-components/{p-8ae73529.entry.js → p-5550f101.entry.js} +2 -2
  897. package/dist/solutions-components/{p-5d8a5e53.entry.js → p-565bc712.entry.js} +2 -2
  898. package/dist/solutions-components/{p-040b6e44.entry.js → p-5714f5ca.entry.js} +1 -1
  899. package/dist/solutions-components/{p-67392838.entry.js → p-57be85fb.entry.js} +1 -1
  900. package/dist/solutions-components/{p-48c58b28.js → p-58d8ee47.js} +1 -1
  901. package/dist/solutions-components/{p-71c0a413.js → p-5959580d.js} +1 -1
  902. package/dist/solutions-components/{p-acf135cc.js → p-59695ccc.js} +1 -1
  903. package/dist/solutions-components/{p-116927af.entry.js → p-59b3e946.entry.js} +3 -3
  904. package/dist/solutions-components/{p-c58ec2d0.js → p-5ba9df82.js} +3 -3
  905. package/dist/solutions-components/{p-78c438c0.entry.js → p-5d398871.entry.js} +1 -1
  906. package/dist/solutions-components/{p-4336e44a.js → p-62dadb51.js} +1 -1
  907. package/dist/solutions-components/{p-981ab7fc.entry.js → p-62ed6a7a.entry.js} +1 -1
  908. package/dist/solutions-components/{p-ea119eee.js → p-63f9004a.js} +1 -1
  909. package/dist/solutions-components/{p-b955a19b.entry.js → p-64906bb5.entry.js} +2 -2
  910. package/dist/solutions-components/{p-f7680693.js → p-65fe42ef.js} +1 -1
  911. package/dist/solutions-components/{p-441f1992.js → p-66cee72b.js} +1 -1
  912. package/dist/solutions-components/{p-f14d11f1.js → p-6b21efce.js} +1 -1
  913. package/dist/solutions-components/{p-a8d4a522.entry.js → p-6cf1225a.entry.js} +1 -1
  914. package/dist/solutions-components/{p-a9f65057.entry.js → p-6d4db88b.entry.js} +8 -2
  915. package/dist/solutions-components/{p-c3782a7e.entry.js → p-6d894d47.entry.js} +1 -1
  916. package/dist/solutions-components/{p-26a3ba5e.entry.js → p-6e0439fa.entry.js} +1 -1
  917. package/dist/solutions-components/{p-16261018.js → p-6e118057.js} +2 -2
  918. package/dist/solutions-components/{p-0bd7752a.entry.js → p-6f594492.entry.js} +2 -2
  919. package/dist/solutions-components/{p-30903105.entry.js → p-70f2898c.entry.js} +1 -1
  920. package/dist/solutions-components/p-72bce122.entry.js +6 -0
  921. package/dist/solutions-components/{p-ddc97e93.entry.js → p-72ee63b0.entry.js} +1 -1
  922. package/dist/solutions-components/{p-24192cfe.js → p-754a5334.js} +1 -1
  923. package/dist/solutions-components/{p-fbf86656.entry.js → p-76efd680.entry.js} +1 -1
  924. package/dist/solutions-components/{p-1b0fe5b1.entry.js → p-77052872.entry.js} +1 -1
  925. package/dist/solutions-components/{p-5c0d42e9.entry.js → p-7758a533.entry.js} +1 -1
  926. package/dist/solutions-components/{p-1c5f17cb.entry.js → p-776995b1.entry.js} +1 -1
  927. package/dist/solutions-components/{p-c1242d4b.js → p-7a820f38.js} +1 -1
  928. package/dist/solutions-components/{p-a68f4775.entry.js → p-7b122a6e.entry.js} +1 -1
  929. package/dist/solutions-components/{p-3fb350ea.js → p-7e762fa7.js} +1 -1
  930. package/dist/solutions-components/{p-004d601f.entry.js → p-7f147e8b.entry.js} +1 -1
  931. package/dist/solutions-components/{p-e8aa44e2.entry.js → p-81512d73.entry.js} +1 -1
  932. package/dist/solutions-components/{p-41744516.entry.js → p-82185ebf.entry.js} +1 -1
  933. package/dist/solutions-components/{p-9384cc65.entry.js → p-8267d344.entry.js} +1 -1
  934. package/dist/solutions-components/{p-a16449b2.entry.js → p-827037ce.entry.js} +1 -1
  935. package/dist/solutions-components/{p-8419b5a1.entry.js → p-88c6ece3.entry.js} +1 -1
  936. package/dist/solutions-components/{p-cba777d2.js → p-8a683cdc.js} +1 -1
  937. package/dist/solutions-components/{p-16a3f7ca.entry.js → p-8be24ce9.entry.js} +1 -1
  938. package/dist/solutions-components/p-8d0f6824.entry.js +6 -0
  939. package/dist/solutions-components/{p-42552409.js → p-8d453a3a.js} +1 -1
  940. package/dist/solutions-components/{p-886fbbe3.entry.js → p-8ef003ec.entry.js} +1 -1
  941. package/dist/solutions-components/p-8fb651e5.entry.js +6 -0
  942. package/dist/solutions-components/{p-4a35785b.js → p-92008b90.js} +1 -1
  943. package/dist/solutions-components/{p-203b4081.js → p-94397114.js} +1 -1
  944. package/dist/solutions-components/{p-50203a2d.entry.js → p-94805d7f.entry.js} +1 -1
  945. package/dist/solutions-components/p-94c518ff.entry.js +6 -0
  946. package/dist/solutions-components/{p-c5520bba.js → p-97aa6766.js} +1 -1
  947. package/dist/solutions-components/{p-2afb3a2b.js → p-984ce9da.js} +1 -1
  948. package/dist/solutions-components/p-9850998d.entry.js +6 -0
  949. package/dist/solutions-components/{p-96919110.js → p-99e6cb74.js} +1 -1
  950. package/dist/solutions-components/{p-075a3c9d.entry.js → p-9d12b3f1.entry.js} +1 -1
  951. package/dist/solutions-components/{p-ff96d7ee.entry.js → p-9ee72dba.entry.js} +3 -3
  952. package/dist/solutions-components/{p-86ca6cfe.entry.js → p-9f3aebd0.entry.js} +1 -1
  953. package/dist/solutions-components/{p-9c6f2672.entry.js → p-a095dadb.entry.js} +3 -3
  954. package/dist/solutions-components/{p-42cd083f.entry.js → p-a0a77f45.entry.js} +2 -2
  955. package/dist/solutions-components/p-a1093fee.entry.js +6 -0
  956. package/dist/solutions-components/{p-bc86c87d.entry.js → p-a2a2c6a2.entry.js} +2 -2
  957. package/dist/solutions-components/{p-b9eefee6.entry.js → p-a2dbc38b.entry.js} +2 -2
  958. package/dist/solutions-components/{p-f4d6771a.js → p-a4255b97.js} +1 -1
  959. package/dist/solutions-components/{p-6518727d.js → p-a4e73041.js} +1 -1
  960. package/dist/solutions-components/{p-6e3f1d71.js → p-a5fc6ab7.js} +1 -1
  961. package/dist/solutions-components/{p-25ee25ea.entry.js → p-a60a2c8b.entry.js} +2 -2
  962. package/dist/solutions-components/{p-254f6e23.entry.js → p-a6a0df5c.entry.js} +1 -1
  963. package/dist/solutions-components/p-a7395caf.js +6 -0
  964. package/dist/solutions-components/{p-8eacc640.js → p-a7761371.js} +1 -1
  965. package/dist/solutions-components/{p-bdc425fc.js → p-a8b70e9a.js} +1 -1
  966. package/dist/solutions-components/{p-728ec094.entry.js → p-a8d83bc3.entry.js} +1 -1
  967. package/dist/solutions-components/p-aa36f70e.entry.js +6 -0
  968. package/dist/solutions-components/p-abd68931.entry.js +6 -0
  969. package/dist/solutions-components/{p-57b673e2.js → p-ac92679c.js} +1 -1
  970. package/dist/solutions-components/p-ad1c27ef.entry.js +6 -0
  971. package/dist/solutions-components/{p-dbcfdc6d.entry.js → p-ad441ffa.entry.js} +1 -1
  972. package/dist/solutions-components/{p-01510268.entry.js → p-add869b6.entry.js} +1 -1
  973. package/dist/solutions-components/{p-9232245b.entry.js → p-b310402f.entry.js} +1 -1
  974. package/dist/solutions-components/{p-996daf05.entry.js → p-b4d708cd.entry.js} +1 -1
  975. package/dist/solutions-components/{p-6f39a13f.js → p-b7e63ac2.js} +1 -1
  976. package/dist/solutions-components/{p-c26ac7d9.entry.js → p-b9b2f7a9.entry.js} +1 -1
  977. package/dist/solutions-components/{p-2fafe489.entry.js → p-bb040eab.entry.js} +1 -1
  978. package/dist/solutions-components/{p-c5d26e3a.js → p-bcc2d4ff.js} +1 -1
  979. package/dist/solutions-components/{p-8846430d.entry.js → p-bcce9d28.entry.js} +3 -3
  980. package/dist/solutions-components/{p-39e9ae5c.entry.js → p-c13774d5.entry.js} +1 -1
  981. package/dist/solutions-components/{p-57025491.entry.js → p-c346ca43.entry.js} +1 -1
  982. package/dist/solutions-components/{p-b6b4c707.entry.js → p-c60c5991.entry.js} +1 -1
  983. package/dist/solutions-components/{p-ec59efb8.js → p-c6ef8cca.js} +1 -1
  984. package/dist/solutions-components/{p-7b63f249.entry.js → p-c718930a.entry.js} +1 -1
  985. package/dist/solutions-components/{p-d8a54947.js → p-c94b0e1a.js} +1 -1
  986. package/dist/solutions-components/{p-109cabd8.entry.js → p-c976ac3b.entry.js} +2 -2
  987. package/dist/solutions-components/{p-e5ec69a4.js → p-cba6953c.js} +1 -1
  988. package/dist/solutions-components/{p-976ad17d.entry.js → p-d00ca970.entry.js} +1 -1
  989. package/dist/solutions-components/p-d2033cfa.entry.js +6 -0
  990. package/dist/solutions-components/{p-4993c7b1.js → p-d2ee8b82.js} +1 -1
  991. package/dist/solutions-components/{p-228c3bf3.entry.js → p-d4ab82e3.entry.js} +1 -1
  992. package/dist/solutions-components/{p-8f840208.entry.js → p-d7711a84.entry.js} +1 -1
  993. package/dist/solutions-components/{p-b7a49673.entry.js → p-d7871f0d.entry.js} +1 -1
  994. package/dist/solutions-components/{p-5cef36d6.entry.js → p-d9b8b4e2.entry.js} +1 -1
  995. package/dist/solutions-components/{p-1794a1aa.entry.js → p-dc264663.entry.js} +1 -1
  996. package/dist/solutions-components/{p-2ace1fe7.entry.js → p-dcaae1e9.entry.js} +2 -2
  997. package/dist/solutions-components/{p-7f31be6a.js → p-dcebc541.js} +1 -1
  998. package/dist/solutions-components/{p-faf7740b.entry.js → p-de3719f2.entry.js} +1 -1
  999. package/dist/solutions-components/{p-32cf5a71.entry.js → p-e068dfb9.entry.js} +1 -1
  1000. package/dist/solutions-components/{p-1cfc581f.js → p-e0b65115.js} +1 -1
  1001. package/dist/solutions-components/p-e0f10596.entry.js +6 -0
  1002. package/dist/solutions-components/{p-9901e971.js → p-e0fd4006.js} +1 -1
  1003. package/dist/solutions-components/{p-bd3c130b.entry.js → p-e26cf5f5.entry.js} +1 -1
  1004. package/dist/solutions-components/{p-e3bb02cc.js → p-e6798e38.js} +1 -1
  1005. package/dist/solutions-components/{p-546a2802.js → p-ea8d2558.js} +1 -1
  1006. package/dist/solutions-components/{p-d726e895.js → p-ef187f1d.js} +1 -1
  1007. package/dist/solutions-components/{p-b4d92441.entry.js → p-efca5cea.entry.js} +1 -1
  1008. package/dist/solutions-components/{p-5fe92f6e.entry.js → p-f359c162.entry.js} +2 -2
  1009. package/dist/solutions-components/p-f3e3a4d5.entry.js +6 -0
  1010. package/dist/solutions-components/{p-ab8f4820.entry.js → p-f4360468.entry.js} +2 -2
  1011. package/dist/solutions-components/{p-35f33a32.js → p-f4d7f757.js} +1 -1
  1012. package/dist/solutions-components/p-f6eeac1b.entry.js +17 -0
  1013. package/dist/solutions-components/{p-2b212cd0.entry.js → p-f72fa647.entry.js} +1 -1
  1014. package/dist/solutions-components/{p-328fbcb5.js → p-f7e45464.js} +1 -1
  1015. package/dist/solutions-components/{p-4f4f00a9.js → p-f7ffcd95.js} +1 -1
  1016. package/dist/solutions-components/{p-30b555dc.entry.js → p-fa7c50f8.entry.js} +1 -1
  1017. package/dist/solutions-components/{p-fb95ec69.entry.js → p-fd9fb1ba.entry.js} +1 -1
  1018. package/dist/solutions-components/{p-9957c7b8.entry.js → p-fdb201ff.entry.js} +1 -1
  1019. package/dist/solutions-components/{p-b3b042df.js → p-fe0add26.js} +1 -1
  1020. package/dist/solutions-components/{p-3f6d5f14.entry.js → p-ff105078.entry.js} +1 -1
  1021. package/dist/solutions-components/{p-451b483d.entry.js → p-ff639390.entry.js} +1 -1
  1022. package/dist/solutions-components/solutions-components.esm.js +1 -1
  1023. package/dist/types/components/card-manager/card-manager.d.ts +5 -1
  1024. package/dist/types/components/create-feature/create-feature.d.ts +8 -6
  1025. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +20 -0
  1026. package/dist/types/components/layer-table/layer-table.d.ts +10 -2
  1027. package/dist/types/components/map-card/map-card.d.ts +180 -14
  1028. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +9 -1
  1029. package/dist/types/components.d.ts +43 -6
  1030. package/dist/types/preact.d.ts +4 -1
  1031. package/package.json +2 -2
  1032. package/dist/cjs/calcite-carousel-item.cjs.entry.js +0 -46
  1033. package/dist/solutions-components/p-062e5705.entry.js +0 -6
  1034. package/dist/solutions-components/p-27a25ece.entry.js +0 -6
  1035. package/dist/solutions-components/p-2c00221b.js +0 -6
  1036. package/dist/solutions-components/p-374d0fdc.entry.js +0 -6
  1037. package/dist/solutions-components/p-3c89bfe5.entry.js +0 -6
  1038. package/dist/solutions-components/p-41c34a67.js +0 -6
  1039. package/dist/solutions-components/p-671fd156.entry.js +0 -6
  1040. package/dist/solutions-components/p-72d0eda0.entry.js +0 -29
  1041. package/dist/solutions-components/p-743ad3a7.entry.js +0 -6
  1042. package/dist/solutions-components/p-93d8ef73.entry.js +0 -6
  1043. package/dist/solutions-components/p-a0b62b46.entry.js +0 -6
  1044. package/dist/solutions-components/p-a8b42e35.entry.js +0 -6
  1045. package/dist/solutions-components/p-aa85b136.entry.js +0 -6
  1046. package/dist/solutions-components/p-aef41a6d.entry.js +0 -11
  1047. package/dist/solutions-components/p-af8a7aff.entry.js +0 -6
  1048. package/dist/solutions-components/p-b75c4db2.entry.js +0 -6
  1049. package/dist/solutions-components/p-da6e25cb.entry.js +0 -17
  1050. package/dist/solutions-components/p-f3166d51.entry.js +0 -6
  1051. package/dist/solutions-components/p-f6dc7347.entry.js +0 -6
@@ -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,f as t,h as n,g as i,c as a}from"./p-6eb37ed2.js";import{l as s}from"./p-4cd4cb85.js";import{g as c,i as r,r as l,t as o,w as p,n as d,x as v,y as g,l as h,v as m}from"./p-1e4aca17.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.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 ${c(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=r.data[i])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size;if(!(r.data&&i&&n||a))return"";const s=r.data[i];if(!s)return;const{categories:c}=s,l=c.get(n);let o;return o=(null==l?void 0:l.nestedInfos)?g(l,this.infoIndex):l,isNaN(null==o?void 0:o.count)?"":this.intl.formatNumber(o.count)}getTotalFeatureCount(){const e=this.activeLayerInfo.layer.id;if(!r.data||!e)return"";const t=r.data[e];if(!t)return;const{categories:n}=t,i=l(n);let a;if(o(n))a=p(i);else if(d(this.activeLayerInfo)){const e=h(this.activeLayerInfo.layer);a=l(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 f=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,a;const s=m(this.activeLayerInfo),{expanded:r}=this,l=r?null===(e=this.messages)||void 0===e?void 0:e.collapse:null===(t=this.messages)||void 0===t?void 0:t.expand,o=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return n("header",{key:"90e0c1317dab1e4f6aeb9f0e6652ba0c437e2738",class:`instant-apps-interactive-legend__header ${c(this.el)}`},n("calcite-action",{key:"a83eb7e778aba7b5293a4e612e0e48369c1532bf",onClick:this.toggleExpanded(),icon:r?"chevron-down":"chevron-up",appearance:"transparent",text:l,label:l,scale:"s"}),n("span",{key:"2ddd88d88356bfd06325bd71f3b379cceaffeac0"},n("span",{key:"974c40e2cd293c18c9cb05963616289484af2ce1",class:"instant-apps-interactive-legend__header-action-container"},n("h3",{key:"e95395514e1406feb2f590c49398c2321b6c643c",class:`esri-widget__heading esri-legend__service-label${o}`,title:null===(i=this.activeLayerInfo)||void 0===i?void 0:i.title},null===(a=this.activeLayerInfo)||void 0===a?void 0:a.title)),this.featureCount&&s?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)}};f.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,f as instant_apps_interactive_legend_layer_element_caption}
6
+ import{r as e,f as t,h as n,g as i,c as a}from"./p-6eb37ed2.js";import{l as s}from"./p-4cd4cb85.js";import{g as c,i as r,r as l,t as o,w as p,n as d,x as v,y as g,l as h,v as m}from"./p-1e4aca17.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";const f=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 ${c(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=r.data[i])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size;if(!(r.data&&i&&n||a))return"";const s=r.data[i];if(!s)return;const{categories:c}=s,l=c.get(n);let o;return o=(null==l?void 0:l.nestedInfos)?g(l,this.infoIndex):l,isNaN(null==o?void 0:o.count)?"":this.intl.formatNumber(o.count)}getTotalFeatureCount(){const e=this.activeLayerInfo.layer.id;if(!r.data||!e)return"";const t=r.data[e];if(!t)return;const{categories:n}=t,i=l(n);let a;if(o(n))a=p(i);else if(d(this.activeLayerInfo)){const e=h(this.activeLayerInfo.layer);a=l(e.categories)[1].count}else a=v(i);return this.intl.formatNumber(a)}get el(){return i(this)}};f.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 u=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,a;const s=m(this.activeLayerInfo),{expanded:r}=this,l=r?null===(e=this.messages)||void 0===e?void 0:e.collapse:null===(t=this.messages)||void 0===t?void 0:t.expand,o=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return n("header",{key:"b4080c1d9a4a6b95a1e389156d94661a937c0e6f",class:`instant-apps-interactive-legend__header ${c(this.el)}`},n("calcite-action",{key:"11c804cbb23cdf359589309d40a8f3550f651802",onClick:this.toggleExpanded(),icon:r?"chevron-down":"chevron-up",appearance:"transparent",text:l,label:l,scale:"s"}),n("span",{key:"27f26720b7a189ea36873e4a97063579a6f52e20"},n("span",{key:"143092f1dab8ebd2a0c8e9efbed4b7cba4267ebf",class:"instant-apps-interactive-legend__header-action-container"},n("h3",{key:"099fb8082615f356a1d1ecd374800dbc83baf015",class:`esri-widget__heading esri-legend__service-label${o}`,title:null===(i=this.activeLayerInfo)||void 0===i?void 0:i.title},null===(a=this.activeLayerInfo)||void 0===a?void 0:a.title)),this.featureCount&&s?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)}};u.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{f as instant_apps_interactive_legend_count,u as instant_apps_interactive_legend_layer_element_caption}
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{d as o}from"./p-6eb37ed2.js";import{p as n}from"./p-441f1992.js";
6
+ import{d as o}from"./p-6eb37ed2.js";import{w as e}from"./p-66cee72b.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
10
  * v2.12.2
11
- */const p=o;function r(o){return"opened"in o?o.opened:o.open}function t(o){p((()=>{o.transitionEl&&n(o.transitionEl,o.openTransitionProp,(()=>{r(o)?o.onBeforeOpen():o.onBeforeClose()}),(()=>{r(o)?o.onOpen():o.onClose()}))}))}export{t as o}
11
+ */const n=o;function r(o){return"opened"in o?o.opened:o.open}function t(o){n((()=>{o.transitionEl&&e(o.transitionEl,o.openTransitionProp,(()=>{r(o)?o.onBeforeOpen():o.onBeforeClose()}),(()=>{r(o)?o.onOpen():o.onClose()}))}))}export{t as o}
@@ -3,9 +3,9 @@
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 e,H as a,g as o}from"./p-6eb37ed2.js";import{c as s,d as n}from"./p-f8d23498.js";import{e as c}from"./p-441f1992.js";import{s as r,a as d,c as l}from"./p-3e828614.js";import{c as h,d as p}from"./p-42552409.js";import{u,c as m,d as f,s as v}from"./p-6e3f1d71.js";import{t as g,E as b}from"./p-a2d4c97e.js";import{c as x}from"./p-1c249530.js";import{l as y}from"./p-4cd4cb85.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";
6
+ import{r as t,c as i,h as e,H as a,g as o}from"./p-6eb37ed2.js";import{c as s,d as n}from"./p-f8d23498.js";import{e as c}from"./p-66cee72b.js";import{s as r,a as d,c as l}from"./p-3e828614.js";import{c as h,d as p}from"./p-8d453a3a.js";import{u,c as m,d as b,s as f}from"./p-a5fc6ab7.js";import{t as v,E as g}from"./p-3244e59a.js";import{c as x}from"./p-1c249530.js";import{l as y}from"./p-4cd4cb85.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
10
  * v2.12.2
11
- */const w=class{constructor(e){t(this,e),this.calciteActionPadToggle=i(this,"calciteActionPadToggle",6),this.mutationObserver=x("mutation",(()=>this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group"))))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const i=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{i.includes(t)||(t.menuOpen=!1)}))}},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const i=c(t).filter((t=>t?.matches("calcite-action-group")));this.setGroupLayout(i)},this.handleTooltipSlotChange=t=>{const i=c(t).filter((t=>t?.matches("calcite-tooltip")));this.expandTooltip=i[0]},this.actionsEndGroupLabel=void 0,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.overlayPositioning="absolute",this.expandTooltip=void 0,this.effectiveLocale="",this.defaultMessages=void 0}expandedHandler(t){g({el:this.el,expanded:t})}layoutHandler(){this.updateGroups()}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){s(this),h(this),m(this)}disconnectedCallback(){p(this),f(this),n(this)}async componentWillLoad(){r(this);const{el:t,expanded:i}=this;g({el:t,expanded:i}),await v(this)}componentDidLoad(){d(this)}async setFocus(){await l(this),this.el?.focus()}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:i,messages:a,el:o,position:s,toggleExpand:n,scale:c,layout:r,actionsEndGroupLabel:d,overlayPositioning:l}=this,h=i?null:e(b,{collapseLabel:a.collapseLabel,collapseText:a.collapse,el:o,expandLabel:a.expandLabel,expandText:a.expand,expanded:t,position:s,ref:this.setExpandToggleRef,scale:c,toggle:n,tooltip:this.expandTooltip});return h?e("calcite-action-group",{class:"action-group--end",label:d,layout:r,overlayPositioning:l,scale:c},e("slot",{name:"expand-tooltip",onSlotchange:this.handleTooltipSlotChange}),h):null}render(){return e(a,{key:"5bbd7e4402b9d4f0a319c7c8fe98ce20a9646d89",onCalciteActionMenuOpen:this.actionMenuOpenHandler},e("div",{key:"7757b0e8e4b47eacd05fd99a74d564ff855c157d",class:"container"},e("slot",{key:"2d9e826255494320a4c374282fa8b0c59ed26ddd",onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup()))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{expanded:["expandedHandler"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, 0.125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px}.container{display:inline-flex;flex-direction:column;overflow-y:auto;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);gap:var(--calcite-action-pad-items-space, 0);border-radius:calc(var(--calcite-action-pad-corner-radius, 0.125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px}:host([hidden]){display:none}[hidden]{display:none}";const j="instant-apps-measurement-tool",k={base:j,hide:`${j}__hide`},_=class{constructor(i){t(this,i),this.view=void 0,this.measureConfiguration=void 0,this.activeTool=void 0}async componentWillLoad(){await this._initModules()}componentDidLoad(){this._init()}render(){return e(a,{key:"f49b77294093fbd2a6b31cb1081367b9151f575b"},e("div",{key:"9a6ac16c6184c4416e9f2a287e0faaf9ff0a533b",class:k.base},e("div",{key:"5ba7577ad0b9978113e854fcea10086f2758d07c",ref:t=>{this._measureElement=t}}),e("div",{key:"adcacc2ea84e2c3d292407df71336a4d2cace92a",class:k.hide,ref:t=>{this._coordinateElement=t}})))}disconnectedCallback(){var t,i;null===(t=this._measureWidget)||void 0===t||t.destroy(),null===(i=this._coordinateWidget)||void 0===i||i.destroy()}async _initModules(){const[t,i,e]=await y(["esri/widgets/Measurement","esri/widgets/CoordinateConversion","esri/widgets/CoordinateConversion/support/Conversion"]);this.Measurement=t,this.CoordinateConversion=i,this.Conversion=e}_init(){this._initMeasurementWidget(),this._initCoordinateWidget()}_updateToolType(t){this._setActiveTool(t)}_initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new this.Measurement(Object.assign({view:this.view,container:this._measureElement},this.measureConfiguration)),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(t){var i,e,a;const o=this.view.type;this._measureWidget.clear(),null===(i=this._coordinateElement)||void 0===i||i.classList.add(k.hide),"distance"===t?this._measureWidget.activeTool="2d"===o?"distance":"direct-line":"area"===t?this._measureWidget.activeTool="area":"point"===t&&(null===(a=null===(e=this._coordinateElement)||void 0===e?void 0:e.classList)||void 0===a||a.remove(k.hide))}_initCoordinateWidget(){var t,i;const{activeToolType:e,coordinateFormat:a}=this.measureConfiguration;if((null==this?void 0:this.view)&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new this.CoordinateConversion({view:this.view,storageEnabled:!1,container:this._coordinateElement}),null!=a)){const e=this._coordinateWidget.formats.find((t=>t.name===a));null===(i=null===(t=this._coordinateWidget)||void 0===t?void 0:t.conversions)||void 0===i||i.splice(0,0,new this.Conversion({format:e}))}null!=e&&this._setActiveTool(e)}get el(){return o(this)}static get watchers(){return{activeTool:["_updateToolType"]}}};_.style=".sc-instant-apps-measurement-tool-h .esri-measurement.sc-instant-apps-measurement-tool,.sc-instant-apps-measurement-tool-h .esri-coordinate-conversion.sc-instant-apps-measurement-tool{width:300px}.sc-instant-apps-measurement-tool-h .instant-apps-measurement-tool__hide.sc-instant-apps-measurement-tool{display:none}";export{w as calcite_action_pad,_ as instant_apps_measurement_tool}
11
+ */const w=class{constructor(e){t(this,e),this.calciteActionPadToggle=i(this,"calciteActionPadToggle",6),this.mutationObserver=x("mutation",(()=>this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group"))))),this.actionMenuOpenHandler=t=>{if(t.target.menuOpen){const i=t.composedPath();Array.from(this.el.querySelectorAll("calcite-action-group")).forEach((t=>{i.includes(t)||(t.menuOpen=!1)}))}},this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionPadToggle.emit()},this.setExpandToggleRef=t=>{this.expandToggleEl=t},this.handleDefaultSlotChange=t=>{const i=c(t).filter((t=>t?.matches("calcite-action-group")));this.setGroupLayout(i)},this.handleTooltipSlotChange=t=>{const i=c(t).filter((t=>t?.matches("calcite-tooltip")));this.expandTooltip=i[0]},this.actionsEndGroupLabel=void 0,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.position=void 0,this.scale=void 0,this.messages=void 0,this.messageOverrides=void 0,this.overlayPositioning="absolute",this.expandTooltip=void 0,this.effectiveLocale="",this.defaultMessages=void 0}expandedHandler(t){v({el:this.el,expanded:t})}layoutHandler(){this.updateGroups()}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){s(this),h(this),m(this)}disconnectedCallback(){p(this),b(this),n(this)}async componentWillLoad(){r(this);const{el:t,expanded:i}=this;v({el:t,expanded:i}),await f(this)}componentDidLoad(){d(this)}async setFocus(){await l(this),this.el?.focus()}updateGroups(){this.setGroupLayout(Array.from(this.el.querySelectorAll("calcite-action-group")))}setGroupLayout(t){t.forEach((t=>t.layout=this.layout))}renderBottomActionGroup(){const{expanded:t,expandDisabled:i,messages:a,el:o,position:s,toggleExpand:n,scale:c,layout:r,actionsEndGroupLabel:d,overlayPositioning:l}=this,h=i?null:e(g,{collapseLabel:a.collapseLabel,collapseText:a.collapse,el:o,expandLabel:a.expandLabel,expandText:a.expand,expanded:t,position:s,ref:this.setExpandToggleRef,scale:c,toggle:n,tooltip:this.expandTooltip});return h?e("calcite-action-group",{class:"action-group--end",label:d,layout:r,overlayPositioning:l,scale:c},e("slot",{name:"expand-tooltip",onSlotchange:this.handleTooltipSlotChange}),h):null}render(){return e(a,{key:"5bbd7e4402b9d4f0a319c7c8fe98ce20a9646d89",onCalciteActionMenuOpen:this.actionMenuOpenHandler},e("div",{key:"7757b0e8e4b47eacd05fd99a74d564ff855c157d",class:"container"},e("slot",{key:"2d9e826255494320a4c374282fa8b0c59ed26ddd",onSlotchange:this.handleDefaultSlotChange}),this.renderBottomActionGroup()))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{expanded:["expandedHandler"],layout:["layoutHandler"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};w.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{display:block}@keyframes in{0%{opacity:0}100%{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, 0.125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px}.container{display:inline-flex;flex-direction:column;overflow-y:auto;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);gap:var(--calcite-action-pad-items-space, 0);border-radius:calc(var(--calcite-action-pad-corner-radius, 0.125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0px}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px}:host([hidden]){display:none}[hidden]{display:none}";const j="instant-apps-measurement-tool",k={base:j,hide:`${j}__hide`},_=class{constructor(i){t(this,i),this.view=void 0,this.measureConfiguration=void 0,this.activeTool=void 0}async componentWillLoad(){await this._initModules()}componentDidLoad(){this._init()}render(){return e(a,{key:"4357b8a39789ea390bedfcd96f4d21c1a0211484"},e("div",{key:"b42cca8e290ba490b8a1afca1818c9d95dfcc32b",class:k.base},e("div",{key:"59be3dd42e293dcd8f7fa3e132fa65cfef12ffa7",ref:t=>{this._measureElement=t}}),e("div",{key:"2ee6045804e3b7eeb3db1a5bdb5dc5d0cf15a5c8",class:k.hide,ref:t=>{this._coordinateElement=t}})))}disconnectedCallback(){var t,i;null===(t=this._measureWidget)||void 0===t||t.destroy(),null===(i=this._coordinateWidget)||void 0===i||i.destroy()}async _initModules(){const[t,i,e]=await y(["esri/widgets/Measurement","esri/widgets/CoordinateConversion","esri/widgets/CoordinateConversion/support/Conversion"]);this.Measurement=t,this.CoordinateConversion=i,this.Conversion=e}_init(){this._initMeasurementWidget(),this._initCoordinateWidget()}_updateToolType(t){this._setActiveTool(t)}_initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new this.Measurement(Object.assign({view:this.view,container:this._measureElement},this.measureConfiguration)),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(t){var i,e,a;const o=this.view.type;this._measureWidget.clear(),null===(i=this._coordinateElement)||void 0===i||i.classList.add(k.hide),"distance"===t?this._measureWidget.activeTool="2d"===o?"distance":"direct-line":"area"===t?this._measureWidget.activeTool="area":"point"===t&&(null===(a=null===(e=this._coordinateElement)||void 0===e?void 0:e.classList)||void 0===a||a.remove(k.hide))}_initCoordinateWidget(){var t,i;const{activeToolType:e,coordinateFormat:a}=this.measureConfiguration;if((null==this?void 0:this.view)&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new this.CoordinateConversion({view:this.view,storageEnabled:!1,container:this._coordinateElement}),null!=a)){const e=this._coordinateWidget.formats.find((t=>t.name===a));null===(i=null===(t=this._coordinateWidget)||void 0===t?void 0:t.conversions)||void 0===i||i.splice(0,0,new this.Conversion({format:e}))}null!=e&&this._setActiveTool(e)}get el(){return o(this)}static get watchers(){return{activeTool:["_updateToolType"]}}};_.style=".sc-instant-apps-measurement-tool-h .esri-measurement.sc-instant-apps-measurement-tool,.sc-instant-apps-measurement-tool-h .esri-coordinate-conversion.sc-instant-apps-measurement-tool{width:300px}.sc-instant-apps-measurement-tool-h .instant-apps-measurement-tool__hide.sc-instant-apps-measurement-tool{display:none}";export{w as calcite_action_pad,_ as instant_apps_measurement_tool}
@@ -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,f as t,h as i,g as n,c as s}from"./p-6eb37ed2.js";import{g as a,m as l,s as o,i as d,a as c,z as r,n as p,l as h,o as v,u as g,p as u,q as f}from"./p-1e4aca17.js";import{l as m}from"./p-4cd4cb85.js";import"./p-720a12c0.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const y=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){var e;this.expanded=!!(null===(e=this.layerCaption)||void 0===e?void 0:e.expanded)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){return i("div",{key:"5294fd647e506c8fb1c10bc39178dd1701df0a13",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service esri-legend__group-layer"},i("instant-apps-interactive-legend-layer-element-caption",{key:"5fa320a7a12179a85e157ccbabb5ff0d3fb75ea2",ref:e=>this.layerCaption=e,class:a(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),i("div",{key:"68f702a841bf7a89a0534a252465b742c872aa94",class:"esri-legend__group-content "+(!1===this.expanded?"hide":"show")},i("slot",{key:"7b632a4264a3aead0f53949b972169827b11a4c0",name:"content"})))}get el(){return n(this)}};y.style=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}";const b=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){var e,t;return i("div",{key:"14f04807f3c36d4ef8dc2337d126b9657fc8edec",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service"+(this.activeLayerInfo.parent?" esri-legend__group-layer-child":""),tabIndex:0},i("instant-apps-interactive-legend-layer-element-caption",{key:"3917bafae2f4c5d5050d402ab2a3e9257ecfc678",ref:e=>this.layerCaption=e,legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:a(this.el)}),i("div",{key:"8eb250a7a3404561a5ab349406fbfce8dac00608",id:`${null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer)||void 0===t?void 0:t.id}-legend-layer`,class:"esri-legend__layer"+(!1===this.expanded?" hide":" show")},i("slot",{key:"94f10f632b9409a25f6f5eaf65c7a2e50ecedc29",name:"content"})))}get el(){return n(this)}};b.style=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}";const _=class{constructor(t){e(this,t),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText=void 0,this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){var e,t,n,s,a,d,c,r,p;const h=this.isChild?"esri-legend__layer-child-table":"esri-legend__layer-table",v=1===(null===(t=null===(e=this.legendElement)||void 0===e?void 0:e.infos)||void 0===t?void 0:t.length)&&!(null===(a=null===(s=null===(n=this.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===s?void 0:s.renderer)||void 0===a?void 0:a.field),g=!this.isSizeRamp&&this.isChild||this.isColorRamp?"":" esri-legend__layer-table--size-ramp",u=this.isInteractive?"":" instant-apps-interactive-legend__non-interactive",f=l(this.activeLayerInfo)?" instant-apps-interactive-legend__nested-unique-symbol":"";let m=!(!v||this.expanded||this.zoomTo)||this.expanded;return this.isRelationshipRamp&&(m=o.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id]),i("div",{key:"4c84ceeed6021b53975ce59397b7942efe0fd861",class:`${h}${g}${u}${f}`},i("div",{key:"71a9a54047a3880f8a800b5c5ada44bd44ddcd37",id:`${null===(c=null===(d=this.activeLayerInfo)||void 0===d?void 0:d.layer)||void 0===c?void 0:c.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&v?"hide":"show"},i("instant-apps-interactive-legend-legend-element-caption",{key:"3f4dedbe202011c88d80269e877de1a137985b04",ref:e=>this.legendLayerCaption=e,legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),i("div",{key:"content",id:`${null===(p=null===(r=this.activeLayerInfo)||void 0===r?void 0:r.layer)||void 0===p?void 0:p.id}-legend-element-content-${this.legendElementIndex}`,class:!1===m?"hide":"show"},i("slot",{key:"8b402e2c6dbf5e657cb4518c95bb43220de0a68d",name:"content"})))}};_.style=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}";const L=class{constructor(t){e(this,t),this.showAllSelectedEvent=s(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=s(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){var e,t,n,s;const a=l(this.activeLayerInfo),o=p(this.activeLayerInfo),{expanded:d}=this;return a&&!this.titleText?null:i("div",{class:"esri-legend__layer-caption"},i("calcite-action",{onClick:this.toggleExpanded(),icon:!1===d?"chevron-up":"chevron-down",appearance:"transparent",text:!1===d?null===(e=this.messages)||void 0===e?void 0:e.expand:null===(t=this.messages)||void 0===t?void 0:t.collapse,label:!1===d?null===(n=this.messages)||void 0===n?void 0:n.expand:null===(s=this.messages)||void 0===s?void 0:s.collapse,scale:"s"}),this.isInteractive||o?this.renderLegendElementCaptionControls():null,this.titleText?i("span",{class:"instant-apps-interactive-legend__legend-layer-caption-text",title:this.titleText},this.titleText):null)}renderLegendElementCaptionControls(){var e,t,n,s,a,l,o,c,r,p;const h=this.titleText?"":" instant-apps-interactive-legend__layer-caption-btn-container--no-text",v=(null===(s=null===(n=null===(e=d.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id])||void 0===n?void 0:n.categories)||void 0===s?void 0:s.size)>1?i("calcite-button",{key:"show-all-button",id:"showAll",onClick:this.handleShowAll(),"icon-start":"list-check-all",appearance:"outline",round:!0,label:null===(a=this.messages)||void 0===a?void 0:a.showAll}):null,g=i("calcite-button",{key:"zoom-to-button",id:"zoomTo",onClick:this.handleZoomTo(),"icon-start":"magnifying-glass-plus",appearance:"outline",round:!0,label:null===(l=this.messages)||void 0===l?void 0:l.zoomTo});return i("div",{key:"layer-caption-btn-container",class:`instant-apps-interactive-legend__layer-caption-btn-container${h}`},v,i("calcite-tooltip",{"reference-element":"showAll",placement:"top",label:null===(o=this.messages)||void 0===o?void 0:o.showAll},null===(c=this.messages)||void 0===c?void 0:c.showAll),this.zoomTo?[g,i("calcite-tooltip",{"reference-element":"zoomTo",placement:"top",label:null===(r=this.messages)||void 0===r?void 0:r.zoomTo},null===(p=this.messages)||void 0===p?void 0:p.zoomTo)]:null)}toggleExpanded(){return()=>{var e,t;this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.legendElements)||void 0===t?void 0:t.filter((e=>"relationship-ramp"===e.type))).length>0&&o.set("relationshipRampExpandStates",Object.assign(Object.assign({},d.relationshipRampExpandStates),{[this.activeLayerInfo.layer.id]:this.expanded}))}}handleZoomTo(){return()=>{const e=h(this.layer),t=c(e,this.legendElement);r(e,this.legendvm.view,t)}}handleShowAll(){return()=>{var e,t;const i=null===(e=d.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id];c(i,this.legendElement)?(()=>{const e=v(i,this.legendElement.title);g({intLegendLayerData:e,layerId:this.layer.id})})():((()=>{const e=u(i);g({intLegendLayerData:e,layerId:this.layer.id})})(),this.showAllSelectedEvent.emit())}}get el(){return n(this)}};L.style=".sc-instant-apps-interactive-legend-legend-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-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;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}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight);padding:var(--instant-apps-interactive-legend-ui-padding)}html[dir=rtl] .sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}";const $=".esri-relationship-ramp--diamond__middle-column--ramp svg g",k=class{constructor(t){e(this,t),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){const e=0===d.data[this.activeLayerInfo.layer.id].queryExpressions.length,t=this.relationshipRamp.querySelector($).children,i=t?Array.from(t):null;e&&(null==i||i.forEach((e=>{e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.classList.remove("esri-interactive-legend--selected-cell")})))}async componentWillLoad(){const[e]=await m(["esri/symbols/support/symbolUtils"]);this.symbolUtils=e}render(){var e,t;return i("div",{key:"1f7588d95a9f87cd0d1574d2c8823e4fec7ff20a",ref:e=>{if(!(null==e?void 0:e.querySelector("relationshipStyles"))){const t=document.createElement("style");t.id="relationshipStyles",t.innerHTML="\n rect:hover {\n cursor: pointer;\n opacity: 0.8;\n }\n ",null==e||e.appendChild(t)}}},i("span",{key:"a5c554b5bda46d827f60aba19f0e74ce5a81efe5",class:"instant-apps-interactive-legend-relationship__instructional-text"},null===(t=null===(e=this.messages)||void 0===e?void 0:e.relationship)||void 0===t?void 0:t.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){var e;const t=(null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer).renderer,n=this.symbolUtils.renderRelationshipRampPreviewHTML(t);return i("div",{ref:e=>{this.relationshipRamp=e,this.applyRelationshipRampInteractivity()},key:"relationship-ramp-diamond",innerHTML:`${null==n?void 0:n.outerHTML}`})}applyRelationshipRampInteractivity(){if(!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&d.data))return;let e=setInterval((()=>{const t=this.relationshipRamp.querySelector($);t&&(clearInterval(e),this.setupRelationshipDrawingStyle(t.children))}),10)}setupRelationshipDrawingStyle(e){const t=e?Array.from(e):null;if(!t)return;t.map(((e,t)=>{var i,n;const s=(null===(n=null===(i=this.activeLayerInfo)||void 0===i?void 0:i.layer)||void 0===n?void 0:n.renderer).uniqueValueInfos;if(s[t]){const i=s[t].symbol.color;s.forEach(((t,n)=>{const s=t.symbol.color;i.r===s.r&&i.g===s.g&&i.b===s.b&&i.a===s.a&&this.setCellAttributes(e,n)})),e.classList.add("esri-interactive-legend__svg-rect-element")}}));const i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){const i=this.activeLayerInfo.layer.renderer.uniqueValueInfos,n=this.generateIndexPattern(t);i[n]&&(e.setAttribute("data-color",`${i[n].symbol.color}`),e.setAttribute("data-cell-index",`${n}`),e.setAttribute("tabindex","0"))}generateIndexPattern(e){const{focus:t,numClasses:i}=this.legendElement;return"HL"===t?e:2===i?this.twoClasses(e,t):3===i?this.threeClasses(e,t):4===i?this.fourClasses(e,t):null}twoClasses(e,t){return"HH"===t||null===t?0===e||2===e?e+1:1===e||3===e?e-1:null:"LH"===t?0===e?e+3:1===e?e+1:2===e?e-1:3===e?e-3:4===e?e+0:null:"LL"===t?0===e||1===e?e+2:2===e||3===e?e-2:null:void 0}threeClasses(e,t){return"HH"===t||null===t?0===e||3===e||6===e?e+2:2===e||5===e||8===e?e-2:e:"LH"===t?0===e?e+8:1===e?e+6:2===e?e+4:3===e?e+2:5===e?e-2:6===e?e-4:7===e?e-6:8===e?e-8:e:"LL"===t?0===e||1===e||2===e?e+6:6===e||7===e||8===e?e-6:e:void 0}fourClasses(e,t){return"HH"===t||null===t?0===e||4===e||8===e||12===e?e+3:1===e||5===e||9===e||13===e?e+1:2===e||6===e||10===e||14===e?e-1:3===e||7===e||11===e||15===e?e-3:null:"LH"===t?0===e?e+15:1===e?e+13:2===e?e+11:3===e?e+9:4===e?e+7:5===e?e+5:6===e?e+3:7===e?e+1:8===e?e-1:9===e?e-3:10===e?e-5:11===e?e-7:12===e?e-9:13===e?e-11:14===e?e-13:15===e?e-15:null:"LL"===t?0===e||1===e||2===e||3===e?e+12:4===e||5===e||6===e||7===e?e+4:8===e||9===e||10===e||11===e?e-4:12===e||13===e||14===e||15===e?e-12:null:void 0}reorderCellNodes(e){const t=[];for(;this.cellNodeCounter<=e.length-1;)e.map((e=>{parseInt(e.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(e)})),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){const{focus:t,numClasses:i}=this.legendElement;"HH"===t||null===t?this.relationshipFocusIsHighHigh(e,i):"LL"===t?this.relationshipFocusIsLowLow(e,i):"LH"===t?this.relationshipFocusIsLowHigh(e,i):"HL"===t&&this.relationshipFocusIsHighLow(e,i),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let i=t-1;i>=0;i--)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let i=0;i<t;i++)for(let n=0;n<t;n++)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let i=0;i<t;i++)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let i=t-1;i>=0;i--)for(let n=0;n<t;n++)this.setDataAttributes(e,n,i,t),this.cellNodeCounter++}setDataAttributes(e,t,i,n){const s=e[this.cellNodeCounter];2===n?this.twoClassAttributes(s,t,i):3===n?this.threeClassAttributes(s,t,i):this.fourClassAttributes(s,t,i)}twoClassAttributes(e,t,i){const{legendElement:n}=this;"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i)}threeClassAttributes(e,t,i){const{legendElement:n}=this;1===this.cellNodeCounter||3===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter?"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==n.focus?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}fourClassAttributes(e,t,i){const{legendElement:n}=this,{focus:s}=n;1===this.cellNodeCounter||2===this.cellNodeCounter||4===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter||8===this.cellNodeCounter||10===this.cellNodeCounter||11===this.cellNodeCounter||13===this.cellNodeCounter||14===this.cellNodeCounter?"HL"===s?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==s?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}setDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${i}`),this.setDataCellFocus(e,t,i)}swapDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${i}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocus(e,i,t)}setDataCellFocus(e,t,i){const{numClasses:n}=this.legendElement;2===n?this.setDataCellFocusForTwoClasses(e,t,i):3===n?this.setDataCellFocusForThreeClasses(e,t,i):4===n&&this.setDataCellFocusForFourClasses(e,t,i)}setDataCellFocusForTwoClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","HL"):1===t&&1===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForThreeClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM"):0===t&&2===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","ML"):1===t&&1===i?e.setAttribute("data-cell-focus","MM"):1===t&&2===i?e.setAttribute("data-cell-focus","MH"):2===t&&0===i?e.setAttribute("data-cell-focus","HL"):2===t&&1===i?e.setAttribute("data-cell-focus","HM"):2===t&&2===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForFourClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM1"):0===t&&2===i?e.setAttribute("data-cell-focus","LM2"):0===t&&3===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","M1L"):1===t&&1===i?e.setAttribute("data-cell-focus","M1M1"):1===t&&2===i?e.setAttribute("data-cell-focus","M1M2"):1===t&&3===i?e.setAttribute("data-cell-focus","M1H"):2===t&&0===i?e.setAttribute("data-cell-focus","M2L"):2===t&&1===i?e.setAttribute("data-cell-focus","M2M1"):2===t&&2===i?e.setAttribute("data-cell-focus","M2M2"):2===t&&3===i?e.setAttribute("data-cell-focus","M2H"):3===t&&0===i?e.setAttribute("data-cell-focus","HL"):3===t&&1===i?e.setAttribute("data-cell-focus","HM1"):3===t&&2===i?e.setAttribute("data-cell-focus","HM2"):3===t&&3===i&&e.setAttribute("data-cell-focus","HH")}applyEventHandlers(){const e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).map((e=>{const t=e.getAttribute("data-feature-i"),i=e.getAttribute("data-feature-j"),n=e.getAttribute("data-cell-focus");e.onclick=()=>{this.handleFilter(t,i,n),this.handleSelectedElement(e)},e.onkeydown=s=>{const{key:a}=s;("Enter"===a||"Space"===a)&&(this.handleFilter(t,i,n),this.handleSelectedElement(e))}}))}async handleFilter(e,t,i){var n,s,a,l,o;const c=this.activeLayerInfo.layer,{authoringInfo:r}=c.renderer,{field1:p,field2:h}=r,{queryExpressions:v,fLayerView:g}=d.data[this.activeLayerInfo.layer.id];if("relationship-ramp"===this.legendElement.type&&r&&p&&h){const d=this.generateExpressionParams(p,h,r,e,t,i),c=this.generateExpressionForRelationship(d);0===v.length?v[0]=c:-1===v.indexOf(c)?v.push(c):v.splice(v.indexOf(c),1);const u=v.join(" OR "),y=null!==(s=null===(n=null==g?void 0:g.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==s?s:null,[b,_]=await m(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);if("filter"===(null===(a=this.filterMode)||void 0===a?void 0:a.type))g.filter=new b({where:u,timeExtent:(null===(l=null==g?void 0:g.filter)||void 0===l?void 0:l.timeExtent)?g.filter.timeExtent:null});else if(null===(o=this.filterMode)||void 0===o?void 0:o.effect){const{includedEffect:e,excludedEffect:t}=this.filterMode.effect,i=await f(t,g,"excludedEffect"),n=await f(e,g,"includedEffect");g.featureEffect=new _({filter:new b({where:u,timeExtent:y}),includedEffect:n,excludedEffect:i})}}}generateExpressionParams(e,t,i,n,s,a){const l=[],o=e.field,d=t.field,c=e.classBreakInfos,r=t.classBreakInfos,p=i.field1.hasOwnProperty("normalizationField")?i.field1.normalizationField:null,h=i.field2.hasOwnProperty("normalizationField")?i.field2.normalizationField:null;return c.forEach(((e,t)=>{const i=[];r.forEach(((e,n)=>{i.push([c[t],r[n]])})),l.push(i)})),{data:l,i:n,j:s,field1:p?`(${o}/${p})`:`${o}`,field2:h?`(${d}/${h})`:`${d}`,focus:a}}generateExpressionForRelationship(e){const{focus:t,field1:i,field2:n,data:s,i:a,j:l}=e;return"LL"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"LM"===t||"LM1"===t||"LM2"===t||"LH"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"ML"===t||"M1L"===t||"M2L"===t||"HL"===t?`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`}handleSelectedElement(e){const t=e.classList;t.contains("esri-interactive-legend--selected-cell")?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),t.remove("esri-interactive-legend--selected-cell")):(t.add("esri-interactive-legend--selected-cell"),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"))}};k.style=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}";export{y as instant_apps_interactive_legend_group_legend_element,b as instant_apps_interactive_legend_layer_element,_ as instant_apps_interactive_legend_legend_element,L as instant_apps_interactive_legend_legend_element_caption,k as instant_apps_interactive_legend_relationship}
6
+ import{r as e,f as t,h as i,g as n,c as s}from"./p-6eb37ed2.js";import{g as a,m as l,s as o,i as c,a as d,z as r,n as p,l as h,o as v,u as g,p as u,q as f}from"./p-1e4aca17.js";import{l as m}from"./p-4cd4cb85.js";import"./p-720a12c0.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const y=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){var e;this.expanded=!!(null===(e=this.layerCaption)||void 0===e?void 0:e.expanded)}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){return i("div",{key:"ab9a4911afa5f1021f3270c4fec409a708e2ec51",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service esri-legend__group-layer"},i("instant-apps-interactive-legend-layer-element-caption",{key:"bc80abe473c1b47920a78b072033d5b214f7822c",ref:e=>this.layerCaption=e,class:a(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),i("div",{key:"cf6dc1620eb0a95430129b9d414a9f6b893b61c2",class:"esri-legend__group-content "+(!1===this.expanded?"hide":"show")},i("slot",{key:"f346b52020e3cf4e3a072fdfa17a3762676aba53",name:"content"})))}get el(){return n(this)}};y.style=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}";const b=class{constructor(t){e(this,t),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0})}render(){var e,t;return i("div",{key:"45305a415db8ba0a08ab69de820ff6b8711e1cee",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:"esri-legend__service"+(this.activeLayerInfo.parent?" esri-legend__group-layer-child":""),tabIndex:0},i("instant-apps-interactive-legend-layer-element-caption",{key:"7babce8571540883bca9e0ff07c0a152cbb30fbb",ref:e=>this.layerCaption=e,legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:a(this.el)}),i("div",{key:"c021d9c441c407d5fac6f246eb9f4b6ce76bcaa5",id:`${null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer)||void 0===t?void 0:t.id}-legend-layer`,class:"esri-legend__layer"+(!1===this.expanded?" hide":" show")},i("slot",{key:"761834066d924654c87a39601c1670625c88d863",name:"content"})))}get el(){return n(this)}};b.style=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}";const _=class{constructor(t){e(this,t),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText=void 0,this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){var e,t,n,s,a,c,d,r,p;const h=this.isChild?"esri-legend__layer-child-table":"esri-legend__layer-table",v=1===(null===(t=null===(e=this.legendElement)||void 0===e?void 0:e.infos)||void 0===t?void 0:t.length)&&!(null===(a=null===(s=null===(n=this.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===s?void 0:s.renderer)||void 0===a?void 0:a.field),g=!this.isSizeRamp&&this.isChild||this.isColorRamp?"":" esri-legend__layer-table--size-ramp",u=this.isInteractive?"":" instant-apps-interactive-legend__non-interactive",f=l(this.activeLayerInfo)?" instant-apps-interactive-legend__nested-unique-symbol":"";let m=!(!v||this.expanded||this.zoomTo)||this.expanded;return this.isRelationshipRamp&&(m=o.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id]),i("div",{key:"cd76a15dfd77c630708e61535a4d22d66385a4bf",class:`${h}${g}${u}${f}`},i("div",{key:"24eb28f5fa505d1d4471a750b5273b34af2f3428",id:`${null===(d=null===(c=this.activeLayerInfo)||void 0===c?void 0:c.layer)||void 0===d?void 0:d.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&v?"hide":"show"},i("instant-apps-interactive-legend-legend-element-caption",{key:"5ffd04439d1c99251e358afcf077628a780c8e40",ref:e=>this.legendLayerCaption=e,legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),i("div",{key:"content",id:`${null===(p=null===(r=this.activeLayerInfo)||void 0===r?void 0:r.layer)||void 0===p?void 0:p.id}-legend-element-content-${this.legendElementIndex}`,class:!1===m?"hide":"show"},i("slot",{key:"c95e14737a003f85f7c494e6d30d9f946bef464a",name:"content"})))}};_.style=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}";const L=class{constructor(t){e(this,t),this.showAllSelectedEvent=s(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=s(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){var e,t,n,s;const a=l(this.activeLayerInfo),o=p(this.activeLayerInfo),{expanded:c}=this;return a&&!this.titleText?null:i("div",{class:"esri-legend__layer-caption"},i("calcite-action",{onClick:this.toggleExpanded(),icon:!1===c?"chevron-up":"chevron-down",appearance:"transparent",text:!1===c?null===(e=this.messages)||void 0===e?void 0:e.expand:null===(t=this.messages)||void 0===t?void 0:t.collapse,label:!1===c?null===(n=this.messages)||void 0===n?void 0:n.expand:null===(s=this.messages)||void 0===s?void 0:s.collapse,scale:"s"}),this.isInteractive||o?this.renderLegendElementCaptionControls():null,this.titleText?i("span",{class:"instant-apps-interactive-legend__legend-layer-caption-text",title:this.titleText},this.titleText):null)}renderLegendElementCaptionControls(){var e,t,n,s,a,l,o,d,r,p;const h=this.titleText?"":" instant-apps-interactive-legend__layer-caption-btn-container--no-text",v=(null===(s=null===(n=null===(e=c.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id])||void 0===n?void 0:n.categories)||void 0===s?void 0:s.size)>1?i("calcite-button",{key:"show-all-button",id:"showAll",onClick:this.handleShowAll(),"icon-start":"list-check-all",appearance:"outline",round:!0,label:null===(a=this.messages)||void 0===a?void 0:a.showAll}):null,g=i("calcite-button",{key:"zoom-to-button",id:"zoomTo",onClick:this.handleZoomTo(),"icon-start":"magnifying-glass-plus",appearance:"outline",round:!0,label:null===(l=this.messages)||void 0===l?void 0:l.zoomTo});return i("div",{key:"layer-caption-btn-container",class:`instant-apps-interactive-legend__layer-caption-btn-container${h}`},v,i("calcite-tooltip",{"reference-element":"showAll",placement:"top",label:null===(o=this.messages)||void 0===o?void 0:o.showAll},null===(d=this.messages)||void 0===d?void 0:d.showAll),this.zoomTo?[g,i("calcite-tooltip",{"reference-element":"zoomTo",placement:"top",label:null===(r=this.messages)||void 0===r?void 0:r.zoomTo},null===(p=this.messages)||void 0===p?void 0:p.zoomTo)]:null)}toggleExpanded(){return()=>{var e,t;this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(null===(t=null===(e=this.activeLayerInfo)||void 0===e?void 0:e.legendElements)||void 0===t?void 0:t.filter((e=>"relationship-ramp"===e.type))).length>0&&o.set("relationshipRampExpandStates",Object.assign(Object.assign({},c.relationshipRampExpandStates),{[this.activeLayerInfo.layer.id]:this.expanded}))}}handleZoomTo(){return()=>{const e=h(this.layer),t=d(e,this.legendElement);r(e,this.legendvm.view,t)}}handleShowAll(){return()=>{var e,t;const i=null===(e=c.data)||void 0===e?void 0:e[null===(t=this.layer)||void 0===t?void 0:t.id];d(i,this.legendElement)?(()=>{const e=v(i,this.legendElement.title);g({intLegendLayerData:e,layerId:this.layer.id})})():((()=>{const e=u(i);g({intLegendLayerData:e,layerId:this.layer.id})})(),this.showAllSelectedEvent.emit())}}get el(){return n(this)}};L.style=".sc-instant-apps-interactive-legend-legend-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-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;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}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight);padding:var(--instant-apps-interactive-legend-ui-padding)}html[dir=rtl] .sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}";const $=".esri-relationship-ramp--diamond__middle-column--ramp svg g",k=class{constructor(t){e(this,t),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){const e=0===c.data[this.activeLayerInfo.layer.id].queryExpressions.length,t=this.relationshipRamp.querySelector($).children,i=t?Array.from(t):null;e&&(null==i||i.forEach((e=>{e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.classList.remove("esri-interactive-legend--selected-cell")})))}async componentWillLoad(){const[e]=await m(["esri/symbols/support/symbolUtils"]);this.symbolUtils=e}render(){var e,t;return i("div",{key:"8b7054296e51e501b5378804dc6055acd113fbfa",ref:e=>{if(!(null==e?void 0:e.querySelector("relationshipStyles"))){const t=document.createElement("style");t.id="relationshipStyles",t.innerHTML="\n rect:hover {\n cursor: pointer;\n opacity: 0.8;\n }\n ",null==e||e.appendChild(t)}}},i("span",{key:"7cd336ef09492b5fc016657a61991f2f255a0b4a",class:"instant-apps-interactive-legend-relationship__instructional-text"},null===(t=null===(e=this.messages)||void 0===e?void 0:e.relationship)||void 0===t?void 0:t.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){var e;const t=(null===(e=this.activeLayerInfo)||void 0===e?void 0:e.layer).renderer,n=this.symbolUtils.renderRelationshipRampPreviewHTML(t);return i("div",{ref:e=>{this.relationshipRamp=e,this.applyRelationshipRampInteractivity()},key:"relationship-ramp-diamond",innerHTML:`${null==n?void 0:n.outerHTML}`})}applyRelationshipRampInteractivity(){if(!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&c.data))return;let e=setInterval((()=>{const t=this.relationshipRamp.querySelector($);t&&(clearInterval(e),this.setupRelationshipDrawingStyle(t.children))}),10)}setupRelationshipDrawingStyle(e){const t=e?Array.from(e):null;if(!t)return;t.map(((e,t)=>{var i,n;const s=(null===(n=null===(i=this.activeLayerInfo)||void 0===i?void 0:i.layer)||void 0===n?void 0:n.renderer).uniqueValueInfos;if(s[t]){const i=s[t].symbol.color;s.forEach(((t,n)=>{const s=t.symbol.color;i.r===s.r&&i.g===s.g&&i.b===s.b&&i.a===s.a&&this.setCellAttributes(e,n)})),e.classList.add("esri-interactive-legend__svg-rect-element")}}));const i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){const i=this.activeLayerInfo.layer.renderer.uniqueValueInfos,n=this.generateIndexPattern(t);i[n]&&(e.setAttribute("data-color",`${i[n].symbol.color}`),e.setAttribute("data-cell-index",`${n}`),e.setAttribute("tabindex","0"))}generateIndexPattern(e){const{focus:t,numClasses:i}=this.legendElement;return"HL"===t?e:2===i?this.twoClasses(e,t):3===i?this.threeClasses(e,t):4===i?this.fourClasses(e,t):null}twoClasses(e,t){return"HH"===t||null===t?0===e||2===e?e+1:1===e||3===e?e-1:null:"LH"===t?0===e?e+3:1===e?e+1:2===e?e-1:3===e?e-3:4===e?e+0:null:"LL"===t?0===e||1===e?e+2:2===e||3===e?e-2:null:void 0}threeClasses(e,t){return"HH"===t||null===t?0===e||3===e||6===e?e+2:2===e||5===e||8===e?e-2:e:"LH"===t?0===e?e+8:1===e?e+6:2===e?e+4:3===e?e+2:5===e?e-2:6===e?e-4:7===e?e-6:8===e?e-8:e:"LL"===t?0===e||1===e||2===e?e+6:6===e||7===e||8===e?e-6:e:void 0}fourClasses(e,t){return"HH"===t||null===t?0===e||4===e||8===e||12===e?e+3:1===e||5===e||9===e||13===e?e+1:2===e||6===e||10===e||14===e?e-1:3===e||7===e||11===e||15===e?e-3:null:"LH"===t?0===e?e+15:1===e?e+13:2===e?e+11:3===e?e+9:4===e?e+7:5===e?e+5:6===e?e+3:7===e?e+1:8===e?e-1:9===e?e-3:10===e?e-5:11===e?e-7:12===e?e-9:13===e?e-11:14===e?e-13:15===e?e-15:null:"LL"===t?0===e||1===e||2===e||3===e?e+12:4===e||5===e||6===e||7===e?e+4:8===e||9===e||10===e||11===e?e-4:12===e||13===e||14===e||15===e?e-12:null:void 0}reorderCellNodes(e){const t=[];for(;this.cellNodeCounter<=e.length-1;)e.map((e=>{parseInt(e.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(e)})),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){const{focus:t,numClasses:i}=this.legendElement;"HH"===t||null===t?this.relationshipFocusIsHighHigh(e,i):"LL"===t?this.relationshipFocusIsLowLow(e,i):"LH"===t?this.relationshipFocusIsLowHigh(e,i):"HL"===t&&this.relationshipFocusIsHighLow(e,i),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let i=t-1;i>=0;i--)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let i=0;i<t;i++)for(let n=0;n<t;n++)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let i=0;i<t;i++)for(let n=t-1;n>=0;n--)this.setDataAttributes(e,i,n,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let i=t-1;i>=0;i--)for(let n=0;n<t;n++)this.setDataAttributes(e,n,i,t),this.cellNodeCounter++}setDataAttributes(e,t,i,n){const s=e[this.cellNodeCounter];2===n?this.twoClassAttributes(s,t,i):3===n?this.threeClassAttributes(s,t,i):this.fourClassAttributes(s,t,i)}twoClassAttributes(e,t,i){const{legendElement:n}=this;"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i)}threeClassAttributes(e,t,i){const{legendElement:n}=this;1===this.cellNodeCounter||3===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter?"HL"===n.focus?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==n.focus?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}fourClassAttributes(e,t,i){const{legendElement:n}=this,{focus:s}=n;1===this.cellNodeCounter||2===this.cellNodeCounter||4===this.cellNodeCounter||5===this.cellNodeCounter||7===this.cellNodeCounter||8===this.cellNodeCounter||10===this.cellNodeCounter||11===this.cellNodeCounter||13===this.cellNodeCounter||14===this.cellNodeCounter?"HL"===s?this.swapDataFeatureIndexes(e,t,i):this.setDataFeatureIndexes(e,t,i):"HL"!==s?this.setDataFeatureIndexes(e,t,i):this.swapDataFeatureIndexes(e,t,i)}setDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${i}`),this.setDataCellFocus(e,t,i)}swapDataFeatureIndexes(e,t,i){e.setAttribute("data-feature-i",`${i}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocus(e,i,t)}setDataCellFocus(e,t,i){const{numClasses:n}=this.legendElement;2===n?this.setDataCellFocusForTwoClasses(e,t,i):3===n?this.setDataCellFocusForThreeClasses(e,t,i):4===n&&this.setDataCellFocusForFourClasses(e,t,i)}setDataCellFocusForTwoClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","HL"):1===t&&1===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForThreeClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM"):0===t&&2===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","ML"):1===t&&1===i?e.setAttribute("data-cell-focus","MM"):1===t&&2===i?e.setAttribute("data-cell-focus","MH"):2===t&&0===i?e.setAttribute("data-cell-focus","HL"):2===t&&1===i?e.setAttribute("data-cell-focus","HM"):2===t&&2===i&&e.setAttribute("data-cell-focus","HH")}setDataCellFocusForFourClasses(e,t,i){0===t&&0===i?e.setAttribute("data-cell-focus","LL"):0===t&&1===i?e.setAttribute("data-cell-focus","LM1"):0===t&&2===i?e.setAttribute("data-cell-focus","LM2"):0===t&&3===i?e.setAttribute("data-cell-focus","LH"):1===t&&0===i?e.setAttribute("data-cell-focus","M1L"):1===t&&1===i?e.setAttribute("data-cell-focus","M1M1"):1===t&&2===i?e.setAttribute("data-cell-focus","M1M2"):1===t&&3===i?e.setAttribute("data-cell-focus","M1H"):2===t&&0===i?e.setAttribute("data-cell-focus","M2L"):2===t&&1===i?e.setAttribute("data-cell-focus","M2M1"):2===t&&2===i?e.setAttribute("data-cell-focus","M2M2"):2===t&&3===i?e.setAttribute("data-cell-focus","M2H"):3===t&&0===i?e.setAttribute("data-cell-focus","HL"):3===t&&1===i?e.setAttribute("data-cell-focus","HM1"):3===t&&2===i?e.setAttribute("data-cell-focus","HM2"):3===t&&3===i&&e.setAttribute("data-cell-focus","HH")}applyEventHandlers(){const e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).map((e=>{const t=e.getAttribute("data-feature-i"),i=e.getAttribute("data-feature-j"),n=e.getAttribute("data-cell-focus");e.onclick=()=>{this.handleFilter(t,i,n),this.handleSelectedElement(e)},e.onkeydown=s=>{const{key:a}=s;("Enter"===a||"Space"===a)&&(this.handleFilter(t,i,n),this.handleSelectedElement(e))}}))}async handleFilter(e,t,i){var n,s,a,l,o;const d=this.activeLayerInfo.layer,{authoringInfo:r}=d.renderer,{field1:p,field2:h}=r,{queryExpressions:v,fLayerView:g}=c.data[this.activeLayerInfo.layer.id];if("relationship-ramp"===this.legendElement.type&&r&&p&&h){const c=this.generateExpressionParams(p,h,r,e,t,i),d=this.generateExpressionForRelationship(c);0===v.length?v[0]=d:-1===v.indexOf(d)?v.push(d):v.splice(v.indexOf(d),1);const u=v.join(" OR "),y=null!==(s=null===(n=null==g?void 0:g.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==s?s:null,[b,_]=await m(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);if("filter"===(null===(a=this.filterMode)||void 0===a?void 0:a.type))g.filter=new b({where:u,timeExtent:(null===(l=null==g?void 0:g.filter)||void 0===l?void 0:l.timeExtent)?g.filter.timeExtent:null});else if(null===(o=this.filterMode)||void 0===o?void 0:o.effect){const{includedEffect:e,excludedEffect:t}=this.filterMode.effect,i=await f(t,g,"excludedEffect"),n=await f(e,g,"includedEffect");g.featureEffect=new _({filter:new b({where:u,timeExtent:y}),includedEffect:n,excludedEffect:i})}}}generateExpressionParams(e,t,i,n,s,a){const l=[],o=e.field,c=t.field,d=e.classBreakInfos,r=t.classBreakInfos,p=i.field1.hasOwnProperty("normalizationField")?i.field1.normalizationField:null,h=i.field2.hasOwnProperty("normalizationField")?i.field2.normalizationField:null;return d.forEach(((e,t)=>{const i=[];r.forEach(((e,n)=>{i.push([d[t],r[n]])})),l.push(i)})),{data:l,i:n,j:s,field1:p?`(${o}/${p})`:`${o}`,field2:h?`(${c}/${h})`:`${c}`,focus:a}}generateExpressionForRelationship(e){const{focus:t,field1:i,field2:n,data:s,i:a,j:l}=e;return"LL"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"LM"===t||"LM1"===t||"LM2"===t||"LH"===t?`${i} >= ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:"ML"===t||"M1L"===t||"M2L"===t||"HL"===t?`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} >= ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`:`${i} > ${s[a][l][0].minValue} AND ${i} <= ${s[a][l][0].maxValue} AND ${n} > ${s[a][l][1].minValue} AND ${n} <= ${s[a][l][1].maxValue}`}handleSelectedElement(e){const t=e.classList;t.contains("esri-interactive-legend--selected-cell")?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),t.remove("esri-interactive-legend--selected-cell")):(t.add("esri-interactive-legend--selected-cell"),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"))}};k.style=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}";export{y as instant_apps_interactive_legend_group_legend_element,b as instant_apps_interactive_legend_layer_element,_ as instant_apps_interactive_legend_legend_element,L as instant_apps_interactive_legend_legend_element_caption,k as instant_apps_interactive_legend_relationship}
@@ -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{h as e,r as i,f as t,g as n}from"./p-6eb37ed2.js";import{h as a,g as s,v as l,a as r,i as c,b as o,c as d,d as v,s as p,e as u,f as g,j as h,u as f,k as m,l as y}from"./p-1e4aca17.js";import{c as b}from"./p-d4056c1c.js";import{l as _}from"./p-4cd4cb85.js";import"./p-720a12c0.js";import"./p-0a24ad5f.js";const w=96;function k(e){return e?e/72*w:0}var x={exports:{}};!function(e){var i,t="http://www.w3.org/",n="".concat(t,"2000/svg"),a="".concat(t,"1999/xlink"),s=[],l=function(e,i){var t={};return Object.keys(e).forEach((function(i){t[i]=e[i]})),i&&Object.keys(i).forEach((function(e){t[e]=i[e]})),t},r=function(e,i){return e.vnodeSelector===i.vnodeSelector&&(e.properties&&i.properties?e.properties.key===i.properties.key&&e.properties.bind===i.properties.bind:!e.properties&&!i.properties)},c=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},o=function(e,i,t){if(""!==i.vnodeSelector)for(var n=t;n<e.length;n++)if(r(e[n],i))return n;return-1},d=function(e,i,t,n){var a=e[i];if(""!==a.vnodeSelector){var s=a.properties;if(!(s?void 0===s.key?s.bind:s.key:void 0))for(var l=0;l<e.length;l++)if(l!==i&&r(e[l],a))throw{error:new Error("".concat(t.vnodeSelector," had a ").concat(a.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:t,childNode:a}}},v=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},p=[],u=!1,g=function(e){(e.children||[]).forEach(g),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},h=function(){u=!1,p.forEach(g),p.length=0},f=function(e){p.push(e),u||(u=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(h,{timeout:16}):setTimeout(h,16))},m=function(e){var i=e.domNode;if(e.properties){var t=e.properties.exitAnimation;if(t){i.style.pointerEvents="none";return void t(i,(function(){i.parentNode&&(i.parentNode.removeChild(i),f(e))}),e.properties)}}i.parentNode&&(i.parentNode.removeChild(i),f(e))},y=function(e,i,t){(function(e,i,t){if(i)for(var n=0,a=i;n<a.length;n++)b(a[n],e,void 0,t)})(e,i.children,t),i.text&&(e.textContent=i.text),function(e,i,t){if(i)for(var s=t.eventHandlerInterceptor,l=Object.keys(i),r=l.length,o=function(r){var o,d=l[r],v=i[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)_(e,v,!0);else if("classes"===d)for(var p=Object.keys(v),u=p.length,g=0;g<u;g++){var h=p[g];v[h]&&e.classList.add(h)}else if("styles"===d){var f=Object.keys(v),m=f.length;for(g=0;g<m;g++){var y=f[g],b=v[y];b&&(c(b),t.styleApplyer(e,y,b))}}else if("key"!==d&&null!=v){var w=typeof v;"function"===w?(0===d.lastIndexOf("on",0)&&(s&&(v=s(d,v,e,i)),"oninput"===d&&(o=v,v=function(e){o.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[d]=v):t.namespace===n?"href"===d?e.setAttributeNS(a,d,v):e.setAttribute(d,v):"string"===w&&"value"!==d&&"innerHTML"!==d?e.setAttribute(d,v):e[d]=v}},d=0;d<r;d++)o(d)}(e,i.properties,t),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,t,i.vnodeSelector,i.properties,i.children])},b=function(e,i,t,a){var s,r,c=0,o=e.vnodeSelector,d=i.ownerDocument;if(""===o)e.domNode?e.domNode.nodeValue=e.text:(r=e.domNode=d.createTextNode(e.text),void 0!==t?i.insertBefore(r,t):i.appendChild(r));else{for(var v=0;v<=o.length;++v){var p=o.charAt(v);if(v===o.length||"."===p||"#"===p){var u=o.charAt(c-1),g=o.slice(c,v);"."===u?r.classList.add(g):"#"===u?r.id=g:("svg"===g&&(a=l(a,{namespace:n})),void 0!==a.namespace?r=e.domNode=d.createElementNS(a.namespace,g):(r=e.domNode=e.domNode||((null===(s=e.properties)||void 0===s?void 0:s.is)?d.createElement(g,{is:e.properties.is}):d.createElement(g)),"input"===g&&e.properties&&void 0!==e.properties.type&&r.setAttribute("type",e.properties.type)),void 0!==t?i.insertBefore(r,t):r.parentNode!==i&&i.appendChild(r)),c=v+1}}y(r,e,a)}},_=function(e,i,t){i&&i.split(" ").forEach((function(i){i&&e.classList.toggle(i,t)}))};i=function(e,t,p){var u=e.domNode,g=!1;if(e===t)return!1;var h=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var f=u.ownerDocument.createTextNode(t.text);return u.parentNode.replaceChild(f,u),t.domNode=f,!0}t.domNode=u}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(p=l(p,{namespace:n})),e.text!==t.text&&(h=!0,void 0===t.text?u.removeChild(u.firstChild):u.textContent=t.text),t.domNode=u,h=function(e,t,n,a,l){if(n===a)return!1;for(var c,p=(n=n||s).length,u=(a=a||s).length,g=0,h=0,f=!1;h<u;){var y=g<p?n[g]:void 0,_=a[h];if(void 0!==y&&r(y,_))f=i(y,_,l)||f,g++;else{var w=o(n,_,g+1);if(w>=0){for(c=g;c<w;c++)m(n[c]),d(n,c,e,"removed");f=i(n[w],_,l)||f,g=w+1}else b(_,t,g<p?n[g].domNode:void 0,l),v(_),d(a,h,e,"added")}h++}if(p>g)for(c=g;c<p;c++)m(n[c]),d(n,c,e,"removed");return f}(t,u,e.children,t.children,p)||h,h=function(e,i,t,s){if(t){for(var l=!1,r=Object.keys(t),o=r.length,d=0;d<o;d++){var v=r[d],p=t[v],u=i[v];if("class"===v)u!==p&&(_(e,u,!1),_(e,p,!0));else if("classes"===v)for(var g=e.classList,h=Object.keys(p),f=h.length,m=0;m<f;m++){var y=h[m],b=!!p[y];b!==!!u[y]&&(l=!0,b?g.add(y):g.remove(y))}else if("styles"===v){var w=Object.keys(p),k=w.length;for(m=0;m<k;m++){var x=w[m],L=p[x];L!==u[x]&&(l=!0,L?(c(L),s.styleApplyer(e,x,L)):s.styleApplyer(e,x,""))}}else if(p||"string"!=typeof u||(p=""),"value"===v){var $=e[v];$!==p&&(e["oninput-value"]?$===e["oninput-value"]:p!==u)&&(e[v]=p,e["oninput-value"]=void 0),p!==u&&(l=!0)}else if(p!==u){var j=typeof p;"function"===j&&s.eventHandlerInterceptor||(s.namespace===n?"href"===v?e.setAttributeNS(a,v,p):e.setAttribute(v,p):"string"===j&&"innerHTML"!==v?"role"===v&&""===p?e.removeAttribute(v):e.setAttribute(v,p):e[v]!==p&&(e[v]=p),l=!0)}}return l}}(u,e.properties,t.properties,p)||h,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[u,p,t.vnodeSelector,t.properties,t.children]);return h&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(u,t.properties,e.properties),g};var w=function(e,t){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var a=e;e=n,i(a,n,t)},domNode:e.domNode}},k={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,t){"-"===i.charAt(0)?e.style.setProperty(i,t):e.style[i]=t}},x=function(e){return l(k,e)},L={create:function(e,i){return i=x(i),b(e,document.createElement("div"),void 0,i),w(e,i)},append:function(e,i,t){return t=x(t),b(i,e,void 0,t),w(i,t)},insertBefore:function(e,i,t){return t=x(t),b(i,e.parentNode,e,t),w(i,t)},merge:function(e,i,t){return t=x(t),i.domNode=e,y(e,i,t),w(i,t)},replace:function(e,i,t){return t=x(t),b(i,e.parentNode,e,t),e.parentNode.removeChild(e),w(i,t)}},$=function(e,i,t){for(var n=0,a=i.length;n<a;n++){var s=i[n];Array.isArray(s)?$(e,s,t):null!=s&&!1!==s&&("string"==typeof s&&(s={vnodeSelector:"",properties:void 0,children:void 0,text:s.toString(),domNode:null}),t.push(s))}};var j;j=Array.prototype.find?function(e,i){return e.find(i)}:function(e,i){return e.filter(i)[0]};var O=function(e,i,t){return function(){return n};function n(n){t("domEvent",n);var a=i(),s=function(e,i){for(var t=[];e&&e!==i;)t.push(e),e=e.parentNode;return t}(n.currentTarget,a.domNode);s.reverse();var l,r=function(e,i){var t=e;return i.forEach((function(e){t=t&&t.children?j(t.children,(function(i){return i.domNode===e})):void 0})),t}(a.getLastRender(),s);return e.scheduleRender(),r&&(l=r.properties["on".concat(n.type)].apply(r.properties.bind||this,arguments)),t("domEventProcessed",n),l}};e.createCache=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(t,n){if(e)for(var a=0;a<t.length;a++)e[a]!==t[a]&&(i=void 0);return i||(i=n(),e=t),i}}},e.createMapping=function(e,i,t){var n=[],a=[];return{results:a,map:function(s){for(var l=s.map(e),r=a.slice(),c=0,o=0;o<s.length;o++){var d=s[o],v=l[o];if(v===n[c])a[o]=r[c],t(d,r[c],o),c++;else{for(var p=!1,u=1;u<n.length+1;u++){var g=(c+u)%n.length;if(n[g]===v){a[o]=r[g],t(s[o],r[g],o),c=g+1,p=!0;break}}p||(a[o]=i(d,o))}}a.length=s.length,n=l}}},e.createProjector=function(e){var i,t,n=x(e),a=n.performanceLogger,s=!0,l=!1,r=[],c=[],o=function(e,t,s){var l;n.eventHandlerInterceptor=O(i,(function(){return l}),a),l=e(t,s(),n),r.push(l),c.push(s)},d=function(){if(t=void 0,s){s=!1,a("renderStart",void 0);for(var e=0;e<r.length;e++){var i=c[e]();a("rendered",void 0),r[e].update(i),a("patched",void 0)}a("renderDone",void 0),s=!0}};return i={renderNow:d,scheduleRender:function(){t||l||(t=requestAnimationFrame(d))},stop:function(){t&&(cancelAnimationFrame(t),t=void 0),l=!0},resume:function(){l=!1,s=!0,i.scheduleRender()},append:function(e,i){o(L.append,e,i)},insertBefore:function(e,i){o(L.insertBefore,e,i)},merge:function(e,i){o(L.merge,e,i)},replace:function(e,i){o(L.replace,e,i)},detach:function(e){for(var i=0;i<c.length;i++)if(c[i]===e)return c.splice(i,1),r.splice(i,1)[0];throw new Error("renderFunction was not found")}}},e.dom=L,e.h=function(e,i,t){if(Array.isArray(i))t=i,i=void 0;else if(i&&("string"==typeof i||i.vnodeSelector)||t&&("string"==typeof t||t.vnodeSelector))throw new Error("h called with invalid arguments");var n,a;return t&&1===t.length&&"string"==typeof t[0]?n=t[0]:t&&($(e,t,a=[]),0===a.length&&(a=void 0)),{vnodeSelector:e,properties:i,children:a,text:""===n?void 0:n,domNode:null}}}(x.exports);const L=x.exports.createProjector(),$=20,j={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function O(i="vertical"){const t="stroke:rgb(200, 200, 200);stroke-width:1";return"vertical"===i?e("svg",{height:"4",width:"10"},e("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:t})):e("svg",{height:"10",width:"10"},e("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:t}))}function z(e,i="vertical"){const t=document.createElement("div");return t.style.height=`${$}px`,t.className=j.univariateAboveAndBelowSymbol,null!=e&&(t.style.opacity=e.toString()),L.append(t,O.bind(null,i)),t}function R(e,i,t="vertical",n){e.infos.forEach(((e,a)=>{if(n&&2===a)e.preview=z(i,t);else{const{size:i}=e,n=k(i)+("horizontal"===t?20:10),a="div"===e.preview.tagName.toLowerCase(),s=a?e.preview:document.createElement("div");s&&(s.className=j.univariateAboveAndBelowSymbol),"horizontal"===t?s&&(s.style.width=`${n}px`):s&&(s.style.height=`${n}px`),a||s&&s.appendChild(e.preview),e.preview=s}}))}function E(e,i="classic"){const t=e.infos,n=t[0].size,a=t[t.length-1].size;return"classic"===i?(k(n)+10)/2:(k(n)-k(a))/2}async function A(e,i){if(!e)return Promise.resolve(null);const t=e.infos.map((e=>e.color)),[n]=await _(["esri/symbols/support/symbolUtils"]),a=n.renderColorRampPreviewHTML("full"===i.type?t:"above"===i.type?t.slice(0,3):t.slice(2,5),{width:i.width,height:i.height,align:i.rampAlignment,effectList:i.effectList});return a.className=j.colorRamp,null!=i.opacity&&(a.style.opacity=i.opacity.toString()),Promise.resolve(a)}function F(e,i,t,n="vertical"){const a=function(e,i,t,n="vertical"){let a=0;const s=e.infos,l=Math.floor(s.length/2),r="full"===i||"below"===i?s.length-1:l;for(let e="full"===i||"above"===i?0:l;e<=r;e++)a+=t&&e===l?"horizontal"===n?10:$:k(s[e].size)+("horizontal"===n?20:10);return Math.round(a)}(e,i,t,n),s=e.infos,l=Math.floor(s.length/2),r="full"===i||"above"===i?0:l,c="full"===i||"below"===i?s.length-1:l,o=t?"vertical"===n?$:10:0,d="vertical"===n?10*("full"===i?2:1):20*("full"===i?2:1);return Math.round(a-(k("full"===i?s[r].size+s[c].size:"above"===i?s[r].size:s[c].size)/2+o/2+d/2))}const M="esri-legend__layer-body",C="esri-legend__layer-row",I="esri-legend__layer-cell esri-legend__layer-cell--info",T="esri-legend__layer-cell esri-legend__layer-cell--symbols",N="esri-legend__symbol",S="esri-legend__ramps",P="esri-legend__size-ramp",H="esri-legend__ramp-labels",D="esri-legend__ramp-label",q="esri-univariate-above-and-below-ramp__label",B={display:"flex",alignItems:"flex-start"},U={marginLeft:"3px"},V={display:"table-cell",verticalAlign:"middle"},W=class{constructor(e){i(this,e),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0,this.intLegendId=void 0}handleFilterModeChange(){a(this.filterMode,this.legendvm.view)}async connectedCallback(){if(this.handles)return;const[e]=await _(["esri/core/Handles"]);this.handles=new e}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0});const[e,i]=await _(["esri/intl","esri/core/reactiveUtils"]);this.reactiveUtils=i,this.intl=e}async componentDidLoad(){this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.view}));const e=async()=>{var e,i,t,n;try{const a=await(null===(t=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===t?void 0:t.load());await(null===(n=null==a?void 0:a.basemap)||void 0===n?void 0:n.load());const s=null==a?void 0:a.allLayers,l=null==s?void 0:s.map((e=>e.load())),r=(await Promise.allSettled(l)).map((e=>"fulfilled"===(null==e?void 0:e.status)&&(null==e?void 0:e.value)?e.value:null)).filter((e=>!!e)),o=[];r.forEach((e=>{var i;(null===(i=this.legendvm)||void 0===i?void 0:i.view)&&o.push(this.legendvm.view.whenLayerView(e))})),await Promise.allSettled(o);const d=await u(this.legendvm,this.reactiveUtils);p.set("data",Object.assign(Object.assign({},c.data),d)),this.isLoading=!1,this.setupWatchersAndListeners()}catch(e){console.error(e),this.isLoading=!1}};this.legendvm.view.when(e),this.legendvm.view.map.layers.on("after-changes",e)}catch(e){this.isLoading=!1}}disconnectedCallback(){var e,i;null===(e=this.handles)||void 0===e||e.removeAll(),null===(i=this.handles)||void 0===i||i.destroy(),this.handles=null}render(){var i,t,n;const a=this.renderFilteredLayers();return this.isLoading?e("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:null===(i=this.messages)||void 0===i?void 0:i.loading,text:null===(t=this.messages)||void 0===t?void 0:t.loading}):e("div",{key:"interactive-legend-classic-container",class:s(this.el)},(null==a?void 0:a.length)>0?a:e("div",{class:"esri-legend__message"},null===(n=this.messages)||void 0===n?void 0:n.noLegend))}renderFilteredLayers(){var e,i;return(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos)||void 0===i?void 0:i.toArray()).map((e=>this.renderLegendForLayer(e))).filter((e=>!!e))}renderLegendForLayer(i,t){var n,a;if(!i.ready)return null;if(i.children.length){const a=i.children.map((e=>this.renderLegendForLayer(e,!0))).toArray();return e("instant-apps-interactive-legend-group-legend-element",{class:s(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,isChild:t},e("div",{style:{paddingLeft:"20px"},id:`${null===(n=null==i?void 0:i.layer)||void 0===n?void 0:n.id}-legend-layer`,slot:"content"},a))}const l=i.legendElements;if(l&&!l.length)return null;const r=l.map(((e,t)=>this.renderLegendForElement(e,i.layer,i.effectList,i,t))).filter((e=>!!e));return r.length?e("instant-apps-interactive-legend-layer-element",{class:s(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,messages:this.messages,isChild:t},e("div",{slot:"content",id:`${null===(a=null==i?void 0:i.layer)||void 0===a?void 0:a.id}-legend-layer`,class:"esri-legend__layer"},r)):null}renderLegendForElement(i,t,n,a,r,c,o){const d="color-ramp"===i.type,v="opacity-ramp"===i.type,p="size-ramp"===i.type;let u=null;const g=l(a,i,r),h="relationship-ramp"===(null==i?void 0:i.type);if("symbol-table"===i.type||p){const s=i.infos.map(((e,s)=>this.renderLegendForElementInfo(e,t,n,p,i,a,r,s,g,o||null))).filter((e=>!!e));s.length&&(u=e("div",{class:M},s))}else"color-ramp"===i.type||"opacity-ramp"===i.type||"heatmap-ramp"===i.type||"stretch-ramp"===i.type?u=this.renderLegendForRamp(i,t.opacity):"relationship-ramp"===i.type?u=e("instant-apps-interactive-legend-relationship",{class:s(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:a,legendElement:i,messages:this.messages}):"pie-chart-ramp"===i.type?u=this.renderPieChartRamp(i):"univariate-above-and-below-ramp"===i.type?u=this.renderUnivariateAboveAndBelowRamp(i,t.opacity,n):"univariate-color-size-ramp"===i.type&&(u=this.renderUnivariateColorSizeRamp(i,t.opacity,n));if(!u)return null;const f=i.title;let m=null;if("string"==typeof f)m=f;else if(f){const e=this.getTitle(this.messages,f,d||v);m=this.isRendererTitle(f,d||v)&&f.title?`${f.title} (${e})`:e}return e("instant-apps-interactive-legend-legend-element",{class:s(this.el),activeLayerInfo:a,isSizeRamp:p,isChild:c,isColorRamp:d,isRelationshipRamp:h,isInteractive:g,zoomTo:this.zoomTo,legendElement:i,titleText:m,legendvm:this.legendvm,legendElementIndex:r,messages:this.messages},e("div",{slot:"content"},u))}renderPieChartRamp(i){var t;return e("div",{innerHTML:`${null===(t=i.preview)||void 0===t?void 0:t.outerHTML}`})}async renderUnivariateAboveAndBelowRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i,t="vertical"){const n=e.infos;let a=n.find((({type:e})=>"size-ramp"===e)),s=n.find((({type:e})=>"color-ramp"===e));return a&&(a=Object.assign({},a),a.infos=[...a.infos],R(a,i,t,!0)),s&&(s=Object.assign({},s),s.infos=[...s.infos]),"horizontal"===t&&(null==a||a.infos.reverse(),null==s||s.infos.reverse()),{sizeRampElement:a,colorRampElement:s}}(i,t);if(!a)return null;const l=F(a,"above",!0),r=F(a,"below",!0),c=await A(s,{width:12,height:l,rampAlignment:"vertical",opacity:t,type:"above",effectList:n}),o=await A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"below",effectList:n}),d=E(a),v=a.infos.map((e=>e.label)),p=v.map(((i,t)=>{const n=2===t;return 0===t?e("div",{class:i?c?q:D:""},i):n?e("div",null):null})),u=v.length-1,g=Math.floor(v.length/2),h=v.map(((i,t)=>t===g||t===u?e("div",{class:i?c?q:D:""},i):null)),f={display:"table-cell",verticalAlign:"middle"},m={marginTop:`${d}px`},y={height:`${l}px`},b={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map(((i,t)=>e("div",{class:`${C} ${P}`},e("div",{class:N,style:f,innerHTML:`${i.preview.outerHTML}`}),c||t%2!=0?null:e("div",{class:I},v[t]))))),c?e("div",{style:m,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:H,style:y},p))),e("div",{style:U},e("div",{style:V},e("div",{class:S},o)),e("div",{style:V},e("div",{class:H,style:b},h)))):null)}renderUnivariateColorSizeRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i="vertical"){const t=e.infos;let n=t.find((({type:e})=>"size-ramp"===e)),a=t.find((({type:e})=>"color-ramp"===e));return n&&(n=Object.assign({},n),n.infos=[...n.infos],R(n,null,i,!1)),a&&(a=Object.assign({},a),a.infos=[...a.infos]),"horizontal"===i&&(null==n||n.infos.reverse(),null==a||a.infos.reverse()),{sizeRampElement:n,colorRampElement:a}}(i);if(!a)return null;const l=E(a),r=F(a,"full",!1),c=A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"full",effectList:n}),o=a.infos.length-1,d=a.infos.map(((i,t)=>0===t||t===o?e("div",{class:i.label?s?q:D:""},i.label):null)),v={display:"table-cell",verticalAlign:"middle"},p={marginTop:`${l}px`},u={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map((i=>e("div",{class:`${C} ${P}`},e("div",{class:N,style:v,innerHTML:`${i.preview.outerHTML}`}))))),e("div",{style:p,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:H,style:u},d)))))}renderLegendForRamp(i,t){var n;const a=i.infos,s="heatmap-ramp"===i.type,l="stretch-ramp"===i.type,r=i.preview,c="opacity-ramp"===i.type?"esri-legend__opacity-ramp":"";r&&(r.classList.add("esri-legend__color-ramp"),c&&r.classList.add(c)),null!=t&&r&&(r.style.opacity=t.toString());const o=a.map((i=>e("div",{class:i.label?D:""},s?this.messages[i.label]||i.label:l?this.getStretchStopLabel(i):i.label))),d={height:null===(n=null==r?void 0:r.style)||void 0===n?void 0:n.height};return e("div",{class:C},e("div",{class:T,style:Object.assign({},{width:"24px"})},e("div",{ref:e=>{var i;(null==e?void 0:e.firstChild)&&(null===(i=null==e?void 0:e.firstChild)||void 0===i||i.remove()),null==e||e.appendChild(r)},class:S})),e("div",{class:I},e("div",{class:H,style:Object.assign({},d)},o)))}getStretchStopLabel(e){return e.label?this.messages[e.label]+": "+("string"==typeof e.value?e.value:this.intl.formatNumber(e.value,{style:"decimal",notation:e.value.toString().includes("e")?"scientific":"standard"})):""}renderLegendForElementInfo(i,t,n,a,l,v,p,u,g,h){var f,m;if(i.type)return this.renderLegendForElement(i,t,n,v,p,!0,i);let b;if(i.preview?b=e("div",{class:N,innerHTML:`${i.preview.outerHTML}`}):i.src&&(b=this.renderImage(i,t,!1)),!b)return null;const _=a?` ${P}`:"";let w;const k=y(t),x=r(k,h);if(c.data){const e=o(k,t,i,x,u),n=d(x?null==x?void 0:x.nestedInfos:k);w=1===(null===(f=null==k?void 0:k.categories)||void 0===f?void 0:f.size)?!(null==e?void 0:e.selected):n||(null==e?void 0:e.selected)}return x&&!(null==i?void 0:i.value)||!g?e("div",{class:C},e("div",{class:`${T}${_}`},b),e("div",{class:`${I}`},this.getTitle(this.messages,i.label,!1)||"")):e("button",{onClick:this.applyFilter(i,t,u,h),class:`${C} instant-apps-interactive-legend__layer-row--interactive${w?" instant-apps-interactive-legend-element-info--selected":""}`},e("div",{class:`${T}${_}`},b),e("div",{class:`${I}`},this.getTitle(this.messages,i.label,!1)||""),this.featureCount?e("instant-apps-interactive-legend-count",{class:s(this.el),categoryId:x?l.title:null!==(m=i.label)&&void 0!==m?m:null==t?void 0:t.id,activeLayerInfo:v,legendvm:this.legendvm,messages:this.messages,selected:w,legendElement:l,infoIndex:u}):null)}renderImage(i,t,n){const{label:a,src:s,opacity:l}=i,r=n?" esri-legend__imagery-layer-image--stretched":"",c=n?"":` ${N}`,o={opacity:`${null!=l?l:t.opacity}`};return e("img",{alt:this.getTitle(this.messages,a,!1),src:s,width:i.width,height:i.height,class:`$${r}${c}`,style:o})}getTitle(e,i,t){var n,a;if(!i)return;if("string"==typeof i||"number"==typeof i)return i;if("value"in i||"unit"in i)return this.intl.substitute(null!==(n=null==e?void 0:e.dotValue)&&void 0!==n?n:"",i);if("colorName"in i||"bandName"in i)return e[i.colorName]+": "+(e[i.bandName]||i.bandName);if("showCount"in i)return i.showCount?e.clusterCountTitle:null;let s=null;return this.isRampTitle(i,t)?s=i.ratioPercentTotal?"showRatioPercentTotal":i.ratioPercent?"showRatioPercent":i.ratio?"showRatio":i.normField?"showNormField":i.field?"showField":null:this.isRendererTitle(i,t)&&(s=i.normField?"showNormField":i.normByPct?"showNormPct":i.field?"showField":null),s?null===(a=this.intl)||void 0===a?void 0:a.substitute("showField"===s?"{field}":e[s],{field:i.field,normField:i.normField}):""}isRampTitle(e,i){return i}isRendererTitle(e,i){return!i}setupWatchersAndListeners(){var e,i,n,a,s,l,r;const o=null===(a=null===(n=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===n?void 0:n.allLayers)||void 0===a?void 0:a.filter((e=>"feature"===(null==e?void 0:e.type)));o.forEach((async e=>{var i,t,n,a;try{const s=await(null===(t=null===(i=this.legendvm)||void 0===i?void 0:i.view)||void 0===t?void 0:t.whenLayerView(e)),l=`fLayerViewScale-${null==e?void 0:e.id}`;(null===(n=this.handles)||void 0===n?void 0:n.has(l))||null===(a=this.handles)||void 0===a||a.add(s.watch("visibleAtCurrentScale",(async()=>this.createDataForLayer(e))),l)}catch(e){}})),null==o||o.forEach((e=>{var i,t,n;const a=`fLayer-${null==e?void 0:e.id}`;(null===(i=this.handles)||void 0===i?void 0:i.has(a))||null===(t=this.handles)||void 0===t||t.add(null===(n=this.reactiveUtils)||void 0===n?void 0:n.watch((()=>null==e?void 0:e.visible),(async()=>this.createDataForLayer(e))),a)})),null===(s=this.handles)||void 0===s||s.add(this.reactiveUtils.when((()=>this.legendvm),(()=>{this.reactiveUtils.watch((()=>{var e,i;return null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating}),(()=>{var e,i;this.calculatingFeatureCount||(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when((()=>{var e,i;return!(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)}),(async()=>{const e=await v(this.legendvm,c.data);p.set("data",Object.assign(Object.assign({},c.data),e)),this.calculatingFeatureCount=!1}),{once:!0,initial:!0}))}),{initial:!0})}),{initial:!0,once:!0})),null===(l=this.handles)||void 0===l||l.add(this.reactiveUtils.on((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos}),"change",(async e=>{var i;const n=await u(this.legendvm,this.reactiveUtils);p.set("data",Object.assign(Object.assign({},c.data),n)),t(this.el),null===(i=this.handles)||void 0===i||i.add(this.reactiveUtils.on((()=>e.children),"change",(async()=>{const e=await u(this.legendvm,this.reactiveUtils);p.set("data",Object.assign(Object.assign({},c.data),e)),t(this.el)})))}))),null===(r=this.handles)||void 0===r||r.add(this.reactiveUtils.on((()=>{var e,i,t;return null===(t=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===t?void 0:t.layers}),"after-changes",(async()=>{const e=await v(this.legendvm,c.data);p.set("data",Object.assign(Object.assign({},c.data),e)),this.calculatingFeatureCount=!1})))}async createDataForLayer(e){var i;const t=p.get("data"),n=null==t?void 0:t[null==e?void 0:e.id],a=g(null===(i=this.legendvm)||void 0===i?void 0:i.activeLayerInfos),s=null==a?void 0:a.find((i=>{var t;return(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.id)===(null==e?void 0:e.id)}));if(!n&&s){const i=await h(this.legendvm,s,this.reactiveUtils);if(f({intLegendLayerData:i,layerId:null==e?void 0:e.id}),this.featureCount){const e=await v(this.legendvm,c.data);p.set("data",Object.assign(Object.assign({},c.data),e))}}}applyFilter(e,i,t,n){return async()=>{var a;const s=Object.assign({},null===(a=c.data)||void 0===a?void 0:a[null==i?void 0:i.id]);n?await m(s,e,t,this.filterMode,n):await m(s,e,t,this.filterMode),f({intLegendLayerData:s,layerId:null==i?void 0:i.id})}}get el(){return n(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};W.style=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}";export{W as instant_apps_interactive_legend_classic}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{h as t,r as e,c as i,H as s,d as n,g as a}from"./p-6eb37ed2.js";import{e as o,b as r}from"./p-441f1992.js";import{c}from"./p-1c249530.js";import{g as l}from"./p-aaa56cbf.js";import{c as h,d as p}from"./p-42552409.js";import{c as d,s as m,d as b,u as f}from"./p-6e3f1d71.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";
6
+ import{h as t,r as e,c as i,H as s,d as n,g as a}from"./p-6eb37ed2.js";import{e as o,b as r}from"./p-66cee72b.js";import{c}from"./p-1c249530.js";import{g as l}from"./p-aaa56cbf.js";import{c as h,d as p}from"./p-8d453a3a.js";import{c as d,s as m,d as b,u as f}from"./p-a5fc6ab7.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -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{d as o}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(o){return o+"º"}};o.locale(e,null,!0);export{e as default}
6
+ import{d as o}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(o){return o+"º"}};o.locale(e,null,!0);export{e as default}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as n,F as i,H as a,g as s}from"./p-6eb37ed2.js";import{s as o}from"./p-441f1992.js";import{c,s as r,a as l}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
6
+ import{r as t,c as e,h as n,F as i,H as a,g as s}from"./p-6eb37ed2.js";import{s as o}from"./p-66cee72b.js";import{c,s as r,a as l}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -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,c as a,g as t,h as i,H as c}from"./p-6eb37ed2.js";import{g as o}from"./p-2058b5d9.js";import{E as n}from"./p-80cb7c73.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(t){e(this,t),this.layoutChanged=a(this,"layoutChanged",7),this._translations=void 0}get el(){return t(this)}_layoutMode=n.GRID;layoutChanged;async componentWillLoad(){await this._getTranslations()}render(){return i(c,{key:"7c6f114c7869bdcb524db517c95574aeb9f29155"},i("div",{key:"f8769f2c6b097a562962006aaa5bfdb81d812edc",class:"display-flex"},i("div",{key:"f82915c927a606a5c33dc92e5cf5f635e4decaaf",class:"display-flex action-center"},i("calcite-icon",{key:"83f787675dbe08bafc3f92726455994ed23a85d9",class:"icon icon-color",icon:"information",id:"app-information-icon",scale:"s"}),i("calcite-popover",{key:"b8a8d4b5b1d5ee151800f34d3d47642b51a0a691",closable:!0,label:"",referenceElement:"app-information-icon"},i("span",{key:"c02afded78e72617bcb38a68fee37715065ac42e",class:"tooltip-message"},this._translations.appInfo))),i("div",{key:"35f9db2d7e71945ab7840fbc698765159988da9b",class:"header-text"},this._translations.layout),this._getAction("grid-background",n.GRID,this._translations.grid),this._getAction("vertical-background",n.VERTICAL,this._translations.vertical),this._getAction("horizontal-background",n.HORIZONTAL,this._translations.horizontal)))}_getAction(e,a,t){return i("div",null,i("calcite-action",{alignment:"center",appearance:"transparent",compact:!1,id:e,indicator:a===this._layoutMode,onClick:()=>{this._setLayoutMode(a)},text:""},i("div",{class:e+" img-background"})),i("calcite-tooltip",{label:"",placement:"bottom","reference-element":e},i("span",null,t)))}_setLayoutMode(e){this._layoutMode=e,this.layoutChanged.emit(this._layoutMode)}async _getTranslations(){const e=await o(this.el);this._translations=e[0]}};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}
6
+ import{r as e,c as a,g as t,h as i,H as c}from"./p-6eb37ed2.js";import{g as o}from"./p-2058b5d9.js";import{E as n}from"./p-80cb7c73.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(t){e(this,t),this.layoutChanged=a(this,"layoutChanged",7),this._translations=void 0}get el(){return t(this)}_layoutMode=n.GRID;layoutChanged;async componentWillLoad(){await this._getTranslations()}render(){return i(c,{key:"2fe2540a25e70ec6785aa97ade592a93c1112ecf"},i("div",{key:"df036d69f984e688c560d60279c463de9393d0f7",class:"display-flex"},i("div",{key:"b143b92ebec8a800466cee16e47b60afd768861e",class:"display-flex action-center"},i("calcite-icon",{key:"5b787b3499c638e1e54eddf8b10448fe782aeb15",class:"icon icon-color",icon:"information",id:"app-information-icon",scale:"s"}),i("calcite-popover",{key:"372cdbf2f14d7305b0dcb2e398962e39922f287d",closable:!0,label:"",referenceElement:"app-information-icon"},i("span",{key:"4a8cc85bac0524c1dac37df79026bc4ec9ac4588",class:"tooltip-message"},this._translations.appInfo))),i("div",{key:"25da1130e266e7ba24abc1caa9b8a72d858c07a1",class:"header-text"},this._translations.layout),this._getAction("grid-background",n.GRID,this._translations.grid),this._getAction("vertical-background",n.VERTICAL,this._translations.vertical),this._getAction("horizontal-background",n.HORIZONTAL,this._translations.horizontal)))}_getAction(e,a,t){return i("div",null,i("calcite-action",{alignment:"center",appearance:"transparent",compact:!1,id:e,indicator:a===this._layoutMode,onClick:()=>{this._setLayoutMode(a)},text:""},i("div",{class:e+" img-background"})),i("calcite-tooltip",{label:"",placement:"bottom","reference-element":e},i("span",null,t)))}_setLayoutMode(e){this._layoutMode=e,this.layoutChanged.emit(this._layoutMode)}async _getTranslations(){const e=await o(this.el);this._translations=e[0]}};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}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,h as i,g as t}from"./p-6eb37ed2.js";import{x as s}from"./p-441f1992.js";import{w as r,s as n}from"./p-3792492a.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";
6
+ import{r as e,h as i,g as t}from"./p-6eb37ed2.js";import{x as s}from"./p-66cee72b.js";import{w as r,s as n}from"./p-3792492a.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -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,g as s,a as e,h as a,H as l}from"./p-6eb37ed2.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-2058b5d9.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-5dcec135.js";import{c as b,r as m}from"./p-dec62e5d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"019074cdfaddd8121a6ed255f42dea427aac9440"},a("calcite-shell",{key:"ece21e206f6519627bc8f139c35f68838eb701a2"},a("calcite-action-bar",{key:"92883d5df9fcf43584f3934bf7f61640afed2bdb",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
6
+ import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-6eb37ed2.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-2058b5d9.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-5dcec135.js";import{c as b,r as m}from"./p-dec62e5d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"820b1a77bfcc5ef2a06036a833f054b58febfe5c"},a("calcite-shell",{key:"7989860fc98aa5d816ca66be5e57f04aa75520a5"},a("calcite-action-bar",{key:"9b298be45c1562cd2df2197c688c5b2aff63c6ec",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -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{d as e}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var a={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,a){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?a[0]:a[1]:a[2]},relativeTimeFormatter:function(e,d,t,r){var m=a.words[t];if(1===t.length)return"y"===t&&d?"jedna godina":r||d?m[0]:m[1];var o=a.correctGrammarCase(e,m);return"yy"===t&&d&&"%d godinu"===o?e+" godina":o.replace("%d",e)}},d={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_Četvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._Čet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:a.relativeTimeFormatter,mm:a.relativeTimeFormatter,h:a.relativeTimeFormatter,hh:a.relativeTimeFormatter,d:a.relativeTimeFormatter,dd:a.relativeTimeFormatter,M:a.relativeTimeFormatter,MM:a.relativeTimeFormatter,y:a.relativeTimeFormatter,yy:a.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};e.locale(d,null,!0);export{d as default}
6
+ import{d as e}from"./p-fe0add26.js";import"./p-6eb37ed2.js";import"./p-365169c2.js";import"./p-66cee72b.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-2caf1f94.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-8d453a3a.js";import"./p-1c249530.js";import"./p-174aa4da.js";import"./p-0ef9d36b.js";import"./p-12be6545.js";import"./p-d9e930c8.js";import"./p-a5fc6ab7.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var a={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,a){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?a[0]:a[1]:a[2]},relativeTimeFormatter:function(e,d,t,r){var m=a.words[t];if(1===t.length)return"y"===t&&d?"jedna godina":r||d?m[0]:m[1];var o=a.correctGrammarCase(e,m);return"yy"===t&&d&&"%d godinu"===o?e+" godina":o.replace("%d",e)}},d={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_Četvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._Čet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:a.relativeTimeFormatter,mm:a.relativeTimeFormatter,h:a.relativeTimeFormatter,hh:a.relativeTimeFormatter,d:a.relativeTimeFormatter,dd:a.relativeTimeFormatter,M:a.relativeTimeFormatter,MM:a.relativeTimeFormatter,y:a.relativeTimeFormatter,yy:a.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};e.locale(d,null,!0);export{d as default}