@esri/solutions-components 1.1.0-next.20250828.3 → 1.1.0-next.20250905

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 (661) hide show
  1. package/dist/cdn/22JTGM73.js +18 -0
  2. package/dist/cdn/{A5MN3FJK.js → 25MZT7YW.js} +2 -2
  3. package/dist/cdn/{ZKOPINVK.js → 26MLFCTY.js} +3 -3
  4. package/dist/cdn/{WGKFJJUF.js → 2A52HLM5.js} +2 -2
  5. package/dist/cdn/{ODEG3YPB.js → 2AYD4RQR.js} +2 -2
  6. package/dist/cdn/{LXI36PTZ.js → 2DFNGIAQ.js} +2 -2
  7. package/dist/cdn/{KVMH4HXL.js → 2K7BVMKV.js} +2 -2
  8. package/dist/cdn/{YIY5UZCD.js → 2ORLAM54.js} +1 -1
  9. package/dist/cdn/{UPB7KL3C.js → 2OT6WVXM.js} +2 -2
  10. package/dist/cdn/{T3Y7DBDZ.js → 2P7CUF2B.js} +2 -2
  11. package/dist/cdn/{IPP6MHZZ.js → 2PFOEZPK.js} +1 -1
  12. package/dist/cdn/{UCANSYGX.js → 2R4ZIC2S.js} +3 -3
  13. package/dist/cdn/{A46MEFSC.js → 2SHXA3EX.js} +2 -2
  14. package/dist/cdn/{53HOAC4M.js → 347G4Y7R.js} +2 -2
  15. package/dist/cdn/{XSPR7FOX.js → 34BPIDX7.js} +2 -2
  16. package/dist/cdn/{AOODXGZD.js → 36BVYJXM.js} +2 -2
  17. package/dist/cdn/{OJCJO5GJ.js → 3727NMZ5.js} +2 -2
  18. package/dist/cdn/{FPXYEWGL.js → 3CTFFS53.js} +2 -2
  19. package/dist/cdn/{EOF73S3W.js → 3F5GRRGA.js} +2 -2
  20. package/dist/cdn/{S2WQF5IV.js → 3FUV4UKU.js} +1 -1
  21. package/dist/cdn/{LWRMKXDB.js → 3GWGHAO3.js} +2 -2
  22. package/dist/cdn/{6YSCLVG6.js → 3IW3PMWM.js} +2 -2
  23. package/dist/cdn/{YOBVNLTW.js → 3P2LFBXL.js} +2 -2
  24. package/dist/cdn/{DEDT5ZS3.js → 3PPJ5ZNF.js} +1 -1
  25. package/dist/cdn/{XCBKY64Z.js → 3QP5F7DO.js} +2 -2
  26. package/dist/cdn/{CAFUFJEW.js → 43ZTCWWS.js} +2 -2
  27. package/dist/cdn/{DVFCPWTO.js → 46KDXE6D.js} +2 -2
  28. package/dist/cdn/{4L2J4EQ3.js → 4AKLB2P4.js} +2 -2
  29. package/dist/cdn/{FCUM2HGN.js → 4COBV3FI.js} +2 -2
  30. package/dist/cdn/{RTHTZBAM.js → 4IEPHLPS.js} +2 -2
  31. package/dist/cdn/{OQBRCQWA.js → 4QDXVRTA.js} +2 -2
  32. package/dist/cdn/{CIQKQ6RN.js → 4TH2YVT7.js} +2 -2
  33. package/dist/cdn/{BOYDM5JQ.js → 4YDCHDJO.js} +2 -2
  34. package/dist/cdn/{O6XE67YA.js → 52D57WKO.js} +1 -1
  35. package/dist/cdn/{OL7J5XK5.js → 52RT2SXU.js} +2 -2
  36. package/dist/cdn/{F7II3F2E.js → 5BECYB6G.js} +2 -2
  37. package/dist/cdn/{MB5KJATU.js → 5LOW2GI7.js} +2 -2
  38. package/dist/cdn/{DPM6X6AH.js → 5NKSBQHI.js} +3 -3
  39. package/dist/cdn/{3HA7SGPW.js → 5PBYULFS.js} +2 -2
  40. package/dist/cdn/{W55JNYI3.js → 5PXS5XMQ.js} +2 -2
  41. package/dist/cdn/{XZJPMNRH.js → 5SHDZLP7.js} +1 -1
  42. package/dist/cdn/{36HKSHCY.js → 5TGQYG5Q.js} +2 -2
  43. package/dist/cdn/{MJYMP3FG.js → 5UQSWK6B.js} +2 -2
  44. package/dist/cdn/{CBIEH24O.js → 5XU6T3HW.js} +2 -2
  45. package/dist/cdn/5ZGNBX36.js +4 -0
  46. package/dist/cdn/{ZPZHTXSK.js → 5ZP4SMAV.js} +2 -2
  47. package/dist/cdn/{SF7WNX6Q.js → 62WWNHGG.js} +1 -1
  48. package/dist/cdn/{67RKZKW2.js → 6EHAOA4G.js} +2 -2
  49. package/dist/cdn/{SEEVJD66.js → 6GX74CAB.js} +2 -2
  50. package/dist/cdn/{3JX2YRMJ.js → 6ICGDQ32.js} +1 -1
  51. package/dist/cdn/6M3ITM33.js +18 -0
  52. package/dist/cdn/{22MHJ4OI.js → 6M6DIALZ.js} +2 -2
  53. package/dist/cdn/{3OERLKU3.js → 6TDS7SQW.js} +2 -2
  54. package/dist/cdn/{IPA3HCQQ.js → 6TGM4RLH.js} +2 -2
  55. package/dist/cdn/{W277RO4E.js → 6UZZUQLN.js} +2 -2
  56. package/dist/cdn/6VHVSVZT.js +4 -0
  57. package/dist/cdn/{F3GSH22G.js → 6Y3KJ5ME.js} +2 -2
  58. package/dist/cdn/{FVZ3AMRJ.js → 6ZD5S4BZ.js} +2 -2
  59. package/dist/cdn/{75UGKEZV.js → 774OWFT2.js} +2 -2
  60. package/dist/cdn/7FQHD5HC.js +18 -0
  61. package/dist/cdn/{FQ2NDIPB.js → 7FTHI456.js} +2 -2
  62. package/dist/cdn/{VJWUPMEH.js → 7NLYMTU6.js} +2 -2
  63. package/dist/cdn/{AZEHABI2.js → 7PHWPQCI.js} +2 -2
  64. package/dist/cdn/{YBYTJCOZ.js → 7SUGOFCF.js} +2 -2
  65. package/dist/cdn/{MY6LYJTC.js → 7VVSXMO5.js} +2 -2
  66. package/dist/cdn/{TXDLAYOX.js → A4V4JMFF.js} +2 -2
  67. package/dist/cdn/{SJQPCSH5.js → A54UINZP.js} +2 -2
  68. package/dist/cdn/{4PYM5SJK.js → AA4O5ORW.js} +2 -2
  69. package/dist/cdn/{3KIR4QAP.js → ABZK5BNL.js} +2 -2
  70. package/dist/cdn/{3PN2SI7I.js → AF526DRY.js} +2 -2
  71. package/dist/cdn/{66B2OTXR.js → AIYMJOWE.js} +2 -2
  72. package/dist/cdn/{6OYFRBKR.js → AKQRSHTH.js} +1 -1
  73. package/dist/cdn/{CKSVEYLO.js → AMLOFDGX.js} +2 -2
  74. package/dist/cdn/{PLFLLO4D.js → AROQGV5W.js} +2 -2
  75. package/dist/cdn/{Y5D6TWTQ.js → AWLR7Q3D.js} +1 -1
  76. package/dist/cdn/{YSDCMUZM.js → B33YKFE4.js} +2 -2
  77. package/dist/cdn/{AKFCRO4O.js → B3Z3GINZ.js} +2 -2
  78. package/dist/cdn/{ZJL3RISP.js → BLFFMWLR.js} +3 -3
  79. package/dist/cdn/{5UVEP7R7.js → BN73SAWX.js} +2 -2
  80. package/dist/cdn/{5KI6TDLC.js → BNFR4PLQ.js} +1 -1
  81. package/dist/cdn/{COSA2DDX.js → BOMPJ2K5.js} +2 -2
  82. package/dist/cdn/C5OUO6IT.js +21 -0
  83. package/dist/cdn/C65CV5MP.js +4 -0
  84. package/dist/cdn/{JIAIW5D6.js → CBCAA7KH.js} +2 -2
  85. package/dist/cdn/CJLMB2PR.js +4 -0
  86. package/dist/cdn/{YRKX32VX.js → CNWAWURO.js} +2 -2
  87. package/dist/cdn/{7H3HRS57.js → CROZSKWI.js} +2 -2
  88. package/dist/cdn/{RMZS4KKA.js → CWK5V334.js} +2 -2
  89. package/dist/cdn/{D24LZUS7.js → CXHVM3II.js} +2 -2
  90. package/dist/cdn/{EMZS5WUW.js → D3D23XU2.js} +1 -1
  91. package/dist/cdn/{TWHEILUF.js → D5GQJJHN.js} +2 -2
  92. package/dist/cdn/{XX2JVDLX.js → D5MEROEO.js} +2 -2
  93. package/dist/cdn/{NAIK2PL5.js → D7NRDTRP.js} +2 -2
  94. package/dist/cdn/{REWR6UGE.js → DB3TYTHH.js} +2 -2
  95. package/dist/cdn/{D3DMS7SO.js → DCER3S5B.js} +2 -2
  96. package/dist/cdn/{IFM7IMYQ.js → DH5XW4RN.js} +2 -2
  97. package/dist/cdn/{HRDX7ZFK.js → DLDXG4OJ.js} +2 -2
  98. package/dist/cdn/{J56VVCGM.js → DPFYNLMM.js} +1 -1
  99. package/dist/cdn/{5URF2E7I.js → DQE3D7Y2.js} +2 -2
  100. package/dist/cdn/{CWWXDSTF.js → DRLAKC4X.js} +2 -2
  101. package/dist/cdn/DTQCUUU5.js +4 -0
  102. package/dist/cdn/DTXDWMX2.js +18 -0
  103. package/dist/cdn/{BSQT6JEE.js → DXTBZKSW.js} +2 -2
  104. package/dist/cdn/{S3K4FP25.js → DXTR64JL.js} +2 -2
  105. package/dist/cdn/{A7PECSUO.js → DYS7AEXN.js} +2 -2
  106. package/dist/cdn/{CX4GRISJ.js → DYUKA5C4.js} +2 -2
  107. package/dist/cdn/{RPZAV34T.js → E2I7T2B6.js} +2 -2
  108. package/dist/cdn/{QOGZT6XO.js → E6C3UMMA.js} +2 -2
  109. package/dist/cdn/{U53CMMX5.js → ECQ2WPNB.js} +2 -2
  110. package/dist/cdn/{E5MVGSGH.js → EGC35ZI2.js} +3 -3
  111. package/dist/cdn/{7PJWALIQ.js → ELZYZSVP.js} +2 -2
  112. package/dist/cdn/{5RK26RYH.js → ESQNDBIY.js} +2 -2
  113. package/dist/cdn/{MYZXZO4Y.js → ESVOBO5W.js} +2 -2
  114. package/dist/cdn/{7LQ32BF5.js → ET3WYYRR.js} +2 -2
  115. package/dist/cdn/{OFHMW2BA.js → FA62EKGA.js} +2 -2
  116. package/dist/cdn/{U42MDYXJ.js → FAZZUIAX.js} +2 -2
  117. package/dist/cdn/{E6JVOY2Y.js → FBUHOTOD.js} +1 -1
  118. package/dist/cdn/{MDPG5JQG.js → FDPQYZ4Z.js} +2 -2
  119. package/dist/cdn/{KCNPSZXU.js → FG73OAKU.js} +2 -2
  120. package/dist/cdn/{RABLP5NF.js → FJAH2GX7.js} +2 -2
  121. package/dist/cdn/{R4OMMKHF.js → FKHBLIQQ.js} +1 -1
  122. package/dist/cdn/{MV5NCPN6.js → FLK2R7QH.js} +2 -2
  123. package/dist/cdn/{EHMTROM5.js → FNRSKUVI.js} +2 -2
  124. package/dist/cdn/FOIG735X.js +18 -0
  125. package/dist/cdn/{HNF2FWJ4.js → FRDEVVNN.js} +2 -2
  126. package/dist/cdn/{A6UGZIBN.js → FTUEWWW5.js} +2 -2
  127. package/dist/cdn/{Q6OSLQD2.js → FUL2NK4K.js} +1 -1
  128. package/dist/cdn/FV4KPNGO.js +4 -0
  129. package/dist/cdn/{XH33OUB5.js → FYGYDPHE.js} +2 -2
  130. package/dist/cdn/{AFYHTTJT.js → G3KC4GEY.js} +2 -2
  131. package/dist/cdn/{K2QH5ATL.js → G3LQGQ6V.js} +2 -2
  132. package/dist/cdn/{6YSLBLM7.js → G56WDIAV.js} +2 -2
  133. package/dist/cdn/G5A22SV5.js +4 -0
  134. package/dist/cdn/{DR7BMOTL.js → GG743HIZ.js} +1 -1
  135. package/dist/cdn/{IT4POVOR.js → GIKWDNYI.js} +2 -2
  136. package/dist/cdn/{VOXOOOP5.js → GQYRYXL7.js} +2 -2
  137. package/dist/cdn/GVTQVUVB.js +4 -0
  138. package/dist/cdn/{XXOJGNIY.js → GWSFGUNP.js} +2 -2
  139. package/dist/cdn/{R3B33LPO.js → H3WO6UOU.js} +2 -2
  140. package/dist/cdn/{AIGTIFJD.js → H53GJLIP.js} +2 -2
  141. package/dist/cdn/{NJGDMUMQ.js → HBRZZXWE.js} +2 -2
  142. package/dist/cdn/{ZCZ4245H.js → HHBQB6DH.js} +2 -2
  143. package/dist/cdn/{USW5VCDT.js → HIDCDMUO.js} +2 -2
  144. package/dist/cdn/{HIRCPMKK.js → HJZGENZU.js} +2 -2
  145. package/dist/cdn/{4UPJSAOG.js → HLITYRLW.js} +2 -2
  146. package/dist/cdn/{NC6MDYQK.js → HN2WMMDH.js} +2 -2
  147. package/dist/cdn/{QU2UOZE5.js → HNLGNAG3.js} +2 -2
  148. package/dist/cdn/{ZMA2HYPY.js → HNUARLMB.js} +2 -2
  149. package/dist/cdn/{TWU4IG5N.js → HPKZOSZN.js} +1 -1
  150. package/dist/cdn/{3NMS353D.js → HQE5OYM7.js} +2 -2
  151. package/dist/cdn/{XRRFFRAY.js → HSXKUK7B.js} +2 -2
  152. package/dist/cdn/{FK7AYZDA.js → HT3ZESSQ.js} +2 -2
  153. package/dist/cdn/{O72MZJBW.js → HTA3S7I5.js} +2 -2
  154. package/dist/cdn/{KEHHJO2Z.js → HVFESSR4.js} +2 -2
  155. package/dist/cdn/{RDBMRUOU.js → HZMIO5EV.js} +2 -2
  156. package/dist/cdn/{465CDARV.js → HZRANTOP.js} +2 -2
  157. package/dist/cdn/{NGCJEYPI.js → I3WXQAPD.js} +2 -2
  158. package/dist/cdn/{C3ABGUIC.js → I3YDCR27.js} +2 -2
  159. package/dist/cdn/{JMVZQ22X.js → IHMI2YDE.js} +2 -2
  160. package/dist/cdn/{NH6EWIZJ.js → IOTGTOD3.js} +2 -2
  161. package/dist/cdn/{G7XVWOS2.js → IQYI244Q.js} +2 -2
  162. package/dist/cdn/{UCOY7HIX.js → IUV7LSHR.js} +2 -2
  163. package/dist/cdn/{ONMEGFON.js → J3JGFZ7H.js} +2 -2
  164. package/dist/cdn/{RGUJVKYG.js → J4GMJ6ML.js} +2 -2
  165. package/dist/cdn/{35N246XD.js → JETKST77.js} +2 -2
  166. package/dist/cdn/{E6OVGF67.js → JGKUG3GZ.js} +2 -2
  167. package/dist/cdn/{7O64U4GK.js → JJNXEMEP.js} +2 -2
  168. package/dist/cdn/{7YHNMISC.js → JKGAC4U6.js} +2 -2
  169. package/dist/cdn/{QFLDQEZY.js → JKTBSXWH.js} +2 -2
  170. package/dist/cdn/JMVWCJRT.js +4 -0
  171. package/dist/cdn/JZKKL437.js +4 -0
  172. package/dist/cdn/{LJPOFYKO.js → K4WRFE6P.js} +2 -2
  173. package/dist/cdn/{U4GUZD2C.js → K62POZKS.js} +2 -2
  174. package/dist/cdn/{K7GNVAIR.js → K67RCJAP.js} +4 -4
  175. package/dist/cdn/{FN6N7TVF.js → K7ATEP4Q.js} +2 -2
  176. package/dist/cdn/{WUZCQEEC.js → KID3MD3Q.js} +1 -1
  177. package/dist/cdn/{J4S44RWO.js → KKTH2KKW.js} +2 -2
  178. package/dist/cdn/{SBKZPO2W.js → KPYYHXTL.js} +2 -2
  179. package/dist/cdn/{Z236NM4N.js → KQU2C53P.js} +2 -2
  180. package/dist/cdn/{MHMW3ZM7.js → KQWIBRU4.js} +2 -2
  181. package/dist/cdn/KRRRUF4E.js +4 -0
  182. package/dist/cdn/{XLKQC7AO.js → KVEASJ3I.js} +2 -2
  183. package/dist/cdn/{VCUF5KRT.js → KW6PXZN7.js} +2 -2
  184. package/dist/cdn/{BWAUIS5N.js → KWUICNHW.js} +2 -2
  185. package/dist/cdn/KXWIMC7I.js +4 -0
  186. package/dist/cdn/{S6PYX5OO.js → L4KSFD6E.js} +2 -2
  187. package/dist/cdn/{4EO4D66J.js → LCNVH37A.js} +2 -2
  188. package/dist/cdn/{7BNBS5PK.js → LHAPWCUP.js} +2 -2
  189. package/dist/cdn/{MCF3YD5O.js → LOHEB4GD.js} +2 -2
  190. package/dist/cdn/{BK57XJLV.js → LROE6UDT.js} +2 -2
  191. package/dist/cdn/{PHO74YB4.js → LWBAUDAM.js} +2 -2
  192. package/dist/cdn/{FKKE74W6.js → M67U3E7V.js} +2 -2
  193. package/dist/cdn/{LADDBGJH.js → M755RBFJ.js} +4 -4
  194. package/dist/cdn/{O7MTIXVI.js → MCGQAU2V.js} +2 -2
  195. package/dist/cdn/{LD2QHCA2.js → MCUFFKPW.js} +1 -1
  196. package/dist/cdn/{R7INKHED.js → MKELHTT6.js} +2 -2
  197. package/dist/cdn/{QWGDL5QI.js → MVLRWGXS.js} +2 -2
  198. package/dist/cdn/{3JMUTSCW.js → MYZKGO2L.js} +2 -2
  199. package/dist/cdn/{WZIEQMAC.js → MZNG3C6Y.js} +1 -1
  200. package/dist/cdn/{DLWYMHVM.js → N4EX4SSF.js} +2 -2
  201. package/dist/cdn/{W7YRP22H.js → N4TIZIJR.js} +2 -2
  202. package/dist/cdn/N5EVP4F4.js +4 -0
  203. package/dist/cdn/{SKDHYV2M.js → NCSYGSCB.js} +1 -1
  204. package/dist/cdn/{JX23Y4P7.js → NIKRUVOV.js} +2 -2
  205. package/dist/cdn/{FXSWUNWC.js → NLXJOISV.js} +2 -2
  206. package/dist/cdn/{FWW6VKGS.js → NMYFSU2V.js} +2 -2
  207. package/dist/cdn/{REEJWHA3.js → NQDQFAOQ.js} +2 -2
  208. package/dist/cdn/{ZBVH7XEC.js → NRMTMITN.js} +2 -2
  209. package/dist/cdn/{KKFB655P.js → NSTNBD3G.js} +2 -2
  210. package/dist/cdn/{MV556M7I.js → NXVWW3UJ.js} +2 -2
  211. package/dist/cdn/{BC6QFEGG.js → O4KSGC6N.js} +2 -2
  212. package/dist/cdn/O4RTFBXK.js +18 -0
  213. package/dist/cdn/{GC3ND3KN.js → OBOWOISU.js} +2 -2
  214. package/dist/cdn/{WZSPK6SY.js → ODLN4THE.js} +2 -2
  215. package/dist/cdn/OFR2YL7O.js +4 -0
  216. package/dist/cdn/{RWUH6CID.js → OGT5QLPZ.js} +1 -1
  217. package/dist/cdn/{XORZQSUS.js → OKLUYUZQ.js} +2 -2
  218. package/dist/cdn/{MBOQJ5RM.js → OLMBNBBF.js} +2 -2
  219. package/dist/cdn/{YU7GLX6S.js → OQ26OHNR.js} +1 -1
  220. package/dist/cdn/{XUWJ7HO2.js → ORHJ5H4K.js} +1 -1
  221. package/dist/cdn/{VTM2X5OM.js → OTLKUH3K.js} +2 -2
  222. package/dist/cdn/{5VT6P4AB.js → OZYH3GOL.js} +2 -2
  223. package/dist/cdn/{KIIWQCOS.js → P672UP55.js} +2 -2
  224. package/dist/cdn/P7T2P4BG.js +4 -0
  225. package/dist/cdn/{GEXFIXKG.js → PBCOAMFQ.js} +2 -2
  226. package/dist/cdn/{IUJF4CYI.js → PD3HXY3Y.js} +1 -1
  227. package/dist/cdn/{KL74F7RD.js → PFVKHVHS.js} +2 -2
  228. package/dist/cdn/{JW6NBOGL.js → PIRVS4CB.js} +2 -2
  229. package/dist/cdn/{RGXX4JKW.js → PJ362HUZ.js} +2 -2
  230. package/dist/cdn/{EBI4WZB5.js → PLU3WSUF.js} +1 -1
  231. package/dist/cdn/{U2AMZLF4.js → PNYQU5IA.js} +2 -2
  232. package/dist/cdn/{3HLDOR4A.js → PP746ZCQ.js} +1 -1
  233. package/dist/cdn/{4NKGIEI7.js → PP7FGPGK.js} +1 -1
  234. package/dist/cdn/{CIXQECYS.js → PQLVQGVI.js} +2 -2
  235. package/dist/cdn/PVJ6LHBA.js +4 -0
  236. package/dist/cdn/{HJ4GJNKM.js → PX3RRU5A.js} +2 -2
  237. package/dist/cdn/{P6NKB6QR.js → QAYI374A.js} +1 -1
  238. package/dist/cdn/{VBTBJAAU.js → QCOK74YH.js} +2 -2
  239. package/dist/cdn/{2K7EKC4Y.js → QY3PGCBA.js} +2 -2
  240. package/dist/cdn/{74F4VSY2.js → R4FE36ZE.js} +2 -2
  241. package/dist/cdn/{HLKRAXOA.js → R62USL4A.js} +2 -2
  242. package/dist/cdn/{CAYB5EYW.js → R6SCCT4W.js} +2 -2
  243. package/dist/cdn/{UEVBSGFE.js → R6Z5G3DE.js} +2 -2
  244. package/dist/cdn/{KEPDL4X7.js → R7PDN43F.js} +2 -2
  245. package/dist/cdn/{3ZUBNWMX.js → RAW47JAB.js} +2 -2
  246. package/dist/cdn/{LRQ2DHEF.js → RC5B5PVZ.js} +2 -2
  247. package/dist/cdn/{Y4O3MBRB.js → RGJVZ55G.js} +2 -2
  248. package/dist/cdn/{IEOZRY6N.js → RJOZVIZB.js} +1 -1
  249. package/dist/cdn/{O3GDQ5AA.js → RQSEIJ5S.js} +2 -2
  250. package/dist/cdn/{FJHGVRAD.js → RWRAZAOJ.js} +2 -2
  251. package/dist/cdn/{V2SQNV5V.js → RXMVFFL2.js} +2 -2
  252. package/dist/cdn/{WZXWVMIF.js → SASVW5FY.js} +2 -2
  253. package/dist/cdn/{KE7LWGV4.js → SFXJALV3.js} +2 -2
  254. package/dist/cdn/{OSMOWMLE.js → SHYKEQPX.js} +2 -2
  255. package/dist/cdn/{NX7VTMCD.js → SIK2SGMI.js} +2 -2
  256. package/dist/cdn/{NLLOBF4X.js → SKAHLNTV.js} +2 -2
  257. package/dist/cdn/{DZUNMURN.js → SLKVREXL.js} +2 -2
  258. package/dist/cdn/{4XKYQCQV.js → SOQIASXC.js} +2 -2
  259. package/dist/cdn/{BUD6HIPA.js → SP4TECEK.js} +2 -2
  260. package/dist/cdn/{6IPYR7MB.js → SSW3HZME.js} +1 -1
  261. package/dist/cdn/{GWUUWMDH.js → T4TNTP6V.js} +2 -2
  262. package/dist/cdn/{UYKVQQS3.js → TBCSEDZ5.js} +2 -2
  263. package/dist/cdn/{SKDTJHIB.js → TBGVKJE5.js} +2 -2
  264. package/dist/cdn/{CXYYMXO6.js → TF4YTGTN.js} +2 -2
  265. package/dist/cdn/{UPAD5RIR.js → TFCK4O4V.js} +2 -2
  266. package/dist/cdn/{2TMDOUG6.js → TFOKR6J6.js} +2 -2
  267. package/dist/cdn/{UKRHIEXC.js → TI2IRBJK.js} +2 -2
  268. package/dist/cdn/{FMH34SJ5.js → TMVRLBOT.js} +1 -1
  269. package/dist/cdn/{GRSMKUJW.js → TNUJBAYT.js} +2 -2
  270. package/dist/cdn/{KB5DTVS7.js → TROMTQIC.js} +2 -2
  271. package/dist/cdn/{X523YG7R.js → TXVENYRY.js} +2 -2
  272. package/dist/cdn/{IBBG4HBO.js → TZ23JRMX.js} +2 -2
  273. package/dist/cdn/{KTB7R4GI.js → U2KX3X36.js} +2 -2
  274. package/dist/cdn/{IABAT3EZ.js → UAA5QGPF.js} +2 -2
  275. package/dist/cdn/{PA3XPHBO.js → UBD5J4KI.js} +2 -2
  276. package/dist/cdn/UC2FBX6E.js +4 -0
  277. package/dist/cdn/{TK7WMHN2.js → UER2NWQ5.js} +2 -2
  278. package/dist/cdn/{EOV3DBYK.js → UGU237IE.js} +2 -2
  279. package/dist/cdn/{YW2MXGNT.js → UGVFEOAN.js} +2 -2
  280. package/dist/cdn/{6EMJRLR6.js → UHX7MS3I.js} +2 -2
  281. package/dist/cdn/{NQN4PHQT.js → UJFET5DV.js} +2 -2
  282. package/dist/cdn/{LE52XOLX.js → UNFCZ6WR.js} +2 -2
  283. package/dist/cdn/{TVQM6PZH.js → URMOUWZW.js} +2 -2
  284. package/dist/cdn/{DTN345FV.js → UUVE7YQT.js} +2 -2
  285. package/dist/cdn/{LCJS4LCU.js → UY4REKTP.js} +2 -2
  286. package/dist/cdn/{DOEBSJ7A.js → UYFFSERE.js} +2 -2
  287. package/dist/cdn/{ZWMO5JAP.js → UZ7TWO7W.js} +1 -1
  288. package/dist/cdn/{ZEETXLSR.js → V2EIOB23.js} +2 -2
  289. package/dist/cdn/{HQR2RXFM.js → V2NPZ545.js} +2 -2
  290. package/dist/cdn/{JLTH6EAI.js → V67VYNB5.js} +2 -2
  291. package/dist/cdn/{O7ZHU4EO.js → V73QSB47.js} +2 -2
  292. package/dist/cdn/{RT3IH6J2.js → VD6RY77F.js} +2 -2
  293. package/dist/cdn/{TRW3LDBE.js → VMX2SDA5.js} +1 -1
  294. package/dist/cdn/{E52CR22C.js → VQV2EOBT.js} +2 -2
  295. package/dist/cdn/{WRDFN5CV.js → VTLXQNNS.js} +2 -2
  296. package/dist/cdn/{WJAWYGN7.js → VTWNZW7D.js} +1 -1
  297. package/dist/cdn/{VFIAP4WY.js → VW3IN5XO.js} +2 -2
  298. package/dist/cdn/{5AUFBP27.js → VXAUAFZP.js} +2 -2
  299. package/dist/cdn/{MX6MJOY2.js → VY43WFIE.js} +2 -2
  300. package/dist/cdn/{X4E67GGH.js → W26U6JTQ.js} +2 -2
  301. package/dist/cdn/{DD3Q7CB4.js → W66LMQTE.js} +2 -2
  302. package/dist/cdn/{WWANX2JP.js → W6NEVD4V.js} +2 -2
  303. package/dist/cdn/{QRA6KX5A.js → WBNP4QZC.js} +2 -2
  304. package/dist/cdn/{TLCR2ZDZ.js → WBP7PZT2.js} +2 -2
  305. package/dist/cdn/{ADRGBGYK.js → WD7C3M76.js} +2 -2
  306. package/dist/cdn/{BI7BLTZB.js → WF3QV7RC.js} +2 -2
  307. package/dist/cdn/WGDTGNGN.js +4 -0
  308. package/dist/cdn/{C3Y4QZD3.js → WRQBONJM.js} +2 -2
  309. package/dist/cdn/{GIOH5Q5Z.js → WRRBCMJI.js} +2 -2
  310. package/dist/cdn/{7QE4BNWM.js → WU66JLEU.js} +2 -2
  311. package/dist/cdn/{V5Y7FOSO.js → WWHNJYPB.js} +2 -2
  312. package/dist/cdn/{WQSAF6TY.js → WXYFTHRH.js} +2 -2
  313. package/dist/cdn/{TPPUAVMR.js → X235WG5H.js} +1 -1
  314. package/dist/cdn/{EK3NL3LO.js → X74DI4RG.js} +2 -2
  315. package/dist/cdn/{C6B2L73J.js → X7ADQC5T.js} +2 -2
  316. package/dist/cdn/{VNDUXCJD.js → X7N4H6TH.js} +2 -2
  317. package/dist/cdn/{QRVWXFYH.js → X7T664NF.js} +2 -2
  318. package/dist/cdn/{UFENTNOP.js → XOGFVCNC.js} +2 -2
  319. package/dist/cdn/{V7ZDUHVZ.js → Y5GJQUTS.js} +2 -2
  320. package/dist/cdn/{4MZJCLTC.js → Y6XI3QWX.js} +1 -1
  321. package/dist/cdn/{VNN6J764.js → YELJ5IOA.js} +2 -2
  322. package/dist/cdn/{YT7BKMP3.js → YIYGY3GE.js} +2 -2
  323. package/dist/cdn/{MEX7LD5S.js → YJ2M2BHO.js} +2 -2
  324. package/dist/cdn/{QV4FD5SU.js → YL2IZKDX.js} +2 -2
  325. package/dist/cdn/{S3GE6FGX.js → YOKQE6DC.js} +2 -2
  326. package/dist/cdn/{GQMATO52.js → YOQX6B2Q.js} +2 -2
  327. package/dist/cdn/{7SZIBOWM.js → YS3K3BGY.js} +2 -2
  328. package/dist/cdn/{URX6I4OF.js → YVIQAPQ6.js} +2 -2
  329. package/dist/cdn/{2U2Z3LDL.js → YVZETHR7.js} +2 -2
  330. package/dist/cdn/{OFEPXH6X.js → YWS27LZC.js} +2 -2
  331. package/dist/cdn/YXJYLX7E.js +18 -0
  332. package/dist/cdn/YZQ76QBK.js +18 -0
  333. package/dist/cdn/{OQWR2ZPL.js → ZBUBI3UI.js} +2 -2
  334. package/dist/cdn/{IZOE3R5G.js → ZC4R6URE.js} +2 -2
  335. package/dist/cdn/{N3CKQ2YS.js → ZDY3SLIY.js} +2 -2
  336. package/dist/cdn/{KLVW7YKW.js → ZFFVKZVZ.js} +2 -2
  337. package/dist/cdn/ZHH5KRVJ.js +18 -0
  338. package/dist/cdn/{HBL5EFM5.js → ZI4G5NME.js} +2 -2
  339. package/dist/cdn/{R2DEYR7Z.js → ZMXBPZ5Z.js} +2 -2
  340. package/dist/cdn/{55KVITUR.js → ZQMBNGRJ.js} +2 -2
  341. package/dist/cdn/{XFPZBEHV.js → ZWPLUGCS.js} +2 -2
  342. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
  343. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
  344. package/dist/cdn/assets/solution-configure-titles/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/solution-configure-titles/t9n/messages.json +1 -1
  346. package/dist/cdn/assets/solution-details-panel/t9n/messages.ar.json +1 -1
  347. package/dist/cdn/assets/solution-details-panel/t9n/messages.bg.json +1 -1
  348. package/dist/cdn/assets/solution-details-panel/t9n/messages.bs.json +1 -1
  349. package/dist/cdn/assets/solution-details-panel/t9n/messages.ca.json +1 -1
  350. package/dist/cdn/assets/solution-details-panel/t9n/messages.cs.json +1 -1
  351. package/dist/cdn/assets/solution-details-panel/t9n/messages.da.json +1 -1
  352. package/dist/cdn/assets/solution-details-panel/t9n/messages.de.json +1 -1
  353. package/dist/cdn/assets/solution-details-panel/t9n/messages.el.json +1 -1
  354. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  355. package/dist/cdn/assets/solution-details-panel/t9n/messages.es.json +1 -1
  356. package/dist/cdn/assets/solution-details-panel/t9n/messages.et.json +1 -1
  357. package/dist/cdn/assets/solution-details-panel/t9n/messages.fi.json +1 -1
  358. package/dist/cdn/assets/solution-details-panel/t9n/messages.fr.json +1 -1
  359. package/dist/cdn/assets/solution-details-panel/t9n/messages.he.json +1 -1
  360. package/dist/cdn/assets/solution-details-panel/t9n/messages.hr.json +1 -1
  361. package/dist/cdn/assets/solution-details-panel/t9n/messages.hu.json +1 -1
  362. package/dist/cdn/assets/solution-details-panel/t9n/messages.id.json +1 -1
  363. package/dist/cdn/assets/solution-details-panel/t9n/messages.it.json +1 -1
  364. package/dist/cdn/assets/solution-details-panel/t9n/messages.ja.json +1 -1
  365. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  366. package/dist/cdn/assets/solution-details-panel/t9n/messages.ko.json +1 -1
  367. package/dist/cdn/assets/solution-details-panel/t9n/messages.lt.json +1 -1
  368. package/dist/cdn/assets/solution-details-panel/t9n/messages.lv.json +1 -1
  369. package/dist/cdn/assets/solution-details-panel/t9n/messages.nl.json +1 -1
  370. package/dist/cdn/assets/solution-details-panel/t9n/messages.no.json +1 -1
  371. package/dist/cdn/assets/solution-details-panel/t9n/messages.pl.json +1 -1
  372. package/dist/cdn/assets/solution-details-panel/t9n/messages.pt-BR.json +1 -1
  373. package/dist/cdn/assets/solution-details-panel/t9n/messages.pt-PT.json +1 -1
  374. package/dist/cdn/assets/solution-details-panel/t9n/messages.ro.json +1 -1
  375. package/dist/cdn/assets/solution-details-panel/t9n/messages.ru.json +1 -1
  376. package/dist/cdn/assets/solution-details-panel/t9n/messages.sk.json +1 -1
  377. package/dist/cdn/assets/solution-details-panel/t9n/messages.sl.json +1 -1
  378. package/dist/cdn/assets/solution-details-panel/t9n/messages.sr.json +1 -1
  379. package/dist/cdn/assets/solution-details-panel/t9n/messages.sv.json +1 -1
  380. package/dist/cdn/assets/solution-details-panel/t9n/messages.th.json +1 -1
  381. package/dist/cdn/assets/solution-details-panel/t9n/messages.tr.json +1 -1
  382. package/dist/cdn/assets/solution-details-panel/t9n/messages.uk.json +1 -1
  383. package/dist/cdn/assets/solution-details-panel/t9n/messages.vi.json +1 -1
  384. package/dist/cdn/assets/solution-details-panel/t9n/messages.zh-CN.json +1 -1
  385. package/dist/cdn/assets/solution-details-panel/t9n/messages.zh-HK.json +1 -1
  386. package/dist/cdn/assets/solution-details-panel/t9n/messages.zh-TW.json +1 -1
  387. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ar.json +1 -1
  388. package/dist/cdn/assets/solutions-all-shell/t9n/messages.bg.json +1 -1
  389. package/dist/cdn/assets/solutions-all-shell/t9n/messages.bs.json +1 -1
  390. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ca.json +1 -1
  391. package/dist/cdn/assets/solutions-all-shell/t9n/messages.cs.json +1 -1
  392. package/dist/cdn/assets/solutions-all-shell/t9n/messages.da.json +1 -1
  393. package/dist/cdn/assets/solutions-all-shell/t9n/messages.de.json +1 -1
  394. package/dist/cdn/assets/solutions-all-shell/t9n/messages.el.json +1 -1
  395. package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
  396. package/dist/cdn/assets/solutions-all-shell/t9n/messages.es.json +1 -1
  397. package/dist/cdn/assets/solutions-all-shell/t9n/messages.et.json +1 -1
  398. package/dist/cdn/assets/solutions-all-shell/t9n/messages.fi.json +1 -1
  399. package/dist/cdn/assets/solutions-all-shell/t9n/messages.fr.json +1 -1
  400. package/dist/cdn/assets/solutions-all-shell/t9n/messages.he.json +1 -1
  401. package/dist/cdn/assets/solutions-all-shell/t9n/messages.hr.json +1 -1
  402. package/dist/cdn/assets/solutions-all-shell/t9n/messages.hu.json +1 -1
  403. package/dist/cdn/assets/solutions-all-shell/t9n/messages.id.json +1 -1
  404. package/dist/cdn/assets/solutions-all-shell/t9n/messages.it.json +1 -1
  405. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ja.json +1 -1
  406. package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
  407. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ko.json +1 -1
  408. package/dist/cdn/assets/solutions-all-shell/t9n/messages.lt.json +1 -1
  409. package/dist/cdn/assets/solutions-all-shell/t9n/messages.lv.json +1 -1
  410. package/dist/cdn/assets/solutions-all-shell/t9n/messages.nl.json +1 -1
  411. package/dist/cdn/assets/solutions-all-shell/t9n/messages.no.json +1 -1
  412. package/dist/cdn/assets/solutions-all-shell/t9n/messages.pl.json +1 -1
  413. package/dist/cdn/assets/solutions-all-shell/t9n/messages.pt-BR.json +1 -1
  414. package/dist/cdn/assets/solutions-all-shell/t9n/messages.pt-PT.json +1 -1
  415. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ro.json +1 -1
  416. package/dist/cdn/assets/solutions-all-shell/t9n/messages.ru.json +1 -1
  417. package/dist/cdn/assets/solutions-all-shell/t9n/messages.sk.json +1 -1
  418. package/dist/cdn/assets/solutions-all-shell/t9n/messages.sl.json +1 -1
  419. package/dist/cdn/assets/solutions-all-shell/t9n/messages.sr.json +1 -1
  420. package/dist/cdn/assets/solutions-all-shell/t9n/messages.sv.json +1 -1
  421. package/dist/cdn/assets/solutions-all-shell/t9n/messages.th.json +1 -1
  422. package/dist/cdn/assets/solutions-all-shell/t9n/messages.tr.json +1 -1
  423. package/dist/cdn/assets/solutions-all-shell/t9n/messages.uk.json +1 -1
  424. package/dist/cdn/assets/solutions-all-shell/t9n/messages.vi.json +1 -1
  425. package/dist/cdn/assets/solutions-all-shell/t9n/messages.zh-CN.json +1 -1
  426. package/dist/cdn/assets/solutions-all-shell/t9n/messages.zh-HK.json +1 -1
  427. package/dist/cdn/assets/solutions-all-shell/t9n/messages.zh-TW.json +1 -1
  428. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ar.json +1 -0
  429. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.bg.json +1 -0
  430. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.bs.json +1 -0
  431. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ca.json +1 -0
  432. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.cs.json +1 -0
  433. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.da.json +1 -0
  434. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.de.json +1 -0
  435. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.el.json +1 -0
  436. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.en.json +1 -0
  437. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.es.json +1 -0
  438. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.et.json +1 -0
  439. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.fi.json +1 -0
  440. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.fr.json +1 -0
  441. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.he.json +1 -0
  442. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.hr.json +1 -0
  443. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.hu.json +1 -0
  444. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.id.json +1 -0
  445. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.it.json +1 -0
  446. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ja.json +1 -0
  447. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.json +1 -0
  448. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ko.json +1 -0
  449. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.lt.json +1 -0
  450. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.lv.json +1 -0
  451. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.nl.json +1 -0
  452. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.no.json +1 -0
  453. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pl.json +1 -0
  454. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pt-BR.json +1 -0
  455. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.pt-PT.json +1 -0
  456. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ro.json +1 -0
  457. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.ru.json +1 -0
  458. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sk.json +1 -0
  459. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sl.json +1 -0
  460. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sr.json +1 -0
  461. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.sv.json +1 -0
  462. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.th.json +1 -0
  463. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.tr.json +1 -0
  464. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.uk.json +1 -0
  465. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.vi.json +1 -0
  466. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-CN.json +1 -0
  467. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-HK.json +1 -0
  468. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.zh-TW.json +1 -0
  469. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ar.json +1 -1
  470. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.bg.json +1 -1
  471. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.bs.json +1 -1
  472. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ca.json +1 -1
  473. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.cs.json +1 -1
  474. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.da.json +1 -1
  475. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.de.json +1 -1
  476. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.el.json +1 -1
  477. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  478. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.es.json +1 -1
  479. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.et.json +1 -1
  480. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.fi.json +1 -1
  481. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.fr.json +1 -1
  482. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.he.json +1 -1
  483. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.hr.json +1 -1
  484. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.hu.json +1 -1
  485. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.id.json +1 -1
  486. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.it.json +1 -1
  487. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ja.json +1 -1
  488. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  489. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ko.json +1 -1
  490. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.lt.json +1 -1
  491. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.lv.json +1 -1
  492. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.nl.json +1 -1
  493. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.no.json +1 -1
  494. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pl.json +1 -1
  495. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pt-BR.json +1 -1
  496. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pt-PT.json +1 -1
  497. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ro.json +1 -1
  498. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ru.json +1 -1
  499. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sk.json +1 -1
  500. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sl.json +1 -1
  501. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sr.json +1 -1
  502. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sv.json +1 -1
  503. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.th.json +1 -1
  504. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.tr.json +1 -1
  505. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.uk.json +1 -1
  506. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.vi.json +1 -1
  507. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-CN.json +1 -1
  508. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-HK.json +1 -1
  509. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-TW.json +1 -1
  510. package/dist/cdn/index.js +2 -2
  511. package/dist/cdn/main.css +1 -1
  512. package/dist/chunks/Auth.js +1 -1
  513. package/dist/chunks/CardsFetcher.js +138 -230
  514. package/dist/chunks/appConfig.js +1 -1
  515. package/dist/chunks/cardFetchingUtils.js +2 -2
  516. package/dist/chunks/cardsHelpers.js +109 -0
  517. package/dist/chunks/common.js +2 -2
  518. package/dist/chunks/deployAppContexts.js +7 -6
  519. package/dist/chunks/downloadUtils.js +1 -1
  520. package/dist/chunks/getItemIcon.js +1 -1
  521. package/dist/chunks/helpers.js +5 -5
  522. package/dist/chunks/index.js +1 -1
  523. package/dist/chunks/interfaces.js +14 -14
  524. package/dist/chunks/loadModules.js +1 -1
  525. package/dist/chunks/mapViewUtils.js +1 -1
  526. package/dist/chunks/pciUtils.js +1 -1
  527. package/dist/chunks/popupUtils.js +1 -1
  528. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  529. package/dist/chunks/privilegeUtils.js +1 -1
  530. package/dist/chunks/publicNotificationStore.js +1 -1
  531. package/dist/chunks/queryUtils.js +1 -1
  532. package/dist/chunks/runtime.js +1 -1
  533. package/dist/chunks/solution-store.js +1 -1
  534. package/dist/chunks/templates.js +1 -1
  535. package/dist/chunks/useT9n.js +1 -1
  536. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  537. package/dist/components/basemap-gallery/customElement.js +1 -1
  538. package/dist/components/buffer-tools/customElement.js +1 -1
  539. package/dist/components/card-manager/customElement.js +1 -1
  540. package/dist/components/consent-manager/customElement.js +1 -1
  541. package/dist/components/create-feature/customElement.js +1 -1
  542. package/dist/components/create-related-feature/customElement.js +1 -1
  543. package/dist/components/crowdsource-manager/customElement.js +1 -1
  544. package/dist/components/crowdsource-reporter/customElement.js +2 -2
  545. package/dist/components/deduct-calculator/customElement.js +1 -1
  546. package/dist/components/delete-button/customElement.js +1 -1
  547. package/dist/components/delete-dialog/customElement.js +1 -1
  548. package/dist/components/edit-card/customElement.js +1 -1
  549. package/dist/components/feature-details/customElement.js +1 -1
  550. package/dist/components/feature-list/customElement.js +1 -1
  551. package/dist/components/field-selection/customElement.js +1 -1
  552. package/dist/components/floor-filter/customElement.js +1 -1
  553. package/dist/components/info-card/customElement.js +1 -1
  554. package/dist/components/json-editor/customElement.js +1 -1
  555. package/dist/components/layer-list/customElement.js +1 -1
  556. package/dist/components/layer-table/customElement.js +1 -1
  557. package/dist/components/map-card/customElement.js +1 -1
  558. package/dist/components/map-draw-tools/customElement.js +1 -1
  559. package/dist/components/map-fullscreen/customElement.js +1 -1
  560. package/dist/components/map-layer-picker/customElement.js +1 -1
  561. package/dist/components/map-legend/customElement.js +1 -1
  562. package/dist/components/map-picker/customElement.js +1 -1
  563. package/dist/components/map-search/customElement.js +1 -1
  564. package/dist/components/map-select-tools/customElement.js +1 -1
  565. package/dist/components/map-tools/customElement.js +1 -1
  566. package/dist/components/pci-calculator/customElement.js +1 -1
  567. package/dist/components/pdf-download/customElement.js +1 -1
  568. package/dist/components/public-notification/customElement.js +1 -1
  569. package/dist/components/refine-selection/customElement.js +1 -1
  570. package/dist/components/selection-tool/customElement.js +1 -1
  571. package/dist/components/solution-article-card/customElement.js +1 -1
  572. package/dist/components/solution-configuration/customElement.js +1 -1
  573. package/dist/components/solution-configure-dialog/customElement.js +7 -7
  574. package/dist/components/solution-configure-titles/customElement.js +8 -8
  575. package/dist/components/solution-contents/customElement.js +1 -1
  576. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  577. package/dist/components/solution-deploy-dialog/customElement.js +4 -4
  578. package/dist/components/solution-deployed-card/customElement.js +4 -4
  579. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  580. package/dist/components/solution-details-card/customElement.d.ts +1 -0
  581. package/dist/components/solution-details-card/customElement.js +22 -14
  582. package/dist/components/solution-details-panel/customElement.d.ts +0 -12
  583. package/dist/components/solution-details-panel/customElement.js +83 -107
  584. package/dist/components/solution-item/customElement.js +1 -1
  585. package/dist/components/solution-item-accordion/customElement.js +1 -1
  586. package/dist/components/solution-item-details/customElement.js +1 -1
  587. package/dist/components/solution-item-diagram/customElement.js +1 -1
  588. package/dist/components/solution-item-icon/customElement.js +1 -1
  589. package/dist/components/solution-item-sharing/customElement.js +1 -1
  590. package/dist/components/solution-organization-variables/customElement.js +1 -1
  591. package/dist/components/solution-resource-item/customElement.js +1 -1
  592. package/dist/components/solution-snapshot-gallery/customElement.js +20 -20
  593. package/dist/components/solution-social-share/customElement.js +1 -1
  594. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  595. package/dist/components/solution-template-data/customElement.js +1 -1
  596. package/dist/components/solution-variables/customElement.js +1 -1
  597. package/dist/components/solutions-all-panel/customElement.d.ts +2 -2
  598. package/dist/components/solutions-all-panel/customElement.js +31 -30
  599. package/dist/components/solutions-all-shell/customElement.d.ts +2 -14
  600. package/dist/components/solutions-all-shell/customElement.js +40 -66
  601. package/dist/components/solutions-article-panel/customElement.js +1 -1
  602. package/dist/components/solutions-articles/customElement.js +1 -1
  603. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  604. package/dist/components/solutions-deploy-app/customElement.d.ts +3 -1
  605. package/dist/components/solutions-deploy-app/customElement.js +46 -36
  606. package/dist/components/solutions-deployed-filter-panel/customElement.d.ts +55 -0
  607. package/dist/components/solutions-deployed-filter-panel/customElement.js +85 -0
  608. package/dist/components/solutions-deployed-filter-panel/index.d.ts +6 -0
  609. package/dist/components/solutions-deployed-filter-panel/index.js +6 -0
  610. package/dist/components/solutions-deployed-panel/customElement.js +2 -2
  611. package/dist/components/solutions-deployed-shell/customElement.d.ts +0 -10
  612. package/dist/components/solutions-deployed-shell/customElement.js +29 -57
  613. package/dist/components/solutions-deployed-shell/index.d.ts +1 -3
  614. package/dist/components/solutions-deployed-shell/index.js +1 -3
  615. package/dist/components/solutions-filter-panel/customElement.d.ts +7 -18
  616. package/dist/components/solutions-filter-panel/customElement.js +79 -95
  617. package/dist/components/solutions-filter-panel/index.d.ts +2 -2
  618. package/dist/components/solutions-filter-panel/index.js +2 -2
  619. package/dist/components/spatial-ref/customElement.js +1 -1
  620. package/dist/components/store-manager/customElement.js +1 -1
  621. package/dist/docs/api.json +472 -356
  622. package/dist/docs/docs.json +420 -335
  623. package/dist/docs/vscode.html-custom-data.json +36 -45
  624. package/dist/docs/web-types.json +113 -108
  625. package/dist/index.d.ts +20 -1
  626. package/dist/index.js +1 -1
  627. package/dist/loader.js +6 -5
  628. package/dist/types/lumina.d.ts +11 -5
  629. package/dist/types/preact.d.ts +12 -5
  630. package/dist/types/react.d.ts +13 -5
  631. package/dist/types/stencil.d.ts +11 -5
  632. package/dist/utils/cardsHelpers.d.ts +13 -0
  633. package/dist/utils/deployAppContexts.d.ts +3 -0
  634. package/dist/utils/interfaces.d.ts +2 -1
  635. package/package.json +2 -6
  636. package/dist/cdn/25NMRPJF.js +0 -4
  637. package/dist/cdn/26R5MEKB.js +0 -18
  638. package/dist/cdn/3ZY4JREY.js +0 -4
  639. package/dist/cdn/4DCUNUXE.js +0 -4
  640. package/dist/cdn/4MUVZYJN.js +0 -4
  641. package/dist/cdn/AN5674UC.js +0 -18
  642. package/dist/cdn/BIBKKGA6.js +0 -4
  643. package/dist/cdn/CM3F4CJ2.js +0 -4
  644. package/dist/cdn/EEB2GDV3.js +0 -4
  645. package/dist/cdn/ISESGHZW.js +0 -4
  646. package/dist/cdn/KX5L5LCJ.js +0 -18
  647. package/dist/cdn/LITT5EVR.js +0 -4
  648. package/dist/cdn/N6TRJBH4.js +0 -21
  649. package/dist/cdn/N7QSTVCW.js +0 -4
  650. package/dist/cdn/OQ74UEQZ.js +0 -18
  651. package/dist/cdn/PBGF5YEC.js +0 -4
  652. package/dist/cdn/QXSEG2W2.js +0 -18
  653. package/dist/cdn/RRH6JKFB.js +0 -4
  654. package/dist/cdn/TCI7ONEC.js +0 -4
  655. package/dist/cdn/YED6FNCR.js +0 -18
  656. package/dist/cdn/YO7YBMYF.js +0 -18
  657. package/dist/cdn/YZKWGSGA.js +0 -4
  658. package/dist/cdn/ZLYFQP5M.js +0 -18
  659. package/dist/cdn/ZMPO2QMM.js +0 -4
  660. package/dist/cdn/ZZHC2Y63.js +0 -4
  661. package/dist/utils/index.d.ts +0 -1
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
+ v1.1.0-next.20250905 */
4
+ import{b,d as y}from"./DH5XW4RN.js";import{a as g}from"./OFR2YL7O.js";import{a as f}from"./IUV7LSHR.js";import"./OTLKUH3K.js";import"./O4KSGC6N.js";import{b as u}from"./CBCAA7KH.js";import{C as n,D as c,E as d,G as p,H as l,I as h,h as r,i,o as s}from"./X235WG5H.js";import"./QAYI374A.js";var _=r`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:1rem}.header-button-padding{padding-top:.5rem;padding-bottom:.5rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start{padding-inline-start:1rem}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}@media (max-width: 800px){.filter{display:none}.filter-button{display:block;position:absolute;top:.5rem;left:.5rem;z-index:999}}@media (min-width: 800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}.height-100{height:100%}`,a=class extends d{constructor(){super(),this.solutionsCount=0,this.sortType="relevance",this.filterOpen=!0,this._filters=[],this.isMobile=!1,this._translations=f({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=n(),this._isMobileContextConsumer=b({context:y,subscribe:!0,callback:e=>this.isMobile=e}),this.filterRemoved=s(),this.solutionsAllLoaded=s()}static{this.properties={appConfig:1,solutionsCount:9,sortType:1,filterOpen:16,_filters:16,isMobile:16,_translations:16}}static{this.styles=_}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}loaded(){this.solutionsAllLoaded.emit()}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab z-index-2" icon-start=${e} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override z-index-1"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}</div><div slot=header-actions-end>${this._renderDropdown()}</div>${this.isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return this.isMobile?i`<calcite-panel class=${p(this.filterOpen?"background-override":"filter background-override")} id=solutions-all-shell-panel-start style=${l(e)}><solutions-filter-panel class="height-100" @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel>`:i`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${l(e)}><calcite-panel><solutions-filter-panel class="height-100" @applyFilter=${this._filterApplied}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-all-panel .agoSolutionsGroupId=${this.appConfig.primarySolutionsGroupId} .enterpriseSolutionsGroupId=${this.appConfig.agoBasedEnterpriseSolutionsGroupId} .locale=${this.appConfig.locale||"en"} .orgUrl=${this.appConfig.portalURL} @cardsFetched=${this._updateSolutionCount} .portalUrl=${this.appConfig.portalURL} .sortType=${this.sortType} style=${l(e)} ${c(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){let e=this._filters.filter(t=>t.type==="industry"||t.type==="domain");return e.length>0?g(e,t=>`${t.type}:${t.value}`,t=>i`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${t.displayValue} @calciteChipClose=${()=>this._chipClosed(t.displayValue,t.type)} .value=${t.displayValue}>${t.displayValue}</calcite-chip>`):void 0}_renderDropdown(){let e=[{displayValue:this._translations.sortByRelevance,sortType:"relevance"},{displayValue:this._translations.sortByTitle,sortType:"title"},{displayValue:this._translations.sortByNew,sortType:"new"},{displayValue:this._translations.sortByUpdated,sortType:"updated"},{displayValue:this._translations.sortBySuggestedForYou,sortType:"suggested"}];return i`<calcite-dropdown width=m><calcite-button appearance=outline-fill class="header-button-padding" icon-start=sort-descending kind=neutral slot=trigger>${this.isMobile?"":this._getString(this.sortType)}</calcite-button><calcite-dropdown-group group-title=${this._translations.chooseSortType??h}>${e.map(t=>this._getDropdownItem(t.displayValue,t.sortType))}</calcite-dropdown-group></calcite-dropdown>`}_getDropdownItem(e,t){return this.sortType!==t?i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)}>${e}</calcite-dropdown-item>`:i`<calcite-dropdown-item @click=${()=>this._sortChanged(t)} selected>${e}</calcite-dropdown-item>`}_getString(e){let t="";switch(e){case"new":t=this._translations.sortByNew;break;case"relevance":t=this._translations.sortByRelevance;break;case"suggested":t=this._translations.sortBySuggestedForYou;break;case"title":t=this._translations.sortByTitle;break;case"updated":t=this._translations.sortByUpdated;break}return t}_updateSolutionCount(e){this.solutionsCount=e.detail}_sortChanged(e){this.sortType=e,this._allSolutionsPanelRef.value?.searchSolutions({sortType:e})}_chipClosed(e,t){if(t==="industry")this._filters=[];else{let m=this._filters.filter(o=>o.displayValue!==e&&o.type!==t);this._filters=m}this._filters.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters)}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){if(e.detail){let t=e.detail;"displayValue"in e.detail?this._filters.push(e.detail):Array.isArray(e.detail)&&e.detail.length>0&&(e.detail.length>=2&&(t=[e.detail[e.detail.length-1]]),this._filters=e.detail),this._allSolutionsPanelRef.value?.searchSolutions(t)}else this._filters=[],this._allSolutionsPanelRef.value?.searchSolutions()}};u("solutions-all-shell",a);export{a as SolutionsAllShell};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{l as r,u as s,v as i,y as o}from"./TPPUAVMR.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
3
+ v1.1.0-next.20250905 */
4
+ import{l as r,u as s,v as i,y as o}from"./X235WG5H.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as h}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{b as d}from"./JIAIW5D6.js";import{E as r,G as n,I as a,h as o,i,o as l}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var m=o`/** @license
3
+ v1.1.0-next.20250905 */
4
+ import{e as p}from"./N5EVP4F4.js";import{a as h}from"./IUV7LSHR.js";import"./OTLKUH3K.js";import"./O4KSGC6N.js";import{b as d}from"./CBCAA7KH.js";import{E as l,G as n,I as i,h as s,i as t,o as r}from"./X235WG5H.js";import"./QAYI374A.js";var g=s`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{a as h}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";im
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */calcite-card{width:240px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer}.chip-updated{--calcite-chip-icon-color: var(--calcite-ui-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}`,s=class extends r{constructor(){super(...arguments),this._translations=h({name:"solution-details-card",blocking:!0}),this.detailsCardSelected=l()}static{this.properties={card:0,_translations:16}}static{this.styles=m}render(){let e=this.card,p=e.chip==="updated"?"chip-updated":this.card.chip==="deployed"?"chip-deployed":"",c="solution-details-card-chip",t=e.chip==="updated"?this._translations.updated:this._translations.deployed;return i`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??a} class="thumbnail card-image" src=${e.thumbnailUrl??a}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chip!=="none"?i`<div slot=footer-end><calcite-chip class=${n(p)} .icon=${e.chip==="updated"?"mega-phone":"check-circle"} id=${c} .label=${t} .value=${t} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${t}</span></calcite-tooltip></div>`:void 0}<div slot=footer-start></div></calcite-card>`}_cardSelected(){this.detailsCardSelected.emit(this.card)}};d("solution-details-card",s);export{s as SolutionDetailsCard};
18
+ */calcite-card{width:240px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer}.chip-updated{--calcite-chip-icon-color: var(--calcite-ui-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit}`,o=class extends l{constructor(){super(...arguments),this._translations=h({name:"solution-details-card",blocking:!0}),this.detailsCardSelected=r()}static{this.properties={card:0,_translations:16}}static{this.styles=g}render(){let e=p(this.card.title);return t`<a href=${e??i} @click=${this._anchorClick}>${this._renderCard()}</a>`}_anchorClick(e){e.preventDefault()}_cardSelected(){this.detailsCardSelected.emit(this.card)}_renderCard(){let e=this.card,m=e.chip==="updated"?"chip-updated":this.card.chip==="deployed"?"chip-deployed":"",c="solution-details-card-chip",a=e.chip==="updated"?this._translations.updated:this._translations.deployed;return t`<calcite-card .label=${e.snippet} @click=${this._cardSelected}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title??i} class="thumbnail card-image" src=${e.thumbnailUrl??i}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chip!=="none"?t`<div slot=footer-end><calcite-chip class=${n(m)} .icon=${e.chip==="updated"?"mega-phone":"check-circle"} id=${c} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${c}><span>${a}</span></calcite-tooltip></div>`:void 0}<div slot=footer-start></div></calcite-card>`}};d("solution-details-card",o);export{o as SolutionDetailsCard};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as r}from"./WQSAF6TY.js";import{b as o}from"./JIAIW5D6.js";import{E as n,I as e,h as i,i as s}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var a=i`/** @license
3
+ v1.1.0-next.20250905 */
4
+ import{a as r}from"./WXYFTHRH.js";import{b as o}from"./CBCAA7KH.js";import{E as n,I as e,h as i,i as s}from"./X235WG5H.js";import"./QAYI374A.js";var a=i`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as p}from"./TRW3LDBE.js";import{a as m}from"./3JX2YRMJ.js";import{a as c}from"./J56VVCGM.js";import{b as g}from"./TVQM6PZH.js";import{E as d,G as o,H as a,h as l,i as e,l as i,o as r}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var u=l`:host{--instant-apps-header-height: auto;--instant-apps-header-min-height: 50px;--instant-apps-header-title-text-link-decoration: underline;--instant-apps-header-height--logo-scale--s: 55px;--instant-apps-header-logo-width--logo-scale--s: 35px;--instant-apps-header-logo-height--logo-scale--s: 35px;--instant-apps-header-height--logo-scale--m: 70px;--instant-apps-header-logo-width--logo-scale--m: 50px;--instant-apps-header-logo-height--logo-scale--m: 50px;--instant-apps-header-height--logo-scale--l: 80px;--instant-apps-header-logo-width--logo-scale--l: 60px;--instant-apps-header-logo-height--logo-scale--l: 60px;--instant-apps-header-actions-end-height: auto;width:100%}:host .image.image_resized img{width:100%}:host .header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .header-container{display:flex;align-items:center;width:100%;height:inherit}:host .header-container slot{display:flex;height:inherit}:host .header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .header-container ::slotted(*) calcite-button{height:100%}:host .header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration);overflow:hidden}:host .header-content img{margin:10px}:host .header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .header-content #infoButton{margin-inline-start:10px}:host .header-content.center{justify-content:center}:host .header-content.right{justify-content:end}:host .header.height-s{height:var(--instant-apps-header-height--logo-scale--s)}:host .header.height-s h1{font-size:1.125rem}:host .header.height-s img{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .header.height-m{height:var(--instant-apps-header-height--logo-scale--m)}:host .header.height-m img{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .header.height-l{height:var(--instant-apps-header-height--logo-scale--l)}:host .header.height-l h1{font-size:1.375rem}:host .header.height-l img{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}`,s={base:"header",headerContainer:"header-container",headerContent:"header-content",actionsEndContainer:"actions-end-container"},h=class extends d{constructor(){super(...arguments),this._sanitizer=new c({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.handleMobileMediaQueryChange=t=>{let{matches:n}=t;if(n){this.logoScale="s";return}this.logoScale=this.initialScale},this.initialScale="m",this.titleText="",this.logoScale="m",this.infoButton=!1,this.infoIsOpen=!1,this.headerAlignment="left",this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=p.medium[1],this.infoIsOpenChanged=r({cancelable:!1})}static{this.properties={initialScale:16,titleText:1,titleTextLink:1,backgroundColor:1,textColor:1,logoImage:1,logoScale:3,logoImageAltText:1,logoLink:1,infoButton:7,infoIsOpen:7,infoTitleText:1,customHeaderHtml:1,headerAlignment:1,customHeaderCss:1,fontFamily:3,mobileWidthBreakpoint:9}}static{this.styles=u}async toggleInfo(){this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen)}load(){this.handleMobileBreakpoints(),this.sanitizeCustomHeaderHtml()}willUpdate(t){t.has("customHeaderHtml")&&this.sanitizeCustomHeaderHtml()}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaQueryChange)}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}handleMobileBreakpoints(){this.initialScale=this.logoScale,this._mobileMediaQuery=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`),this._mobileMediaQuery.matches&&(this.logoScale="s"),this._mobileMediaQuery.addEventListener("change",this.handleMobileMediaQueryChange)}get hasEmptyLogo(){return this.logoImage==="undefined"||this.logoImage?.split("?")[0]==="undefined"||this.logoImage?.split("?")[0]===""||!this.logoImage}render(){let t=this.renderLogo(),n=this.renderTitle(),f=m(this.fontFamily);return this.customHeaderHtml?[e`<style>${this.customHeaderCss}</style>`,e`<div id=customHeader .innerHTML=${this.customHeaderHtml??""}></div>`]:e`<header class=${o({[s.base]:s.base,[`height-${this.logoScale}`]:!!t})} style=${a({backgroundColor:this.backgroundColor,fontFamily:f})}><div class=${o(s.headerContainer)}><span class=${`${s.headerContent} ${this.headerAlignment}`}>${t}${n}${this.infoButton?e`<calcite-button style=${a({"--calcite-color-text-1":this.textColor})} id=infoButton alignment=start appearance=transparent kind=neutral icon-start=information-f scale=s .label=${this.infoTitleText} title=${this.infoTitleText??i} @click=${this.toggleInfo}></calcite-button>`:null}</span><div class=${o(s.actionsEndContainer)}><slot name=actions-end></slot></div></div></header>`}renderLogo(){if(this.hasEmptyLogo)return null;let t=e`<img src=${this.logoImage??i} alt=${this.logoImageAltText??i}>`;return this.logoLink?e`<a href=${this.logoLink??i} target=_blank>${t}</a>`:t}renderTitle(){return this.titleText&&this.titleTextLink?e`<a style=${a({color:this.textColor})} href=${this.titleTextLink??i} rel="noopener noreferrer" target=_blank>${e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}</a>`:e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}};g("instant-apps-header",h);export{h as InstantAppsHeader};
3
+ v1.1.0-next.20250905 */
4
+ import{a as p}from"./VMX2SDA5.js";import{a as m}from"./6ICGDQ32.js";import{a as c}from"./DPFYNLMM.js";import{b as g}from"./URMOUWZW.js";import{E as d,G as o,H as a,h as l,i as e,l as i,o as r}from"./X235WG5H.js";import"./QAYI374A.js";var u=l`:host{--instant-apps-header-height: auto;--instant-apps-header-min-height: 50px;--instant-apps-header-title-text-link-decoration: underline;--instant-apps-header-height--logo-scale--s: 55px;--instant-apps-header-logo-width--logo-scale--s: 35px;--instant-apps-header-logo-height--logo-scale--s: 35px;--instant-apps-header-height--logo-scale--m: 70px;--instant-apps-header-logo-width--logo-scale--m: 50px;--instant-apps-header-logo-height--logo-scale--m: 50px;--instant-apps-header-height--logo-scale--l: 80px;--instant-apps-header-logo-width--logo-scale--l: 60px;--instant-apps-header-logo-height--logo-scale--l: 60px;--instant-apps-header-actions-end-height: auto;width:100%}:host .image.image_resized img{width:100%}:host .header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .header-container{display:flex;align-items:center;width:100%;height:inherit}:host .header-container slot{display:flex;height:inherit}:host .header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .header-container ::slotted(*) calcite-button{height:100%}:host .header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration);overflow:hidden}:host .header-content img{margin:10px}:host .header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .header-content #infoButton{margin-inline-start:10px}:host .header-content.center{justify-content:center}:host .header-content.right{justify-content:end}:host .header.height-s{height:var(--instant-apps-header-height--logo-scale--s)}:host .header.height-s h1{font-size:1.125rem}:host .header.height-s img{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .header.height-m{height:var(--instant-apps-header-height--logo-scale--m)}:host .header.height-m img{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .header.height-l{height:var(--instant-apps-header-height--logo-scale--l)}:host .header.height-l h1{font-size:1.375rem}:host .header.height-l img{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}`,s={base:"header",headerContainer:"header-container",headerContent:"header-content",actionsEndContainer:"actions-end-container"},h=class extends d{constructor(){super(...arguments),this._sanitizer=new c({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.handleMobileMediaQueryChange=t=>{let{matches:n}=t;if(n){this.logoScale="s";return}this.logoScale=this.initialScale},this.initialScale="m",this.titleText="",this.logoScale="m",this.infoButton=!1,this.infoIsOpen=!1,this.headerAlignment="left",this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=p.medium[1],this.infoIsOpenChanged=r({cancelable:!1})}static{this.properties={initialScale:16,titleText:1,titleTextLink:1,backgroundColor:1,textColor:1,logoImage:1,logoScale:3,logoImageAltText:1,logoLink:1,infoButton:7,infoIsOpen:7,infoTitleText:1,customHeaderHtml:1,headerAlignment:1,customHeaderCss:1,fontFamily:3,mobileWidthBreakpoint:9}}static{this.styles=u}async toggleInfo(){this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen)}load(){this.handleMobileBreakpoints(),this.sanitizeCustomHeaderHtml()}willUpdate(t){t.has("customHeaderHtml")&&this.sanitizeCustomHeaderHtml()}disconnectedCallback(){super.disconnectedCallback(),this._mobileMediaQuery?.removeEventListener("change",this.handleMobileMediaQueryChange)}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}handleMobileBreakpoints(){this.initialScale=this.logoScale,this._mobileMediaQuery=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`),this._mobileMediaQuery.matches&&(this.logoScale="s"),this._mobileMediaQuery.addEventListener("change",this.handleMobileMediaQueryChange)}get hasEmptyLogo(){return this.logoImage==="undefined"||this.logoImage?.split("?")[0]==="undefined"||this.logoImage?.split("?")[0]===""||!this.logoImage}render(){let t=this.renderLogo(),n=this.renderTitle(),f=m(this.fontFamily);return this.customHeaderHtml?[e`<style>${this.customHeaderCss}</style>`,e`<div id=customHeader .innerHTML=${this.customHeaderHtml??""}></div>`]:e`<header class=${o({[s.base]:s.base,[`height-${this.logoScale}`]:!!t})} style=${a({backgroundColor:this.backgroundColor,fontFamily:f})}><div class=${o(s.headerContainer)}><span class=${`${s.headerContent} ${this.headerAlignment}`}>${t}${n}${this.infoButton?e`<calcite-button style=${a({"--calcite-color-text-1":this.textColor})} id=infoButton alignment=start appearance=transparent kind=neutral icon-start=information-f scale=s .label=${this.infoTitleText} title=${this.infoTitleText??i} @click=${this.toggleInfo}></calcite-button>`:null}</span><div class=${o(s.actionsEndContainer)}><slot name=actions-end></slot></div></div></header>`}renderLogo(){if(this.hasEmptyLogo)return null;let t=e`<img src=${this.logoImage??i} alt=${this.logoImageAltText??i}>`;return this.logoLink?e`<a href=${this.logoLink??i} target=_blank>${t}</a>`:t}renderTitle(){return this.titleText&&this.titleTextLink?e`<a style=${a({color:this.textColor})} href=${this.titleTextLink??i} rel="noopener noreferrer" target=_blank>${e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}</a>`:e`<h1 style=${a({color:this.textColor})}>${this.titleText}</h1>`}};g("instant-apps-header",h);export{h as InstantAppsHeader};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as e,b as i,c as l,d as s,e as t}from"./KTB7R4GI.js";import{a as r}from"./PHO74YB4.js";import"./IBBG4HBO.js";import"./EBI4WZB5.js";import"./XORZQSUS.js";import"./UKRHIEXC.js";import"./RABLP5NF.js";import"./7O64U4GK.js";import"./VNN6J764.js";import"./LE52XOLX.js";import"./AIGTIFJD.js";import"./LD2QHCA2.js";import"./OSMOWMLE.js";import"./4NKGIEI7.js";import"./S2WQF5IV.js";import"./3ZUBNWMX.js";import"./4XKYQCQV.js";import"./S6PYX5OO.js";import"./DEDT5ZS3.js";import"./3PN2SI7I.js";import"./MY6LYJTC.js";import"./FN6N7TVF.js";import"./6IPYR7MB.js";import"./R4OMMKHF.js";import"./P6NKB6QR.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
3
+ v1.1.0-next.20250905 */
4
+ import{a as e,b as i,c as l,d as s,e as t}from"./U2KX3X36.js";import{a as r}from"./LWBAUDAM.js";import"./3FUV4UKU.js";import"./TZ23JRMX.js";import"./PLU3WSUF.js";import"./7VVSXMO5.js";import"./OKLUYUZQ.js";import"./TI2IRBJK.js";import"./FJAH2GX7.js";import"./JJNXEMEP.js";import"./YELJ5IOA.js";import"./UNFCZ6WR.js";import"./H53GJLIP.js";import"./MCUFFKPW.js";import"./SHYKEQPX.js";import"./PP7FGPGK.js";import"./RAW47JAB.js";import"./SOQIASXC.js";import"./L4KSFD6E.js";import"./3PPJ5ZNF.js";import"./AF526DRY.js";import"./K7ATEP4Q.js";import"./SSW3HZME.js";import"./FKHBLIQQ.js";import"./QAYI374A.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as o}from"./YU7GLX6S.js";function r(n,t){let e;t.authentication&&(e=t.authentication.token);let a=t.authentication?`?token=${e}`:"";return n&&o(`${n}${a}`)}export{r as a};
3
+ v1.1.0-next.20250905 */
4
+ import{a as o}from"./OQ26OHNR.js";function r(n,t){let e;t.authentication&&(e=t.authentication.token);let a=t.authentication?`?token=${e}`:"";return n&&o(`${n}${a}`)}export{r as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
3
+ v1.1.0-next.20250905 */
4
4
  function s(n,r){return Object.keys(n).reduce(function(i,t){return i[t]=r(n[t],t,n),i},{})}function o(n,r,e){if(e=e||"",Array.isArray(n))return n.map(u);return n&&c(n)&&!a(n)&&!x(n)&&!p(n)?Object.assign({},n,s(n,u)):r(n,e);function u(i,t){let f=""+(e?e+"."+t:t);return o(i,r,f)}}function l(n){return typeof n=="string"||n instanceof String}function a(n){return n instanceof Date}function p(n){return typeof n=="function"}function c(n){return typeof n=="object"}function x(n){return n instanceof RegExp}export{o as a,l as b,c,x as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import"./P6NKB6QR.js";var a="Nemate dovoljno kredita za obavljanje ove operacije. Za pomo\u0107 se obratite svom administratoru sistema ArcGIS.",e="Ova alatka je objavljena iz bele\u017Enice. Pristup servisu ArcGIS Notebooks je blokiran za va\u0161u organizaciju. Kontaktirajte svog administratora da prilagodite ovu postavku.",o="${ dataPath } ne sme da ima ${ additionalProperty }.",i="${ dataPath } mora da odgovara \u0161emi jednog od ovih: ${ schemaOptions }.",r="Poku\u0161ajte ponovo da sa\u010Duvate mapu.",t="Procena kredita nije uspela. Pomerite se nadole, ispravite gre\u0161ke i ponovo procenite kredite.",s="Do\u0161lo je do gre\u0161ke pri pokretanju analize.",n="${ dataPath } mora da bude jednako jednoj od ovih dozvoljenih vrednosti: ${ allowedValues }.",l="\u010Cuvanje istorije analize nije uspelo",d="Skladi\u0161te istorije je puno. Uklonite neke stavke iz istorije analize i poku\u0161ajte ponovo da ih sa\u010Duvate.",v="Ime servisa sadr\u017Ei jedan ili vi\u0161e neva\u017Ee\u0107ih znakova.",j="\u010Cuvanje privremenog sloja kao hostovanog sloja geoobjekta nije zavr\u0161eno.",m="Preuzimanje klju\u010Dnih svojstava nije uspelo.",u="U\u010Ditavanje sloja nije uspelo.",p="Sloj nije dostupan.",k="${ dataPath } ne sme da ima vi\u0161e od ${ limit } stavki.",c="Do\u0161lo je do gre\u0161ke prilikom \u010Duvanja modela. Poku\u0161ajte da sa\u010Duvate ponovo.",h="${ dataPath } ne sme da ima manje od ${ limit } stavki.",z="${ dataPath } ne sme da bude kra\u0107e od ${ limit } karaktera.",P="U\u010Ditavanje stavke modela nije uspelo. Uverite se da model postoji i da je dobijena dozvola za pristup.",g="Dovr\u0161avanje zahteva nije uspelo.",E="Nemate dozvolu za pokretanje ovog alata. <calcite-link target='_blank' href='${ docLink }'>Saznaj vi\u0161e</calcite-link>",S="Prijava na portal nije uspela.",b="Neuspe\u0161no \u010Ditanje ulaznih podataka.",y="${ dataPath } nedostaje svojstvo pod nazivom ${ missingProperty }.",$="Sloj sa rezultatima ve\u0107 postoji s ovim nazivom. Slojevi sa rezultatima moraju imati jedinstveno ime u celoj organizaciji. Upotrebite drugi naziv.",I="Ime izlaza sadr\u017Ei jedan ili vi\u0161e neva\u017Ee\u0107ih znakova. <a href='${docLink}' target='_blank'>Saznajte vi\u0161e.</a>",f="Objavljivanje privremenog sloja kao hostovanog sloja nije uspelo zbog jednog ili vi\u0161e neva\u017Ee\u0107ih polja. Ponovo pokrenite alatku da biste kreirali sloj sa va\u017Ee\u0107im poljima.",F="Slanje posla nije uspelo. Listajte nadole, ispravite gre\u0161ke i ponovo pokrenite analizu.",N="${ dataPath } mora da ima bar jedan karakter koji nije prazan.",L={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:o,anyOfValues:i,cannotWriteToItemResource:r,creditEstimationError:t,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:v,hostedFeatureServicePublishDidNotComplete:j,keyPropertiesError:m,layerLoadFailure:u,layerUnavailable:p,maxItems:k,mbFailedToSave:c,minItems:h,minLength:z,modelNotFound:P,networkError:g,noPermissionToAccessTool:E,portalLoadError:S,queryFeaturesError:b,requiredProperty:y,serviceNameExistsError:$,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:f,toolValidationError:F,whiteSpacePattern:N};export{a as InsufficientCreditsError,e as accessBlocked,o as additionalProperty,i as anyOfValues,r as cannotWriteToItemResource,t as creditEstimationError,L as default,s as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,v as hostedFeatureServiceInvalidTitle,j as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,u as layerLoadFailure,p as layerUnavailable,k as maxItems,c as mbFailedToSave,h as minItems,z as minLength,P as modelNotFound,g as networkError,E as noPermissionToAccessTool,S as portalLoadError,b as queryFeaturesError,y as requiredProperty,$ as serviceNameExistsError,I as specialCharactersInServiceNameError,f as temporaryLayerFieldsError,F as toolValidationError,N as whiteSpacePattern};
3
+ v1.1.0-next.20250905 */
4
+ import"./QAYI374A.js";var a="Nemate dovoljno kredita za obavljanje ove operacije. Za pomo\u0107 se obratite svom administratoru sistema ArcGIS.",e="Ova alatka je objavljena iz bele\u017Enice. Pristup servisu ArcGIS Notebooks je blokiran za va\u0161u organizaciju. Kontaktirajte svog administratora da prilagodite ovu postavku.",o="${ dataPath } ne sme da ima ${ additionalProperty }.",i="${ dataPath } mora da odgovara \u0161emi jednog od ovih: ${ schemaOptions }.",r="Poku\u0161ajte ponovo da sa\u010Duvate mapu.",t="Procena kredita nije uspela. Pomerite se nadole, ispravite gre\u0161ke i ponovo procenite kredite.",s="Do\u0161lo je do gre\u0161ke pri pokretanju analize.",n="${ dataPath } mora da bude jednako jednoj od ovih dozvoljenih vrednosti: ${ allowedValues }.",l="\u010Cuvanje istorije analize nije uspelo",d="Skladi\u0161te istorije je puno. Uklonite neke stavke iz istorije analize i poku\u0161ajte ponovo da ih sa\u010Duvate.",v="Ime servisa sadr\u017Ei jedan ili vi\u0161e neva\u017Ee\u0107ih znakova.",j="\u010Cuvanje privremenog sloja kao hostovanog sloja geoobjekta nije zavr\u0161eno.",m="Preuzimanje klju\u010Dnih svojstava nije uspelo.",u="U\u010Ditavanje sloja nije uspelo.",p="Sloj nije dostupan.",k="${ dataPath } ne sme da ima vi\u0161e od ${ limit } stavki.",c="Do\u0161lo je do gre\u0161ke prilikom \u010Duvanja modela. Poku\u0161ajte da sa\u010Duvate ponovo.",h="${ dataPath } ne sme da ima manje od ${ limit } stavki.",z="${ dataPath } ne sme da bude kra\u0107e od ${ limit } karaktera.",P="U\u010Ditavanje stavke modela nije uspelo. Uverite se da model postoji i da je dobijena dozvola za pristup.",g="Dovr\u0161avanje zahteva nije uspelo.",E="Nemate dozvolu za pokretanje ovog alata. <calcite-link target='_blank' href='${ docLink }'>Saznaj vi\u0161e</calcite-link>",S="Prijava na portal nije uspela.",b="Neuspe\u0161no \u010Ditanje ulaznih podataka.",y="${ dataPath } nedostaje svojstvo pod nazivom ${ missingProperty }.",$="Sloj sa rezultatima ve\u0107 postoji s ovim nazivom. Slojevi sa rezultatima moraju imati jedinstveno ime u celoj organizaciji. Upotrebite drugi naziv.",I="Ime izlaza sadr\u017Ei jedan ili vi\u0161e neva\u017Ee\u0107ih znakova. <a href='${docLink}' target='_blank'>Saznajte vi\u0161e.</a>",f="Objavljivanje privremenog sloja kao hostovanog sloja nije uspelo zbog jednog ili vi\u0161e neva\u017Ee\u0107ih polja. Ponovo pokrenite alatku da biste kreirali sloj sa va\u017Ee\u0107im poljima.",F="Slanje posla nije uspelo. Listajte nadole, ispravite gre\u0161ke i ponovo pokrenite analizu.",N="${ dataPath } mora da ima bar jedan karakter koji nije prazan.",L={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:o,anyOfValues:i,cannotWriteToItemResource:r,creditEstimationError:t,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:v,hostedFeatureServicePublishDidNotComplete:j,keyPropertiesError:m,layerLoadFailure:u,layerUnavailable:p,maxItems:k,mbFailedToSave:c,minItems:h,minLength:z,modelNotFound:P,networkError:g,noPermissionToAccessTool:E,portalLoadError:S,queryFeaturesError:b,requiredProperty:y,serviceNameExistsError:$,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:f,toolValidationError:F,whiteSpacePattern:N};export{a as InsufficientCreditsError,e as accessBlocked,o as additionalProperty,i as anyOfValues,r as cannotWriteToItemResource,t as creditEstimationError,L as default,s as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,v as hostedFeatureServiceInvalidTitle,j as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,u as layerLoadFailure,p as layerUnavailable,k as maxItems,c as mbFailedToSave,h as minItems,z as minLength,P as modelNotFound,g as networkError,E as noPermissionToAccessTool,S as portalLoadError,b as queryFeaturesError,y as requiredProperty,$ as serviceNameExistsError,I as specialCharactersInServiceNameError,f as temporaryLayerFieldsError,F as toolValidationError,N as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as o}from"./7SZIBOWM.js";import{d as r}from"./WZXWVMIF.js";import"./PA3XPHBO.js";import"./DR7BMOTL.js";import{a as s}from"./PHO74YB4.js";import"./IBBG4HBO.js";import"./EBI4WZB5.js";import"./XORZQSUS.js";import"./UKRHIEXC.js";import"./RABLP5NF.js";import"./7O64U4GK.js";import"./VNN6J764.js";import"./LE52XOLX.js";import"./AIGTIFJD.js";import"./LD2QHCA2.js";import"./OSMOWMLE.js";import"./4NKGIEI7.js";import"./S2WQF5IV.js";import"./3ZUBNWMX.js";import"./4XKYQCQV.js";import"./S6PYX5OO.js";import"./DEDT5ZS3.js";import"./3PN2SI7I.js";import"./MY6LYJTC.js";import"./FN6N7TVF.js";import"./6IPYR7MB.js";import"./R4OMMKHF.js";import"./P6NKB6QR.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
3
+ v1.1.0-next.20250905 */
4
+ import{a as o}from"./YS3K3BGY.js";import{d as r}from"./SASVW5FY.js";import"./UBD5J4KI.js";import"./GG743HIZ.js";import{a as s}from"./LWBAUDAM.js";import"./3FUV4UKU.js";import"./TZ23JRMX.js";import"./PLU3WSUF.js";import"./7VVSXMO5.js";import"./OKLUYUZQ.js";import"./TI2IRBJK.js";import"./FJAH2GX7.js";import"./JJNXEMEP.js";import"./YELJ5IOA.js";import"./UNFCZ6WR.js";import"./H53GJLIP.js";import"./MCUFFKPW.js";import"./SHYKEQPX.js";import"./PP7FGPGK.js";import"./RAW47JAB.js";import"./SOQIASXC.js";import"./L4KSFD6E.js";import"./3PPJ5ZNF.js";import"./AF526DRY.js";import"./K7ATEP4Q.js";import"./SSW3HZME.js";import"./FKHBLIQQ.js";import"./QAYI374A.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
3
+ v1.1.0-next.20250905 */
4
4
  var s="calcite-mode-light",c="calcite-mode-dark";function a(e){let t=e?.closest(`.${c}, .${s}`);return t==null?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t?.classList.contains(c)?"dark":"light"}export{a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as E}from"./PBGF5YEC.js";import"./TVQM6PZH.js";import{a as S,c as m,d as c,e as _,f,g as x}from"./EOV3DBYK.js";import"./25NMRPJF.js";import{b as C}from"./WUZCQEEC.js";import{b as $}from"./FMH34SJ5.js";import{a as v}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{b as I}from"./JIAIW5D6.js";import{C as n,D as o,E as F,G as u,h as y,i as l,l as p,o as b,r as L}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var P=y`@layer{/** @license
3
+ v1.1.0-next.20250905 */
4
+ import{a as E}from"./C65CV5MP.js";import"./URMOUWZW.js";import{a as S,c as m,d as c,e as _,f,g as x}from"./UGU237IE.js";import"./DTQCUUU5.js";import{b as C}from"./KID3MD3Q.js";import{b as $}from"./TMVRLBOT.js";import{a as v}from"./IUV7LSHR.js";import"./OTLKUH3K.js";import"./O4KSGC6N.js";import{b as I}from"./CBCAA7KH.js";import{C as n,D as o,E as F,G as u,h as y,i as l,l as p,o as b,r as L}from"./X235WG5H.js";import"./QAYI374A.js";var P=y`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{a as E}from"./PBGF5YEC.js";import"./TVQM6PZH.js";import{a as S,c as m,d a
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */: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:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,g=class extends F{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=v({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._showNextButton=!1,this._submitNextButtonDisabled=!1,this._createFeature=n(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=n(),this._featureList=n(),this._selectedRelatedFeature=[],this._layerList=n(),this._createRelatedFeature=n(),this._layers=[],this._mapImageryLayersId=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=n(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this._reportSubmittedAlertNode=n(),this._commentSubmittedAlertNode=n(),this._sortPopoverNode=n(),this.togglePanel=b(),E(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16,_showNextButton:16,_submitNextButtonDisabled:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),(e.has("reportingAreaLayer")||e.has("reportingArea")&&this.hasUpdated)&&setTimeout(()=>{this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)},50),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await c(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){await this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList!=null)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`${this._reportSubmitted&&l`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.reportSubmittedMessage||this._translations.submitMsg)??""} ${o(this._reportSubmittedAlertNode)}></div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&l`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.commentSubmittedMessage||this._translations.commentSubmittedMsg)??""} ${o(this._commentSubmittedAlertNode)}></div></calcite-alert>`||""}${this._addingCommentFailed&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}updated(){this._adjustAlertStyles()}async _initModules(){let[e,t,i,s]=await $(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter","esri/rest/identify","esri/rest/support/IdentifyParameters"]);this.reactiveUtils=e,this.FeatureFilter=t,this.identify=i,this.IdentifyParameters=s}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await c(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class=${`width-full ${t}`}>${this.mapView?l`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:l`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&l`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList?.filterCount>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_setFilterList(e){this._filterList=e,e&&(e.autoUpdateUrl=!1,e.resetBtn=this.isMobile,e.resetFiltersOnDisconnect=!1,e.zoomBtn=!1)}_adjustAlertStyles(){this.reportSubmittedMessage&&this._reportSubmittedAlertNode.value?.children[0]&&(this._reportSubmittedAlertNode.value.children[0].style.margin="0px"),this.commentSubmittedMessage&&this._commentSubmittedAlertNode.value?.children[0]&&(this._commentSubmittedAlertNode.value.children[0].style.margin="0px")}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i,this._sortPopoverNode.value&&(this._sortPopoverNode.value.open=!1)}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return l`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover ${o(this._sortPopoverNode)}><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&l`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .loading=${this._showLoadingIndicator} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&l`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._submitNextButtonDisabled} @click=${this._showNextButton?this.onNextButtonClick.bind(this):this.onCreateFeatureSubmitButtonClick.bind(this)} width=full>${this._showNextButton?this._translations.next:this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .reportingAreaLayer=${this.reportingAreaLayer} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingLocation=${this.editingLocation} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .reportingArea=${this.reportingArea} .reportingAreaMessage=${this.reportingAreaMessage} .submitNewReportsMessage=${this.submitNewReportsMessage} update-map-position ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(e){this._submitNextButtonDisabled=e.detail,this._showSubmitCancelButton=!0}editingLocation(){this._showNextButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this._createFeature.value.submit())}backFromCreateFeaturePanel(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updateNonVisibleLayersOnMap(!1)),this.backFromSelectedPanel()}onNextButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._showSubmitCancelButton=!0,this._createFeature.value.showForm())}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromCreateRelatedFeaturePanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await _(this.mapView),s=[];if(this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(a=>{t.includes(a.id)&&(this._validLayers.push(a),a.visible||this._nonVisibleValidLayers.push(a),this._getLayersConfig(a.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[a.id]&&this._layerItemsHash[a.id].supportsAdd&&s.push(a.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,!this._urlParamsLoaded&&this._editableLayerIds.length>1&&this.layerId&&this.objectId){let a=this.mapView&&await c(this.mapView,this.layerId);a&&await this.displayFeaturesList({detail:{layerId:a.id,layerName:a.title}}),this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams()}}}async displayFeaturesList(e){this._showLoadingIndicator=!0,await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId,this._showLoadingIndicator=!1}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer?.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await f(this.mapView);e.relationships?.some(i=>{let s=t?.filter(a=>e.url===a.url&&a.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??p}></calcite-action>${s&&l`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??p}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&l`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${l`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureClick=${()=>{this._showLoadingIndicator=!0}} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&l`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&l`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentClick=${()=>{this._showLoadingIndicator=!0}} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&l`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return l`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=both id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView} @selectionChanged=${()=>{this._showLoadingIndicator=!1}}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await m(this.mapView,e.layer.id.toString());if(t){let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await x([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return l`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){this.mapView&&await f(this.mapView),await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(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",e=>{this.mapView&&(this.mapView.popupEnabled=!1),this.onMapClick(e)})}async onMapClick(e){if(!(this._flowItems[this._flowItems.length-1]==="feature-create"||this._flowItems[this._flowItems.length-1]==="add-comment")&&this.mapView){let t=await this.mapView.hitTest(e),i=[],s=[],a=[],h=!1;t.results.length>0&&t.results.forEach(d=>{d.type==="graphic"&&i.push(d.graphic)}),i.length>0&&(await this._setReportingGraphics(i),s=this._getNonReportingLayerGraphics(i)),this._mapImageryLayersId.length>0&&(a=await this._getIdentifiedGraphics(e.mapPoint),h=a.length>0);let r=s.concat(a);if(r.length>0){this.mapView.popupEnabled=!0;let d={features:r,location:e.mapPoint,updateLocationEnabled:!h};await this.mapView.openPopup(d)}}}async _setReportingGraphics(e){let t=e.filter(i=>{if(i.layer?.type==="feature"){let s=i.layer;return this._validLayers.includes(s)}else return!1});this._selectedLayer&&this._selectedFeature.length>0&&this._selectedLayer.id===t[0]?.layer?.id&&t[0].attributes[this._selectedLayer.objectIdField]===this._selectedFeature[0].attributes[this._selectedLayer.objectIdField]||t.length>0&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(e[0])):this._flowItems=[...this._flowItems,"feature-details"])}_getNonReportingLayerGraphics(e){return e.filter(t=>{if(t.layer?.type==="feature"){let i=t.layer;return!this._validLayers.includes(i)&&i?.popupEnabled&&i?.id}else return!1})}async _getIdentifiedGraphics(e){let t=this.IdentifyParameters&&new this.IdentifyParameters({geometry:e,tolerance:3,mapExtent:this.mapView?.extent}),i=this._mapImageryLayersId.map(async h=>{let r=this.mapView&&await c(this.mapView,h);if(r?.url&&t)return await this.identify?.identify(r.url,t)}),s=await Promise.all(i),a=[];return s.forEach(h=>{h.results.forEach(r=>{let d=Object.keys(r.feature.attributes).map(w=>({fieldName:w,label:w}));r.feature.popupTemplate={title:r.layerName,content:[{type:"fields",fieldInfos:d}]},a.push(r.feature)})}),a}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let a=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&a&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await m(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await S(this.mapView,!0),t=this.mapView&&await _(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),await this.handleSelectedLayersFilter(),this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.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){let e=this.mapView&&await c(this.mapView,this.layerId);if(e){let t=this.mapView&&await C([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await c(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}async resetFilterList(){await this._filterList?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:a}=i;s&&a&&e.push(`(${a})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables).forEach(t=>{if(t.type==="map-image"&&!this._mapImageryLayersId.includes(t.id)){this._mapImageryLayersId.push(t.id);return}if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(a=>a.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(a=>{let h=s.expressions?.find(r=>r.id===a.id);h!=null&&(a.name=h.name)}))})}};I("crowdsource-reporter",g);export{g as CrowdsourceReporter};
18
+ */: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:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,g=class extends F{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=v({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._showNextButton=!1,this._submitNextButtonDisabled=!1,this._createFeature=n(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=n(),this._featureList=n(),this._selectedRelatedFeature=[],this._layerList=n(),this._createRelatedFeature=n(),this._layers=[],this._mapImageryLayersId=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=n(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this._reportSubmittedAlertNode=n(),this._commentSubmittedAlertNode=n(),this._sortPopoverNode=n(),this.togglePanel=b(),E(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16,_showNextButton:16,_submitNextButtonDisabled:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),(e.has("reportingAreaLayer")||e.has("reportingArea")&&this.hasUpdated)&&setTimeout(()=>{this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)},50),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await c(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){await this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList!=null)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`${this._reportSubmitted&&l`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.reportSubmittedMessage||this._translations.submitMsg)??""} ${o(this._reportSubmittedAlertNode)}></div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&l`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.commentSubmittedMessage||this._translations.commentSubmittedMsg)??""} ${o(this._commentSubmittedAlertNode)}></div></calcite-alert>`||""}${this._addingCommentFailed&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}updated(){this._adjustAlertStyles()}async _initModules(){let[e,t,i,s]=await $(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter","esri/rest/identify","esri/rest/support/IdentifyParameters"]);this.reactiveUtils=e,this.FeatureFilter=t,this.identify=i,this.IdentifyParameters=s}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await c(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class=${`width-full ${t}`}>${this.mapView?l`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:l`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&l`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList?.filterCount>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_setFilterList(e){this._filterList=e,e&&(e.autoUpdateUrl=!1,e.resetBtn=this.isMobile,e.resetFiltersOnDisconnect=!1,e.zoomBtn=!1)}_adjustAlertStyles(){this.reportSubmittedMessage&&this._reportSubmittedAlertNode.value?.children[0]&&(this._reportSubmittedAlertNode.value.children[0].style.margin="0px"),this.commentSubmittedMessage&&this._commentSubmittedAlertNode.value?.children[0]&&(this._commentSubmittedAlertNode.value.children[0].style.margin="0px")}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i,this._sortPopoverNode.value&&(this._sortPopoverNode.value.open=!1)}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return l`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover ${o(this._sortPopoverNode)}><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&l`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .loading=${this._showLoadingIndicator} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&l`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._submitNextButtonDisabled} @click=${this._showNextButton?this.onNextButtonClick.bind(this):this.onCreateFeatureSubmitButtonClick.bind(this)} width=full>${this._showNextButton?this._translations.next:this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .reportingAreaLayer=${this.reportingAreaLayer} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingLocation=${this.editingLocation} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .reportingArea=${this.reportingArea} .reportingAreaMessage=${this.reportingAreaMessage} .submitNewReportsMessage=${this.submitNewReportsMessage} update-map-position ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(e){this._submitNextButtonDisabled=e.detail,this._showSubmitCancelButton=!0}editingLocation(){this._showNextButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this._createFeature.value.submit())}backFromCreateFeaturePanel(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updateNonVisibleLayersOnMap(!1)),this.backFromSelectedPanel()}onNextButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._showSubmitCancelButton=!0,this._createFeature.value.showForm())}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromCreateRelatedFeaturePanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await _(this.mapView),s=[];if(this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(a=>{t.includes(a.id)&&(this._validLayers.push(a),a.visible||this._nonVisibleValidLayers.push(a),this._getLayersConfig(a.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[a.id]&&this._layerItemsHash[a.id].supportsAdd&&s.push(a.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,!this._urlParamsLoaded&&this._editableLayerIds.length>1&&this.layerId&&this.objectId){let a=this.mapView&&await c(this.mapView,this.layerId);a&&await this.displayFeaturesList({detail:{layerId:a.id,layerName:a.title}}),this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams()}}}async displayFeaturesList(e){this._showLoadingIndicator=!0,await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId,this._showLoadingIndicator=!1}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer?.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await f(this.mapView);e.relationships?.some(i=>{let s=t?.filter(a=>e.url===a.url&&a.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??p}></calcite-action>${s&&l`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??p}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&l`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${l`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureClick=${()=>{this._showLoadingIndicator=!0}} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&l`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&l`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentClick=${()=>{this._showLoadingIndicator=!0}} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&l`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return l`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=both id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView} @selectionChanged=${()=>{this._showLoadingIndicator=!1}}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await m(this.mapView,e.layer.id.toString());if(t){let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await x([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return l`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){this.mapView&&await f(this.mapView),await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(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",e=>{this.mapView&&(this.mapView.popupEnabled=!1),this.onMapClick(e)})}async onMapClick(e){if(!(this._flowItems[this._flowItems.length-1]==="feature-create"||this._flowItems[this._flowItems.length-1]==="add-comment")&&this.mapView){let t=await this.mapView.hitTest(e),i=[],s=[],a=[],h=!1;t.results.length>0&&t.results.forEach(d=>{d.type==="graphic"&&i.push(d.graphic)}),i.length>0&&(await this._setReportingGraphics(i),s=this._getNonReportingLayerGraphics(i)),this._mapImageryLayersId.length>0&&(a=await this._getIdentifiedGraphics(e.mapPoint),h=a.length>0);let r=s.concat(a);if(r.length>0){this.mapView.popupEnabled=!0;let d={features:r,location:e.mapPoint,updateLocationEnabled:!h};await this.mapView.openPopup(d)}}}async _setReportingGraphics(e){let t=e.filter(i=>{if(i.layer?.type==="feature"){let s=i.layer;return this._validLayers.includes(s)}else return!1});this._selectedLayer&&this._selectedFeature.length>0&&this._selectedLayer.id===t[0]?.layer?.id&&t[0].attributes[this._selectedLayer.objectIdField]===this._selectedFeature[0].attributes[this._selectedLayer.objectIdField]||t.length>0&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(e[0])):this._flowItems=[...this._flowItems,"feature-details"])}_getNonReportingLayerGraphics(e){return e.filter(t=>{if(t.layer?.type==="feature"){let i=t.layer;return!this._validLayers.includes(i)&&i?.popupEnabled&&i?.id}else return!1})}async _getIdentifiedGraphics(e){let t=this.IdentifyParameters&&new this.IdentifyParameters({geometry:e,tolerance:3,mapExtent:this.mapView?.extent}),i=this._mapImageryLayersId.map(async h=>{let r=this.mapView&&await c(this.mapView,h);if(r?.url&&t)return await this.identify?.identify(r.url,t)}),s=await Promise.all(i),a=[];return s.forEach(h=>{h.results.forEach(r=>{let d=Object.keys(r.feature.attributes).map(w=>({fieldName:w,label:w}));r.feature.popupTemplate={title:r.layerName,content:[{type:"fields",fieldInfos:d}]},a.push(r.feature)})}),a}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let a=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&a&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await m(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await S(this.mapView,!0),t=this.mapView&&await _(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),await this.handleSelectedLayersFilter(),this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.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){let e=this.mapView&&await c(this.mapView,this.layerId);if(e){let t=this.mapView&&await C([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await c(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}async resetFilterList(){await this._filterList?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:a}=i;s&&a&&e.push(`(${a})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables.toArray()).forEach(t=>{if(t.type==="map-image"&&!this._mapImageryLayersId.includes(t.id)){this._mapImageryLayersId.push(t.id);return}if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(a=>a.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(a=>{let h=s.expressions?.find(r=>r.id===a.id);h!=null&&(a.name=h.name)}))})}};I("crowdsource-reporter",g);export{g as CrowdsourceReporter};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{a as r}from"./TWHEILUF.js";import"./6OYFRBKR.js";import"./KL74F7RD.js";import"./YIY5UZCD.js";import"./MBOQJ5RM.js";import"./VNDUXCJD.js";import"./G7XVWOS2.js";import"./7PJWALIQ.js";import"./SF7WNX6Q.js";import"./TWU4IG5N.js";import"./6EMJRLR6.js";import"./SKDHYV2M.js";import"./XZJPMNRH.js";import"./YU7GLX6S.js";import"./HLKRAXOA.js";import"./WZXWVMIF.js";import"./53HOAC4M.js";import"./IUJF4CYI.js";import"./IEOZRY6N.js";import"./PA3XPHBO.js";import"./DR7BMOTL.js";import"./EBI4WZB5.js";import"./25NMRPJF.js";import{a as d}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{b as p}from"./JIAIW5D6.js";import{E as l,h,i as n,l as a}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var g=h`/** @license
3
+ v1.1.0-next.20250905 */
4
+ import{a as r}from"./D5GQJJHN.js";import"./AKQRSHTH.js";import"./PFVKHVHS.js";import"./OLMBNBBF.js";import"./2ORLAM54.js";import"./X7N4H6TH.js";import"./IQYI244Q.js";import"./ELZYZSVP.js";import"./62WWNHGG.js";import"./HPKZOSZN.js";import"./UHX7MS3I.js";import"./NCSYGSCB.js";import"./5SHDZLP7.js";import"./OQ26OHNR.js";import"./R62USL4A.js";import"./SASVW5FY.js";import"./347G4Y7R.js";import"./PD3HXY3Y.js";import"./RJOZVIZB.js";import"./UBD5J4KI.js";import"./GG743HIZ.js";import"./PLU3WSUF.js";import"./DTQCUUU5.js";import{a as d}from"./IUV7LSHR.js";import"./OTLKUH3K.js";import"./O4KSGC6N.js";import{b as p}from"./CBCAA7KH.js";import{E as l,h,i as n,l as a}from"./X235WG5H.js";import"./QAYI374A.js";var g=h`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.3 */
4
- import{b as p,d as n,e as h,f as R}from"./IUJF4CYI.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
3
+ v1.1.0-next.20250905 */
4
+ import{b as p,d as n,e as h,f as R}from"./PD3HXY3Y.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};