@esri/solutions-components 0.11.25 → 0.11.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1066) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +24 -22
  2. package/dist/cjs/create-feature_4.cjs.entry.js +28 -10
  3. package/dist/cjs/create-related-feature_3.cjs.entry.js +2 -1
  4. package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -4
  5. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  6. package/dist/cjs/{downloadUtils-fcae8eb1.js → downloadUtils-da9e19c6.js} +1 -1
  7. package/dist/cjs/feature-list.cjs.entry.js +3 -3
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
  11. package/dist/cjs/{mapViewUtils-4ea7216c.js → mapViewUtils-8b26c9d0.js} +3 -1
  12. package/dist/cjs/{popupUtils-87b006a6.js → popupUtils-69ad52f5.js} +1 -1
  13. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  14. package/dist/cjs/solution-item-accordion.cjs.entry.js +3 -3
  15. package/dist/cjs/solutions-components.cjs.js +1 -1
  16. package/dist/collection/components/card-manager/card-manager.js +1 -1
  17. package/dist/collection/components/create-feature/create-feature.js +12 -3
  18. package/dist/collection/components/create-related-feature/create-related-feature.js +1 -0
  19. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -3
  20. package/dist/collection/components/edit-card/edit-card.js +13 -4
  21. package/dist/collection/components/layer-table/layer-table.js +21 -21
  22. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +26 -0
  23. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +2 -2
  24. package/dist/collection/demos/index.html +0 -9
  25. package/dist/collection/utils/queryUtils.js +3 -1
  26. package/dist/collection/utils/queryUtils.ts +3 -1
  27. package/dist/components/card-manager2.js +1 -1
  28. package/dist/components/create-feature2.js +12 -3
  29. package/dist/components/create-related-feature2.js +1 -0
  30. package/dist/components/crowdsource-manager.js +3 -3
  31. package/dist/components/edit-card2.js +13 -4
  32. package/dist/components/layer-table2.js +21 -20
  33. package/dist/components/queryUtils.js +3 -1
  34. package/dist/components/solution-item-accordion.js +3 -3
  35. package/dist/esm/card-manager_3.entry.js +24 -22
  36. package/dist/esm/create-feature_4.entry.js +28 -10
  37. package/dist/esm/create-related-feature_3.entry.js +2 -1
  38. package/dist/esm/crowdsource-manager.entry.js +4 -4
  39. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  40. package/dist/esm/{downloadUtils-078cd709.js → downloadUtils-0b6677dc.js} +1 -1
  41. package/dist/esm/feature-list.entry.js +3 -3
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/map-layer-picker.entry.js +1 -1
  44. package/dist/esm/map-select-tools_3.entry.js +2 -2
  45. package/dist/esm/{mapViewUtils-9da9be1c.js → mapViewUtils-2682c21a.js} +3 -1
  46. package/dist/esm/{popupUtils-6a965512.js → popupUtils-9233302d.js} +1 -1
  47. package/dist/esm/public-notification.entry.js +2 -2
  48. package/dist/esm/solution-item-accordion.entry.js +3 -3
  49. package/dist/esm/solutions-components.js +1 -1
  50. package/dist/solutions-components/demos/index.html +0 -9
  51. package/dist/solutions-components/p-3a7bde22.entry.js +6 -0
  52. package/dist/solutions-components/{p-db3391b9.js → p-4084e2d1.js} +1 -1
  53. package/dist/solutions-components/p-4294c7e6.entry.js +6 -0
  54. package/dist/solutions-components/{p-abcdbba6.entry.js → p-447e7d3f.entry.js} +1 -1
  55. package/dist/solutions-components/{p-3e16c433.entry.js → p-477dbafa.entry.js} +1 -1
  56. package/dist/solutions-components/{p-a9b81651.entry.js → p-47f13430.entry.js} +1 -1
  57. package/dist/solutions-components/p-5693ce7a.js +36 -0
  58. package/dist/solutions-components/{p-e8df7a70.entry.js → p-83f0dd3b.entry.js} +1 -1
  59. package/dist/solutions-components/p-87ae2979.entry.js +6 -0
  60. package/dist/solutions-components/{p-84976ab1.entry.js → p-896b6028.entry.js} +1 -1
  61. package/dist/solutions-components/{p-0bc11bac.entry.js → p-9777c01f.entry.js} +1 -1
  62. package/dist/solutions-components/{p-c117b7f7.entry.js → p-ee8fa795.entry.js} +1 -1
  63. package/dist/solutions-components/{p-bf04c6f4.js → p-f3003b3a.js} +2 -2
  64. package/dist/solutions-components/solutions-components.esm.js +1 -1
  65. package/dist/solutions-components/utils/queryUtils.ts +3 -1
  66. package/dist/solutions-components_commit.txt +6 -6
  67. package/dist/types/components/layer-table/layer-table.d.ts +0 -4
  68. package/package.json +1 -1
  69. package/dist/collection/assets/t9n/add-record-modal/resources.json +0 -10
  70. package/dist/collection/assets/t9n/add-record-modal/resources_en.json +0 -10
  71. package/dist/collection/assets/t9n/arcgis-login/resources.json +0 -3
  72. package/dist/collection/assets/t9n/arcgis-login/resources_en.json +0 -3
  73. package/dist/collection/assets/t9n/buffer-tools/resources_en.json +0 -6
  74. package/dist/collection/assets/t9n/card-manager/resources_en.json +0 -7
  75. package/dist/collection/assets/t9n/comment-card/resources.json +0 -4
  76. package/dist/collection/assets/t9n/comment-card/resources_ar.json +0 -4
  77. package/dist/collection/assets/t9n/comment-card/resources_bg.json +0 -4
  78. package/dist/collection/assets/t9n/comment-card/resources_bs.json +0 -4
  79. package/dist/collection/assets/t9n/comment-card/resources_ca.json +0 -4
  80. package/dist/collection/assets/t9n/comment-card/resources_cs.json +0 -4
  81. package/dist/collection/assets/t9n/comment-card/resources_da.json +0 -4
  82. package/dist/collection/assets/t9n/comment-card/resources_de.json +0 -4
  83. package/dist/collection/assets/t9n/comment-card/resources_el.json +0 -4
  84. package/dist/collection/assets/t9n/comment-card/resources_en.json +0 -4
  85. package/dist/collection/assets/t9n/comment-card/resources_es.json +0 -4
  86. package/dist/collection/assets/t9n/comment-card/resources_et.json +0 -4
  87. package/dist/collection/assets/t9n/comment-card/resources_fi.json +0 -4
  88. package/dist/collection/assets/t9n/comment-card/resources_fr.json +0 -4
  89. package/dist/collection/assets/t9n/comment-card/resources_he.json +0 -4
  90. package/dist/collection/assets/t9n/comment-card/resources_hr.json +0 -4
  91. package/dist/collection/assets/t9n/comment-card/resources_hu.json +0 -4
  92. package/dist/collection/assets/t9n/comment-card/resources_id.json +0 -4
  93. package/dist/collection/assets/t9n/comment-card/resources_it.json +0 -4
  94. package/dist/collection/assets/t9n/comment-card/resources_ja.json +0 -4
  95. package/dist/collection/assets/t9n/comment-card/resources_ko.json +0 -4
  96. package/dist/collection/assets/t9n/comment-card/resources_lt.json +0 -4
  97. package/dist/collection/assets/t9n/comment-card/resources_lv.json +0 -4
  98. package/dist/collection/assets/t9n/comment-card/resources_nb.json +0 -4
  99. package/dist/collection/assets/t9n/comment-card/resources_nl.json +0 -4
  100. package/dist/collection/assets/t9n/comment-card/resources_no.json +0 -4
  101. package/dist/collection/assets/t9n/comment-card/resources_pl.json +0 -4
  102. package/dist/collection/assets/t9n/comment-card/resources_pt-BR.json +0 -4
  103. package/dist/collection/assets/t9n/comment-card/resources_pt-PT.json +0 -4
  104. package/dist/collection/assets/t9n/comment-card/resources_ro.json +0 -4
  105. package/dist/collection/assets/t9n/comment-card/resources_ru.json +0 -4
  106. package/dist/collection/assets/t9n/comment-card/resources_sk.json +0 -4
  107. package/dist/collection/assets/t9n/comment-card/resources_sl.json +0 -4
  108. package/dist/collection/assets/t9n/comment-card/resources_sr.json +0 -4
  109. package/dist/collection/assets/t9n/comment-card/resources_sv.json +0 -4
  110. package/dist/collection/assets/t9n/comment-card/resources_th.json +0 -4
  111. package/dist/collection/assets/t9n/comment-card/resources_tr.json +0 -4
  112. package/dist/collection/assets/t9n/comment-card/resources_uk.json +0 -4
  113. package/dist/collection/assets/t9n/comment-card/resources_vi.json +0 -4
  114. package/dist/collection/assets/t9n/comment-card/resources_zh-CN.json +0 -4
  115. package/dist/collection/assets/t9n/comment-card/resources_zh-HK.json +0 -4
  116. package/dist/collection/assets/t9n/comment-card/resources_zh-TW.json +0 -4
  117. package/dist/collection/assets/t9n/consent-manager/resources_en.json +0 -5
  118. package/dist/collection/assets/t9n/create-feature/resources_en.json +0 -5
  119. package/dist/collection/assets/t9n/create-related-feature/resources_en.json +0 -3
  120. package/dist/collection/assets/t9n/crowdsource-manager/resources_en.json +0 -15
  121. package/dist/collection/assets/t9n/crowdsource-reporter/resources_en.json +0 -32
  122. package/dist/collection/assets/t9n/delete-button/resources_en.json +0 -8
  123. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +0 -8
  124. package/dist/collection/assets/t9n/edit-card/resources_en.json +0 -3
  125. package/dist/collection/assets/t9n/feature-list/resources_en.json +0 -8
  126. package/dist/collection/assets/t9n/info-card/resources_en.json +0 -10
  127. package/dist/collection/assets/t9n/instant-apps-export/resources.json +0 -12
  128. package/dist/collection/assets/t9n/instant-apps-export/resources_ar.json +0 -11
  129. package/dist/collection/assets/t9n/instant-apps-export/resources_bg.json +0 -11
  130. package/dist/collection/assets/t9n/instant-apps-export/resources_bs.json +0 -11
  131. package/dist/collection/assets/t9n/instant-apps-export/resources_ca.json +0 -11
  132. package/dist/collection/assets/t9n/instant-apps-export/resources_cs.json +0 -11
  133. package/dist/collection/assets/t9n/instant-apps-export/resources_da.json +0 -11
  134. package/dist/collection/assets/t9n/instant-apps-export/resources_de.json +0 -11
  135. package/dist/collection/assets/t9n/instant-apps-export/resources_el.json +0 -11
  136. package/dist/collection/assets/t9n/instant-apps-export/resources_en.json +0 -12
  137. package/dist/collection/assets/t9n/instant-apps-export/resources_es.json +0 -11
  138. package/dist/collection/assets/t9n/instant-apps-export/resources_et.json +0 -11
  139. package/dist/collection/assets/t9n/instant-apps-export/resources_fi.json +0 -11
  140. package/dist/collection/assets/t9n/instant-apps-export/resources_fr.json +0 -11
  141. package/dist/collection/assets/t9n/instant-apps-export/resources_he.json +0 -11
  142. package/dist/collection/assets/t9n/instant-apps-export/resources_hr.json +0 -11
  143. package/dist/collection/assets/t9n/instant-apps-export/resources_hu.json +0 -11
  144. package/dist/collection/assets/t9n/instant-apps-export/resources_id.json +0 -11
  145. package/dist/collection/assets/t9n/instant-apps-export/resources_it.json +0 -11
  146. package/dist/collection/assets/t9n/instant-apps-export/resources_ja.json +0 -11
  147. package/dist/collection/assets/t9n/instant-apps-export/resources_ko.json +0 -11
  148. package/dist/collection/assets/t9n/instant-apps-export/resources_lt.json +0 -11
  149. package/dist/collection/assets/t9n/instant-apps-export/resources_lv.json +0 -11
  150. package/dist/collection/assets/t9n/instant-apps-export/resources_nb.json +0 -11
  151. package/dist/collection/assets/t9n/instant-apps-export/resources_nl.json +0 -11
  152. package/dist/collection/assets/t9n/instant-apps-export/resources_pl.json +0 -11
  153. package/dist/collection/assets/t9n/instant-apps-export/resources_pt-BR.json +0 -11
  154. package/dist/collection/assets/t9n/instant-apps-export/resources_pt-PT.json +0 -11
  155. package/dist/collection/assets/t9n/instant-apps-export/resources_ro.json +0 -11
  156. package/dist/collection/assets/t9n/instant-apps-export/resources_ru.json +0 -11
  157. package/dist/collection/assets/t9n/instant-apps-export/resources_sk.json +0 -11
  158. package/dist/collection/assets/t9n/instant-apps-export/resources_sl.json +0 -11
  159. package/dist/collection/assets/t9n/instant-apps-export/resources_sr.json +0 -11
  160. package/dist/collection/assets/t9n/instant-apps-export/resources_sv.json +0 -11
  161. package/dist/collection/assets/t9n/instant-apps-export/resources_th.json +0 -11
  162. package/dist/collection/assets/t9n/instant-apps-export/resources_tr.json +0 -11
  163. package/dist/collection/assets/t9n/instant-apps-export/resources_uk.json +0 -11
  164. package/dist/collection/assets/t9n/instant-apps-export/resources_vi.json +0 -11
  165. package/dist/collection/assets/t9n/instant-apps-export/resources_zh-CN.json +0 -11
  166. package/dist/collection/assets/t9n/instant-apps-export/resources_zh-HK.json +0 -11
  167. package/dist/collection/assets/t9n/instant-apps-export/resources_zh-TW.json +0 -11
  168. package/dist/collection/assets/t9n/instant-apps-filter-list/resources.json +0 -16
  169. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ar.json +0 -16
  170. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_bg.json +0 -16
  171. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_bs.json +0 -16
  172. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ca.json +0 -16
  173. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_cs.json +0 -16
  174. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_da.json +0 -16
  175. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_de.json +0 -16
  176. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_el.json +0 -16
  177. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_en.json +0 -16
  178. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_es.json +0 -16
  179. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_et.json +0 -16
  180. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_fi.json +0 -16
  181. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_fr.json +0 -16
  182. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_he.json +0 -16
  183. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_hr.json +0 -16
  184. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_hu.json +0 -16
  185. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_id.json +0 -16
  186. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_it.json +0 -16
  187. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ja.json +0 -16
  188. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ko.json +0 -16
  189. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_lt.json +0 -16
  190. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_lv.json +0 -16
  191. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_nb.json +0 -16
  192. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_nl.json +0 -16
  193. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_pl.json +0 -16
  194. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_pt-BR.json +0 -16
  195. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_pt-PT.json +0 -16
  196. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ro.json +0 -16
  197. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_ru.json +0 -16
  198. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_sk.json +0 -16
  199. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_sl.json +0 -16
  200. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_sr.json +0 -16
  201. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_sv.json +0 -16
  202. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_th.json +0 -16
  203. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_tr.json +0 -16
  204. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_uk.json +0 -16
  205. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_vi.json +0 -16
  206. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_zh-CN.json +0 -16
  207. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_zh-HK.json +0 -16
  208. package/dist/collection/assets/t9n/instant-apps-filter-list/resources_zh-TW.json +0 -16
  209. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources.json +0 -15
  210. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ar.json +0 -15
  211. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_bg.json +0 -15
  212. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_bs.json +0 -15
  213. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ca.json +0 -15
  214. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_cs.json +0 -15
  215. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_da.json +0 -15
  216. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_de.json +0 -15
  217. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_el.json +0 -15
  218. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_en.json +0 -15
  219. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_es.json +0 -15
  220. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_et.json +0 -15
  221. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_fi.json +0 -15
  222. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_fr.json +0 -15
  223. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_he.json +0 -15
  224. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_hr.json +0 -15
  225. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_hu.json +0 -15
  226. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_id.json +0 -15
  227. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_it.json +0 -15
  228. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ja.json +0 -15
  229. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ko.json +0 -15
  230. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_lt.json +0 -15
  231. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_lv.json +0 -15
  232. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_nb.json +0 -15
  233. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_nl.json +0 -15
  234. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_pl.json +0 -15
  235. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_pt-BR.json +0 -15
  236. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_pt-PT.json +0 -15
  237. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ro.json +0 -15
  238. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_ru.json +0 -15
  239. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_sk.json +0 -15
  240. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_sl.json +0 -15
  241. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_sr.json +0 -15
  242. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_sv.json +0 -15
  243. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_th.json +0 -15
  244. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_tr.json +0 -15
  245. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_uk.json +0 -15
  246. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_vi.json +0 -15
  247. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_zh-CN.json +0 -15
  248. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_zh-HK.json +0 -15
  249. package/dist/collection/assets/t9n/instant-apps-interactive-legend/resources_zh-TW.json +0 -15
  250. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources.json +0 -30
  251. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ar.json +0 -30
  252. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_bg.json +0 -30
  253. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_bs.json +0 -30
  254. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ca.json +0 -30
  255. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_cs.json +0 -30
  256. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_da.json +0 -30
  257. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_de.json +0 -30
  258. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_el.json +0 -30
  259. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_en.json +0 -30
  260. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_es.json +0 -30
  261. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_et.json +0 -30
  262. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_fi.json +0 -30
  263. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_fr.json +0 -30
  264. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_he.json +0 -30
  265. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_hr.json +0 -30
  266. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_hu.json +0 -30
  267. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_id.json +0 -30
  268. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_it.json +0 -30
  269. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ja.json +0 -30
  270. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ko.json +0 -30
  271. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_lt.json +0 -30
  272. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_lv.json +0 -30
  273. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_nb.json +0 -30
  274. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_nl.json +0 -30
  275. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_pl.json +0 -30
  276. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_pt-BR.json +0 -30
  277. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_pt-PT.json +0 -30
  278. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ro.json +0 -30
  279. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_ru.json +0 -30
  280. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_sk.json +0 -30
  281. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_sl.json +0 -30
  282. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_sr.json +0 -30
  283. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_sv.json +0 -30
  284. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_th.json +0 -30
  285. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_tr.json +0 -30
  286. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_uk.json +0 -30
  287. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_vi.json +0 -30
  288. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-CN.json +0 -30
  289. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-HK.json +0 -30
  290. package/dist/collection/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-TW.json +0 -30
  291. package/dist/collection/assets/t9n/instant-apps-language-translator/resources.json +0 -102
  292. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ar.json +0 -102
  293. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_bg.json +0 -102
  294. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_bs.json +0 -102
  295. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ca.json +0 -102
  296. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_cs.json +0 -102
  297. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_da.json +0 -102
  298. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_de.json +0 -102
  299. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_el.json +0 -102
  300. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_en.json +0 -102
  301. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_es.json +0 -102
  302. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_et.json +0 -102
  303. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_fi.json +0 -102
  304. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_fr.json +0 -102
  305. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_he.json +0 -102
  306. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_hr.json +0 -102
  307. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_hu.json +0 -102
  308. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_id.json +0 -102
  309. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_it.json +0 -102
  310. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ja.json +0 -102
  311. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ko.json +0 -102
  312. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_lt.json +0 -102
  313. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_lv.json +0 -102
  314. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_nb.json +0 -102
  315. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_nl.json +0 -102
  316. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_pl.json +0 -102
  317. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_pt-BR.json +0 -102
  318. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_pt-PT.json +0 -102
  319. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ro.json +0 -102
  320. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_ru.json +0 -102
  321. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_sk.json +0 -102
  322. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_sl.json +0 -102
  323. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_sr.json +0 -102
  324. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_sv.json +0 -102
  325. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_th.json +0 -102
  326. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_tr.json +0 -102
  327. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_uk.json +0 -102
  328. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_vi.json +0 -102
  329. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_zh-CN.json +0 -102
  330. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_zh-HK.json +0 -102
  331. package/dist/collection/assets/t9n/instant-apps-language-translator/resources_zh-TW.json +0 -102
  332. package/dist/collection/assets/t9n/instant-apps-measurement/resources.json +0 -7
  333. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ar.json +0 -7
  334. package/dist/collection/assets/t9n/instant-apps-measurement/resources_bg.json +0 -7
  335. package/dist/collection/assets/t9n/instant-apps-measurement/resources_bs.json +0 -7
  336. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ca.json +0 -7
  337. package/dist/collection/assets/t9n/instant-apps-measurement/resources_cs.json +0 -7
  338. package/dist/collection/assets/t9n/instant-apps-measurement/resources_da.json +0 -7
  339. package/dist/collection/assets/t9n/instant-apps-measurement/resources_de.json +0 -7
  340. package/dist/collection/assets/t9n/instant-apps-measurement/resources_el.json +0 -7
  341. package/dist/collection/assets/t9n/instant-apps-measurement/resources_en.json +0 -7
  342. package/dist/collection/assets/t9n/instant-apps-measurement/resources_es.json +0 -7
  343. package/dist/collection/assets/t9n/instant-apps-measurement/resources_et.json +0 -7
  344. package/dist/collection/assets/t9n/instant-apps-measurement/resources_fi.json +0 -7
  345. package/dist/collection/assets/t9n/instant-apps-measurement/resources_fr.json +0 -7
  346. package/dist/collection/assets/t9n/instant-apps-measurement/resources_he.json +0 -7
  347. package/dist/collection/assets/t9n/instant-apps-measurement/resources_hr.json +0 -7
  348. package/dist/collection/assets/t9n/instant-apps-measurement/resources_hu.json +0 -7
  349. package/dist/collection/assets/t9n/instant-apps-measurement/resources_id.json +0 -7
  350. package/dist/collection/assets/t9n/instant-apps-measurement/resources_it.json +0 -7
  351. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ja.json +0 -7
  352. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ko.json +0 -7
  353. package/dist/collection/assets/t9n/instant-apps-measurement/resources_lt.json +0 -7
  354. package/dist/collection/assets/t9n/instant-apps-measurement/resources_lv.json +0 -7
  355. package/dist/collection/assets/t9n/instant-apps-measurement/resources_nb.json +0 -7
  356. package/dist/collection/assets/t9n/instant-apps-measurement/resources_nl.json +0 -7
  357. package/dist/collection/assets/t9n/instant-apps-measurement/resources_pl.json +0 -7
  358. package/dist/collection/assets/t9n/instant-apps-measurement/resources_pt-BR.json +0 -7
  359. package/dist/collection/assets/t9n/instant-apps-measurement/resources_pt-PT.json +0 -7
  360. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ro.json +0 -7
  361. package/dist/collection/assets/t9n/instant-apps-measurement/resources_ru.json +0 -7
  362. package/dist/collection/assets/t9n/instant-apps-measurement/resources_sk.json +0 -7
  363. package/dist/collection/assets/t9n/instant-apps-measurement/resources_sl.json +0 -7
  364. package/dist/collection/assets/t9n/instant-apps-measurement/resources_sr.json +0 -7
  365. package/dist/collection/assets/t9n/instant-apps-measurement/resources_sv.json +0 -7
  366. package/dist/collection/assets/t9n/instant-apps-measurement/resources_th.json +0 -7
  367. package/dist/collection/assets/t9n/instant-apps-measurement/resources_tr.json +0 -7
  368. package/dist/collection/assets/t9n/instant-apps-measurement/resources_uk.json +0 -7
  369. package/dist/collection/assets/t9n/instant-apps-measurement/resources_vi.json +0 -7
  370. package/dist/collection/assets/t9n/instant-apps-measurement/resources_zh-CN.json +0 -7
  371. package/dist/collection/assets/t9n/instant-apps-measurement/resources_zh-HK.json +0 -7
  372. package/dist/collection/assets/t9n/instant-apps-measurement/resources_zh-TW.json +0 -7
  373. package/dist/collection/assets/t9n/instant-apps-popover/resources.json +0 -7
  374. package/dist/collection/assets/t9n/instant-apps-popover/resources_ar.json +0 -6
  375. package/dist/collection/assets/t9n/instant-apps-popover/resources_bg.json +0 -6
  376. package/dist/collection/assets/t9n/instant-apps-popover/resources_bs.json +0 -6
  377. package/dist/collection/assets/t9n/instant-apps-popover/resources_ca.json +0 -6
  378. package/dist/collection/assets/t9n/instant-apps-popover/resources_cs.json +0 -6
  379. package/dist/collection/assets/t9n/instant-apps-popover/resources_da.json +0 -6
  380. package/dist/collection/assets/t9n/instant-apps-popover/resources_de.json +0 -6
  381. package/dist/collection/assets/t9n/instant-apps-popover/resources_el.json +0 -6
  382. package/dist/collection/assets/t9n/instant-apps-popover/resources_en.json +0 -7
  383. package/dist/collection/assets/t9n/instant-apps-popover/resources_es.json +0 -6
  384. package/dist/collection/assets/t9n/instant-apps-popover/resources_et.json +0 -6
  385. package/dist/collection/assets/t9n/instant-apps-popover/resources_fi.json +0 -6
  386. package/dist/collection/assets/t9n/instant-apps-popover/resources_fr.json +0 -6
  387. package/dist/collection/assets/t9n/instant-apps-popover/resources_he.json +0 -6
  388. package/dist/collection/assets/t9n/instant-apps-popover/resources_hr.json +0 -6
  389. package/dist/collection/assets/t9n/instant-apps-popover/resources_hu.json +0 -6
  390. package/dist/collection/assets/t9n/instant-apps-popover/resources_id.json +0 -6
  391. package/dist/collection/assets/t9n/instant-apps-popover/resources_it.json +0 -6
  392. package/dist/collection/assets/t9n/instant-apps-popover/resources_ja.json +0 -6
  393. package/dist/collection/assets/t9n/instant-apps-popover/resources_ko.json +0 -6
  394. package/dist/collection/assets/t9n/instant-apps-popover/resources_lt.json +0 -6
  395. package/dist/collection/assets/t9n/instant-apps-popover/resources_lv.json +0 -6
  396. package/dist/collection/assets/t9n/instant-apps-popover/resources_nb.json +0 -6
  397. package/dist/collection/assets/t9n/instant-apps-popover/resources_nl.json +0 -6
  398. package/dist/collection/assets/t9n/instant-apps-popover/resources_pl.json +0 -6
  399. package/dist/collection/assets/t9n/instant-apps-popover/resources_pt-BR.json +0 -6
  400. package/dist/collection/assets/t9n/instant-apps-popover/resources_pt-PT.json +0 -6
  401. package/dist/collection/assets/t9n/instant-apps-popover/resources_ro.json +0 -6
  402. package/dist/collection/assets/t9n/instant-apps-popover/resources_ru.json +0 -6
  403. package/dist/collection/assets/t9n/instant-apps-popover/resources_sk.json +0 -6
  404. package/dist/collection/assets/t9n/instant-apps-popover/resources_sl.json +0 -6
  405. package/dist/collection/assets/t9n/instant-apps-popover/resources_sr.json +0 -6
  406. package/dist/collection/assets/t9n/instant-apps-popover/resources_sv.json +0 -6
  407. package/dist/collection/assets/t9n/instant-apps-popover/resources_th.json +0 -6
  408. package/dist/collection/assets/t9n/instant-apps-popover/resources_tr.json +0 -6
  409. package/dist/collection/assets/t9n/instant-apps-popover/resources_uk.json +0 -6
  410. package/dist/collection/assets/t9n/instant-apps-popover/resources_vi.json +0 -6
  411. package/dist/collection/assets/t9n/instant-apps-popover/resources_zh-CN.json +0 -6
  412. package/dist/collection/assets/t9n/instant-apps-popover/resources_zh-HK.json +0 -6
  413. package/dist/collection/assets/t9n/instant-apps-popover/resources_zh-TW.json +0 -6
  414. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources.json +0 -7
  415. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ar.json +0 -7
  416. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_bg.json +0 -7
  417. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_bs.json +0 -7
  418. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ca.json +0 -7
  419. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_cs.json +0 -7
  420. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_da.json +0 -7
  421. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_de.json +0 -7
  422. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_el.json +0 -7
  423. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_en.json +0 -7
  424. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_es.json +0 -7
  425. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_et.json +0 -7
  426. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_fi.json +0 -7
  427. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_fr.json +0 -7
  428. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_he.json +0 -7
  429. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_hr.json +0 -7
  430. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_hu.json +0 -7
  431. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_id.json +0 -7
  432. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_it.json +0 -7
  433. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ja.json +0 -7
  434. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ko.json +0 -7
  435. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_lt.json +0 -7
  436. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_lv.json +0 -7
  437. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_nb.json +0 -7
  438. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_nl.json +0 -7
  439. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_pl.json +0 -7
  440. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_pt-BR.json +0 -7
  441. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_pt-PT.json +0 -7
  442. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ro.json +0 -7
  443. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_ru.json +0 -7
  444. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_sk.json +0 -7
  445. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_sl.json +0 -7
  446. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_sr.json +0 -7
  447. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_sv.json +0 -7
  448. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_th.json +0 -7
  449. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_tr.json +0 -7
  450. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_uk.json +0 -7
  451. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_vi.json +0 -7
  452. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_zh-CN.json +0 -7
  453. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_zh-HK.json +0 -7
  454. package/dist/collection/assets/t9n/instant-apps-scoreboard/resources_zh-TW.json +0 -7
  455. package/dist/collection/assets/t9n/instant-apps-social-share/resources.json +0 -38
  456. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ar.json +0 -38
  457. package/dist/collection/assets/t9n/instant-apps-social-share/resources_bg.json +0 -38
  458. package/dist/collection/assets/t9n/instant-apps-social-share/resources_bs.json +0 -38
  459. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ca.json +0 -38
  460. package/dist/collection/assets/t9n/instant-apps-social-share/resources_cs.json +0 -38
  461. package/dist/collection/assets/t9n/instant-apps-social-share/resources_da.json +0 -38
  462. package/dist/collection/assets/t9n/instant-apps-social-share/resources_de.json +0 -38
  463. package/dist/collection/assets/t9n/instant-apps-social-share/resources_el.json +0 -38
  464. package/dist/collection/assets/t9n/instant-apps-social-share/resources_en.json +0 -38
  465. package/dist/collection/assets/t9n/instant-apps-social-share/resources_es.json +0 -38
  466. package/dist/collection/assets/t9n/instant-apps-social-share/resources_et.json +0 -38
  467. package/dist/collection/assets/t9n/instant-apps-social-share/resources_fi.json +0 -38
  468. package/dist/collection/assets/t9n/instant-apps-social-share/resources_fr.json +0 -38
  469. package/dist/collection/assets/t9n/instant-apps-social-share/resources_he.json +0 -38
  470. package/dist/collection/assets/t9n/instant-apps-social-share/resources_hr.json +0 -38
  471. package/dist/collection/assets/t9n/instant-apps-social-share/resources_hu.json +0 -38
  472. package/dist/collection/assets/t9n/instant-apps-social-share/resources_id.json +0 -38
  473. package/dist/collection/assets/t9n/instant-apps-social-share/resources_it.json +0 -38
  474. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ja.json +0 -38
  475. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ko.json +0 -38
  476. package/dist/collection/assets/t9n/instant-apps-social-share/resources_lt.json +0 -38
  477. package/dist/collection/assets/t9n/instant-apps-social-share/resources_lv.json +0 -38
  478. package/dist/collection/assets/t9n/instant-apps-social-share/resources_nb.json +0 -38
  479. package/dist/collection/assets/t9n/instant-apps-social-share/resources_nl.json +0 -38
  480. package/dist/collection/assets/t9n/instant-apps-social-share/resources_pl.json +0 -38
  481. package/dist/collection/assets/t9n/instant-apps-social-share/resources_pt-BR.json +0 -38
  482. package/dist/collection/assets/t9n/instant-apps-social-share/resources_pt-PT.json +0 -38
  483. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ro.json +0 -38
  484. package/dist/collection/assets/t9n/instant-apps-social-share/resources_ru.json +0 -38
  485. package/dist/collection/assets/t9n/instant-apps-social-share/resources_sk.json +0 -38
  486. package/dist/collection/assets/t9n/instant-apps-social-share/resources_sl.json +0 -38
  487. package/dist/collection/assets/t9n/instant-apps-social-share/resources_sr.json +0 -38
  488. package/dist/collection/assets/t9n/instant-apps-social-share/resources_sv.json +0 -38
  489. package/dist/collection/assets/t9n/instant-apps-social-share/resources_th.json +0 -38
  490. package/dist/collection/assets/t9n/instant-apps-social-share/resources_tr.json +0 -38
  491. package/dist/collection/assets/t9n/instant-apps-social-share/resources_uk.json +0 -38
  492. package/dist/collection/assets/t9n/instant-apps-social-share/resources_vi.json +0 -38
  493. package/dist/collection/assets/t9n/instant-apps-social-share/resources_zh-CN.json +0 -38
  494. package/dist/collection/assets/t9n/instant-apps-social-share/resources_zh-HK.json +0 -38
  495. package/dist/collection/assets/t9n/instant-apps-social-share/resources_zh-TW.json +0 -38
  496. package/dist/collection/assets/t9n/instant-apps-splash/resources.json +0 -3
  497. package/dist/collection/assets/t9n/instant-apps-splash/resources_en.json +0 -3
  498. package/dist/collection/assets/t9n/json-editor/resources_en.json +0 -8
  499. package/dist/collection/assets/t9n/layer-list/resources_en.json +0 -4
  500. package/dist/collection/assets/t9n/layer-table/resources_en.json +0 -25
  501. package/dist/collection/assets/t9n/map-card/resources_en.json +0 -10
  502. package/dist/collection/assets/t9n/map-draw-tools/resources_en.json +0 -5
  503. package/dist/collection/assets/t9n/map-layer-picker/resources_en.json +0 -5
  504. package/dist/collection/assets/t9n/map-picker/resources_en.json +0 -3
  505. package/dist/collection/assets/t9n/map-search/resources_en.json +0 -3
  506. package/dist/collection/assets/t9n/map-select-tools/resources_en.json +0 -16
  507. package/dist/collection/assets/t9n/map-tools/resources_en.json +0 -10
  508. package/dist/collection/assets/t9n/media-card/resources.json +0 -3
  509. package/dist/collection/assets/t9n/media-card/resources_ar.json +0 -3
  510. package/dist/collection/assets/t9n/media-card/resources_bg.json +0 -3
  511. package/dist/collection/assets/t9n/media-card/resources_bs.json +0 -3
  512. package/dist/collection/assets/t9n/media-card/resources_ca.json +0 -3
  513. package/dist/collection/assets/t9n/media-card/resources_cs.json +0 -3
  514. package/dist/collection/assets/t9n/media-card/resources_da.json +0 -3
  515. package/dist/collection/assets/t9n/media-card/resources_de.json +0 -3
  516. package/dist/collection/assets/t9n/media-card/resources_el.json +0 -3
  517. package/dist/collection/assets/t9n/media-card/resources_en.json +0 -3
  518. package/dist/collection/assets/t9n/media-card/resources_es.json +0 -3
  519. package/dist/collection/assets/t9n/media-card/resources_et.json +0 -3
  520. package/dist/collection/assets/t9n/media-card/resources_fi.json +0 -3
  521. package/dist/collection/assets/t9n/media-card/resources_fr.json +0 -3
  522. package/dist/collection/assets/t9n/media-card/resources_he.json +0 -3
  523. package/dist/collection/assets/t9n/media-card/resources_hr.json +0 -3
  524. package/dist/collection/assets/t9n/media-card/resources_hu.json +0 -3
  525. package/dist/collection/assets/t9n/media-card/resources_id.json +0 -3
  526. package/dist/collection/assets/t9n/media-card/resources_it.json +0 -3
  527. package/dist/collection/assets/t9n/media-card/resources_ja.json +0 -3
  528. package/dist/collection/assets/t9n/media-card/resources_ko.json +0 -3
  529. package/dist/collection/assets/t9n/media-card/resources_lt.json +0 -3
  530. package/dist/collection/assets/t9n/media-card/resources_lv.json +0 -3
  531. package/dist/collection/assets/t9n/media-card/resources_nb.json +0 -3
  532. package/dist/collection/assets/t9n/media-card/resources_nl.json +0 -3
  533. package/dist/collection/assets/t9n/media-card/resources_pl.json +0 -3
  534. package/dist/collection/assets/t9n/media-card/resources_pt-BR.json +0 -3
  535. package/dist/collection/assets/t9n/media-card/resources_pt-PT.json +0 -3
  536. package/dist/collection/assets/t9n/media-card/resources_ro.json +0 -3
  537. package/dist/collection/assets/t9n/media-card/resources_ru.json +0 -3
  538. package/dist/collection/assets/t9n/media-card/resources_sk.json +0 -3
  539. package/dist/collection/assets/t9n/media-card/resources_sl.json +0 -3
  540. package/dist/collection/assets/t9n/media-card/resources_sr.json +0 -3
  541. package/dist/collection/assets/t9n/media-card/resources_sv.json +0 -3
  542. package/dist/collection/assets/t9n/media-card/resources_th.json +0 -3
  543. package/dist/collection/assets/t9n/media-card/resources_tr.json +0 -3
  544. package/dist/collection/assets/t9n/media-card/resources_uk.json +0 -3
  545. package/dist/collection/assets/t9n/media-card/resources_vi.json +0 -3
  546. package/dist/collection/assets/t9n/media-card/resources_zh-CN.json +0 -3
  547. package/dist/collection/assets/t9n/media-card/resources_zh-HK.json +0 -3
  548. package/dist/collection/assets/t9n/media-card/resources_zh-TW.json +0 -3
  549. package/dist/collection/assets/t9n/pdf-download/resources_en.json +0 -3
  550. package/dist/collection/assets/t9n/public-notification/resources_en.json +0 -44
  551. package/dist/collection/assets/t9n/refine-selection/resources_en.json +0 -9
  552. package/dist/collection/assets/t9n/share-item/resources.json +0 -3
  553. package/dist/collection/assets/t9n/share-item/resources_en.json +0 -3
  554. package/dist/collection/assets/t9n/solution-configuration/resources_en.json +0 -15
  555. package/dist/collection/assets/t9n/solution-item/resources_en.json +0 -8
  556. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +0 -3
  557. package/dist/collection/assets/t9n/solution-item-details/resources_en.json +0 -8
  558. package/dist/collection/assets/t9n/solution-item-sharing/resources_en.json +0 -3
  559. package/dist/collection/assets/t9n/solution-organization-variables/resources_en.json +0 -3
  560. package/dist/collection/assets/t9n/solution-resource-item/resources_en.json +0 -8
  561. package/dist/collection/assets/t9n/solution-spatial-ref/resources_en.json +0 -5
  562. package/dist/collection/assets/t9n/solution-template-data/resources_en.json +0 -5
  563. package/dist/collection/assets/t9n/solution-variables/resources_en.json +0 -3
  564. package/dist/collection/assets/t9n/spatial-ref/resources_en.json +0 -3
  565. package/dist/collection/assets/t9n/store-manager/resources_en.json +0 -3
  566. package/dist/solutions-components/assets/t9n/add-record-modal/resources.json +0 -10
  567. package/dist/solutions-components/assets/t9n/add-record-modal/resources_en.json +0 -10
  568. package/dist/solutions-components/assets/t9n/arcgis-login/resources.json +0 -3
  569. package/dist/solutions-components/assets/t9n/arcgis-login/resources_en.json +0 -3
  570. package/dist/solutions-components/assets/t9n/buffer-tools/resources_en.json +0 -6
  571. package/dist/solutions-components/assets/t9n/card-manager/resources_en.json +0 -7
  572. package/dist/solutions-components/assets/t9n/comment-card/resources.json +0 -4
  573. package/dist/solutions-components/assets/t9n/comment-card/resources_ar.json +0 -4
  574. package/dist/solutions-components/assets/t9n/comment-card/resources_bg.json +0 -4
  575. package/dist/solutions-components/assets/t9n/comment-card/resources_bs.json +0 -4
  576. package/dist/solutions-components/assets/t9n/comment-card/resources_ca.json +0 -4
  577. package/dist/solutions-components/assets/t9n/comment-card/resources_cs.json +0 -4
  578. package/dist/solutions-components/assets/t9n/comment-card/resources_da.json +0 -4
  579. package/dist/solutions-components/assets/t9n/comment-card/resources_de.json +0 -4
  580. package/dist/solutions-components/assets/t9n/comment-card/resources_el.json +0 -4
  581. package/dist/solutions-components/assets/t9n/comment-card/resources_en.json +0 -4
  582. package/dist/solutions-components/assets/t9n/comment-card/resources_es.json +0 -4
  583. package/dist/solutions-components/assets/t9n/comment-card/resources_et.json +0 -4
  584. package/dist/solutions-components/assets/t9n/comment-card/resources_fi.json +0 -4
  585. package/dist/solutions-components/assets/t9n/comment-card/resources_fr.json +0 -4
  586. package/dist/solutions-components/assets/t9n/comment-card/resources_he.json +0 -4
  587. package/dist/solutions-components/assets/t9n/comment-card/resources_hr.json +0 -4
  588. package/dist/solutions-components/assets/t9n/comment-card/resources_hu.json +0 -4
  589. package/dist/solutions-components/assets/t9n/comment-card/resources_id.json +0 -4
  590. package/dist/solutions-components/assets/t9n/comment-card/resources_it.json +0 -4
  591. package/dist/solutions-components/assets/t9n/comment-card/resources_ja.json +0 -4
  592. package/dist/solutions-components/assets/t9n/comment-card/resources_ko.json +0 -4
  593. package/dist/solutions-components/assets/t9n/comment-card/resources_lt.json +0 -4
  594. package/dist/solutions-components/assets/t9n/comment-card/resources_lv.json +0 -4
  595. package/dist/solutions-components/assets/t9n/comment-card/resources_nb.json +0 -4
  596. package/dist/solutions-components/assets/t9n/comment-card/resources_nl.json +0 -4
  597. package/dist/solutions-components/assets/t9n/comment-card/resources_no.json +0 -4
  598. package/dist/solutions-components/assets/t9n/comment-card/resources_pl.json +0 -4
  599. package/dist/solutions-components/assets/t9n/comment-card/resources_pt-BR.json +0 -4
  600. package/dist/solutions-components/assets/t9n/comment-card/resources_pt-PT.json +0 -4
  601. package/dist/solutions-components/assets/t9n/comment-card/resources_ro.json +0 -4
  602. package/dist/solutions-components/assets/t9n/comment-card/resources_ru.json +0 -4
  603. package/dist/solutions-components/assets/t9n/comment-card/resources_sk.json +0 -4
  604. package/dist/solutions-components/assets/t9n/comment-card/resources_sl.json +0 -4
  605. package/dist/solutions-components/assets/t9n/comment-card/resources_sr.json +0 -4
  606. package/dist/solutions-components/assets/t9n/comment-card/resources_sv.json +0 -4
  607. package/dist/solutions-components/assets/t9n/comment-card/resources_th.json +0 -4
  608. package/dist/solutions-components/assets/t9n/comment-card/resources_tr.json +0 -4
  609. package/dist/solutions-components/assets/t9n/comment-card/resources_uk.json +0 -4
  610. package/dist/solutions-components/assets/t9n/comment-card/resources_vi.json +0 -4
  611. package/dist/solutions-components/assets/t9n/comment-card/resources_zh-CN.json +0 -4
  612. package/dist/solutions-components/assets/t9n/comment-card/resources_zh-HK.json +0 -4
  613. package/dist/solutions-components/assets/t9n/comment-card/resources_zh-TW.json +0 -4
  614. package/dist/solutions-components/assets/t9n/consent-manager/resources_en.json +0 -5
  615. package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +0 -5
  616. package/dist/solutions-components/assets/t9n/create-related-feature/resources_en.json +0 -3
  617. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_en.json +0 -15
  618. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_en.json +0 -32
  619. package/dist/solutions-components/assets/t9n/delete-button/resources_en.json +0 -8
  620. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +0 -8
  621. package/dist/solutions-components/assets/t9n/edit-card/resources_en.json +0 -3
  622. package/dist/solutions-components/assets/t9n/feature-list/resources_en.json +0 -8
  623. package/dist/solutions-components/assets/t9n/info-card/resources_en.json +0 -10
  624. package/dist/solutions-components/assets/t9n/instant-apps-export/resources.json +0 -12
  625. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ar.json +0 -11
  626. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_bg.json +0 -11
  627. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_bs.json +0 -11
  628. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ca.json +0 -11
  629. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_cs.json +0 -11
  630. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_da.json +0 -11
  631. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_de.json +0 -11
  632. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_el.json +0 -11
  633. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_en.json +0 -12
  634. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_es.json +0 -11
  635. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_et.json +0 -11
  636. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_fi.json +0 -11
  637. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_fr.json +0 -11
  638. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_he.json +0 -11
  639. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_hr.json +0 -11
  640. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_hu.json +0 -11
  641. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_id.json +0 -11
  642. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_it.json +0 -11
  643. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ja.json +0 -11
  644. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ko.json +0 -11
  645. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_lt.json +0 -11
  646. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_lv.json +0 -11
  647. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_nb.json +0 -11
  648. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_nl.json +0 -11
  649. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_pl.json +0 -11
  650. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_pt-BR.json +0 -11
  651. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_pt-PT.json +0 -11
  652. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ro.json +0 -11
  653. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_ru.json +0 -11
  654. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_sk.json +0 -11
  655. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_sl.json +0 -11
  656. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_sr.json +0 -11
  657. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_sv.json +0 -11
  658. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_th.json +0 -11
  659. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_tr.json +0 -11
  660. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_uk.json +0 -11
  661. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_vi.json +0 -11
  662. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_zh-CN.json +0 -11
  663. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_zh-HK.json +0 -11
  664. package/dist/solutions-components/assets/t9n/instant-apps-export/resources_zh-TW.json +0 -11
  665. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources.json +0 -16
  666. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ar.json +0 -16
  667. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_bg.json +0 -16
  668. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_bs.json +0 -16
  669. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ca.json +0 -16
  670. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_cs.json +0 -16
  671. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_da.json +0 -16
  672. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_de.json +0 -16
  673. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_el.json +0 -16
  674. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_en.json +0 -16
  675. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_es.json +0 -16
  676. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_et.json +0 -16
  677. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_fi.json +0 -16
  678. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_fr.json +0 -16
  679. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_he.json +0 -16
  680. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_hr.json +0 -16
  681. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_hu.json +0 -16
  682. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_id.json +0 -16
  683. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_it.json +0 -16
  684. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ja.json +0 -16
  685. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ko.json +0 -16
  686. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_lt.json +0 -16
  687. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_lv.json +0 -16
  688. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_nb.json +0 -16
  689. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_nl.json +0 -16
  690. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_pl.json +0 -16
  691. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_pt-BR.json +0 -16
  692. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_pt-PT.json +0 -16
  693. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ro.json +0 -16
  694. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_ru.json +0 -16
  695. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_sk.json +0 -16
  696. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_sl.json +0 -16
  697. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_sr.json +0 -16
  698. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_sv.json +0 -16
  699. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_th.json +0 -16
  700. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_tr.json +0 -16
  701. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_uk.json +0 -16
  702. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_vi.json +0 -16
  703. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_zh-CN.json +0 -16
  704. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_zh-HK.json +0 -16
  705. package/dist/solutions-components/assets/t9n/instant-apps-filter-list/resources_zh-TW.json +0 -16
  706. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources.json +0 -15
  707. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ar.json +0 -15
  708. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_bg.json +0 -15
  709. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_bs.json +0 -15
  710. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ca.json +0 -15
  711. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_cs.json +0 -15
  712. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_da.json +0 -15
  713. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_de.json +0 -15
  714. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_el.json +0 -15
  715. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_en.json +0 -15
  716. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_es.json +0 -15
  717. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_et.json +0 -15
  718. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_fi.json +0 -15
  719. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_fr.json +0 -15
  720. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_he.json +0 -15
  721. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_hr.json +0 -15
  722. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_hu.json +0 -15
  723. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_id.json +0 -15
  724. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_it.json +0 -15
  725. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ja.json +0 -15
  726. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ko.json +0 -15
  727. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_lt.json +0 -15
  728. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_lv.json +0 -15
  729. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_nb.json +0 -15
  730. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_nl.json +0 -15
  731. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_pl.json +0 -15
  732. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_pt-BR.json +0 -15
  733. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_pt-PT.json +0 -15
  734. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ro.json +0 -15
  735. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_ru.json +0 -15
  736. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_sk.json +0 -15
  737. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_sl.json +0 -15
  738. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_sr.json +0 -15
  739. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_sv.json +0 -15
  740. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_th.json +0 -15
  741. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_tr.json +0 -15
  742. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_uk.json +0 -15
  743. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_vi.json +0 -15
  744. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_zh-CN.json +0 -15
  745. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_zh-HK.json +0 -15
  746. package/dist/solutions-components/assets/t9n/instant-apps-interactive-legend/resources_zh-TW.json +0 -15
  747. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources.json +0 -30
  748. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ar.json +0 -30
  749. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_bg.json +0 -30
  750. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_bs.json +0 -30
  751. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ca.json +0 -30
  752. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_cs.json +0 -30
  753. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_da.json +0 -30
  754. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_de.json +0 -30
  755. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_el.json +0 -30
  756. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_en.json +0 -30
  757. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_es.json +0 -30
  758. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_et.json +0 -30
  759. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_fi.json +0 -30
  760. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_fr.json +0 -30
  761. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_he.json +0 -30
  762. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_hr.json +0 -30
  763. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_hu.json +0 -30
  764. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_id.json +0 -30
  765. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_it.json +0 -30
  766. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ja.json +0 -30
  767. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ko.json +0 -30
  768. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_lt.json +0 -30
  769. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_lv.json +0 -30
  770. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_nb.json +0 -30
  771. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_nl.json +0 -30
  772. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_pl.json +0 -30
  773. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_pt-BR.json +0 -30
  774. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_pt-PT.json +0 -30
  775. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ro.json +0 -30
  776. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_ru.json +0 -30
  777. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_sk.json +0 -30
  778. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_sl.json +0 -30
  779. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_sr.json +0 -30
  780. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_sv.json +0 -30
  781. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_th.json +0 -30
  782. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_tr.json +0 -30
  783. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_uk.json +0 -30
  784. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_vi.json +0 -30
  785. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-CN.json +0 -30
  786. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-HK.json +0 -30
  787. package/dist/solutions-components/assets/t9n/instant-apps-keyboard-shortcuts/resources_zh-TW.json +0 -30
  788. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources.json +0 -102
  789. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ar.json +0 -102
  790. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_bg.json +0 -102
  791. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_bs.json +0 -102
  792. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ca.json +0 -102
  793. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_cs.json +0 -102
  794. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_da.json +0 -102
  795. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_de.json +0 -102
  796. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_el.json +0 -102
  797. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_en.json +0 -102
  798. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_es.json +0 -102
  799. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_et.json +0 -102
  800. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_fi.json +0 -102
  801. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_fr.json +0 -102
  802. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_he.json +0 -102
  803. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_hr.json +0 -102
  804. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_hu.json +0 -102
  805. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_id.json +0 -102
  806. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_it.json +0 -102
  807. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ja.json +0 -102
  808. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ko.json +0 -102
  809. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_lt.json +0 -102
  810. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_lv.json +0 -102
  811. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_nb.json +0 -102
  812. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_nl.json +0 -102
  813. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_pl.json +0 -102
  814. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_pt-BR.json +0 -102
  815. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_pt-PT.json +0 -102
  816. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ro.json +0 -102
  817. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_ru.json +0 -102
  818. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_sk.json +0 -102
  819. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_sl.json +0 -102
  820. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_sr.json +0 -102
  821. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_sv.json +0 -102
  822. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_th.json +0 -102
  823. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_tr.json +0 -102
  824. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_uk.json +0 -102
  825. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_vi.json +0 -102
  826. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_zh-CN.json +0 -102
  827. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_zh-HK.json +0 -102
  828. package/dist/solutions-components/assets/t9n/instant-apps-language-translator/resources_zh-TW.json +0 -102
  829. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources.json +0 -7
  830. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ar.json +0 -7
  831. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_bg.json +0 -7
  832. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_bs.json +0 -7
  833. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ca.json +0 -7
  834. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_cs.json +0 -7
  835. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_da.json +0 -7
  836. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_de.json +0 -7
  837. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_el.json +0 -7
  838. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_en.json +0 -7
  839. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_es.json +0 -7
  840. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_et.json +0 -7
  841. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_fi.json +0 -7
  842. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_fr.json +0 -7
  843. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_he.json +0 -7
  844. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_hr.json +0 -7
  845. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_hu.json +0 -7
  846. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_id.json +0 -7
  847. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_it.json +0 -7
  848. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ja.json +0 -7
  849. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ko.json +0 -7
  850. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_lt.json +0 -7
  851. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_lv.json +0 -7
  852. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_nb.json +0 -7
  853. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_nl.json +0 -7
  854. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_pl.json +0 -7
  855. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_pt-BR.json +0 -7
  856. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_pt-PT.json +0 -7
  857. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ro.json +0 -7
  858. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_ru.json +0 -7
  859. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_sk.json +0 -7
  860. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_sl.json +0 -7
  861. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_sr.json +0 -7
  862. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_sv.json +0 -7
  863. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_th.json +0 -7
  864. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_tr.json +0 -7
  865. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_uk.json +0 -7
  866. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_vi.json +0 -7
  867. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_zh-CN.json +0 -7
  868. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_zh-HK.json +0 -7
  869. package/dist/solutions-components/assets/t9n/instant-apps-measurement/resources_zh-TW.json +0 -7
  870. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources.json +0 -7
  871. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ar.json +0 -6
  872. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_bg.json +0 -6
  873. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_bs.json +0 -6
  874. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ca.json +0 -6
  875. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_cs.json +0 -6
  876. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_da.json +0 -6
  877. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_de.json +0 -6
  878. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_el.json +0 -6
  879. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_en.json +0 -7
  880. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_es.json +0 -6
  881. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_et.json +0 -6
  882. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_fi.json +0 -6
  883. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_fr.json +0 -6
  884. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_he.json +0 -6
  885. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_hr.json +0 -6
  886. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_hu.json +0 -6
  887. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_id.json +0 -6
  888. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_it.json +0 -6
  889. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ja.json +0 -6
  890. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ko.json +0 -6
  891. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_lt.json +0 -6
  892. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_lv.json +0 -6
  893. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_nb.json +0 -6
  894. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_nl.json +0 -6
  895. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_pl.json +0 -6
  896. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_pt-BR.json +0 -6
  897. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_pt-PT.json +0 -6
  898. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ro.json +0 -6
  899. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_ru.json +0 -6
  900. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_sk.json +0 -6
  901. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_sl.json +0 -6
  902. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_sr.json +0 -6
  903. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_sv.json +0 -6
  904. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_th.json +0 -6
  905. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_tr.json +0 -6
  906. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_uk.json +0 -6
  907. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_vi.json +0 -6
  908. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_zh-CN.json +0 -6
  909. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_zh-HK.json +0 -6
  910. package/dist/solutions-components/assets/t9n/instant-apps-popover/resources_zh-TW.json +0 -6
  911. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources.json +0 -7
  912. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ar.json +0 -7
  913. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_bg.json +0 -7
  914. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_bs.json +0 -7
  915. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ca.json +0 -7
  916. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_cs.json +0 -7
  917. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_da.json +0 -7
  918. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_de.json +0 -7
  919. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_el.json +0 -7
  920. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_en.json +0 -7
  921. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_es.json +0 -7
  922. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_et.json +0 -7
  923. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_fi.json +0 -7
  924. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_fr.json +0 -7
  925. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_he.json +0 -7
  926. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_hr.json +0 -7
  927. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_hu.json +0 -7
  928. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_id.json +0 -7
  929. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_it.json +0 -7
  930. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ja.json +0 -7
  931. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ko.json +0 -7
  932. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_lt.json +0 -7
  933. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_lv.json +0 -7
  934. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_nb.json +0 -7
  935. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_nl.json +0 -7
  936. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_pl.json +0 -7
  937. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_pt-BR.json +0 -7
  938. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_pt-PT.json +0 -7
  939. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ro.json +0 -7
  940. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_ru.json +0 -7
  941. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_sk.json +0 -7
  942. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_sl.json +0 -7
  943. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_sr.json +0 -7
  944. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_sv.json +0 -7
  945. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_th.json +0 -7
  946. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_tr.json +0 -7
  947. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_uk.json +0 -7
  948. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_vi.json +0 -7
  949. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_zh-CN.json +0 -7
  950. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_zh-HK.json +0 -7
  951. package/dist/solutions-components/assets/t9n/instant-apps-scoreboard/resources_zh-TW.json +0 -7
  952. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources.json +0 -38
  953. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ar.json +0 -38
  954. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_bg.json +0 -38
  955. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_bs.json +0 -38
  956. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ca.json +0 -38
  957. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_cs.json +0 -38
  958. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_da.json +0 -38
  959. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_de.json +0 -38
  960. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_el.json +0 -38
  961. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_en.json +0 -38
  962. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_es.json +0 -38
  963. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_et.json +0 -38
  964. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_fi.json +0 -38
  965. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_fr.json +0 -38
  966. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_he.json +0 -38
  967. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_hr.json +0 -38
  968. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_hu.json +0 -38
  969. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_id.json +0 -38
  970. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_it.json +0 -38
  971. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ja.json +0 -38
  972. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ko.json +0 -38
  973. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_lt.json +0 -38
  974. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_lv.json +0 -38
  975. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_nb.json +0 -38
  976. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_nl.json +0 -38
  977. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_pl.json +0 -38
  978. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_pt-BR.json +0 -38
  979. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_pt-PT.json +0 -38
  980. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ro.json +0 -38
  981. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_ru.json +0 -38
  982. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_sk.json +0 -38
  983. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_sl.json +0 -38
  984. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_sr.json +0 -38
  985. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_sv.json +0 -38
  986. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_th.json +0 -38
  987. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_tr.json +0 -38
  988. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_uk.json +0 -38
  989. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_vi.json +0 -38
  990. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_zh-CN.json +0 -38
  991. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_zh-HK.json +0 -38
  992. package/dist/solutions-components/assets/t9n/instant-apps-social-share/resources_zh-TW.json +0 -38
  993. package/dist/solutions-components/assets/t9n/instant-apps-splash/resources.json +0 -3
  994. package/dist/solutions-components/assets/t9n/instant-apps-splash/resources_en.json +0 -3
  995. package/dist/solutions-components/assets/t9n/json-editor/resources_en.json +0 -8
  996. package/dist/solutions-components/assets/t9n/layer-list/resources_en.json +0 -4
  997. package/dist/solutions-components/assets/t9n/layer-table/resources_en.json +0 -25
  998. package/dist/solutions-components/assets/t9n/map-card/resources_en.json +0 -10
  999. package/dist/solutions-components/assets/t9n/map-draw-tools/resources_en.json +0 -5
  1000. package/dist/solutions-components/assets/t9n/map-layer-picker/resources_en.json +0 -5
  1001. package/dist/solutions-components/assets/t9n/map-picker/resources_en.json +0 -3
  1002. package/dist/solutions-components/assets/t9n/map-search/resources_en.json +0 -3
  1003. package/dist/solutions-components/assets/t9n/map-select-tools/resources_en.json +0 -16
  1004. package/dist/solutions-components/assets/t9n/map-tools/resources_en.json +0 -10
  1005. package/dist/solutions-components/assets/t9n/media-card/resources.json +0 -3
  1006. package/dist/solutions-components/assets/t9n/media-card/resources_ar.json +0 -3
  1007. package/dist/solutions-components/assets/t9n/media-card/resources_bg.json +0 -3
  1008. package/dist/solutions-components/assets/t9n/media-card/resources_bs.json +0 -3
  1009. package/dist/solutions-components/assets/t9n/media-card/resources_ca.json +0 -3
  1010. package/dist/solutions-components/assets/t9n/media-card/resources_cs.json +0 -3
  1011. package/dist/solutions-components/assets/t9n/media-card/resources_da.json +0 -3
  1012. package/dist/solutions-components/assets/t9n/media-card/resources_de.json +0 -3
  1013. package/dist/solutions-components/assets/t9n/media-card/resources_el.json +0 -3
  1014. package/dist/solutions-components/assets/t9n/media-card/resources_en.json +0 -3
  1015. package/dist/solutions-components/assets/t9n/media-card/resources_es.json +0 -3
  1016. package/dist/solutions-components/assets/t9n/media-card/resources_et.json +0 -3
  1017. package/dist/solutions-components/assets/t9n/media-card/resources_fi.json +0 -3
  1018. package/dist/solutions-components/assets/t9n/media-card/resources_fr.json +0 -3
  1019. package/dist/solutions-components/assets/t9n/media-card/resources_he.json +0 -3
  1020. package/dist/solutions-components/assets/t9n/media-card/resources_hr.json +0 -3
  1021. package/dist/solutions-components/assets/t9n/media-card/resources_hu.json +0 -3
  1022. package/dist/solutions-components/assets/t9n/media-card/resources_id.json +0 -3
  1023. package/dist/solutions-components/assets/t9n/media-card/resources_it.json +0 -3
  1024. package/dist/solutions-components/assets/t9n/media-card/resources_ja.json +0 -3
  1025. package/dist/solutions-components/assets/t9n/media-card/resources_ko.json +0 -3
  1026. package/dist/solutions-components/assets/t9n/media-card/resources_lt.json +0 -3
  1027. package/dist/solutions-components/assets/t9n/media-card/resources_lv.json +0 -3
  1028. package/dist/solutions-components/assets/t9n/media-card/resources_nb.json +0 -3
  1029. package/dist/solutions-components/assets/t9n/media-card/resources_nl.json +0 -3
  1030. package/dist/solutions-components/assets/t9n/media-card/resources_pl.json +0 -3
  1031. package/dist/solutions-components/assets/t9n/media-card/resources_pt-BR.json +0 -3
  1032. package/dist/solutions-components/assets/t9n/media-card/resources_pt-PT.json +0 -3
  1033. package/dist/solutions-components/assets/t9n/media-card/resources_ro.json +0 -3
  1034. package/dist/solutions-components/assets/t9n/media-card/resources_ru.json +0 -3
  1035. package/dist/solutions-components/assets/t9n/media-card/resources_sk.json +0 -3
  1036. package/dist/solutions-components/assets/t9n/media-card/resources_sl.json +0 -3
  1037. package/dist/solutions-components/assets/t9n/media-card/resources_sr.json +0 -3
  1038. package/dist/solutions-components/assets/t9n/media-card/resources_sv.json +0 -3
  1039. package/dist/solutions-components/assets/t9n/media-card/resources_th.json +0 -3
  1040. package/dist/solutions-components/assets/t9n/media-card/resources_tr.json +0 -3
  1041. package/dist/solutions-components/assets/t9n/media-card/resources_uk.json +0 -3
  1042. package/dist/solutions-components/assets/t9n/media-card/resources_vi.json +0 -3
  1043. package/dist/solutions-components/assets/t9n/media-card/resources_zh-CN.json +0 -3
  1044. package/dist/solutions-components/assets/t9n/media-card/resources_zh-HK.json +0 -3
  1045. package/dist/solutions-components/assets/t9n/media-card/resources_zh-TW.json +0 -3
  1046. package/dist/solutions-components/assets/t9n/pdf-download/resources_en.json +0 -3
  1047. package/dist/solutions-components/assets/t9n/public-notification/resources_en.json +0 -44
  1048. package/dist/solutions-components/assets/t9n/refine-selection/resources_en.json +0 -9
  1049. package/dist/solutions-components/assets/t9n/share-item/resources.json +0 -3
  1050. package/dist/solutions-components/assets/t9n/share-item/resources_en.json +0 -3
  1051. package/dist/solutions-components/assets/t9n/solution-configuration/resources_en.json +0 -15
  1052. package/dist/solutions-components/assets/t9n/solution-item/resources_en.json +0 -8
  1053. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +0 -3
  1054. package/dist/solutions-components/assets/t9n/solution-item-details/resources_en.json +0 -8
  1055. package/dist/solutions-components/assets/t9n/solution-item-sharing/resources_en.json +0 -3
  1056. package/dist/solutions-components/assets/t9n/solution-organization-variables/resources_en.json +0 -3
  1057. package/dist/solutions-components/assets/t9n/solution-resource-item/resources_en.json +0 -8
  1058. package/dist/solutions-components/assets/t9n/solution-spatial-ref/resources_en.json +0 -5
  1059. package/dist/solutions-components/assets/t9n/solution-template-data/resources_en.json +0 -5
  1060. package/dist/solutions-components/assets/t9n/solution-variables/resources_en.json +0 -3
  1061. package/dist/solutions-components/assets/t9n/spatial-ref/resources_en.json +0 -3
  1062. package/dist/solutions-components/assets/t9n/store-manager/resources_en.json +0 -3
  1063. package/dist/solutions-components/p-12f91837.entry.js +0 -6
  1064. package/dist/solutions-components/p-16c5c285.entry.js +0 -6
  1065. package/dist/solutions-components/p-1dc077ec.entry.js +0 -6
  1066. package/dist/solutions-components/p-dcd2f00b.js +0 -36
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,g as s,h as e,H as a,F as h}from"./p-e996c38f.js";import{l,g as o}from"./p-404cbf48.js";import{g as n,a as c,b as r,c as d,h as u,d as p,q as f}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.locale=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage=void 0,this.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=25,this._updatedSorting=void 0,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1}get el(){return s(this)}_createFeature;_currentFeatureId;_defaultCenter;_defaultLevel;_editableLayerIds;_featureDetails;_featureList;_currentFeature;_selectedRelatedFeature;_relatedTable;_filterList;_highlightHandle;_layerList;_createRelatedFeature;_layers;_mapChange;_mapClickHandle;reactiveUtils;FeatureFilter;_selectedFeature;_selectedFeatureIndex;_selectedLayerId;_shareNode;_urlParamsLoaded;_validLayers;_nonVisibleValidLayers;_selectedLayer;_layerItemsHash;_showFullPanel;_floorExpression;_formElements=[];_prevSelectedLayerId;_currentLayerExpressions;_initDefExpressions;_t9nLayerExpressions;async isMobileWatchHandler(t){this.updatePanelState(!1,this._showFullPanel),t&&"filter-panel"===this._flowItems[this._flowItems.length-1]?(await this.backFromFilterPanel(),this._filterOpen=!0):!t&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{this.setInitExpressions(),await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await n(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&await this._layerList.refresh(),this._featureList&&this._featureList.refresh(),this._createFeature&&this._createFeature.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await(this._featureList?.refresh())}async showFeatureSymbolWatchHandler(){await(this._featureList?.refresh())}async updateLayerExpressionsT9n(t){if(this._t9nLayerExpressions=t||this.layerExpressions,null!=this._filterList)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(null!=this._currentLayerExpressions){const t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}togglePanel;async componentWillLoad(){this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(this.mapView?.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],this.setInitExpressions(),await this.setMapView()})))}componentWillRender(){(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"b262a653d9af3a8f332f416af7f297cc15ac3355"},this._reportSubmitted&&e("calcite-alert",{key:"efe33e5ec3ed708d21f8464aa70eb7ce9a258035","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},e("div",{key:"6c6a35bc84da9a13241313dd15dc4a5905f59866",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"21d8064c4bf5c0dd118cd012d9d30d2998011a00","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"93e68814f1f3cf62d9ed4d6673aec8124cfa0a4f",slot:"title"},this._translations.error),e("div",{key:"156cd9169dbcbeafa605620938ba9aeccd0f9401",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"2cb152fe6734f80f6d9714c3597aaf064ffffd57","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"33369e8086740651ef26bfc765448fb6bded03fe",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"5b4fbac03c85e82e2bb11611772186140d0419e9","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"31bd9f781304d1493dcbbee5914369742c8c0e03",slot:"title"},this._translations.error),e("div",{key:"7844073654d79069fe7e54c72ec7bc85a1e77436",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"17eca819f0141e4945deb8013aa662d5b3c27626"},e("calcite-shell",{key:"c07f28fa3733f6be3a22d813a267e77a05038f3e","content-behind":!0},this._getReporter())),this.isMobile&&this.filterModal())}async _initModules(){const[t,i]=await l(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=t,this.FeatureFilter=i}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await n(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{this._nonVisibleValidLayers.find((t=>t.id===i.id))||i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":t.push(this.getFilterPanel());break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,t?.length>0&&t):e("calcite-loader",{label:"",scale:"m"}))}filterModal(){return(this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[]).length>0&&e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._filterActive=!1,this._featureList.refresh()},onFilterUpdate:()=>this._handleFilterUpdate(this._filterList?.filterCount>0),ref:t=>this._filterList=t,resetBtn:!0,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return e("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"bottom-start",pointerDisabled:!0,referenceElement:"sort-popover"},e("calcite-list",{label:"","selection-mode":"single-persist"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")},selected:"newest"===this._updatedSortOption,value:"newest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")},selected:"oldest"===this._updatedSortOption,value:"oldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","highestVoted")},selected:"highestVoted"===this._updatedSortOption,value:"highestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","lowestVoted")},selected:"lowestVoted"===this._updatedSortOption,value:"lowestVoted"}))))}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(t){this._showLoadingIndicator=!0,this._filterActive=t,await this._featureList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader,selected:"layer-list"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,locale:this.locale,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"reporting-layer-list"===this._flowItems[this._flowItems.length-1]},e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},this._translations.chooseCategoryMsg)),e("layer-list",{class:"height-full",layers:t,locale:this.locale,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this),selected:"feature-create"===this._flowItems[this._flowItems.length-1]},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("create-feature",{customizeSubmit:!0,enableSearch:!0,enableSnapping:this.enableSnapping,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onModeChanged:this.backFromCreateFeaturePanel.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId,submitNewReportsMessage:this.submitNewReportsMessage})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList&&await this._layerList.refresh(),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(t){this._nonVisibleValidLayers.find((t=>t.id===this._selectedLayerId))&&this._selectedLayer.set("visible",t)}async layerListLoaded(t){if(this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]||"feature-list"===this._flowItems[0]){const i=t.detail,s=await c(this.mapView),e=[];this._validLayers=[],this._nonVisibleValidLayers=[],s.forEach((t=>{i.includes(t.id)&&(this._validLayers.push(t),t.visible||this._nonVisibleValidLayers.push(t),this._getLayersConfig(t.id)?.reporting&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}}async displayFeaturesList(t){await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}updateSortingOptions(){const t=""===this.sortOption?"newest":this.sortOption,i="oldest"===t||"lowestVoted"===t?"asc":"desc",s=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"";this._updatedSorting={field:"newest"===t||"oldest"===t?this._selectedLayer.objectIdField:s,order:i},this._updatedSortOption=s||"highestVoted"!==t&&"lowestVoted"!==t?t:"newest"}async backFromFilterPanel(){null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),await this._featureList.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),"reporting-layer-list"!==t[t.length-1]&&("feature-create"!==t[t.length-1]||"feature-list"!==t[0]&&"feature-list"!==t[t.length-2])||this.updatePanelState(this._sidePanelCollapsed,!1),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(t,i){this._sidePanelCollapsed=t,this._showFullPanel=i,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=await r(this.mapView);t.relationships.some((s=>{const e=i.filter((i=>t.url===i.url&&i.layerId===s.relatedTableId));if(e&&e.length>0)return this._relatedTable=e[0],!0}))}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){const s=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,a=this._currentLayerExpressions?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:!this.isMobile&&this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-list"===this._flowItems[this._flowItems.length-1]},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),a&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&s&&e("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,highlightOnHover:!0,locale:this.locale,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,reportingOptions:this.reportingOptions,selectedLayerId:t,showFeatureSymbol:this.showFeatureSymbol,sortingInfo:this._updatedSorting})))}getFilterPanel(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromFilterPanel.bind(this),selected:"filter-panel"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",disabled:!this._filterActive,onClick:this.resetFilterList.bind(this),width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromFilterPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList?.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!1,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}getFeatureDetailsFlowItem(){const t=this._getLayersConfig(this._selectedLayerId)?.comment&&this._selectedLayer.relationships.length>0&&this._relatedTable;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",enableSnapping:this.enableSnapping,graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,locale:this.locale,mapView:this.mapView,onAddComment:this.showAddCommentsPanel.bind(this),onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLikeOrDislikeClicked:()=>{this._featureList.refresh(!0)},onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions,showFullCommentTitle:this.showFullCommentTitle,showUserImageInCommentsList:this.showUserImageInCommentsList}),t&&e("calcite-button",{appearance:"solid",onClick:this.showAddCommentsPanel.bind(this),slot:"footer",width:"full"},this.commentButtonText||this._translations.comment)))}getFeaturesPagination(){return e("div",{class:"feature-pagination"},e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),e("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},e("span",null,this._translations.back))),e("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},e("span",{class:"pagination-count"},this._getCount())),e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),e("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},e("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"comment-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,enableSnapping:this.enableSnapping,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this),selected:"add-comment"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),e("calcite-panel",null,e("create-related-feature",{customizeSubmit:!0,enableSnapping:this.enableSnapping,locale:this.locale,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){if(this._currentFeature=t,t&&t.layer){const i=t.layer;this.setSelectedLayer(i.id,i.title),this._currentFeatureId=t.attributes[i.objectIdField],this._getLayersConfig(i.id)?.comment&&i.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),1===this._editableLayerIds?.length?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>!this._validLayers.includes(t.layer)&&t?.layer?.popupEnabled&&t?.layer?.id));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_updateFloorDefinitionExpression(t){const i=`${t.floorInfo.floorField} = '${this.floorLevel}'`,s=t.definitionExpression;t.definitionExpression=s?.indexOf(this._floorExpression)>-1?s.replace(this._floorExpression,i):i,this._floorExpression=i}_getFormElements(){const t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i&&this.floorLevel&&t?.formTemplate){const i=this._formElements.find((i=>i.id===t.id));0!==this._formElements.length&&i||this._formElements.push({id:t.id,orgElements:t.formTemplate.elements,orgExpressionInfos:t.formTemplate.expressionInfos})}}reduceToConfiguredLayers(t,i){return Object.keys(t).reduce(((s,e)=>{const a=this.reportingOptions?this._getLayersConfig(e)?.visible:t[e].supportsAdd;return!i.includes(e)&&a&&s.push(e),s}),[])}refreshLists(){setTimeout((()=>{this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50)}async _updateFeatures(){for(const t of this._editableLayerIds){const i=await d(this.mapView,t);await this._showMyFeaturesOnly(i);const s=i.layer?.floorInfo?.floorField;s&&this.floorLevel&&this._updateFloorDefinitionExpression(i.layer)}}async _showMyFeaturesOnly(t){const i=this.mapView.map.portalItem.portal?.credential?.userId;if(i){const s=t.layer.editFieldsInfo?.creatorField.toLowerCase();t.filter=this.showMyReportsOnly&&s?new this.FeatureFilter({where:s+"='"+i+"'"}):null}}async getLayersToShowInList(){const t=await p(this.mapView,!0),i=await c(this.mapView),s=[];i.forEach((i=>{"feature"===i?.type&&i?.editingEnabled&&i?.capabilities?.operations?.supportsAdd&&(t[i.id].supportsAdd=!0),i?.editingEnabled||s.push(i.id)})),this._editableLayerIds=this.reduceToConfiguredLayers(t,s),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title),this.updateSortingOptions(),this.handleSelectedLayersFilter()}_updateShareURL(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._selectedLayerId?i.searchParams.set("layerid",this._selectedLayerId):i.searchParams.delete("layerid"),this._selectedFeature?.length?i.searchParams.set("oid",this._currentFeatureId):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await n(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){const t=this.layerExpressions?structuredClone(this.layerExpressions.filter((t=>t.id===this._selectedLayerId))):[];null!=this._t9nLayerExpressions&&this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){const t=await n(this.mapView,this._prevSelectedLayerId);t&&(t.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList?.forceReset(),null!=this._selectedLayer&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(null==this._selectedLayer)return;const t=[];if(this._currentLayerExpressions?.length>0){const i=this._currentLayerExpressions[0];for(const s of i.expressions){const{active:i,definitionExpression:e}=s;i&&e&&t.push(`(${e})`)}this._filterActive=t.length>0,this.updateFilterLayerDefExpression(t,i.operator)}}updateFilterLayerDefExpression(t,i){const s=this._initDefExpressions[this._selectedLayerId],e=t?.length>0&&null!=s?`(${t.join(i)}) AND (${s})`:t.length>0?t.join(i):s;this._selectedLayer.definitionExpression=e}setInitExpressions(){if(this._initDefExpressions={},null==this.mapView)return;const t=this.mapView.map;t.allLayers.concat(t.allTables).forEach((t=>{"feature"===t.type&&(this._initDefExpressions[t.id]=t.definitionExpression)}))}handleLayerExpressionsT9n(t,i){t?.forEach((t=>{const s=i?.find((i=>i.id===t.id));null!=s&&(t.title=s.title,t.expressions?.forEach((t=>{const i=s.expressions?.find((i=>i.id===t.id));null!=i&&(t.name=i.name)})))}))}static get watchers(){return{isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"],filterByMapExtent:["filterByMapExtentChangeWatchHandler"],layerExpressions:["layerExpressionsWatchHandler"],showFeatureSymbol:["showFeatureSymbolWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
6
+ import{r as t,c as i,g as s,h as e,H as a,F as h}from"./p-e996c38f.js";import{l,g as o}from"./p-404cbf48.js";import{g as n,a as c,b as r,c as d,h as u,d as p,q as f}from"./p-5693ce7a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.locale=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage=void 0,this.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=25,this._updatedSorting=void 0,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1}get el(){return s(this)}_createFeature;_currentFeatureId;_defaultCenter;_defaultLevel;_editableLayerIds;_featureDetails;_featureList;_currentFeature;_selectedRelatedFeature;_relatedTable;_filterList;_highlightHandle;_layerList;_createRelatedFeature;_layers;_mapChange;_mapClickHandle;reactiveUtils;FeatureFilter;_selectedFeature;_selectedFeatureIndex;_selectedLayerId;_shareNode;_urlParamsLoaded;_validLayers;_nonVisibleValidLayers;_selectedLayer;_layerItemsHash;_showFullPanel;_floorExpression;_formElements=[];_prevSelectedLayerId;_currentLayerExpressions;_initDefExpressions;_t9nLayerExpressions;async isMobileWatchHandler(t){this.updatePanelState(!1,this._showFullPanel),t&&"filter-panel"===this._flowItems[this._flowItems.length-1]?(await this.backFromFilterPanel(),this._filterOpen=!0):!t&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{this.setInitExpressions(),await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await n(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&await this._layerList.refresh(),this._featureList&&this._featureList.refresh(),this._createFeature&&this._createFeature.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await(this._featureList?.refresh())}async showFeatureSymbolWatchHandler(){await(this._featureList?.refresh())}async updateLayerExpressionsT9n(t){if(this._t9nLayerExpressions=t||this.layerExpressions,null!=this._filterList)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(null!=this._currentLayerExpressions){const t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}togglePanel;async componentWillLoad(){this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(this.mapView?.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],this.setInitExpressions(),await this.setMapView()})))}componentWillRender(){(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"b262a653d9af3a8f332f416af7f297cc15ac3355"},this._reportSubmitted&&e("calcite-alert",{key:"efe33e5ec3ed708d21f8464aa70eb7ce9a258035","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},e("div",{key:"6c6a35bc84da9a13241313dd15dc4a5905f59866",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"21d8064c4bf5c0dd118cd012d9d30d2998011a00","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"93e68814f1f3cf62d9ed4d6673aec8124cfa0a4f",slot:"title"},this._translations.error),e("div",{key:"156cd9169dbcbeafa605620938ba9aeccd0f9401",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"2cb152fe6734f80f6d9714c3597aaf064ffffd57","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"33369e8086740651ef26bfc765448fb6bded03fe",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"5b4fbac03c85e82e2bb11611772186140d0419e9","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"31bd9f781304d1493dcbbee5914369742c8c0e03",slot:"title"},this._translations.error),e("div",{key:"7844073654d79069fe7e54c72ec7bc85a1e77436",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"17eca819f0141e4945deb8013aa662d5b3c27626"},e("calcite-shell",{key:"c07f28fa3733f6be3a22d813a267e77a05038f3e","content-behind":!0},this._getReporter())),this.isMobile&&this.filterModal())}async _initModules(){const[t,i]=await l(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=t,this.FeatureFilter=i}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await n(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{this._nonVisibleValidLayers.find((t=>t.id===i.id))||i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":t.push(this.getFilterPanel());break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,t?.length>0&&t):e("calcite-loader",{label:"",scale:"m"}))}filterModal(){return(this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[]).length>0&&e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._filterActive=!1,this._featureList.refresh()},onFilterUpdate:()=>this._handleFilterUpdate(this._filterList?.filterCount>0),ref:t=>this._filterList=t,resetBtn:!0,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return e("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"bottom-start",pointerDisabled:!0,referenceElement:"sort-popover"},e("calcite-list",{label:"","selection-mode":"single-persist"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")},selected:"newest"===this._updatedSortOption,value:"newest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")},selected:"oldest"===this._updatedSortOption,value:"oldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","highestVoted")},selected:"highestVoted"===this._updatedSortOption,value:"highestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","lowestVoted")},selected:"lowestVoted"===this._updatedSortOption,value:"lowestVoted"}))))}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(t){this._showLoadingIndicator=!0,this._filterActive=t,await this._featureList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader,selected:"layer-list"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,locale:this.locale,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"reporting-layer-list"===this._flowItems[this._flowItems.length-1]},e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},this._translations.chooseCategoryMsg)),e("layer-list",{class:"height-full",layers:t,locale:this.locale,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this),selected:"feature-create"===this._flowItems[this._flowItems.length-1]},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("create-feature",{customizeSubmit:!0,enableSearch:!0,enableSnapping:this.enableSnapping,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onModeChanged:this.backFromCreateFeaturePanel.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId,submitNewReportsMessage:this.submitNewReportsMessage})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList&&await this._layerList.refresh(),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(t){this._nonVisibleValidLayers.find((t=>t.id===this._selectedLayerId))&&this._selectedLayer.set("visible",t)}async layerListLoaded(t){if(this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]||"feature-list"===this._flowItems[0]){const i=t.detail,s=await c(this.mapView),e=[];this._validLayers=[],this._nonVisibleValidLayers=[],s.forEach((t=>{i.includes(t.id)&&(this._validLayers.push(t),t.visible||this._nonVisibleValidLayers.push(t),this._getLayersConfig(t.id)?.reporting&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}}async displayFeaturesList(t){await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}updateSortingOptions(){const t=""===this.sortOption?"newest":this.sortOption,i="oldest"===t||"lowestVoted"===t?"asc":"desc",s=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"";this._updatedSorting={field:"newest"===t||"oldest"===t?this._selectedLayer.objectIdField:s,order:i},this._updatedSortOption=s||"highestVoted"!==t&&"lowestVoted"!==t?t:"newest"}async backFromFilterPanel(){null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),await this._featureList.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),"reporting-layer-list"!==t[t.length-1]&&("feature-create"!==t[t.length-1]||"feature-list"!==t[0]&&"feature-list"!==t[t.length-2])||this.updatePanelState(this._sidePanelCollapsed,!1),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(t,i){this._sidePanelCollapsed=t,this._showFullPanel=i,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=await r(this.mapView);t.relationships.some((s=>{const e=i.filter((i=>t.url===i.url&&i.layerId===s.relatedTableId));if(e&&e.length>0)return this._relatedTable=e[0],!0}))}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){const s=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,a=this._currentLayerExpressions?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:!this.isMobile&&this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-list"===this._flowItems[this._flowItems.length-1]},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),a&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&s&&e("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,highlightOnHover:!0,locale:this.locale,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,reportingOptions:this.reportingOptions,selectedLayerId:t,showFeatureSymbol:this.showFeatureSymbol,sortingInfo:this._updatedSorting})))}getFilterPanel(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromFilterPanel.bind(this),selected:"filter-panel"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",disabled:!this._filterActive,onClick:this.resetFilterList.bind(this),width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromFilterPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList?.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!1,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}getFeatureDetailsFlowItem(){const t=this._getLayersConfig(this._selectedLayerId)?.comment&&this._selectedLayer.relationships.length>0&&this._relatedTable;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",enableSnapping:this.enableSnapping,graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,locale:this.locale,mapView:this.mapView,onAddComment:this.showAddCommentsPanel.bind(this),onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLikeOrDislikeClicked:()=>{this._featureList.refresh(!0)},onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions,showFullCommentTitle:this.showFullCommentTitle,showUserImageInCommentsList:this.showUserImageInCommentsList}),t&&e("calcite-button",{appearance:"solid",onClick:this.showAddCommentsPanel.bind(this),slot:"footer",width:"full"},this.commentButtonText||this._translations.comment)))}getFeaturesPagination(){return e("div",{class:"feature-pagination"},e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),e("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},e("span",null,this._translations.back))),e("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},e("span",{class:"pagination-count"},this._getCount())),e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),e("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},e("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"comment-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,enableSnapping:this.enableSnapping,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this),selected:"add-comment"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),e("calcite-panel",null,e("create-related-feature",{customizeSubmit:!0,enableSnapping:this.enableSnapping,locale:this.locale,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){if(this._currentFeature=t,t&&t.layer){const i=t.layer;this.setSelectedLayer(i.id,i.title),this._currentFeatureId=t.attributes[i.objectIdField],this._getLayersConfig(i.id)?.comment&&i.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),1===this._editableLayerIds?.length?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>!this._validLayers.includes(t.layer)&&t?.layer?.popupEnabled&&t?.layer?.id));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_updateFloorDefinitionExpression(t){const i=`${t.floorInfo.floorField} = '${this.floorLevel}'`,s=t.definitionExpression;t.definitionExpression=s?.indexOf(this._floorExpression)>-1?s.replace(this._floorExpression,i):i,this._floorExpression=i}_getFormElements(){const t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i&&this.floorLevel&&t?.formTemplate){const i=this._formElements.find((i=>i.id===t.id));0!==this._formElements.length&&i||this._formElements.push({id:t.id,orgElements:t.formTemplate.elements,orgExpressionInfos:t.formTemplate.expressionInfos})}}reduceToConfiguredLayers(t,i){return Object.keys(t).reduce(((s,e)=>{const a=this.reportingOptions?this._getLayersConfig(e)?.visible:t[e].supportsAdd;return!i.includes(e)&&a&&s.push(e),s}),[])}refreshLists(){setTimeout((()=>{this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50)}async _updateFeatures(){for(const t of this._editableLayerIds){const i=await d(this.mapView,t);await this._showMyFeaturesOnly(i);const s=i.layer?.floorInfo?.floorField;s&&this.floorLevel&&this._updateFloorDefinitionExpression(i.layer)}}async _showMyFeaturesOnly(t){const i=this.mapView.map.portalItem.portal?.credential?.userId;if(i){const s=t.layer.editFieldsInfo?.creatorField.toLowerCase();t.filter=this.showMyReportsOnly&&s?new this.FeatureFilter({where:s+"='"+i+"'"}):null}}async getLayersToShowInList(){const t=await p(this.mapView,!0),i=await c(this.mapView),s=[];i.forEach((i=>{"feature"===i?.type&&i?.editingEnabled&&i?.capabilities?.operations?.supportsAdd&&(t[i.id].supportsAdd=!0),i?.editingEnabled||s.push(i.id)})),this._editableLayerIds=this.reduceToConfiguredLayers(t,s),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title),this.updateSortingOptions(),this.handleSelectedLayersFilter()}_updateShareURL(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._selectedLayerId?i.searchParams.set("layerid",this._selectedLayerId):i.searchParams.delete("layerid"),this._selectedFeature?.length?i.searchParams.set("oid",this._currentFeatureId):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await n(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){const t=this.layerExpressions?structuredClone(this.layerExpressions.filter((t=>t.id===this._selectedLayerId))):[];null!=this._t9nLayerExpressions&&this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){const t=await n(this.mapView,this._prevSelectedLayerId);t&&(t.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList?.forceReset(),null!=this._selectedLayer&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(null==this._selectedLayer)return;const t=[];if(this._currentLayerExpressions?.length>0){const i=this._currentLayerExpressions[0];for(const s of i.expressions){const{active:i,definitionExpression:e}=s;i&&e&&t.push(`(${e})`)}this._filterActive=t.length>0,this.updateFilterLayerDefExpression(t,i.operator)}}updateFilterLayerDefExpression(t,i){const s=this._initDefExpressions[this._selectedLayerId],e=t?.length>0&&null!=s?`(${t.join(i)}) AND (${s})`:t.length>0?t.join(i):s;this._selectedLayer.definitionExpression=e}setInitExpressions(){if(this._initDefExpressions={},null==this.mapView)return;const t=this.mapView.map;t.allLayers.concat(t.allTables).forEach((t=>{"feature"===t.type&&(this._initDefExpressions[t.id]=t.definitionExpression)}))}handleLayerExpressionsT9n(t,i){t?.forEach((t=>{const s=i?.find((i=>i.id===t.id));null!=s&&(t.title=s.title,t.expressions?.forEach((t=>{const i=s.expressions?.find((i=>i.id===t.id));null!=i&&(t.name=i.name)})))}))}static get watchers(){return{isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"],filterByMapExtent:["filterByMapExtentChangeWatchHandler"],layerExpressions:["layerExpressionsWatchHandler"],showFeatureSymbol:["showFeatureSymbolWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
@@ -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-e996c38f.js";import{a as h,l,g as n}from"./p-404cbf48.js";import{e as o,h as r,i as c,j as d,c as p,k as b,l as f,m as g}from"./p-dcd2f00b.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-e6859850.js";import{d as v,a as _}from"./p-db3391b9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.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.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0}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 localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}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:"1c312d53b800ca401726c653e12465e92abf0eef"},this._getMapLayerPicker(),s("div",{key:"2da9eb5316656769ec2f80dfa5fbdc190c62b1cb",class:"border-bottom"}),s("div",{key:"b21d332e5da0aa8cfb34fdab7a1075bfbd5efb42",class:"padding-top-sides-1"},s("div",{key:"2dd59511d4f07cc2cd43b5b5c2a8037303d21546",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"1149bcd2f36171b82f6902fbf89bb0400383fdde",class:t},s("map-draw-tools",{key:"2d3b1b91a108bf2bb2db463e7ffd4574f4a36dac",active:!0,class:i,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,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:"d4068bef106e1f4226b1f9c104a626fe0a0f6700",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:"",overlayPositioning:"fixed",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,locale:this.locale,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:"",overlayPositioning:"fixed",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,locale:this.locale,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,locale:this.locale,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,a=this.selectLayerView.layer,h=e&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:h}},!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"],locale:["localeWatchHandler"],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);max-width:400px}';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.locale=void 0,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}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:"7ab69f7de831fc9e095b29a930e4256318ea6417"},s("calcite-select",{key:"e865dbfee1e05e856171e86d2b8376de7e251964",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)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const x=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;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"efa77aec940afdb80051b36300a492ac5764a413"},s("div",{key:"ac59062ad6b3bb15727d1d88ac99ba983c7a2ff9",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"27599ce74e9f7d6133f6cbfa40db4acfa8c00eeb",class:"display-flex"},s("calcite-label",{key:"b8acd5160effc68b7ee03a85ba8d6d2a5966c3e8",class:"font-bold width-full label-margin-0"},s("div",{key:"b2185de868b979281984019dbea9cf58a8bdef59",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"3bd42d1897e3d4374c9affeb20a4af09866645b4",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"3c7202cb44db02ff2650aa2075af55a51f180018",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"90c204cd9c0b7fb339e857ca82d4038aaf133cc1",closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"refine-input-layer"},s("span",{key:"3ab34165e2d0cf5bdf2615ef938b22b135867831",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"6066dc8d8e02d05f7e1d2cfb93a52e9ce68f13e3",class:"padding-1"},s("div",{key:"61191f20e96c2bf7d6ac0e36bf6788cc03d76f81",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"c02207e0a112ef9060e4dfe76a05720bd6d2f226",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"5879edf2aa7423abd211fd3d8419cde372d30a9b",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"29645f694e4df08d3bcfcaed745f1913fe46037a",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"f813c4601a40f8d945ca32b95df3a335e9b3d4ff",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"801cf62e0a90d908357efe83f705c1484d11dbc9",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"0b687ff2e7e4f3997c4559a4dbdb40d4c37fd5bc"},s("map-draw-tools",{key:"23084e78ffa344ae31df39a13cf8abcf0f313b83",active:!0,drawMode:u.REFINE,locale:this.locale,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:"839e5ecbc67cee44924057e197ebb0897c2cbe28"}),s("calcite-list",{key:"7ad6b634078bab2f02c2b117e05b2385c6988aa5",class:"list-border",label:""},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=f(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 g(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()}static get watchers(){return{locale:["localeWatchHandler"]}}};x.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}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{S as map_select_tools,k as pdf_download,x as refine_selection}
6
+ import{r as i,c as t,g as e,h as s,H as a}from"./p-e996c38f.js";import{a as h,l,g as n}from"./p-404cbf48.js";import{e as o,h as r,i as c,j as d,c as p,k as b,l as f,m as g}from"./p-5693ce7a.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-e6859850.js";import{d as v,a as _}from"./p-4084e2d1.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.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.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0}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 localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}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:"1c312d53b800ca401726c653e12465e92abf0eef"},this._getMapLayerPicker(),s("div",{key:"2da9eb5316656769ec2f80dfa5fbdc190c62b1cb",class:"border-bottom"}),s("div",{key:"b21d332e5da0aa8cfb34fdab7a1075bfbd5efb42",class:"padding-top-sides-1"},s("div",{key:"2dd59511d4f07cc2cd43b5b5c2a8037303d21546",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"1149bcd2f36171b82f6902fbf89bb0400383fdde",class:t},s("map-draw-tools",{key:"2d3b1b91a108bf2bb2db463e7ffd4574f4a36dac",active:!0,class:i,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,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:"d4068bef106e1f4226b1f9c104a626fe0a0f6700",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:"",overlayPositioning:"fixed",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,locale:this.locale,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:"",overlayPositioning:"fixed",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,locale:this.locale,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,locale:this.locale,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,a=this.selectLayerView.layer,h=e&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:h}},!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"],locale:["localeWatchHandler"],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);max-width:400px}';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.locale=void 0,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}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:"7ab69f7de831fc9e095b29a930e4256318ea6417"},s("calcite-select",{key:"e865dbfee1e05e856171e86d2b8376de7e251964",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)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const x=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;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"efa77aec940afdb80051b36300a492ac5764a413"},s("div",{key:"ac59062ad6b3bb15727d1d88ac99ba983c7a2ff9",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"27599ce74e9f7d6133f6cbfa40db4acfa8c00eeb",class:"display-flex"},s("calcite-label",{key:"b8acd5160effc68b7ee03a85ba8d6d2a5966c3e8",class:"font-bold width-full label-margin-0"},s("div",{key:"b2185de868b979281984019dbea9cf58a8bdef59",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"3bd42d1897e3d4374c9affeb20a4af09866645b4",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"3c7202cb44db02ff2650aa2075af55a51f180018",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"90c204cd9c0b7fb339e857ca82d4038aaf133cc1",closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"refine-input-layer"},s("span",{key:"3ab34165e2d0cf5bdf2615ef938b22b135867831",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"6066dc8d8e02d05f7e1d2cfb93a52e9ce68f13e3",class:"padding-1"},s("div",{key:"61191f20e96c2bf7d6ac0e36bf6788cc03d76f81",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"c02207e0a112ef9060e4dfe76a05720bd6d2f226",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"5879edf2aa7423abd211fd3d8419cde372d30a9b",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"29645f694e4df08d3bcfcaed745f1913fe46037a",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"f813c4601a40f8d945ca32b95df3a335e9b3d4ff",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"801cf62e0a90d908357efe83f705c1484d11dbc9",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"0b687ff2e7e4f3997c4559a4dbdb40d4c37fd5bc"},s("map-draw-tools",{key:"23084e78ffa344ae31df39a13cf8abcf0f313b83",active:!0,drawMode:u.REFINE,locale:this.locale,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:"839e5ecbc67cee44924057e197ebb0897c2cbe28"}),s("calcite-list",{key:"7ad6b634078bab2f02c2b117e05b2385c6988aa5",class:"list-border",label:""},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=f(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 g(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()}static get watchers(){return{locale:["localeWatchHandler"]}}};x.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}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{S as map_select_tools,k as pdf_download,x as refine_selection}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-e996c38f.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-404cbf48.js";import{e as d,h as p}from"./p-dcd2f00b.js";import{s as g}from"./p-e6859850.js";import{c as b,r as m}from"./p-db3391b9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const f=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.initialNotice="",this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popupEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"48d98f3f0d6230fdec6227f7ba81250d38204d1c"},a("calcite-shell",{key:"cff88c2774df83a9b8af62910cfa4075ec8d61c0"},a("calcite-action-bar",{key:"eab17f993ae13af3f8bd06f8b0a66542799ea6f7",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections(),i=t?this._translations.listHasSetsTip:""!==this.initialNotice?this.initialNotice:this._translations.selectLayerAndAdd;return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(i,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1",label:""},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,searchDistanceEnabled:this.enableSearchDistanceOnLoad,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol,useLayerFeaturesEnabled:this.enableLayerFeaturesOnLoad})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,locale:this.locale,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list",label:""},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};f.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{f as public_notification}
6
+ import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-e996c38f.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-404cbf48.js";import{e as d,h as p}from"./p-5693ce7a.js";import{s as g}from"./p-e6859850.js";import{c as b,r as m}from"./p-4084e2d1.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const f=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.initialNotice="",this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popupEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"48d98f3f0d6230fdec6227f7ba81250d38204d1c"},a("calcite-shell",{key:"cff88c2774df83a9b8af62910cfa4075ec8d61c0"},a("calcite-action-bar",{key:"eab17f993ae13af3f8bd06f8b0a66542799ea6f7",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections(),i=t?this._translations.listHasSetsTip:""!==this.initialNotice?this.initialNotice:this._translations.selectLayerAndAdd;return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(i,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1",label:""},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,searchDistanceEnabled:this.enableSearchDistanceOnLoad,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol,useLayerFeaturesEnabled:this.enableLayerFeaturesOnLoad})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,locale:this.locale,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list",label:""},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};f.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{f as public_notification}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{_ as t}from"./p-db3391b9.js";import{l as s}from"./p-404cbf48.js";
6
+ import{_ as t}from"./p-4084e2d1.js";import{l as s}from"./p-404cbf48.js";
7
7
  /** @license
8
8
  * Copyright 2022 Esri
9
9
  *
@@ -18,4 +18,4 @@ import{_ as t}from"./p-db3391b9.js";import{l as s}from"./p-404cbf48.js";
18
18
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
19
  * See the License for the specific language governing permissions and
20
20
  * limitations under the License.
21
- */class i{arcade;intl;async getPopupTitle(s,i){this.arcade||await this._initModules();let e={};for(const[t,i]of Object.entries(s.attributes))e={...e,[`{${t.toUpperCase()}}`]:i};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:i});null==r&&""===r||(e[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach((i=>{const o=s.attributes[i.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===i.name.toLowerCase())),r=t(o,i.type,i.domain,n?.format,this.intl);e[`{${i.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=e[t.toUpperCase()]?e[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,i]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=i}}export{i as P}
21
+ */class e{arcade;intl;async getPopupTitle(s,e){this.arcade||await this._initModules();let i={};for(const[t,e]of Object.entries(s.attributes))i={...i,[`{${t.toUpperCase()}}`]:e};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:e});null==r&&""===r||(i[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach((e=>{const o=s.attributes[e.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===e.name.toLowerCase())),r=t(o,e.type,e.domain,n?.format,this.intl);i[`{${e.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=i[t.toUpperCase()]?i[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,e]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=e}}export{e as P}