@esri/solutions-components 0.11.32 → 0.11.34

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 (729) hide show
  1. package/dist/cjs/{asyncToGenerator-c7fc3ee4.js → asyncToGenerator-ccb3278b.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -9
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
  4. package/dist/cjs/card-manager_3.cjs.entry.js +90 -13
  5. package/dist/cjs/consent-manager.cjs.entry.js +3 -3
  6. package/dist/cjs/create-feature_4.cjs.entry.js +7 -7
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  10. package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/{downloadUtils-c7dac47d.js → downloadUtils-fefa863b.js} +3 -3
  12. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  13. package/dist/cjs/{index.es-3c2404c3.js → index.es-0441a948.js} +2 -2
  14. package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
  15. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  16. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  17. package/dist/cjs/{popupUtils-27f6cf2a.js → popupUtils-a68a20db.js} +2 -2
  18. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  19. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  20. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  21. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  23. package/dist/collection/assets/t9n/consent-manager/resources_ar.json +3 -3
  24. package/dist/collection/assets/t9n/consent-manager/resources_bg.json +3 -3
  25. package/dist/collection/assets/t9n/consent-manager/resources_bs.json +3 -3
  26. package/dist/collection/assets/t9n/consent-manager/resources_ca.json +3 -3
  27. package/dist/collection/assets/t9n/consent-manager/resources_cs.json +3 -3
  28. package/dist/collection/assets/t9n/consent-manager/resources_da.json +3 -3
  29. package/dist/collection/assets/t9n/consent-manager/resources_de.json +3 -3
  30. package/dist/collection/assets/t9n/consent-manager/resources_el.json +3 -3
  31. package/dist/collection/assets/t9n/consent-manager/resources_es.json +3 -3
  32. package/dist/collection/assets/t9n/consent-manager/resources_et.json +3 -3
  33. package/dist/collection/assets/t9n/consent-manager/resources_fi.json +3 -3
  34. package/dist/collection/assets/t9n/consent-manager/resources_fr.json +3 -3
  35. package/dist/collection/assets/t9n/consent-manager/resources_he.json +3 -3
  36. package/dist/collection/assets/t9n/consent-manager/resources_hr.json +3 -3
  37. package/dist/collection/assets/t9n/consent-manager/resources_hu.json +3 -3
  38. package/dist/collection/assets/t9n/consent-manager/resources_id.json +3 -3
  39. package/dist/collection/assets/t9n/consent-manager/resources_it.json +3 -3
  40. package/dist/collection/assets/t9n/consent-manager/resources_ja.json +3 -3
  41. package/dist/collection/assets/t9n/consent-manager/resources_ko.json +3 -3
  42. package/dist/collection/assets/t9n/consent-manager/resources_lt.json +3 -3
  43. package/dist/collection/assets/t9n/consent-manager/resources_lv.json +3 -3
  44. package/dist/collection/assets/t9n/consent-manager/resources_nb.json +3 -3
  45. package/dist/collection/assets/t9n/consent-manager/resources_nl.json +3 -3
  46. package/dist/collection/assets/t9n/consent-manager/resources_no.json +3 -3
  47. package/dist/collection/assets/t9n/consent-manager/resources_pl.json +3 -3
  48. package/dist/collection/assets/t9n/consent-manager/resources_pt-BR.json +3 -3
  49. package/dist/collection/assets/t9n/consent-manager/resources_pt-PT.json +3 -3
  50. package/dist/collection/assets/t9n/consent-manager/resources_ro.json +3 -3
  51. package/dist/collection/assets/t9n/consent-manager/resources_ru.json +3 -3
  52. package/dist/collection/assets/t9n/consent-manager/resources_sk.json +3 -3
  53. package/dist/collection/assets/t9n/consent-manager/resources_sl.json +3 -3
  54. package/dist/collection/assets/t9n/consent-manager/resources_sr.json +3 -3
  55. package/dist/collection/assets/t9n/consent-manager/resources_sv.json +3 -3
  56. package/dist/collection/assets/t9n/consent-manager/resources_th.json +3 -3
  57. package/dist/collection/assets/t9n/consent-manager/resources_tr.json +3 -3
  58. package/dist/collection/assets/t9n/consent-manager/resources_uk.json +3 -3
  59. package/dist/collection/assets/t9n/consent-manager/resources_vi.json +3 -3
  60. package/dist/collection/assets/t9n/consent-manager/resources_zh-CN.json +3 -3
  61. package/dist/collection/assets/t9n/consent-manager/resources_zh-HK.json +3 -3
  62. package/dist/collection/assets/t9n/consent-manager/resources_zh-TW.json +3 -3
  63. package/dist/collection/assets/t9n/create-feature/resources_ar.json +1 -1
  64. package/dist/collection/assets/t9n/create-feature/resources_bg.json +1 -1
  65. package/dist/collection/assets/t9n/create-feature/resources_bs.json +1 -1
  66. package/dist/collection/assets/t9n/create-feature/resources_ca.json +1 -1
  67. package/dist/collection/assets/t9n/create-feature/resources_cs.json +1 -1
  68. package/dist/collection/assets/t9n/create-feature/resources_da.json +1 -1
  69. package/dist/collection/assets/t9n/create-feature/resources_de.json +1 -1
  70. package/dist/collection/assets/t9n/create-feature/resources_el.json +1 -1
  71. package/dist/collection/assets/t9n/create-feature/resources_es.json +1 -1
  72. package/dist/collection/assets/t9n/create-feature/resources_et.json +1 -1
  73. package/dist/collection/assets/t9n/create-feature/resources_fi.json +1 -1
  74. package/dist/collection/assets/t9n/create-feature/resources_fr.json +1 -1
  75. package/dist/collection/assets/t9n/create-feature/resources_he.json +1 -1
  76. package/dist/collection/assets/t9n/create-feature/resources_hr.json +1 -1
  77. package/dist/collection/assets/t9n/create-feature/resources_hu.json +1 -1
  78. package/dist/collection/assets/t9n/create-feature/resources_id.json +1 -1
  79. package/dist/collection/assets/t9n/create-feature/resources_it.json +1 -1
  80. package/dist/collection/assets/t9n/create-feature/resources_ja.json +1 -1
  81. package/dist/collection/assets/t9n/create-feature/resources_ko.json +1 -1
  82. package/dist/collection/assets/t9n/create-feature/resources_lt.json +1 -1
  83. package/dist/collection/assets/t9n/create-feature/resources_lv.json +1 -1
  84. package/dist/collection/assets/t9n/create-feature/resources_nb.json +1 -1
  85. package/dist/collection/assets/t9n/create-feature/resources_nl.json +1 -1
  86. package/dist/collection/assets/t9n/create-feature/resources_no.json +1 -1
  87. package/dist/collection/assets/t9n/create-feature/resources_pl.json +1 -1
  88. package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  89. package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  90. package/dist/collection/assets/t9n/create-feature/resources_ro.json +1 -1
  91. package/dist/collection/assets/t9n/create-feature/resources_ru.json +1 -1
  92. package/dist/collection/assets/t9n/create-feature/resources_sk.json +1 -1
  93. package/dist/collection/assets/t9n/create-feature/resources_sl.json +1 -1
  94. package/dist/collection/assets/t9n/create-feature/resources_sr.json +1 -1
  95. package/dist/collection/assets/t9n/create-feature/resources_sv.json +1 -1
  96. package/dist/collection/assets/t9n/create-feature/resources_th.json +1 -1
  97. package/dist/collection/assets/t9n/create-feature/resources_tr.json +1 -1
  98. package/dist/collection/assets/t9n/create-feature/resources_uk.json +1 -1
  99. package/dist/collection/assets/t9n/create-feature/resources_vi.json +1 -1
  100. package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  101. package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  102. package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  103. package/dist/collection/assets/t9n/crowdsource-manager/resources_ar.json +3 -3
  104. package/dist/collection/assets/t9n/crowdsource-manager/resources_bg.json +3 -3
  105. package/dist/collection/assets/t9n/crowdsource-manager/resources_bs.json +3 -3
  106. package/dist/collection/assets/t9n/crowdsource-manager/resources_ca.json +3 -3
  107. package/dist/collection/assets/t9n/crowdsource-manager/resources_cs.json +3 -3
  108. package/dist/collection/assets/t9n/crowdsource-manager/resources_da.json +3 -3
  109. package/dist/collection/assets/t9n/crowdsource-manager/resources_de.json +3 -3
  110. package/dist/collection/assets/t9n/crowdsource-manager/resources_el.json +3 -3
  111. package/dist/collection/assets/t9n/crowdsource-manager/resources_es.json +3 -3
  112. package/dist/collection/assets/t9n/crowdsource-manager/resources_et.json +3 -3
  113. package/dist/collection/assets/t9n/crowdsource-manager/resources_fi.json +3 -3
  114. package/dist/collection/assets/t9n/crowdsource-manager/resources_fr.json +3 -3
  115. package/dist/collection/assets/t9n/crowdsource-manager/resources_he.json +3 -3
  116. package/dist/collection/assets/t9n/crowdsource-manager/resources_hr.json +3 -3
  117. package/dist/collection/assets/t9n/crowdsource-manager/resources_hu.json +3 -3
  118. package/dist/collection/assets/t9n/crowdsource-manager/resources_id.json +3 -3
  119. package/dist/collection/assets/t9n/crowdsource-manager/resources_it.json +3 -3
  120. package/dist/collection/assets/t9n/crowdsource-manager/resources_ja.json +3 -3
  121. package/dist/collection/assets/t9n/crowdsource-manager/resources_ko.json +3 -3
  122. package/dist/collection/assets/t9n/crowdsource-manager/resources_lt.json +3 -3
  123. package/dist/collection/assets/t9n/crowdsource-manager/resources_lv.json +3 -3
  124. package/dist/collection/assets/t9n/crowdsource-manager/resources_nb.json +3 -3
  125. package/dist/collection/assets/t9n/crowdsource-manager/resources_nl.json +3 -3
  126. package/dist/collection/assets/t9n/crowdsource-manager/resources_no.json +3 -3
  127. package/dist/collection/assets/t9n/crowdsource-manager/resources_pl.json +3 -3
  128. package/dist/collection/assets/t9n/crowdsource-manager/resources_pt-BR.json +3 -3
  129. package/dist/collection/assets/t9n/crowdsource-manager/resources_pt-PT.json +3 -3
  130. package/dist/collection/assets/t9n/crowdsource-manager/resources_ro.json +3 -3
  131. package/dist/collection/assets/t9n/crowdsource-manager/resources_ru.json +3 -3
  132. package/dist/collection/assets/t9n/crowdsource-manager/resources_sk.json +3 -3
  133. package/dist/collection/assets/t9n/crowdsource-manager/resources_sl.json +3 -3
  134. package/dist/collection/assets/t9n/crowdsource-manager/resources_sr.json +3 -3
  135. package/dist/collection/assets/t9n/crowdsource-manager/resources_sv.json +3 -3
  136. package/dist/collection/assets/t9n/crowdsource-manager/resources_th.json +3 -3
  137. package/dist/collection/assets/t9n/crowdsource-manager/resources_tr.json +3 -3
  138. package/dist/collection/assets/t9n/crowdsource-manager/resources_uk.json +3 -3
  139. package/dist/collection/assets/t9n/crowdsource-manager/resources_vi.json +3 -3
  140. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-CN.json +3 -3
  141. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-HK.json +3 -3
  142. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-TW.json +3 -3
  143. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +2 -2
  144. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +2 -2
  145. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +2 -2
  146. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +2 -2
  147. package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +2 -2
  148. package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +2 -2
  149. package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +2 -2
  150. package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +2 -2
  151. package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +2 -2
  152. package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +2 -2
  153. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +2 -2
  154. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +2 -2
  155. package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +2 -2
  156. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +2 -2
  157. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +2 -2
  158. package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +2 -2
  159. package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +2 -2
  160. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +2 -2
  161. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +2 -2
  162. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +2 -2
  163. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +2 -2
  164. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +2 -2
  165. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +2 -2
  166. package/dist/collection/assets/t9n/crowdsource-reporter/resources_no.json +2 -2
  167. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +2 -2
  168. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -2
  169. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -2
  170. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +2 -2
  171. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +2 -2
  172. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +2 -2
  173. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +2 -2
  174. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +2 -2
  175. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +2 -2
  176. package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +2 -2
  177. package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +2 -2
  178. package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +2 -2
  179. package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +2 -2
  180. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -2
  181. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -2
  182. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -2
  183. package/dist/collection/assets/t9n/feature-list/resources_ar.json +2 -2
  184. package/dist/collection/assets/t9n/feature-list/resources_bg.json +2 -2
  185. package/dist/collection/assets/t9n/feature-list/resources_bs.json +2 -2
  186. package/dist/collection/assets/t9n/feature-list/resources_ca.json +2 -2
  187. package/dist/collection/assets/t9n/feature-list/resources_cs.json +2 -2
  188. package/dist/collection/assets/t9n/feature-list/resources_da.json +2 -2
  189. package/dist/collection/assets/t9n/feature-list/resources_de.json +2 -2
  190. package/dist/collection/assets/t9n/feature-list/resources_el.json +2 -2
  191. package/dist/collection/assets/t9n/feature-list/resources_es.json +2 -2
  192. package/dist/collection/assets/t9n/feature-list/resources_et.json +2 -2
  193. package/dist/collection/assets/t9n/feature-list/resources_fi.json +2 -2
  194. package/dist/collection/assets/t9n/feature-list/resources_fr.json +2 -2
  195. package/dist/collection/assets/t9n/feature-list/resources_he.json +2 -2
  196. package/dist/collection/assets/t9n/feature-list/resources_hr.json +2 -2
  197. package/dist/collection/assets/t9n/feature-list/resources_hu.json +2 -2
  198. package/dist/collection/assets/t9n/feature-list/resources_id.json +2 -2
  199. package/dist/collection/assets/t9n/feature-list/resources_it.json +2 -2
  200. package/dist/collection/assets/t9n/feature-list/resources_ja.json +2 -2
  201. package/dist/collection/assets/t9n/feature-list/resources_ko.json +2 -2
  202. package/dist/collection/assets/t9n/feature-list/resources_lt.json +2 -2
  203. package/dist/collection/assets/t9n/feature-list/resources_lv.json +2 -2
  204. package/dist/collection/assets/t9n/feature-list/resources_nb.json +2 -2
  205. package/dist/collection/assets/t9n/feature-list/resources_nl.json +2 -2
  206. package/dist/collection/assets/t9n/feature-list/resources_no.json +2 -2
  207. package/dist/collection/assets/t9n/feature-list/resources_pl.json +2 -2
  208. package/dist/collection/assets/t9n/feature-list/resources_pt-BR.json +2 -2
  209. package/dist/collection/assets/t9n/feature-list/resources_pt-PT.json +2 -2
  210. package/dist/collection/assets/t9n/feature-list/resources_ro.json +2 -2
  211. package/dist/collection/assets/t9n/feature-list/resources_ru.json +2 -2
  212. package/dist/collection/assets/t9n/feature-list/resources_sk.json +2 -2
  213. package/dist/collection/assets/t9n/feature-list/resources_sl.json +2 -2
  214. package/dist/collection/assets/t9n/feature-list/resources_sr.json +2 -2
  215. package/dist/collection/assets/t9n/feature-list/resources_sv.json +2 -2
  216. package/dist/collection/assets/t9n/feature-list/resources_th.json +2 -2
  217. package/dist/collection/assets/t9n/feature-list/resources_tr.json +2 -2
  218. package/dist/collection/assets/t9n/feature-list/resources_uk.json +2 -2
  219. package/dist/collection/assets/t9n/feature-list/resources_vi.json +2 -2
  220. package/dist/collection/assets/t9n/feature-list/resources_zh-CN.json +2 -2
  221. package/dist/collection/assets/t9n/feature-list/resources_zh-HK.json +2 -2
  222. package/dist/collection/assets/t9n/feature-list/resources_zh-TW.json +2 -2
  223. package/dist/collection/assets/t9n/layer-table/resources_ar.json +3 -3
  224. package/dist/collection/assets/t9n/layer-table/resources_bg.json +3 -3
  225. package/dist/collection/assets/t9n/layer-table/resources_bs.json +3 -3
  226. package/dist/collection/assets/t9n/layer-table/resources_ca.json +3 -3
  227. package/dist/collection/assets/t9n/layer-table/resources_cs.json +3 -3
  228. package/dist/collection/assets/t9n/layer-table/resources_da.json +3 -3
  229. package/dist/collection/assets/t9n/layer-table/resources_de.json +3 -3
  230. package/dist/collection/assets/t9n/layer-table/resources_el.json +3 -3
  231. package/dist/collection/assets/t9n/layer-table/resources_es.json +3 -3
  232. package/dist/collection/assets/t9n/layer-table/resources_et.json +3 -3
  233. package/dist/collection/assets/t9n/layer-table/resources_fi.json +3 -3
  234. package/dist/collection/assets/t9n/layer-table/resources_fr.json +3 -3
  235. package/dist/collection/assets/t9n/layer-table/resources_he.json +3 -3
  236. package/dist/collection/assets/t9n/layer-table/resources_hr.json +3 -3
  237. package/dist/collection/assets/t9n/layer-table/resources_hu.json +3 -3
  238. package/dist/collection/assets/t9n/layer-table/resources_id.json +3 -3
  239. package/dist/collection/assets/t9n/layer-table/resources_it.json +3 -3
  240. package/dist/collection/assets/t9n/layer-table/resources_ja.json +3 -3
  241. package/dist/collection/assets/t9n/layer-table/resources_ko.json +3 -3
  242. package/dist/collection/assets/t9n/layer-table/resources_lt.json +3 -3
  243. package/dist/collection/assets/t9n/layer-table/resources_lv.json +3 -3
  244. package/dist/collection/assets/t9n/layer-table/resources_nb.json +3 -3
  245. package/dist/collection/assets/t9n/layer-table/resources_nl.json +3 -3
  246. package/dist/collection/assets/t9n/layer-table/resources_no.json +3 -3
  247. package/dist/collection/assets/t9n/layer-table/resources_pl.json +3 -3
  248. package/dist/collection/assets/t9n/layer-table/resources_pt-BR.json +3 -3
  249. package/dist/collection/assets/t9n/layer-table/resources_pt-PT.json +3 -3
  250. package/dist/collection/assets/t9n/layer-table/resources_ro.json +3 -3
  251. package/dist/collection/assets/t9n/layer-table/resources_ru.json +3 -3
  252. package/dist/collection/assets/t9n/layer-table/resources_sk.json +3 -3
  253. package/dist/collection/assets/t9n/layer-table/resources_sl.json +3 -3
  254. package/dist/collection/assets/t9n/layer-table/resources_sr.json +3 -3
  255. package/dist/collection/assets/t9n/layer-table/resources_sv.json +3 -3
  256. package/dist/collection/assets/t9n/layer-table/resources_th.json +3 -3
  257. package/dist/collection/assets/t9n/layer-table/resources_tr.json +3 -3
  258. package/dist/collection/assets/t9n/layer-table/resources_uk.json +3 -3
  259. package/dist/collection/assets/t9n/layer-table/resources_vi.json +3 -3
  260. package/dist/collection/assets/t9n/layer-table/resources_zh-CN.json +3 -3
  261. package/dist/collection/assets/t9n/layer-table/resources_zh-HK.json +3 -3
  262. package/dist/collection/assets/t9n/layer-table/resources_zh-TW.json +3 -3
  263. package/dist/collection/assets/t9n/map-card/resources_ar.json +1 -1
  264. package/dist/collection/assets/t9n/map-card/resources_bg.json +1 -1
  265. package/dist/collection/assets/t9n/map-card/resources_bs.json +1 -1
  266. package/dist/collection/assets/t9n/map-card/resources_ca.json +1 -1
  267. package/dist/collection/assets/t9n/map-card/resources_cs.json +1 -1
  268. package/dist/collection/assets/t9n/map-card/resources_da.json +1 -1
  269. package/dist/collection/assets/t9n/map-card/resources_de.json +1 -1
  270. package/dist/collection/assets/t9n/map-card/resources_el.json +1 -1
  271. package/dist/collection/assets/t9n/map-card/resources_es.json +1 -1
  272. package/dist/collection/assets/t9n/map-card/resources_et.json +1 -1
  273. package/dist/collection/assets/t9n/map-card/resources_fi.json +1 -1
  274. package/dist/collection/assets/t9n/map-card/resources_fr.json +1 -1
  275. package/dist/collection/assets/t9n/map-card/resources_he.json +1 -1
  276. package/dist/collection/assets/t9n/map-card/resources_hr.json +1 -1
  277. package/dist/collection/assets/t9n/map-card/resources_hu.json +1 -1
  278. package/dist/collection/assets/t9n/map-card/resources_id.json +1 -1
  279. package/dist/collection/assets/t9n/map-card/resources_it.json +1 -1
  280. package/dist/collection/assets/t9n/map-card/resources_ja.json +1 -1
  281. package/dist/collection/assets/t9n/map-card/resources_ko.json +1 -1
  282. package/dist/collection/assets/t9n/map-card/resources_lt.json +1 -1
  283. package/dist/collection/assets/t9n/map-card/resources_lv.json +1 -1
  284. package/dist/collection/assets/t9n/map-card/resources_nb.json +1 -1
  285. package/dist/collection/assets/t9n/map-card/resources_nl.json +1 -1
  286. package/dist/collection/assets/t9n/map-card/resources_no.json +1 -1
  287. package/dist/collection/assets/t9n/map-card/resources_pl.json +1 -1
  288. package/dist/collection/assets/t9n/map-card/resources_pt-BR.json +1 -1
  289. package/dist/collection/assets/t9n/map-card/resources_pt-PT.json +1 -1
  290. package/dist/collection/assets/t9n/map-card/resources_ro.json +1 -1
  291. package/dist/collection/assets/t9n/map-card/resources_ru.json +1 -1
  292. package/dist/collection/assets/t9n/map-card/resources_sk.json +1 -1
  293. package/dist/collection/assets/t9n/map-card/resources_sl.json +1 -1
  294. package/dist/collection/assets/t9n/map-card/resources_sr.json +1 -1
  295. package/dist/collection/assets/t9n/map-card/resources_sv.json +1 -1
  296. package/dist/collection/assets/t9n/map-card/resources_th.json +1 -1
  297. package/dist/collection/assets/t9n/map-card/resources_tr.json +1 -1
  298. package/dist/collection/assets/t9n/map-card/resources_uk.json +1 -1
  299. package/dist/collection/assets/t9n/map-card/resources_vi.json +1 -1
  300. package/dist/collection/assets/t9n/map-card/resources_zh-CN.json +1 -1
  301. package/dist/collection/assets/t9n/map-card/resources_zh-HK.json +1 -1
  302. package/dist/collection/assets/t9n/map-card/resources_zh-TW.json +1 -1
  303. package/dist/collection/assets/t9n/solution-item-accordion/resources_ar.json +1 -1
  304. package/dist/collection/assets/t9n/solution-item-accordion/resources_bg.json +1 -1
  305. package/dist/collection/assets/t9n/solution-item-accordion/resources_bs.json +1 -1
  306. package/dist/collection/assets/t9n/solution-item-accordion/resources_ca.json +1 -1
  307. package/dist/collection/assets/t9n/solution-item-accordion/resources_cs.json +1 -1
  308. package/dist/collection/assets/t9n/solution-item-accordion/resources_da.json +1 -1
  309. package/dist/collection/assets/t9n/solution-item-accordion/resources_de.json +1 -1
  310. package/dist/collection/assets/t9n/solution-item-accordion/resources_el.json +1 -1
  311. package/dist/collection/assets/t9n/solution-item-accordion/resources_es.json +1 -1
  312. package/dist/collection/assets/t9n/solution-item-accordion/resources_et.json +1 -1
  313. package/dist/collection/assets/t9n/solution-item-accordion/resources_fi.json +1 -1
  314. package/dist/collection/assets/t9n/solution-item-accordion/resources_fr.json +1 -1
  315. package/dist/collection/assets/t9n/solution-item-accordion/resources_he.json +1 -1
  316. package/dist/collection/assets/t9n/solution-item-accordion/resources_hr.json +1 -1
  317. package/dist/collection/assets/t9n/solution-item-accordion/resources_hu.json +1 -1
  318. package/dist/collection/assets/t9n/solution-item-accordion/resources_id.json +1 -1
  319. package/dist/collection/assets/t9n/solution-item-accordion/resources_it.json +1 -1
  320. package/dist/collection/assets/t9n/solution-item-accordion/resources_ja.json +1 -1
  321. package/dist/collection/assets/t9n/solution-item-accordion/resources_ko.json +1 -1
  322. package/dist/collection/assets/t9n/solution-item-accordion/resources_lt.json +1 -1
  323. package/dist/collection/assets/t9n/solution-item-accordion/resources_lv.json +1 -1
  324. package/dist/collection/assets/t9n/solution-item-accordion/resources_nb.json +1 -1
  325. package/dist/collection/assets/t9n/solution-item-accordion/resources_nl.json +1 -1
  326. package/dist/collection/assets/t9n/solution-item-accordion/resources_no.json +1 -1
  327. package/dist/collection/assets/t9n/solution-item-accordion/resources_pl.json +1 -1
  328. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-BR.json +1 -1
  329. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-PT.json +1 -1
  330. package/dist/collection/assets/t9n/solution-item-accordion/resources_ro.json +1 -1
  331. package/dist/collection/assets/t9n/solution-item-accordion/resources_ru.json +1 -1
  332. package/dist/collection/assets/t9n/solution-item-accordion/resources_sk.json +1 -1
  333. package/dist/collection/assets/t9n/solution-item-accordion/resources_sl.json +1 -1
  334. package/dist/collection/assets/t9n/solution-item-accordion/resources_sr.json +1 -1
  335. package/dist/collection/assets/t9n/solution-item-accordion/resources_sv.json +1 -1
  336. package/dist/collection/assets/t9n/solution-item-accordion/resources_th.json +1 -1
  337. package/dist/collection/assets/t9n/solution-item-accordion/resources_tr.json +1 -1
  338. package/dist/collection/assets/t9n/solution-item-accordion/resources_uk.json +1 -1
  339. package/dist/collection/assets/t9n/solution-item-accordion/resources_vi.json +1 -1
  340. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-CN.json +1 -1
  341. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-HK.json +1 -1
  342. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-TW.json +1 -1
  343. package/dist/collection/components/basemap-gallery/basemap-gallery.js +13 -8
  344. package/dist/collection/components/card-manager/card-manager.js +1 -1
  345. package/dist/collection/components/edit-card/edit-card.js +1 -1
  346. package/dist/collection/components/info-card/info-card.js +2 -2
  347. package/dist/collection/components/layer-table/layer-table.js +86 -9
  348. package/dist/components/basemap-gallery2.js +13 -8
  349. package/dist/components/card-manager2.js +1 -1
  350. package/dist/components/edit-card2.js +1 -1
  351. package/dist/components/info-card2.js +2 -2
  352. package/dist/components/layer-table2.js +87 -10
  353. package/dist/esm/{asyncToGenerator-96b2368d.js → asyncToGenerator-48cd21fe.js} +1 -1
  354. package/dist/esm/basemap-gallery_7.entry.js +14 -9
  355. package/dist/esm/buffer-tools_2.entry.js +1 -1
  356. package/dist/esm/card-manager_3.entry.js +90 -13
  357. package/dist/esm/consent-manager.entry.js +3 -3
  358. package/dist/esm/create-feature_4.entry.js +7 -7
  359. package/dist/esm/create-related-feature_3.entry.js +1 -1
  360. package/dist/esm/crowdsource-manager.entry.js +1 -1
  361. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  362. package/dist/esm/delete-dialog.entry.js +1 -1
  363. package/dist/esm/{downloadUtils-a9fc6dd2.js → downloadUtils-7ef5420f.js} +3 -3
  364. package/dist/esm/feature-list.entry.js +4 -4
  365. package/dist/esm/{index.es-87662946.js → index.es-c379ea10.js} +2 -2
  366. package/dist/esm/json-editor_7.entry.js +1 -1
  367. package/dist/esm/map-layer-picker.entry.js +1 -1
  368. package/dist/esm/map-select-tools_3.entry.js +3 -3
  369. package/dist/esm/{popupUtils-78f2029e.js → popupUtils-ef89df87.js} +2 -2
  370. package/dist/esm/public-notification.entry.js +3 -3
  371. package/dist/esm/solution-configuration.entry.js +1 -1
  372. package/dist/esm/solution-contents_3.entry.js +1 -1
  373. package/dist/esm/solution-item-accordion.entry.js +1 -1
  374. package/dist/esm/spatial-ref.entry.js +1 -1
  375. package/dist/solutions-components/assets/t9n/consent-manager/resources_ar.json +3 -3
  376. package/dist/solutions-components/assets/t9n/consent-manager/resources_bg.json +3 -3
  377. package/dist/solutions-components/assets/t9n/consent-manager/resources_bs.json +3 -3
  378. package/dist/solutions-components/assets/t9n/consent-manager/resources_ca.json +3 -3
  379. package/dist/solutions-components/assets/t9n/consent-manager/resources_cs.json +3 -3
  380. package/dist/solutions-components/assets/t9n/consent-manager/resources_da.json +3 -3
  381. package/dist/solutions-components/assets/t9n/consent-manager/resources_de.json +3 -3
  382. package/dist/solutions-components/assets/t9n/consent-manager/resources_el.json +3 -3
  383. package/dist/solutions-components/assets/t9n/consent-manager/resources_es.json +3 -3
  384. package/dist/solutions-components/assets/t9n/consent-manager/resources_et.json +3 -3
  385. package/dist/solutions-components/assets/t9n/consent-manager/resources_fi.json +3 -3
  386. package/dist/solutions-components/assets/t9n/consent-manager/resources_fr.json +3 -3
  387. package/dist/solutions-components/assets/t9n/consent-manager/resources_he.json +3 -3
  388. package/dist/solutions-components/assets/t9n/consent-manager/resources_hr.json +3 -3
  389. package/dist/solutions-components/assets/t9n/consent-manager/resources_hu.json +3 -3
  390. package/dist/solutions-components/assets/t9n/consent-manager/resources_id.json +3 -3
  391. package/dist/solutions-components/assets/t9n/consent-manager/resources_it.json +3 -3
  392. package/dist/solutions-components/assets/t9n/consent-manager/resources_ja.json +3 -3
  393. package/dist/solutions-components/assets/t9n/consent-manager/resources_ko.json +3 -3
  394. package/dist/solutions-components/assets/t9n/consent-manager/resources_lt.json +3 -3
  395. package/dist/solutions-components/assets/t9n/consent-manager/resources_lv.json +3 -3
  396. package/dist/solutions-components/assets/t9n/consent-manager/resources_nb.json +3 -3
  397. package/dist/solutions-components/assets/t9n/consent-manager/resources_nl.json +3 -3
  398. package/dist/solutions-components/assets/t9n/consent-manager/resources_no.json +3 -3
  399. package/dist/solutions-components/assets/t9n/consent-manager/resources_pl.json +3 -3
  400. package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-BR.json +3 -3
  401. package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-PT.json +3 -3
  402. package/dist/solutions-components/assets/t9n/consent-manager/resources_ro.json +3 -3
  403. package/dist/solutions-components/assets/t9n/consent-manager/resources_ru.json +3 -3
  404. package/dist/solutions-components/assets/t9n/consent-manager/resources_sk.json +3 -3
  405. package/dist/solutions-components/assets/t9n/consent-manager/resources_sl.json +3 -3
  406. package/dist/solutions-components/assets/t9n/consent-manager/resources_sr.json +3 -3
  407. package/dist/solutions-components/assets/t9n/consent-manager/resources_sv.json +3 -3
  408. package/dist/solutions-components/assets/t9n/consent-manager/resources_th.json +3 -3
  409. package/dist/solutions-components/assets/t9n/consent-manager/resources_tr.json +3 -3
  410. package/dist/solutions-components/assets/t9n/consent-manager/resources_uk.json +3 -3
  411. package/dist/solutions-components/assets/t9n/consent-manager/resources_vi.json +3 -3
  412. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-CN.json +3 -3
  413. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-HK.json +3 -3
  414. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-TW.json +3 -3
  415. package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +1 -1
  416. package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +1 -1
  417. package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +1 -1
  418. package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +1 -1
  419. package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +1 -1
  420. package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +1 -1
  421. package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +1 -1
  422. package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +1 -1
  423. package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +1 -1
  424. package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +1 -1
  425. package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +1 -1
  426. package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +1 -1
  427. package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +1 -1
  428. package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +1 -1
  429. package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +1 -1
  430. package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +1 -1
  431. package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +1 -1
  432. package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +1 -1
  433. package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +1 -1
  434. package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +1 -1
  435. package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +1 -1
  436. package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +1 -1
  437. package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +1 -1
  438. package/dist/solutions-components/assets/t9n/create-feature/resources_no.json +1 -1
  439. package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +1 -1
  440. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  441. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  442. package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +1 -1
  443. package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +1 -1
  444. package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +1 -1
  445. package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +1 -1
  446. package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +1 -1
  447. package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +1 -1
  448. package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +1 -1
  449. package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +1 -1
  450. package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +1 -1
  451. package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +1 -1
  452. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  453. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  454. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  455. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ar.json +3 -3
  456. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_bg.json +3 -3
  457. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_bs.json +3 -3
  458. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ca.json +3 -3
  459. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_cs.json +3 -3
  460. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_da.json +3 -3
  461. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_de.json +3 -3
  462. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_el.json +3 -3
  463. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_es.json +3 -3
  464. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_et.json +3 -3
  465. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_fi.json +3 -3
  466. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_fr.json +3 -3
  467. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_he.json +3 -3
  468. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_hr.json +3 -3
  469. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_hu.json +3 -3
  470. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_id.json +3 -3
  471. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_it.json +3 -3
  472. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ja.json +3 -3
  473. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ko.json +3 -3
  474. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_lt.json +3 -3
  475. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_lv.json +3 -3
  476. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_nb.json +3 -3
  477. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_nl.json +3 -3
  478. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_no.json +3 -3
  479. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pl.json +3 -3
  480. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pt-BR.json +3 -3
  481. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pt-PT.json +3 -3
  482. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ro.json +3 -3
  483. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ru.json +3 -3
  484. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sk.json +3 -3
  485. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sl.json +3 -3
  486. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sr.json +3 -3
  487. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sv.json +3 -3
  488. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_th.json +3 -3
  489. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_tr.json +3 -3
  490. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_uk.json +3 -3
  491. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_vi.json +3 -3
  492. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-CN.json +3 -3
  493. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-HK.json +3 -3
  494. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-TW.json +3 -3
  495. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +2 -2
  496. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +2 -2
  497. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +2 -2
  498. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +2 -2
  499. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +2 -2
  500. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +2 -2
  501. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +2 -2
  502. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +2 -2
  503. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +2 -2
  504. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +2 -2
  505. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +2 -2
  506. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +2 -2
  507. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +2 -2
  508. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +2 -2
  509. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +2 -2
  510. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +2 -2
  511. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +2 -2
  512. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +2 -2
  513. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +2 -2
  514. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +2 -2
  515. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +2 -2
  516. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +2 -2
  517. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +2 -2
  518. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_no.json +2 -2
  519. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +2 -2
  520. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -2
  521. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -2
  522. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +2 -2
  523. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +2 -2
  524. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +2 -2
  525. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +2 -2
  526. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +2 -2
  527. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +2 -2
  528. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +2 -2
  529. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +2 -2
  530. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +2 -2
  531. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +2 -2
  532. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -2
  533. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -2
  534. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -2
  535. package/dist/solutions-components/assets/t9n/feature-list/resources_ar.json +2 -2
  536. package/dist/solutions-components/assets/t9n/feature-list/resources_bg.json +2 -2
  537. package/dist/solutions-components/assets/t9n/feature-list/resources_bs.json +2 -2
  538. package/dist/solutions-components/assets/t9n/feature-list/resources_ca.json +2 -2
  539. package/dist/solutions-components/assets/t9n/feature-list/resources_cs.json +2 -2
  540. package/dist/solutions-components/assets/t9n/feature-list/resources_da.json +2 -2
  541. package/dist/solutions-components/assets/t9n/feature-list/resources_de.json +2 -2
  542. package/dist/solutions-components/assets/t9n/feature-list/resources_el.json +2 -2
  543. package/dist/solutions-components/assets/t9n/feature-list/resources_es.json +2 -2
  544. package/dist/solutions-components/assets/t9n/feature-list/resources_et.json +2 -2
  545. package/dist/solutions-components/assets/t9n/feature-list/resources_fi.json +2 -2
  546. package/dist/solutions-components/assets/t9n/feature-list/resources_fr.json +2 -2
  547. package/dist/solutions-components/assets/t9n/feature-list/resources_he.json +2 -2
  548. package/dist/solutions-components/assets/t9n/feature-list/resources_hr.json +2 -2
  549. package/dist/solutions-components/assets/t9n/feature-list/resources_hu.json +2 -2
  550. package/dist/solutions-components/assets/t9n/feature-list/resources_id.json +2 -2
  551. package/dist/solutions-components/assets/t9n/feature-list/resources_it.json +2 -2
  552. package/dist/solutions-components/assets/t9n/feature-list/resources_ja.json +2 -2
  553. package/dist/solutions-components/assets/t9n/feature-list/resources_ko.json +2 -2
  554. package/dist/solutions-components/assets/t9n/feature-list/resources_lt.json +2 -2
  555. package/dist/solutions-components/assets/t9n/feature-list/resources_lv.json +2 -2
  556. package/dist/solutions-components/assets/t9n/feature-list/resources_nb.json +2 -2
  557. package/dist/solutions-components/assets/t9n/feature-list/resources_nl.json +2 -2
  558. package/dist/solutions-components/assets/t9n/feature-list/resources_no.json +2 -2
  559. package/dist/solutions-components/assets/t9n/feature-list/resources_pl.json +2 -2
  560. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-BR.json +2 -2
  561. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-PT.json +2 -2
  562. package/dist/solutions-components/assets/t9n/feature-list/resources_ro.json +2 -2
  563. package/dist/solutions-components/assets/t9n/feature-list/resources_ru.json +2 -2
  564. package/dist/solutions-components/assets/t9n/feature-list/resources_sk.json +2 -2
  565. package/dist/solutions-components/assets/t9n/feature-list/resources_sl.json +2 -2
  566. package/dist/solutions-components/assets/t9n/feature-list/resources_sr.json +2 -2
  567. package/dist/solutions-components/assets/t9n/feature-list/resources_sv.json +2 -2
  568. package/dist/solutions-components/assets/t9n/feature-list/resources_th.json +2 -2
  569. package/dist/solutions-components/assets/t9n/feature-list/resources_tr.json +2 -2
  570. package/dist/solutions-components/assets/t9n/feature-list/resources_uk.json +2 -2
  571. package/dist/solutions-components/assets/t9n/feature-list/resources_vi.json +2 -2
  572. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-CN.json +2 -2
  573. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-HK.json +2 -2
  574. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-TW.json +2 -2
  575. package/dist/solutions-components/assets/t9n/layer-table/resources_ar.json +3 -3
  576. package/dist/solutions-components/assets/t9n/layer-table/resources_bg.json +3 -3
  577. package/dist/solutions-components/assets/t9n/layer-table/resources_bs.json +3 -3
  578. package/dist/solutions-components/assets/t9n/layer-table/resources_ca.json +3 -3
  579. package/dist/solutions-components/assets/t9n/layer-table/resources_cs.json +3 -3
  580. package/dist/solutions-components/assets/t9n/layer-table/resources_da.json +3 -3
  581. package/dist/solutions-components/assets/t9n/layer-table/resources_de.json +3 -3
  582. package/dist/solutions-components/assets/t9n/layer-table/resources_el.json +3 -3
  583. package/dist/solutions-components/assets/t9n/layer-table/resources_es.json +3 -3
  584. package/dist/solutions-components/assets/t9n/layer-table/resources_et.json +3 -3
  585. package/dist/solutions-components/assets/t9n/layer-table/resources_fi.json +3 -3
  586. package/dist/solutions-components/assets/t9n/layer-table/resources_fr.json +3 -3
  587. package/dist/solutions-components/assets/t9n/layer-table/resources_he.json +3 -3
  588. package/dist/solutions-components/assets/t9n/layer-table/resources_hr.json +3 -3
  589. package/dist/solutions-components/assets/t9n/layer-table/resources_hu.json +3 -3
  590. package/dist/solutions-components/assets/t9n/layer-table/resources_id.json +3 -3
  591. package/dist/solutions-components/assets/t9n/layer-table/resources_it.json +3 -3
  592. package/dist/solutions-components/assets/t9n/layer-table/resources_ja.json +3 -3
  593. package/dist/solutions-components/assets/t9n/layer-table/resources_ko.json +3 -3
  594. package/dist/solutions-components/assets/t9n/layer-table/resources_lt.json +3 -3
  595. package/dist/solutions-components/assets/t9n/layer-table/resources_lv.json +3 -3
  596. package/dist/solutions-components/assets/t9n/layer-table/resources_nb.json +3 -3
  597. package/dist/solutions-components/assets/t9n/layer-table/resources_nl.json +3 -3
  598. package/dist/solutions-components/assets/t9n/layer-table/resources_no.json +3 -3
  599. package/dist/solutions-components/assets/t9n/layer-table/resources_pl.json +3 -3
  600. package/dist/solutions-components/assets/t9n/layer-table/resources_pt-BR.json +3 -3
  601. package/dist/solutions-components/assets/t9n/layer-table/resources_pt-PT.json +3 -3
  602. package/dist/solutions-components/assets/t9n/layer-table/resources_ro.json +3 -3
  603. package/dist/solutions-components/assets/t9n/layer-table/resources_ru.json +3 -3
  604. package/dist/solutions-components/assets/t9n/layer-table/resources_sk.json +3 -3
  605. package/dist/solutions-components/assets/t9n/layer-table/resources_sl.json +3 -3
  606. package/dist/solutions-components/assets/t9n/layer-table/resources_sr.json +3 -3
  607. package/dist/solutions-components/assets/t9n/layer-table/resources_sv.json +3 -3
  608. package/dist/solutions-components/assets/t9n/layer-table/resources_th.json +3 -3
  609. package/dist/solutions-components/assets/t9n/layer-table/resources_tr.json +3 -3
  610. package/dist/solutions-components/assets/t9n/layer-table/resources_uk.json +3 -3
  611. package/dist/solutions-components/assets/t9n/layer-table/resources_vi.json +3 -3
  612. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-CN.json +3 -3
  613. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-HK.json +3 -3
  614. package/dist/solutions-components/assets/t9n/layer-table/resources_zh-TW.json +3 -3
  615. package/dist/solutions-components/assets/t9n/map-card/resources_ar.json +1 -1
  616. package/dist/solutions-components/assets/t9n/map-card/resources_bg.json +1 -1
  617. package/dist/solutions-components/assets/t9n/map-card/resources_bs.json +1 -1
  618. package/dist/solutions-components/assets/t9n/map-card/resources_ca.json +1 -1
  619. package/dist/solutions-components/assets/t9n/map-card/resources_cs.json +1 -1
  620. package/dist/solutions-components/assets/t9n/map-card/resources_da.json +1 -1
  621. package/dist/solutions-components/assets/t9n/map-card/resources_de.json +1 -1
  622. package/dist/solutions-components/assets/t9n/map-card/resources_el.json +1 -1
  623. package/dist/solutions-components/assets/t9n/map-card/resources_es.json +1 -1
  624. package/dist/solutions-components/assets/t9n/map-card/resources_et.json +1 -1
  625. package/dist/solutions-components/assets/t9n/map-card/resources_fi.json +1 -1
  626. package/dist/solutions-components/assets/t9n/map-card/resources_fr.json +1 -1
  627. package/dist/solutions-components/assets/t9n/map-card/resources_he.json +1 -1
  628. package/dist/solutions-components/assets/t9n/map-card/resources_hr.json +1 -1
  629. package/dist/solutions-components/assets/t9n/map-card/resources_hu.json +1 -1
  630. package/dist/solutions-components/assets/t9n/map-card/resources_id.json +1 -1
  631. package/dist/solutions-components/assets/t9n/map-card/resources_it.json +1 -1
  632. package/dist/solutions-components/assets/t9n/map-card/resources_ja.json +1 -1
  633. package/dist/solutions-components/assets/t9n/map-card/resources_ko.json +1 -1
  634. package/dist/solutions-components/assets/t9n/map-card/resources_lt.json +1 -1
  635. package/dist/solutions-components/assets/t9n/map-card/resources_lv.json +1 -1
  636. package/dist/solutions-components/assets/t9n/map-card/resources_nb.json +1 -1
  637. package/dist/solutions-components/assets/t9n/map-card/resources_nl.json +1 -1
  638. package/dist/solutions-components/assets/t9n/map-card/resources_no.json +1 -1
  639. package/dist/solutions-components/assets/t9n/map-card/resources_pl.json +1 -1
  640. package/dist/solutions-components/assets/t9n/map-card/resources_pt-BR.json +1 -1
  641. package/dist/solutions-components/assets/t9n/map-card/resources_pt-PT.json +1 -1
  642. package/dist/solutions-components/assets/t9n/map-card/resources_ro.json +1 -1
  643. package/dist/solutions-components/assets/t9n/map-card/resources_ru.json +1 -1
  644. package/dist/solutions-components/assets/t9n/map-card/resources_sk.json +1 -1
  645. package/dist/solutions-components/assets/t9n/map-card/resources_sl.json +1 -1
  646. package/dist/solutions-components/assets/t9n/map-card/resources_sr.json +1 -1
  647. package/dist/solutions-components/assets/t9n/map-card/resources_sv.json +1 -1
  648. package/dist/solutions-components/assets/t9n/map-card/resources_th.json +1 -1
  649. package/dist/solutions-components/assets/t9n/map-card/resources_tr.json +1 -1
  650. package/dist/solutions-components/assets/t9n/map-card/resources_uk.json +1 -1
  651. package/dist/solutions-components/assets/t9n/map-card/resources_vi.json +1 -1
  652. package/dist/solutions-components/assets/t9n/map-card/resources_zh-CN.json +1 -1
  653. package/dist/solutions-components/assets/t9n/map-card/resources_zh-HK.json +1 -1
  654. package/dist/solutions-components/assets/t9n/map-card/resources_zh-TW.json +1 -1
  655. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ar.json +1 -1
  656. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bg.json +1 -1
  657. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bs.json +1 -1
  658. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ca.json +1 -1
  659. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_cs.json +1 -1
  660. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_da.json +1 -1
  661. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_de.json +1 -1
  662. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_el.json +1 -1
  663. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_es.json +1 -1
  664. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_et.json +1 -1
  665. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fi.json +1 -1
  666. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fr.json +1 -1
  667. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_he.json +1 -1
  668. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hr.json +1 -1
  669. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hu.json +1 -1
  670. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_id.json +1 -1
  671. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_it.json +1 -1
  672. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ja.json +1 -1
  673. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ko.json +1 -1
  674. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lt.json +1 -1
  675. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lv.json +1 -1
  676. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nb.json +1 -1
  677. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nl.json +1 -1
  678. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_no.json +1 -1
  679. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pl.json +1 -1
  680. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-BR.json +1 -1
  681. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-PT.json +1 -1
  682. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ro.json +1 -1
  683. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ru.json +1 -1
  684. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sk.json +1 -1
  685. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sl.json +1 -1
  686. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sr.json +1 -1
  687. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sv.json +1 -1
  688. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_th.json +1 -1
  689. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_tr.json +1 -1
  690. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_uk.json +1 -1
  691. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_vi.json +1 -1
  692. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-CN.json +1 -1
  693. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-HK.json +1 -1
  694. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-TW.json +1 -1
  695. package/dist/solutions-components/p-035a1d38.entry.js +6 -0
  696. package/dist/solutions-components/{p-c83b1a4a.entry.js → p-11ad8edc.entry.js} +1 -1
  697. package/dist/solutions-components/{p-f6d19f6d.entry.js → p-1325fa9e.entry.js} +1 -1
  698. package/dist/solutions-components/{p-60b1fe27.entry.js → p-2be59c38.entry.js} +1 -1
  699. package/dist/solutions-components/{p-455c19fa.js → p-4379cc5f.js} +2 -2
  700. package/dist/solutions-components/{p-0a60707c.entry.js → p-5096280f.entry.js} +1 -1
  701. package/dist/solutions-components/p-51033697.entry.js +6 -0
  702. package/dist/solutions-components/p-51e04c86.js +21 -0
  703. package/dist/solutions-components/{p-30b5dcaf.entry.js → p-605597cf.entry.js} +1 -1
  704. package/dist/solutions-components/{p-d65f8b73.js → p-62a0aa8e.js} +1 -1
  705. package/dist/solutions-components/{p-a38eee28.entry.js → p-681a41f3.entry.js} +1 -1
  706. package/dist/solutions-components/{p-dc188d13.js → p-6d1ee086.js} +1 -1
  707. package/dist/solutions-components/{p-50b4945e.entry.js → p-7eec82e3.entry.js} +1 -1
  708. package/dist/solutions-components/{p-5b481f0d.entry.js → p-8b05b49c.entry.js} +1 -1
  709. package/dist/solutions-components/{p-6dc629dc.entry.js → p-93ebcb9b.entry.js} +1 -1
  710. package/dist/solutions-components/{p-b04179db.entry.js → p-b1f11c67.entry.js} +1 -1
  711. package/dist/solutions-components/{p-1aad0b63.entry.js → p-b3b5dca4.entry.js} +1 -1
  712. package/dist/solutions-components/{p-b8e4345e.entry.js → p-c45ba7dd.entry.js} +1 -1
  713. package/dist/solutions-components/{p-4a2870b0.entry.js → p-de3ba7be.entry.js} +1 -1
  714. package/dist/solutions-components/{p-7f36cfb0.entry.js → p-debeb4dc.entry.js} +1 -1
  715. package/dist/solutions-components/{p-f8854c5e.entry.js → p-e68f5f54.entry.js} +1 -1
  716. package/dist/solutions-components/{p-f3ba92d5.entry.js → p-f2cfed3a.entry.js} +1 -1
  717. package/dist/solutions-components/solutions-components.esm.js +1 -1
  718. package/dist/solutions-components_commit.txt +7 -7
  719. package/dist/types/components/layer-table/layer-table.d.ts +34 -0
  720. package/package.json +1 -1
  721. package/dist/solutions-components/p-0def29e6.entry.js +0 -6
  722. package/dist/solutions-components/p-31159fc6.js +0 -21
  723. package/dist/solutions-components/p-76126e43.entry.js +0 -6
  724. /package/dist/cjs/{locale-809dbc6e.js → locale-81070bd9.js} +0 -0
  725. /package/dist/cjs/{typeof-2a7e2dec.js → typeof-920a4426.js} +0 -0
  726. /package/dist/esm/{locale-fa8258bf.js → locale-4be8e04f.js} +0 -0
  727. /package/dist/esm/{typeof-ef2a007d.js → typeof-2511410e.js} +0 -0
  728. /package/dist/solutions-components/{p-57be3b9d.js → p-8a74a780.js} +0 -0
  729. /package/dist/solutions-components/{p-4fe489cf.js → p-af7e43e0.js} +0 -0
@@ -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-934e8935.js";import{l,g as o}from"./p-57be3b9d.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-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())}async sortOptionWatchHandler(){this.updateSortingOptions()}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:"67b22ff121842ed855d42c6e95f506da7a27fc03"},this._reportSubmitted&&e("calcite-alert",{key:"a4687bb0a46e215f830418c934156adc1ca22d28","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:"75c7f06e0c997cff02f2d03cf165a0d96556a99e",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"db289e06eeff7d79511b0f2d94681931347b40ed","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"9f8c4ef83cafb13d17fd1051d308e59e00c277d5",slot:"title"},this._translations.error),e("div",{key:"c18221f220f9b1d28b296a9bab89b838f0884323",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"086aff48b20dbabcddb68fca5b57d7a14101c8d0","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"02125cd052ba81cc1fce0ac65ab517ae0eb46d13",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"c1e0966dde08f7f22f54cdadfc85f3024616fc77","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"0dd5af761fef31a4b85bfa0f66dff82e04b1cced",slot:"title"},this._translations.error),e("div",{key:"e8b8667855147b417cfc43d19e0c0a04f8870bfd",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"10c4c2d1673d63a8ced357312d57acf7faa46f0a"},e("calcite-shell",{key:"8262117bc32e033f25f2864f4c5aa8a1bdde85ff","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,flipRtl:!0,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"],sortOption:["sortOptionWatchHandler"],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-934e8935.js";import{l,g as o}from"./p-8a74a780.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-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())}async sortOptionWatchHandler(){this.updateSortingOptions()}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:"67b22ff121842ed855d42c6e95f506da7a27fc03"},this._reportSubmitted&&e("calcite-alert",{key:"a4687bb0a46e215f830418c934156adc1ca22d28","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:"75c7f06e0c997cff02f2d03cf165a0d96556a99e",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"db289e06eeff7d79511b0f2d94681931347b40ed","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"9f8c4ef83cafb13d17fd1051d308e59e00c277d5",slot:"title"},this._translations.error),e("div",{key:"c18221f220f9b1d28b296a9bab89b838f0884323",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"086aff48b20dbabcddb68fca5b57d7a14101c8d0","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"02125cd052ba81cc1fce0ac65ab517ae0eb46d13",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"c1e0966dde08f7f22f54cdadfc85f3024616fc77","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"0dd5af761fef31a4b85bfa0f66dff82e04b1cced",slot:"title"},this._translations.error),e("div",{key:"e8b8667855147b417cfc43d19e0c0a04f8870bfd",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"10c4c2d1673d63a8ced357312d57acf7faa46f0a"},e("calcite-shell",{key:"8262117bc32e033f25f2864f4c5aa8a1bdde85ff","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,flipRtl:!0,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"],sortOption:["sortOptionWatchHandler"],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 t,c as i,g as s,h as e,H as a}from"./p-934e8935.js";import{l as h,g as n}from"./p-57be3b9d.js";import{f as r}from"./p-80cb7c73.js";import{s as o}from"./p-5e7369d1.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";const l=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};l.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=r.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===r.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===r.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),o.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===r.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===r.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===r.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.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}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.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:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color:var(--calcite-color-border-3) !important}';export{l as buffer_tools,c as map_draw_tools}
6
+ import{r as t,c as i,g as s,h as e,H as a}from"./p-934e8935.js";import{l as h,g as n}from"./p-8a74a780.js";import{f as r}from"./p-80cb7c73.js";import{s as o}from"./p-5e7369d1.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";const l=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};l.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=r.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===r.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===r.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),o.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===r.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===r.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===r.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.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}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.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:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color:var(--calcite-color-border-3) !important}';export{l as buffer_tools,c as map_draw_tools}
@@ -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,g as e,h as i,H as a,c as s}from"./p-934e8935.js";import{g as c}from"./p-57be3b9d.js";import{s as n}from"./p-76291afb.js";import{d as o}from"./p-80cb7c73.js";import{E as l}from"./p-4f236b5d.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const d=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.locale=void 0,this.value=""}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,s){t.id===i._currentModel.id&&(i._flagEditorHasErrors(s.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,s)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(a,{key:"621ac863c34e9f9094cacdd23d8e98ac72f17cca"},i("div",{key:"4b76eb1e909ae3ee552be7901d00fbc4273ba566",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"52f698899de155066e0553c6a98d25fd97caf4c6",class:"editor-controls"},i("div",{key:"0e6cdbe7ddab159a7a48871438e8ab0879c88c66",class:"editor-buttons"},i("calcite-icon",{key:"1dc05177d04b37e90ead37a379440668ccaf3b63",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"b3854e84069228ed8325f434f7e480f1195dd1ef",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"50b6aaabeefde273e1cfba831a30311586eda488",icon:"undo",scale:"s"})),i("calcite-button",{key:"afea75aece444f691e57a7b981f2d35fa9149d74",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c5f3bbaceb3e53b24df5e81059a7be32d953aa69",icon:"redo",scale:"s"})),i("calcite-button",{key:"7489ee1d6032f9353244d16b8f45725bcf3a5fd1",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"ac11bfc128fca752dbd2e4b8cdc6bc6b1d84a870",icon:"compare",scale:"s"})),i("calcite-button",{key:"291fe329bf2468767efc58fff156386673452b28",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"84c9bc3b1bc4f0e85a21db0e9bba2018b615823f",icon:"search",scale:"s"})),i("calcite-button",{key:"085eaac8db01198f5585903e46f1de155575ab52",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"490471d98c54415ed367532e8f27afc7e2f6f909",icon:"reset",scale:"s"})))),i("div",{key:"ba0eefa9c89c00c31cbde9e96bbc99e51af7b6e2",class:"edit-parent"},i("div",{key:"53706cf936c04c7c07862fba30d117048a741e85",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"c8c8f9735fb8836396dad6c8a20cfaf88aaed734",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}static get watchers(){return{locale:["localeWatchHandler"]}}};d.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const r=class{constructor(e){t(this,e),this.itemId="",this.locale=void 0,this.itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""},this.itemEdit=void 0,this._translations=void 0,this.thumbnail=void 0,this.thumbnailContainer=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(a,{key:"25e3930a7c1b24c78f0e231bb9b6aa114fe0f760"},i("div",{key:"907595455cc5be58a236c6b12d0399c0c6f8da7e",class:"parent-container"},i("div",{key:"c7f1572fff7059b7223f6b6f7e1ff65e15ccadc0",class:"inputBottomSeparation"},i("calcite-input",{key:"3f393371b2c4c5a88241df18fc0b8c9ee5b325b6",id:"item-title",value:this.itemDetails.title})),i("div",{key:"e134339bd5fb1f55045b72e3e0ece595c20fd55a",class:"inputBottomSeparation"},i("input",{key:"08742aa24d380d38d074b755e170b1df9b48114c",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"0ad864fa6d12282c864c968f15e4a730ca8e2d53",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"bf32edd3ad9d2fa985d2c707106b1697bacac757",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"0581a38a6f0f8a58c1b3abbef033e38af9743f03",d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"})),this._translations.editThumbnail),i("div",{key:"978e825767ec86c4eb974c9b47741ac58a794c54",class:"flex"},i("div",{key:"f6721a9446b4eab103f629f03be69956e28c63b6",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"0e0db9376bd9c961a7cc6c34aba64868d92eaf85",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"2a82df665ff0cb16359e31eb7997db705384b56c",class:"snippet-count-container"},i("calcite-input",{key:"a142354996383afddbada732fbe71add5170771f",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"0675e3bcc1f6d1cc6c73f21ccfc8da2f83fdf4c9",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"1c5f6ff67b2244dda36c26ad5cd64bcf1901ba76"},this._translations.description,i("label",{key:"96eff727abe88b1c488b6b0e8b35f432808323e8",id:"item-description-label"},i("calcite-input",{key:"e88ece9f3ffd14956b1ed4700931a56ee3c763d5",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"25f6a748d704740ac15142857ebe5f799bfcd9fe"},this._translations.tags,i("label",{key:"c78501ae484fa238622e12df58f1117912474d1a",id:"item-tags-label"},i("calcite-input",{key:"d110e04d2daed7483ec97cc1e845cfab54a5032b",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemType;itemSnippetCount;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,n.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],n.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};r.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const h=class{constructor(e){t(this,e),this.groupId="",this.locale=void 0,this._translations=void 0,this.sharing=[]}get el(){return e(this)}itemIdWatchHandler(){const t=n.getItemInfo(this.groupId);this.sharing=t.groupDetails}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"734a56fc2d841d0fd924f989ecbde1246a27e0b9"},i("div",{key:"5358c6f1e10fa85597ebbcecdaa7755dfce10e03",class:"container-border"},i("calcite-label",{key:"aec3e25ef8525070bf93faf9bfbcacda336e165a"},this._translations.groupInfo),this._renderItems(this.sharing)))}async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=n.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}n.setItemInfo(a)}return i}))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};h.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const b=class{constructor(e){t(this,e),this.organizationVariableSelected=s(this,"organizationVariableSelected",7),this.locale=void 0,this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"787dfd1360205b9115a116587de2105c6445901b"},i("div",{key:"1b30f388323fe0b66d41dc5fff96656625c194e0"},i("h4",{key:"b293e7360e94711de6123bfe69ad4b1bfd51a32f",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"d7539e32e93de16f17acb1936f8fcd8f5a2be5e7",class:"container-border"},i("calcite-tree",{key:"3dc37dd785d0eb7c637b0ee869dd1de5260c30c2",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};b.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const f=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.locale=void 0,this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return e(this)}itemIdWatchHandler(){const t=n.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(a,{key:"e6fbb574cb4388f8ae3a12326da5c1ff8fc6ef8b"},i("div",{key:"457ed63be82590dc1d0b80d80a81dae3f4b19331",class:"resource-item"},i("div",{key:"3a514d2a3acf96f259ed9b9a01e94616cbcc8dfb",class:"margin-bottom-1"},i("calcite-button",{key:"1ff4674533779ea6a843e5e6d7507ab45a651a8d",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"ec3a044c9e13d4bea242ede4ed80c35c63fad40d",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"e78338fe068802b4f339dba4e751b972ef921462",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==l.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===o.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=o.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),s=URL.createObjectURL(a);this.downloadFile(s,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=o.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:l.Data,folder:void 0,filename:i,blob:e[0],updateType:o.Add}],this._updateStore())}}_updateStore(){const t=n.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,n.setItemInfo(t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};f.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const p=class{get el(){return e(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?n.getItemInfo(this.itemId).data:n.getItemInfo(this.itemId).properties,null,2)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}constructor(e){t(this,e),this.instanceid="",this.itemId="",this.locale=void 0,this.organizationVariables="",this.solutionVariables="",this.varsOpen=!0,this._translations=void 0,this.value="",window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,s]=e.split("|");if(a==this.itemId&&s===this.instanceid){if(!this._initializing&&i.length>0){const t=n.getItemInfo(a);"data"===s?t.data=JSON.parse(i):t.properties=JSON.parse(i),n.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"f6da4b15c002be4d1744bf3fa37f0572d74fd8e4"},i("div",{key:"32c037bfe426a87e9c72306f6fb39eb216e4423a",class:"solution-data-container"},i("calcite-shell",{key:"3ed2cd29f5e1015cb40b94b292da5877c242f899",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"a1c34c8dd9df1e7cdf649c489d10c2dc7955bba2",class:"json-editor"},i("div",{key:"b12f8225c6db5a26a43c9a5bc10957e417942708",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"1826ffe1884f387e93a51c8c25767b7de8836481",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,locale:this.locale,value:this.value}))),i("calcite-shell-panel",{key:"6a87685cdad0b60cb50ceed7c9d8ae9e6f86a8ed","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"569c1a2101114f849bdc51bbb9ff8096d777c012",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"b757de3ed5b27aa2afd9b31d0237b4f39a567c67",appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.varsOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"18c703e0588db7350c23d8d372c2f8d6b21b75a2",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"314e49f8890a81e1ba6f1d2850f42c93f6548c72",locale:this.locale,value:this.organizationVariables})),i("div",{key:"c64bcc41b5ce924c19bca4ed2dd1e4bb4ac0a1d6",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"fb0a82ba68b9135bee7e3935941cbeb34a3b2a8f",locale:this.locale,value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const m=class{constructor(e){t(this,e),this.solutionVariableSelected=s(this,"solutionVariableSelected",7),this.value="",this.locale=void 0,this._solutionVariables=[],this._translations=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"4a07407cbb5ec30a726b8d4479842f5f0006e6ef"},i("div",{key:"37146247e3d5384d1ec41c0804f09951a15db9eb"},i("h4",{key:"06a068797418271f93135973e69097b26ebc0704",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"8b320287b59a0dddda151e055837963409193e02",class:"container-border"},i("calcite-tree",{key:"1e5898ccbf092fa57630cc0e4a085fbda006991a",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};m.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{d as json_editor,r as solution_item_details,h as solution_item_sharing,b as solution_organization_variables,f as solution_resource_item,p as solution_template_data,m as solution_variables}
6
+ import{r as t,g as e,h as i,H as a,c as s}from"./p-934e8935.js";import{g as c}from"./p-8a74a780.js";import{s as n}from"./p-76291afb.js";import{d as o}from"./p-80cb7c73.js";import{E as l}from"./p-4f236b5d.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const d=class{constructor(e){t(this,e),this.hasChanges=!1,this.hasErrors=!1,this.instanceid="",this.locale=void 0,this.value=""}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,s){t.id===i._currentModel.id&&(i._flagEditorHasErrors(s.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,s)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(a,{key:"621ac863c34e9f9094cacdd23d8e98ac72f17cca"},i("div",{key:"4b76eb1e909ae3ee552be7901d00fbc4273ba566",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"52f698899de155066e0553c6a98d25fd97caf4c6",class:"editor-controls"},i("div",{key:"0e6cdbe7ddab159a7a48871438e8ab0879c88c66",class:"editor-buttons"},i("calcite-icon",{key:"1dc05177d04b37e90ead37a379440668ccaf3b63",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"b3854e84069228ed8325f434f7e480f1195dd1ef",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"50b6aaabeefde273e1cfba831a30311586eda488",icon:"undo",scale:"s"})),i("calcite-button",{key:"afea75aece444f691e57a7b981f2d35fa9149d74",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"c5f3bbaceb3e53b24df5e81059a7be32d953aa69",icon:"redo",scale:"s"})),i("calcite-button",{key:"7489ee1d6032f9353244d16b8f45725bcf3a5fd1",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"ac11bfc128fca752dbd2e4b8cdc6bc6b1d84a870",icon:"compare",scale:"s"})),i("calcite-button",{key:"291fe329bf2468767efc58fff156386673452b28",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"84c9bc3b1bc4f0e85a21db0e9bba2018b615823f",icon:"search",scale:"s"})),i("calcite-button",{key:"085eaac8db01198f5585903e46f1de155575ab52",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"490471d98c54415ed367532e8f27afc7e2f6f909",icon:"reset",scale:"s"})))),i("div",{key:"ba0eefa9c89c00c31cbde9e96bbc99e51af7b6e2",class:"edit-parent"},i("div",{key:"53706cf936c04c7c07862fba30d117048a741e85",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"c8c8f9735fb8836396dad6c8a20cfaf88aaed734",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}static get watchers(){return{locale:["localeWatchHandler"]}}};d.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const r=class{constructor(e){t(this,e),this.itemId="",this.locale=void 0,this.itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""},this.itemEdit=void 0,this._translations=void 0,this.thumbnail=void 0,this.thumbnailContainer=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(a,{key:"25e3930a7c1b24c78f0e231bb9b6aa114fe0f760"},i("div",{key:"907595455cc5be58a236c6b12d0399c0c6f8da7e",class:"parent-container"},i("div",{key:"c7f1572fff7059b7223f6b6f7e1ff65e15ccadc0",class:"inputBottomSeparation"},i("calcite-input",{key:"3f393371b2c4c5a88241df18fc0b8c9ee5b325b6",id:"item-title",value:this.itemDetails.title})),i("div",{key:"e134339bd5fb1f55045b72e3e0ece595c20fd55a",class:"inputBottomSeparation"},i("input",{key:"08742aa24d380d38d074b755e170b1df9b48114c",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"0ad864fa6d12282c864c968f15e4a730ca8e2d53",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"bf32edd3ad9d2fa985d2c707106b1697bacac757",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"0581a38a6f0f8a58c1b3abbef033e38af9743f03",d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"})),this._translations.editThumbnail),i("div",{key:"978e825767ec86c4eb974c9b47741ac58a794c54",class:"flex"},i("div",{key:"f6721a9446b4eab103f629f03be69956e28c63b6",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"0e0db9376bd9c961a7cc6c34aba64868d92eaf85",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"2a82df665ff0cb16359e31eb7997db705384b56c",class:"snippet-count-container"},i("calcite-input",{key:"a142354996383afddbada732fbe71add5170771f",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"0675e3bcc1f6d1cc6c73f21ccfc8da2f83fdf4c9",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"1c5f6ff67b2244dda36c26ad5cd64bcf1901ba76"},this._translations.description,i("label",{key:"96eff727abe88b1c488b6b0e8b35f432808323e8",id:"item-description-label"},i("calcite-input",{key:"e88ece9f3ffd14956b1ed4700931a56ee3c763d5",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"25f6a748d704740ac15142857ebe5f799bfcd9fe"},this._translations.tags,i("label",{key:"c78501ae484fa238622e12df58f1117912474d1a",id:"item-tags-label"},i("calcite-input",{key:"d110e04d2daed7483ec97cc1e845cfab54a5032b",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemType;itemSnippetCount;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,n.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=n.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],n.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};r.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const h=class{constructor(e){t(this,e),this.groupId="",this.locale=void 0,this._translations=void 0,this.sharing=[]}get el(){return e(this)}itemIdWatchHandler(){const t=n.getItemInfo(this.groupId);this.sharing=t.groupDetails}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"734a56fc2d841d0fd924f989ecbde1246a27e0b9"},i("div",{key:"5358c6f1e10fa85597ebbcecdaa7755dfce10e03",class:"container-border"},i("calcite-label",{key:"aec3e25ef8525070bf93faf9bfbcacda336e165a"},this._translations.groupInfo),this._renderItems(this.sharing)))}async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=n.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}n.setItemInfo(a)}return i}))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};h.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const b=class{constructor(e){t(this,e),this.organizationVariableSelected=s(this,"organizationVariableSelected",7),this.locale=void 0,this.value="",this._organizationVariables=[],this._translations=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"787dfd1360205b9115a116587de2105c6445901b"},i("div",{key:"1b30f388323fe0b66d41dc5fff96656625c194e0"},i("h4",{key:"b293e7360e94711de6123bfe69ad4b1bfd51a32f",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"d7539e32e93de16f17acb1936f8fcd8f5a2be5e7",class:"container-border"},i("calcite-tree",{key:"3dc37dd785d0eb7c637b0ee869dd1de5260c30c2",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};b.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const f=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.locale=void 0,this.resourceFilePaths=[],this.resources=[],this._translations=void 0}get el(){return e(this)}itemIdWatchHandler(){const t=n.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(a,{key:"e6fbb574cb4388f8ae3a12326da5c1ff8fc6ef8b"},i("div",{key:"457ed63be82590dc1d0b80d80a81dae3f4b19331",class:"resource-item"},i("div",{key:"3a514d2a3acf96f259ed9b9a01e94616cbcc8dfb",class:"margin-bottom-1"},i("calcite-button",{key:"1ff4674533779ea6a843e5e6d7507ab45a651a8d",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"ec3a044c9e13d4bea242ede4ed80c35c63fad40d",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"e78338fe068802b4f339dba4e751b972ef921462",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==l.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===o.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=o.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),s=URL.createObjectURL(a);this.downloadFile(s,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=o.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:l.Data,folder:void 0,filename:i,blob:e[0],updateType:o.Add}],this._updateStore())}}_updateStore(){const t=n.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,n.setItemInfo(t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};f.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const p=class{get el(){return e(this)}itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?n.getItemInfo(this.itemId).data:n.getItemInfo(this.itemId).properties,null,2)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}constructor(e){t(this,e),this.instanceid="",this.itemId="",this.locale=void 0,this.organizationVariables="",this.solutionVariables="",this.varsOpen=!0,this._translations=void 0,this.value="",window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,s]=e.split("|");if(a==this.itemId&&s===this.instanceid){if(!this._initializing&&i.length>0){const t=n.getItemInfo(a);"data"===s?t.data=JSON.parse(i):t.properties=JSON.parse(i),n.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"f6da4b15c002be4d1744bf3fa37f0572d74fd8e4"},i("div",{key:"32c037bfe426a87e9c72306f6fb39eb216e4423a",class:"solution-data-container"},i("calcite-shell",{key:"3ed2cd29f5e1015cb40b94b292da5877c242f899",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"a1c34c8dd9df1e7cdf649c489d10c2dc7955bba2",class:"json-editor"},i("div",{key:"b12f8225c6db5a26a43c9a5bc10957e417942708",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"1826ffe1884f387e93a51c8c25767b7de8836481",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,locale:this.locale,value:this.value}))),i("calcite-shell-panel",{key:"6a87685cdad0b60cb50ceed7c9d8ae9e6f86a8ed","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"569c1a2101114f849bdc51bbb9ff8096d777c012",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"b757de3ed5b27aa2afd9b31d0237b4f39a567c67",appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.varsOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"18c703e0588db7350c23d8d372c2f8d6b21b75a2",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"314e49f8890a81e1ba6f1d2850f42c93f6548c72",locale:this.locale,value:this.organizationVariables})),i("div",{key:"c64bcc41b5ce924c19bca4ed2dd1e4bb4ac0a1d6",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"fb0a82ba68b9135bee7e3935941cbeb34a3b2a8f",locale:this.locale,value:this.solutionVariables})))))))}_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const m=class{constructor(e){t(this,e),this.solutionVariableSelected=s(this,"solutionVariableSelected",7),this.value="",this.locale=void 0,this._solutionVariables=[],this._translations=void 0}get el(){return e(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"4a07407cbb5ec30a726b8d4479842f5f0006e6ef"},i("div",{key:"37146247e3d5384d1ec41c0804f09951a15db9eb"},i("h4",{key:"06a068797418271f93135973e69097b26ebc0704",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"8b320287b59a0dddda151e055837963409193e02",class:"container-border"},i("calcite-tree",{key:"1e5898ccbf092fa57630cc0e4a085fbda006991a",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};m.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{d as json_editor,r as solution_item_details,h as solution_item_sharing,b as solution_organization_variables,f as solution_resource_item,p as solution_template_data,m as solution_variables}
@@ -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{t}from"./p-4fe489cf.js";import{a as n}from"./p-934e8935.js";import{l as i}from"./p-57be3b9d.js";import{q as r}from"./p-5693ce7a.js";import"./p-4f236b5d.js";import{g as e}from"./p-570b13d9.js";import{a as s,r as o,c as a}from"./p-0668e30d.js";
6
+ import{t}from"./p-af7e43e0.js";import{a as n}from"./p-934e8935.js";import{l as i}from"./p-8a74a780.js";import{q as r}from"./p-5693ce7a.js";import"./p-4f236b5d.js";import{g as e}from"./p-570b13d9.js";import{a as s,r as o,c as a}from"./p-0668e30d.js";
7
7
  /* @preserve
8
8
  * arcgis-pdf-creator v0.0.1
9
9
  * Thu Apr 27 2023 17:20:32 GMT-0700 (Pacific Daylight Time)
@@ -309,7 +309,7 @@ function(t){var n=function(t){for(var n=t.length,i=new Uint8Array(n),r=0;r<n;r++
309
309
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
310
310
  * ====================================================================
311
311
  */
312
- function(){function t(){return(tt.canvg?Promise.resolve(tt.canvg):import("./p-dc188d13.js")).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}It.API.addSvgAsImage=function(n,i,r,e,s,o,a,u){if(isNaN(i)||isNaN(r))throw it.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(e)||isNaN(s))throw it.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=e,f.height=s;var c=f.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,f.width,f.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return t().then((function(t){return t.fromString(c,n,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){l.addImage(f.toDataURL("image/jpeg",1),i,r,e,s,a,u)}))}}(),It.API.putTotalPages=function(t){var n,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),i=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var e=0;e<this.internal.pages[r].length;e++)this.internal.pages[r][e]=this.internal.pages[r][e].replace(n,i);return this},It.API.viewerPreferences=function(n,i){var r;n=n||{},i=i||!1;var e,s,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(a),f=[],c=0,h=0,l=0;function d(t,n){var i,r=!1;for(i=0;i<t.length;i+=1)t[i]===n&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===n||!0===i){var v=u.length;for(l=0;l<v;l+=1)r[u[l]].value=r[u[l]].defaultValue,r[u[l]].explicitSet=!1}if("object"===t(n))for(s in n)if(o=n[s],d(u,s)&&void 0!==o){if("boolean"===r[s].type&&"boolean"==typeof o)r[s].value=o;else if("name"===r[s].type&&d(r[s].valueSet,o))r[s].value=o;else if("integer"===r[s].type&&Number.isInteger(o))r[s].value=o;else if("array"===r[s].type){for(c=0;c<o.length;c+=1)if(e=!0,1===o[c].length&&"number"==typeof o[c][0])f.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(e=!1);!0===e&&f.push([o[c][0]-1,o[c][1]-1].join(" "))}r[s].value="["+f.join(" ")+"]"}else r[s].value=r[s].defaultValue;r[s].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,n=[];for(t in r)!0===r[t].explicitSet&&n.push("name"===r[t].type?"/"+t+" /"+r[t].value:"/"+t+" "+r[t].value);0!==n.length&&this.internal.write("/ViewerPreferences\n<<\n"+n.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this
312
+ function(){function t(){return(tt.canvg?Promise.resolve(tt.canvg):import("./p-6d1ee086.js")).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}It.API.addSvgAsImage=function(n,i,r,e,s,o,a,u){if(isNaN(i)||isNaN(r))throw it.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(e)||isNaN(s))throw it.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=e,f.height=s;var c=f.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,f.width,f.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return t().then((function(t){return t.fromString(c,n,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){l.addImage(f.toDataURL("image/jpeg",1),i,r,e,s,a,u)}))}}(),It.API.putTotalPages=function(t){var n,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),i=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var e=0;e<this.internal.pages[r].length;e++)this.internal.pages[r][e]=this.internal.pages[r][e].replace(n,i);return this},It.API.viewerPreferences=function(n,i){var r;n=n||{},i=i||!1;var e,s,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(a),f=[],c=0,h=0,l=0;function d(t,n){var i,r=!1;for(i=0;i<t.length;i+=1)t[i]===n&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===n||!0===i){var v=u.length;for(l=0;l<v;l+=1)r[u[l]].value=r[u[l]].defaultValue,r[u[l]].explicitSet=!1}if("object"===t(n))for(s in n)if(o=n[s],d(u,s)&&void 0!==o){if("boolean"===r[s].type&&"boolean"==typeof o)r[s].value=o;else if("name"===r[s].type&&d(r[s].valueSet,o))r[s].value=o;else if("integer"===r[s].type&&Number.isInteger(o))r[s].value=o;else if("array"===r[s].type){for(c=0;c<o.length;c+=1)if(e=!0,1===o[c].length&&"number"==typeof o[c][0])f.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(e=!1);!0===e&&f.push([o[c][0]-1,o[c][1]-1].join(" "))}r[s].value="["+f.join(" ")+"]"}else r[s].value=r[s].defaultValue;r[s].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,n=[];for(t in r)!0===r[t].explicitSet&&n.push("name"===r[t].type?"/"+t+" /"+r[t].value:"/"+t+" "+r[t].value);0!==n.length&&this.internal.write("/ViewerPreferences\n<<\n"+n.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this
313
313
  /** ====================================================================
314
314
  * @license
315
315
  * jsPDF XMP metadata plugin
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,g as i,h as s,H as a}from"./p-934e8935.js";import{g as o}from"./p-57be3b9d.js";import"./p-d4056c1c.js";const c=class{constructor(i){t(this,i),this.editsComplete=e(this,"editsComplete",7),this.deleteDialogClose=e(this,"deleteDialogClose",7),this.ids=[],this.layer=void 0,this.locale=void 0,this.open=!1,this._isDeleting=!1,this._translations=void 0}get el(){return i(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}editsComplete;deleteDialogClose;async componentWillLoad(){await this._getTranslations()}render(){const t=1===this.ids.length?this._translations?.confirmSingle:this._translations?.confirmMultiple;return s(a,{key:"c75cf86cce1b728837422e4102fd9cdffc33c78a"},s("calcite-dialog",{key:"026e1b0a55ebd740f2352da820d5b15afa050f78",heading:this._translations?.deleteFeature,kind:"danger",modal:!0,onCalciteDialogClose:()=>this._close(),open:this.open,widthScale:"s"},s("div",{key:"3f8e4aef2995387b758f1af8e1443253207998bc"},t),s("calcite-button",{key:"3005fafc853db910adc787290a328dcc161401bb",appearance:"outline",kind:"danger",onClick:()=>this._close(),slot:"footer-end",width:"full"},this._translations?.cancel),s("calcite-button",{key:"42e9da99a45f416fa9b9b5cfefdb10b045593ecb",kind:"danger",loading:this._isDeleting,onClick:()=>{this._deleteFeatures()},slot:"footer-end",width:"full"},this._translations?.delete)))}async _deleteFeatures(){this._isDeleting=!0;const t=this.ids.map((t=>({objectId:t})));await this.layer.applyEdits({deleteFeatures:t}),this._isDeleting=!1,this._close(),this.editsComplete.emit("delete")}_close(){this.open=!1,this.deleteDialogClose.emit()}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};c.style=":host{display:block}.delete-modal{position:fixed}";export{c as delete_dialog}
6
+ import{r as t,c as e,g as i,h as s,H as a}from"./p-934e8935.js";import{g as o}from"./p-8a74a780.js";import"./p-d4056c1c.js";const c=class{constructor(i){t(this,i),this.editsComplete=e(this,"editsComplete",7),this.deleteDialogClose=e(this,"deleteDialogClose",7),this.ids=[],this.layer=void 0,this.locale=void 0,this.open=!1,this._isDeleting=!1,this._translations=void 0}get el(){return i(this)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}editsComplete;deleteDialogClose;async componentWillLoad(){await this._getTranslations()}render(){const t=1===this.ids.length?this._translations?.confirmSingle:this._translations?.confirmMultiple;return s(a,{key:"c75cf86cce1b728837422e4102fd9cdffc33c78a"},s("calcite-dialog",{key:"026e1b0a55ebd740f2352da820d5b15afa050f78",heading:this._translations?.deleteFeature,kind:"danger",modal:!0,onCalciteDialogClose:()=>this._close(),open:this.open,widthScale:"s"},s("div",{key:"3f8e4aef2995387b758f1af8e1443253207998bc"},t),s("calcite-button",{key:"3005fafc853db910adc787290a328dcc161401bb",appearance:"outline",kind:"danger",onClick:()=>this._close(),slot:"footer-end",width:"full"},this._translations?.cancel),s("calcite-button",{key:"42e9da99a45f416fa9b9b5cfefdb10b045593ecb",kind:"danger",loading:this._isDeleting,onClick:()=>{this._deleteFeatures()},slot:"footer-end",width:"full"},this._translations?.delete)))}async _deleteFeatures(){this._isDeleting=!0;const t=this.ids.map((t=>({objectId:t})));await this.layer.applyEdits({deleteFeatures:t}),this._isDeleting=!1,this._close(),this.editsComplete.emit("delete")}_close(){this.open=!1,this.deleteDialogClose.emit()}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};c.style=":host{display:block}.delete-modal{position:fixed}";export{c as delete_dialog}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,g as i,h as s,H as e,c as a}from"./p-934e8935.js";import{l as h,g as n}from"./p-8a74a780.js";import"./p-d4056c1c.js";const o=class{constructor(i){t(this,i),this.mapView=void 0,this.basemapConfig=void 0,this.basemapWidget=void 0}get el(){return i(this)}BasemapGallery;PortalBasemapsSource;_basemapElement;async basemapConfigWatchHandler(){if(this.basemapWidget?.source){const t=this.basemapWidget?.source;t.query=this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,await t.refresh()}}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initBaseMapGallery(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"cc7e423a47742c0f5c3a5023b77157af09e56433"},s("div",{key:"9b41466e49c93e533f1d2a621707c5189c5092b3",ref:t=>{this._basemapElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t,i]=await h(["esri/widgets/BasemapGallery","esri/widgets/BasemapGallery/support/PortalBasemapsSource"]);this.BasemapGallery=t,this.PortalBasemapsSource=i}async _initBaseMapGallery(t){if(this.BasemapGallery){const i=new this.PortalBasemapsSource({query:this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:this.basemapConfig?t=>!this.basemapConfig.basemapIdsToFilter.includes(t.portalItem.id):()=>!0});await i.refresh(),this.basemapWidget?(this.basemapWidget.view=t,this.basemapWidget.source=i):this.basemapWidget=new this.BasemapGallery({container:this._basemapElement,view:t,source:i})}}static get watchers(){return{basemapConfig:["basemapConfigWatchHandler"],mapView:["mapViewWatchHandler"]}}};o.style=":host{display:block}";const r=class{constructor(i){t(this,i),this.facilityChanged=a(this,"facilityChanged",7),this.levelChanged=a(this,"levelChanged",7),this.siteChanged=a(this,"siteChanged",7),this.enabled=void 0,this.floorFilterWidget=void 0,this.mapView=void 0}get el(){return i(this)}FloorFilter;_floorFilterElement;reactiveUtils;_facilityHandle;_levelHandle;_siteHandle;async mapViewWatchHandler(){await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}facilityChanged;levelChanged;siteChanged;async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"dd7fa68ddc1e417cb8924549e50e81742f9e891a"},s("div",{key:"294837a32ed7e8f955bce7dc2403895c7dd9984f",ref:t=>{this._floorFilterElement=t}}))}async componentDidLoad(){this.mapView&&!this.floorFilterWidget&&await this._initFloorFilter(this.mapView)}async _initModules(){const[t,i]=await h(["esri/widgets/FloorFilter","esri/core/reactiveUtils"]);this.FloorFilter=t,this.reactiveUtils=i}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement&&this._floorFilterElement.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement=document.createElement("div")}async _initFloorFilter(t){const i=t?.map;await i.when((()=>{t&&this.enabled&&this.FloorFilter&&i?.floorInfo&&(this._initContainer(),this.floorFilterWidget=new this.FloorFilter({container:this._floorFilterElement,view:t}),this._facilityHandle?.remove(),this._facilityHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.facility),(t=>{this.facilityChanged.emit(t)})),this._levelHandle?.remove(),this._levelHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.level),(t=>{this.levelChanged.emit(t)})),this._siteHandle?.remove(),this._siteHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.site),(t=>{this.siteChanged.emit(t)})))}))}static get watchers(){return{mapView:["mapViewWatchHandler"],enabled:["enabledWatchHandler"]}}};r.style=":host{display:block}";const c=class{constructor(i){t(this,i),this.fullscreenStateChange=a(this,"fullscreenStateChange",7),this.mapView=void 0,this.fullscreenWidget=void 0}Fullscreen;_fullscreenElement;_fullscreenStateChangeHandle;reactiveUtils;async mapViewWatchHandler(){await this.mapView.when((async()=>{await this._initFullscreenWidget()}))}fullscreenStateChange;async componentWillLoad(){await this._initModules()}render(){return s(e,{key:"7eec3dc5ab76a4ad8fdd24d8d18f8e6cf2820dde"},s("div",{key:"2093cc2a6a3678209e61eea63ebde2f69ec00011",class:"fullscreen-widget",ref:t=>{this._fullscreenElement=t}}))}async componentDidUpdate(){await this._initFullscreenWidget()}async componentDidLoad(){await this._initFullscreenWidget()}async _initModules(){const[t,i]=await h(["esri/widgets/Fullscreen","esri/core/reactiveUtils"]);this.Fullscreen=t,this.reactiveUtils=i}async _initFullscreenWidget(){this.mapView&&this._fullscreenElement&&!this.fullscreenWidget?(this.fullscreenWidget=new this.Fullscreen({view:this.mapView}),await this.fullscreenWidget.when((()=>{this._fullscreenStateChangeHandle&&this._fullscreenStateChangeHandle.remove(),this._fullscreenStateChangeHandle=this.reactiveUtils.watch((()=>this.fullscreenWidget.viewModel.state),(t=>this.fullscreenStateChange.emit(t)))}))):this.fullscreenWidget&&(this.fullscreenWidget.view=this.mapView)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};c.style=":host{display:block}";const l=class{constructor(i){t(this,i),this.mapView=void 0,this.legendWidget=void 0}get el(){return i(this)}Legend;_legendElement;async mapViewWatchHandler(){await this.mapView.when((()=>{this._initLegend(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return s(e,{key:"768d9d69042516c6d4edc55fcb0af23f90d33e6e"},s("div",{key:"e1147cf58240e7a6fcb9a00fce3649a380755e3d",ref:t=>{this._legendElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t]=await h(["esri/widgets/Legend"]);this.Legend=t}_initLegend(t){t&&this.Legend&&(this.legendWidget?this.legendWidget.view=t:this.legendWidget=new this.Legend({container:this._legendElement,respectLayerDefinitionExpression:!0,view:t}))}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};l.style=":host{display:block}";const d=class{constructor(i){t(this,i),this.beforeMapInfoChange=a(this,"beforeMapInfoChange",7),this.mapInfoChange=a(this,"mapInfoChange",7),this.locale=void 0,this.mapInfos=[],this.isMapLayout=void 0,this._mapListExpanded=!1,this._translations=void 0,this._webMapInfo=void 0}get el(){return i(this)}_list;_loadedId="";_skipEditCheck=!1;_webMapInfoWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&(this._loadedId=t?.id,this.mapInfoChange.emit(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapInfosWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._webMapSelected(t[0])}async setMapByID(t,i=!1){this._skipEditCheck=i;const s=this.mapInfos?.filter((i=>i.id===t));t&&s?.length>0&&this._webMapSelected(s[0]),this._skipEditCheck=!1}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(t){this._mapListExpanded=t}beforeMapInfoChange;mapInfoChange;async componentWillLoad(){await this._getTranslations()}render(){return s(e,{key:"6b4b2bc101fa29a1eaadfdcc772131b7c40cedec"},this._getToolbar(),this._getMapNameList(this._mapListExpanded))}async componentDidLoad(){const t=this.mapInfos&&this.mapInfos.length>0?this.mapInfos[0]:void 0;t&&this._webMapSelected(t)}_getMapPicker(){const t="map-picker-expand-toggle";return s("div",{class:"width-full"},s("calcite-button",{alignment:"icon-end-space-between",appearance:"transparent",class:"width-full height-full",iconEnd:this._mapListExpanded?"chevron-up":"chevron-down",iconStart:"map",id:t,kind:"neutral",onClick:()=>this._chooseMap(),width:"full"},this._webMapInfo?.name),s("calcite-tooltip",{placement:"bottom","reference-element":t},s("span",null,this._translations.switchMap)))}_getToolbar(){return s("div",{class:"display-flex border-right"},s("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker()))}_getMapNameList(t){return s("div",{class:t?"map-list border-bottom-1 adjusted-height "+(this.isMapLayout?"width-26":"width-full"):"display-none"},s("calcite-list",{id:"mapList",label:"",ref:t=>this._list=t,selectionAppearance:"border",selectionMode:"single"},this.mapInfos.map((t=>s("calcite-list-item",{label:t.name,onClick:()=>this._webMapSelected(t),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){const i=this._loadedId;this._loadedId=t.id,this._skipEditCheck?this._webMapInfo=t:this.beforeMapInfoChange.emit({currentId:i,mapInfo:t,ref:this.el}).defaultPrevented||(this._webMapInfo=t),this._mapListExpanded=!1}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{_webMapInfo:["_webMapInfoWatchHandler"],locale:["localeWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};d.style=":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-26{width:26% !important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.border-right{border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 52px);overflow-y:auto}";const p=class{constructor(i){t(this,i),this.mapView=void 0,this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchConfiguration=void 0,this.searchTerm=void 0,this.searchWidget=void 0}FeatureLayer;Search;_searchElement;_searchResult;async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initSearchWidget()}))}async componentWillLoad(){await this._initModules()}async componentDidLoad(){return this._initSearchWidget()}render(){return s(e,{key:"36e0fb49fdedbe9e8789fba37f86a2f2d57b4e45"},s("div",{key:"796ee258723e9277dc98323ba76def22bd7dca3a",class:"search-widget",ref:t=>{this._searchElement=t}}))}async _initModules(){const[t,i]=await h(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=t,this.FeatureLayer=i}_initSearchWidget(){if(this.mapView&&this._searchElement&&!this.searchWidget){let t={view:this.mapView,container:this._searchElement,searchTerm:this.searchTerm};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this.mapView)}),this.searchWidget=new this.Search(t),this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(t,i){const s=t.sources;return s?.length>0?(t.includeDefaultSources=!1,s.forEach((t=>{if(t.hasOwnProperty("layer")){const s=t,e=s.layer?.id,a=e?i.map.findLayerById(e):null,h=s?.layer?.url;a?s.layer=a:h&&(s.layer=new this.FeatureLayer(h))}})),s?.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===i?.name&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t={...t,includeDefaultSources:!0},t}static get watchers(){return{searchConfiguration:["watchSearchConfigurationHandler"],mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";const m=class{constructor(i){t(this,i),this.basemapConfig=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSearch=void 0,this.enableBasemap=void 0,this.enableHome=void 0,this.enableSingleExpand=void 0,this.homeZoomToolsSize="m",this.layout="vertical",this.locale=void 0,this.mapView=void 0,this.mapWidgetsSize="m",this.position="top-right",this.searchConfiguration=void 0,this.stackTools=!0,this.toolOrder=void 0,this._hasFloorInfo=!1,this._translations=void 0,this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1}get el(){return i(this)}Expand;_basemapElement;_floorFilterElement;_fullscreenElement;_legendElement;_searchElement;_widgets=[];async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._hasFloorInfo=this.mapView?.map?.floorInfo}))}async _showBasemapWidgetWatchHandler(t){t?this.mapView.ui.add(this._basemapElement.basemapWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._basemapElement.basemapWidget)}async _showFloorFilterWatchHandler(t){const i=this._floorFilterElement.floorFilterWidget;t?this.mapView.ui.add(i,{position:this.position,index:1}):this.mapView.ui.remove(i)}async _showFullscreenWatchHandler(t){const i=this._fullscreenElement.fullscreenWidget;t?"ready"===i.viewModel.state&&i.viewModel.enter():"active"===i.viewModel.state&&i.viewModel.exit()}async _showLegendWidgetWatchHandler(t){t?this.mapView.ui.add(this._legendElement.legendWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._legendElement.legendWidget)}async _showSearchWidgetWatchHandler(t){t?this.mapView.ui.add(this._searchElement.searchWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._searchElement.searchWidget)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){this._setZoomToolsSize();const t=this._showTools?"":"display-none",i=this._showSearchWidget?"":"display-none",a=this._showBasemapWidget?"":"display-none",h=this._showLegendWidget?"":"display-none",n=this._showFloorFilter?"":"display-none",o=this._showFullscreen?"":"display-none",r=this.enableSingleExpand?"margin-top-1-2":"",c=this.toolOrder?this.toolOrder:["legend","search","fullscreen","floorfilter"],l=this.stackTools?"box-shadow":"";return s(e,{key:"6a707a10b3cbe094548a863b13d0852969c46f94"},s("div",{key:"c1e349ba8577a87f967b31a7a042be30cb933d34",class:this.enableBasemap||this.enableFullscreen||this.enableLegend||this.enableSearch?"":"display-none"},this.enableSingleExpand?s("div",{class:"box-shadow"},this._getActionGroup(this._showTools?"chevrons-up":"chevrons-down",!1,this._showTools?this._translations.collapse:this._translations.expand,(()=>this._toggleTools()))):void 0,s("div",{key:"7120793f9d707fb0d1914f5aeffb3293532ab891",class:`${r} ${l} ${t}`},this._getMapWidgets(c))),s("basemap-gallery",{key:"11e280302f6b1f5287aa83c7eb33542f3a9d87ab",basemapConfig:this.basemapConfig,class:a,mapView:this.mapView,ref:t=>{this._basemapElement=t}}),s("map-search",{key:"c3afd22dc8d652877f48a6def87e486546993d61",class:i,mapView:this.mapView,ref:t=>{this._searchElement=t},resultGraphicEnabled:!0,searchConfiguration:this.searchConfiguration}),s("map-legend",{key:"b8fad3cdbc3b96b4f3441316651ad78b4ed3de65",class:h,mapView:this.mapView,ref:t=>{this._legendElement=t}}),s("map-fullscreen",{key:"e34111225f1ec80fedfd548196e407786d28200b",class:o,mapView:this.mapView,onFullscreenStateChange:t=>this._fullscreenStateChange(t.detail),ref:t=>{this._fullscreenElement=t}}),s("floor-filter",{key:"2db5c7e6182d77786b162692169263495b2752f5",class:n,enabled:this.enableFloorFilter,mapView:this.mapView,ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t]=await h(["esri/widgets/Expand"]);this.Expand=t}_setZoomToolsSize(){const t=document.getElementsByClassName("esri-zoom")[0]?.children[0],i=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(t&&i){const s="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";t.style.width=s,t.style.height=s,i.style.width=s,i.style.height=s}}_getMapWidgets(t){const i=this._showFullscreen?"full-screen-exit":"full-screen",s=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return t.map((t=>{switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,(()=>this._showLegend())):this.enableLegend?this._getWidget(t,this._legendElement?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,(()=>this._search())):this.enableSearch?this._getWidget(t,this._searchElement?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(i,!1,s,(()=>this._expand())):this.enableFullscreen?this._getWidget(t,this._fullscreenElement?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,(()=>this._toggleBasemapPicker())):this.enableBasemap?this._getWidget(t,this._basemapElement?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,(()=>this._toggleFloorFilter())):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,this._floorFilterElement?.floorFilterWidget,!0):void 0}}))}_fullscreenStateChange(t){"ready"===t&&this._showFullscreen?this._showFullscreen=!1:"active"!==t||this._showFullscreen||(this._showFullscreen=!0)}_getActionGroup(t,i,e,a){return s("div",null,s("calcite-action",{alignment:"center",class:`${"s"===this.mapWidgetsSize?"square-32":"m"===this.mapWidgetsSize?"square-40":"square-48"} ${this.stackTools?"":"margin-bottom-1-2"} border-bottom ${this.stackTools?"":"box-shadow"}`,disabled:i,icon:t,id:t,onClick:a,scale:"s",text:""},s("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),s("calcite-tooltip",{label:"",placement:"trailing","reference-element":t},s("span",null,e)))}_getWidget(t,i,s){if(this._widgets.indexOf(t)<0&&this.mapView&&i){const e=this.toolOrder.indexOf(t),a=new this.Expand({view:this.mapView,content:i});this.mapView.ui.add(s?a:i,{position:this.position,index:e>-1?e+(this.enableHome?2:1):1}),this._widgets.push(t)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_showBasemapWidget:["_showBasemapWidgetWatchHandler"],_showFloorFilter:["_showFloorFilterWatchHandler"],_showFullscreen:["_showFullscreenWatchHandler"],_showLegendWidget:["_showLegendWidgetWatchHandler"],_showSearchWidget:["_showSearchWidgetWatchHandler"]}}};m.style=":host{display:block}.display-none{display:none}.margin-top-1-2{margin-top:0.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.margin-bottom-1-2{margin-bottom:0.5rem}";export{o as basemap_gallery,r as floor_filter,c as map_fullscreen,l as map_legend,d as map_picker,p as map_search,m as map_tools}
@@ -0,0 +1,21 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{_ as t}from"./p-4379cc5f.js";import{l as s}from"./p-8a74a780.js";
7
+ /** @license
8
+ * Copyright 2022 Esri
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */class i{arcade;intl;async getPopupTitle(s,i){this.arcade||await this._initModules();let a={};for(const[t,i]of Object.entries(s.attributes))a={...a,[`{${t.toUpperCase()}}`]:i};const e=s.layer,o=this._removeTags(e?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=e?.popupTemplate?.expressionInfos)for(let t=0;t<e.popupTemplate?.expressionInfos.length;t++){const o=e.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:e,$map:i});null==r&&""===r||(a[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return e.popupTemplate?.fieldInfos&&e.fields.forEach((i=>{const o=s.attributes[i.name],n=e.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===i.name.toLowerCase())),r=t(o,i.type,i.domain,n?.format,this.intl);a[`{${i.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=a[t.toUpperCase()]?a[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}