@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 i,c as t,g as e,h as s,H as a}from"./p-6eb37ed2.js";import{a as h,l,g as n}from"./p-2058b5d9.js";import{e as o,h as r,k as c,l as d,c as p,m as b,n as g,o as f}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5dcec135.js";import{d as v,a as _}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 S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}get el(){return e(this)}_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"6753158d00a33dd5dfbb1f22cc27388baf4c0b5e"},this._getMapLayerPicker(),s("div",{key:"082c6be48d3dfbe2e39be2c462959c7772a91d40",class:"border-bottom"}),s("div",{key:"0e8133a809b05bef34c2f19adeff43c1e57cc002",class:"padding-top-sides-1"},s("div",{key:"4434b5b4d073f3ba9a7e44b82078b9b81733025b",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"6f01e27e06ea365de6ff98df3f9edd973d87117c",class:t},s("map-draw-tools",{key:"24ffe562d080955f2aacfd080c0baa1997f8eaab",active:!0,class:i,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"4c7cf401b5bcc7e4adef34e140d22676fce8ebbc",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this._searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=this._searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),s("div",{class:i},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:t,geometries:this.geometries,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this._useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this._useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this._useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.url===this.selectLayerView.layer.url&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"ff0ad2a97a113ccfaa10d5219d93f5b07319fb33"},s("calcite-select",{key:"4675536d2732329715198c54b5c03c8748d7732a",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0,this._labelInfoElement.selectedOption=e)}))}};k.style=":host{display:block}";const P=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"b3693694a5d007dd6add79848d1254a1ee52b8e3"},s("div",{key:"c464770d28fb981e9fba4d5cb3709684e41cbdc3",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"2972637e3194c86d097a491678eb8b508bbf2fd2",class:"display-flex"},s("calcite-label",{key:"242295f4d8f2f17554b99748795a5bc1e1f05dcb",class:"font-bold width-full label-margin-0"},s("div",{key:"f2643bf44301aaa0a1d67595dac537c6bad21928",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"1d068bd809b36b4aba7e3836d2fc8b33d6de5d3e",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"e97947859dfa0a718595bfb54c843b6358ece94e",enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"e78a114a50aec427b6f6f0e4f8096447e464ba7e",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"b7abd37b2907c0ef98059fd280dd30cfa4eea2d2",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"3d5869d473e7c8068969e07619fc891268422f2b",class:"padding-1"},s("div",{key:"b89ed77287dc4ae5a6f7a7589faccbbc4da3b524",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"1f0d85ab4ed9af445ff8b9bc5c7d4be80733f573",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"229473e79f8ddc6c95ad0a09fdd3fef08c176b1e",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"27f7e1f70da8ae44cab4d2643d58b0bfe8e3ad6c",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"b6c4199b48d7cedec36510572de7f63ee105b605",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"c3047bd7b4564b171ed8cb7c7842b64e7a4677f8",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"14408ec1abdbb64e4c4ccc473b3615d7036399f7"},s("map-draw-tools",{key:"fe946dc9ae433dabe45f5da695cde3daaa9e057d",active:!0,drawMode:u.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"a532f7b86708d6839449397841a68f2258645410"}),s("calcite-list",{key:"ef51c27c396c52c8fcb1c512957b3b2e276306e4",class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=g(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await f(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};P.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{S as map_select_tools,k as pdf_download,P as refine_selection}
6
+ import{r as i,c as t,g as e,h as s,H as a}from"./p-6eb37ed2.js";import{a as h,l,g as n}from"./p-2058b5d9.js";import{e as o,h as r,k as c,l as d,c as p,m as b,n as g,o as f}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5dcec135.js";import{d as v,a as _}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 S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}get el(){return e(this)}_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this._searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this._useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"584547eb58f893968b41755b6789b68ad916ac01"},this._getMapLayerPicker(),s("div",{key:"77788508e268292ed831fa100b333bafe934af3a",class:"border-bottom"}),s("div",{key:"4da06fe2c171e2c0cf84a628bce7f1ccf9f09fdc",class:"padding-top-sides-1"},s("div",{key:"853ae3b6f19bfb1401b54f0b138ae56cadd71c65",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"aa296155429affd445ba2634a98ed90f137a7d8b",class:t},s("map-draw-tools",{key:"89d25f5c7b9b0d57ac0d5955411a6190552859a0",active:!0,class:i,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"807011117da4e554c85408a804c30c7bd22edcaa",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this._searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=this._searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this._searchDistanceEnabled,onCalciteSwitchChange:()=>this._searchDistanceEnabled=!this._searchDistanceEnabled})),s("div",{class:i},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:t,geometries:this.geometries,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this._useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=this._useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this._useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this._searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this._useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this._useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this._useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this._useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.url===this.selectLayerView.layer.url&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"b1ec5293d9fb50a0cc21f0036e3ba58e2d7f8463"},s("calcite-select",{key:"69c6dce061f45fcc7dfbedc613a47697965905ca",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0,this._labelInfoElement.selectedOption=e)}))}};k.style=":host{display:block}";const P=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"c15a94d88b6c6f37d3b954abec29263731d346c6"},s("div",{key:"2c05eec571d8086d444fbc8caa3ed1f88ebba741",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"53fabeccc3a5340e4c6a1d2ae788276586ab4f22",class:"display-flex"},s("calcite-label",{key:"e7631b2fe92ad20dc889c610bebb22cde4746a04",class:"font-bold width-full label-margin-0"},s("div",{key:"5c08cc3687f6249ac729e342fecbf065b4afff98",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"257ce613eeab2783db77727b02207d1c7acfeb0a",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"4d5bf2dd7e9d103c9b1ae82310ed95445244908e",enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"d800b4ec7cf2b9ec4a6a1f5d4eed54ce9d2d2056",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"9534d79300f88054a3ae38d9c6ad3663c8a49e25",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"d5721c09e4a06f25af5b6c11a045ddc6c7908800",class:"padding-1"},s("div",{key:"e1478cf6f32aa403724044844a98f299110b7438",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"5fcee5784bbba1c99693a162aee90220ff8dca79",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"cdab206ed08aced52b709fa92d68814170644eb0",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"c1d4f8a0ba5c65371f7b23ed21068d70d3030ff8",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"4cdf63bd76b1766331957375df7e2e107543a800",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"7036ff43d1cf74e51ace7f28a83873d08207a162",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"d6e21702ad38fc5c17f0e5bbf3e130b9cbe5a8b4"},s("map-draw-tools",{key:"156d236374b4ed47c1791fb0bb0229ea99511c27",active:!0,drawMode:u.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"df3db723ad2f9df29c91b3c09dcfbf4fc1156c7c"}),s("calcite-list",{key:"a70df76b7df965d7cf39e9b283003d57f59543f3",class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=g(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await f(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};P.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{S as map_select_tools,k as pdf_download,P as refine_selection}
@@ -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 s,H as o,g as i}from"./p-6eb37ed2.js";import{h as a,t as c}from"./p-441f1992.js";import{c as n,d as r,H as l}from"./p-54fa7a94.js";import{g as h}from"./p-aaa56cbf.js";import{c as d,d as b,u as p,I as f}from"./p-1ce2608d.js";import{i as m}from"./p-64a34d92.js";import{c as g,d as u,g as k}from"./p-fd730974.js";import{c as v,s as x,a as y}from"./p-3e828614.js";import{C as z}from"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-27d462c0.js";
6
+ import{r as t,c as e,h as s,H as o,g as i}from"./p-6eb37ed2.js";import{h as a,t as c}from"./p-66cee72b.js";import{c as n,d as r,H as l}from"./p-365169c2.js";import{g as h}from"./p-aaa56cbf.js";import{c as d,d as b,u as p,I as f}from"./p-1ce2608d.js";import{i as m}from"./p-64a34d92.js";import{c as g,d as u,g as k}from"./p-2caf1f94.js";import{c as v,s as x,a as y}from"./p-3e828614.js";import{C as z}from"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-27d462c0.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,f as e,h as s,H as i,g as a}from"./p-6eb37ed2.js";import{e as o,b as h,d as n}from"./p-441f1992.js";import{s as r,a as c,c as l}from"./p-3e828614.js";import{c as d,d as p}from"./p-42552409.js";import{u,c as f,s as m,d as b}from"./p-6e3f1d71.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-1c249530.js";const g=class{constructor(e){t(this,e),this.menuItems=[],this.handleMenuSlotChange=t=>{this.menuItems=o(t),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}handleGlobalAttributesChanged(){e(this),this.setMenuItemLayout(this.menuItems,this.layout)}handleLayoutChange(t){this.setMenuItemLayout(this.menuItems,t)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){d(this),f(this)}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){c(this)}disconnectedCallback(){p(this),b(this)}async setFocus(){await l(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(t){const e=t.target,s=t.detail.children,i=t.detail.event.key;t.stopPropagation(),"ArrowDown"===i?"vertical"===e.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&s[s.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):"Escape"===i&&this.focusParentElement(t.target),t.preventDefault()}focusParentElement(t){const e=t.parentElement;e&&(n(e),e.open=!1)}setMenuItemLayout(t,e){t.forEach((t=>{t.layout=e,"menubar"===this.getEffectiveRole()&&(t.isTopLevelItem=!0,t.topLevelMenuLayout=this.layout)}))}getEffectiveRole(){return this.el.getAttribute("role")||"menubar"}render(){return s(i,{key:"6d6065316ef082e9be968dce0b495e42da835655"},s("ul",{key:"6ec873b11665c3e3d5e2c019acd8ac60964119ec","aria-label":this.label,role:this.getEffectiveRole()},s("slot",{key:"9a5593e91faadc44b980f82d75c7cfa87cbb81ce",onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{role:["handleGlobalAttributesChanged"],layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};g.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{g as calcite_menu}
6
+ import{r as t,f as e,h as s,H as i,g as a}from"./p-6eb37ed2.js";import{e as o,b as h,d as n}from"./p-66cee72b.js";import{s as r,a as c,c as l}from"./p-3e828614.js";import{c as d,d as p}from"./p-8d453a3a.js";import{u,c as f,s as m,d as b}from"./p-a5fc6ab7.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-1c249530.js";const g=class{constructor(e){t(this,e),this.menuItems=[],this.handleMenuSlotChange=t=>{this.menuItems=o(t),this.setMenuItemLayout(this.menuItems,this.layout)},this.label=void 0,this.layout="horizontal",this.messageOverrides=void 0,this.messages=void 0,this.defaultMessages=void 0,this.effectiveLocale=""}handleGlobalAttributesChanged(){e(this),this.setMenuItemLayout(this.menuItems,this.layout)}handleLayoutChange(t){this.setMenuItemLayout(this.menuItems,t)}onMessagesChange(){}effectiveLocaleChange(){u(this,this.effectiveLocale)}connectedCallback(){d(this),f(this)}async componentWillLoad(){r(this),await m(this)}componentDidLoad(){c(this)}disconnectedCallback(){p(this),b(this)}async setFocus(){await l(this),this.el.focus()}calciteInternalNavMenuItemKeyEvent(t){const e=t.target,s=t.detail.children,i=t.detail.event.key;t.stopPropagation(),"ArrowDown"===i?"vertical"===e.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowUp"===i?"vertical"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&s[s.length-1].setFocus():"ArrowRight"===i?"horizontal"===this.layout?h(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():"ArrowLeft"===i?"horizontal"===this.layout?h(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):"Escape"===i&&this.focusParentElement(t.target),t.preventDefault()}focusParentElement(t){const e=t.parentElement;e&&(n(e),e.open=!1)}setMenuItemLayout(t,e){t.forEach((t=>{t.layout=e,"menubar"===this.getEffectiveRole()&&(t.isTopLevelItem=!0,t.topLevelMenuLayout=this.layout)}))}getEffectiveRole(){return this.el.getAttribute("role")||"menubar"}render(){return s(i,{key:"6d6065316ef082e9be968dce0b495e42da835655"},s("ul",{key:"6ec873b11665c3e3d5e2c019acd8ac60964119ec","aria-label":this.label,role:this.getEffectiveRole()},s("slot",{key:"9a5593e91faadc44b980f82d75c7cfa87cbb81ce",onSlotchange:this.handleMenuSlotChange})))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{role:["handleGlobalAttributesChanged"],layout:["handleLayoutChange"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};g.style=":host{display:flex}ul{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}";export{g as calcite_menu}
@@ -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,c as t,h as i,H as s,g as a}from"./p-6eb37ed2.js";import{b as l}from"./p-441f1992.js";import{i as n}from"./p-64a34d92.js";import{c as o,u as c,d as r,I as h}from"./p-1ce2608d.js";import{g as d}from"./p-27d462c0.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
6
+ import{r as e,c as t,h as i,H as s,g as a}from"./p-6eb37ed2.js";import{b as l}from"./p-66cee72b.js";import{i as n}from"./p-64a34d92.js";import{c as o,u as c,d as r,I as h}from"./p-1ce2608d.js";import{g as d}from"./p-27d462c0.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,12 +3,12 @@
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,f as e,h as i,H as o,g as n,c as a}from"./p-6eb37ed2.js";import{t as s,H as r,f as c,r as l}from"./p-441f1992.js";import{g as d}from"./p-aaa56cbf.js";import{c as h,d as p,u as f,I as b}from"./p-1ce2608d.js";import{s as u,a as m,c as v}from"./p-3e828614.js";import{c as g,d as x}from"./p-42552409.js";import{c as y}from"./p-1c249530.js";import{g as k}from"./p-27d462c0.js";import{u as w,c as z,s as j,d as E}from"./p-6e3f1d71.js";import{i as C}from"./p-4b9b7778.js";import{f as H,c as D,b as L,a as P,r as F,F as R}from"./p-2afb3a2b.js";import{d as $,a as O,c as A,u as I}from"./p-4182a628.js";import{o as S}from"./p-16261018.js";import{H as T}from"./p-1b229454.js";import{F as B}from"./p-4920ee12.js";import{i as M}from"./p-64a34d92.js";import"./p-8bfa18b7.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.js";
6
+ import{r as t,f as e,h as i,H as o,g as a,c as n}from"./p-6eb37ed2.js";import{t as s,H as r,f as c,q as l}from"./p-66cee72b.js";import{g as d}from"./p-aaa56cbf.js";import{c as h,d as p,u as f,I as b}from"./p-1ce2608d.js";import{s as u,a as m,c as v}from"./p-3e828614.js";import{c as g,d as x}from"./p-8d453a3a.js";import{c as y}from"./p-1c249530.js";import{g as k}from"./p-27d462c0.js";import{u as w,c as z,s as j,d as E}from"./p-a5fc6ab7.js";import{i as C}from"./p-4b9b7778.js";import{f as H,c as D,b as L,a as P,r as F,F as R}from"./p-984ce9da.js";import{d as $,a as O,c as A,u as I}from"./p-174aa4da.js";import{o as S}from"./p-6e118057.js";import{H as T}from"./p-1b229454.js";import{F as B}from"./p-4920ee12.js";import{i as M}from"./p-64a34d92.js";import"./p-8bfa18b7.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.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 _="button",W="button--text-visible",q="button--compact",G="slot-container",J="slot-container--hidden",K="text-container",N="text-container--visible",Q="indicator-with-icon",U=class{constructor(i){t(this,i),this.mutationObserver=y("mutation",(()=>e(this))),this.guid=`calcite-action-${d()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{const e=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")))[0];e&&(e.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){w(this,this.effectiveLocale)}connectedCallback(){h(this),g(this),z(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){u(this),C()&&await j(this)}componentDidLoad(){m(this)}disconnectedCallback(){p(this),x(this),E(this),this.mutationObserver?.disconnect()}componentDidRender(){f(this)}async setFocus(){await v(this),this.buttonEl?.focus()}renderTextContainer(){const{text:t,textEnabled:e}=this;return t?i("div",{class:{[K]:!0,[N]:e},key:"text-container"},t):null}renderIndicatorText(){const{indicator:t,messages:e,indicatorId:o,buttonId:n}=this;return i("div",{"aria-labelledby":n,"aria-live":"polite",class:"indicator-text",id:o,role:"region"},t?e.indicator:null)}renderIconContainer(){const{loading:t,icon:e,scale:o,el:n,iconFlipRtl:a,indicator:s}=this,r=t?i("calcite-loader",{inline:!0,label:this.messages.loading,scale:"l"===o?"l":"m"}):null,c=e?i("calcite-icon",{class:{[Q]:s},flipRtl:a,icon:e,scale:k(this.scale)}):null,l=r||c,d=l||n.children?.length,h=i("div",{class:{[G]:!0,[J]:t}},i("slot",null));return d?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},l,h):null}render(){const{active:t,compact:e,disabled:n,icon:a,loading:r,textEnabled:c,label:l,text:d,indicator:h,indicatorId:p,buttonId:f,messages:u}=this,m=l||d,v=m?`${m}${h?` (${u.indicator})`:""}`:"",g={[_]:!0,[W]:c,[q]:e};return i(o,{key:"0e061330c72e61acb61e53d2d94e1478c03c8083"},i(b,{key:"d34028dbfeb72982aa3fe6847663b16672f3e6ea",disabled:n},i("button",{key:"c05c642ffb09bb466c0c4d1be0b8aac79b2dcdff","aria-busy":s(r),"aria-controls":h?p:null,"aria-disabled":s(n),"aria-label":v,"aria-pressed":s(t),class:g,disabled:n,id:f,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer(),!a&&h&&i("div",{class:"indicator-without-icon",key:"indicator-no-icon"})),i("slot",{key:"8ab8d03371d7cd7211e5ab1a083b9b7b9017db79",name:"tooltip",onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText()))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};U.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([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.button:active{background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}.icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1));background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:0.25rem;inline-size:1rem;position:relative}.indicator-without-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-color-foreground-1);opacity:var(--calcite-opacity-disabled)}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{background-color:var(--calcite-color-foreground-3);opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}';
11
+ */const _="button",q="button--text-visible",W="button--compact",G="slot-container",J="slot-container--hidden",K="text-container",N="text-container--visible",Q="indicator-with-icon",U=class{constructor(i){t(this,i),this.mutationObserver=y("mutation",(()=>e(this))),this.guid=`calcite-action-${d()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{const e=t.target.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-tooltip")))[0];e&&(e.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){w(this,this.effectiveLocale)}connectedCallback(){h(this),g(this),z(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){u(this),C()&&await j(this)}componentDidLoad(){m(this)}disconnectedCallback(){p(this),x(this),E(this),this.mutationObserver?.disconnect()}componentDidRender(){f(this)}async setFocus(){await v(this),this.buttonEl?.focus()}renderTextContainer(){const{text:t,textEnabled:e}=this;return t?i("div",{class:{[K]:!0,[N]:e},key:"text-container"},t):null}renderIndicatorText(){const{indicator:t,messages:e,indicatorId:o,buttonId:a}=this;return i("div",{"aria-labelledby":a,"aria-live":"polite",class:"indicator-text",id:o,role:"region"},t?e.indicator:null)}renderIconContainer(){const{loading:t,icon:e,scale:o,el:a,iconFlipRtl:n,indicator:s}=this,r=t?i("calcite-loader",{inline:!0,label:this.messages.loading,scale:"l"===o?"l":"m"}):null,c=e?i("calcite-icon",{class:{[Q]:s},flipRtl:n,icon:e,scale:k(this.scale)}):null,l=r||c,d=l||a.children?.length,h=i("div",{class:{[G]:!0,[J]:t}},i("slot",null));return d?i("div",{"aria-hidden":"true",class:"icon-container",key:"icon-container"},l,h):null}render(){const{active:t,compact:e,disabled:a,icon:n,loading:r,textEnabled:c,label:l,text:d,indicator:h,indicatorId:p,buttonId:f,messages:u}=this,m=l||d,v=m?`${m}${h?` (${u.indicator})`:""}`:"",g={[_]:!0,[q]:c,[W]:e};return i(o,{key:"0e061330c72e61acb61e53d2d94e1478c03c8083"},i(b,{key:"d34028dbfeb72982aa3fe6847663b16672f3e6ea",disabled:a},i("button",{key:"c05c642ffb09bb466c0c4d1be0b8aac79b2dcdff","aria-busy":s(r),"aria-controls":h?p:null,"aria-disabled":s(a),"aria-label":v,"aria-pressed":s(t),class:g,disabled:a,id:f,ref:t=>this.buttonEl=t},this.renderIconContainer(),this.renderTextContainer(),!n&&h&&i("div",{class:"indicator-without-icon",key:"indicator-no-icon"})),i("slot",{key:"8ab8d03371d7cd7211e5ab1a083b9b7b9017db79",name:"tooltip",onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText()))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};U.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([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.button:active{background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}.icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1));background-color:var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:0.25rem;inline-size:1rem;position:relative}.indicator-without-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-color-foreground-1);opacity:var(--calcite-opacity-disabled)}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{background-color:var(--calcite-color-foreground-3);opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}';
12
12
  /*!
13
13
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
14
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -20,4 +20,4 @@ const V="container",X="close-button-container",Y="has-header",Z="header",tt="ari
20
20
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
21
21
  * v2.12.2
22
22
  */
23
- class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:e}=this,i=t.find((t=>e.has(t)));return e.get(i)},this.togglePopovers=t=>{const e=t.composedPath(),i=this.queryPopover(e);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((t=>t!==i&&t.autoClose&&t.open&&!e.includes(t))).forEach((t=>t.open=!1))},this.keyDownHandler=t=>{t.defaultPrevented||("Escape"===t.key?this.closeAllPopovers():M(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{r(t)||this.togglePopovers(t)}}registerElement(t,e){this.registeredElementCount++,this.registeredElements.set(t,e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((t=>t.open=!1))}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},ot=class{constructor(e){t(this,e),this.calcitePopoverBeforeClose=a(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=a(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=a(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=a(this,"calcitePopoverOpen",6),this.mutationObserver=y("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${d()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?H(e,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),D(this,this.effectiveReferenceElement,this.el);const{el:e,referenceElement:i,effectiveReferenceElement:o}=this;t&&i&&!o&&console.warn(`${e.tagName}: reference-element id "${i}" was not found.`,{el:e}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;t&&"setAttribute"in t&&t.setAttribute(et,s(e))},this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();"setAttribute"in t&&t.setAttribute(tt,e),it.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(tt),t.removeAttribute(et)),it.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=L,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?$(this):O(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){S(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){w(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),g(this),z(this),A(this),requestAnimationFrame((()=>this.setUpReferenceElement(this.hasLoaded)))}async componentWillLoad(){await j(this),u(this)}componentDidLoad(){m(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&S(this),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),x(this),E(this),P(this,this.effectiveReferenceElement,this.el),$(this)}async reposition(t=!1){const{el:e,effectiveReferenceElement:i,placement:o,overlayPositioning:n,flipDisabled:a,filteredFlipPlacements:s,offsetDistance:r,offsetSkidding:c,arrowEl:l}=this;return F(this,{floatingEl:e,referenceEl:i,overlayPositioning:n,placement:o,flipDisabled:a,flipPlacements:s,offsetDistance:r,offsetSkidding:c,arrowEl:l,type:"popover"},t)}async setFocus(){await v(this),e(this.el),c(this.el)}async updateFocusTrapElements(){I(this)}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?l(e,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),O(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),$(this)}renderCloseButton(){const{messages:t,closable:e}=this;return e?i("div",{class:X,key:X},i("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,ref:t=>this.closeButtonEl=t,scale:this.scale,text:t.close},i("calcite-icon",{icon:"x",scale:k(this.scale)}))):null}renderHeader(){const{heading:t,headingLevel:e}=this,o=t?i(T,{class:"heading",level:e},t):null;return o?i("div",{class:Z,key:Z},o,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,heading:e,label:n,open:a,pointerDisabled:r,floatingLayout:c}=this,l=t&&a,d=!l,h=r?null:i(B,{floatingLayout:c,key:"floating-arrow",ref:this.storeArrowEl});return i(o,{key:"6308b6043eae5d988238c1f4ab3427b903aba9b2","aria-hidden":s(d),"aria-label":n,"aria-live":"polite","calcite-hydrated-hidden":d,id:this.getId(),role:"dialog"},i("div",{key:"241c19ccc94188c7819080dad91534e0f329d470",class:{[R.animation]:!0,[R.animationActive]:l},ref:this.setTransitionEl},h,i("div",{key:"0ca3856260eea02f75aceaa490519b596b8f1c29",class:{[Y]:!!e,[V]:!0}},this.renderHeader(),i("div",{key:"cc3e385ce8ffda4d8dc8fa12866b80c28f621594",class:"content"},i("slot",{key:"b99e560f5ad3a74ae4f3421e1f3d6035de67fad0"})),e?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return n(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ot.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.arrow::before{outline:1px solid var(--calcite-color-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-color-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-color-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}.has-header .close-button-container{border-end-end-radius:none}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{U as calcite_action,ot as calcite_popover}
23
+ class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{const{registeredElements:e}=this,i=t.find((t=>e.has(t)));return e.get(i)},this.togglePopovers=t=>{const e=t.composedPath(),i=this.queryPopover(e);i&&!i.triggerDisabled&&(i.open=!i.open),Array.from(this.registeredElements.values()).filter((t=>t!==i&&t.autoClose&&t.open&&!e.includes(t))).forEach((t=>t.open=!1))},this.keyDownHandler=t=>{t.defaultPrevented||("Escape"===t.key?this.closeAllPopovers():M(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{r(t)||this.togglePopovers(t)}}registerElement(t,e){this.registeredElementCount++,this.registeredElements.set(t,e),1===this.registeredElementCount&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,0===this.registeredElementCount&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach((t=>t.open=!1))}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},ot=class{constructor(e){t(this,e),this.calcitePopoverBeforeClose=n(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=n(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=n(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=n(this,"calcitePopoverOpen",6),this.mutationObserver=y("mutation",(()=>this.updateFocusTrapElements())),this.guid=`calcite-popover-${d()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t},this.setFilteredPlacements=()=>{const{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?H(e,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),D(this,this.effectiveReferenceElement,this.el);const{el:e,referenceElement:i,effectiveReferenceElement:o}=this;t&&i&&!o&&console.warn(`${e.tagName}: reference-element id "${i}" was not found.`,{el:e}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{const{effectiveReferenceElement:t,open:e}=this;t&&"setAttribute"in t&&t.setAttribute(et,s(e))},this.addReferences=()=>{const{effectiveReferenceElement:t}=this;if(!t)return;const e=this.getId();"setAttribute"in t&&t.setAttribute(tt,e),it.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{const{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(tt),t.removeAttribute(et)),it.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=L,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?$(this):O(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){S(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){w(this,this.effectiveLocale)}connectedCallback(){this.setFilteredPlacements(),g(this),z(this),A(this),requestAnimationFrame((()=>this.setUpReferenceElement(this.hasLoaded)))}async componentWillLoad(){await j(this),u(this)}componentDidLoad(){m(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&S(this),this.hasLoaded=!0}disconnectedCallback(){this.removeReferences(),x(this),E(this),P(this,this.effectiveReferenceElement,this.el),$(this)}async reposition(t=!1){const{el:e,effectiveReferenceElement:i,placement:o,overlayPositioning:a,flipDisabled:n,filteredFlipPlacements:s,offsetDistance:r,offsetSkidding:c,arrowEl:l}=this;return F(this,{floatingEl:e,referenceEl:i,overlayPositioning:a,placement:o,flipDisabled:n,flipPlacements:s,offsetDistance:r,offsetSkidding:c,arrowEl:l,type:"popover"},t)}async setFocus(){await v(this),e(this.el),c(this.el)}async updateFocusTrapElements(){I(this)}getReferenceElement(){const{referenceElement:t,el:e}=this;return("string"==typeof t?l(e,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),O(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),$(this)}renderCloseButton(){const{messages:t,closable:e}=this;return e?i("div",{class:X,key:X},i("calcite-action",{appearance:"transparent",class:"close-button",onClick:this.hide,ref:t=>this.closeButtonEl=t,scale:this.scale,text:t.close},i("calcite-icon",{icon:"x",scale:k(this.scale)}))):null}renderHeader(){const{heading:t,headingLevel:e}=this,o=t?i(T,{class:"heading",level:e},t):null;return o?i("div",{class:Z,key:Z},o,this.renderCloseButton()):null}render(){const{effectiveReferenceElement:t,heading:e,label:a,open:n,pointerDisabled:r,floatingLayout:c}=this,l=t&&n,d=!l,h=r?null:i(B,{floatingLayout:c,key:"floating-arrow",ref:this.storeArrowEl});return i(o,{key:"6308b6043eae5d988238c1f4ab3427b903aba9b2","aria-hidden":s(d),"aria-label":a,"aria-live":"polite","calcite-hydrated-hidden":d,id:this.getId(),role:"dialog"},i("div",{key:"241c19ccc94188c7819080dad91534e0f329d470",class:{[R.animation]:!0,[R.animationActive]:l},ref:this.setTransitionEl},h,i("div",{key:"0ca3856260eea02f75aceaa490519b596b8f1c29",class:{[Y]:!!e,[V]:!0}},this.renderHeader(),i("div",{key:"cc3e385ce8ffda4d8dc8fa12866b80c28f621594",class:"content"},i("slot",{key:"b99e560f5ad3a74ae4f3421e1f3d6035de67fad0"})),e?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}};ot.style=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.arrow::before{outline:1px solid var(--calcite-color-border-3)}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-color-border-3)}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);word-wrap:break-word;word-break:break-word}.container{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-color-text-1)}.container.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:0.25rem;border-end-end-radius:0.25rem}.has-header .close-button-container{border-end-end-radius:none}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}";export{U as calcite_action,ot as calcite_popover}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,h as s,H as o,g as e}from"./p-6eb37ed2.js";import{l as n}from"./p-4cd4cb85.js";import{b as a}from"./p-3d0e9be4.js";import{w as r}from"./p-04674a1e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const l="instant-apps-scoreboard",d=`${l}--`,c=`${l}__`,p=r.medium[1],h={BASE:l,itemsContainer:`${c}items-container`,items:`${c}items`,item:`${c}item`,label:`${c}item-label`,value:`${c}item-value`,valuePlaceholder:`${c}item-value-placeholder`,position:{bottom:`${c}position--bottom`,side:`${c}position--side`,left:`${c}position--left`,right:`${c}position--right`},mode:{floating:`${c}mode--floating`,pinned:`${c}mode--pinned`}},b=class{constructor(s){t(this,s),this.scoreboardItemsUpdated=i(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await this.view.map.loadAll();const t=this.items.map((t=>{var i;return null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id}));this.layers=this.view.map.allLayers.filter((i=>(i=>(t=>!t.isTable)(i)&&(t=>"feature"===t.type||"scene"===t.type)(i)&&(i=>t.indexOf(i.id)>-1)(i))(i))),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach((t=>t.outFields=["*"]));const t=[];this.layers.forEach((i=>{const s=this.view.whenLayerView(i);t.push(s)}));const i=(await Promise.allSettled(t)).filter((t=>"fulfilled"==t.status&&t.value)).map((t=>t.value)),s=[];i.forEach((t=>{var i;return s.push(null===(i=this.reactiveUtils)||void 0===i?void 0:i.whenOnce((()=>!t.updating)))})),await Promise.all(s),this.layerViews=new this.Collection([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&0===this.layers.length||this.layerViews&&0===this.layerViews.length)return;this.state="calculating";const t=[...this.items],i=[];this.queryStatDefinitions(t,i);const s=await Promise.all(i);this.handleQueryFeaturesResponses(s,t),this.items.length=0,t.forEach((t=>this.items.push(t))),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){var t;new ResizeObserver((()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)})).observe(null===(t=this.el)||void 0===t?void 0:t.parentElement);try{this.state="loading",await this.initMessages()}catch(t){return this.state="disabled",Promise.reject()}finally{if(!this.view||!this.items)return this.state="disabled",Promise.reject();try{return await this.initModules(),Promise.resolve()}catch(t){return this.state="disabled",Promise.reject()}}}async componentDidLoad(){var t;if("disabled"!==this.state)try{await(null===(t=this.reactiveUtils)||void 0===t?void 0:t.whenOnce((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.ready}))),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch(t){this.state="disabled",console.error(`${l}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){var t,i,s,o,e,n;this.state="disabled",this.itemIndex=0,null===(t=this.layers)||void 0===t||t.removeAll(),null===(i=this.layers)||void 0===i||i.destroy(),this.layers=null,null===(s=this.layerViews)||void 0===s||s.removeAll(),null===(o=this.layerViews)||void 0===o||o.destroy(),this.layerViews=null,null===(e=this.handles)||void 0===e||e.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await a(this.el))[0],this.messages=Object.assign(Object.assign({},this.messages),t),Promise.resolve()}catch(t){console.error("FAILED TO LOAD MESSAGES"),Promise.reject()}}async initModules(){try{const[t,i,s,o]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/core/Collection","esri/intl"]);return this.reactiveUtils=i,this.Collection=s,this.intl=o,this.handles=new t,this.layers=new s,this.layerViews=new s,Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}async loadMapResources(){const{map:t}=this.view,i=t;try{return await i.loadAll(),Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}generateUID(){return t=>{const i=Math.random(),s=Math.floor(10*Math.random())+11,o=i.toString(s).replace("0.","");t.uid=o}}render(){var t,i;const{state:e}=this,n="disabled"===e,a="loading"===e||"calculating"===e||(null===(t=this.view)||void 0===t?void 0:t.updating)?this.renderProgress():null;return s(o,{key:"0a4e0bd527aa63498f71650b418da1167c0570c0",class:`${this.getPositionClass} ${this.getStyleClass}`},n?null:[a,(null===(i=this.items)||void 0===i?void 0:i.length)>0?this.renderBase():null])}renderBase(){return s("div",{key:"instant-apps-scoreboard-base",class:l},this.renderContent())}renderContent(){const{state:t}=this;return"loading"===t?this.renderLoader():"calculating"===t||"complete"===t?this.renderItemsContainer():null}renderItemsContainer(){const[t,i]=this.renderPreviousNextButtons();return s("div",{class:h.itemsContainer},t,this.renderItems(),i)}renderPreviousNextButtons(){var t,i,o;const e=this.getItemLimit(),n=(null===(t=this.items.filter((t=>t.visible)))||void 0===t?void 0:t.length)<=e,a=0===this.itemIndex,r=this.isEnd,l=!!this.isMobile||"bottom"===this.position,d=l?"start":"center",c={previous:l?"chevron-left":"chevron-up",next:l?"chevron-right":"chevron-down"},p=a||n?"blank":c.previous,h=r||n?"blank":c.next,b={previous:a||n,next:r||n},u="transparent",m=this.isMobile?"s":"l",v={previous:null===(i=this.messages)||void 0===i?void 0:i.previous,next:null===(o=this.messages)||void 0===o?void 0:o.next};return[s("calcite-action",{onClick:this.previousItem.bind(this),icon:p,disabled:b.previous,alignment:d,scale:m,appearance:u,text:v.previous,label:v.previous}),s("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:d,scale:m,appearance:u,text:v.next,label:v.next})]}renderItems(){const{items:t}=h,i=this.getItemsToDisplay.map((t=>this.renderItem(t)));return s("ul",{class:t},i)}renderItem(t){const{label:i}=t;return s("li",{class:h.item},s("span",{class:h.label,title:i},i),this.renderValue(t))}renderValue(t){var i,o,e;const{displayValue:n}=t,a="disabled"===this.state,r=void 0===n&&"calculating"===this.state,l=n||(null===(i=this.messages)||void 0===i?void 0:i.NA),d=null===(o=this.layers)||void 0===o?void 0:o.find((i=>{var s;return(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)===i.id})),c=!(null==d?void 0:d.visible),p=r?this.renderValuePlaceholder():a?"":c?s("calcite-icon",{icon:"view-hide",scale:"l",title:null===(e=this.messages)||void 0===e?void 0:e.layerVisibilityOff}):l;return s("span",{class:h.value},p)}renderValuePlaceholder(){return s("span",{class:h.valuePlaceholder})}renderProgress(){return s("calcite-progress",{key:`${d}calcite-progress`,type:"indeterminate"})}renderLoader(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.loading;return s("calcite-loader",{key:`${d}calcite-loader`,label:i,text:i,scale:"m"})}get getPositionClass(){const{bottom:t,left:i,right:s,side:o}=h.position;return this.isMobile||"bottom"===this.position?t:`${"left"===this.position?i:s} ${o}`}get getStyleClass(){const{floating:t,pinned:i}=h.mode;return this.isMobile?i:"floating"===this.mode?t:i}get checkMobile(){var t,i;const s=null===(i=null===(t=this.el)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.offsetWidth;return!isNaN(s)&&s>0&&s<p}get getItemsToDisplay(){const t=this.getItemLimit();return this.items.filter((t=>t.visible)).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){const t=this.getItemLimit(),i=this.items.slice(this.items.length-t).map((t=>t.uid)),s=this.items.slice(this.itemIndex,this.itemIndex+t).map((t=>t.uid));return i.every(((t,i)=>t===s[i]))}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,i){const s=(t,i)=>{var s,o,e,n,a;const r=t.createQuery(),l=this.geometry?this.geometry:this.view.extent;r.outStatistics=[i],r.geometry=l;const d=null!==(a=null!==(o=null===(s=null==t?void 0:t.filter)||void 0===s?void 0:s.timeExtent)&&void 0!==o?o:null===(n=null===(e=null==t?void 0:t.featureEffect)||void 0===e?void 0:e.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==a?a:null;return d&&(r.timeExtent=d),r};t.forEach((()=>async t=>{var o;const e=null===(o=this.layerViews)||void 0===o?void 0:o.find((i=>{var s;return i.layer.id===(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)}));if(!e)return;const n=(t=>{const{field:i,operation:s}=t;return{onStatisticField:i,outStatisticFieldName:`${i}_${s}`,statisticType:s}})(t),a=s(e,n),r=e.queryFeatures(a);i.push(r)})())}handleQueryFeaturesResponses(t,i){t.forEach((()=>(t,s)=>{const o=(t=>{const i=t.features[0],{attributes:s}=i;return Object.values(s)[0]})(t),e=null!==o,n=e?this.intl.formatNumber(o,{notation:"compact",compactDisplay:"short"}):null;i[s].displayValue=e?`${n}`:"",i[s].value=o})())}initStationaryWatcher(){var t,i;const s={once:!0,initial:!0},o=()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.interacting)}),(()=>this.calculateScoreboardItemValues()),s)},e="stationary-watcher-key";(null===(t=this.handles)||void 0===t?void 0:t.has(e))&&this.handles.remove(e),null===(i=this.handles)||void 0===i||i.add((()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.stationary}),(()=>o()))})(),e)}initViewUpdateWatcher(){return this.reactiveUtils.watch((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.updating}),(()=>{this.reactiveUtils.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.updating)}),(()=>this.calculateScoreboardItemValues()),{once:!0,initial:!0})}),{initial:!0})}watchLayerVisibility(){var t,i;if(!this.layers)return;const s="visbilityWatcherKey";null===(t=this.handles)||void 0===t||t.remove(s);const o=[];this.layers.forEach((t=>{const i=async()=>{const i=await this.view.whenLayerView(t);await this.reactiveUtils.whenOnce((()=>!1===(null==i?void 0:i.updating))),this.calculateScoreboardItemValues()},s=this.reactiveUtils.watch((()=>null==t?void 0:t.visible),(async()=>i()));o.push(s)})),null===(i=this.handles)||void 0===i||i.add([...o],s)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?6:this.itemLimit}get el(){return e(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};b.style=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word;font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}";export{b as instant_apps_scoreboard}
6
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-6eb37ed2.js";import{l as n}from"./p-4cd4cb85.js";import{b as a}from"./p-3d0e9be4.js";import{w as r}from"./p-04674a1e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const l="instant-apps-scoreboard",d=`${l}--`,c=`${l}__`,p=r.medium[1],h={BASE:l,itemsContainer:`${c}items-container`,items:`${c}items`,item:`${c}item`,label:`${c}item-label`,value:`${c}item-value`,valuePlaceholder:`${c}item-value-placeholder`,position:{bottom:`${c}position--bottom`,side:`${c}position--side`,left:`${c}position--left`,right:`${c}position--right`},mode:{floating:`${c}mode--floating`,pinned:`${c}mode--pinned`}},b=class{constructor(s){t(this,s),this.scoreboardItemsUpdated=i(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await this.view.map.loadAll();const t=this.items.map((t=>{var i;return null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id}));this.layers=this.view.map.allLayers.filter((i=>(i=>(t=>!t.isTable)(i)&&(t=>"feature"===t.type||"scene"===t.type)(i)&&(i=>t.indexOf(i.id)>-1)(i))(i))),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach((t=>t.outFields=["*"]));const t=[];this.layers.forEach((i=>{const s=this.view.whenLayerView(i);t.push(s)}));const i=(await Promise.allSettled(t)).filter((t=>"fulfilled"==t.status&&t.value)).map((t=>t.value)),s=[];i.forEach((t=>{var i;return s.push(null===(i=this.reactiveUtils)||void 0===i?void 0:i.whenOnce((()=>!t.updating)))})),await Promise.all(s),this.layerViews=new this.Collection([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&0===this.layers.length||this.layerViews&&0===this.layerViews.length)return;this.state="calculating";const t=[...this.items],i=[];this.queryStatDefinitions(t,i);const s=await Promise.all(i);this.handleQueryFeaturesResponses(s,t),this.items.length=0,t.forEach((t=>this.items.push(t))),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){var t;new ResizeObserver((()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)})).observe(null===(t=this.el)||void 0===t?void 0:t.parentElement);try{this.state="loading",await this.initMessages()}catch(t){return this.state="disabled",Promise.reject()}finally{if(!this.view||!this.items)return this.state="disabled",Promise.reject();try{return await this.initModules(),Promise.resolve()}catch(t){return this.state="disabled",Promise.reject()}}}async componentDidLoad(){var t;if("disabled"!==this.state)try{await(null===(t=this.reactiveUtils)||void 0===t?void 0:t.whenOnce((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.ready}))),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch(t){this.state="disabled",console.error(`${l}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){var t,i,s,o,e,n;this.state="disabled",this.itemIndex=0,null===(t=this.layers)||void 0===t||t.removeAll(),null===(i=this.layers)||void 0===i||i.destroy(),this.layers=null,null===(s=this.layerViews)||void 0===s||s.removeAll(),null===(o=this.layerViews)||void 0===o||o.destroy(),this.layerViews=null,null===(e=this.handles)||void 0===e||e.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await a(this.el))[0],this.messages=Object.assign(Object.assign({},this.messages),t),Promise.resolve()}catch(t){console.error("FAILED TO LOAD MESSAGES"),Promise.reject()}}async initModules(){try{const[t,i,s,o]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/core/Collection","esri/intl"]);return this.reactiveUtils=i,this.Collection=s,this.intl=o,this.handles=new t,this.layers=new s,this.layerViews=new s,Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}async loadMapResources(){const{map:t}=this.view,i=t;try{return await i.loadAll(),Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}generateUID(){return t=>{const i=Math.random(),s=Math.floor(10*Math.random())+11,o=i.toString(s).replace("0.","");t.uid=o}}render(){var t,i;const{state:e}=this,n="disabled"===e,a="loading"===e||"calculating"===e||(null===(t=this.view)||void 0===t?void 0:t.updating)?this.renderProgress():null;return s(o,{key:"44beef3ec01847c89e09afa6469f05dd5caf9e9d",class:`${this.getPositionClass} ${this.getStyleClass}`},n?null:[a,(null===(i=this.items)||void 0===i?void 0:i.length)>0?this.renderBase():null])}renderBase(){return s("div",{key:"instant-apps-scoreboard-base",class:l},this.renderContent())}renderContent(){const{state:t}=this;return"loading"===t?this.renderLoader():"calculating"===t||"complete"===t?this.renderItemsContainer():null}renderItemsContainer(){const[t,i]=this.renderPreviousNextButtons();return s("div",{class:h.itemsContainer},t,this.renderItems(),i)}renderPreviousNextButtons(){var t,i,o;const e=this.getItemLimit(),n=(null===(t=this.items.filter((t=>t.visible)))||void 0===t?void 0:t.length)<=e,a=0===this.itemIndex,r=this.isEnd,l=!!this.isMobile||"bottom"===this.position,d=l?"start":"center",c={previous:l?"chevron-left":"chevron-up",next:l?"chevron-right":"chevron-down"},p=a||n?"blank":c.previous,h=r||n?"blank":c.next,b={previous:a||n,next:r||n},u="transparent",m=this.isMobile?"s":"l",v={previous:null===(i=this.messages)||void 0===i?void 0:i.previous,next:null===(o=this.messages)||void 0===o?void 0:o.next};return[s("calcite-action",{onClick:this.previousItem.bind(this),icon:p,disabled:b.previous,alignment:d,scale:m,appearance:u,text:v.previous,label:v.previous}),s("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:d,scale:m,appearance:u,text:v.next,label:v.next})]}renderItems(){const{items:t}=h,i=this.getItemsToDisplay.map((t=>this.renderItem(t)));return s("ul",{class:t},i)}renderItem(t){const{label:i}=t;return s("li",{class:h.item},s("span",{class:h.label,title:i},i),this.renderValue(t))}renderValue(t){var i,o,e;const{displayValue:n}=t,a="disabled"===this.state,r=void 0===n&&"calculating"===this.state,l=n||(null===(i=this.messages)||void 0===i?void 0:i.NA),d=null===(o=this.layers)||void 0===o?void 0:o.find((i=>{var s;return(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)===i.id})),c=!(null==d?void 0:d.visible),p=r?this.renderValuePlaceholder():a?"":c?s("calcite-icon",{icon:"view-hide",scale:"l",title:null===(e=this.messages)||void 0===e?void 0:e.layerVisibilityOff}):l;return s("span",{class:h.value},p)}renderValuePlaceholder(){return s("span",{class:h.valuePlaceholder})}renderProgress(){return s("calcite-progress",{key:`${d}calcite-progress`,type:"indeterminate"})}renderLoader(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.loading;return s("calcite-loader",{key:`${d}calcite-loader`,label:i,text:i,scale:"m"})}get getPositionClass(){const{bottom:t,left:i,right:s,side:o}=h.position;return this.isMobile||"bottom"===this.position?t:`${"left"===this.position?i:s} ${o}`}get getStyleClass(){const{floating:t,pinned:i}=h.mode;return this.isMobile?i:"floating"===this.mode?t:i}get checkMobile(){var t,i;const s=null===(i=null===(t=this.el)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.offsetWidth;return!isNaN(s)&&s>0&&s<p}get getItemsToDisplay(){const t=this.getItemLimit();return this.items.filter((t=>t.visible)).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){const t=this.getItemLimit(),i=this.items.slice(this.items.length-t).map((t=>t.uid)),s=this.items.slice(this.itemIndex,this.itemIndex+t).map((t=>t.uid));return i.every(((t,i)=>t===s[i]))}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,i){const s=(t,i)=>{var s,o,e,n,a;const r=t.createQuery(),l=this.geometry?this.geometry:this.view.extent;r.outStatistics=[i],r.geometry=l;const d=null!==(a=null!==(o=null===(s=null==t?void 0:t.filter)||void 0===s?void 0:s.timeExtent)&&void 0!==o?o:null===(n=null===(e=null==t?void 0:t.featureEffect)||void 0===e?void 0:e.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==a?a:null;return d&&(r.timeExtent=d),r};t.forEach((()=>async t=>{var o;const e=null===(o=this.layerViews)||void 0===o?void 0:o.find((i=>{var s;return i.layer.id===(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)}));if(!e)return;const n=(t=>{const{field:i,operation:s}=t;return{onStatisticField:i,outStatisticFieldName:`${i}_${s}`,statisticType:s}})(t),a=s(e,n),r=e.queryFeatures(a);i.push(r)})())}handleQueryFeaturesResponses(t,i){t.forEach((()=>(t,s)=>{const o=(t=>{const i=t.features[0],{attributes:s}=i;return Object.values(s)[0]})(t),e=null!==o,n=e?this.intl.formatNumber(o,{notation:"compact",compactDisplay:"short"}):null;i[s].displayValue=e?`${n}`:"",i[s].value=o})())}initStationaryWatcher(){var t,i;const s={once:!0,initial:!0},o=()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.interacting)}),(()=>this.calculateScoreboardItemValues()),s)},e="stationary-watcher-key";(null===(t=this.handles)||void 0===t?void 0:t.has(e))&&this.handles.remove(e),null===(i=this.handles)||void 0===i||i.add((()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.stationary}),(()=>o()))})(),e)}initViewUpdateWatcher(){return this.reactiveUtils.watch((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.updating}),(()=>{this.reactiveUtils.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.updating)}),(()=>this.calculateScoreboardItemValues()),{once:!0,initial:!0})}),{initial:!0})}watchLayerVisibility(){var t,i;if(!this.layers)return;const s="visbilityWatcherKey";null===(t=this.handles)||void 0===t||t.remove(s);const o=[];this.layers.forEach((t=>{const i=async()=>{const i=await this.view.whenLayerView(t);await this.reactiveUtils.whenOnce((()=>!1===(null==i?void 0:i.updating))),this.calculateScoreboardItemValues()},s=this.reactiveUtils.watch((()=>null==t?void 0:t.visible),(async()=>i()));o.push(s)})),null===(i=this.handles)||void 0===i||i.add([...o],s)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?6:this.itemLimit}get el(){return e(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};b.style=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word;font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}";export{b as instant_apps_scoreboard}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as s,g as i}from"./p-6eb37ed2.js";import{e as a,b as c,t as h}from"./p-441f1992.js";import{c as n,d as o,u as r,I as l}from"./p-1ce2608d.js";import{a as d,s as p,c as b}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const f=class{constructor(s){t(this,s),this.calciteChipGroupSelect=e(this,"calciteChipGroupSelect",6),this.items=[],this.updateItems=t=>{const e=this.slotRefEl?.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-chip")));this.items=t?a(t):e,this.items?.length<1||(this.items?.forEach((t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode,t.parentChipGroup=this.el})),this.setSelectedItems(!1))},this.updateSelectedItems=()=>{this.selectedItems=this.items?.filter((t=>t.selected))},this.setSelectedItems=(t,e)=>{e&&this.items?.forEach((t=>{const s=e===t;switch(this.selectionMode){case"multiple":s&&(t.selected=!t.selected);break;case"single":t.selected=!!s&&!t.selected;break;case"single-persist":t.selected=!!s}})),this.updateSelectedItems(),t&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){n(this)}componentDidRender(){o(this),r(this)}componentDidLoad(){d(this)}async componentWillLoad(){p(this)}calciteInternalChipKeyEventListener(t){if(t.composedPath().includes(this.el)){const e=this.items?.filter((t=>!t.disabled));switch(t.detail.key){case"ArrowRight":c(e,t.detail.target,"next");break;case"ArrowLeft":c(e,t.detail.target,"previous");break;case"Home":c(e,t.detail.target,"first");break;case"End":c(e,t.detail.target,"last")}}t.stopPropagation()}calciteChipCloseListener(t){const e=t.target;this.items?.includes(e)&&(this.items?.indexOf(e)>0?c(this.items,e,"previous"):0===this.items?.indexOf(e)?c(this.items,e,"next"):c(this.items,e,"first")),this.items=this.items?.filter((t=>t!==e)),t.stopPropagation()}calciteChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!0,t.target),t.stopPropagation()}calciteInternalChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!1,t.target),t.stopPropagation()}calciteInternalSyncSelectedChips(t){t.composedPath().includes(this.el)&&(this.updateSelectedItems(),"single"===this.selectionMode&&this.selectedItems.length>1&&this.setSelectedItems(!1,t.target)),t.stopPropagation()}async setFocus(){if(await b(this),!this.disabled)return(this.selectedItems[0]||this.items[0])?.setFocus()}render(){const t="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup",{disabled:e}=this;return s(l,{key:"341dd9e8f25d4d358ea6e33740d8b851a5fa0e9d",disabled:e},s("div",{key:"66c9eaa00b7ca0c602f94a017f5b6ef6afc3bd93","aria-disabled":h(e),"aria-label":this.label,class:"container",role:t},s("slot",{key:"d62c336c6cdca0bbd5c6673975ae4a25bc8ef9df",onSlotchange:this.updateItems,ref:t=>this.slotRefEl=t})))}get el(){return i(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};f.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";export{f as calcite_chip_group}
6
+ import{r as t,c as e,h as s,g as i}from"./p-6eb37ed2.js";import{e as a,b as c,t as h}from"./p-66cee72b.js";import{c as n,d as o,u as r,I as l}from"./p-1ce2608d.js";import{a as d,s as p,c as b}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const f=class{constructor(s){t(this,s),this.calciteChipGroupSelect=e(this,"calciteChipGroupSelect",6),this.items=[],this.updateItems=t=>{const e=this.slotRefEl?.assignedElements({flatten:!0}).filter((t=>t?.matches("calcite-chip")));this.items=t?a(t):e,this.items?.length<1||(this.items?.forEach((t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode,t.parentChipGroup=this.el})),this.setSelectedItems(!1))},this.updateSelectedItems=()=>{this.selectedItems=this.items?.filter((t=>t.selected))},this.setSelectedItems=(t,e)=>{e&&this.items?.forEach((t=>{const s=e===t;switch(this.selectionMode){case"multiple":s&&(t.selected=!t.selected);break;case"single":t.selected=!!s&&!t.selected;break;case"single-persist":t.selected=!!s}})),this.updateSelectedItems(),t&&this.calciteChipGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.scale="m",this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.updateItems()}connectedCallback(){n(this)}componentDidRender(){o(this),r(this)}componentDidLoad(){d(this)}async componentWillLoad(){p(this)}calciteInternalChipKeyEventListener(t){if(t.composedPath().includes(this.el)){const e=this.items?.filter((t=>!t.disabled));switch(t.detail.key){case"ArrowRight":c(e,t.detail.target,"next");break;case"ArrowLeft":c(e,t.detail.target,"previous");break;case"Home":c(e,t.detail.target,"first");break;case"End":c(e,t.detail.target,"last")}}t.stopPropagation()}calciteChipCloseListener(t){const e=t.target;this.items?.includes(e)&&(this.items?.indexOf(e)>0?c(this.items,e,"previous"):0===this.items?.indexOf(e)?c(this.items,e,"next"):c(this.items,e,"first")),this.items=this.items?.filter((t=>t!==e)),t.stopPropagation()}calciteChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!0,t.target),t.stopPropagation()}calciteInternalChipSelectListener(t){t.composedPath().includes(this.el)&&this.setSelectedItems(!1,t.target),t.stopPropagation()}calciteInternalSyncSelectedChips(t){t.composedPath().includes(this.el)&&(this.updateSelectedItems(),"single"===this.selectionMode&&this.selectedItems.length>1&&this.setSelectedItems(!1,t.target)),t.stopPropagation()}async setFocus(){if(await b(this),!this.disabled)return(this.selectedItems[0]||this.items[0])?.setFocus()}render(){const t="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup",{disabled:e}=this;return s(l,{key:"341dd9e8f25d4d358ea6e33740d8b851a5fa0e9d",disabled:e},s("div",{key:"66c9eaa00b7ca0c602f94a017f5b6ef6afc3bd93","aria-disabled":h(e),"aria-label":this.label,class:"container",role:t},s("slot",{key:"d62c336c6cdca0bbd5c6673975ae4a25bc8ef9df",onSlotchange:this.updateItems,ref:t=>this.slotRefEl=t})))}get el(){return i(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};f.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:0.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:0.25rem}:host([scale=l]) .container{gap:0.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";export{f as calcite_chip_group}
@@ -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 i,h as s,H as o,g as e}from"./p-6eb37ed2.js";import{c as a,d as n}from"./p-f8d23498.js";import{e as h,s as l,f as c}from"./p-441f1992.js";import{a as r,s as d,c as p}from"./p-3e828614.js";import{c as u,d as g}from"./p-42552409.js";import{c as f}from"./p-1c249530.js";import{u as b,c as m,s as x,d as v}from"./p-6e3f1d71.js";import{t as y,q as w,g as j,o as z,E as H,a as C}from"./p-a2d4c97e.js";import{D}from"./p-8bfa18b7.js";import{d as L}from"./p-c8d3207e.js";import"./p-aaa56cbf.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.js";
6
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-6eb37ed2.js";import{c as a,d as n}from"./p-f8d23498.js";import{e as h,s as l,f as c}from"./p-66cee72b.js";import{a as r,s as d,c as p}from"./p-3e828614.js";import{c as u,d as g}from"./p-8d453a3a.js";import{c as f}from"./p-1c249530.js";import{u as b,c as m,s as x,d as v}from"./p-a5fc6ab7.js";import{t as y,q as w,g as j,o as z,E as H,a as C}from"./p-3244e59a.js";import{D}from"./p-8bfa18b7.js";import{d as L}from"./p-c8d3207e.js";import"./p-aaa56cbf.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.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,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 o,g as i}from"./p-6eb37ed2.js";import{c as n,d as a}from"./p-f8d23498.js";import{z as s,g as c}from"./p-441f1992.js";import{s as l,a as r,c as d}from"./p-3e828614.js";import{c as h,d as p}from"./p-42552409.js";import{c as g,d as m,s as f,u as b}from"./p-6e3f1d71.js";import{K as k}from"./p-744d9575.js";import{o as u}from"./p-16261018.js";import{g as v}from"./p-27d462c0.js";import"./p-1c249530.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-64a34d92.js";
6
+ import{r as t,c as e,h as o,g as i}from"./p-6eb37ed2.js";import{c as n,d as a}from"./p-f8d23498.js";import{z as s,g as c}from"./p-66cee72b.js";import{s as l,a as r,c as d}from"./p-3e828614.js";import{c as h,d as p}from"./p-8d453a3a.js";import{c as g,d as m,s as f,u as b}from"./p-a5fc6ab7.js";import{K as k}from"./p-744d9575.js";import{o as u}from"./p-6e118057.js";import{g as v}from"./p-27d462c0.js";import"./p-1c249530.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.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{r as e,c as t,h as i,F as n,g as a,H as s}from"./p-6eb37ed2.js";import{g as o}from"./p-8bce991a.js";import{t as l,d as c,s as r,e as d,f as h}from"./p-441f1992.js";import{g as p}from"./p-aaa56cbf.js";import{i as f}from"./p-64a34d92.js";import{s as m,a as u,c as g}from"./p-3e828614.js";import{a as b,C as v,I as x,S as y}from"./p-fa56b7c2.js";import{c as k,u as w,d as z,I as C}from"./p-1ce2608d.js";import{c as S}from"./p-1c249530.js";import{H as I}from"./p-1b229454.js";import{c as j,d as A}from"./p-42552409.js";import{c as E,s as H,d as M,u as D}from"./p-6e3f1d71.js";import{S as P,C as F,I as L,a as B}from"./p-2230d4cc.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const T=["ArrowUp","ArrowDown","End","Home"],O=class{constructor(i){e(this,i),this.calciteActionMenuOpen=t(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${p()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:e,menuId:t,open:i,label:n}=this,a=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==a&&(this.disconnectMenuButtonEl(),this.menuButtonEl=a,this.setTooltipReferenceElement(),a&&(a.active=i,a.setAttribute("aria-controls",t),a.setAttribute("aria-expanded",l(i)),a.setAttribute("aria-haspopup","true"),a.id||(a.id=e),a.label||(a.label=n),a.text||(a.text=n),a.addEventListener("click",this.menuButtonClick),a.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-action")));this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=e=>{this.defaultMenuButtonEl=e,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-tooltip")));this.tooltipEl=t[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:e,expanded:t,menuButtonEl:i,open:n}=this;e&&(e.referenceElement=t||n?null:i)},this.updateAction=(e,t)=>{const{guid:i,activeMenuItemIndex:n}=this,a=`${i}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=a),e.toggleAttribute(b,t===n)},this.updateActions=e=>{e?.forEach(this.updateAction)},this.handleDefaultSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).reduce(((e,t)=>t?.matches("calcite-action")?(e.push(t),e):t?.matches("calcite-action-group")?e.concat(Array.from(t.querySelectorAll("calcite-action"))):e),[]);this.actionElements=t.filter((e=>!e.disabled&&!e.hidden))},this.menuButtonKeyDown=e=>{const{key:t}=e,{actionElements:i,activeMenuItemIndex:n,open:a}=this;if(i.length){if(f(t)){if(e.preventDefault(),!a)return void this.toggleOpen();const t=i[n];t?t.click():this.toggleOpen(!1)}if("Tab"!==t)return"Escape"===t?(this.toggleOpen(!1),void e.preventDefault()):void this.handleActionNavigation(e,t,i);this.open=!1}},this.handleActionNavigation=(e,t,i)=>{if(!this.isValidKey(t,T))return;if(e.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==t&&"ArrowDown"!==t||(this.activeMenuItemIndex=0),void("End"!==t&&"ArrowUp"!==t||(this.activeMenuItemIndex=i.length-1));"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=i.length-1);const n=this.activeMenuItemIndex;"ArrowUp"===t&&(this.activeMenuItemIndex=o(Math.max(n-1,-1),i.length)),"ArrowDown"===t&&(this.activeMenuItemIndex=o(n+1,i.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(e=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=e},this.handlePopoverOpen=()=>{this.open=!0},this.handlePopoverClose=()=>{this.open=!1},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}connectedCallback(){this.connectMenuButtonEl()}componentWillLoad(){m(this)}componentDidLoad(){u(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=e),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await g(this),c(this.menuButtonEl)}renderMenuButton(){const{appearance:e,label:t,scale:n,expanded:a}=this;return i("slot",{name:y.trigger,onSlotchange:this.setMenuButtonEl},i("calcite-action",{appearance:e,class:v.defaultTrigger,icon:x.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:t,textEnabled:a}))}renderMenuItems(){const{actionElements:e,activeMenuItemIndex:t,open:n,menuId:a,menuButtonEl:s,label:o,placement:l,overlayPositioning:c,flipPlacements:r}=this,d=e[t];return i("calcite-popover",{autoClose:!0,flipPlacements:r,focusTrapDisabled:!0,label:o,offsetDistance:0,onCalcitePopoverClose:this.handlePopoverClose,onCalcitePopoverOpen:this.handlePopoverOpen,open:n,overlayPositioning:c,placement:l,pointerDisabled:!0,referenceElement:s},i("div",{"aria-activedescendant":d?.id||null,"aria-labelledby":s?.id,class:v.menu,id:a,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},i("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return i(n,{key:"9feaace5a0750686cc4ad4e7ac83859cc26a7a20"},this.renderMenuButton(),this.renderMenuItems(),i("slot",{key:"ba73adb74c8c729467f300fd4ff33c7af23f2ad7",name:y.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(e,t){return!!t.find((t=>t===e))}get el(){return a(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};O.style=":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}";const $=class{constructor(i){e(this,i),this.calcitePanelClose=t(this,"calcitePanelClose",6),this.calcitePanelToggle=t(this,"calcitePanelToggle",6),this.calcitePanelScroll=t(this,"calcitePanelScroll",6),this.resizeObserver=S("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))},this.setContainerRef=e=>{this.containerEl=e},this.panelKeyDownHandler=e=>{this.closable&&"Escape"===e.key&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())},this.handleUserClose=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.open=()=>{this.isClosed=!1},this.close=async()=>{const e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch(e){return void requestAnimationFrame((()=>{this.closed=!1}))}this.isClosed=!0},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=e=>{this.hasStartActions=r(e)},this.handleHeaderActionsEndSlotChange=e=>{this.hasEndActions=r(e)},this.handleHeaderMenuActionsSlotChange=e=>{this.hasMenuItems=r(e)},this.handleActionBarSlotChange=e=>{const t=d(e).filter((e=>e?.matches("calcite-action-bar")));t.forEach((e=>e.layout="horizontal")),this.hasActionBar=!!t.length},this.handleHeaderContentSlotChange=e=>{this.hasHeaderContent=r(e)},this.handleFabSlotChange=e=>{this.hasFab=r(e)},this.handleFooterActionsSlotChange=e=>{this.hasFooterActions=r(e)},this.handleFooterEndSlotChange=e=>{this.hasFooterEndContent=r(e)},this.handleFooterStartSlotChange=e=>{this.hasFooterStartContent=r(e)},this.handleFooterSlotChange=e=>{this.hasFooterContent=r(e)},this.contentBottomSlotChangeHandler=e=>{this.hasContentBottom=r(e)},this.contentTopSlotChangeHandler=e=>{this.hasContentTop=r(e)},this.setPanelScrollEl=e=>{this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())},this.handleAlertsSlotChange=e=>{d(e)?.map((e=>{"CALCITE-ALERT"===e.nodeName&&(e.embedded=!0)}))},this.beforeClose=void 0,this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.isClosed=!1,this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}toggleDialog(e){e?this.close():this.open()}onMessagesChange(){}connectedCallback(){k(this),j(this),E(this)}async componentWillLoad(){m(this),await H(this)}componentDidLoad(){u(this)}componentDidRender(){w(this)}disconnectedCallback(){z(this),A(this),M(this),this.resizeObserver?.disconnect()}effectiveLocaleChange(){D(this,this.effectiveLocale)}async setFocus(){await g(this),h(this.containerEl)}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}renderHeaderContent(){const{heading:e,headingLevel:t,description:n,hasHeaderContent:a}=this,s=e?i(I,{class:F.heading,level:t},e):null,o=n?i("span",{class:F.description},n):null;return a||!s&&!o?null:i("div",{class:F.headerContent,key:"header-content"},s,o)}renderActionBar(){return i("div",{class:F.actionBarContainer,hidden:!this.hasActionBar},i("slot",{name:P.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return i("div",{class:F.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},i("slot",{name:P.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:e}=this;return i("div",{class:{[F.headerActionsStart]:!0,[F.headerActions]:!0},hidden:!e,key:"header-actions-start"},i("slot",{name:P.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{hasEndActions:e,messages:t,closable:n,collapsed:a,collapseDirection:s,collapsible:o,hasMenuItems:c}=this,{collapse:r,expand:d,close:h}=t,p=[B.expand,B.collapse];"up"===s&&p.reverse();const f=o?i("calcite-action",{"aria-expanded":l(!a),"aria-label":r,icon:a?p[0]:p[1],id:L.collapse,onClick:this.collapse,scale:this.scale,text:r,title:a?d:r}):null,m=n?i("calcite-action",{"aria-label":h,icon:B.close,id:L.close,onClick:this.handleUserClose,scale:this.scale,text:h,title:h}):null,u=i("slot",{name:P.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),g=e||f||m||c;return i("div",{class:{[F.headerActionsEnd]:!0,[F.headerActions]:!0},hidden:!g,key:"header-actions-end"},u,this.renderMenu(),f,m)}renderMenu(){const{hasMenuItems:e,messages:t,menuOpen:n}=this;return i("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!e,key:"menu",label:t.options,open:n,overlayPositioning:this.overlayPositioning,placement:"bottom-end"},i("calcite-action",{icon:B.menu,scale:this.scale,slot:y.trigger,text:t.options}),i("slot",{name:P.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{hasHeaderContent:e,hasStartActions:t,hasEndActions:n,closable:a,collapsible:s,hasMenuItems:o,hasActionBar:l}=this,c=this.renderHeaderContent(),r=e||!!c||t||n||s||a||o;return this.showHeaderContent=r,i("header",{class:F.header,hidden:!(r||l)},i("div",{class:{[F.headerContainer]:!0,[F.headerContainerBorderEnd]:l},hidden:!r},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),c,this.renderHeaderActionsEnd()),this.renderActionBar(),this.renderContentTop())}renderFooterNode(){const{hasFooterEndContent:e,hasFooterStartContent:t,hasFooterContent:n,hasFooterActions:a}=this;return i("footer",{class:F.footer,hidden:!(t||e||n||a)},i("div",{class:F.footerContent,hidden:!n},i("slot",{name:P.footer,onSlotchange:this.handleFooterSlotChange})),i("div",{class:F.footerStart,hidden:n||!t},i("slot",{name:P.footerStart,onSlotchange:this.handleFooterStartSlotChange})),i("div",{class:F.footerEnd,hidden:n||!e},i("slot",{name:P.footerEnd,onSlotchange:this.handleFooterEndSlotChange})),i("div",{class:F.footerActions,hidden:n||!a},i("slot",{key:"footer-actions-slot",name:P.footerActions,onSlotchange:this.handleFooterActionsSlotChange})))}renderContent(){return i("div",{class:F.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("slot",null),this.renderFab())}renderContentBottom(){return i("div",{class:F.contentBottom,hidden:!this.hasContentBottom},i("slot",{name:P.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderContentTop(){return i("div",{class:F.contentTop,hidden:!this.hasContentTop},i("slot",{name:P.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderFab(){return i("div",{class:F.fabContainer,hidden:!this.hasFab},i("slot",{name:P.fab,onSlotchange:this.handleFabSlotChange}))}render(){const{disabled:e,loading:t,panelKeyDownHandler:n,isClosed:a}=this,o=i("article",{key:"94df4953da14ffe331994b99f62c18fdaa3b900b","aria-busy":l(t),class:F.container,hidden:a,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderContentBottom(),this.renderFooterNode(),i("slot",{key:"alerts",name:P.alerts,onSlotchange:this.handleAlertsSlotChange}));return i(s,{key:"01e56f24f7ad90c69f1415f4417b35ed9539e58d",onKeyDown:n},i(C,{key:"6274bdb95260746ce36cd731d363a2d3447cfe80",disabled:e},t?i("calcite-scrim",{loading:t}):null,o))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};$.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([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}:host([scale=s]){--calcite-internal-panel-default-padding:var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding:10px}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-panel-default-padding:var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-lg)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-panel-default-padding:var(--calcite-spacing-xl);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-xxl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.container{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-color-background);outline-color:transparent;padding:var(--calcite-panel-content-space, 0)}.content-wrapper:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.content-top,.content-bottom{padding:var(--calcite-internal-panel-default-padding)}.header-content{padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-padding)}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-color-border-3);padding:var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-padding))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-padding)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-padding)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-padding)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}";export{O as calcite_action_menu,$ as calcite_panel}
6
+ import{r as e,c as t,h as i,F as n,g as a,H as s}from"./p-6eb37ed2.js";import{g as o}from"./p-8bce991a.js";import{t as l,d as c,s as r,e as d,f as h}from"./p-66cee72b.js";import{g as p}from"./p-aaa56cbf.js";import{i as f}from"./p-64a34d92.js";import{s as m,a as u,c as g}from"./p-3e828614.js";import{a as b,C as v,I as x,S as y}from"./p-fa56b7c2.js";import{c as k,u as w,d as z,I as C}from"./p-1ce2608d.js";import{c as S}from"./p-1c249530.js";import{H as I}from"./p-1b229454.js";import{c as j,d as A}from"./p-8d453a3a.js";import{c as E,s as H,d as M,u as D}from"./p-a5fc6ab7.js";import{S as P,C as F,I as L,a as B}from"./p-2230d4cc.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const T=["ArrowUp","ArrowDown","End","Home"],O=class{constructor(i){e(this,i),this.calciteActionMenuOpen=t(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${p()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{const{menuButtonId:e,menuId:t,open:i,label:n}=this,a=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==a&&(this.disconnectMenuButtonEl(),this.menuButtonEl=a,this.setTooltipReferenceElement(),a&&(a.active=i,a.setAttribute("aria-controls",t),a.setAttribute("aria-expanded",l(i)),a.setAttribute("aria-haspopup","true"),a.id||(a.id=e),a.label||(a.label=n),a.text||(a.text=n),a.addEventListener("click",this.menuButtonClick),a.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-action")));this.slottedMenuButtonEl=t[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=e=>{this.defaultMenuButtonEl=e,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=e=>{const t=e.target.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-tooltip")));this.tooltipEl=t[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{const{tooltipEl:e,expanded:t,menuButtonEl:i,open:n}=this;e&&(e.referenceElement=t||n?null:i)},this.updateAction=(e,t)=>{const{guid:i,activeMenuItemIndex:n}=this,a=`${i}-action-${t}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=a),e.toggleAttribute(b,t===n)},this.updateActions=e=>{e?.forEach(this.updateAction)},this.handleDefaultSlotChange=e=>{const t=e.target.assignedElements({flatten:!0}).reduce(((e,t)=>t?.matches("calcite-action")?(e.push(t),e):t?.matches("calcite-action-group")?e.concat(Array.from(t.querySelectorAll("calcite-action"))):e),[]);this.actionElements=t.filter((e=>!e.disabled&&!e.hidden))},this.menuButtonKeyDown=e=>{const{key:t}=e,{actionElements:i,activeMenuItemIndex:n,open:a}=this;if(i.length){if(f(t)){if(e.preventDefault(),!a)return void this.toggleOpen();const t=i[n];t?t.click():this.toggleOpen(!1)}if("Tab"!==t)return"Escape"===t?(this.toggleOpen(!1),void e.preventDefault()):void this.handleActionNavigation(e,t,i);this.open=!1}},this.handleActionNavigation=(e,t,i)=>{if(!this.isValidKey(t,T))return;if(e.preventDefault(),!this.open)return this.toggleOpen(),"Home"!==t&&"ArrowDown"!==t||(this.activeMenuItemIndex=0),void("End"!==t&&"ArrowUp"!==t||(this.activeMenuItemIndex=i.length-1));"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=i.length-1);const n=this.activeMenuItemIndex;"ArrowUp"===t&&(this.activeMenuItemIndex=o(Math.max(n-1,-1),i.length)),"ArrowDown"===t&&(this.activeMenuItemIndex=o(n+1,i.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(e=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=e},this.handlePopoverOpen=()=>{this.open=!0},this.handlePopoverClose=()=>{this.open=!1},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}connectedCallback(){this.connectMenuButtonEl()}componentWillLoad(){m(this)}componentDidLoad(){u(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=e),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await g(this),c(this.menuButtonEl)}renderMenuButton(){const{appearance:e,label:t,scale:n,expanded:a}=this;return i("slot",{name:y.trigger,onSlotchange:this.setMenuButtonEl},i("calcite-action",{appearance:e,class:v.defaultTrigger,icon:x.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:t,textEnabled:a}))}renderMenuItems(){const{actionElements:e,activeMenuItemIndex:t,open:n,menuId:a,menuButtonEl:s,label:o,placement:l,overlayPositioning:c,flipPlacements:r}=this,d=e[t];return i("calcite-popover",{autoClose:!0,flipPlacements:r,focusTrapDisabled:!0,label:o,offsetDistance:0,onCalcitePopoverClose:this.handlePopoverClose,onCalcitePopoverOpen:this.handlePopoverOpen,open:n,overlayPositioning:c,placement:l,pointerDisabled:!0,referenceElement:s},i("div",{"aria-activedescendant":d?.id||null,"aria-labelledby":s?.id,class:v.menu,id:a,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},i("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return i(n,{key:"9feaace5a0750686cc4ad4e7ac83859cc26a7a20"},this.renderMenuButton(),this.renderMenuItems(),i("slot",{key:"ba73adb74c8c729467f300fd4ff33c7af23f2ad7",name:y.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(e,t){return!!t.find((t=>t===e))}get el(){return a(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};O.style=":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}";const $=class{constructor(i){e(this,i),this.calcitePanelClose=t(this,"calcitePanelClose",6),this.calcitePanelToggle=t(this,"calcitePanelToggle",6),this.calcitePanelScroll=t(this,"calcitePanelScroll",6),this.resizeObserver=S("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))},this.setContainerRef=e=>{this.containerEl=e},this.panelKeyDownHandler=e=>{this.closable&&"Escape"===e.key&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())},this.handleUserClose=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.open=()=>{this.isClosed=!1},this.close=async()=>{const e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch(e){return void requestAnimationFrame((()=>{this.closed=!1}))}this.isClosed=!0},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=e=>{this.hasStartActions=r(e)},this.handleHeaderActionsEndSlotChange=e=>{this.hasEndActions=r(e)},this.handleHeaderMenuActionsSlotChange=e=>{this.hasMenuItems=r(e)},this.handleActionBarSlotChange=e=>{const t=d(e).filter((e=>e?.matches("calcite-action-bar")));t.forEach((e=>e.layout="horizontal")),this.hasActionBar=!!t.length},this.handleHeaderContentSlotChange=e=>{this.hasHeaderContent=r(e)},this.handleFabSlotChange=e=>{this.hasFab=r(e)},this.handleFooterActionsSlotChange=e=>{this.hasFooterActions=r(e)},this.handleFooterEndSlotChange=e=>{this.hasFooterEndContent=r(e)},this.handleFooterStartSlotChange=e=>{this.hasFooterStartContent=r(e)},this.handleFooterSlotChange=e=>{this.hasFooterContent=r(e)},this.contentBottomSlotChangeHandler=e=>{this.hasContentBottom=r(e)},this.contentTopSlotChangeHandler=e=>{this.hasContentTop=r(e)},this.setPanelScrollEl=e=>{this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())},this.handleAlertsSlotChange=e=>{d(e)?.map((e=>{"CALCITE-ALERT"===e.nodeName&&(e.embedded=!0)}))},this.beforeClose=void 0,this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.isClosed=!1,this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}toggleDialog(e){e?this.close():this.open()}onMessagesChange(){}connectedCallback(){k(this),j(this),E(this)}async componentWillLoad(){m(this),await H(this)}componentDidLoad(){u(this)}componentDidRender(){w(this)}disconnectedCallback(){z(this),A(this),M(this),this.resizeObserver?.disconnect()}effectiveLocaleChange(){D(this,this.effectiveLocale)}async setFocus(){await g(this),h(this.containerEl)}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}renderHeaderContent(){const{heading:e,headingLevel:t,description:n,hasHeaderContent:a}=this,s=e?i(I,{class:F.heading,level:t},e):null,o=n?i("span",{class:F.description},n):null;return a||!s&&!o?null:i("div",{class:F.headerContent,key:"header-content"},s,o)}renderActionBar(){return i("div",{class:F.actionBarContainer,hidden:!this.hasActionBar},i("slot",{name:P.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return i("div",{class:F.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},i("slot",{name:P.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:e}=this;return i("div",{class:{[F.headerActionsStart]:!0,[F.headerActions]:!0},hidden:!e,key:"header-actions-start"},i("slot",{name:P.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{hasEndActions:e,messages:t,closable:n,collapsed:a,collapseDirection:s,collapsible:o,hasMenuItems:c}=this,{collapse:r,expand:d,close:h}=t,p=[B.expand,B.collapse];"up"===s&&p.reverse();const f=o?i("calcite-action",{"aria-expanded":l(!a),"aria-label":r,icon:a?p[0]:p[1],id:L.collapse,onClick:this.collapse,scale:this.scale,text:r,title:a?d:r}):null,m=n?i("calcite-action",{"aria-label":h,icon:B.close,id:L.close,onClick:this.handleUserClose,scale:this.scale,text:h,title:h}):null,u=i("slot",{name:P.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),g=e||f||m||c;return i("div",{class:{[F.headerActionsEnd]:!0,[F.headerActions]:!0},hidden:!g,key:"header-actions-end"},u,this.renderMenu(),f,m)}renderMenu(){const{hasMenuItems:e,messages:t,menuOpen:n}=this;return i("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!e,key:"menu",label:t.options,open:n,overlayPositioning:this.overlayPositioning,placement:"bottom-end"},i("calcite-action",{icon:B.menu,scale:this.scale,slot:y.trigger,text:t.options}),i("slot",{name:P.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{hasHeaderContent:e,hasStartActions:t,hasEndActions:n,closable:a,collapsible:s,hasMenuItems:o,hasActionBar:l}=this,c=this.renderHeaderContent(),r=e||!!c||t||n||s||a||o;return this.showHeaderContent=r,i("header",{class:F.header,hidden:!(r||l)},i("div",{class:{[F.headerContainer]:!0,[F.headerContainerBorderEnd]:l},hidden:!r},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),c,this.renderHeaderActionsEnd()),this.renderActionBar(),this.renderContentTop())}renderFooterNode(){const{hasFooterEndContent:e,hasFooterStartContent:t,hasFooterContent:n,hasFooterActions:a}=this;return i("footer",{class:F.footer,hidden:!(t||e||n||a)},i("div",{class:F.footerContent,hidden:!n},i("slot",{name:P.footer,onSlotchange:this.handleFooterSlotChange})),i("div",{class:F.footerStart,hidden:n||!t},i("slot",{name:P.footerStart,onSlotchange:this.handleFooterStartSlotChange})),i("div",{class:F.footerEnd,hidden:n||!e},i("slot",{name:P.footerEnd,onSlotchange:this.handleFooterEndSlotChange})),i("div",{class:F.footerActions,hidden:n||!a},i("slot",{key:"footer-actions-slot",name:P.footerActions,onSlotchange:this.handleFooterActionsSlotChange})))}renderContent(){return i("div",{class:F.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("slot",null),this.renderFab())}renderContentBottom(){return i("div",{class:F.contentBottom,hidden:!this.hasContentBottom},i("slot",{name:P.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderContentTop(){return i("div",{class:F.contentTop,hidden:!this.hasContentTop},i("slot",{name:P.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderFab(){return i("div",{class:F.fabContainer,hidden:!this.hasFab},i("slot",{name:P.fab,onSlotchange:this.handleFabSlotChange}))}render(){const{disabled:e,loading:t,panelKeyDownHandler:n,isClosed:a}=this,o=i("article",{key:"94df4953da14ffe331994b99f62c18fdaa3b900b","aria-busy":l(t),class:F.container,hidden:a,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderContentBottom(),this.renderFooterNode(),i("slot",{key:"alerts",name:P.alerts,onSlotchange:this.handleAlertsSlotChange}));return i(s,{key:"01e56f24f7ad90c69f1415f4417b35ed9539e58d",onKeyDown:n},i(C,{key:"6274bdb95260746ce36cd731d363a2d3447cfe80",disabled:e},t?i("calcite-scrim",{loading:t}):null,o))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};$.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([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}:host([scale=s]){--calcite-internal-panel-default-padding:var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding:10px}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-panel-default-padding:var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-lg)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-panel-default-padding:var(--calcite-spacing-xl);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-xxl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.container{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-color-background);outline-color:transparent;padding:var(--calcite-panel-content-space, 0)}.content-wrapper:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.content-top,.content-bottom{padding:var(--calcite-internal-panel-default-padding)}.header-content{padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-padding)}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-color-border-3);padding:var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-padding))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-padding)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-padding)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-padding)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}";export{O as calcite_action_menu,$ as calcite_panel}