@esri/solutions-components 0.10.34 → 0.10.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +7 -5
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +18 -16
  6. package/dist/cjs/{calcite-modal_3.cjs.entry.js → calcite-modal.cjs.entry.js} +27 -368
  7. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +7 -7
  8. package/dist/cjs/calcite-shell_3.cjs.entry.js +440 -0
  9. package/dist/cjs/card-manager_3.cjs.entry.js +20 -9
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -21
  12. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  13. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  14. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  15. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  16. package/dist/cjs/layout-manager.cjs.entry.js +1 -1
  17. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  20. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  21. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  22. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  23. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  24. package/dist/cjs/share-item.cjs.entry.js +1 -1
  25. package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
  26. package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
  27. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  28. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/solutions-components.cjs.js +1 -1
  30. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  31. package/dist/collection/assets/t9n/delete-dialog/resources.json +8 -0
  32. package/dist/collection/assets/t9n/delete-dialog/resources_ar.json +8 -0
  33. package/dist/collection/assets/t9n/delete-dialog/resources_bg.json +8 -0
  34. package/dist/collection/assets/t9n/delete-dialog/resources_bs.json +8 -0
  35. package/dist/collection/assets/t9n/delete-dialog/resources_ca.json +8 -0
  36. package/dist/collection/assets/t9n/delete-dialog/resources_cs.json +8 -0
  37. package/dist/collection/assets/t9n/delete-dialog/resources_da.json +8 -0
  38. package/dist/collection/assets/t9n/delete-dialog/resources_de.json +8 -0
  39. package/dist/collection/assets/t9n/delete-dialog/resources_el.json +8 -0
  40. package/dist/collection/assets/t9n/delete-dialog/resources_en.json +8 -0
  41. package/dist/collection/assets/t9n/delete-dialog/resources_es.json +8 -0
  42. package/dist/collection/assets/t9n/delete-dialog/resources_et.json +8 -0
  43. package/dist/collection/assets/t9n/delete-dialog/resources_fi.json +8 -0
  44. package/dist/collection/assets/t9n/delete-dialog/resources_fr.json +8 -0
  45. package/dist/collection/assets/t9n/delete-dialog/resources_he.json +8 -0
  46. package/dist/collection/assets/t9n/delete-dialog/resources_hr.json +8 -0
  47. package/dist/collection/assets/t9n/delete-dialog/resources_hu.json +8 -0
  48. package/dist/collection/assets/t9n/delete-dialog/resources_id.json +8 -0
  49. package/dist/collection/assets/t9n/delete-dialog/resources_it.json +8 -0
  50. package/dist/collection/assets/t9n/delete-dialog/resources_ja.json +8 -0
  51. package/dist/collection/assets/t9n/delete-dialog/resources_ko.json +8 -0
  52. package/dist/collection/assets/t9n/delete-dialog/resources_lt.json +8 -0
  53. package/dist/collection/assets/t9n/delete-dialog/resources_lv.json +8 -0
  54. package/dist/collection/assets/t9n/delete-dialog/resources_nb.json +8 -0
  55. package/dist/collection/assets/t9n/delete-dialog/resources_nl.json +8 -0
  56. package/dist/collection/assets/t9n/delete-dialog/resources_pl.json +8 -0
  57. package/dist/collection/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  58. package/dist/collection/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  59. package/dist/collection/assets/t9n/delete-dialog/resources_ro.json +8 -0
  60. package/dist/collection/assets/t9n/delete-dialog/resources_ru.json +8 -0
  61. package/dist/collection/assets/t9n/delete-dialog/resources_sk.json +8 -0
  62. package/dist/collection/assets/t9n/delete-dialog/resources_sl.json +8 -0
  63. package/dist/collection/assets/t9n/delete-dialog/resources_sr.json +8 -0
  64. package/dist/collection/assets/t9n/delete-dialog/resources_sv.json +8 -0
  65. package/dist/collection/assets/t9n/delete-dialog/resources_th.json +8 -0
  66. package/dist/collection/assets/t9n/delete-dialog/resources_tr.json +8 -0
  67. package/dist/collection/assets/t9n/delete-dialog/resources_uk.json +8 -0
  68. package/dist/collection/assets/t9n/delete-dialog/resources_vi.json +8 -0
  69. package/dist/collection/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  70. package/dist/collection/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  71. package/dist/collection/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  72. package/dist/collection/collection-manifest.json +1 -0
  73. package/dist/collection/components/create-feature/create-feature.css +2 -1
  74. package/dist/collection/components/create-feature/create-feature.js +3 -1
  75. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  76. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -1
  77. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +24 -21
  78. package/dist/collection/components/delete-button/delete-button.js +20 -27
  79. package/dist/collection/components/delete-dialog/delete-dialog.css +23 -0
  80. package/dist/collection/components/delete-dialog/delete-dialog.js +239 -0
  81. package/dist/collection/components/edit-card/edit-card.js +1 -1
  82. package/dist/collection/components/feature-comments/feature-comments.js +1 -1
  83. package/dist/collection/components/feature-details/feature-details.js +13 -11
  84. package/dist/collection/components/feature-form-flow-item/feature-form-flow-item.js +1 -1
  85. package/dist/collection/components/feature-list/feature-list.js +4 -4
  86. package/dist/collection/components/features-flow-item/features-flow-item.js +1 -1
  87. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  88. package/dist/collection/components/info-card/info-card.js +2 -2
  89. package/dist/collection/components/json-editor/json-editor.js +1 -1
  90. package/dist/collection/components/layer-list/layer-list.js +5 -5
  91. package/dist/collection/components/layer-table/layer-table.css +6 -0
  92. package/dist/collection/components/layer-table/layer-table.js +19 -7
  93. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  94. package/dist/collection/components/list-flow-item/list-flow-item.js +1 -1
  95. package/dist/collection/components/location-flow-item/location-flow-item.js +1 -1
  96. package/dist/collection/components/map-card/map-card.js +1 -1
  97. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  98. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  99. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  100. package/dist/collection/components/map-legend/map-legend.js +1 -1
  101. package/dist/collection/components/map-picker/map-picker.js +1 -1
  102. package/dist/collection/components/map-search/map-search.js +1 -1
  103. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  104. package/dist/collection/components/map-tools/map-tools.js +1 -1
  105. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  106. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  107. package/dist/collection/components/public-notification/public-notification.js +1 -1
  108. package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
  109. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  110. package/dist/collection/components/share-item/share-item.js +1 -1
  111. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  112. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  113. package/dist/collection/components/solution-item/solution-item.js +1 -1
  114. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +1 -1
  115. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  116. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  117. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  118. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  119. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  120. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  121. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  122. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  123. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  124. package/dist/components/card-manager2.js +40 -34
  125. package/dist/components/create-feature2.js +4 -2
  126. package/dist/components/crowdsource-manager.js +101 -94
  127. package/dist/components/crowdsource-reporter.js +110 -101
  128. package/dist/components/delete-button2.js +24 -41
  129. package/dist/components/delete-dialog.d.ts +11 -0
  130. package/dist/components/delete-dialog.js +11 -0
  131. package/dist/components/delete-dialog2.js +165 -0
  132. package/dist/components/edit-card2.js +1 -1
  133. package/dist/components/feature-comments.js +1 -1
  134. package/dist/components/feature-details2.js +67 -59
  135. package/dist/components/feature-form-flow-item.js +1 -1
  136. package/dist/components/feature-list2.js +4 -4
  137. package/dist/components/features-flow-item.js +1 -1
  138. package/dist/components/floor-filter2.js +1 -1
  139. package/dist/components/info-card2.js +38 -32
  140. package/dist/components/json-editor2.js +1 -1
  141. package/dist/components/layer-list2.js +5 -5
  142. package/dist/components/layer-table2.js +100 -82
  143. package/dist/components/layout-manager.js +1 -1
  144. package/dist/components/list-flow-item.js +1 -1
  145. package/dist/components/location-flow-item.js +1 -1
  146. package/dist/components/map-card2.js +1 -1
  147. package/dist/components/map-draw-tools2.js +1 -1
  148. package/dist/components/map-fullscreen2.js +1 -1
  149. package/dist/components/map-layer-picker2.js +1 -1
  150. package/dist/components/map-legend2.js +1 -1
  151. package/dist/components/map-picker2.js +1 -1
  152. package/dist/components/map-search2.js +1 -1
  153. package/dist/components/map-select-tools2.js +1 -1
  154. package/dist/components/map-tools2.js +1 -1
  155. package/dist/components/pci-calculator.js +1 -1
  156. package/dist/components/pdf-download2.js +1 -1
  157. package/dist/components/public-notification.js +1 -1
  158. package/dist/components/refine-results-flow-item.js +1 -1
  159. package/dist/components/refine-selection2.js +1 -1
  160. package/dist/components/share-item.js +1 -1
  161. package/dist/components/solution-configuration.js +3 -3
  162. package/dist/components/solution-contents2.js +1 -1
  163. package/dist/components/solution-item-accordion.js +1 -1
  164. package/dist/components/solution-item-details2.js +1 -1
  165. package/dist/components/solution-item-icon2.js +1 -1
  166. package/dist/components/solution-item-sharing2.js +1 -1
  167. package/dist/components/solution-item2.js +1 -1
  168. package/dist/components/solution-organization-variables2.js +1 -1
  169. package/dist/components/solution-resource-item2.js +1 -1
  170. package/dist/components/solution-spatial-ref2.js +1 -1
  171. package/dist/components/solution-template-data2.js +1 -1
  172. package/dist/components/solution-variables2.js +1 -1
  173. package/dist/components/spatial-ref.js +1 -1
  174. package/dist/esm/basemap-gallery_7.entry.js +6 -6
  175. package/dist/esm/buffer-tools_3.entry.js +1 -1
  176. package/dist/esm/calcite-alert_5.entry.js +7 -5
  177. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  178. package/dist/esm/calcite-flow_4.entry.js +18 -16
  179. package/dist/esm/{calcite-modal_3.entry.js → calcite-modal.entry.js} +30 -369
  180. package/dist/esm/calcite-shell-panel_14.entry.js +7 -7
  181. package/dist/esm/calcite-shell_3.entry.js +434 -0
  182. package/dist/esm/card-manager_3.entry.js +20 -9
  183. package/dist/esm/crowdsource-manager.entry.js +3 -2
  184. package/dist/esm/crowdsource-reporter.entry.js +24 -21
  185. package/dist/esm/feature-comments.entry.js +1 -1
  186. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  187. package/dist/esm/feature-list.entry.js +4 -4
  188. package/dist/esm/features-flow-item.entry.js +1 -1
  189. package/dist/esm/layout-manager.entry.js +1 -1
  190. package/dist/esm/list-flow-item.entry.js +1 -1
  191. package/dist/esm/loader.js +1 -1
  192. package/dist/esm/location-flow-item.entry.js +1 -1
  193. package/dist/esm/map-select-tools_3.entry.js +3 -3
  194. package/dist/esm/pci-calculator.entry.js +1 -1
  195. package/dist/esm/public-notification.entry.js +1 -1
  196. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  197. package/dist/esm/share-item.entry.js +1 -1
  198. package/dist/esm/solution-configuration.entry.js +3 -3
  199. package/dist/esm/solution-contents_3.entry.js +3 -3
  200. package/dist/esm/solution-item-accordion.entry.js +1 -1
  201. package/dist/esm/solution-item-icon.entry.js +1 -1
  202. package/dist/esm/solutions-components.js +1 -1
  203. package/dist/esm/spatial-ref.entry.js +1 -1
  204. package/dist/solutions-components/assets/t9n/delete-dialog/resources.json +8 -0
  205. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ar.json +8 -0
  206. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bg.json +8 -0
  207. package/dist/solutions-components/assets/t9n/delete-dialog/resources_bs.json +8 -0
  208. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ca.json +8 -0
  209. package/dist/solutions-components/assets/t9n/delete-dialog/resources_cs.json +8 -0
  210. package/dist/solutions-components/assets/t9n/delete-dialog/resources_da.json +8 -0
  211. package/dist/solutions-components/assets/t9n/delete-dialog/resources_de.json +8 -0
  212. package/dist/solutions-components/assets/t9n/delete-dialog/resources_el.json +8 -0
  213. package/dist/solutions-components/assets/t9n/delete-dialog/resources_en.json +8 -0
  214. package/dist/solutions-components/assets/t9n/delete-dialog/resources_es.json +8 -0
  215. package/dist/solutions-components/assets/t9n/delete-dialog/resources_et.json +8 -0
  216. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fi.json +8 -0
  217. package/dist/solutions-components/assets/t9n/delete-dialog/resources_fr.json +8 -0
  218. package/dist/solutions-components/assets/t9n/delete-dialog/resources_he.json +8 -0
  219. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hr.json +8 -0
  220. package/dist/solutions-components/assets/t9n/delete-dialog/resources_hu.json +8 -0
  221. package/dist/solutions-components/assets/t9n/delete-dialog/resources_id.json +8 -0
  222. package/dist/solutions-components/assets/t9n/delete-dialog/resources_it.json +8 -0
  223. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ja.json +8 -0
  224. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ko.json +8 -0
  225. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lt.json +8 -0
  226. package/dist/solutions-components/assets/t9n/delete-dialog/resources_lv.json +8 -0
  227. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nb.json +8 -0
  228. package/dist/solutions-components/assets/t9n/delete-dialog/resources_nl.json +8 -0
  229. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pl.json +8 -0
  230. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-BR.json +8 -0
  231. package/dist/solutions-components/assets/t9n/delete-dialog/resources_pt-PT.json +8 -0
  232. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ro.json +8 -0
  233. package/dist/solutions-components/assets/t9n/delete-dialog/resources_ru.json +8 -0
  234. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sk.json +8 -0
  235. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sl.json +8 -0
  236. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sr.json +8 -0
  237. package/dist/solutions-components/assets/t9n/delete-dialog/resources_sv.json +8 -0
  238. package/dist/solutions-components/assets/t9n/delete-dialog/resources_th.json +8 -0
  239. package/dist/solutions-components/assets/t9n/delete-dialog/resources_tr.json +8 -0
  240. package/dist/solutions-components/assets/t9n/delete-dialog/resources_uk.json +8 -0
  241. package/dist/solutions-components/assets/t9n/delete-dialog/resources_vi.json +8 -0
  242. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-CN.json +8 -0
  243. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-HK.json +8 -0
  244. package/dist/solutions-components/assets/t9n/delete-dialog/resources_zh-TW.json +8 -0
  245. package/dist/solutions-components/{p-6c3261d7.entry.js → p-06364211.entry.js} +1 -1
  246. package/dist/solutions-components/{p-d119872d.entry.js → p-18089a0b.entry.js} +1 -1
  247. package/dist/solutions-components/p-1f07e21a.entry.js +6 -0
  248. package/dist/solutions-components/p-2a6ecaa9.entry.js +11 -0
  249. package/dist/solutions-components/p-46416e11.entry.js +6 -0
  250. package/dist/solutions-components/{p-a8525233.entry.js → p-588adf13.entry.js} +1 -1
  251. package/dist/solutions-components/{p-5fc0e134.entry.js → p-59ccd27c.entry.js} +1 -1
  252. package/dist/solutions-components/p-5eb9a413.entry.js +6 -0
  253. package/dist/solutions-components/{p-42f75c8f.entry.js → p-6502d0f8.entry.js} +1 -1
  254. package/dist/solutions-components/p-70c0050c.entry.js +6 -0
  255. package/dist/solutions-components/p-74bcef23.entry.js +11 -0
  256. package/dist/solutions-components/{p-4cb12506.entry.js → p-76154700.entry.js} +1 -1
  257. package/dist/solutions-components/p-82ddf716.entry.js +6 -0
  258. package/dist/solutions-components/{p-d08ece15.entry.js → p-841816a1.entry.js} +1 -1
  259. package/dist/solutions-components/{p-4f5913f3.entry.js → p-89046451.entry.js} +1 -1
  260. package/dist/solutions-components/p-938bc915.entry.js +6 -0
  261. package/dist/solutions-components/{p-fa7672c7.entry.js → p-9d56f4b5.entry.js} +1 -1
  262. package/dist/solutions-components/p-9da8a590.entry.js +6 -0
  263. package/dist/solutions-components/{p-5fdb8f83.entry.js → p-a5d79c86.entry.js} +1 -1
  264. package/dist/solutions-components/{p-dd0bd439.entry.js → p-b4c49411.entry.js} +2 -2
  265. package/dist/solutions-components/p-b86b2664.entry.js +6 -0
  266. package/dist/solutions-components/{p-ddc1218d.entry.js → p-be4c7ffd.entry.js} +1 -1
  267. package/dist/solutions-components/{p-ffa9a117.entry.js → p-cb3199f9.entry.js} +1 -1
  268. package/dist/solutions-components/{p-a07322cc.entry.js → p-df7de4b7.entry.js} +1 -1
  269. package/dist/solutions-components/{p-1f072e2c.entry.js → p-eadff42b.entry.js} +1 -1
  270. package/dist/solutions-components/{p-8a411917.entry.js → p-ecf642c2.entry.js} +1 -1
  271. package/dist/solutions-components/{p-06db1bfd.entry.js → p-efb4cb43.entry.js} +1 -1
  272. package/dist/solutions-components/{p-e4a42efa.entry.js → p-fa1c368c.entry.js} +1 -1
  273. package/dist/solutions-components/solutions-components.esm.js +1 -1
  274. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +6 -1
  275. package/dist/types/components/delete-button/delete-button.d.ts +4 -12
  276. package/dist/types/components/delete-dialog/delete-dialog.d.ts +75 -0
  277. package/dist/types/components/layer-table/layer-table.d.ts +12 -0
  278. package/dist/types/components.d.ts +69 -0
  279. package/dist/types/preact.d.ts +5 -0
  280. package/package.json +1 -1
  281. package/dist/solutions-components/p-51e2500f.entry.js +0 -6
  282. package/dist/solutions-components/p-52280e10.entry.js +0 -17
  283. package/dist/solutions-components/p-67ca4a64.entry.js +0 -6
  284. package/dist/solutions-components/p-7e6a8c06.entry.js +0 -6
  285. package/dist/solutions-components/p-8d2d66d0.entry.js +0 -6
  286. package/dist/solutions-components/p-8e6081e0.entry.js +0 -6
  287. package/dist/solutions-components/p-b9b77b87.entry.js +0 -6
  288. package/dist/solutions-components/p-cf878a34.entry.js +0 -6
  289. package/dist/solutions-components/p-edd88d2d.entry.js +0 -6
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,g as e,h as s,H as o,F as h}from"./p-4e6eb06e.js";import{g as a}from"./p-f4aadb3b.js";import{E as l}from"./p-80cb7c73.js";import{g as n}from"./p-d572627c.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const d=class{constructor(e){t(this,e),this.showIntroductionWindow=i(this,"showIntroductionWindow",7),this.showCoverPage=i(this,"showCoverPage",7),this.appLayout=void 0,this.appProxies=void 0,this.basemapConfig=void 0,this.coverPageEnabled=void 0,this.customInfoText=void 0,this.defaultAppLayout=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableZoom=!0,this.hideMapOnLoad=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._isPortraitMobile=!1,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerIds=void 0,this._isLoading=!0}get el(){return e(this)}_defaultAppLayoutHonored=!1;_defaultCenterHonored=!1;_defaultLevelHonored=!1;_layerTable;_mapChange;_resizeObserver;_shouldSetMapView=!1;_layerExpressions;_filterList;_mapCard;_isMapViewOnLoad=!1;enableZoomWatchHandler(){this._initMapZoom()}hideMapOnLoadWatchHandler(){console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options.")}showIntroductionWindow;showCoverPage;async featureSelectionChange(t){this._numSelected=t.detail?.length}async popupClosed(){this._isPortraitMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async layerSelectionChange(t){const i=t.detail[0],e=await n(this._mapView,i);e&&await e.when((()=>{0===this._layerIds.length&&"mapView"===this.appLayout&&e.isTable&&this._changeLayout("splitView"),this._layer=e,this._initLayerExpressions(),this._isLoading=!1}))}async idsFound(t){this._layerIds=t.detail.layerIds}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return s(o,{key:"ddb8bb35d74ab89ffd62d7bd0468b5a757fa5ba1"},s("calcite-shell",{key:"74d941a3b1d4149a57c88cea263a2fd7e2b4f840",class:"position-relative"},s("calcite-panel",{key:"3ff44942eab43c6f3a1cd92c918c0e2bae3d500a",class:"width-full height-full "+(this.popupHeaderColor&&"#FFFFFF"!==this.popupHeaderColor?"border-width-0":""),loading:this._isLoading},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()),this._filterModal())}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.hideMapOnLoad&&!this.appLayout?this.appLayout="tableView":this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad="mapView"===this.appLayout,this._setActiveLayout(this.appLayout)}_getFooter(){const t=this._numSelected>0,i=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return this._isPortraitMobile&&t&&!this._hideFooter?s("div",{class:"width-100",slot:"footer"},s("div",{class:"display-flex padding-1-2"},s("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),i?s("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer}):void 0)):void 0}_setActiveLayout(t){"splitView"!==t||this._panelOpen||this._toggleLayout(),"mapView"===t?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i,e){let s="";switch(t){case l.HORIZONTAL:s=(i&&!e?"height-1-2 display-grid":i&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(i?"width-1-2":"width-0")}return s}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,i,e){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s("calcite-panel",{class:"width-full height-full position-absolute"},s("div",{class:"width-full height-full overflow-hidden "+(t===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(t,i,e),this._getTable(t,i,e)),this.coverPageEnabled&&s("div",{class:"floating-container",onClick:this.coverPageButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"content-minimal",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})),this.introductionWindowEnabled&&s("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(t,i,e){const o=this._getMapSizeClass(t,i,e);return s("div",{class:`${o} overflow-hidden ${!this._isPortraitMobile&&this._isMobile?"border-right":""}`},this._getMapNode(i),this._getPopupExpandNode())}_getMapNode(t){const i="mapView"===this.appLayout,e="tableView"===this.appLayout;return s("div",{class:(i||e?"position-absolute-0":this._layoutMode!==l.HORIZONTAL||this._isPortraitMobile&&!t?"adjusted-height-50":"")+" overflow-hidden",id:"card-mapView"},s("map-card",{appLayout:this.appLayout,appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultLayerId:this.defaultWebmap&&this.defaultLayer?this.defaultLayer:"",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableShare:this.enableShare,enableSingleExpand:!0,hidden:!this._isPortraitMobile&&e,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",isMapLayout:i,isMobile:this._isMobile,mapInfo:this._mapInfo,mapInfos:this.mapInfos?.filter((t=>!1!==t.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._mapCard=t,selectedFeaturesIds:this._layerTable?.selectedIds,selectedLayer:this._layer,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"],zoomToScale:this.zoomToScale}))}_getPopupExpandNode(){const t=this._isPortraitMobile&&this._showInformationHeader?"display-none height-0":"";return s("div",{class:`${this.popupHeaderColor?"":this._isPortraitMobile?"calcite-mode-light":"calcite-mode-dark"} ${this._isMobile?"height-full":"height-full position-relative z-index-0"} ${this._isPortraitMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isPortraitMobile?"display-none height-0":""} ${this.mapInfos?.length>1&&"tableView"===this.appLayout?"position-relative top-51":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},s("calcite-panel",null,!this._isPortraitMobile&&this._showInformationHeader||this._numSelected>0&&!this._isPortraitMobile?s("div",{class:`display-flex align-items-center ${t}`,slot:"header-content"},s("calcite-icon",{icon:"information",scale:"s"}),s("div",{class:"padding-inline-start-75"},this._translations.information)):s("div",null),this._getCardNode()))}_getCardNode(){const t="mapView"===this.appLayout,i="tableView"===this.appLayout;return s("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},s("card-manager",{class:(i&&this.mapInfos?.length>1?"adjusted-height-100-51":t||i?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isPortraitMobile?"height-full":"height-50":"adjusted-height-50_25")+" width-full",customInfoText:this.customInfoText,enableCreateFeatures:this._enableCreateFeatures&&!this._isMobile,enableEditGeometry:this?._mapInfo?.enableEditGeometry,isMobile:this._isPortraitMobile,layer:this._layer,mapView:this?._mapView,onBackFromCreateWorkFlow:()=>{this._changeLayout(this.appLayout),this._showInformationHeader=!0},onCreateWorkFlowStarted:()=>{this._changeLayout(this._layer.isTable?"tableView":"mapView"),this._showInformationHeader=!1},onFeatureOrRecordSubmitted:()=>{this._layerTable.refresh()},selectedFeaturesIds:this._layerTable?.selectedIds,selectingFeatureFromMap:"mapView"===this.appLayout,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,i,e){const o="mapView"===this.appLayout,h="tableView"===this.appLayout,a=e&&this._isPortraitMobile?"visibility-hidden":o?"display-none":"",n=o?"height-full width-full z-index-0":"display-none",d=this._getTableSizeClass(t,i),r=t===l.HORIZONTAL?"horizontal":"vertical",c=t===l.HORIZONTAL?"header":"panel-start",p=this.defaultWebmap&&this.defaultLayer,u=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,g=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map((t=>parseInt(t,10))):[parseInt(this.defaultOid,10)]:void 0;return s("calcite-shell",{class:`${d} border-bottom`},this._isMobile?void 0:s("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:r,slot:c},this.getActions(t,i)),s("div",{class:`width-full height-full position-relative z-index-0 ${a}`},s("layer-table",{appLayout:this.appLayout,createFilterModal:!1,defaultGlobalId:p?u:void 0,defaultLayerId:p?this.defaultLayer:"",defaultOid:p&&!u?g:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this?._mapInfo?.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isPortraitMobile,mapHidden:h,mapInfo:this._mapInfo,mapView:this?._mapView,onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._layerTable=t,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})),s("div",{class:n,id:"full-map-view"}))}getActions(t,i){const e=this._getDividerIcon(t,i),o=i?this._translations.close:this._translations.open,a="toggle-layout";return s(h,null,s("calcite-action",{active:"splitView"===this.appLayout,class:"toggle-node",icon:"browser",id:"browser-action",onClick:()=>{this._changeLayout("splitView")},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-action"},s("span",null,this._translations.splitView)),s("calcite-action",{active:"tableView"===this.appLayout,class:"toggle-node",icon:"dock-left",id:"dock-left-action",onClick:()=>{this._changeLayout("tableView")},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"dock-left-action"},s("span",null,this._translations.tableView)),s("calcite-action",{active:"mapView"===this.appLayout,class:"toggle-node",disabled:0===this._layerIds?.length,icon:"browser-map",id:"browser-map-action",onClick:()=>{this._changeLayout("mapView")},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-map-action"},s("span",null,this._translations.mapView)),s("calcite-action",{class:"toggle-node",icon:e,id:a,onClick:()=>this._toggleLayout(),slot:"actions-end",text:""}),s("calcite-tooltip",{placement:"bottom","reference-element":a},s("span",null,o)))}_filterModal(){return s("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},s("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filter?.replace("{{title}}",this._layer?.title)),s("div",{slot:"content"},s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:()=>{this._handleFilterListReset(),this._mapCard.resetFilter()},onFilterUpdate:()=>{this._layerTable?.filterUpdate(),this._mapCard.updateFilterState()},ref:t=>this._filterList=t,view:this._mapView,zoomBtn:!1})))}_initLayerExpressions(){const t=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0))}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._layerTable.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.closeFilter())}_onResize(){const t=this.el.offsetWidth<1024,i=!this._isMobile&&t;this._isMobile=t,i&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this._isPortraitMobile=!!window.matchMedia("(orientation: portrait)").matches,this._changeLayout("splitView")):this._isPortraitMobile=!1,this._layoutMode=this._isPortraitMobile?l.HORIZONTAL:l.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_changeLayout(t){this.appLayout!==t&&(this._setActiveLayout(t),this.appLayout=t,"mapView"===this.appLayout&&this._layer.isTable&&this._mapCard.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.refresh(),this._isMapViewOnLoad=!1))}_showMapInCardView(){if("mapView"===this.appLayout){const t=document.getElementById("full-map-view").childNodes[0],i=document.getElementById("card-mapView");t&&i.appendChild(t)}}_showMapInFullView(){const t=document.getElementById("card-mapView").childNodes[0],i=document.getElementById("full-map-view");t&&i.appendChild(t)}showHideMapPopupAndTable(t){this._hideTable=t,this._hideFooter=t}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),{...i}}async _setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map((t=>parseFloat(t))),i=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{enableZoom:["enableZoomWatchHandler"],hideMapOnLoad:["hideMapOnLoadWatchHandler"]}}};d.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}";export{d as crowdsource_manager}
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,g as s,h as e,H as a,F as h}from"./p-4e6eb06e.js";import{l,g as o}from"./p-f4aadb3b.js";import{g as c,a as n,b as r,c as d,h as u,d as p,q as f}from"./p-d572627c.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=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.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,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="sortNewest",this._commentSubmitted=!1,this._addingCommentFailed=!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=[];_filterUrlParams;_filterInitState;_prevSelectedLayerId;async isMobileWatchHandler(){this.updatePanelState(!1,this._showFullPanel)}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await c(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}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(),setTimeout((()=>{this._layerList&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50))}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)):[],await this.setMapView()})))}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"bb2f79258038360e5c0b894ce5a21dcdd41d0ce4"},this._reportSubmitted&&e("calcite-alert",{key:"aa244cd93326c8817b851d2465c7b9c453117ad2","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:"25d6d6bd01ee8dc260bce41ea6c43eafa609292e",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"06851f2f8cabebd0e953c31bdddfdeac363a4e6e","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"f0d73a00a8150a78c48cc09e8901ad7dcb438e90",slot:"title"},this._translations.error),e("div",{key:"0747a85bbf4936a28dd85a9ea0e8b416f70ee7cf",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"55017090c066ad4e12023315bde39e8c7fa67091","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"cb63168c1fe507b7b93ac4f58d5283ad0d09b34b",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"36b551428b32c7d93f4d04639504bfe326bbc9c8","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"2e9865c5611f4960bb622f75f386a489abcbb484",slot:"title"},this._translations.error),e("div",{key:"ebdf339d63369e18b1c68867cdffb9bd40f52766",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"a08980aead377e11697e96e77aa514ed66dc9613"},e("calcite-shell",{key:"6d96e769ece33073870f2b8f1a7ef6a44006c3f0","content-behind":!0},this._getReporter())))}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 c(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()),this._restoreFilters();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"}))}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",{"selection-mode":"single"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","sortNewest")},selected:"sortNewest"===this._updatedSortOption,value:"sortNewest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","sortOldest")},selected:"sortOldest"===this._updatedSortOption,value:"sortOldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","sortHighestVoted")},selected:"sortHighestVoted"===this._updatedSortOption,value:"sortHighestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","sortLowestVoted")},selected:"sortLowestVoted"===this._updatedSortOption,value:"sortLowestVoted"}))))}_restoreFilters(){setTimeout((()=>{this._filterList&&this._filterUrlParams&&this._filterInitState&&this._filterList.restoreFilters(this._filterUrlParams[0],this._filterInitState)}),200)}async _handleFilterListReset(){this._filterActive=!1,this._filterUrlParams=null,this._filterInitState=null,this._featureList&&await this._featureList.refresh(),this._layerList&&await this._layerList.refresh()}async _handleFilterUpdate(){this._showLoadingIndicator=!0,this._filterActive=this._filterList.urlParams.getAll("filter").length>0,this._filterUrlParams=this._filterList.urlParams.getAll("filter"),this._filterInitState=await this._filterList.getFilterInitState(),await this._featureList.refresh(),this._layerList&&await this._layerList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader},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",layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,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)},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,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)},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,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,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})))}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}onReportSubmitted(){this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1),this.updateNonVisibleLayersOnMap(!1),this._reportSubmitted=!0,this._updatedProgressBarStatus=.25,this.navigateToHomePage()}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(){this._layerList&&this._layerList.refresh(),await this.setSelectedFeatures([]),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._selectedLayerId!==this._prevSelectedLayerId&&this._filterActive&&await this.resetFilter(),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){const i=t.detail,s=await n(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){this._updatedSorting={field:"",order:"desc"},this._updatedSortOption="sortNewest",await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this._flowItems=[...this._flowItems,"feature-list"],this._selectedLayerId!==this._prevSelectedLayerId&&this._filterActive&&await this.resetFilter(),this._prevSelectedLayerId=this._selectedLayerId}async resetFilter(){(await c(this.mapView,this._prevSelectedLayerId)).definitionExpression=this._filterInitState.initDefExpressions[this._prevSelectedLayerId],this._handleFilterListReset()}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.layerExpressions?.filter((t=>t.id===this._selectedLayerId)),a=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,h=s?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),h&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&a&&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",highlightOnHover:!0,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(){const t=this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this)},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._filterList?.forceReset()},width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromSelectedPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:t,onFilterListReset:()=>this._handleFilterListReset(),onFilterUpdate:()=>this._handleFilterUpdate(),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)},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,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,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)},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,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)},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,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._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}),[])}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 n(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),this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title)}_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 c(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])}}}static get watchers(){return{isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"]}}};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}