@esri/solutions-components 0.11.21 → 0.11.23

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 (984) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +17 -15
  2. package/dist/cjs/create-feature_4.cjs.entry.js +22 -11
  3. package/dist/cjs/create-related-feature_3.cjs.entry.js +79 -25
  4. package/dist/cjs/crowdsource-manager.cjs.entry.js +6 -3
  5. package/dist/cjs/crowdsource-reporter.cjs.entry.js +126 -52
  6. package/dist/cjs/feature-list.cjs.entry.js +49 -11
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/map-select-tools_3.cjs.entry.js +5 -5
  10. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  11. package/dist/cjs/solutions-components.cjs.js +1 -1
  12. package/dist/collection/components/card-manager/card-manager.js +24 -3
  13. package/dist/collection/components/create-feature/create-feature.css +1 -1
  14. package/dist/collection/components/create-feature/create-feature.js +29 -4
  15. package/dist/collection/components/create-related-feature/create-related-feature.css +1 -1
  16. package/dist/collection/components/create-related-feature/create-related-feature.js +74 -49
  17. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +26 -3
  18. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +190 -53
  19. package/dist/collection/components/edit-card/edit-card.css +1 -1
  20. package/dist/collection/components/edit-card/edit-card.js +48 -23
  21. package/dist/collection/components/feature-details/feature-details.js +27 -6
  22. package/dist/collection/components/feature-list/feature-list.js +70 -10
  23. package/dist/collection/components/info-card/info-card.js +23 -2
  24. package/dist/collection/components/layer-list/layer-list.js +74 -3
  25. package/dist/collection/components/layer-table/layer-table.js +13 -12
  26. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  27. package/dist/collection/components/map-select-tools/map-select-tools.css +1 -0
  28. package/dist/collection/components/map-select-tools/map-select-tools.js +2 -2
  29. package/dist/collection/components/public-notification/public-notification.css +7 -0
  30. package/dist/collection/components/public-notification/public-notification.js +2 -2
  31. package/dist/collection/components/refine-selection/refine-selection.css +7 -0
  32. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  33. package/dist/collection/demos/crowdsource-manager.html +6 -2
  34. package/dist/collection/demos/crowdsource-reporter.html +2 -0
  35. package/dist/collection/vendor/calcite-components/24XPU7PW.js +4 -0
  36. package/dist/collection/vendor/calcite-components/26HZKUXD.js +4 -0
  37. package/dist/collection/vendor/calcite-components/2DZDH5PW.js +4 -0
  38. package/dist/collection/vendor/calcite-components/2E4H4XCR.js +5 -0
  39. package/dist/collection/vendor/calcite-components/2FEK4CRN.js +4 -0
  40. package/dist/collection/vendor/calcite-components/2JG564MO.js +4 -0
  41. package/dist/collection/vendor/calcite-components/2Q4UEB7G.js +4 -0
  42. package/dist/collection/vendor/calcite-components/2RPVHRRK.js +4 -0
  43. package/dist/collection/vendor/calcite-components/2UCHSNWA.js +4 -0
  44. package/dist/collection/vendor/calcite-components/36XNABTH.js +5 -0
  45. package/dist/collection/vendor/calcite-components/3AQ2GZOJ.js +4 -0
  46. package/dist/collection/vendor/calcite-components/3BLAL4BM.js +4 -0
  47. package/dist/collection/vendor/calcite-components/3FMVZYYJ.js +4 -0
  48. package/dist/collection/vendor/calcite-components/3H4RHBLC.js +4 -0
  49. package/dist/collection/vendor/calcite-components/3HPRXYKG.js +4 -0
  50. package/dist/collection/vendor/calcite-components/3NQ3MF4Y.js +4 -0
  51. package/dist/collection/vendor/calcite-components/3QYPPYKC.js +4 -0
  52. package/dist/collection/vendor/calcite-components/3SN4BPNU.js +4 -0
  53. package/dist/collection/vendor/calcite-components/3TSDVYMK.js +4 -0
  54. package/dist/collection/vendor/calcite-components/44IELQRN.js +4 -0
  55. package/dist/collection/vendor/calcite-components/4EXGV2JM.js +4 -0
  56. package/dist/collection/vendor/calcite-components/4FFNZW2T.js +4 -0
  57. package/dist/collection/vendor/calcite-components/4IAN6EPQ.js +4 -0
  58. package/dist/collection/vendor/calcite-components/4LP6XZGU.js +4 -0
  59. package/dist/collection/vendor/calcite-components/5F57XCO4.js +4 -0
  60. package/dist/collection/vendor/calcite-components/5GKGAQME.js +4 -0
  61. package/dist/collection/vendor/calcite-components/5IDYJYNO.js +4 -0
  62. package/dist/collection/vendor/calcite-components/5NCQFUYM.js +4 -0
  63. package/dist/collection/vendor/calcite-components/5URVZAO7.js +4 -0
  64. package/dist/collection/vendor/calcite-components/5VK4UUOT.js +4 -0
  65. package/dist/collection/vendor/calcite-components/675BA2OJ.js +4 -0
  66. package/dist/collection/vendor/calcite-components/6BYBFB5X.js +4 -0
  67. package/dist/collection/vendor/calcite-components/6GYLT3HR.js +4 -0
  68. package/dist/collection/vendor/calcite-components/6HR6FZG5.js +4 -0
  69. package/dist/collection/vendor/calcite-components/6MXVP647.js +4 -0
  70. package/dist/collection/vendor/calcite-components/6ZVC3UDX.js +4 -0
  71. package/dist/collection/vendor/calcite-components/7DCX244D.js +4 -0
  72. package/dist/collection/vendor/calcite-components/7IVGC34Z.js +4 -0
  73. package/dist/collection/vendor/calcite-components/7MWKFHAB.js +4 -0
  74. package/dist/collection/vendor/calcite-components/7XHO3OGL.js +4 -0
  75. package/dist/collection/vendor/calcite-components/7ZKEYSIK.js +4 -0
  76. package/dist/collection/vendor/calcite-components/A55GXE4D.js +4 -0
  77. package/dist/collection/vendor/calcite-components/ANPPDEZT.js +4 -0
  78. package/dist/collection/vendor/calcite-components/AQU64FML.js +4 -0
  79. package/dist/collection/vendor/calcite-components/BWIN7F7V.js +4 -0
  80. package/dist/collection/vendor/calcite-components/CMPWL5OR.js +4 -0
  81. package/dist/collection/vendor/calcite-components/D2RJ2NDD.js +4 -0
  82. package/dist/collection/vendor/calcite-components/D7XRLD6B.js +4 -0
  83. package/dist/collection/vendor/calcite-components/DARUTTL6.js +4 -0
  84. package/dist/collection/vendor/calcite-components/DQUWVHQ4.js +4 -0
  85. package/dist/collection/vendor/calcite-components/DS66T4UB.js +4 -0
  86. package/dist/collection/vendor/calcite-components/DTEXOHOC.js +4 -0
  87. package/dist/collection/vendor/calcite-components/DWP35FP5.js +4 -0
  88. package/dist/collection/vendor/calcite-components/E4V4WLG3.js +4 -0
  89. package/dist/collection/vendor/calcite-components/E7BZN4HI.js +4 -0
  90. package/dist/collection/vendor/calcite-components/E7L45EZX.js +4 -0
  91. package/dist/collection/vendor/calcite-components/EAA5CDC7.js +4 -0
  92. package/dist/collection/vendor/calcite-components/EBQYZOJE.js +4 -0
  93. package/dist/collection/vendor/calcite-components/EEY7KS7V.js +4 -0
  94. package/dist/collection/vendor/calcite-components/EF4LF7JA.js +4 -0
  95. package/dist/collection/vendor/calcite-components/EG3KFCKT.js +4 -0
  96. package/dist/collection/vendor/calcite-components/EIKWAET5.js +4 -0
  97. package/dist/collection/vendor/calcite-components/ELQHGUUQ.js +4 -0
  98. package/dist/collection/vendor/calcite-components/ERSOIATK.js +4 -0
  99. package/dist/collection/vendor/calcite-components/EV222TOH.js +4 -0
  100. package/dist/collection/vendor/calcite-components/FBYOJ4XP.js +4 -0
  101. package/dist/collection/vendor/calcite-components/FD23ZJ5M.js +4 -0
  102. package/dist/collection/vendor/calcite-components/FKRFYIK4.js +4 -0
  103. package/dist/collection/vendor/calcite-components/FMQW5CPG.js +4 -0
  104. package/dist/collection/vendor/calcite-components/FO5IP7GC.js +4 -0
  105. package/dist/collection/vendor/calcite-components/FT75A5FT.js +4 -0
  106. package/dist/collection/vendor/calcite-components/FXQZQREX.js +4 -0
  107. package/dist/collection/vendor/calcite-components/FYRRB4YU.js +4 -0
  108. package/dist/collection/vendor/calcite-components/G4WSCO7F.js +4 -0
  109. package/dist/collection/vendor/calcite-components/G5LIFWLC.js +4 -0
  110. package/dist/collection/vendor/calcite-components/GCYW34DH.js +4 -0
  111. package/dist/collection/vendor/calcite-components/GD4KAPIS.js +4 -0
  112. package/dist/collection/vendor/calcite-components/GM2DDQTV.js +4 -0
  113. package/dist/collection/vendor/calcite-components/GO2WSYWK.js +4 -0
  114. package/dist/collection/vendor/calcite-components/GPCQIKHB.js +4 -0
  115. package/dist/collection/vendor/calcite-components/GWFN65PG.js +4 -0
  116. package/dist/collection/vendor/calcite-components/GYIYX666.js +4 -0
  117. package/dist/collection/vendor/calcite-components/H373LLT7.js +4 -0
  118. package/dist/collection/vendor/calcite-components/HANIGQEU.js +4 -0
  119. package/dist/collection/vendor/calcite-components/HBWBBKTZ.js +4 -0
  120. package/dist/collection/vendor/calcite-components/HPQH2IQI.js +4 -0
  121. package/dist/collection/vendor/calcite-components/HVFHWDZS.js +4 -0
  122. package/dist/collection/vendor/calcite-components/HZ2CJF4H.js +4 -0
  123. package/dist/collection/vendor/calcite-components/ICQDC5MP.js +4 -0
  124. package/dist/collection/vendor/calcite-components/IUPHPQ5W.js +4 -0
  125. package/dist/collection/vendor/calcite-components/JDC4CCNQ.js +4 -0
  126. package/dist/collection/vendor/calcite-components/JG5U4L3H.js +4 -0
  127. package/dist/collection/vendor/calcite-components/JIZ3ZUNT.js +4 -0
  128. package/dist/collection/vendor/calcite-components/JLOMSYFQ.js +4 -0
  129. package/dist/collection/vendor/calcite-components/JLTNOBGF.js +4 -0
  130. package/dist/collection/vendor/calcite-components/JN54BWVD.js +4 -0
  131. package/dist/collection/vendor/calcite-components/JN6GQD32.js +4 -0
  132. package/dist/collection/vendor/calcite-components/JPISN7UU.js +4 -0
  133. package/dist/collection/vendor/calcite-components/JUAKRLPE.js +4 -0
  134. package/dist/collection/vendor/calcite-components/JWG3XWKS.js +4 -0
  135. package/dist/collection/vendor/calcite-components/JXO6Q6PC.js +4 -0
  136. package/dist/collection/vendor/calcite-components/JZGJVQKB.js +4 -0
  137. package/dist/collection/vendor/calcite-components/K6ALYIOD.js +4 -0
  138. package/dist/collection/vendor/calcite-components/KDJM5H4R.js +4 -0
  139. package/dist/collection/vendor/calcite-components/KHJ3WR7G.js +4 -0
  140. package/dist/collection/vendor/calcite-components/KKIWAHJ5.js +4 -0
  141. package/dist/collection/vendor/calcite-components/KTBWW64D.js +4 -0
  142. package/dist/collection/vendor/calcite-components/KU2O6B36.js +4 -0
  143. package/dist/collection/vendor/calcite-components/KVUPM4TA.js +4 -0
  144. package/dist/collection/vendor/calcite-components/KX7ZCSRX.js +4 -0
  145. package/dist/collection/vendor/calcite-components/L23DZQI6.js +4 -0
  146. package/dist/collection/vendor/calcite-components/L2A3CRIP.js +4 -0
  147. package/dist/collection/vendor/calcite-components/L37A2ISQ.js +4 -0
  148. package/dist/collection/vendor/calcite-components/LAVRP2RO.js +4 -0
  149. package/dist/collection/vendor/calcite-components/LKSA6W5F.js +4 -0
  150. package/dist/collection/vendor/calcite-components/LL7Q6H5L.js +4 -0
  151. package/dist/collection/vendor/calcite-components/LM2XVEJC.js +4 -0
  152. package/dist/collection/vendor/calcite-components/LRGSGD6G.js +4 -0
  153. package/dist/collection/vendor/calcite-components/LSIQC7QO.js +4 -0
  154. package/dist/collection/vendor/calcite-components/LX3BNN2R.js +4 -0
  155. package/dist/collection/vendor/calcite-components/M25GARCS.js +4 -0
  156. package/dist/collection/vendor/calcite-components/M4GN65AZ.js +4 -0
  157. package/dist/collection/vendor/calcite-components/MDFZXOFP.js +5 -0
  158. package/dist/collection/vendor/calcite-components/MIBXI2CI.js +4 -0
  159. package/dist/collection/vendor/calcite-components/MRFLH6RW.js +4 -0
  160. package/dist/collection/vendor/calcite-components/MUSZ6RWB.js +4 -0
  161. package/dist/collection/vendor/calcite-components/MX5EJ4DJ.js +4 -0
  162. package/dist/collection/vendor/calcite-components/MX7YVZ2Z.js +4 -0
  163. package/dist/collection/vendor/calcite-components/MYZF2YXM.js +4 -0
  164. package/dist/collection/vendor/calcite-components/N65J4BH6.js +4 -0
  165. package/dist/collection/vendor/calcite-components/N7POKTYM.js +4 -0
  166. package/dist/collection/vendor/calcite-components/NGWZQ4DF.js +4 -0
  167. package/dist/collection/vendor/calcite-components/NH5KER32.js +4 -0
  168. package/dist/collection/vendor/calcite-components/NIUCAKLC.js +4 -0
  169. package/dist/collection/vendor/calcite-components/NJILTUYU.js +4 -0
  170. package/dist/collection/vendor/calcite-components/NNB7RMSP.js +4 -0
  171. package/dist/collection/vendor/calcite-components/NP5LTTOS.js +4 -0
  172. package/dist/collection/vendor/calcite-components/NU3PWREF.js +4 -0
  173. package/dist/collection/vendor/calcite-components/NZDSRTUF.js +4 -0
  174. package/dist/collection/vendor/calcite-components/O4LXC5MV.js +4 -0
  175. package/dist/collection/vendor/calcite-components/OJGLTFDQ.js +4 -0
  176. package/dist/collection/vendor/calcite-components/OM2SDJA4.js +4 -0
  177. package/dist/collection/vendor/calcite-components/OY3RU7OI.js +4 -0
  178. package/dist/collection/vendor/calcite-components/P7LZIGH7.js +4 -0
  179. package/dist/collection/vendor/calcite-components/PF4XEEY5.js +4 -0
  180. package/dist/collection/vendor/calcite-components/PODUJS2H.js +4 -0
  181. package/dist/collection/vendor/calcite-components/PTGDUPKQ.js +4 -0
  182. package/dist/collection/vendor/calcite-components/PULE4IG4.js +4 -0
  183. package/dist/collection/vendor/calcite-components/PYAEZBTT.js +4 -0
  184. package/dist/collection/vendor/calcite-components/Q4DBJLCB.js +4 -0
  185. package/dist/collection/vendor/calcite-components/Q5CP47UX.js +4 -0
  186. package/dist/collection/vendor/calcite-components/QBKTBLGQ.js +4 -0
  187. package/dist/collection/vendor/calcite-components/QBQA4E7G.js +4 -0
  188. package/dist/collection/vendor/calcite-components/QETLRCQW.js +4 -0
  189. package/dist/collection/vendor/calcite-components/QQDFER4A.js +4 -0
  190. package/dist/collection/vendor/calcite-components/QUUN5YJ3.js +4 -0
  191. package/dist/collection/vendor/calcite-components/RAGSXTXM.js +4 -0
  192. package/dist/collection/vendor/calcite-components/RCSWE64T.js +4 -0
  193. package/dist/collection/vendor/calcite-components/REFBGNGF.js +4 -0
  194. package/dist/collection/vendor/calcite-components/RJMOC4XG.js +4 -0
  195. package/dist/collection/vendor/calcite-components/RLL47KJQ.js +4 -0
  196. package/dist/collection/vendor/calcite-components/RNT7J5MG.js +4 -0
  197. package/dist/collection/vendor/calcite-components/RPYN5IF2.js +4 -0
  198. package/dist/collection/vendor/calcite-components/RRML3L24.js +4 -0
  199. package/dist/collection/vendor/calcite-components/RRVJ5QUL.js +4 -0
  200. package/dist/collection/vendor/calcite-components/RZO7PXBY.js +4 -0
  201. package/dist/collection/vendor/calcite-components/SHIRLQTM.js +4 -0
  202. package/dist/collection/vendor/calcite-components/SKNFNI3G.js +4 -0
  203. package/dist/collection/vendor/calcite-components/SYRJFWC5.js +4 -0
  204. package/dist/collection/vendor/calcite-components/T3GBBB3W.js +4 -0
  205. package/dist/collection/vendor/calcite-components/TQ427GJX.js +6 -0
  206. package/dist/collection/vendor/calcite-components/TRWHGTOM.js +4 -0
  207. package/dist/collection/vendor/calcite-components/TTYJV2AA.js +4 -0
  208. package/dist/collection/vendor/calcite-components/TWJJYAQX.js +4 -0
  209. package/dist/collection/vendor/calcite-components/U34FMDPO.js +4 -0
  210. package/dist/collection/vendor/calcite-components/UEMF24J4.js +4 -0
  211. package/dist/collection/vendor/calcite-components/UIX5KJAH.js +4 -0
  212. package/dist/collection/vendor/calcite-components/UK4MHTX3.js +4 -0
  213. package/dist/collection/vendor/calcite-components/UMC66FPD.js +4 -0
  214. package/dist/collection/vendor/calcite-components/UOWQEKZ5.js +4 -0
  215. package/dist/collection/vendor/calcite-components/UTQXVQSW.js +4 -0
  216. package/dist/collection/vendor/calcite-components/UZXKQDX5.js +4 -0
  217. package/dist/collection/vendor/calcite-components/VB5TESRK.js +4 -0
  218. package/dist/collection/vendor/calcite-components/VHJ3N6C3.js +4 -0
  219. package/dist/collection/vendor/calcite-components/VY7WVWHH.js +4 -0
  220. package/dist/collection/vendor/calcite-components/W34LH35I.js +4 -0
  221. package/dist/collection/vendor/calcite-components/W5SJYIG6.js +4 -0
  222. package/dist/collection/vendor/calcite-components/W7LKQZLC.js +4 -0
  223. package/dist/collection/vendor/calcite-components/WA5XUN7A.js +4 -0
  224. package/dist/collection/vendor/calcite-components/WEMPP7QH.js +4 -0
  225. package/dist/collection/vendor/calcite-components/WK57IMVA.js +4 -0
  226. package/dist/collection/vendor/calcite-components/WUO5GRAC.js +5 -0
  227. package/dist/collection/vendor/calcite-components/WVYNOISK.js +4 -0
  228. package/dist/collection/vendor/calcite-components/X3DSV2RP.js +4 -0
  229. package/dist/collection/vendor/calcite-components/X533PSPQ.js +4 -0
  230. package/dist/collection/vendor/calcite-components/XCP7OFYG.js +4 -0
  231. package/dist/collection/vendor/calcite-components/XHSJC65M.js +22 -0
  232. package/dist/collection/vendor/calcite-components/XNYI7YNV.js +4 -0
  233. package/dist/collection/vendor/calcite-components/XOXXCOFR.js +4 -0
  234. package/dist/collection/vendor/calcite-components/XWL453TD.js +4 -0
  235. package/dist/collection/vendor/calcite-components/XZCNA3MO.js +4 -0
  236. package/dist/collection/vendor/calcite-components/XZIEBVH3.js +4 -0
  237. package/dist/collection/vendor/calcite-components/Y2RMF5RD.js +4 -0
  238. package/dist/collection/vendor/calcite-components/Y5K6MWVI.js +4 -0
  239. package/dist/collection/vendor/calcite-components/Y73JSF6U.js +4 -0
  240. package/dist/collection/vendor/calcite-components/YDHV53C4.js +4 -0
  241. package/dist/collection/vendor/calcite-components/YFD73VVO.js +4 -0
  242. package/dist/collection/vendor/calcite-components/YGSOHLPD.js +4 -0
  243. package/dist/collection/vendor/calcite-components/YLRKAY6P.js +4 -0
  244. package/dist/collection/vendor/calcite-components/YMGAVFBF.js +4 -0
  245. package/dist/collection/vendor/calcite-components/YORUNTUJ.js +4 -0
  246. package/dist/collection/vendor/calcite-components/YQW2HZIZ.js +4 -0
  247. package/dist/collection/vendor/calcite-components/YU4QMLUK.js +4 -0
  248. package/dist/collection/vendor/calcite-components/Z5W27AI4.js +4 -0
  249. package/dist/collection/vendor/calcite-components/ZB7BTUGE.js +4 -0
  250. package/dist/collection/vendor/calcite-components/ZBMTRW4F.js +4 -0
  251. package/dist/collection/vendor/calcite-components/ZGKKQBVA.js +4 -0
  252. package/dist/collection/vendor/calcite-components/ZH3CXIUL.js +4 -0
  253. package/dist/collection/vendor/calcite-components/ZIFGJROL.js +4 -0
  254. package/dist/collection/vendor/calcite-components/ZL7RFBBU.js +28 -0
  255. package/dist/collection/vendor/calcite-components/ZLP5NNFX.js +4 -0
  256. package/dist/collection/vendor/calcite-components/ZQRVWYDH.js +4 -0
  257. package/dist/collection/vendor/calcite-components/calcite.esm.js +2 -2
  258. package/dist/components/card-manager2.js +5 -3
  259. package/dist/components/create-feature2.js +11 -5
  260. package/dist/components/create-related-feature2.js +21 -15
  261. package/dist/components/crowdsource-manager.js +7 -3
  262. package/dist/components/crowdsource-reporter.js +131 -52
  263. package/dist/components/edit-card2.js +11 -5
  264. package/dist/components/feature-details2.js +8 -6
  265. package/dist/components/feature-list2.js +52 -12
  266. package/dist/components/info-card2.js +4 -2
  267. package/dist/components/layer-list2.js +56 -5
  268. package/dist/components/layer-table2.js +13 -12
  269. package/dist/components/map-layer-picker2.js +1 -1
  270. package/dist/components/map-select-tools2.js +3 -3
  271. package/dist/components/public-notification.js +3 -3
  272. package/dist/components/refine-selection2.js +2 -2
  273. package/dist/esm/card-manager_3.entry.js +17 -15
  274. package/dist/esm/create-feature_4.entry.js +22 -11
  275. package/dist/esm/create-related-feature_3.entry.js +79 -25
  276. package/dist/esm/crowdsource-manager.entry.js +6 -3
  277. package/dist/esm/crowdsource-reporter.entry.js +126 -52
  278. package/dist/esm/feature-list.entry.js +49 -11
  279. package/dist/esm/loader.js +1 -1
  280. package/dist/esm/map-layer-picker.entry.js +1 -1
  281. package/dist/esm/map-select-tools_3.entry.js +5 -5
  282. package/dist/esm/public-notification.entry.js +3 -3
  283. package/dist/esm/solutions-components.js +1 -1
  284. package/dist/solutions-components/demos/crowdsource-manager.html +6 -2
  285. package/dist/solutions-components/demos/crowdsource-reporter.html +2 -0
  286. package/dist/solutions-components/p-09041307.entry.js +6 -0
  287. package/dist/solutions-components/p-2507c685.entry.js +6 -0
  288. package/dist/solutions-components/p-386b0163.entry.js +6 -0
  289. package/dist/solutions-components/p-541eb93a.entry.js +6 -0
  290. package/dist/solutions-components/p-6d20da19.entry.js +6 -0
  291. package/dist/solutions-components/p-7e233b70.entry.js +6 -0
  292. package/dist/solutions-components/p-99e00361.entry.js +6 -0
  293. package/dist/solutions-components/p-a415a60d.entry.js +6 -0
  294. package/dist/solutions-components/p-b5a102db.entry.js +6 -0
  295. package/dist/solutions-components/solutions-components.esm.js +1 -1
  296. package/dist/solutions-components/vendor/calcite-components/24XPU7PW.js +4 -0
  297. package/dist/solutions-components/vendor/calcite-components/26HZKUXD.js +4 -0
  298. package/dist/solutions-components/vendor/calcite-components/2DZDH5PW.js +4 -0
  299. package/dist/solutions-components/vendor/calcite-components/2E4H4XCR.js +5 -0
  300. package/dist/solutions-components/vendor/calcite-components/2FEK4CRN.js +4 -0
  301. package/dist/solutions-components/vendor/calcite-components/2JG564MO.js +4 -0
  302. package/dist/solutions-components/vendor/calcite-components/2Q4UEB7G.js +4 -0
  303. package/dist/solutions-components/vendor/calcite-components/2RPVHRRK.js +4 -0
  304. package/dist/solutions-components/vendor/calcite-components/2UCHSNWA.js +4 -0
  305. package/dist/solutions-components/vendor/calcite-components/36XNABTH.js +5 -0
  306. package/dist/solutions-components/vendor/calcite-components/3AQ2GZOJ.js +4 -0
  307. package/dist/solutions-components/vendor/calcite-components/3BLAL4BM.js +4 -0
  308. package/dist/solutions-components/vendor/calcite-components/3FMVZYYJ.js +4 -0
  309. package/dist/solutions-components/vendor/calcite-components/3H4RHBLC.js +4 -0
  310. package/dist/solutions-components/vendor/calcite-components/3HPRXYKG.js +4 -0
  311. package/dist/solutions-components/vendor/calcite-components/3NQ3MF4Y.js +4 -0
  312. package/dist/solutions-components/vendor/calcite-components/3QYPPYKC.js +4 -0
  313. package/dist/solutions-components/vendor/calcite-components/3SN4BPNU.js +4 -0
  314. package/dist/solutions-components/vendor/calcite-components/3TSDVYMK.js +4 -0
  315. package/dist/solutions-components/vendor/calcite-components/44IELQRN.js +4 -0
  316. package/dist/solutions-components/vendor/calcite-components/4EXGV2JM.js +4 -0
  317. package/dist/solutions-components/vendor/calcite-components/4FFNZW2T.js +4 -0
  318. package/dist/solutions-components/vendor/calcite-components/4IAN6EPQ.js +4 -0
  319. package/dist/solutions-components/vendor/calcite-components/4LP6XZGU.js +4 -0
  320. package/dist/solutions-components/vendor/calcite-components/5F57XCO4.js +4 -0
  321. package/dist/solutions-components/vendor/calcite-components/5GKGAQME.js +4 -0
  322. package/dist/solutions-components/vendor/calcite-components/5IDYJYNO.js +4 -0
  323. package/dist/solutions-components/vendor/calcite-components/5NCQFUYM.js +4 -0
  324. package/dist/solutions-components/vendor/calcite-components/5URVZAO7.js +4 -0
  325. package/dist/solutions-components/vendor/calcite-components/5VK4UUOT.js +4 -0
  326. package/dist/solutions-components/vendor/calcite-components/675BA2OJ.js +4 -0
  327. package/dist/solutions-components/vendor/calcite-components/6BYBFB5X.js +4 -0
  328. package/dist/solutions-components/vendor/calcite-components/6GYLT3HR.js +4 -0
  329. package/dist/solutions-components/vendor/calcite-components/6HR6FZG5.js +4 -0
  330. package/dist/solutions-components/vendor/calcite-components/6MXVP647.js +4 -0
  331. package/dist/solutions-components/vendor/calcite-components/6ZVC3UDX.js +4 -0
  332. package/dist/solutions-components/vendor/calcite-components/7DCX244D.js +4 -0
  333. package/dist/solutions-components/vendor/calcite-components/7IVGC34Z.js +4 -0
  334. package/dist/solutions-components/vendor/calcite-components/7MWKFHAB.js +4 -0
  335. package/dist/solutions-components/vendor/calcite-components/7XHO3OGL.js +4 -0
  336. package/dist/solutions-components/vendor/calcite-components/7ZKEYSIK.js +4 -0
  337. package/dist/solutions-components/vendor/calcite-components/A55GXE4D.js +4 -0
  338. package/dist/solutions-components/vendor/calcite-components/ANPPDEZT.js +4 -0
  339. package/dist/solutions-components/vendor/calcite-components/AQU64FML.js +4 -0
  340. package/dist/solutions-components/vendor/calcite-components/BWIN7F7V.js +4 -0
  341. package/dist/solutions-components/vendor/calcite-components/CMPWL5OR.js +4 -0
  342. package/dist/solutions-components/vendor/calcite-components/D2RJ2NDD.js +4 -0
  343. package/dist/solutions-components/vendor/calcite-components/D7XRLD6B.js +4 -0
  344. package/dist/solutions-components/vendor/calcite-components/DARUTTL6.js +4 -0
  345. package/dist/solutions-components/vendor/calcite-components/DQUWVHQ4.js +4 -0
  346. package/dist/solutions-components/vendor/calcite-components/DS66T4UB.js +4 -0
  347. package/dist/solutions-components/vendor/calcite-components/DTEXOHOC.js +4 -0
  348. package/dist/solutions-components/vendor/calcite-components/DWP35FP5.js +4 -0
  349. package/dist/solutions-components/vendor/calcite-components/E4V4WLG3.js +4 -0
  350. package/dist/solutions-components/vendor/calcite-components/E7BZN4HI.js +4 -0
  351. package/dist/solutions-components/vendor/calcite-components/E7L45EZX.js +4 -0
  352. package/dist/solutions-components/vendor/calcite-components/EAA5CDC7.js +4 -0
  353. package/dist/solutions-components/vendor/calcite-components/EBQYZOJE.js +4 -0
  354. package/dist/solutions-components/vendor/calcite-components/EEY7KS7V.js +4 -0
  355. package/dist/solutions-components/vendor/calcite-components/EF4LF7JA.js +4 -0
  356. package/dist/solutions-components/vendor/calcite-components/EG3KFCKT.js +4 -0
  357. package/dist/solutions-components/vendor/calcite-components/EIKWAET5.js +4 -0
  358. package/dist/solutions-components/vendor/calcite-components/ELQHGUUQ.js +4 -0
  359. package/dist/solutions-components/vendor/calcite-components/ERSOIATK.js +4 -0
  360. package/dist/solutions-components/vendor/calcite-components/EV222TOH.js +4 -0
  361. package/dist/solutions-components/vendor/calcite-components/FBYOJ4XP.js +4 -0
  362. package/dist/solutions-components/vendor/calcite-components/FD23ZJ5M.js +4 -0
  363. package/dist/solutions-components/vendor/calcite-components/FKRFYIK4.js +4 -0
  364. package/dist/solutions-components/vendor/calcite-components/FMQW5CPG.js +4 -0
  365. package/dist/solutions-components/vendor/calcite-components/FO5IP7GC.js +4 -0
  366. package/dist/solutions-components/vendor/calcite-components/FT75A5FT.js +4 -0
  367. package/dist/solutions-components/vendor/calcite-components/FXQZQREX.js +4 -0
  368. package/dist/solutions-components/vendor/calcite-components/FYRRB4YU.js +4 -0
  369. package/dist/solutions-components/vendor/calcite-components/G4WSCO7F.js +4 -0
  370. package/dist/solutions-components/vendor/calcite-components/G5LIFWLC.js +4 -0
  371. package/dist/solutions-components/vendor/calcite-components/GCYW34DH.js +4 -0
  372. package/dist/solutions-components/vendor/calcite-components/GD4KAPIS.js +4 -0
  373. package/dist/solutions-components/vendor/calcite-components/GM2DDQTV.js +4 -0
  374. package/dist/solutions-components/vendor/calcite-components/GO2WSYWK.js +4 -0
  375. package/dist/solutions-components/vendor/calcite-components/GPCQIKHB.js +4 -0
  376. package/dist/solutions-components/vendor/calcite-components/GWFN65PG.js +4 -0
  377. package/dist/solutions-components/vendor/calcite-components/GYIYX666.js +4 -0
  378. package/dist/solutions-components/vendor/calcite-components/H373LLT7.js +4 -0
  379. package/dist/solutions-components/vendor/calcite-components/HANIGQEU.js +4 -0
  380. package/dist/solutions-components/vendor/calcite-components/HBWBBKTZ.js +4 -0
  381. package/dist/solutions-components/vendor/calcite-components/HPQH2IQI.js +4 -0
  382. package/dist/solutions-components/vendor/calcite-components/HVFHWDZS.js +4 -0
  383. package/dist/solutions-components/vendor/calcite-components/HZ2CJF4H.js +4 -0
  384. package/dist/solutions-components/vendor/calcite-components/ICQDC5MP.js +4 -0
  385. package/dist/solutions-components/vendor/calcite-components/IUPHPQ5W.js +4 -0
  386. package/dist/solutions-components/vendor/calcite-components/JDC4CCNQ.js +4 -0
  387. package/dist/solutions-components/vendor/calcite-components/JG5U4L3H.js +4 -0
  388. package/dist/solutions-components/vendor/calcite-components/JIZ3ZUNT.js +4 -0
  389. package/dist/solutions-components/vendor/calcite-components/JLOMSYFQ.js +4 -0
  390. package/dist/solutions-components/vendor/calcite-components/JLTNOBGF.js +4 -0
  391. package/dist/solutions-components/vendor/calcite-components/JN54BWVD.js +4 -0
  392. package/dist/solutions-components/vendor/calcite-components/JN6GQD32.js +4 -0
  393. package/dist/solutions-components/vendor/calcite-components/JPISN7UU.js +4 -0
  394. package/dist/solutions-components/vendor/calcite-components/JUAKRLPE.js +4 -0
  395. package/dist/solutions-components/vendor/calcite-components/JWG3XWKS.js +4 -0
  396. package/dist/solutions-components/vendor/calcite-components/JXO6Q6PC.js +4 -0
  397. package/dist/solutions-components/vendor/calcite-components/JZGJVQKB.js +4 -0
  398. package/dist/solutions-components/vendor/calcite-components/K6ALYIOD.js +4 -0
  399. package/dist/solutions-components/vendor/calcite-components/KDJM5H4R.js +4 -0
  400. package/dist/solutions-components/vendor/calcite-components/KHJ3WR7G.js +4 -0
  401. package/dist/solutions-components/vendor/calcite-components/KKIWAHJ5.js +4 -0
  402. package/dist/solutions-components/vendor/calcite-components/KTBWW64D.js +4 -0
  403. package/dist/solutions-components/vendor/calcite-components/KU2O6B36.js +4 -0
  404. package/dist/solutions-components/vendor/calcite-components/KVUPM4TA.js +4 -0
  405. package/dist/solutions-components/vendor/calcite-components/KX7ZCSRX.js +4 -0
  406. package/dist/solutions-components/vendor/calcite-components/L23DZQI6.js +4 -0
  407. package/dist/solutions-components/vendor/calcite-components/L2A3CRIP.js +4 -0
  408. package/dist/solutions-components/vendor/calcite-components/L37A2ISQ.js +4 -0
  409. package/dist/solutions-components/vendor/calcite-components/LAVRP2RO.js +4 -0
  410. package/dist/solutions-components/vendor/calcite-components/LKSA6W5F.js +4 -0
  411. package/dist/solutions-components/vendor/calcite-components/LL7Q6H5L.js +4 -0
  412. package/dist/solutions-components/vendor/calcite-components/LM2XVEJC.js +4 -0
  413. package/dist/solutions-components/vendor/calcite-components/LRGSGD6G.js +4 -0
  414. package/dist/solutions-components/vendor/calcite-components/LSIQC7QO.js +4 -0
  415. package/dist/solutions-components/vendor/calcite-components/LX3BNN2R.js +4 -0
  416. package/dist/solutions-components/vendor/calcite-components/M25GARCS.js +4 -0
  417. package/dist/solutions-components/vendor/calcite-components/M4GN65AZ.js +4 -0
  418. package/dist/solutions-components/vendor/calcite-components/MDFZXOFP.js +5 -0
  419. package/dist/solutions-components/vendor/calcite-components/MIBXI2CI.js +4 -0
  420. package/dist/solutions-components/vendor/calcite-components/MRFLH6RW.js +4 -0
  421. package/dist/solutions-components/vendor/calcite-components/MUSZ6RWB.js +4 -0
  422. package/dist/solutions-components/vendor/calcite-components/MX5EJ4DJ.js +4 -0
  423. package/dist/solutions-components/vendor/calcite-components/MX7YVZ2Z.js +4 -0
  424. package/dist/solutions-components/vendor/calcite-components/MYZF2YXM.js +4 -0
  425. package/dist/solutions-components/vendor/calcite-components/N65J4BH6.js +4 -0
  426. package/dist/solutions-components/vendor/calcite-components/N7POKTYM.js +4 -0
  427. package/dist/solutions-components/vendor/calcite-components/NGWZQ4DF.js +4 -0
  428. package/dist/solutions-components/vendor/calcite-components/NH5KER32.js +4 -0
  429. package/dist/solutions-components/vendor/calcite-components/NIUCAKLC.js +4 -0
  430. package/dist/solutions-components/vendor/calcite-components/NJILTUYU.js +4 -0
  431. package/dist/solutions-components/vendor/calcite-components/NNB7RMSP.js +4 -0
  432. package/dist/solutions-components/vendor/calcite-components/NP5LTTOS.js +4 -0
  433. package/dist/solutions-components/vendor/calcite-components/NU3PWREF.js +4 -0
  434. package/dist/solutions-components/vendor/calcite-components/NZDSRTUF.js +4 -0
  435. package/dist/solutions-components/vendor/calcite-components/O4LXC5MV.js +4 -0
  436. package/dist/solutions-components/vendor/calcite-components/OJGLTFDQ.js +4 -0
  437. package/dist/solutions-components/vendor/calcite-components/OM2SDJA4.js +4 -0
  438. package/dist/solutions-components/vendor/calcite-components/OY3RU7OI.js +4 -0
  439. package/dist/solutions-components/vendor/calcite-components/P7LZIGH7.js +4 -0
  440. package/dist/solutions-components/vendor/calcite-components/PF4XEEY5.js +4 -0
  441. package/dist/solutions-components/vendor/calcite-components/PODUJS2H.js +4 -0
  442. package/dist/solutions-components/vendor/calcite-components/PTGDUPKQ.js +4 -0
  443. package/dist/solutions-components/vendor/calcite-components/PULE4IG4.js +4 -0
  444. package/dist/solutions-components/vendor/calcite-components/PYAEZBTT.js +4 -0
  445. package/dist/solutions-components/vendor/calcite-components/Q4DBJLCB.js +4 -0
  446. package/dist/solutions-components/vendor/calcite-components/Q5CP47UX.js +4 -0
  447. package/dist/solutions-components/vendor/calcite-components/QBKTBLGQ.js +4 -0
  448. package/dist/solutions-components/vendor/calcite-components/QBQA4E7G.js +4 -0
  449. package/dist/solutions-components/vendor/calcite-components/QETLRCQW.js +4 -0
  450. package/dist/solutions-components/vendor/calcite-components/QQDFER4A.js +4 -0
  451. package/dist/solutions-components/vendor/calcite-components/QUUN5YJ3.js +4 -0
  452. package/dist/solutions-components/vendor/calcite-components/RAGSXTXM.js +4 -0
  453. package/dist/solutions-components/vendor/calcite-components/RCSWE64T.js +4 -0
  454. package/dist/solutions-components/vendor/calcite-components/REFBGNGF.js +4 -0
  455. package/dist/solutions-components/vendor/calcite-components/RJMOC4XG.js +4 -0
  456. package/dist/solutions-components/vendor/calcite-components/RLL47KJQ.js +4 -0
  457. package/dist/solutions-components/vendor/calcite-components/RNT7J5MG.js +4 -0
  458. package/dist/solutions-components/vendor/calcite-components/RPYN5IF2.js +4 -0
  459. package/dist/solutions-components/vendor/calcite-components/RRML3L24.js +4 -0
  460. package/dist/solutions-components/vendor/calcite-components/RRVJ5QUL.js +4 -0
  461. package/dist/solutions-components/vendor/calcite-components/RZO7PXBY.js +4 -0
  462. package/dist/solutions-components/vendor/calcite-components/SHIRLQTM.js +4 -0
  463. package/dist/solutions-components/vendor/calcite-components/SKNFNI3G.js +4 -0
  464. package/dist/solutions-components/vendor/calcite-components/SYRJFWC5.js +4 -0
  465. package/dist/solutions-components/vendor/calcite-components/T3GBBB3W.js +4 -0
  466. package/dist/solutions-components/vendor/calcite-components/TQ427GJX.js +6 -0
  467. package/dist/solutions-components/vendor/calcite-components/TRWHGTOM.js +4 -0
  468. package/dist/solutions-components/vendor/calcite-components/TTYJV2AA.js +4 -0
  469. package/dist/solutions-components/vendor/calcite-components/TWJJYAQX.js +4 -0
  470. package/dist/solutions-components/vendor/calcite-components/U34FMDPO.js +4 -0
  471. package/dist/solutions-components/vendor/calcite-components/UEMF24J4.js +4 -0
  472. package/dist/solutions-components/vendor/calcite-components/UIX5KJAH.js +4 -0
  473. package/dist/solutions-components/vendor/calcite-components/UK4MHTX3.js +4 -0
  474. package/dist/solutions-components/vendor/calcite-components/UMC66FPD.js +4 -0
  475. package/dist/solutions-components/vendor/calcite-components/UOWQEKZ5.js +4 -0
  476. package/dist/solutions-components/vendor/calcite-components/UTQXVQSW.js +4 -0
  477. package/dist/solutions-components/vendor/calcite-components/UZXKQDX5.js +4 -0
  478. package/dist/solutions-components/vendor/calcite-components/VB5TESRK.js +4 -0
  479. package/dist/solutions-components/vendor/calcite-components/VHJ3N6C3.js +4 -0
  480. package/dist/solutions-components/vendor/calcite-components/VY7WVWHH.js +4 -0
  481. package/dist/solutions-components/vendor/calcite-components/W34LH35I.js +4 -0
  482. package/dist/solutions-components/vendor/calcite-components/W5SJYIG6.js +4 -0
  483. package/dist/solutions-components/vendor/calcite-components/W7LKQZLC.js +4 -0
  484. package/dist/solutions-components/vendor/calcite-components/WA5XUN7A.js +4 -0
  485. package/dist/solutions-components/vendor/calcite-components/WEMPP7QH.js +4 -0
  486. package/dist/solutions-components/vendor/calcite-components/WK57IMVA.js +4 -0
  487. package/dist/solutions-components/vendor/calcite-components/WUO5GRAC.js +5 -0
  488. package/dist/solutions-components/vendor/calcite-components/WVYNOISK.js +4 -0
  489. package/dist/solutions-components/vendor/calcite-components/X3DSV2RP.js +4 -0
  490. package/dist/solutions-components/vendor/calcite-components/X533PSPQ.js +4 -0
  491. package/dist/solutions-components/vendor/calcite-components/XCP7OFYG.js +4 -0
  492. package/dist/solutions-components/vendor/calcite-components/XHSJC65M.js +22 -0
  493. package/dist/solutions-components/vendor/calcite-components/XNYI7YNV.js +4 -0
  494. package/dist/solutions-components/vendor/calcite-components/XOXXCOFR.js +4 -0
  495. package/dist/solutions-components/vendor/calcite-components/XWL453TD.js +4 -0
  496. package/dist/solutions-components/vendor/calcite-components/XZCNA3MO.js +4 -0
  497. package/dist/solutions-components/vendor/calcite-components/XZIEBVH3.js +4 -0
  498. package/dist/solutions-components/vendor/calcite-components/Y2RMF5RD.js +4 -0
  499. package/dist/solutions-components/vendor/calcite-components/Y5K6MWVI.js +4 -0
  500. package/dist/solutions-components/vendor/calcite-components/Y73JSF6U.js +4 -0
  501. package/dist/solutions-components/vendor/calcite-components/YDHV53C4.js +4 -0
  502. package/dist/solutions-components/vendor/calcite-components/YFD73VVO.js +4 -0
  503. package/dist/solutions-components/vendor/calcite-components/YGSOHLPD.js +4 -0
  504. package/dist/solutions-components/vendor/calcite-components/YLRKAY6P.js +4 -0
  505. package/dist/solutions-components/vendor/calcite-components/YMGAVFBF.js +4 -0
  506. package/dist/solutions-components/vendor/calcite-components/YORUNTUJ.js +4 -0
  507. package/dist/solutions-components/vendor/calcite-components/YQW2HZIZ.js +4 -0
  508. package/dist/solutions-components/vendor/calcite-components/YU4QMLUK.js +4 -0
  509. package/dist/solutions-components/vendor/calcite-components/Z5W27AI4.js +4 -0
  510. package/dist/solutions-components/vendor/calcite-components/ZB7BTUGE.js +4 -0
  511. package/dist/solutions-components/vendor/calcite-components/ZBMTRW4F.js +4 -0
  512. package/dist/solutions-components/vendor/calcite-components/ZGKKQBVA.js +4 -0
  513. package/dist/solutions-components/vendor/calcite-components/ZH3CXIUL.js +4 -0
  514. package/dist/solutions-components/vendor/calcite-components/ZIFGJROL.js +4 -0
  515. package/dist/solutions-components/vendor/calcite-components/ZL7RFBBU.js +28 -0
  516. package/dist/solutions-components/vendor/calcite-components/ZLP5NNFX.js +4 -0
  517. package/dist/solutions-components/vendor/calcite-components/ZQRVWYDH.js +4 -0
  518. package/dist/solutions-components/vendor/calcite-components/calcite.esm.js +2 -2
  519. package/dist/solutions-components_commit.txt +7 -7
  520. package/dist/types/components/card-manager/card-manager.d.ts +4 -0
  521. package/dist/types/components/create-feature/create-feature.d.ts +4 -0
  522. package/dist/types/components/create-related-feature/create-related-feature.d.ts +23 -19
  523. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
  524. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +46 -1
  525. package/dist/types/components/edit-card/edit-card.d.ts +8 -4
  526. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  527. package/dist/types/components/feature-list/feature-list.d.ts +20 -0
  528. package/dist/types/components/info-card/info-card.d.ts +4 -0
  529. package/dist/types/components/layer-list/layer-list.d.ts +27 -0
  530. package/dist/types/components.d.ts +96 -0
  531. package/package.json +2 -2
  532. package/dist/collection/vendor/calcite-components/22LZVO5E.js +0 -4
  533. package/dist/collection/vendor/calcite-components/2A6QEASM.js +0 -4
  534. package/dist/collection/vendor/calcite-components/2BGT5TEK.js +0 -4
  535. package/dist/collection/vendor/calcite-components/2CPYXWOG.js +0 -4
  536. package/dist/collection/vendor/calcite-components/2GEBE6K3.js +0 -4
  537. package/dist/collection/vendor/calcite-components/2QA56E26.js +0 -4
  538. package/dist/collection/vendor/calcite-components/2YRZB4NM.js +0 -4
  539. package/dist/collection/vendor/calcite-components/36XHP2FJ.js +0 -4
  540. package/dist/collection/vendor/calcite-components/3COQK7PF.js +0 -4
  541. package/dist/collection/vendor/calcite-components/3DM4HAHW.js +0 -4
  542. package/dist/collection/vendor/calcite-components/3PTTJYHL.js +0 -4
  543. package/dist/collection/vendor/calcite-components/3QHDLMLZ.js +0 -4
  544. package/dist/collection/vendor/calcite-components/3QTJJQOU.js +0 -4
  545. package/dist/collection/vendor/calcite-components/42IFRZST.js +0 -4
  546. package/dist/collection/vendor/calcite-components/43WAE6RK.js +0 -4
  547. package/dist/collection/vendor/calcite-components/4657LRIL.js +0 -4
  548. package/dist/collection/vendor/calcite-components/4D34RBQ3.js +0 -4
  549. package/dist/collection/vendor/calcite-components/4EMDDOBJ.js +0 -4
  550. package/dist/collection/vendor/calcite-components/4IX3YHER.js +0 -4
  551. package/dist/collection/vendor/calcite-components/4JFCCMPV.js +0 -4
  552. package/dist/collection/vendor/calcite-components/4RVJ5ZT4.js +0 -4
  553. package/dist/collection/vendor/calcite-components/53I6TTJJ.js +0 -4
  554. package/dist/collection/vendor/calcite-components/54KMPSZ3.js +0 -4
  555. package/dist/collection/vendor/calcite-components/555IAPRW.js +0 -4
  556. package/dist/collection/vendor/calcite-components/5BBZL5AE.js +0 -4
  557. package/dist/collection/vendor/calcite-components/5G52FOTN.js +0 -4
  558. package/dist/collection/vendor/calcite-components/5GU33MPG.js +0 -4
  559. package/dist/collection/vendor/calcite-components/5SFTADR5.js +0 -4
  560. package/dist/collection/vendor/calcite-components/5WCCH3GL.js +0 -4
  561. package/dist/collection/vendor/calcite-components/662YEAMX.js +0 -4
  562. package/dist/collection/vendor/calcite-components/6FZUWDUT.js +0 -4
  563. package/dist/collection/vendor/calcite-components/6PFLQ26Z.js +0 -4
  564. package/dist/collection/vendor/calcite-components/6PJ43C67.js +0 -4
  565. package/dist/collection/vendor/calcite-components/6TRPZGJP.js +0 -4
  566. package/dist/collection/vendor/calcite-components/6TWWOPNX.js +0 -4
  567. package/dist/collection/vendor/calcite-components/727HQUFD.js +0 -4
  568. package/dist/collection/vendor/calcite-components/74RWJ4QY.js +0 -4
  569. package/dist/collection/vendor/calcite-components/7AMBDXFL.js +0 -4
  570. package/dist/collection/vendor/calcite-components/7BGF2YXV.js +0 -5
  571. package/dist/collection/vendor/calcite-components/7KCRDGKA.js +0 -4
  572. package/dist/collection/vendor/calcite-components/7LREBCFI.js +0 -4
  573. package/dist/collection/vendor/calcite-components/7MTWQHV5.js +0 -4
  574. package/dist/collection/vendor/calcite-components/7NELI6UD.js +0 -4
  575. package/dist/collection/vendor/calcite-components/7PXHM6EH.js +0 -4
  576. package/dist/collection/vendor/calcite-components/7R52MWAP.js +0 -4
  577. package/dist/collection/vendor/calcite-components/A4XKVBOI.js +0 -4
  578. package/dist/collection/vendor/calcite-components/A57QY65K.js +0 -4
  579. package/dist/collection/vendor/calcite-components/A6VQQWXZ.js +0 -4
  580. package/dist/collection/vendor/calcite-components/AIDMQYMU.js +0 -4
  581. package/dist/collection/vendor/calcite-components/ASXEEA2B.js +0 -4
  582. package/dist/collection/vendor/calcite-components/AWSMJMWQ.js +0 -4
  583. package/dist/collection/vendor/calcite-components/AZ54J6HD.js +0 -4
  584. package/dist/collection/vendor/calcite-components/B2ETPGYX.js +0 -4
  585. package/dist/collection/vendor/calcite-components/B2JBOZ4Z.js +0 -4
  586. package/dist/collection/vendor/calcite-components/B4FD6KD7.js +0 -4
  587. package/dist/collection/vendor/calcite-components/B7E6VYNK.js +0 -4
  588. package/dist/collection/vendor/calcite-components/BD6SDCR6.js +0 -4
  589. package/dist/collection/vendor/calcite-components/BFQ3IRQW.js +0 -4
  590. package/dist/collection/vendor/calcite-components/BW2NQ5TQ.js +0 -4
  591. package/dist/collection/vendor/calcite-components/BZOMVSAG.js +0 -4
  592. package/dist/collection/vendor/calcite-components/C3AZYUGU.js +0 -4
  593. package/dist/collection/vendor/calcite-components/CBX7R3DS.js +0 -4
  594. package/dist/collection/vendor/calcite-components/CCXXBM5B.js +0 -4
  595. package/dist/collection/vendor/calcite-components/CG5B4XKZ.js +0 -4
  596. package/dist/collection/vendor/calcite-components/CHGJHDWI.js +0 -4
  597. package/dist/collection/vendor/calcite-components/CNADH63F.js +0 -4
  598. package/dist/collection/vendor/calcite-components/CV3G4HMQ.js +0 -4
  599. package/dist/collection/vendor/calcite-components/CWSVXKFX.js +0 -4
  600. package/dist/collection/vendor/calcite-components/CY5O5AGQ.js +0 -4
  601. package/dist/collection/vendor/calcite-components/D23ZXMLS.js +0 -4
  602. package/dist/collection/vendor/calcite-components/D276FT6Z.js +0 -4
  603. package/dist/collection/vendor/calcite-components/DG2T33QN.js +0 -4
  604. package/dist/collection/vendor/calcite-components/DJQ34CXE.js +0 -4
  605. package/dist/collection/vendor/calcite-components/DJREGHLR.js +0 -6
  606. package/dist/collection/vendor/calcite-components/DMXUBDZW.js +0 -4
  607. package/dist/collection/vendor/calcite-components/DNQY4EKR.js +0 -4
  608. package/dist/collection/vendor/calcite-components/DPFVN4EN.js +0 -4
  609. package/dist/collection/vendor/calcite-components/DRXWIPMI.js +0 -4
  610. package/dist/collection/vendor/calcite-components/DRYFM2IO.js +0 -4
  611. package/dist/collection/vendor/calcite-components/DUL66KKH.js +0 -4
  612. package/dist/collection/vendor/calcite-components/DVC5KGLT.js +0 -4
  613. package/dist/collection/vendor/calcite-components/E6X3KIZL.js +0 -4
  614. package/dist/collection/vendor/calcite-components/EG6UCGFB.js +0 -4
  615. package/dist/collection/vendor/calcite-components/EHAHKKFL.js +0 -4
  616. package/dist/collection/vendor/calcite-components/EIMDRXSI.js +0 -4
  617. package/dist/collection/vendor/calcite-components/EM7TVLTF.js +0 -4
  618. package/dist/collection/vendor/calcite-components/EP7IEI22.js +0 -4
  619. package/dist/collection/vendor/calcite-components/EWJY2L2V.js +0 -4
  620. package/dist/collection/vendor/calcite-components/EYQQPU2W.js +0 -4
  621. package/dist/collection/vendor/calcite-components/FB7CD3CH.js +0 -4
  622. package/dist/collection/vendor/calcite-components/FDBZMO4P.js +0 -4
  623. package/dist/collection/vendor/calcite-components/FFPGVFSC.js +0 -4
  624. package/dist/collection/vendor/calcite-components/FGYULWTE.js +0 -4
  625. package/dist/collection/vendor/calcite-components/FMKUEBDG.js +0 -4
  626. package/dist/collection/vendor/calcite-components/FRM3YXTH.js +0 -4
  627. package/dist/collection/vendor/calcite-components/FW6R63UX.js +0 -4
  628. package/dist/collection/vendor/calcite-components/FXTXVVOM.js +0 -4
  629. package/dist/collection/vendor/calcite-components/FXXGJ3RT.js +0 -4
  630. package/dist/collection/vendor/calcite-components/FYHE5C5Q.js +0 -4
  631. package/dist/collection/vendor/calcite-components/G33CDSRC.js +0 -4
  632. package/dist/collection/vendor/calcite-components/G6XUWYVF.js +0 -4
  633. package/dist/collection/vendor/calcite-components/GCIH5FK5.js +0 -4
  634. package/dist/collection/vendor/calcite-components/GE5Y3RWM.js +0 -4
  635. package/dist/collection/vendor/calcite-components/GEZNDNDH.js +0 -4
  636. package/dist/collection/vendor/calcite-components/GNJWHQYO.js +0 -4
  637. package/dist/collection/vendor/calcite-components/GZ5TMSIR.js +0 -4
  638. package/dist/collection/vendor/calcite-components/GZJIMDTR.js +0 -4
  639. package/dist/collection/vendor/calcite-components/H23GHBD2.js +0 -5
  640. package/dist/collection/vendor/calcite-components/H2SIT2TB.js +0 -4
  641. package/dist/collection/vendor/calcite-components/HC7MYCXC.js +0 -4
  642. package/dist/collection/vendor/calcite-components/HD5QD64Q.js +0 -4
  643. package/dist/collection/vendor/calcite-components/HDELZP2B.js +0 -4
  644. package/dist/collection/vendor/calcite-components/HGDJL4SA.js +0 -4
  645. package/dist/collection/vendor/calcite-components/HHVWJ7MU.js +0 -4
  646. package/dist/collection/vendor/calcite-components/HJYTX5BK.js +0 -4
  647. package/dist/collection/vendor/calcite-components/HMFDWMJH.js +0 -4
  648. package/dist/collection/vendor/calcite-components/HXESYKZM.js +0 -4
  649. package/dist/collection/vendor/calcite-components/I4BAPULM.js +0 -4
  650. package/dist/collection/vendor/calcite-components/I6RIFD3V.js +0 -5
  651. package/dist/collection/vendor/calcite-components/IDZWSTZZ.js +0 -4
  652. package/dist/collection/vendor/calcite-components/IFAY5ZXB.js +0 -4
  653. package/dist/collection/vendor/calcite-components/IO5HOHW4.js +0 -4
  654. package/dist/collection/vendor/calcite-components/ISXEUIFH.js +0 -4
  655. package/dist/collection/vendor/calcite-components/IXUF77L2.js +0 -4
  656. package/dist/collection/vendor/calcite-components/J27B5CWI.js +0 -4
  657. package/dist/collection/vendor/calcite-components/JAKKKROM.js +0 -4
  658. package/dist/collection/vendor/calcite-components/JNDUGIK6.js +0 -4
  659. package/dist/collection/vendor/calcite-components/JNNP4QF3.js +0 -4
  660. package/dist/collection/vendor/calcite-components/JVSUOTAZ.js +0 -4
  661. package/dist/collection/vendor/calcite-components/JWEMBAET.js +0 -4
  662. package/dist/collection/vendor/calcite-components/JWKRGDRV.js +0 -4
  663. package/dist/collection/vendor/calcite-components/JZQ73NRM.js +0 -4
  664. package/dist/collection/vendor/calcite-components/K7OAUX24.js +0 -4
  665. package/dist/collection/vendor/calcite-components/KKM7CKQA.js +0 -4
  666. package/dist/collection/vendor/calcite-components/KMEUFDPK.js +0 -4
  667. package/dist/collection/vendor/calcite-components/KNH6FSL4.js +0 -4
  668. package/dist/collection/vendor/calcite-components/KPMQXN4M.js +0 -4
  669. package/dist/collection/vendor/calcite-components/KWU2E4JE.js +0 -4
  670. package/dist/collection/vendor/calcite-components/L4WAR5X4.js +0 -4
  671. package/dist/collection/vendor/calcite-components/LKJAWTVJ.js +0 -4
  672. package/dist/collection/vendor/calcite-components/LLS4XVIW.js +0 -4
  673. package/dist/collection/vendor/calcite-components/LNECFRUM.js +0 -4
  674. package/dist/collection/vendor/calcite-components/LYQ7FJT2.js +0 -4
  675. package/dist/collection/vendor/calcite-components/M2KTEEUG.js +0 -4
  676. package/dist/collection/vendor/calcite-components/M5OIZS7N.js +0 -28
  677. package/dist/collection/vendor/calcite-components/M64PHLHQ.js +0 -4
  678. package/dist/collection/vendor/calcite-components/MQ3MSMTP.js +0 -4
  679. package/dist/collection/vendor/calcite-components/MTNJMPLV.js +0 -4
  680. package/dist/collection/vendor/calcite-components/MXGPGCYC.js +0 -4
  681. package/dist/collection/vendor/calcite-components/MYNPH67G.js +0 -4
  682. package/dist/collection/vendor/calcite-components/N5OBZLJZ.js +0 -4
  683. package/dist/collection/vendor/calcite-components/NJYFPOKV.js +0 -4
  684. package/dist/collection/vendor/calcite-components/NJZE4A4X.js +0 -4
  685. package/dist/collection/vendor/calcite-components/NSHK3NTJ.js +0 -4
  686. package/dist/collection/vendor/calcite-components/NYER6YT7.js +0 -4
  687. package/dist/collection/vendor/calcite-components/NYZ4ODDA.js +0 -4
  688. package/dist/collection/vendor/calcite-components/O4AAP54K.js +0 -4
  689. package/dist/collection/vendor/calcite-components/OETUMACB.js +0 -4
  690. package/dist/collection/vendor/calcite-components/OFPYZZUF.js +0 -4
  691. package/dist/collection/vendor/calcite-components/OFXV3CF7.js +0 -4
  692. package/dist/collection/vendor/calcite-components/PAJGY3XV.js +0 -4
  693. package/dist/collection/vendor/calcite-components/PENB3O7H.js +0 -4
  694. package/dist/collection/vendor/calcite-components/PNCVHWAE.js +0 -4
  695. package/dist/collection/vendor/calcite-components/PYGWJ6OV.js +0 -4
  696. package/dist/collection/vendor/calcite-components/Q32GNFQO.js +0 -22
  697. package/dist/collection/vendor/calcite-components/Q6HTE6MQ.js +0 -4
  698. package/dist/collection/vendor/calcite-components/QAO6BQAD.js +0 -4
  699. package/dist/collection/vendor/calcite-components/QBMZKO4M.js +0 -4
  700. package/dist/collection/vendor/calcite-components/QCKKEDB2.js +0 -4
  701. package/dist/collection/vendor/calcite-components/QQEBBK2A.js +0 -4
  702. package/dist/collection/vendor/calcite-components/R4J2EZFU.js +0 -4
  703. package/dist/collection/vendor/calcite-components/R5EHQKMO.js +0 -4
  704. package/dist/collection/vendor/calcite-components/R7GOP347.js +0 -4
  705. package/dist/collection/vendor/calcite-components/RBMLFM2L.js +0 -4
  706. package/dist/collection/vendor/calcite-components/RBQ6BI6C.js +0 -4
  707. package/dist/collection/vendor/calcite-components/REF7SAQQ.js +0 -4
  708. package/dist/collection/vendor/calcite-components/REWMVFVL.js +0 -4
  709. package/dist/collection/vendor/calcite-components/RI3WTZXE.js +0 -4
  710. package/dist/collection/vendor/calcite-components/RL7IIXTZ.js +0 -4
  711. package/dist/collection/vendor/calcite-components/RM7LSSHL.js +0 -4
  712. package/dist/collection/vendor/calcite-components/RREZDRNN.js +0 -4
  713. package/dist/collection/vendor/calcite-components/SHERIRO4.js +0 -4
  714. package/dist/collection/vendor/calcite-components/SK7NKNHK.js +0 -4
  715. package/dist/collection/vendor/calcite-components/SODGHLU2.js +0 -4
  716. package/dist/collection/vendor/calcite-components/SP6U5EWI.js +0 -4
  717. package/dist/collection/vendor/calcite-components/SQKZ5EZF.js +0 -4
  718. package/dist/collection/vendor/calcite-components/SX4MCPF2.js +0 -5
  719. package/dist/collection/vendor/calcite-components/TIGHTLQD.js +0 -4
  720. package/dist/collection/vendor/calcite-components/TMKEB7G7.js +0 -4
  721. package/dist/collection/vendor/calcite-components/TURDT3VB.js +0 -4
  722. package/dist/collection/vendor/calcite-components/TX7QHHK5.js +0 -4
  723. package/dist/collection/vendor/calcite-components/TYMOPXYL.js +0 -4
  724. package/dist/collection/vendor/calcite-components/TZECTLA6.js +0 -4
  725. package/dist/collection/vendor/calcite-components/U3RO6UCM.js +0 -4
  726. package/dist/collection/vendor/calcite-components/U5FUMAFV.js +0 -4
  727. package/dist/collection/vendor/calcite-components/UM5EV3V4.js +0 -4
  728. package/dist/collection/vendor/calcite-components/UOX45Z7K.js +0 -4
  729. package/dist/collection/vendor/calcite-components/UXTWTW75.js +0 -4
  730. package/dist/collection/vendor/calcite-components/V5ZZKGAM.js +0 -4
  731. package/dist/collection/vendor/calcite-components/VTA2PRG5.js +0 -4
  732. package/dist/collection/vendor/calcite-components/VY37PIFG.js +0 -4
  733. package/dist/collection/vendor/calcite-components/W25AOEEB.js +0 -4
  734. package/dist/collection/vendor/calcite-components/W3TNJWVO.js +0 -4
  735. package/dist/collection/vendor/calcite-components/WQHOMJR2.js +0 -4
  736. package/dist/collection/vendor/calcite-components/WW65BUEL.js +0 -4
  737. package/dist/collection/vendor/calcite-components/WWZTCRUR.js +0 -4
  738. package/dist/collection/vendor/calcite-components/X6UMFXM3.js +0 -4
  739. package/dist/collection/vendor/calcite-components/XCTRH7IZ.js +0 -4
  740. package/dist/collection/vendor/calcite-components/XJTPF3VE.js +0 -4
  741. package/dist/collection/vendor/calcite-components/XNWWFGXG.js +0 -4
  742. package/dist/collection/vendor/calcite-components/YG6EDHOT.js +0 -4
  743. package/dist/collection/vendor/calcite-components/YHRT6LHF.js +0 -4
  744. package/dist/collection/vendor/calcite-components/YMNIMOT5.js +0 -4
  745. package/dist/collection/vendor/calcite-components/YQDDGBKI.js +0 -4
  746. package/dist/collection/vendor/calcite-components/YYWX5ACS.js +0 -4
  747. package/dist/collection/vendor/calcite-components/Z5J5AV2N.js +0 -4
  748. package/dist/collection/vendor/calcite-components/Z5POWLIV.js +0 -4
  749. package/dist/collection/vendor/calcite-components/ZCF5FXJ6.js +0 -4
  750. package/dist/collection/vendor/calcite-components/ZCPJODER.js +0 -4
  751. package/dist/collection/vendor/calcite-components/ZIIE4X52.js +0 -4
  752. package/dist/collection/vendor/calcite-components/ZQ4RAM3U.js +0 -4
  753. package/dist/collection/vendor/calcite-components/ZXDWFKG4.js +0 -4
  754. package/dist/solutions-components/p-00ec642f.entry.js +0 -6
  755. package/dist/solutions-components/p-02c4e6fc.entry.js +0 -6
  756. package/dist/solutions-components/p-5a202f3f.entry.js +0 -6
  757. package/dist/solutions-components/p-8859b622.entry.js +0 -6
  758. package/dist/solutions-components/p-a6e763aa.entry.js +0 -6
  759. package/dist/solutions-components/p-de42e8b2.entry.js +0 -6
  760. package/dist/solutions-components/p-ea566af0.entry.js +0 -6
  761. package/dist/solutions-components/p-eb3c867f.entry.js +0 -6
  762. package/dist/solutions-components/p-ec867c21.entry.js +0 -6
  763. package/dist/solutions-components/vendor/calcite-components/22LZVO5E.js +0 -4
  764. package/dist/solutions-components/vendor/calcite-components/2A6QEASM.js +0 -4
  765. package/dist/solutions-components/vendor/calcite-components/2BGT5TEK.js +0 -4
  766. package/dist/solutions-components/vendor/calcite-components/2CPYXWOG.js +0 -4
  767. package/dist/solutions-components/vendor/calcite-components/2GEBE6K3.js +0 -4
  768. package/dist/solutions-components/vendor/calcite-components/2QA56E26.js +0 -4
  769. package/dist/solutions-components/vendor/calcite-components/2YRZB4NM.js +0 -4
  770. package/dist/solutions-components/vendor/calcite-components/36XHP2FJ.js +0 -4
  771. package/dist/solutions-components/vendor/calcite-components/3COQK7PF.js +0 -4
  772. package/dist/solutions-components/vendor/calcite-components/3DM4HAHW.js +0 -4
  773. package/dist/solutions-components/vendor/calcite-components/3PTTJYHL.js +0 -4
  774. package/dist/solutions-components/vendor/calcite-components/3QHDLMLZ.js +0 -4
  775. package/dist/solutions-components/vendor/calcite-components/3QTJJQOU.js +0 -4
  776. package/dist/solutions-components/vendor/calcite-components/42IFRZST.js +0 -4
  777. package/dist/solutions-components/vendor/calcite-components/43WAE6RK.js +0 -4
  778. package/dist/solutions-components/vendor/calcite-components/4657LRIL.js +0 -4
  779. package/dist/solutions-components/vendor/calcite-components/4D34RBQ3.js +0 -4
  780. package/dist/solutions-components/vendor/calcite-components/4EMDDOBJ.js +0 -4
  781. package/dist/solutions-components/vendor/calcite-components/4IX3YHER.js +0 -4
  782. package/dist/solutions-components/vendor/calcite-components/4JFCCMPV.js +0 -4
  783. package/dist/solutions-components/vendor/calcite-components/4RVJ5ZT4.js +0 -4
  784. package/dist/solutions-components/vendor/calcite-components/53I6TTJJ.js +0 -4
  785. package/dist/solutions-components/vendor/calcite-components/54KMPSZ3.js +0 -4
  786. package/dist/solutions-components/vendor/calcite-components/555IAPRW.js +0 -4
  787. package/dist/solutions-components/vendor/calcite-components/5BBZL5AE.js +0 -4
  788. package/dist/solutions-components/vendor/calcite-components/5G52FOTN.js +0 -4
  789. package/dist/solutions-components/vendor/calcite-components/5GU33MPG.js +0 -4
  790. package/dist/solutions-components/vendor/calcite-components/5SFTADR5.js +0 -4
  791. package/dist/solutions-components/vendor/calcite-components/5WCCH3GL.js +0 -4
  792. package/dist/solutions-components/vendor/calcite-components/662YEAMX.js +0 -4
  793. package/dist/solutions-components/vendor/calcite-components/6FZUWDUT.js +0 -4
  794. package/dist/solutions-components/vendor/calcite-components/6PFLQ26Z.js +0 -4
  795. package/dist/solutions-components/vendor/calcite-components/6PJ43C67.js +0 -4
  796. package/dist/solutions-components/vendor/calcite-components/6TRPZGJP.js +0 -4
  797. package/dist/solutions-components/vendor/calcite-components/6TWWOPNX.js +0 -4
  798. package/dist/solutions-components/vendor/calcite-components/727HQUFD.js +0 -4
  799. package/dist/solutions-components/vendor/calcite-components/74RWJ4QY.js +0 -4
  800. package/dist/solutions-components/vendor/calcite-components/7AMBDXFL.js +0 -4
  801. package/dist/solutions-components/vendor/calcite-components/7BGF2YXV.js +0 -5
  802. package/dist/solutions-components/vendor/calcite-components/7KCRDGKA.js +0 -4
  803. package/dist/solutions-components/vendor/calcite-components/7LREBCFI.js +0 -4
  804. package/dist/solutions-components/vendor/calcite-components/7MTWQHV5.js +0 -4
  805. package/dist/solutions-components/vendor/calcite-components/7NELI6UD.js +0 -4
  806. package/dist/solutions-components/vendor/calcite-components/7PXHM6EH.js +0 -4
  807. package/dist/solutions-components/vendor/calcite-components/7R52MWAP.js +0 -4
  808. package/dist/solutions-components/vendor/calcite-components/A4XKVBOI.js +0 -4
  809. package/dist/solutions-components/vendor/calcite-components/A57QY65K.js +0 -4
  810. package/dist/solutions-components/vendor/calcite-components/A6VQQWXZ.js +0 -4
  811. package/dist/solutions-components/vendor/calcite-components/AIDMQYMU.js +0 -4
  812. package/dist/solutions-components/vendor/calcite-components/ASXEEA2B.js +0 -4
  813. package/dist/solutions-components/vendor/calcite-components/AWSMJMWQ.js +0 -4
  814. package/dist/solutions-components/vendor/calcite-components/AZ54J6HD.js +0 -4
  815. package/dist/solutions-components/vendor/calcite-components/B2ETPGYX.js +0 -4
  816. package/dist/solutions-components/vendor/calcite-components/B2JBOZ4Z.js +0 -4
  817. package/dist/solutions-components/vendor/calcite-components/B4FD6KD7.js +0 -4
  818. package/dist/solutions-components/vendor/calcite-components/B7E6VYNK.js +0 -4
  819. package/dist/solutions-components/vendor/calcite-components/BD6SDCR6.js +0 -4
  820. package/dist/solutions-components/vendor/calcite-components/BFQ3IRQW.js +0 -4
  821. package/dist/solutions-components/vendor/calcite-components/BW2NQ5TQ.js +0 -4
  822. package/dist/solutions-components/vendor/calcite-components/BZOMVSAG.js +0 -4
  823. package/dist/solutions-components/vendor/calcite-components/C3AZYUGU.js +0 -4
  824. package/dist/solutions-components/vendor/calcite-components/CBX7R3DS.js +0 -4
  825. package/dist/solutions-components/vendor/calcite-components/CCXXBM5B.js +0 -4
  826. package/dist/solutions-components/vendor/calcite-components/CG5B4XKZ.js +0 -4
  827. package/dist/solutions-components/vendor/calcite-components/CHGJHDWI.js +0 -4
  828. package/dist/solutions-components/vendor/calcite-components/CNADH63F.js +0 -4
  829. package/dist/solutions-components/vendor/calcite-components/CV3G4HMQ.js +0 -4
  830. package/dist/solutions-components/vendor/calcite-components/CWSVXKFX.js +0 -4
  831. package/dist/solutions-components/vendor/calcite-components/CY5O5AGQ.js +0 -4
  832. package/dist/solutions-components/vendor/calcite-components/D23ZXMLS.js +0 -4
  833. package/dist/solutions-components/vendor/calcite-components/D276FT6Z.js +0 -4
  834. package/dist/solutions-components/vendor/calcite-components/DG2T33QN.js +0 -4
  835. package/dist/solutions-components/vendor/calcite-components/DJQ34CXE.js +0 -4
  836. package/dist/solutions-components/vendor/calcite-components/DJREGHLR.js +0 -6
  837. package/dist/solutions-components/vendor/calcite-components/DMXUBDZW.js +0 -4
  838. package/dist/solutions-components/vendor/calcite-components/DNQY4EKR.js +0 -4
  839. package/dist/solutions-components/vendor/calcite-components/DPFVN4EN.js +0 -4
  840. package/dist/solutions-components/vendor/calcite-components/DRXWIPMI.js +0 -4
  841. package/dist/solutions-components/vendor/calcite-components/DRYFM2IO.js +0 -4
  842. package/dist/solutions-components/vendor/calcite-components/DUL66KKH.js +0 -4
  843. package/dist/solutions-components/vendor/calcite-components/DVC5KGLT.js +0 -4
  844. package/dist/solutions-components/vendor/calcite-components/E6X3KIZL.js +0 -4
  845. package/dist/solutions-components/vendor/calcite-components/EG6UCGFB.js +0 -4
  846. package/dist/solutions-components/vendor/calcite-components/EHAHKKFL.js +0 -4
  847. package/dist/solutions-components/vendor/calcite-components/EIMDRXSI.js +0 -4
  848. package/dist/solutions-components/vendor/calcite-components/EM7TVLTF.js +0 -4
  849. package/dist/solutions-components/vendor/calcite-components/EP7IEI22.js +0 -4
  850. package/dist/solutions-components/vendor/calcite-components/EWJY2L2V.js +0 -4
  851. package/dist/solutions-components/vendor/calcite-components/EYQQPU2W.js +0 -4
  852. package/dist/solutions-components/vendor/calcite-components/FB7CD3CH.js +0 -4
  853. package/dist/solutions-components/vendor/calcite-components/FDBZMO4P.js +0 -4
  854. package/dist/solutions-components/vendor/calcite-components/FFPGVFSC.js +0 -4
  855. package/dist/solutions-components/vendor/calcite-components/FGYULWTE.js +0 -4
  856. package/dist/solutions-components/vendor/calcite-components/FMKUEBDG.js +0 -4
  857. package/dist/solutions-components/vendor/calcite-components/FRM3YXTH.js +0 -4
  858. package/dist/solutions-components/vendor/calcite-components/FW6R63UX.js +0 -4
  859. package/dist/solutions-components/vendor/calcite-components/FXTXVVOM.js +0 -4
  860. package/dist/solutions-components/vendor/calcite-components/FXXGJ3RT.js +0 -4
  861. package/dist/solutions-components/vendor/calcite-components/FYHE5C5Q.js +0 -4
  862. package/dist/solutions-components/vendor/calcite-components/G33CDSRC.js +0 -4
  863. package/dist/solutions-components/vendor/calcite-components/G6XUWYVF.js +0 -4
  864. package/dist/solutions-components/vendor/calcite-components/GCIH5FK5.js +0 -4
  865. package/dist/solutions-components/vendor/calcite-components/GE5Y3RWM.js +0 -4
  866. package/dist/solutions-components/vendor/calcite-components/GEZNDNDH.js +0 -4
  867. package/dist/solutions-components/vendor/calcite-components/GNJWHQYO.js +0 -4
  868. package/dist/solutions-components/vendor/calcite-components/GZ5TMSIR.js +0 -4
  869. package/dist/solutions-components/vendor/calcite-components/GZJIMDTR.js +0 -4
  870. package/dist/solutions-components/vendor/calcite-components/H23GHBD2.js +0 -5
  871. package/dist/solutions-components/vendor/calcite-components/H2SIT2TB.js +0 -4
  872. package/dist/solutions-components/vendor/calcite-components/HC7MYCXC.js +0 -4
  873. package/dist/solutions-components/vendor/calcite-components/HD5QD64Q.js +0 -4
  874. package/dist/solutions-components/vendor/calcite-components/HDELZP2B.js +0 -4
  875. package/dist/solutions-components/vendor/calcite-components/HGDJL4SA.js +0 -4
  876. package/dist/solutions-components/vendor/calcite-components/HHVWJ7MU.js +0 -4
  877. package/dist/solutions-components/vendor/calcite-components/HJYTX5BK.js +0 -4
  878. package/dist/solutions-components/vendor/calcite-components/HMFDWMJH.js +0 -4
  879. package/dist/solutions-components/vendor/calcite-components/HXESYKZM.js +0 -4
  880. package/dist/solutions-components/vendor/calcite-components/I4BAPULM.js +0 -4
  881. package/dist/solutions-components/vendor/calcite-components/I6RIFD3V.js +0 -5
  882. package/dist/solutions-components/vendor/calcite-components/IDZWSTZZ.js +0 -4
  883. package/dist/solutions-components/vendor/calcite-components/IFAY5ZXB.js +0 -4
  884. package/dist/solutions-components/vendor/calcite-components/IO5HOHW4.js +0 -4
  885. package/dist/solutions-components/vendor/calcite-components/ISXEUIFH.js +0 -4
  886. package/dist/solutions-components/vendor/calcite-components/IXUF77L2.js +0 -4
  887. package/dist/solutions-components/vendor/calcite-components/J27B5CWI.js +0 -4
  888. package/dist/solutions-components/vendor/calcite-components/JAKKKROM.js +0 -4
  889. package/dist/solutions-components/vendor/calcite-components/JNDUGIK6.js +0 -4
  890. package/dist/solutions-components/vendor/calcite-components/JNNP4QF3.js +0 -4
  891. package/dist/solutions-components/vendor/calcite-components/JVSUOTAZ.js +0 -4
  892. package/dist/solutions-components/vendor/calcite-components/JWEMBAET.js +0 -4
  893. package/dist/solutions-components/vendor/calcite-components/JWKRGDRV.js +0 -4
  894. package/dist/solutions-components/vendor/calcite-components/JZQ73NRM.js +0 -4
  895. package/dist/solutions-components/vendor/calcite-components/K7OAUX24.js +0 -4
  896. package/dist/solutions-components/vendor/calcite-components/KKM7CKQA.js +0 -4
  897. package/dist/solutions-components/vendor/calcite-components/KMEUFDPK.js +0 -4
  898. package/dist/solutions-components/vendor/calcite-components/KNH6FSL4.js +0 -4
  899. package/dist/solutions-components/vendor/calcite-components/KPMQXN4M.js +0 -4
  900. package/dist/solutions-components/vendor/calcite-components/KWU2E4JE.js +0 -4
  901. package/dist/solutions-components/vendor/calcite-components/L4WAR5X4.js +0 -4
  902. package/dist/solutions-components/vendor/calcite-components/LKJAWTVJ.js +0 -4
  903. package/dist/solutions-components/vendor/calcite-components/LLS4XVIW.js +0 -4
  904. package/dist/solutions-components/vendor/calcite-components/LNECFRUM.js +0 -4
  905. package/dist/solutions-components/vendor/calcite-components/LYQ7FJT2.js +0 -4
  906. package/dist/solutions-components/vendor/calcite-components/M2KTEEUG.js +0 -4
  907. package/dist/solutions-components/vendor/calcite-components/M5OIZS7N.js +0 -28
  908. package/dist/solutions-components/vendor/calcite-components/M64PHLHQ.js +0 -4
  909. package/dist/solutions-components/vendor/calcite-components/MQ3MSMTP.js +0 -4
  910. package/dist/solutions-components/vendor/calcite-components/MTNJMPLV.js +0 -4
  911. package/dist/solutions-components/vendor/calcite-components/MXGPGCYC.js +0 -4
  912. package/dist/solutions-components/vendor/calcite-components/MYNPH67G.js +0 -4
  913. package/dist/solutions-components/vendor/calcite-components/N5OBZLJZ.js +0 -4
  914. package/dist/solutions-components/vendor/calcite-components/NJYFPOKV.js +0 -4
  915. package/dist/solutions-components/vendor/calcite-components/NJZE4A4X.js +0 -4
  916. package/dist/solutions-components/vendor/calcite-components/NSHK3NTJ.js +0 -4
  917. package/dist/solutions-components/vendor/calcite-components/NYER6YT7.js +0 -4
  918. package/dist/solutions-components/vendor/calcite-components/NYZ4ODDA.js +0 -4
  919. package/dist/solutions-components/vendor/calcite-components/O4AAP54K.js +0 -4
  920. package/dist/solutions-components/vendor/calcite-components/OETUMACB.js +0 -4
  921. package/dist/solutions-components/vendor/calcite-components/OFPYZZUF.js +0 -4
  922. package/dist/solutions-components/vendor/calcite-components/OFXV3CF7.js +0 -4
  923. package/dist/solutions-components/vendor/calcite-components/PAJGY3XV.js +0 -4
  924. package/dist/solutions-components/vendor/calcite-components/PENB3O7H.js +0 -4
  925. package/dist/solutions-components/vendor/calcite-components/PNCVHWAE.js +0 -4
  926. package/dist/solutions-components/vendor/calcite-components/PYGWJ6OV.js +0 -4
  927. package/dist/solutions-components/vendor/calcite-components/Q32GNFQO.js +0 -22
  928. package/dist/solutions-components/vendor/calcite-components/Q6HTE6MQ.js +0 -4
  929. package/dist/solutions-components/vendor/calcite-components/QAO6BQAD.js +0 -4
  930. package/dist/solutions-components/vendor/calcite-components/QBMZKO4M.js +0 -4
  931. package/dist/solutions-components/vendor/calcite-components/QCKKEDB2.js +0 -4
  932. package/dist/solutions-components/vendor/calcite-components/QQEBBK2A.js +0 -4
  933. package/dist/solutions-components/vendor/calcite-components/R4J2EZFU.js +0 -4
  934. package/dist/solutions-components/vendor/calcite-components/R5EHQKMO.js +0 -4
  935. package/dist/solutions-components/vendor/calcite-components/R7GOP347.js +0 -4
  936. package/dist/solutions-components/vendor/calcite-components/RBMLFM2L.js +0 -4
  937. package/dist/solutions-components/vendor/calcite-components/RBQ6BI6C.js +0 -4
  938. package/dist/solutions-components/vendor/calcite-components/REF7SAQQ.js +0 -4
  939. package/dist/solutions-components/vendor/calcite-components/REWMVFVL.js +0 -4
  940. package/dist/solutions-components/vendor/calcite-components/RI3WTZXE.js +0 -4
  941. package/dist/solutions-components/vendor/calcite-components/RL7IIXTZ.js +0 -4
  942. package/dist/solutions-components/vendor/calcite-components/RM7LSSHL.js +0 -4
  943. package/dist/solutions-components/vendor/calcite-components/RREZDRNN.js +0 -4
  944. package/dist/solutions-components/vendor/calcite-components/SHERIRO4.js +0 -4
  945. package/dist/solutions-components/vendor/calcite-components/SK7NKNHK.js +0 -4
  946. package/dist/solutions-components/vendor/calcite-components/SODGHLU2.js +0 -4
  947. package/dist/solutions-components/vendor/calcite-components/SP6U5EWI.js +0 -4
  948. package/dist/solutions-components/vendor/calcite-components/SQKZ5EZF.js +0 -4
  949. package/dist/solutions-components/vendor/calcite-components/SX4MCPF2.js +0 -5
  950. package/dist/solutions-components/vendor/calcite-components/TIGHTLQD.js +0 -4
  951. package/dist/solutions-components/vendor/calcite-components/TMKEB7G7.js +0 -4
  952. package/dist/solutions-components/vendor/calcite-components/TURDT3VB.js +0 -4
  953. package/dist/solutions-components/vendor/calcite-components/TX7QHHK5.js +0 -4
  954. package/dist/solutions-components/vendor/calcite-components/TYMOPXYL.js +0 -4
  955. package/dist/solutions-components/vendor/calcite-components/TZECTLA6.js +0 -4
  956. package/dist/solutions-components/vendor/calcite-components/U3RO6UCM.js +0 -4
  957. package/dist/solutions-components/vendor/calcite-components/U5FUMAFV.js +0 -4
  958. package/dist/solutions-components/vendor/calcite-components/UM5EV3V4.js +0 -4
  959. package/dist/solutions-components/vendor/calcite-components/UOX45Z7K.js +0 -4
  960. package/dist/solutions-components/vendor/calcite-components/UXTWTW75.js +0 -4
  961. package/dist/solutions-components/vendor/calcite-components/V5ZZKGAM.js +0 -4
  962. package/dist/solutions-components/vendor/calcite-components/VTA2PRG5.js +0 -4
  963. package/dist/solutions-components/vendor/calcite-components/VY37PIFG.js +0 -4
  964. package/dist/solutions-components/vendor/calcite-components/W25AOEEB.js +0 -4
  965. package/dist/solutions-components/vendor/calcite-components/W3TNJWVO.js +0 -4
  966. package/dist/solutions-components/vendor/calcite-components/WQHOMJR2.js +0 -4
  967. package/dist/solutions-components/vendor/calcite-components/WW65BUEL.js +0 -4
  968. package/dist/solutions-components/vendor/calcite-components/WWZTCRUR.js +0 -4
  969. package/dist/solutions-components/vendor/calcite-components/X6UMFXM3.js +0 -4
  970. package/dist/solutions-components/vendor/calcite-components/XCTRH7IZ.js +0 -4
  971. package/dist/solutions-components/vendor/calcite-components/XJTPF3VE.js +0 -4
  972. package/dist/solutions-components/vendor/calcite-components/XNWWFGXG.js +0 -4
  973. package/dist/solutions-components/vendor/calcite-components/YG6EDHOT.js +0 -4
  974. package/dist/solutions-components/vendor/calcite-components/YHRT6LHF.js +0 -4
  975. package/dist/solutions-components/vendor/calcite-components/YMNIMOT5.js +0 -4
  976. package/dist/solutions-components/vendor/calcite-components/YQDDGBKI.js +0 -4
  977. package/dist/solutions-components/vendor/calcite-components/YYWX5ACS.js +0 -4
  978. package/dist/solutions-components/vendor/calcite-components/Z5J5AV2N.js +0 -4
  979. package/dist/solutions-components/vendor/calcite-components/Z5POWLIV.js +0 -4
  980. package/dist/solutions-components/vendor/calcite-components/ZCF5FXJ6.js +0 -4
  981. package/dist/solutions-components/vendor/calcite-components/ZCPJODER.js +0 -4
  982. package/dist/solutions-components/vendor/calcite-components/ZIIE4X52.js +0 -4
  983. package/dist/solutions-components/vendor/calcite-components/ZQ4RAM3U.js +0 -4
  984. package/dist/solutions-components/vendor/calcite-components/ZXDWFKG4.js +0 -4
@@ -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,c as i,g as e,h as s,H as o,F as h}from"./p-e996c38f.js";import{g as a}from"./p-404cbf48.js";import{E as l}from"./p-80cb7c73.js";import{g as n}from"./p-dcd2f00b.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.honorMapFieldSettings=!1,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.enableSnapping=!0,this.enableZoom=!0,this.locale=void 0,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._deleteDialogOpen=!1,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,this._mapExtentFilterChecked=void 0}get el(){return e(this)}_defaultAppLayoutHonored=!1;_defaultCenterHonored=!1;_defaultLevelHonored=!1;_deleteIds;_layerTable;_mapChange;_resizeObserver;_shouldSetMapView=!1;_layerExpressions;_filterList;_mapCard;_isMapViewOnLoad=!1;appLayoutWatchHandler(t,i){t!==i&&(this._layerTable?.validateTableUpdate("splitView"===t),this._setActiveLayout(t),"mapView"===this.appLayout&&this._layer?.isTable&&this._mapCard.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}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.appLayout="splitView"),this._layer=e,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1}))}async showDelete(t){this._deleteIds=t.detail.ids,this._deleteDialogOpen=!0}async idsFound(t){this._layerIds=t.detail.layerIds}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return s(o,{key:"1d30ec71032cffd61c016cc846f59a8e437253de"},s("calcite-shell",{key:"836f6e8cde7c3e5b177803b607e26a41bdea42a3",class:"position-relative"},s("calcite-panel",{key:"0c968ccf6d19aa754b56dc5a3714e3b6f44dcac9",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(),this._deleteModal())}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.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,locale:this.locale}):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 z-index-1 ${!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,locale:this.locale,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"} ${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":""} ${"tableView"!==this.appLayout?"position-sticky":""}`,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,enableSnapping:this.enableSnapping,isMobile:this._isPortraitMobile,layer:this._layer,locale:this.locale,mapView:this?._mapView,onBackFromCreateWorkFlow:()=>{this._showInformationHeader=!0},onCreateWorkFlowStarted:()=>{this.appLayout=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,g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,u=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?g:void 0,defaultLayerId:p?this.defaultLayer:"",defaultOid:p&&!g?u:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this?._mapInfo?.enableInlineEdit,enableShare:this.enableShare,honorMapFieldSettings:this.honorMapFieldSettings,isMobile:this._isPortraitMobile,locale:this.locale,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.appLayout="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.appLayout="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.appLayout="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)))}_deleteModal(){return s("delete-dialog",{id:"deleteDialogId",ids:this._deleteIds,layer:this._layer,locale:this.locale,onDeleteDialogClose:()=>this._deleteDialogOpen=!1,open:this._deleteDialogOpen})}_mapExtentFilter(){const t=0===this._layerExpressions?.length;return s("calcite-panel",null,s("div",null,s("calcite-block",{class:"dark"===this.theme?"background-dark":"",heading:"","menu-placement":"bottom-end",open:!0},s("div",{class:"filter-extent-container"},s("div",{class:"filter-extent-message"},s("span",null,this._translations.filterByExtentMsg," "),s("calcite-icon",{icon:"information",id:"filter-message-info",scale:"s"}),s("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":"filter-message-info"},this._translations.filterByExtentTooltipMsg)),s("calcite-switch",{checked:this._mapExtentFilterChecked,onCalciteSwitchChange:t=>{this._layerTable.filterUpdate(t.target.checked||this._filterList?.filterCount>0,t.target.checked),this._mapExtentFilterChecked=t.target.checked},scale:"m"}))),t&&s("div",{class:"filter-modal-buttons",slot:"footer"},s("calcite-button",{appearance:"outline",onClick:this._handleFilterListReset.bind(this),width:"full"},this._translations.Resetfilter),s("calcite-button",{onClick:this._closeFilter.bind(this),width:"full"},this._translations.close))))}_filterModal(){const t=this._layerExpressions?.length>0;return s("calcite-dialog",{class:"filter-content-space",heading:this._translations?.filter?.replace("{{title}}",this._layer?.title),id:"solutions-filter-dialog",kind:"brand",modal:!0,onCalciteDialogClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},this._mapExtentFilter(),t&&s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:async()=>this._closeFilter(),comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:this._handleFilterListReset.bind(this),onFilterUpdate:async()=>{const t=this._filterList.filterCount>0||this._mapExtentFilterChecked;await(this._layerTable?.filterUpdate(t)),await this._mapCard.updateFilterState(t)},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._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0))}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.resetFilter(),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.appLayout="splitView"):this._isPortraitMobile=!1,this._layoutMode=this._isPortraitMobile?l.HORIZONTAL:l.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_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{appLayout:["appLayoutWatchHandler"],enableZoom:["enableZoomWatchHandler"],locale:["localeWatchHandler"]}}};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}.position-sticky{position:sticky}.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}.z-index-1{z-index:1 !important}.filter-content-space{--calcite-dialog-content-space:0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}";export{d as crowdsource_manager}
@@ -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,c as i,g as s,h as e}from"./p-e996c38f.js";import{l as a,g as h}from"./p-404cbf48.js";import{P as l}from"./p-bf04c6f4.js";import{g as n,c,h as o}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-db3391b9.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";import"./p-80cb7c73.js";const r=class{constructor(s){t(this,s),this.featureSelect=i(this,"featureSelect",7),this.selectedLayerId=void 0,this.mapView=void 0,this.noFeaturesFoundMsg=void 0,this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.locale=void 0,this.sortingInfo=void 0,this.whereClause=void 0,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.reportingOptions=void 0,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=void 0,this._translations=void 0}get el(){return s(this)}Color;esriConfig;symbolUtils;reactiveUtils;_popupUtils;_selectedLayer;_highlightHandle;_filterByMapExtentHandle;_highlights;_pagination;_calciteList;_validFieldTypes=["small-integer","integer","big-integer","single","long"];_abbreviatedLikeCount;_likeFieldAvailable=!1;_searchExpression;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async selectedLayerWatchHandler(){this._selectedLayer=await n(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentHandler(t){t?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(t){if(t&&this._pagination){const t={target:{startItem:this._pagination.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}featureSelect;async componentWillLoad(){await this.initModules(),await this._getTranslations(),this._isLoading=this.showInitialLoading,this._popupUtils=new l,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await n(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async componentDidLoad(){await this.initializeFeatureItems()}render(){const t=this._canShowFullTextSearch();return e("calcite-panel",{key:"465989fd2befec544d5a49a355a70dc13b6962dc","full-height":!0,"full-width":!0},t&&e("calcite-input",{key:"b09776016a6d854336b44bbfcb98eabbd50d1e95",class:"search",clearable:!0,icon:"search",onCalciteInputChange:this._searchTextChanged.bind(this),placeholder:this._searchPlaceHolder,title:"",type:"search"}),this._isLoading&&e("calcite-loader",{key:"ac945c628e55c6dff43701c39d33c6a3a9ff8874",label:"",scale:"m"}),this.showErrorWhenNoFeatures&&0===this._featureItems.length&&!this._isLoading&&e("calcite-notice",{key:"00cb64af86c8cd8600cdf435f918131cc3e66a38",class:"error-msg",icon:"feature-details",kind:"info",open:!0},e("div",{key:"29b8bd85b3cb55c6bfb6adc282f8e69a7f9ea2ce",slot:"message"},this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg)),e("calcite-list",{key:"002f3171e10af68d189c71dbd9fa86d3106f13a2",class:"small"!==this.textSize||this.showFullTitle?"":"overflow-hidden",label:"",ref:t=>this._calciteList=t,"selection-appearance":"border","selection-mode":"none"},!this._isLoading&&this._featureItems.length>0&&this._featureItems),this._featuresCount>this.pageSize&&e("div",{key:"3df744fa6f86db8c092e10dee631907516985fc5",class:"width-full",slot:"footer"},e("calcite-pagination",{key:"0221928e0266e4b57c7ce5a34aa8ec758864312f",class:"pagination","full-width":!0,onCalcitePaginationChange:this.pageChanged.bind(this),"page-size":this.pageSize,ref:t=>this._pagination=t,"start-item":"1","total-items":this._featuresCount})))}async initModules(){const[t,i,s,e]=await a(["esri/Color","esri/config","esri/symbols/support/symbolUtils","esri/core/reactiveUtils"]);this.Color=t,this.esriConfig=i,this.symbolUtils=s,this.reactiveUtils=e}async getWhereCondition(){let t="1=1";if(this.whereClause&&(t=this.whereClause),this._selectedLayer?.definitionExpression&&(t=t+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){const i=await c(this.mapView,this.selectedLayerId);i?.filter?.where&&(t=t+" AND "+i.filter.where)}return t}async initializeFeatureItems(){if(this._selectedLayer){this._pagination?.goTo("start"),this._isLoading=this.showInitialLoading,this._featureItems=await this.queryPage(0);const t={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView.extent:null};this._featuresCount=await this._selectedLayer.queryFeatureCount(t),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=this.reactiveUtils.when((()=>this.mapView.stationary),(()=>{this.initializeFeatureItems()}),{initial:!0})}async pageChanged(t){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=null);const i=t.target.startItem-1;this._featureItems=await this.queryPage(i),this._isLoading=!1}_canShowFullTextSearch(){return((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._selectedLayer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._selectedLayer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let t=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){const i=this._selectedLayer.createQuery();i.fullText=this._fullTextSearchInfo,t=await this._selectedLayer.queryObjectIds(i),await this._updateSearchDefinitionExpression(t?.length?t:[-1])}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(t){const i=this._selectedLayer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._selectedLayer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_clearSearchDefinitionExpression(){const t=this._selectedLayer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._selectedLayer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}async featureClicked(t,i){if(this.clearHighlights(),this.highlightOnMap){const i=Number(t.target.value),s=await c(this.mapView,this.selectedLayerId);this._highlightHandle=await o([i],s,this.mapView,!0)}await this.emitSelectedFeature(i)}async emitSelectedFeature(t){const i=t.layer,s=i.createQuery();s.returnGeometry=!0,s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this.featureSelect.emit(e.features[0])}async onFeatureHover(t){if(this.clearHighlights(),this.highlightOnHover){const i=t.getObjectId(),s=await c(this.mapView,this.selectedLayerId);this._highlights&&(s.highlights=JSON.parse(this._highlights)),s.highlightOptions={color:new this.Color("#FFFF00")},this._highlights=JSON.stringify(s.highlights),this._highlightHandle=s.highlight([i])}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(t){const i=this._selectedLayer,s=this.sortingInfo?.field?this.sortingInfo.field:i.objectIdField,e=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),h={start:t,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView.extent:null};s&&e&&(h.orderByFields=[s.toString()+" "+e]);const l=await i.queryFeatures(h);return await this.createFeatureItem(l)}async createFeatureItem(t){const i=t?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId].like,e=i.map((async t=>{const i=await this._popupUtils.getPopupTitle(t,this.mapView.map);let e,a;if(this.showUserImageInList){const i=this._selectedLayer.editFieldsInfo?.creatorField;i&&(e=await this.getUserInformation(t))}return this.showFeatureSymbol&&(a=await this.getFeatureSymbol(t)),s&&this.getAbbreviatedLikeCount(t),this.getFeatureItem(t,i,a,e)}));return Promise.all(e)}getAbbreviatedLikeCount(t){const i=this._selectedLayer,s=this.reportingOptions[i.id].likeField;i.fields.forEach((e=>{if(this._validFieldTypes.indexOf(e.type)>-1&&e.name===s&&this.reportingOptions[i.id].like){this._likeFieldAvailable=!0;let i=t.attributes[s]||0;i>999&&(i=i>999999?this._translations.millionsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e6).toString()):this._translations.thousandsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e3).toString())),this._abbreviatedLikeCount=i}}))}getFeatureItem(t,i,s,a){const h=t.attributes[this._selectedLayer.objectIdField].toString();i=i??h;const l=Number(t.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString(),n="small"!==this.textSize||this.showFullTitle?"small"===this.textSize?"feature-list-popup-title-small":"feature-list-popup-title":"feature-list-popup-title-small-ellipsis",c=this._calciteList.offsetWidth-(this.showUserImageInList?115:65);return e("calcite-list-item",{onCalciteListItemSelect:i=>{this.featureClicked(i,t)},onMouseLeave:()=>{this.clearHighlights()},onMouseOver:()=>{this.onFeatureHover(t)},value:h},this.showUserImageInList&&e("calcite-avatar",{class:"profile-img","full-name":a?.fullName,scale:"m",slot:"content-start",thumbnail:a?.userProfileUrl,userId:a?.id,username:a?.fullName?a.username:void 0}),this.showFeatureSymbol&&e("div",{class:"feature-symbol",ref:t=>t&&t.replaceChildren(s),slot:"content-start"}),e("div",{class:`popup-title ${n}`,slot:"content-start",style:{maxWidth:"large"===this.textSize?"none":`${c}px`}},i),this._likeFieldAvailable&&e("div",{class:"like-container",id:h.concat("like"),slot:"content-end"},e("span",null,this._abbreviatedLikeCount),e("calcite-icon",{icon:"thumbs-up",scale:"s"}),e("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":h.concat("like")},l)),e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}async getUserInformation(t){let i=this._selectedLayer.editFieldsInfo?.creatorField;t.attributes.hasOwnProperty(i.toLowerCase())?i=i.toLowerCase():t.attributes.hasOwnProperty(i.toUpperCase())&&(i=i.toUpperCase());let s=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${t.attributes[i]}?f=json&returnUserLicensedItems=true`;const e=this.mapView.map.portalItem.portal?.credential?.token;e&&(s+=`&token=${e}`);const a=await fetch(s),h=await a.json();let l=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${h?.username??t.attributes[i]}/info/blob.png`;return h?.access&&e&&(l+=`?token=${e}`),h.userProfileUrl=l,h}async getFeatureSymbol(t){const i=document.createElement("div");return await this.symbolUtils.getDisplayedSymbol(t).then((async t=>{if(t&&await(this.symbolUtils?.renderPreviewHTML(t,{node:i})),i.children?.length){const t=i.children[0];if(t){const i=Number(t.getAttribute("height")),s=Number(t.getAttribute("width"));s>30&&t.setAttribute("width","30"),i>30&&t.setAttribute("height","30"),t.setAttribute("viewBox",`0 0 ${s} ${i}`)}}})),i}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],selectedLayerId:["selectedLayerWatchHandler"],sortingInfo:["sortingInfoWatchHandler"],whereClause:["whereClauseHandler"],filterByMapExtent:["filterByMapExtentHandler"]}}};r.style=":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap !important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{padding:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray !important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3)}";export{r as feature_list}
@@ -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,c as i,g as e,h as s,H as a}from"./p-e996c38f.js";import{g as h}from"./p-404cbf48.js";import{g as n,d as o,n as l}from"./p-dcd2f00b.js";import{s as r}from"./p-e6859850.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-8717729a.js";const c=class{constructor(e){t(this,e),this.beforeLayerSelectionChange=i(this,"beforeLayerSelectionChange",7),this.idsFound=i(this,"idsFound",7),this.noLayersFound=i(this,"noLayersFound",7),this.layerSelectionChange=i(this,"layerSelectionChange",7),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.height=void 0,this.isMobile=void 0,this.locale=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=void 0,this.showTablesDisabled=void 0,this.showSingleLayerAsLabel=!1,this.type="select",this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=void 0,this.ids=[],this.selectedName="",this._translations=void 0}get el(){return e(this)}defaultLayerHonored=!1;_layerElement;_layerNameHash;_skipEditCheck=!1;_tableNameHash;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this._setLayers(),this.ids.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(t,i=!1){this._skipEditCheck=i,this._setSelectedLayer(t),this._skipEditCheck=!1}async setLayerByIds(t,i=!1){this._skipEditCheck=i,this._layerSelectionChange(t),this._skipEditCheck=!1}async updateLayer(){this._setSelectedLayer(this.ids[0])}beforeLayerSelectionChange;idsFound;noLayersFound;layerSelectionChange;async componentWillLoad(){await this._getTranslations(),await this._setLayers()}async componentWillRender(){if(this.ids.length>0||1===this.selectedIds.length){const t=1===this.selectedIds.length?this.selectedIds[0]:this.ids[0];if(t!==this.selectedIds[0])this._setSelectedLayer(t);else{const t=await n(this.mapView,this.selectedIds[0]);this.selectedName=t?.title}}}render(){const t="map-layer-picker";let i=this.height>0?{height:`${this.height.toString()}px`}:{};return i={...i,display:this.display},s(a,{key:"a4d7a923fcf0b6ec488fafa3af8b3c3a9599d61a"},s("div",{key:"54d5cde231707391537fbd649647a5b9e86a1ab3",class:"map-layer-picker-container",style:i},s("div",{key:"1d1329f393778e561bfed22a1c1542cd75d4b55b",class:"map-layer-picker",style:i},this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():"combobox"===this.type?this._getCombobox(t):"select"===this.type?this._getSelect(t):this._getDropdown(t):this._getInvalidPlaceholder())))}async componentDidLoad(){if(this.ids.length>0||1===this.selectedIds.length){const t=1===this.selectedIds.length?this.selectedIds[0]:this.ids[0];"select"===this.type?this._layerElement.value=t:"dropdown"===this.type&&(this.selectedName=Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t].name:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t].name:"")}}_getInvalidPlaceholder(){return s("div",null,s("calcite-notice",{class:"height-100",icon:"exclamation-mark-triangle",id:"no-valid-layers",kind:"danger",open:!0},s("div",{slot:"message"},this._translations.noLayersFound)),s("calcite-tooltip",{label:this._translations.enableEditUpdate,placement:"bottom","reference-element":"no-valid-layers"},s("span",null,this._translations.enableEditUpdate)))}_getSingleLayerPlaceholder(){const t=this._getItemTypeIcon();return s("div",{class:"layer-picker-label-container cursor-default"},s("calcite-icon",{icon:t,scale:"s"}),s("calcite-label",{class:"no-bottom-margin padding-start-1"},this.selectedName))}_getSelect(t){return s("calcite-select",{id:t,label:"",onCalciteSelectChange:()=>this._layerSelectionChange(),ref:t=>{this._layerElement=t},scale:this.scale},this._getMapLayerOptions())}_getCombobox(t){return s("calcite-combobox",{clearDisabled:!0,id:t,label:"",onCalciteComboboxChange:()=>this._layerSelectionChange(),"placeholder-icon":this.placeholderIcon,ref:t=>{this._layerElement=t},scale:this.scale,"selection-mode":"single"},this._getMapLayerOptions())}_getDropdown(t){return s("calcite-dropdown",{class:"layer-picker-dropdown",onCalciteDropdownBeforeClose:()=>this._isDropdownOpen=!1,onCalciteDropdownBeforeOpen:()=>this._isDropdownOpen=!0},this.isMobile?this._getDropdownButton():this._getActionDropdownButton(t),s("calcite-dropdown-group",{"selection-mode":"single"},this._getMapLayerOptions()))}_getActionDropdownButton(t){return s("calcite-action",{id:t,slot:"trigger",text:""},this._getDropdownButton())}_getDropdownButton(){const t=this._getItemTypeIcon();return s("calcite-button",{alignment:"icon-end-space-between",appearance:this.appearance,class:this.isMobile?"":"max-width-350",iconEnd:this._isDropdownOpen?"chevron-up":"chevron-down",iconStart:t,kind:"neutral",slot:this.isMobile?"trigger":"",width:"full"},s("div",null,this.selectedName))}_getItemTypeIcon(){let t="layers";if(this.selectedIds.length>0&&this._layerNameHash){const i=this.selectedIds[0];t=Object.keys(this._layerNameHash).indexOf(i)>-1?"layers":"table"}return t}_getMapLayerOptions(){return this.ids.reduce(((t,i)=>(this._validLayer(i)?t.push(this._getItem(i,"layer")):this._validTable(i)&&t.push(this._getItem(i,"table")),t)),[])}_getItem(t,i){const e="layer"===i?this._layerNameHash[t]:this._tableNameHash[t],a=!!this.onlyShowUpdatableLayers&&!e.supportsUpdate,h=e.name,n=this.selectedIds.indexOf(t)>-1;return"combobox"===this.type?s("calcite-combobox-item",{disabled:a,selected:n,textLabel:h,value:t}):"select"===this.type?s("calcite-option",{disabled:a,label:h,selected:n,value:t}):s("calcite-dropdown-group",{class:a?"disabled":"",selectionMode:a?"none":"single"},s("calcite-dropdown-item",{disabled:"table"===i&&this.showTablesDisabled,"icon-start":i,onClick:a?void 0:()=>{this._setSelectedLayer(t)},selected:n},h))}_setSelectedLayer(t){let i;this.defaultLayerId&&!this.defaultLayerHonored&&(i=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=void 0!==i,t=this.defaultLayerHonored?this.defaultLayerId:t),i=i||this._getLayerFromHash(t),(this._skipEditCheck||!this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:t,ref:this.el}).defaultPrevented)&&(this.selectedName=i?.name,this.selectedIds=[t],this.layerSelectionChange.emit(this.selectedIds))}_getLayerFromHash(t){return Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t]:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();const t=this.onlyShowUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash),i=this.showTables?this.onlyShowUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[];this.ids=[...t.reverse().filter((t=>!(this.enabledLayerIds?.length>0)||this.enabledLayerIds.reverse().indexOf(t)>-1)),...i.reverse().filter((t=>!(this.enabledTableIds?.length>0)||this.enabledTableIds.reverse().indexOf(t)>-1))],this.idsFound.emit({layerIds:t,tableIds:i})}}_getEditableIds(t){return Object.keys(t).reduce(((i,e)=>(t[e].supportsUpdate&&i.push(e),i)),[])}async _initLayerTableHash(){this._layerNameHash=await o(this.mapView,this.onlyShowUpdatableLayers),this._tableNameHash=this.showTables?await l(this.mapView,this.onlyShowUpdatableLayers):{}}_validLayer(t){const i=this._layerNameHash[t]?.name;return i&&Object.keys(r.managedLayers).indexOf(i)<0&&(!(this.enabledLayerIds.length>0)||this.enabledLayerIds.indexOf(t)>-1)}_validTable(t){const i=this._tableNameHash[t]?.name,e=i&&this.showTables;return e?r.managedTables.indexOf(i)<0&&(!(this.enabledTableIds.length>0)||this.enabledTableIds.indexOf(t)>-1):e}_layerSelectionChange(t){const i=t||(Array.isArray(this._layerElement.value)?this._layerElement.value:[this._layerElement.value]);if(JSON.stringify(i)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:i,ref:this.el}).defaultPrevented)return;this.selectedIds=i,this.layerSelectionChange.emit(this.selectedIds)}}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=":host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom:0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}";export{c as map_layer_picker}
@@ -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 i,c as t,g as e,h as s,H as a}from"./p-e996c38f.js";import{a as h,l,g as n}from"./p-404cbf48.js";import{e as o,h as r,i as c,j as d,c as p,k as b,l as g,m as f}from"./p-dcd2f00b.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-e6859850.js";import{d as v,a as _}from"./p-db3391b9.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0}get el(){return e(this)}_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"a5001c196db1464bffa746310638b2853ff5fdf9"},this._getMapLayerPicker(),s("div",{key:"3e023a81f76bdd371c84d9ecb42e97a9160c6f89",class:"border-bottom"}),s("div",{key:"c6be571bee2d2c1fe82407aee9a1cf9f1f27280d",class:"padding-top-sides-1"},s("div",{key:"aaf5992f616728f6be5be034700ac09b9b5b733f",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"a86b4e147b7baf4b93272bed7f189a47faf65ab8",class:t},s("map-draw-tools",{key:"9b3c2faaa8f612d055189206e2baeb868d55dceb",active:!0,class:i,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"73b3039f0861046a3f955872180b64c15bd5c5d9",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:i},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,h=e&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:h}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this.locale=void 0,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"2fd2ec44e8962468e3698b81e98746ddf6b7a3ca"},s("calcite-select",{key:"d24fca5c39aa358116ee8557249f7a4b09727b3f",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const x=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"8220100e14abd8339947a74df2d8072d06fb2a25"},s("div",{key:"1d7426778d638f347b563bfd29478fae7598e2dd",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"cfb649989c24c403bde7d358794933f8f7959bb8",class:"display-flex"},s("calcite-label",{key:"dce85bbfa526941a0fb46c1aeba57f4b028948ef",class:"font-bold width-full label-margin-0"},s("div",{key:"86c19198643381fd99681c53bf0b2b5e66ecf7dc",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"392022947cd9f53b4b83895992c5b0b32e56fb06",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"d0946a46e7a79fc613b9eb9aa3e6f896c12bef92",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"9963f5ca97481ca45f35b90045cd864f2feb6d42",closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"refine-input-layer"},s("span",{key:"e67b1770261fc0f147acc79c805eeb73932bf595",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"22e2aae1be025a115cf9f1d898888b78d90e3662",class:"padding-1"},s("div",{key:"d1930131978f7edc53db10baaa44f1e105a98e68",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"03a307eeaf42312eab41488443676407955089ab",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"7ff52920fa3da0f19215cb77d633beab1fae1148",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"38875379650fe63cf1b24f1e7999f41457dc3156",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"13e689528e58f405074b5144f96c90c558c09672",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"f4ebb951dd08a430fd4dd528dd3d4a69c3a3e41a",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"346c1e1e022fa21beb692b3770703243de74a5e1"},s("map-draw-tools",{key:"5b9334556aef8ac57ce6593eb290fb0c3d1169f1",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"9263c5740e0d5e8145336f8001688d420e43a325"}),s("calcite-list",{key:"f29edcd01d9f48b27181eda806fe492e917dadc3",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=g(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await f(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};x.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{S as map_select_tools,k as pdf_download,x as refine_selection}
@@ -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,c as i,g as e,h as s,F as a,H as h}from"./p-e996c38f.js";import{l as o,g as n}from"./p-404cbf48.js";import{a as d,g as c}from"./p-dcd2f00b.js";import{P as r}from"./p-bf04c6f4.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-db3391b9.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const l=class{constructor(e){t(this,e),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.drawComplete=i(this,"drawComplete",7),this.editingAttachment=i(this,"editingAttachment",7),this.progressStatus=i(this,"progressStatus",7),this.modeChanged=i(this,"modeChanged",7),this.customizeSubmit=!1,this.enableSearch=!1,this.enableSnapping=!1,this.floorLevel=void 0,this.formElements=void 0,this.isMobile=void 0,this.locale=void 0,this.mapView=void 0,this.searchConfiguration=void 0,this.selectedLayerId=void 0,this.showGuidingMsg=!0,this.showGuidingMsgWhileDrawing=!0,this.submitNewReportsMessage=void 0,this._currentPage="templatePicker",this._editorLoading=!1,this._translations=void 0}get el(){return e(this)}Editor;ExpressionInfo;FeatureLayer;FieldElement;FormTemplate;MapView;Search;_addingAttachment;_calciteNotice;_container;_editor;_isSubmitBtnClicked=!1;_mapViewContainer;reactiveUtils;_search;_searchDiv;_selectedLayer;_updatedMapView;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(t){if(t){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){const t={layer:this._selectedLayer,template:this._selectedLayer.templates[0]};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(t),await this.hideEditorsElements()}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(t){this._editor&&this._setFloorLevel(t)}success;fail;drawComplete;editingAttachment;progressStatus;modeChanged;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async componentDidLoad(){await this.init()}componentDidRender(){this.isMobile&&(this._mapViewContainer.style.top=`${this._calciteNotice.offsetHeight+this._searchDiv.offsetHeight+80}px`)}disconnectedCallback(){this._editor&&this._editor.destroy()}render(){const t="drawing"===this._currentPage?"":"display-none",i=this._editorLoading?"":"display-none",e=this._editorLoading?"display-none":"",h=this.isMobile?"show-map":"display-none";let o=this._translations.chooseCategoryMsg;return"drawing"===this._currentPage?o=this._translations.provideLocationMsg:"featureForm"===this._currentPage&&(o=this._translations.provideDetailsMsg),s(a,{key:"07a1a08a5cd9d8c439870a2500922fbd6839dac9"},this.showGuidingMsg&&(this.showGuidingMsgWhileDrawing||"drawing"!==this._currentPage)&&s("calcite-notice",{key:"5d846812fc38f9ca4e9bd997f5bc519fe8a4f21e",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0,ref:t=>this._calciteNotice=t},s("div",{key:"8ad1da020a728e19e5d2f3add15ec7c5a8bbdd9f",slot:"message"},o)),s("calcite-loader",{key:"39a0843ca8b16e60a7468908eb00d08a15703756",class:i,label:"",scale:"s"}),s("div",{key:"1ce7ea5afc559adc1b0d8d8d60696bcf5783453b",class:e,id:"feature-form"}),this.enableSearch&&s("div",{key:"e2832e4a615051a7d0a6cd29de348ef2d0c65cb9",class:`search-widget ${t} ${e}`,id:"search-widget-ref",ref:t=>this._searchDiv=t}),s("div",{key:"a3388a9cf013a7c7155119d12835dc996ec9c947",class:`${h}`,ref:t=>{this._mapViewContainer=t}}))}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){const[t,i,e,s,a,h,n]=await o(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=t,this.reactiveUtils=i,this.Search=e,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=h,this.MapView=n}async createMobileMapView(){this._mapViewContainer.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer,zoom:this.mapView.zoom}).when((t=>{this._updatedMapView=t,this._loadWidgets()}),(t=>{console.log(t)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();const t=[];this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar");const i=await d(this._updatedMapView);this._selectedLayer=await c(this.mapView,this.selectedLayerId),this._selectedLayer?.isTable||i.forEach((async i=>{t.push({layer:i,enabled:"feature"===i?.type&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this._editor=new this.Editor({view:this._updatedMapView,layerInfos:t,visibleElements:{settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping,createFeaturesSection:!0,editFeaturesSection:!1,flow:!1},container:this._container}),this._mapViewContainer?this.el.insertBefore(this._container,this._mapViewContainer):this.el.appendChild(this._container);const e=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(e);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&"create-features"!==this._editor.viewModel?.activeWorkflow?.type&&(this.progressStatus.emit(50),this._editorLoading=!0)}));this._editor.viewModel.addHandles(s);const a=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&(this._mapViewContainer?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this)),setTimeout((()=>{this._setFloorLevel(this.floorLevel)}),50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())}));this._editor.viewModel.addHandles(a);const h=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"creating-features"===t&&"disabled"===this._editor.viewModel.featureFormViewModel.state&&(this._mapViewContainer?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))}));this._editor.viewModel.addHandles(h)}async startCreate(){return await this.hideEditorsElements(),new Promise(((t,i)=>{if(this._editor.viewModel.featureTemplatesViewModel.items?.length){const e=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.on("select",(()=>{this.progressStatus.emit(75),setTimeout((()=>{this.hideEditorsElements().then((()=>{t({})}),(t=>i(t)))}),700)})),1===e.length&&this._editor.viewModel.featureTemplatesViewModel.select(e[0]);const s=e.length>1;this.hideEditorsElements().then((()=>{s&&t({})}),(t=>s&&i(t)))}}))}async createSearchWidget(){let t={view:this._updatedMapView};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(t),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let i=null;this._search.on("search-complete",(t=>{this._updatedMapView.goTo(t.results[0].results[0].extent),"point"===this._selectedLayer.geometryType&&(i=t.results[0].results[0]?.feature.geometry)}));const e=this.reactiveUtils.watch((()=>this._search.viewModel.state),(t=>{"ready"===t&&setTimeout((()=>{this._editor.viewModel.sketchViewModel.createGraphic&&i&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",i),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())}),100)}));this._search.viewModel.addHandles(e)}_getSearchConfig(t,i){const e=t.sources;return e?.length>0?(t.includeDefaultSources=!1,e.forEach((t=>{if(t.hasOwnProperty("layer")){const e=t,s=e.layer?.id,a=s?i.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.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}async _setFloorLevel(t){if(!t)return;const i=this._selectedLayer;if(i?.floorInfo?.floorField){const e=i.fields.find((t=>t.name===i.floorInfo.floorField));if(e&&!i?.formTemplate)this._editor.viewModel.featureFormViewModel.setValue(e.name,t),e.editable=!1;else if(i.formTemplate&&this.formElements){const e=new this.ExpressionInfo({expression:`"${t}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),s=new this.FieldElement({label:i.floorInfo.floorField,editableExpression:"false",fieldName:i.floorInfo.floorField,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:e.name});this._updatedMapView.map.editableLayers.forEach((t=>{const i=this.formElements.orgExpressionInfos,a=[...this.formElements.orgElements];a.push(s);const h=new this.FormTemplate({title:t.formTemplate.title,description:t.formTemplate.description,elements:a,expressionInfos:[e].concat(i)});t.formTemplate=h}))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],isMobile:["isMobileHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};l.style=":host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";const p=class{constructor(e){t(this,e),this.editsComplete=i(this,"editsComplete",7),this.deleteDialog=void 0,this.buttonType="button",this.disabled=!1,this.icon=void 0,this.ids=[],this.layer=void 0,this.locale=void 0,this._confirmDelete=!1,this._deleteEndabled=!1,this._supportsDelete=void 0,this._translations=void 0}get el(){return e(this)}async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}editsComplete;async componentWillLoad(){await this._getTranslations()}render(){return s(h,{key:"73d07f24703df76fdacc1b3a1ec80cfdd7bbee30"},"button"===this.buttonType?s("calcite-button",{appearance:"outline",disabled:!this._deleteEndabled,id:"solutions-delete",kind:"danger",onClick:()=>this._delete(),width:"full"},this._translations.deleteCount.replace("{{n}}",this.ids.length.toString())):s("calcite-action",{appearance:"solid",disabled:!this._deleteEndabled,id:this.icon,onClick:()=>this._delete(),scale:"s",text:this._translations.delete},s("calcite-button",{appearance:"transparent",iconStart:this.icon,kind:"danger"},this._translations.delete)),this._deleteMessage(),s("calcite-tooltip",{key:"803898895029bd098264b9144ff5ccee102d4ae8",placement:"bottom","reference-element":"button"===this.buttonType?"solutions-delete":this.icon},s("span",{key:"a920ffea1849667cd58812a2c1813d2e066f0064"},this._translations.delete)))}async componentDidLoad(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete,this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids.length>0}_delete(){this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:s("delete-dialog",{id:"solution-delete-dialog",ids:this.ids,layer:this.layer,locale:this.locale,onDeleteDialogClose:()=>this._confirmDelete=!1,open:this._confirmDelete})}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{ids:["idsWatchHandler"],layer:["layerWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:block}.delete-modal{position:fixed}";const f=class{constructor(e){t(this,e),this.closeEdit=i(this,"closeEdit",7),this.editorInitialized=i(this,"editorInitialized",7),this.editsComplete=i(this,"editsComplete",7),this.refreshGraphics=i(this,"refreshGraphics",7),this.enableEditGeometry=!1,this.enableSnapping=!1,this.graphicIndex=0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.open=!1,this._editorLoading=!1,this._translations=void 0}get el(){return e(this)}_activeWorkflowHandle;_addRelatedRecordHandle;_attachmentHandle;_editHandle;_layerEditHandle;Editor;_editor;_layer;_editContainer;_editControlElements;_editingDisabled;_shouldClose=!1;reactiveUtils;async graphicsWatchHandler(){0===this.graphics.length&&this.open&&await this._closeEdit(!0)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._initEditorWidget(),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1),t||await this._closeEdit(!0)}closeEdit;editorInitialized;editsComplete;refreshGraphics;async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async componentWillLoad(){await this._initModules(),await this._getTranslations()}async componentWillRender(){this.graphics?.length>0&&this.graphics[0]?.layer&&(this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove(),this._layerEditHandle=("subtype-sublayer"===this._layer.type?this._layer.parent:this._layer).on("edits",(()=>{this.editsComplete.emit()})))}render(){const t=this._editorLoading?"display-none":"position-absolute",i=this._editorLoading?"":"display-none";return s(h,{key:"bf9a2cc632deb0cc203f6a2fa837008f8e809482"},s("div",{key:"fa2ad6208c2274fe2982b71502d52694e3838162",class:"position-absolute"},this.graphics?.length>0&&this.graphics[0]&&this.graphics[0].layer.editingEnabled?void 0:s("calcite-notice",{kind:"warning",open:!0,slot:"content-top",width:"full"},s("div",{slot:"message"},this._translations.enableEditing)),s("div",{key:"98c1d2cb3dce8855b0c792328c893b6947e01f4c",class:"position-absolute"},s("div",{key:"ebf21d9145dabcc3b91a4fc44d3a3ae92a6ef5ea",class:t,id:"feature-form",ref:t=>this._editContainer=t}),s("calcite-loader",{key:"d3da2a76b0dda07540ca6f65a2f671e825af211a",class:i,label:"",scale:"s"}))))}async _initModules(){const[t,i]=await o(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}async _initEditorWidget(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){this._editor&&this._editor.destroy();const t=document.createElement("div"),i=(await d(this.mapView)).map((t=>({layer:t,geometryUpdatesEnabled:this.enableEditGeometry})));this._editor=new this.Editor({view:this.mapView,layerInfos:i,visibleElements:{flow:!0,settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping},container:t}),this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove()),this._attachmentHandle=this.reactiveUtils.when((()=>"adding-attachment"===this._editor.viewModel.state||"editing-attachment"===this._editor.viewModel.state||"creating-features"===this._editor.viewModel.state),(()=>{this._shouldClose=!1})),this._activeWorkflowHandle=this.reactiveUtils.watch((()=>this._editor.viewModel.activeWorkflow?.activeWorkflow),(t=>{"update-table-record"!==t?.type&&"create-features"!==t?.type||(this._shouldClose=!1),(t?.type||t?.hasPendingEdits||this._editor.activeWorkflow)&&this._editor?.activeWorkflow?.started||(this.open=!1)})),this.enableSnapping||t.classList.add("hide-editor-toolbar"),this._editContainer.appendChild(t),this.editorInitialized.emit(this._editor)}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor?.activeWorkflow?(this._editor.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.activeWorkflow.reset(),await this._editor.cancelWorkflow()),this._editor.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],open:["openWatchHandler"]}}};f.style=":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";const b=class{constructor(e){t(this,e),this.popupClosed=i(this,"popupClosed",7),this.clearSelection=i(this,"clearSelection",7),this.selectionChanged=i(this,"selectionChanged",7),this.enableEditGeometry=!1,this.enableSnapping=!1,this.graphics=void 0,this.isLoading=!1,this.isMobile=void 0,this.mapView=void 0,this.allowEditing=!0,this.highlightEnabled=!0,this.locale=void 0,this.paginationEnabled=!0,this.position="absolute",this.showCloseBtn=!1,this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._mobileTitle="",this._showListView=!1,this._translations=void 0,this._navigatedToRelatedFeature=void 0}get el(){return e(this)}Features;_editEnabled;_features;_layer;_popupUtils;_featuresNodeId="features-node"+(new Date).getMilliseconds().toString();reactiveUtils;_relatedFeature;async graphicsWatchHandler(){this._navigatedToRelatedFeature&&this._features&&(this._features.clear(),this._features.close(),this._count="",this._navigatedToRelatedFeature=!1),await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async localeWatchHandler(){if(this.el.lang=this.locale,await this._getTranslations(),this._features){const t=[...this.graphics];this.graphics=[],this.graphics=t}}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features.previous(),this._count=this._getCount()}async next(){this._features.next(),this._count=this._getCount()}async toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async updateCurrentGraphic(t){this._features.selectedFeatureWidget.graphic=t}popupClosed;clearSelection;selectionChanged;async closeEdit(){this._editRecordOpen=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(t){this._navigatedToRelatedFeature||(this.graphics=[...t.detail])}async componentWillLoad(){await this._initModules(),await this._getTranslations(),this._popupUtils=new r}async componentDidLoad(){this.graphics?.length>0&&await this.setGraphics()}render(){const t=this.isLoading?"":"display-none",i=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",e=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",a=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",o=this._features?.features?.length<2||this._navigatedToRelatedFeature,n=this.isMobile?"display-none":"",d=this._features?.selectedFeature?.getObjectId(),c=parseInt(d?.toString(),10)>-1?[d]:[],r=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete,l=this._relatedFeature?[this._relatedFeature]:this.graphics,p=this._navigatedToRelatedFeature?0:this._features?.selectedFeatureIndex;return s(h,{key:"5b379325eff02faa0cc5bb93b625f63e75dac557"},s("calcite-shell",{key:"ce3b54deb9c64f8f6a4ec58a8dce37bb738e1307",style:{position:this.position}},this._getHeader(),s("calcite-loader",{key:"3c2824073847b85b0a7a455c1e5ea1dc1d92169a",class:t,label:this._translations.fetchingData}),s("div",{key:"02645c7bc0a5e0c20a7888f6fc6e5ac0c913b908",class:"esri-widget feature-node "+i,id:this._featuresNodeId}),s("div",{key:"f7168748d005c4347295b9f85ebac29f49f197d2",class:`${a} width-100`,slot:"footer"},this.allowEditing&&s("div",{key:"5ff5d61eb97f46789d781ed1c7d3a446542f3a68",class:"display-flex top-border padding-1-2"},s("calcite-button",{key:"632f599ee2da0ea49baf4ee5fcff47434b3f2e8d",appearance:"solid",id:"solutions-edit",onClick:()=>this._openEditRecord(),width:"full"},this._translations.edit),this.isMobile&&r?s("delete-button",{class:"padding-inline-start-1 width-100",id:"solutions-delete",ids:c,layer:this._layer,locale:this.locale,onEditsComplete:()=>this._closePopup()}):void 0,s("calcite-tooltip",{key:"15673c1194d9ce01d6441330423352f54539158d",placement:"bottom","reference-element":"solutions-edit"},s("span",{key:"bf7f3c471e66a6902863a667642fb49eb2d98938"},this._translations.edit)),this.isMobile&&r?s("calcite-tooltip",{placement:"bottom","reference-element":"solutions-delete"},s("span",null,this._translations.delete)):void 0),this.paginationEnabled&&!o&&s("div",{key:"337417e71ee660dff91793b99a74983ca765d616",class:`display-flex padding-1-2 button-container top-border ${n}`},s("div",{key:"6425566f26dfd1a3e35b44823f7727ddffe80efc"},s("calcite-button",{key:"7f6cf491407741b95b3f1c2e1d533f903dd402a6",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-left",id:"solutions-back",onClick:()=>this._back(),width:"full"}),s("calcite-tooltip",{key:"1c209dd4229b3b3f1490563f722d19247454cb8f",placement:"top","reference-element":"solutions-back"},s("span",{key:"5cdbe55fddd53f430171e286ca0cf7785c564f92"},this._translations.back))),s("calcite-action",{key:"3964c9e101508084299235ab4e4e15dedd1cd3fd",class:"pagination-action",iconFlipRtl:!0,onClick:()=>this._toggleListView(),scale:"s",text:"",textEnabled:!0},s("span",{key:"3bc52707b7eac70e13caf9d2a24a09fc09456cf9",class:"pagination-count"},this._count)),s("div",{key:"7c70dd2f40d1b799aa5c053e623cd43dc1da1594"},s("calcite-button",{key:"9251259b306f5f0a13f953c742be7ea0606f1a2a",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-right",id:"solutions-next",onClick:()=>this._next(),width:"full"}),s("calcite-tooltip",{key:"4634f29cf4e5c212f1f0fd46c6e5505b2f0d8dfe",placement:"top","reference-element":"solutions-next"},s("span",{key:"f6480bb70598aa89547256af8867ab657e17aece"},this._translations.next))))),s("edit-card",{key:"467a508438eceac82d387238edfaf3da7c644da9",class:e,enableEditGeometry:this.enableEditGeometry,enableSnapping:this.enableSnapping,graphicIndex:p,graphics:l,locale:this.locale,mapView:this.mapView,open:this._editRecordOpen}),s("calcite-alert",{key:"53eba21ad693a3655d695fd1d1ae6211f7f1c68a",icon:"layer-broken",kind:"warning",label:"",onCalciteAlertClose:()=>this._alertClosed(),open:this._alertOpen,placement:"top"},s("div",{key:"01ecc5c16948cd9f140d523cdc21dee1e45b4bcc",slot:"title"},this._translations.editDisabled),s("div",{key:"ae30d08e51b01a2eb1c7d3a6f276ba15b7ccf849",slot:"message"},this._translations.enableEditing))))}async _initModules(){const[t,i]=await o(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=t,this.reactiveUtils=i}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[0],this.mapView.map),this._features.open({features:this.graphics})):(this._features.clear(),this._features.close()),this._count=this._getCount()}async _initFeaturesWidget(){return void 0!==this.isMobile?await(this.mapView?.when((()=>{this._features?(this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=this.showCloseBtn,this._features.visibleElements.heading=!this.isMobile):(this._features=new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:this.showCloseBtn,featureMenuHeading:!1,heading:!this.isMobile}}),this._features.viewModel.highlightEnabled=this.highlightEnabled,this.reactiveUtils.watch((()=>this._features.viewModel.featureMenuOpen),(t=>{this._count=this._getCount(),t||(this._showListView=t)})),this.reactiveUtils.watch((()=>this._features.selectedFeatureIndex),(t=>{t>-1&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})})),this.reactiveUtils.watch((()=>this._features.selectedDrillInFeature),(t=>{t?(this._relatedFeature=t,this._navigatedToRelatedFeature=!0):(this._relatedFeature=null,this._navigatedToRelatedFeature=!1)})),this.el.querySelector("#"+this._featuresNodeId).addEventListener("calciteFlowItemClose",(()=>{this.clearSelection.emit()})))}))):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?s("calcite-panel",{class:"border-width-0",slot:"header"},s("calcite-action",{class:"end-border",icon:"chevron-left",iconFlipRtl:!0,onClick:()=>this._closePopup(),scale:"s",slot:"header-actions-start",text:""}),s("span",{class:"font-bold",slot:"header-content"},this._mobileTitle)):void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}_back(){this._features.previous(),this._count=this._getCount()}_next(){this._features.next(),this._count=this._getCount()}_getCount(){const t=(this._features?.viewModel.selectedFeatureIndex+1).toString(),i=this._features?.features?.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}_toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};b.style=":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.feature-node{position:relative !important}.feature-node .esri-features__footer{display:none !important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}";export{l as create_feature,p as delete_button,f as edit_card,b as info_card}
@@ -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,c as i,g as s,h as e,H as a,F as h}from"./p-e996c38f.js";import{l,g as o}from"./p-404cbf48.js";import{g as n,a as c,b as r,c as d,h as u,d as p,q as f}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.locale=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage=void 0,this.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=25,this._updatedSorting=void 0,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1}get el(){return s(this)}_createFeature;_currentFeatureId;_defaultCenter;_defaultLevel;_editableLayerIds;_featureDetails;_featureList;_currentFeature;_selectedRelatedFeature;_relatedTable;_filterList;_highlightHandle;_layerList;_createRelatedFeature;_layers;_mapChange;_mapClickHandle;reactiveUtils;FeatureFilter;_selectedFeature;_selectedFeatureIndex;_selectedLayerId;_shareNode;_urlParamsLoaded;_validLayers;_nonVisibleValidLayers;_selectedLayer;_layerItemsHash;_showFullPanel;_floorExpression;_formElements=[];_prevSelectedLayerId;_currentLayerExpressions;_initDefExpressions;_t9nLayerExpressions;async isMobileWatchHandler(t){this.updatePanelState(!1,this._showFullPanel),t&&"filter-panel"===this._flowItems[this._flowItems.length-1]?(await this.backFromFilterPanel(),this._filterOpen=!0):!t&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{this.setInitExpressions(),await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await n(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&await this._layerList.refresh(),this._featureList&&this._featureList.refresh(),this._createFeature&&this._createFeature.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await(this._featureList?.refresh())}async showFeatureSymbolWatchHandler(){await(this._featureList?.refresh())}async updateLayerExpressionsT9n(t){if(this._t9nLayerExpressions=t||this.layerExpressions,null!=this._filterList)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(null!=this._currentLayerExpressions){const t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}togglePanel;async componentWillLoad(){this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(this.mapView?.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],this.setInitExpressions(),await this.setMapView()})))}componentWillRender(){(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"11cf5f3a1674460c6ab9d2979d621417431e7130"},this._reportSubmitted&&e("calcite-alert",{key:"ab40068608e235cbbeda293d62f501c1bcc2a123","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:"91e436fa80c41457465f0816b66e205793f5a91d",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"6dbcd02898e6328f343af94985f069d8261dce1f","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"fc97e5f02b5241af076243b7fa8bb19f29c3dad6",slot:"title"},this._translations.error),e("div",{key:"9583f6bd62f2a36c50e8309a353dd634300aa835",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"0d216fc75481b249ee63468b2c0145ed7f09d09e","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"700a788d9f0f12200bee0625576571a8c352a6a1",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"28ef0e56c42d3d366e33374368461eba9bb5e896","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"90e8757ee650b3f55c456d0fd56a45dac6df263e",slot:"title"},this._translations.error),e("div",{key:"b819d951be7340af388767b40e423a279b33ea85",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"167d0cb576feaaa77279110ab40df63e1a6146ae"},e("calcite-shell",{key:"b4d83790aa3a47a9c336821c54bc3e0fa1d9e308","content-behind":!0},this._getReporter())),this.isMobile&&this.filterModal())}async _initModules(){const[t,i]=await l(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=t,this.FeatureFilter=i}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await n(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{this._nonVisibleValidLayers.find((t=>t.id===i.id))||i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":t.push(this.getFilterPanel());break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,t?.length>0&&t):e("calcite-loader",{label:"",scale:"m"}))}filterModal(){return(this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[]).length>0&&e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._filterActive=!1,this._featureList.refresh()},onFilterUpdate:()=>this._handleFilterUpdate(this._filterList?.filterCount>0),ref:t=>this._filterList=t,resetBtn:!0,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return e("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"bottom-start",pointerDisabled:!0,referenceElement:"sort-popover"},e("calcite-list",{label:"","selection-mode":"single-persist"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")},selected:"newest"===this._updatedSortOption,value:"newest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")},selected:"oldest"===this._updatedSortOption,value:"oldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","highestVoted")},selected:"highestVoted"===this._updatedSortOption,value:"highestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","lowestVoted")},selected:"lowestVoted"===this._updatedSortOption,value:"lowestVoted"}))))}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(t){this._showLoadingIndicator=!0,this._filterActive=t,await this._featureList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader,selected:"layer-list"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,locale:this.locale,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"reporting-layer-list"===this._flowItems[this._flowItems.length-1]},e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},this._translations.chooseCategoryMsg)),e("layer-list",{class:"height-full",layers:t,locale:this.locale,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this),selected:"feature-create"===this._flowItems[this._flowItems.length-1]},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("create-feature",{customizeSubmit:!0,enableSearch:!0,enableSnapping:this.enableSnapping,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onModeChanged:this.backFromCreateFeaturePanel.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId,submitNewReportsMessage:this.submitNewReportsMessage})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList&&await this._layerList.refresh(),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(t){this._nonVisibleValidLayers.find((t=>t.id===this._selectedLayerId))&&this._selectedLayer.set("visible",t)}async layerListLoaded(t){if(this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]||"feature-list"===this._flowItems[0]){const i=t.detail,s=await c(this.mapView),e=[];this._validLayers=[],this._nonVisibleValidLayers=[],s.forEach((t=>{i.includes(t.id)&&(this._validLayers.push(t),t.visible||this._nonVisibleValidLayers.push(t),this._getLayersConfig(t.id)?.reporting&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}}async displayFeaturesList(t){await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}updateSortingOptions(){const t=""===this.sortOption?"newest":this.sortOption,i="oldest"===t||"lowestVoted"===t?"asc":"desc",s=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"";this._updatedSorting={field:"newest"===t||"oldest"===t?this._selectedLayer.objectIdField:s,order:i},this._updatedSortOption=s||"highestVoted"!==t&&"lowestVoted"!==t?t:"newest"}async backFromFilterPanel(){null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),await this._featureList.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),"reporting-layer-list"!==t[t.length-1]&&("feature-create"!==t[t.length-1]||"feature-list"!==t[0]&&"feature-list"!==t[t.length-2])||this.updatePanelState(this._sidePanelCollapsed,!1),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(t,i){this._sidePanelCollapsed=t,this._showFullPanel=i,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=await r(this.mapView);t.relationships.some((s=>{const e=i.filter((i=>t.url===i.url&&i.layerId===s.relatedTableId));if(e&&e.length>0)return this._relatedTable=e[0],!0}))}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){const s=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,a=this._currentLayerExpressions?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:!this.isMobile&&this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-list"===this._flowItems[this._flowItems.length-1]},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),a&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&s&&e("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,highlightOnHover:!0,locale:this.locale,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,reportingOptions:this.reportingOptions,selectedLayerId:t,showFeatureSymbol:this.showFeatureSymbol,sortingInfo:this._updatedSorting})))}getFilterPanel(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromFilterPanel.bind(this),selected:"filter-panel"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",disabled:!this._filterActive,onClick:this.resetFilterList.bind(this),width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromFilterPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList?.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!1,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}getFeatureDetailsFlowItem(){const t=this._getLayersConfig(this._selectedLayerId)?.comment&&this._selectedLayer.relationships.length>0&&this._relatedTable;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",enableSnapping:this.enableSnapping,graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,locale:this.locale,mapView:this.mapView,onAddComment:this.showAddCommentsPanel.bind(this),onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLikeOrDislikeClicked:()=>{this._featureList.refresh(!0)},onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions,showFullCommentTitle:this.showFullCommentTitle,showUserImageInCommentsList:this.showUserImageInCommentsList}),t&&e("calcite-button",{appearance:"solid",onClick:this.showAddCommentsPanel.bind(this),slot:"footer",width:"full"},this.commentButtonText||this._translations.comment)))}getFeaturesPagination(){return e("div",{class:"feature-pagination"},e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),e("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},e("span",null,this._translations.back))),e("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},e("span",{class:"pagination-count"},this._getCount())),e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),e("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},e("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"comment-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,enableSnapping:this.enableSnapping,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this),selected:"add-comment"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),e("calcite-panel",null,e("create-related-feature",{customizeSubmit:!0,enableSnapping:this.enableSnapping,locale:this.locale,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){if(this._currentFeature=t,t&&t.layer){const i=t.layer;this.setSelectedLayer(i.id,i.title),this._currentFeatureId=t.attributes[i.objectIdField],this._getLayersConfig(i.id)?.comment&&i.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),1===this._editableLayerIds?.length?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>!this._validLayers.includes(t.layer)&&t?.layer?.popupEnabled&&t?.layer?.id));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_updateFloorDefinitionExpression(t){const i=`${t.floorInfo.floorField} = '${this.floorLevel}'`,s=t.definitionExpression;t.definitionExpression=s?.indexOf(this._floorExpression)>-1?s.replace(this._floorExpression,i):i,this._floorExpression=i}_getFormElements(){const t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i&&this.floorLevel&&t?.formTemplate){const i=this._formElements.find((i=>i.id===t.id));0!==this._formElements.length&&i||this._formElements.push({id:t.id,orgElements:t.formTemplate.elements,orgExpressionInfos:t.formTemplate.expressionInfos})}}reduceToConfiguredLayers(t,i){return Object.keys(t).reduce(((s,e)=>{const a=this.reportingOptions?this._getLayersConfig(e)?.visible:t[e].supportsAdd;return!i.includes(e)&&a&&s.push(e),s}),[])}refreshLists(){setTimeout((()=>{this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50)}async _updateFeatures(){for(const t of this._editableLayerIds){const i=await d(this.mapView,t);await this._showMyFeaturesOnly(i);const s=i.layer?.floorInfo?.floorField;s&&this.floorLevel&&this._updateFloorDefinitionExpression(i.layer)}}async _showMyFeaturesOnly(t){const i=this.mapView.map.portalItem.portal?.credential?.userId;if(i){const s=t.layer.editFieldsInfo?.creatorField.toLowerCase();t.filter=this.showMyReportsOnly&&s?new this.FeatureFilter({where:s+"='"+i+"'"}):null}}async getLayersToShowInList(){const t=await p(this.mapView,!0),i=await c(this.mapView),s=[];i.forEach((i=>{"feature"===i?.type&&i?.editingEnabled&&i?.capabilities?.operations?.supportsAdd&&(t[i.id].supportsAdd=!0),i?.editingEnabled||s.push(i.id)})),this._editableLayerIds=this.reduceToConfiguredLayers(t,s),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title),this.updateSortingOptions(),this.handleSelectedLayersFilter()}_updateShareURL(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._selectedLayerId?i.searchParams.set("layerid",this._selectedLayerId):i.searchParams.delete("layerid"),this._selectedFeature?.length?i.searchParams.set("oid",this._currentFeatureId):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await n(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){const t=this.layerExpressions?structuredClone(this.layerExpressions.filter((t=>t.id===this._selectedLayerId))):[];null!=this._t9nLayerExpressions&&this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){const t=await n(this.mapView,this._prevSelectedLayerId);t&&(t.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList?.forceReset(),null!=this._selectedLayer&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(null==this._selectedLayer)return;const t=[];if(this._currentLayerExpressions?.length>0){const i=this._currentLayerExpressions[0];for(const s of i.expressions){const{active:i,definitionExpression:e}=s;i&&e&&t.push(`(${e})`)}this._filterActive=t.length>0,this.updateFilterLayerDefExpression(t,i.operator)}}updateFilterLayerDefExpression(t,i){const s=this._initDefExpressions[this._selectedLayerId],e=t?.length>0&&null!=s?`(${t.join(i)}) AND (${s})`:t.length>0?t.join(i):s;this._selectedLayer.definitionExpression=e}setInitExpressions(){if(this._initDefExpressions={},null==this.mapView)return;const t=this.mapView.map;t.allLayers.concat(t.allTables).forEach((t=>{"feature"===t.type&&(this._initDefExpressions[t.id]=t.definitionExpression)}))}handleLayerExpressionsT9n(t,i){t?.forEach((t=>{const s=i?.find((i=>i.id===t.id));null!=s&&(t.title=s.title,t.expressions?.forEach((t=>{const i=s.expressions?.find((i=>i.id===t.id));null!=i&&(t.name=i.name)})))}))}static get watchers(){return{isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"],filterByMapExtent:["filterByMapExtentChangeWatchHandler"],layerExpressions:["layerExpressionsWatchHandler"],showFeatureSymbol:["showFeatureSymbolWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
@@ -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,c as i,g as s,h as e,F as a}from"./p-e996c38f.js";import{l as h,g as n,f as c}from"./p-404cbf48.js";import{b as o,d as l,a as r,c as d}from"./p-dcd2f00b.js";import{e as p}from"./p-0a24ad5f.js";import"./p-80cb7c73.js";import"./p-d4056c1c.js";const f=class{constructor(s){t(this,s),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.isActionPending=i(this,"isActionPending",7),this.formReady=i(this,"formReady",7),this.customizeSubmit=!1,this.enableSnapping=!1,this.locale=void 0,this.mapView=void 0,this.selectedFeature=void 0,this.showGuidingMsg=!0,this.table=void 0,this._editorLoading=!1,this._translations=void 0}get el(){return s(this)}Editor;reactiveUtils;_addingAttachment;_container;_editor;_isSubmitBtnClicked=!1;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async _editorLoadingWatchHandler(t){t&&(this._container?.classList.add("display-none"),await this.startCreate(),this._container?.classList.remove("display-none"),this._editorLoading=!1)}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}success;fail;isActionPending;formReady;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async init(){this.mapView&&await this.createEditorWidget()}async initModules(){const[t,i]=await h(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}render(){const t=this._editorLoading?"":"display-none";return e(a,{key:"5251d18b13ed90499cd960305773b6fb04efd4db"},this.showGuidingMsg&&e("calcite-notice",{key:"9f2902f8dab476734d3a70fad4e5cc7996f721a8",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{key:"650f56b689cde544c96e24a966da7283efcdfcbe",slot:"message"},this._translations.provideDetailsMsg)),e("calcite-loader",{key:"be4c67978909e7dcf18fe8dece831b8830dee5d1",class:t,label:"",scale:"s"}))}async componentDidLoad(){await this.init()}disconnectedCallback(){this._editor&&this._editor.destroy()}async createEditorWidget(){this._editor&&this._editor.destroy(),this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar"),this._editor=new this.Editor({view:this.mapView,visibleElements:{flow:!0,settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping},container:this._container}),this.el.appendChild(this._container);const t=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&(this._editorLoading=!0)}));this._editor.viewModel.addHandles(t);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&this.formReady.emit()}));this._editor.viewModel.addHandles(s)}async startCreate(){const t=this.selectedFeature.layer,i=this.table,s=t.relationships[0],e=i.relationships.find((i=>t.layerId===i.relatedTableId)),a=await t.queryFeatures({objectIds:[this.selectedFeature.getObjectId()],outFields:[t.objectIdField,s.keyField]}),h=i.templates[0],n={attributeOverrides:this.makeAttributesForRelatedFeature(a.features[0],s,e),layer:i,template:h};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(n),await this.hideEditorsElements(),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}makeAttributesForRelatedFeature(t,i,s){const e=i.keyField;let a;t.attributes.hasOwnProperty(e)?a=t.getAttribute(e):t.attributes.hasOwnProperty(e.toLowerCase())?a=t.getAttribute(e.toLowerCase()):t.attributes.hasOwnProperty(e.toUpperCase())&&(a=t.getAttribute(e.toUpperCase()));let h=s.keyField;const n=this.table.fields.find((t=>t.name.toLocaleLowerCase()===h.toLocaleLowerCase()));return h=n.name,{[h]:a}}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};f.style=":host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";const y=class{constructor(s){t(this,s),this.loadingStatus=i(this,"loadingStatus",7),this.commentSelect=i(this,"commentSelect",7),this.addComment=i(this,"addComment",7),this.likeOrDislikeClicked=i(this,"likeOrDislikeClicked",7),this.featureSelectionChange=i(this,"featureSelectionChange",7),this.enableSnapping=!1,this.mapView=void 0,this.graphics=void 0,this.reportingOptions=void 0,this.layerItemsHash=void 0,this.locale=void 0,this.showUserImageInCommentsList=!1,this.showFullCommentTitle=!0,this._likeFieldAvailable=!1,this._likeCount=0,this._disLikeCount=0,this._dislikeFieldAvailable=!1,this._commentsAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._relatedFeaturesOIDs=void 0,this._updating=!1}get el(){return s(this)}_infoCard;_commentsList;_selectedGraphic;_likeField;_dislikeField;Graphic;RelationshipQuery;_validFieldTypes=["small-integer","integer","big-integer","single","long"];relatedTableId;async graphicsWatchHandler(){await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}async refresh(t){await this.getCompleteGraphic(t),await this.processComments(),this.isLikeDislikeConfigured(t.layer)?t&&this.graphics.length>1&&this.checkLikeDislikeFields():(this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1)}async back(){this._infoCard.back()}async next(){this._infoCard.next()}async toggleListView(){this._infoCard.toggleListView()}loadingStatus;commentSelect;addComment;likeOrDislikeClicked;featureSelectionChange;async componentWillLoad(){await this._initModules(),await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}render(){const t=this._relatedFeaturesOIDs?.length>0?`objectId in(${this._relatedFeaturesOIDs})`:"1=0";return e("calcite-panel",{key:"9fea2f56281419fd95720cd6b0f7369017d975b0","full-height":!0},e("info-card",{key:"ae9f7a316ba49b59dbbfaeb011aa3475b70f809b",allowEditing:!1,enableSnapping:this.enableSnapping,graphics:this.graphics,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,onSelectionChanged:t=>{this.featureSelectionChange.emit(t.detail)},paginationEnabled:!1,position:"relative",ref:t=>this._infoCard=t}),(this._likeFieldAvailable||this._dislikeFieldAvailable||this._commentsAvailable)&&e("div",{key:"7da88cf71d12c05321895a04d8e4039d74a466e9",class:"buttons-container"},this._commentsAvailable&&e("calcite-button",{key:"ebc7b32a69c551fe8e2a8dd10d69cde8b9078e4f",appearance:"transparent",iconEnd:"speech-bubble",kind:"neutral",onClick:()=>{this.addComment.emit()},scale:"m"},this._relatedFeaturesOIDs.length),this._likeFieldAvailable&&e("calcite-button",{key:"ef43f47829ebb6b04dbaaf7a20ee9848d9c21c87",appearance:"transparent",iconEnd:"thumbs-up",kind:this._isLikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onLikeButtonClick.bind(this),scale:"m"},this._likeCount??this._selectedGraphic.attributes[this._likeField]??0),this._dislikeFieldAvailable&&e("calcite-button",{key:"64651be363c2d1a5083002dcad4bff4d040a396a",appearance:"transparent",iconEnd:"thumbs-down",kind:this._isDislikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onDislikeButtonClick.bind(this),scale:"m"},this._disLikeCount??this._selectedGraphic.attributes[this._dislikeField]??0)),this.relatedTableId&&this._commentsAvailable&&e("feature-list",{key:"fff5e1ce72310a5a41b2223578165011026e1b8c",class:"height-full",locale:this.locale,mapView:this.mapView,onFeatureSelect:t=>{this.commentSelect.emit(t.detail)},pageSize:5,ref:t=>this._commentsList=t,selectedLayerId:this.relatedTableId,showErrorWhenNoFeatures:!1,showFullTitle:this.showFullCommentTitle,showInitialLoading:!1,showUserImageInList:this.showUserImageInCommentsList,textSize:"small",whereClause:t}))}async _initModules(){const[t,i]=await h(["esri/rest/support/RelationshipQuery","esri/Graphic"]);this.RelationshipQuery=t,this.Graphic=i}async getCompleteGraphic(t){if(t){const i=t.layer,s=i.createQuery();s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this._selectedGraphic=e.features[0]}}async processComments(){const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]&&this.reportingOptions[t.id].comment&&t.relationships?.length>0){const i=await o(this.mapView);let s=null,e=null;if(t.relationships.some((a=>{const h=i.filter((i=>t.url===i.url&&i.layerId===a.relatedTableId));if(h&&h.length>0)return s=h[0],e=a.id,!0})),this.relatedTableId=s?.id??"",this.relatedTableId){const i=this._selectedGraphic.attributes[t.objectIdField],a=new this.RelationshipQuery({objectIds:[i],outFields:["*"],relationshipId:e}),h=await t.queryRelatedFeatures(a).catch((t=>{console.error(t)})),n=[];h[i]&&h[i].features.forEach((t=>{n.push(t.attributes[s.objectIdField])})),this._relatedFeaturesOIDs=n,this._commentsAvailable=!0}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1,this.relatedTableId=""}isLikeDislikeConfigured(t){let i=!1,s=!1;if(this.reportingOptions&&this.reportingOptions[t.id]){if(!this.reportingOptions[t.id].like&&!this.reportingOptions[t.id].dislike)return!1;const e=this.reportingOptions[t.id].likeField,a=this.reportingOptions[t.id].dislikeField;if(!e&&!a)return!1;t.fields.forEach((h=>{this._validFieldTypes.indexOf(h.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(h.name===e&&this.reportingOptions[t.id].like?i=!0:h.name===a&&this.reportingOptions[t.id].dislike&&(s=!0))}))}return i||s}checkLikeDislikeFields(){this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._likeCount=0,this._disLikeCount=0;const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]){if(this._likeField=this.reportingOptions[t.id].likeField,this._dislikeField=this.reportingOptions[t.id].dislikeField,!this._likeField&&!this._dislikeField)return;t.fields.forEach((i=>{this._validFieldTypes.indexOf(i.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(i.name===this._likeField&&this.reportingOptions[t.id].like?(this._likeFieldAvailable=!0,this._likeCount=this._selectedGraphic.attributes[i.name]):i.name===this._dislikeField&&this.reportingOptions[t.id].dislike&&(this._dislikeFieldAvailable=!0,this._disLikeCount=this._selectedGraphic.attributes[i.name]))})),this.getFromLocalStorage()}}onLikeButtonClick(){this._isDislikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].dislike&&this.onDislikeButtonClick(),this._isLikeBtnClicked=!this._isLikeBtnClicked,this._isLikeBtnClicked?this._likeCount++:this._likeCount--,this.updateFeaturesLikeDislikeField(this._likeField,this._isLikeBtnClicked)}onDislikeButtonClick(){this._isLikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].like&&this.onLikeButtonClick(),this._isDislikeBtnClicked=!this._isDislikeBtnClicked,this._isDislikeBtnClicked?this._disLikeCount++:this._disLikeCount--,this.updateFeaturesLikeDislikeField(this._dislikeField,this._isDislikeBtnClicked)}async updateFeaturesLikeDislikeField(t,i){const s={},e=this._selectedGraphic.layer;this._updating=!0;const a=this._selectedGraphic;a.attributes[t]=Number(a.attributes[t])+(i?1:-1),s[e.objectIdField]=a.attributes[e.objectIdField],s[t]=a.attributes[t];const h=new this.Graphic;h.attributes=s;const n={updateFeatures:[h]};await e.applyEdits(n).then((()=>{this._selectedGraphic=a,this.setInLocalStorage(),this._updating=!1,this.likeOrDislikeClicked.emit()}),(t=>{this._updating=!1,console.log(t)}))}getFromLocalStorage(){const t=localStorage[this._selectedGraphic.layer.id];if(t){const i=JSON.parse(t).filter((t=>t.id===this._selectedGraphic.getObjectId()));i.length>0&&(this._isLikeBtnClicked=i[0].like,this._isDislikeBtnClicked=i[0].dislike)}}setInLocalStorage(){const t=this._selectedGraphic.layer.id,i=localStorage[t];let s=[];if(i){s=JSON.parse(i);const t=s.findIndex((t=>t.id===this._selectedGraphic.getObjectId()));t>=0&&s.splice(t,1)}s.push({id:this._selectedGraphic.getObjectId(),like:this._isLikeBtnClicked&&0!==this._likeCount,dislike:this._isDislikeBtnClicked&&0!==this._disLikeCount}),localStorage.setItem(t,JSON.stringify(s))}static get watchers(){return{graphics:["graphicsWatchHandler"]}}};y.style=":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}";const b=class{constructor(s){t(this,s),this.layerSelect=i(this,"layerSelect",7),this.layersListLoaded=i(this,"layersListLoaded",7),this.mapView=void 0,this.layers=void 0,this.locale=void 0,this.showFeatureCount=!0,this.showNextIcon=!1,this.applyLayerViewFilter=!1,this.filterByMapExtent=!1,this._noLayersToDisplay=!1,this._mapLayerIds=[],this._isLoading=!1,this._translations=void 0}get el(){return s(this)}_layerItemsHash;reactiveUtils;_filterByMapExtentHandle;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}filterByMapExtentWatchHandler(t){t?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(){await this.setLayers()}layerSelect;layersListLoaded;async componentWillLoad(){await this.initModules(),await this._getTranslations(),this.filterByMapExtent&&this.initializeMapExtentFilter()}async componentDidLoad(){await this.setLayers()}render(){return e(a,{key:"ac83dce884ea72ee461cc628efb51bce08cf4ce5"},this._isLoading&&e("calcite-loader",{key:"77d15458f7a081acdae63f26ffaf7b2a5ca143ec",label:"",scale:"m"}),!this._isLoading&&this.mapView&&this._noLayersToDisplay&&e("calcite-notice",{key:"d48169628cdaf271a1263f1ef3218a98e64897f1",class:"error-msg",icon:"layers-reference",kind:"danger",open:!0},e("div",{key:"e5568829b5c90524f0d9313e4812d30837609db2",slot:"title"},this._translations.error),e("div",{key:"13f04655936656439c1119c56a0f7f919994f402",slot:"message"},this._translations.noLayerToDisplayErrorMsg)),!this._isLoading&&this.mapView&&e("calcite-list",{key:"b20eeb9052c5f75a2bf798e797ec928d37729484",label:"","selection-appearance":"border","selection-mode":"none"},this.renderLayerList()))}async initModules(){const[t]=await p.exports.loadModules(["esri/core/reactiveUtils"]);this.reactiveUtils=t}initializeMapExtentFilter(){this._filterByMapExtentHandle=this.reactiveUtils.when((()=>this.mapView.stationary),(()=>{this.setLayers()}),{initial:!0})}async setLayers(){this.mapView&&(this._isLoading=!0,await this.initLayerHash(),this._isLoading=!1)}async initLayerHash(){const t=[];this._layerItemsHash=await l(this.mapView,!0);const i=await r(this.mapView);for(const s of i)if("feature"===s?.type&&this.showFeatureCount){const i=s.createQuery();if(s?.definitionExpression&&(i.where=i.where+" AND "+s.definitionExpression),this.applyLayerViewFilter){const t=await d(this.mapView,s.id);t?.filter?.where&&(i.where=i.where?i.where+" AND "+t.filter.where:t.filter.where)}i.geometry=this.filterByMapExtent?this.mapView.extent:null;const e=s.queryFeatureCount(i);t.push(e),e.then((async t=>{const i=isNaN(t)?"":await c(t,{places:0,api:4,type:"decimal"});this._layerItemsHash[s.id].formattedFeatureCount=i}))}await Promise.all(t).then((()=>{const t=this.getLayersToBeShownInList(this._layerItemsHash);this._mapLayerIds=t.reverse(),this.handleNoLayersToDisplay()}),(()=>{this._mapLayerIds=[],this.handleNoLayersToDisplay()}))}handleNoLayersToDisplay(){this._noLayersToDisplay=!(this._mapLayerIds.length>0),this.layersListLoaded.emit(this._mapLayerIds)}getLayersToBeShownInList(t){const i=this.layers?.length>0?this.layers:[];return Object.keys(t).reduce(((t,s)=>(i.indexOf(s)>-1&&t.push(s),t)),[])}renderLayerList(){return this._mapLayerIds.length>0&&this._mapLayerIds.reduce(((t,i)=>(this._layerItemsHash[i]&&t.push(this.getLayerListItem(i)),t)),[])}getLayerListItem(t){const i=this._layerItemsHash[t].formattedFeatureCount;return e("calcite-list-item",{onCalciteListItemSelect:()=>{this.onLayerItemSelected(t)}},e("div",{class:"layer-name",slot:"content-start"},this._layerItemsHash[t].name),this.showFeatureCount&&void 0!==i&&""!==i&&e("div",{class:"feature-count",slot:"content-end"},"("+i+")"),this.showNextIcon&&e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}onLayerItemSelected(t){this.layerSelect.emit({layerId:t,layerName:this._layerItemsHash[t].name})}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],filterByMapExtent:["filterByMapExtentWatchHandler"]}}};b.style=":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;word-break:break-word}.feature-count{padding:0 10px}";export{f as create_related_feature,y as feature_details,b as layer_list}