@esri/solutions-components 1.1.0-next.20250828.2 → 1.1.0-next.20250903

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 (528) hide show
  1. package/dist/cdn/{NYVKKNHY.js → 25D5G57B.js} +2 -2
  2. package/dist/cdn/{FZNR7TIE.js → 263Z5MAA.js} +2 -2
  3. package/dist/cdn/{TXRXICA2.js → 2L6FCXLK.js} +2 -2
  4. package/dist/cdn/{6Q3YGI6N.js → 2RXSVSTL.js} +2 -2
  5. package/dist/cdn/{7D3ORA5L.js → 2SBTFF4G.js} +2 -2
  6. package/dist/cdn/{QTP3C6RK.js → 2SIWKZHV.js} +2 -2
  7. package/dist/cdn/{N3CBQTJJ.js → 2TI62BOG.js} +2 -2
  8. package/dist/cdn/{Q3W3ZOVD.js → 2UMFS6ZI.js} +2 -2
  9. package/dist/cdn/{JP7CV4WF.js → 33UE73VG.js} +2 -2
  10. package/dist/cdn/{7ODSJ4C2.js → 3NQMQUBX.js} +2 -2
  11. package/dist/cdn/{LJFJ34P7.js → 3OSBW5AG.js} +1 -1
  12. package/dist/cdn/{WFO32OM2.js → 3PPFS4QR.js} +2 -2
  13. package/dist/cdn/{GBKUKKUV.js → 3QSUC735.js} +2 -2
  14. package/dist/cdn/{2AKBCQY2.js → 3R22RH2L.js} +1 -1
  15. package/dist/cdn/{MIYSOUMU.js → 3RDQIPGF.js} +2 -2
  16. package/dist/cdn/{XZTBY24O.js → 3V47EZS4.js} +2 -2
  17. package/dist/cdn/{LENHGFEC.js → 3XFLG3VS.js} +1 -1
  18. package/dist/cdn/46ZCJGBX.js +18 -0
  19. package/dist/cdn/{CB7VYEXG.js → 4ILEEG5K.js} +2 -2
  20. package/dist/cdn/{YW3IAR3O.js → 4NMD6D67.js} +2 -2
  21. package/dist/cdn/{TVNF3ZMP.js → 4NZDM7NA.js} +2 -2
  22. package/dist/cdn/{E6FQL3RC.js → 4Q53FCOJ.js} +2 -2
  23. package/dist/cdn/{HMWYIWHJ.js → 4UHQOVQS.js} +1 -1
  24. package/dist/cdn/5AF7VEUD.js +4 -0
  25. package/dist/cdn/{AEDDG63K.js → 5E52RSQU.js} +2 -2
  26. package/dist/cdn/{KMHSDP5I.js → 5EB6UCQM.js} +2 -2
  27. package/dist/cdn/5F4V7X7P.js +4 -0
  28. package/dist/cdn/{4TORHLL5.js → 5I6SZXTH.js} +2 -2
  29. package/dist/cdn/{EZUDO3V5.js → 5JYEFLDF.js} +1 -1
  30. package/dist/cdn/{N3HUJT2Z.js → 5LFUS6YI.js} +2 -2
  31. package/dist/cdn/5U27X3EO.js +18 -0
  32. package/dist/cdn/{3P3XVVBF.js → 6BO64IUD.js} +2 -2
  33. package/dist/cdn/{HYYGSVZU.js → 6BTVIJNN.js} +2 -2
  34. package/dist/cdn/{AKU6GXP4.js → 6CKGSS43.js} +1 -1
  35. package/dist/cdn/{CALN3HN2.js → 6EUUMJZU.js} +2 -2
  36. package/dist/cdn/{IM622Y5Y.js → 6N7FXL6N.js} +1 -1
  37. package/dist/cdn/{BMNOMAPQ.js → 6QI4WFUS.js} +2 -2
  38. package/dist/cdn/{NB4VIUWQ.js → 6TYVKA4U.js} +2 -2
  39. package/dist/cdn/{AKVOVYDO.js → 6ULJDD5E.js} +2 -2
  40. package/dist/cdn/{EKRT5N36.js → 6WIYLLIY.js} +2 -2
  41. package/dist/cdn/{DFW7LGU5.js → 6WVSHYIM.js} +2 -2
  42. package/dist/cdn/{3BO2SPYK.js → 75VF4EO4.js} +2 -2
  43. package/dist/cdn/{JXRF526X.js → 766BGQRA.js} +2 -2
  44. package/dist/cdn/{VAHLKR3X.js → 7BG624H4.js} +2 -2
  45. package/dist/cdn/7E4MJRCK.js +18 -0
  46. package/dist/cdn/{FD5FUB3H.js → 7EAQRUQT.js} +2 -2
  47. package/dist/cdn/{DSVENZ7L.js → 7F2DELVM.js} +2 -2
  48. package/dist/cdn/{3KJKYMM3.js → 7I6QMRQ7.js} +2 -2
  49. package/dist/cdn/{DZEHMG7V.js → 7KQPO4TE.js} +1 -1
  50. package/dist/cdn/{XYCPHWHV.js → 7NZ3AHDY.js} +1 -1
  51. package/dist/cdn/{7HE2XDQP.js → 7TFI6232.js} +2 -2
  52. package/dist/cdn/{C6BYI57L.js → 7UO5FUM4.js} +2 -2
  53. package/dist/cdn/{6VNI2QN4.js → 7WLXEQE5.js} +2 -2
  54. package/dist/cdn/{EQ3PO3JH.js → 7YBQ5FMQ.js} +2 -2
  55. package/dist/cdn/{UFMFYDXM.js → 7YLGBF4O.js} +2 -2
  56. package/dist/cdn/{IYPIWHZT.js → A36SHVQN.js} +2 -2
  57. package/dist/cdn/{7PZ2EFYE.js → AAHDUZCC.js} +2 -2
  58. package/dist/cdn/{Y5UTJKYQ.js → AGXGQ7ZQ.js} +2 -2
  59. package/dist/cdn/{QRBNXX42.js → AJEIUYS3.js} +2 -2
  60. package/dist/cdn/{6V5EI53Z.js → AL6Z2B72.js} +2 -2
  61. package/dist/cdn/{SVB6IP5C.js → AO7FTC7J.js} +2 -2
  62. package/dist/cdn/{AVQHN2RK.js → AOALZDTV.js} +2 -2
  63. package/dist/cdn/{7OPDEN5Z.js → AOTR6PSM.js} +2 -2
  64. package/dist/cdn/{CT3QX6XG.js → APA7VHAG.js} +2 -2
  65. package/dist/cdn/{LYVOVUCW.js → ARKHFJZC.js} +2 -2
  66. package/dist/cdn/{JXC3JSLR.js → AU22M6SB.js} +2 -2
  67. package/dist/cdn/B2NRN2R4.js +18 -0
  68. package/dist/cdn/{ZIEPTSNN.js → B3SQSSCM.js} +2 -2
  69. package/dist/cdn/{HHDRTER6.js → B5T622TH.js} +2 -2
  70. package/dist/cdn/{54EGA4EZ.js → BHLUZNIA.js} +2 -2
  71. package/dist/cdn/{42UKLDMA.js → BIQVJKQK.js} +2 -2
  72. package/dist/cdn/{JFFCMNMZ.js → BRFRUPDD.js} +2 -2
  73. package/dist/cdn/{OKURETIK.js → BRNTMWKG.js} +2 -2
  74. package/dist/cdn/{5NTW3SMG.js → BSBIFU4J.js} +2 -2
  75. package/dist/cdn/{74JS27QX.js → BTHBXYVU.js} +2 -2
  76. package/dist/cdn/{GL3BZHYB.js → BYY2RMHM.js} +2 -2
  77. package/dist/cdn/{K3MOV6LF.js → BZIWIH5Y.js} +2 -2
  78. package/dist/cdn/{MN2UBMW3.js → C4G7HWT5.js} +2 -2
  79. package/dist/cdn/{RYF5VUBI.js → CAHIWQAN.js} +2 -2
  80. package/dist/cdn/{KUFXITHP.js → CORY5KRL.js} +2 -2
  81. package/dist/cdn/{L25FEX4Y.js → CRRXZT7O.js} +2 -2
  82. package/dist/cdn/{KSTE62UX.js → CRS7PGKJ.js} +2 -2
  83. package/dist/cdn/{AMVW6UNS.js → CWCOPM3Z.js} +1 -1
  84. package/dist/cdn/{VXWZGWMN.js → CYPEMC4C.js} +2 -2
  85. package/dist/cdn/{UHN645XS.js → D7FXGMN3.js} +2 -2
  86. package/dist/cdn/{R3ZEGHW3.js → DD3VEDEJ.js} +2 -2
  87. package/dist/cdn/{2PJIFZFR.js → DID3WCIW.js} +2 -2
  88. package/dist/cdn/{3YBD7WGQ.js → DP66YJE3.js} +2 -2
  89. package/dist/cdn/{YG625WCQ.js → DSER365L.js} +2 -2
  90. package/dist/cdn/{3BA35NLW.js → DV5ZOW3C.js} +1 -1
  91. package/dist/cdn/{2UQHVAPG.js → DXC4UOIA.js} +2 -2
  92. package/dist/cdn/E3BI3W75.js +4 -0
  93. package/dist/cdn/{XPMFUGFB.js → E4QC2UFQ.js} +2 -2
  94. package/dist/cdn/{6HNDU4O5.js → EEI3AT3X.js} +2 -2
  95. package/dist/cdn/{C4VY72F4.js → EFQHIMAN.js} +2 -2
  96. package/dist/cdn/{TCMXT2UU.js → EHFB67UY.js} +2 -2
  97. package/dist/cdn/{GS4P4EDL.js → EPAZWXC5.js} +2 -2
  98. package/dist/cdn/ERJ5AXMY.js +4 -0
  99. package/dist/cdn/EVP22MEM.js +4 -0
  100. package/dist/cdn/{ULUXYW2M.js → EX6DY77M.js} +1 -1
  101. package/dist/cdn/{3W3N2OW4.js → EZ5WO5AI.js} +2 -2
  102. package/dist/cdn/{JP4DSG7F.js → FB6W7RWZ.js} +2 -2
  103. package/dist/cdn/{ARIQAES7.js → FDHXC5SR.js} +2 -2
  104. package/dist/cdn/{CDBCFRYO.js → FDNW5ASU.js} +2 -2
  105. package/dist/cdn/{DOXKQQF7.js → FLAV5MZ2.js} +2 -2
  106. package/dist/cdn/{G67GSOAQ.js → FM5WWVJQ.js} +2 -2
  107. package/dist/cdn/{IURQSBDX.js → FNATWPTV.js} +2 -2
  108. package/dist/cdn/{7VSGKPYY.js → FOHUUMZY.js} +2 -2
  109. package/dist/cdn/{GQWNYGQZ.js → FQAZSYCL.js} +2 -2
  110. package/dist/cdn/{M3TZOZRR.js → FRYQWQ4M.js} +2 -2
  111. package/dist/cdn/{RUEX2MOD.js → FW2FTBQD.js} +1 -1
  112. package/dist/cdn/{YRTTWXRV.js → FXWJPT6Q.js} +1 -1
  113. package/dist/cdn/FYJPXQSQ.js +4 -0
  114. package/dist/cdn/{VZ5EZCXT.js → FYZ6HJUH.js} +1 -1
  115. package/dist/cdn/{F3IZZQXJ.js → FZ6XCJW3.js} +2 -2
  116. package/dist/cdn/{ZANYWAUH.js → G4CI2DXC.js} +2 -2
  117. package/dist/cdn/{MPK5FZ77.js → G5D4AUXB.js} +2 -2
  118. package/dist/cdn/{XL7S4BZ7.js → G7V3YWRZ.js} +2 -2
  119. package/dist/cdn/{X3PQLQKS.js → GCWYDOQW.js} +2 -2
  120. package/dist/cdn/{EPCC65BL.js → GGK5XRBW.js} +1 -1
  121. package/dist/cdn/{IP7HD6QN.js → GHC5MLLR.js} +2 -2
  122. package/dist/cdn/{EYHENGXX.js → GIHTFROV.js} +2 -2
  123. package/dist/cdn/{CCQT3UPY.js → GJ377SSN.js} +2 -2
  124. package/dist/cdn/{K6KHPUBQ.js → GJ5YOV6Y.js} +2 -2
  125. package/dist/cdn/{7T2XKQZG.js → GKIETQEG.js} +2 -2
  126. package/dist/cdn/{I4P2ZAM6.js → GLKRH763.js} +2 -2
  127. package/dist/cdn/{TXQMD6WV.js → GSGUTNOB.js} +2 -2
  128. package/dist/cdn/{SZZGDUXZ.js → GYO4Y6HP.js} +2 -2
  129. package/dist/cdn/{Z6WNCLU5.js → H3ETTHF5.js} +2 -2
  130. package/dist/cdn/{CEFVBKUA.js → HB6TGVSV.js} +2 -2
  131. package/dist/cdn/{5WL43OVY.js → HC7HW4AH.js} +2 -2
  132. package/dist/cdn/HGOOYFID.js +18 -0
  133. package/dist/cdn/{GIBTXEPX.js → HGTIGS33.js} +2 -2
  134. package/dist/cdn/{LHFLMU4H.js → HHIQA42J.js} +2 -2
  135. package/dist/cdn/{CUN3U2OE.js → HI5GXQK5.js} +2 -2
  136. package/dist/cdn/{RJ2KA6OW.js → HKXZY6FT.js} +2 -2
  137. package/dist/cdn/{GW2MIUZI.js → HL66WOZA.js} +2 -2
  138. package/dist/cdn/{ERW2B53X.js → HLD6FQZQ.js} +1 -1
  139. package/dist/cdn/{ZCRFBSHD.js → HOPAMFBZ.js} +2 -2
  140. package/dist/cdn/{5NXGF3W5.js → HQGXGPQT.js} +3 -3
  141. package/dist/cdn/HRNVYTHJ.js +18 -0
  142. package/dist/cdn/{IU4S3NNZ.js → HVEC24FA.js} +2 -2
  143. package/dist/cdn/{WUXN4327.js → HXYSY2XT.js} +2 -2
  144. package/dist/cdn/{6H7CBKDX.js → HYLR4ZKU.js} +1 -1
  145. package/dist/cdn/{MENRCTMH.js → I6N4MQLI.js} +2 -2
  146. package/dist/cdn/{JV3ZVPBM.js → I7QKKXIN.js} +2 -2
  147. package/dist/cdn/{PCMR2E7P.js → I7XFB7OO.js} +2 -2
  148. package/dist/cdn/{AGHDKDGU.js → IB63A3RN.js} +2 -2
  149. package/dist/cdn/{VDKJJE4O.js → IBZJVVHO.js} +2 -2
  150. package/dist/cdn/IDEKTKWA.js +4 -0
  151. package/dist/cdn/{2QCJLZ63.js → IGWBEMJV.js} +1 -1
  152. package/dist/cdn/{RFPUR3DW.js → IIKF76TJ.js} +2 -2
  153. package/dist/cdn/{AUAKA7LJ.js → INTW2PLI.js} +2 -2
  154. package/dist/cdn/{DHFEEP4Z.js → IQZWYSBD.js} +2 -2
  155. package/dist/cdn/{3OD56E6Z.js → ISCVWDPE.js} +2 -2
  156. package/dist/cdn/{EKLCVD4K.js → IWZ3MLVH.js} +2 -2
  157. package/dist/cdn/{AQM3UEAU.js → J45F3Q5N.js} +2 -2
  158. package/dist/cdn/{2KI55TW6.js → J6JF4WG7.js} +2 -2
  159. package/dist/cdn/{33ZIJFIL.js → JHKNN56F.js} +2 -2
  160. package/dist/cdn/{HMA5NBHS.js → JJWBRHDV.js} +2 -2
  161. package/dist/cdn/{G2QPALWV.js → JL354TBJ.js} +2 -2
  162. package/dist/cdn/{DGAVCVB6.js → JMEKOTOT.js} +2 -2
  163. package/dist/cdn/JNHKEN6G.js +4 -0
  164. package/dist/cdn/{PEGOSNST.js → JNOG6N6V.js} +2 -2
  165. package/dist/cdn/{FHPXFSGL.js → JOW3ZAOP.js} +2 -2
  166. package/dist/cdn/{ADLJ6RMY.js → JPRWGIUD.js} +2 -2
  167. package/dist/cdn/{YORP7KPN.js → JRTH22OB.js} +2 -2
  168. package/dist/cdn/{ZNVUGCXL.js → JSBXWC63.js} +2 -2
  169. package/dist/cdn/{M6RKRYRQ.js → JYDQC56S.js} +2 -2
  170. package/dist/cdn/{UPXECYMT.js → JYZ6JJF5.js} +2 -2
  171. package/dist/cdn/{R2BHJEVT.js → K443C7MI.js} +2 -2
  172. package/dist/cdn/{QICVTGQ5.js → KFGUY6JE.js} +2 -2
  173. package/dist/cdn/{K3OMOM5T.js → KJBL3PDT.js} +2 -2
  174. package/dist/cdn/{F3EXGINC.js → KJFR455I.js} +2 -2
  175. package/dist/cdn/{4NC25ZGL.js → KR3ZRAEM.js} +2 -2
  176. package/dist/cdn/{SYB3FBLS.js → KTJ6UGR7.js} +2 -2
  177. package/dist/cdn/{L7I3G45K.js → KVJMN3ZS.js} +2 -2
  178. package/dist/cdn/{WXUHDNZ7.js → KYZSLO5Q.js} +2 -2
  179. package/dist/cdn/{TTH4SO55.js → L3MAULZU.js} +2 -2
  180. package/dist/cdn/{CFQBO2LA.js → L6O5MCNW.js} +2 -2
  181. package/dist/cdn/{JPB44GYN.js → L7SRVFQL.js} +2 -2
  182. package/dist/cdn/{5V24LS62.js → LBTW65XF.js} +2 -2
  183. package/dist/cdn/{GMS3OCMJ.js → LD4I7PDT.js} +2 -2
  184. package/dist/cdn/{QFSQIJZZ.js → LDPN5EVY.js} +2 -2
  185. package/dist/cdn/{754BSXAZ.js → LG7PTZSQ.js} +2 -2
  186. package/dist/cdn/{4LFNRX3V.js → LHCPY4VP.js} +2 -2
  187. package/dist/cdn/LKDWX2NM.js +4 -0
  188. package/dist/cdn/{VK6A2NWT.js → LOMNKB7C.js} +2 -2
  189. package/dist/cdn/{22VUG52P.js → LQVSWYJ5.js} +2 -2
  190. package/dist/cdn/{4L42NEGO.js → LRFXDNZZ.js} +2 -2
  191. package/dist/cdn/{326W5C3M.js → LS4GGTGP.js} +2 -2
  192. package/dist/cdn/{3W2G7IUG.js → LYA3XM4P.js} +2 -2
  193. package/dist/cdn/{TXS7JDLW.js → M4NI3EHN.js} +2 -2
  194. package/dist/cdn/{FMEFBW7S.js → MCGW4EJN.js} +1 -1
  195. package/dist/cdn/{EOITVA52.js → MDZ6KBHC.js} +2 -2
  196. package/dist/cdn/{AS5PUT7N.js → MJJQO7HA.js} +1 -1
  197. package/dist/cdn/{KVNJ4EPB.js → MOXKFG7S.js} +2 -2
  198. package/dist/cdn/{NUE4IZOA.js → MQO36PNR.js} +1 -1
  199. package/dist/cdn/{44KAQ55U.js → MQVMBXSJ.js} +2 -2
  200. package/dist/cdn/{GVPDFVV5.js → MUHOIJVB.js} +2 -2
  201. package/dist/cdn/{7VVTSZUA.js → MUX5VFUR.js} +2 -2
  202. package/dist/cdn/{HIGTYOJX.js → MWPBCA2I.js} +2 -2
  203. package/dist/cdn/{PCJR75KO.js → MZW4SZZO.js} +2 -2
  204. package/dist/cdn/{BRMEULCU.js → N3CWC46M.js} +2 -2
  205. package/dist/cdn/{ERWZ6R5Y.js → N7CBQ2B5.js} +2 -2
  206. package/dist/cdn/{LXWO5K3S.js → NABWTGD3.js} +2 -2
  207. package/dist/cdn/{S63B4P2X.js → NKK3NPC3.js} +1 -1
  208. package/dist/cdn/NO3XWTBU.js +4 -0
  209. package/dist/cdn/{MYOBSZBE.js → NQT2V5QV.js} +2 -2
  210. package/dist/cdn/{FWTI7J2P.js → NS7YRL5Z.js} +2 -2
  211. package/dist/cdn/{3TXIADMS.js → NTWOUJJC.js} +2 -2
  212. package/dist/cdn/{V64USV35.js → NVTNVZRL.js} +2 -2
  213. package/dist/cdn/{XSJOX2PL.js → NZK5CIQF.js} +2 -2
  214. package/dist/cdn/{AME3KKAE.js → O2MZQM6Y.js} +2 -2
  215. package/dist/cdn/{AJE3VGCN.js → O5TSM7JD.js} +1 -1
  216. package/dist/cdn/{QWSAALJQ.js → O6JBYDQB.js} +2 -2
  217. package/dist/cdn/{PYY66E34.js → O6ZEKPRD.js} +2 -2
  218. package/dist/cdn/{6TG5WU2T.js → OBHFSREM.js} +2 -2
  219. package/dist/cdn/{RI4PHAP2.js → OCHISJTD.js} +1 -1
  220. package/dist/cdn/{U6O5OR7T.js → ODAUV5H7.js} +2 -2
  221. package/dist/cdn/{PKHJ5Y35.js → OE5SKUFI.js} +2 -2
  222. package/dist/cdn/{WSV5YZZS.js → OFBHFV7W.js} +2 -2
  223. package/dist/cdn/{CW4M6BVD.js → OK2HZDGO.js} +2 -2
  224. package/dist/cdn/{W5SBQGH4.js → ONWVOH2W.js} +1 -1
  225. package/dist/cdn/{ZBV3BLKE.js → OVWJKYIQ.js} +2 -2
  226. package/dist/cdn/{S4XUCOWV.js → OW3JSJ6W.js} +2 -2
  227. package/dist/cdn/{GWZYEABY.js → OWNQGZCK.js} +2 -2
  228. package/dist/cdn/{6O47YSKC.js → P3EGFBKH.js} +2 -2
  229. package/dist/cdn/{BQXUJXJW.js → PGIGUTU5.js} +2 -2
  230. package/dist/cdn/{UKNZLESJ.js → PH2HRUMD.js} +1 -1
  231. package/dist/cdn/{LSGGEO6P.js → PHS36CAS.js} +2 -2
  232. package/dist/cdn/{TA4FWBUK.js → PKAU2V73.js} +2 -2
  233. package/dist/cdn/PKTZJLTU.js +4 -0
  234. package/dist/cdn/{PF5Y2X73.js → PNT2I4ND.js} +2 -2
  235. package/dist/cdn/{UVRE5JLM.js → PO36UXKH.js} +2 -2
  236. package/dist/cdn/{P5U7E35K.js → PQLABTNC.js} +2 -2
  237. package/dist/cdn/{MYDWC6JS.js → PRJDX2QZ.js} +2 -2
  238. package/dist/cdn/{XC2QAJDT.js → PTO77EV2.js} +2 -2
  239. package/dist/cdn/{Q6GPYGWL.js → PY25NSY4.js} +2 -2
  240. package/dist/cdn/{27GU7GYQ.js → PZB4V2OW.js} +2 -2
  241. package/dist/cdn/{5HTJI2O7.js → Q2EVLIZQ.js} +2 -2
  242. package/dist/cdn/{LXQBVGWX.js → Q2JE2J6E.js} +2 -2
  243. package/dist/cdn/{TRUBVCKV.js → Q4P7C3VE.js} +2 -2
  244. package/dist/cdn/{R3SZO62G.js → QA4ZBT6G.js} +2 -2
  245. package/dist/cdn/{HOTC4IJ5.js → QADNWGTG.js} +2 -2
  246. package/dist/cdn/{P5KMTKJV.js → QEWNWIOB.js} +2 -2
  247. package/dist/cdn/{AV3AAKZF.js → QLNBBGJ5.js} +1 -1
  248. package/dist/cdn/{HI32ZP4O.js → QMJ76KMR.js} +2 -2
  249. package/dist/cdn/{772OZS5V.js → QNRORMIB.js} +2 -2
  250. package/dist/cdn/{J7EYR5NT.js → QPSASVAC.js} +2 -2
  251. package/dist/cdn/{UKIPNYSS.js → QTL5HLJT.js} +2 -2
  252. package/dist/cdn/{U4FL6DA7.js → QVZVVGQM.js} +2 -2
  253. package/dist/cdn/{KODVG4FU.js → QZQRTH4V.js} +2 -2
  254. package/dist/cdn/{VCPA622T.js → R46QHHOE.js} +2 -2
  255. package/dist/cdn/{5QOODTML.js → RARA4ERO.js} +2 -2
  256. package/dist/cdn/{T2GHIDR6.js → RIL56XEB.js} +2 -2
  257. package/dist/cdn/{SXW7LPDB.js → RNAHUV45.js} +4 -4
  258. package/dist/cdn/{FVFEETIR.js → ROENNKNN.js} +3 -3
  259. package/dist/cdn/{JAYFM462.js → ROW7R22L.js} +2 -2
  260. package/dist/cdn/{RGV3U5AM.js → RP4AVJHW.js} +2 -2
  261. package/dist/cdn/{LTPGJHX3.js → RSIZBOJN.js} +1 -1
  262. package/dist/cdn/{7V3MPY7L.js → RXCNFTTW.js} +2 -2
  263. package/dist/cdn/{AJRIBR74.js → RZ7JJAM5.js} +2 -2
  264. package/dist/cdn/{ROOZ6PE2.js → S3ZKPUSV.js} +2 -2
  265. package/dist/cdn/{TOFRHBOB.js → S62LD7IK.js} +2 -2
  266. package/dist/cdn/{JEUEWHNF.js → SELX7MO2.js} +2 -2
  267. package/dist/cdn/{QEDOQTCT.js → SG5S6N2M.js} +2 -2
  268. package/dist/cdn/{U6PKFAG3.js → SHIHT7KQ.js} +1 -1
  269. package/dist/cdn/{EOSGKZAE.js → SI5DU6QV.js} +2 -2
  270. package/dist/cdn/{DJ4PLQBR.js → SIFH5HUH.js} +2 -2
  271. package/dist/cdn/{WUOM2MPY.js → SJFRXJW2.js} +2 -2
  272. package/dist/cdn/{T3BM5TJD.js → SM2BF5U3.js} +2 -2
  273. package/dist/cdn/{LSRCDLFB.js → SYNQB5D7.js} +2 -2
  274. package/dist/cdn/{TMO5RTB6.js → T6UXIZ33.js} +2 -2
  275. package/dist/cdn/{TS7RZJGZ.js → TDCOZS24.js} +2 -2
  276. package/dist/cdn/TEOX2NNO.js +4 -0
  277. package/dist/cdn/{GW25GPJX.js → THWNXN5G.js} +2 -2
  278. package/dist/cdn/{7SDACA7E.js → TK24AD2U.js} +2 -2
  279. package/dist/cdn/{RFKE6SS5.js → TMBSTRNO.js} +2 -2
  280. package/dist/cdn/{VMVINW73.js → TP45OTVL.js} +2 -2
  281. package/dist/cdn/{V5J52ZM7.js → TQ5IB4BF.js} +2 -2
  282. package/dist/cdn/{QZ55GNRU.js → TQHZUR4T.js} +2 -2
  283. package/dist/cdn/{5OX5WGHA.js → TU2TIVBB.js} +1 -1
  284. package/dist/cdn/{6453EGYF.js → TW4B4G6Y.js} +2 -2
  285. package/dist/cdn/{H74SAKUP.js → TXZEZJDB.js} +2 -2
  286. package/dist/cdn/{GRQR533B.js → U2DXK4Z3.js} +1 -1
  287. package/dist/cdn/{SKNM7XAA.js → U3CEEMFJ.js} +2 -2
  288. package/dist/cdn/{PYKUVKBS.js → U5CEYTEH.js} +2 -2
  289. package/dist/cdn/{LTGJUXQ6.js → U5E7NHGR.js} +1 -1
  290. package/dist/cdn/{IUFNTIUY.js → UATIHLEC.js} +2 -2
  291. package/dist/cdn/{5E7QV2O7.js → UFD3IEAL.js} +2 -2
  292. package/dist/cdn/{7TI347JE.js → UJD5ZDRO.js} +2 -2
  293. package/dist/cdn/{FLRKA4GV.js → UNBZLRE2.js} +2 -2
  294. package/dist/cdn/{RNLV4QO2.js → UOKWWLRL.js} +2 -2
  295. package/dist/cdn/{RPNUHJYK.js → URGXKQRE.js} +2 -2
  296. package/dist/cdn/{TDZIJPTZ.js → UTJDTPN5.js} +2 -2
  297. package/dist/cdn/{WWNBCKJI.js → UTOYSPFK.js} +2 -2
  298. package/dist/cdn/{6R2KDQYZ.js → UWCREUPN.js} +2 -2
  299. package/dist/cdn/{VGMTOKWS.js → UZLS7REE.js} +2 -2
  300. package/dist/cdn/{H2BB75K3.js → V5ZGKSCM.js} +2 -2
  301. package/dist/cdn/VEYWG42M.js +18 -0
  302. package/dist/cdn/{LYMZA4SQ.js → VGWX4QKP.js} +2 -2
  303. package/dist/cdn/{34Q3SIKI.js → VHSAAS4H.js} +1 -1
  304. package/dist/cdn/{N2KT2DIZ.js → VRJE53G3.js} +2 -2
  305. package/dist/cdn/{G56ANCJ2.js → VSODQKTI.js} +2 -2
  306. package/dist/cdn/{QKGXGXFW.js → VYDWLG6O.js} +2 -2
  307. package/dist/cdn/{YSZSJXH6.js → VYEV2FJ2.js} +2 -2
  308. package/dist/cdn/{273HBBPG.js → VZRL7EXN.js} +2 -2
  309. package/dist/cdn/{B3XHEFM7.js → WDS2KH6F.js} +2 -2
  310. package/dist/cdn/{BYIYZPMU.js → WFBYG4CW.js} +2 -2
  311. package/dist/cdn/{UT7TX3ZR.js → WH7MO6SI.js} +2 -2
  312. package/dist/cdn/{6KHCKTQR.js → WI46PU6H.js} +2 -2
  313. package/dist/cdn/{EWSYZETD.js → WJU3ULFW.js} +1 -1
  314. package/dist/cdn/{3OZ7STZB.js → WPCSGZQM.js} +2 -2
  315. package/dist/cdn/{WLX3AYBH.js → WSPZT3DF.js} +2 -2
  316. package/dist/cdn/WUCOTZDD.js +4 -0
  317. package/dist/cdn/{WBQQPOED.js → WVEWKYBI.js} +2 -2
  318. package/dist/cdn/{GWH4Z6OW.js → WX4K6BOL.js} +2 -2
  319. package/dist/cdn/{POHLVKZF.js → WZ5UYAX2.js} +2 -2
  320. package/dist/cdn/{PZPOIFW2.js → X4EPSDHV.js} +2 -2
  321. package/dist/cdn/{POSTWVDP.js → XE4GIQWO.js} +2 -2
  322. package/dist/cdn/{76JU6BOY.js → XI33NEIC.js} +2 -2
  323. package/dist/cdn/{2CUPKSCG.js → XM3XH3XI.js} +2 -2
  324. package/dist/cdn/{OBPRGZIG.js → XRHBI4UG.js} +2 -2
  325. package/dist/cdn/{G3SX6B7H.js → XU2CVPPN.js} +2 -2
  326. package/dist/cdn/XYXUOLFV.js +18 -0
  327. package/dist/cdn/{4RU3E5JJ.js → Y4TFA3GE.js} +2 -2
  328. package/dist/cdn/{N6X6743N.js → Y4YQ5V6F.js} +1 -1
  329. package/dist/cdn/YBVCOLEX.js +4 -0
  330. package/dist/cdn/{IDCTIXPE.js → YHUV4AC2.js} +2 -2
  331. package/dist/cdn/{NJOIRH4C.js → YNEVTEYU.js} +2 -2
  332. package/dist/cdn/{763AHVWC.js → YXQ7THC4.js} +1 -1
  333. package/dist/cdn/{XGAYQ562.js → ZDZYGMRF.js} +2 -2
  334. package/dist/cdn/{R37TLB4X.js → ZFST677Q.js} +1 -1
  335. package/dist/cdn/{YPHH5MBJ.js → ZKGKE6BO.js} +2 -2
  336. package/dist/cdn/{Z6FFQDZ2.js → ZODCIQEU.js} +2 -2
  337. package/dist/cdn/{DZ7REPR5.js → ZPMDUVJW.js} +2 -2
  338. package/dist/cdn/{A3FZYMJ3.js → ZU3VZGL2.js} +2 -2
  339. package/dist/cdn/{F44BYUVG.js → ZURAJ473.js} +2 -2
  340. package/dist/cdn/{PUIDIQPS.js → ZVZK5QDJ.js} +2 -2
  341. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  342. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  343. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.en.json +1 -0
  344. package/dist/cdn/assets/solutions-deployed-filter-panel/t9n/messages.json +1 -0
  345. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ar.json +1 -1
  346. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.bg.json +1 -1
  347. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.bs.json +1 -1
  348. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ca.json +1 -1
  349. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.cs.json +1 -1
  350. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.da.json +1 -1
  351. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.de.json +1 -1
  352. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.el.json +1 -1
  353. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  354. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.es.json +1 -1
  355. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.et.json +1 -1
  356. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.fi.json +1 -1
  357. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.fr.json +1 -1
  358. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.he.json +1 -1
  359. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.hr.json +1 -1
  360. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.hu.json +1 -1
  361. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.id.json +1 -1
  362. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.it.json +1 -1
  363. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ja.json +1 -1
  364. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  365. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ko.json +1 -1
  366. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.lt.json +1 -1
  367. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.lv.json +1 -1
  368. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.nl.json +1 -1
  369. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.no.json +1 -1
  370. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pl.json +1 -1
  371. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pt-BR.json +1 -1
  372. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.pt-PT.json +1 -1
  373. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ro.json +1 -1
  374. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.ru.json +1 -1
  375. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sk.json +1 -1
  376. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sl.json +1 -1
  377. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sr.json +1 -1
  378. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.sv.json +1 -1
  379. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.th.json +1 -1
  380. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.tr.json +1 -1
  381. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.uk.json +1 -1
  382. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.vi.json +1 -1
  383. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-CN.json +1 -1
  384. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-HK.json +1 -1
  385. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.zh-TW.json +1 -1
  386. package/dist/cdn/index.js +2 -2
  387. package/dist/cdn/main.css +1 -1
  388. package/dist/chunks/Auth.js +1 -1
  389. package/dist/chunks/CardsFetcher.js +1 -1
  390. package/dist/chunks/appConfig.js +1 -1
  391. package/dist/chunks/cardFetchingUtils.js +1 -1
  392. package/dist/chunks/common.js +1 -1
  393. package/dist/chunks/deployAppContexts.js +1 -1
  394. package/dist/chunks/downloadUtils.js +1 -1
  395. package/dist/chunks/getItemIcon.js +1 -1
  396. package/dist/chunks/helpers.js +1 -1
  397. package/dist/chunks/index.js +1 -1
  398. package/dist/chunks/interfaces.js +14 -14
  399. package/dist/chunks/loadModules.js +1 -1
  400. package/dist/chunks/mapViewUtils.js +1 -1
  401. package/dist/chunks/pciUtils.js +1 -1
  402. package/dist/chunks/popupUtils.js +1 -1
  403. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  404. package/dist/chunks/privilegeUtils.js +1 -1
  405. package/dist/chunks/publicNotificationStore.js +1 -1
  406. package/dist/chunks/queryUtils.js +1 -1
  407. package/dist/chunks/runtime.js +1 -1
  408. package/dist/chunks/solution-store.js +1 -1
  409. package/dist/chunks/templates.js +1 -1
  410. package/dist/chunks/useT9n.js +1 -1
  411. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  412. package/dist/components/basemap-gallery/customElement.js +1 -1
  413. package/dist/components/buffer-tools/customElement.js +1 -1
  414. package/dist/components/card-manager/customElement.js +1 -1
  415. package/dist/components/consent-manager/customElement.js +1 -1
  416. package/dist/components/create-feature/customElement.js +1 -1
  417. package/dist/components/create-related-feature/customElement.js +1 -1
  418. package/dist/components/crowdsource-manager/customElement.js +1 -1
  419. package/dist/components/crowdsource-reporter/customElement.js +2 -2
  420. package/dist/components/deduct-calculator/customElement.js +1 -1
  421. package/dist/components/delete-button/customElement.js +1 -1
  422. package/dist/components/delete-dialog/customElement.js +1 -1
  423. package/dist/components/edit-card/customElement.js +1 -1
  424. package/dist/components/feature-details/customElement.js +1 -1
  425. package/dist/components/feature-list/customElement.js +1 -1
  426. package/dist/components/field-selection/customElement.js +1 -1
  427. package/dist/components/floor-filter/customElement.js +1 -1
  428. package/dist/components/info-card/customElement.js +1 -1
  429. package/dist/components/json-editor/customElement.js +1 -1
  430. package/dist/components/layer-list/customElement.js +1 -1
  431. package/dist/components/layer-table/customElement.js +1 -1
  432. package/dist/components/map-card/customElement.js +1 -1
  433. package/dist/components/map-draw-tools/customElement.js +1 -1
  434. package/dist/components/map-fullscreen/customElement.js +1 -1
  435. package/dist/components/map-layer-picker/customElement.js +1 -1
  436. package/dist/components/map-legend/customElement.js +1 -1
  437. package/dist/components/map-picker/customElement.js +1 -1
  438. package/dist/components/map-search/customElement.js +1 -1
  439. package/dist/components/map-select-tools/customElement.js +1 -1
  440. package/dist/components/map-tools/customElement.js +1 -1
  441. package/dist/components/pci-calculator/customElement.js +1 -1
  442. package/dist/components/pdf-download/customElement.js +1 -1
  443. package/dist/components/public-notification/customElement.js +1 -1
  444. package/dist/components/refine-selection/customElement.js +1 -1
  445. package/dist/components/selection-tool/customElement.js +1 -1
  446. package/dist/components/solution-article-card/customElement.js +1 -1
  447. package/dist/components/solution-configuration/customElement.js +1 -1
  448. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  449. package/dist/components/solution-configure-titles/customElement.js +1 -1
  450. package/dist/components/solution-contents/customElement.js +1 -1
  451. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  452. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  453. package/dist/components/solution-deployed-card/customElement.js +1 -1
  454. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  455. package/dist/components/solution-details-card/customElement.js +1 -1
  456. package/dist/components/solution-details-panel/customElement.d.ts +0 -12
  457. package/dist/components/solution-details-panel/customElement.js +83 -107
  458. package/dist/components/solution-item/customElement.js +1 -1
  459. package/dist/components/solution-item-accordion/customElement.js +1 -1
  460. package/dist/components/solution-item-details/customElement.js +1 -1
  461. package/dist/components/solution-item-diagram/customElement.js +1 -1
  462. package/dist/components/solution-item-icon/customElement.js +1 -1
  463. package/dist/components/solution-item-sharing/customElement.js +1 -1
  464. package/dist/components/solution-organization-variables/customElement.js +1 -1
  465. package/dist/components/solution-resource-item/customElement.js +1 -1
  466. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  467. package/dist/components/solution-social-share/customElement.js +1 -1
  468. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  469. package/dist/components/solution-template-data/customElement.js +1 -1
  470. package/dist/components/solution-variables/customElement.js +1 -1
  471. package/dist/components/solutions-all-panel/customElement.d.ts +1 -1
  472. package/dist/components/solutions-all-panel/customElement.js +28 -27
  473. package/dist/components/solutions-all-shell/customElement.d.ts +1 -13
  474. package/dist/components/solutions-all-shell/customElement.js +41 -61
  475. package/dist/components/solutions-article-panel/customElement.js +1 -1
  476. package/dist/components/solutions-articles/customElement.js +1 -1
  477. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  478. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
  479. package/dist/components/solutions-deploy-app/customElement.js +49 -34
  480. package/dist/components/solutions-deployed-filter-panel/customElement.d.ts +49 -0
  481. package/dist/components/solutions-deployed-filter-panel/customElement.js +85 -0
  482. package/dist/components/solutions-deployed-filter-panel/index.d.ts +6 -0
  483. package/dist/components/solutions-deployed-filter-panel/index.js +6 -0
  484. package/dist/components/solutions-deployed-panel/customElement.js +2 -2
  485. package/dist/components/solutions-deployed-shell/customElement.d.ts +0 -10
  486. package/dist/components/solutions-deployed-shell/customElement.js +29 -57
  487. package/dist/components/solutions-deployed-shell/index.d.ts +1 -3
  488. package/dist/components/solutions-deployed-shell/index.js +1 -3
  489. package/dist/components/solutions-filter-panel/customElement.d.ts +7 -18
  490. package/dist/components/solutions-filter-panel/customElement.js +79 -95
  491. package/dist/components/solutions-filter-panel/index.d.ts +2 -2
  492. package/dist/components/solutions-filter-panel/index.js +2 -2
  493. package/dist/components/spatial-ref/customElement.js +1 -1
  494. package/dist/components/store-manager/customElement.js +1 -1
  495. package/dist/docs/api.json +443 -317
  496. package/dist/docs/docs.json +322 -239
  497. package/dist/docs/vscode.html-custom-data.json +31 -30
  498. package/dist/docs/web-types.json +91 -95
  499. package/dist/index.d.ts +21 -1
  500. package/dist/index.js +3 -1
  501. package/dist/loader.js +6 -5
  502. package/dist/types/lumina.d.ts +11 -5
  503. package/dist/types/preact.d.ts +12 -5
  504. package/dist/types/react.d.ts +13 -5
  505. package/dist/types/stencil.d.ts +11 -5
  506. package/dist/utils/interfaces.d.ts +1 -0
  507. package/package.json +2 -6
  508. package/dist/cdn/2CLQIGTQ.js +0 -18
  509. package/dist/cdn/2OAXFR6L.js +0 -4
  510. package/dist/cdn/4Z4HWABC.js +0 -4
  511. package/dist/cdn/6T4JB4AP.js +0 -4
  512. package/dist/cdn/6UL4CGV3.js +0 -4
  513. package/dist/cdn/AB6DDX7F.js +0 -4
  514. package/dist/cdn/EUWILMM3.js +0 -18
  515. package/dist/cdn/FIWVIW7W.js +0 -18
  516. package/dist/cdn/GKEYULMP.js +0 -18
  517. package/dist/cdn/HDCB5T5X.js +0 -18
  518. package/dist/cdn/HPOI4I7M.js +0 -4
  519. package/dist/cdn/JADXSGAB.js +0 -4
  520. package/dist/cdn/P5X672JF.js +0 -4
  521. package/dist/cdn/PXF7VJMQ.js +0 -18
  522. package/dist/cdn/QESZMDO7.js +0 -4
  523. package/dist/cdn/QLLQWJIZ.js +0 -4
  524. package/dist/cdn/RDWWOOCJ.js +0 -18
  525. package/dist/cdn/S6AU5Q6W.js +0 -4
  526. package/dist/cdn/Y4VGFFUL.js +0 -4
  527. package/dist/cdn/YG7I5L6A.js +0 -4
  528. package/dist/utils/index.d.ts +0 -1
@@ -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.2 */
4
- import{a as E}from"./6T4JB4AP.js";import"./ROOZ6PE2.js";import{a as S,c as m,d as c,e as _,f,g as x}from"./JXRF526X.js";import"./6UL4CGV3.js";import{b as C}from"./W5SBQGH4.js";import{b as $}from"./LTGJUXQ6.js";import{a as v}from"./HMA5NBHS.js";import"./UKIPNYSS.js";import"./3TXIADMS.js";import{b as I}from"./JP7CV4WF.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"./NUE4IZOA.js";import"./LTPGJHX3.js";var P=y`@layer{/** @license
3
+ v1.1.0-next.20250903 */
4
+ import{a as E}from"./WUCOTZDD.js";import"./S3ZKPUSV.js";import{a as S,c as m,d as c,e as _,f,g as x}from"./766BGQRA.js";import"./NO3XWTBU.js";import{b as C}from"./ONWVOH2W.js";import{b as $}from"./U5E7NHGR.js";import{a as v}from"./JJWBRHDV.js";import"./QTL5HLJT.js";import"./NTWOUJJC.js";import{b as I}from"./33UE73VG.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"./MQO36PNR.js";import"./RSIZBOJN.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"./6T4JB4AP.js";import"./ROOZ6PE2.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.2 */
4
- import{b as c}from"./LTGJUXQ6.js";import{b as d}from"./JP7CV4WF.js";import{C as o,D as n,E as h,h as r,i as a,o as s}from"./NUE4IZOA.js";import"./LTPGJHX3.js";var m=r`/** @license
3
+ v1.1.0-next.20250903 */
4
+ import{b as c}from"./U5E7NHGR.js";import{b as d}from"./33UE73VG.js";import{C as o,D as n,E as h,h as r,i as a,o as s}from"./MQO36PNR.js";import"./RSIZBOJN.js";var m=r`/** @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.2 */
4
- import{d as c}from"./XYCPHWHV.js";import{a as y}from"./EPCC65BL.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
3
+ v1.1.0-next.20250903 */
4
+ import{d as c}from"./7NZ3AHDY.js";import{a as y}from"./GGK5XRBW.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
@@ -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.2 */
3
+ v1.1.0-next.20250903 */
4
4
  var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),o=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},l=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c,p 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.2 */
4
- import{a as u}from"./AVQHN2RK.js";import a from"./OKURETIK.js";import{a as x}from"./CCQT3UPY.js";import{a as C}from"./KSTE62UX.js";import{c as _,h as b,i as M,k as f,l as c,x as $,z as V}from"./AS5PUT7N.js";import{b as S}from"./ROOZ6PE2.js";import"./UKIPNYSS.js";import"./3TXIADMS.js";import{C as E,D as v,E as T,G as d,h as y,i as s,r as I}from"./NUE4IZOA.js";import"./LTPGJHX3.js";export default $arcgis.t(([L])=>{var{state:t,onChange:P}=L({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),h="time-slider-watch",w=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await V();this.reactiveUtils=e,this.handles=await _()}catch{}}async init(e){if(!e)return;e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:a}=t;if(i)try{if(await i.when(),a.length===1&&a[0]?.type==="map")this.initTimeSlider(e,a[0]);else{let n=await this.getTimeLayerViews(i,a);t.timeInfoItems=this.generateTimeInfoItems(n,a),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let a=e.map?.allLayers,n=l=>a?.find(({id:p})=>l===p),r=i.map(({id:l})=>n(l)).map(async l=>await e.whenLayerView(l));return await Promise.all(r)}generateTimeInfoItems(e,i){return[...i].map(a=>{let n=e.find(({layer:r})=>r.id===a.id);return this.generateTimeInfoItem(n,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:a,rangeEnd:n,timeIntervalValue:r}){let l=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:r??1,rangeStart:new Date(a),rangeEnd:new Date(n),timeExtent:l,previousTimeExtent:null}}async initTimeSlider(e,i){let a=async n=>(t.timeSlider=await $(n),t.autoPlay&&t.timeSlider.play(),await Promise.resolve());if(i){let n=await this.getTimeSliderConfig(e,i);await a(n)}else{let n=t?.timeInfoItems?.[0];if(!n)return;t.selectedTimeInfoItem=n;let r=await this.getTimeSliderConfig(e);await a(r)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){P("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let a=i.layerView;this.applyTimeExtent(a,a?.featureEffect?.filter?.timeExtent||a.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let a={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let n=t.view?.map?.widgets?.timeSlider,r={...a,fullTimeExtent:n?.fullTimeExtent,timeExtent:n?.currentTimeExtent};return n?.stopInterval?.unit&&n?.stopInterval?.value&&(r.stops={interval:await c({unit:n?.stopInterval?.unit,value:n?.stopInterval?.value})}),r}else{let[{timeExtent:n,rangeStart:r,rangeEnd:l,unit:p,timeIntervalValue:F}]=t.timeInfoItems;return{...a,fullTimeExtent:n,timeExtent:await f({start:r,end:l}),stops:{interval:await c({unit:p,value:F})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await f({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,a){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,a):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,a){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||a){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await b({filter:{timeExtent:i},includedEffect:await u(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await u(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await M({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(h)&&this.handles?.remove(h),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),h)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:a}){let n=a??await f({start:e,end:i});return await Promise.resolve(n)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await c({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},o=new w,k=y`@layer{.instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand: var(--calcite-ui-text-1);--calcite-ui-brand: var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}}`,m={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},g=class extends T{constructor(){super(...arguments),this._messages=C({name:"instant-apps-time-filter"}),this.timeSliderRef=E(),this.timeInfoConfigItems=[],this.autoPlay=!1}static{this.properties={timeInfoConfigItems:0,filterMode:0,view:0,timeSliderConfig:0,autoPlay:5}}static{this.styles=k}static{this.shadowRootOptions=I}async load(){t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode)}willUpdate(e){e.has("timeInfoConfigItems")&&(this.hasUpdated||this.timeInfoConfigItems?.length>0)&&(t.timeInfoConfigItems=this.timeInfoConfigItems,o.init(this.timeSliderRef.value)),e.has("filterMode")&&(t.filterMode=this.filterMode),e.has("timeSliderConfig")&&(t.timeSliderConfig=this.timeSliderConfig,o.init(this.timeSliderRef.value)),e.has("autoPlay")&&(this.hasUpdated||this.autoPlay)&&(t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop()))}async loaded(){try{await o.init(this.timeSliderRef.value)}catch{}finally{t.loading=!1}}render(){return s`<div class=${`${m.base}${this.view.type!=="2d"?m.threeD:""}`}>${this._renderLoader()}${this.view.type==="2d"&&this._renderTopEl()||""}${x("time-slider",s`<div ${v(this.timeSliderRef)}></div>`)}</div>`}_renderLoader(){return t.loading?s`<div><div class=${d(m.background)}></div><div class=${d(m.loadingContainer)}><calcite-loader scale=m .label=${this._messages.loading??""} .text=${this._messages.loading}></calcite-loader></div></div>`:null}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let e=t.selectedTimeInfoItem?.layerView?.layer?.title;return s`<span class=${d(m.layerTitle)}>${e}</span>`}_renderDropdown(){return t.selectedTimeInfoItem?s`<calcite-dropdown>${this._renderDropdownButton()}${this._renderDropdownItems()}</calcite-dropdown>`:null}_renderDropdownButton(){return s`<calcite-button slot=trigger appearance=transparent icon-end=chevron-down width=full alignment=space-between>${o.getLabel(t.selectedTimeInfoItem)}</calcite-button>`}_renderDropdownItems(){return t.timeInfoItems.map(e=>this._renderDropdownItem(e))}_renderDropdownItem(e){let i=t.selectedTimeInfoItem?.layerView?.layer?.id,a=e?.layerView?.layer?.id;return s`<calcite-dropdown-item @calciteDropdownItemSelect=${()=>o.updateSelectedTimeInfoItem(e)} .selected=${i===a}>${o.getLabel(e)}</calcite-dropdown-item>`}};S("instant-apps-time-filter",g);return g},a)
3
+ v1.1.0-next.20250903 */
4
+ import{a as u}from"./AOALZDTV.js";import a from"./BRNTMWKG.js";import{a as x}from"./GJ377SSN.js";import{a as C}from"./CRS7PGKJ.js";import{c as _,h as b,i as M,k as f,l as c,x as $,z as V}from"./MJJQO7HA.js";import{b as S}from"./S3ZKPUSV.js";import"./QTL5HLJT.js";import"./NTWOUJJC.js";import{C as E,D as v,E as T,G as d,h as y,i as s,r as I}from"./MQO36PNR.js";import"./RSIZBOJN.js";export default $arcgis.t(([L])=>{var{state:t,onChange:P}=L({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),h="time-slider-watch",w=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await V();this.reactiveUtils=e,this.handles=await _()}catch{}}async init(e){if(!e)return;e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:a}=t;if(i)try{if(await i.when(),a.length===1&&a[0]?.type==="map")this.initTimeSlider(e,a[0]);else{let n=await this.getTimeLayerViews(i,a);t.timeInfoItems=this.generateTimeInfoItems(n,a),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let a=e.map?.allLayers,n=l=>a?.find(({id:p})=>l===p),r=i.map(({id:l})=>n(l)).map(async l=>await e.whenLayerView(l));return await Promise.all(r)}generateTimeInfoItems(e,i){return[...i].map(a=>{let n=e.find(({layer:r})=>r.id===a.id);return this.generateTimeInfoItem(n,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:a,rangeEnd:n,timeIntervalValue:r}){let l=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:r??1,rangeStart:new Date(a),rangeEnd:new Date(n),timeExtent:l,previousTimeExtent:null}}async initTimeSlider(e,i){let a=async n=>(t.timeSlider=await $(n),t.autoPlay&&t.timeSlider.play(),await Promise.resolve());if(i){let n=await this.getTimeSliderConfig(e,i);await a(n)}else{let n=t?.timeInfoItems?.[0];if(!n)return;t.selectedTimeInfoItem=n;let r=await this.getTimeSliderConfig(e);await a(r)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){P("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let a=i.layerView;this.applyTimeExtent(a,a?.featureEffect?.filter?.timeExtent||a.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let a={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let n=t.view?.map?.widgets?.timeSlider,r={...a,fullTimeExtent:n?.fullTimeExtent,timeExtent:n?.currentTimeExtent};return n?.stopInterval?.unit&&n?.stopInterval?.value&&(r.stops={interval:await c({unit:n?.stopInterval?.unit,value:n?.stopInterval?.value})}),r}else{let[{timeExtent:n,rangeStart:r,rangeEnd:l,unit:p,timeIntervalValue:F}]=t.timeInfoItems;return{...a,fullTimeExtent:n,timeExtent:await f({start:r,end:l}),stops:{interval:await c({unit:p,value:F})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await f({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,a){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,a):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,a){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||a){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await b({filter:{timeExtent:i},includedEffect:await u(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await u(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await M({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(h)&&this.handles?.remove(h),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),h)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:a}){let n=a??await f({start:e,end:i});return await Promise.resolve(n)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await c({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},o=new w,k=y`@layer{.instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand: var(--calcite-ui-text-1);--calcite-ui-brand: var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}}`,m={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},g=class extends T{constructor(){super(...arguments),this._messages=C({name:"instant-apps-time-filter"}),this.timeSliderRef=E(),this.timeInfoConfigItems=[],this.autoPlay=!1}static{this.properties={timeInfoConfigItems:0,filterMode:0,view:0,timeSliderConfig:0,autoPlay:5}}static{this.styles=k}static{this.shadowRootOptions=I}async load(){t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode)}willUpdate(e){e.has("timeInfoConfigItems")&&(this.hasUpdated||this.timeInfoConfigItems?.length>0)&&(t.timeInfoConfigItems=this.timeInfoConfigItems,o.init(this.timeSliderRef.value)),e.has("filterMode")&&(t.filterMode=this.filterMode),e.has("timeSliderConfig")&&(t.timeSliderConfig=this.timeSliderConfig,o.init(this.timeSliderRef.value)),e.has("autoPlay")&&(this.hasUpdated||this.autoPlay)&&(t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop()))}async loaded(){try{await o.init(this.timeSliderRef.value)}catch{}finally{t.loading=!1}}render(){return s`<div class=${`${m.base}${this.view.type!=="2d"?m.threeD:""}`}>${this._renderLoader()}${this.view.type==="2d"&&this._renderTopEl()||""}${x("time-slider",s`<div ${v(this.timeSliderRef)}></div>`)}</div>`}_renderLoader(){return t.loading?s`<div><div class=${d(m.background)}></div><div class=${d(m.loadingContainer)}><calcite-loader scale=m .label=${this._messages.loading??""} .text=${this._messages.loading}></calcite-loader></div></div>`:null}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let e=t.selectedTimeInfoItem?.layerView?.layer?.title;return s`<span class=${d(m.layerTitle)}>${e}</span>`}_renderDropdown(){return t.selectedTimeInfoItem?s`<calcite-dropdown>${this._renderDropdownButton()}${this._renderDropdownItems()}</calcite-dropdown>`:null}_renderDropdownButton(){return s`<calcite-button slot=trigger appearance=transparent icon-end=chevron-down width=full alignment=space-between>${o.getLabel(t.selectedTimeInfoItem)}</calcite-button>`}_renderDropdownItems(){return t.timeInfoItems.map(e=>this._renderDropdownItem(e))}_renderDropdownItem(e){let i=t.selectedTimeInfoItem?.layerView?.layer?.id,a=e?.layerView?.layer?.id;return s`<calcite-dropdown-item @calciteDropdownItemSelect=${()=>o.updateSelectedTimeInfoItem(e)} .selected=${i===a}>${o.getLabel(e)}</calcite-dropdown-item>`}};S("instant-apps-time-filter",g);return g},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.2 */
4
- import{a as e}from"./RYF5VUBI.js";import"./LXWO5K3S.js";import"./EWSYZETD.js";import"./RNLV4QO2.js";import"./S4XUCOWV.js";import"./6O47YSKC.js";import"./VAHLKR3X.js";import"./5NTW3SMG.js";import"./IURQSBDX.js";import"./XSJOX2PL.js";import"./LENHGFEC.js";import"./MIYSOUMU.js";import"./ERW2B53X.js";import"./34Q3SIKI.js";import"./42UKLDMA.js";import"./ZANYWAUH.js";import"./7OPDEN5Z.js";import{a as t}from"./DZEHMG7V.js";import"./TS7RZJGZ.js";import"./TRUBVCKV.js";import"./54EGA4EZ.js";import"./AV3AAKZF.js";import"./U6PKFAG3.js";import"./LTPGJHX3.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f as buildUiSchema};
3
+ v1.1.0-next.20250903 */
4
+ import{a as e}from"./CAHIWQAN.js";import"./VHSAAS4H.js";import"./NABWTGD3.js";import"./WJU3ULFW.js";import"./Q4P7C3VE.js";import"./UOKWWLRL.js";import"./OW3JSJ6W.js";import"./P3EGFBKH.js";import"./7BG624H4.js";import"./BSBIFU4J.js";import"./FNATWPTV.js";import"./NZK5CIQF.js";import"./3XFLG3VS.js";import"./3RDQIPGF.js";import"./HLD6FQZQ.js";import"./BIQVJKQK.js";import"./G4CI2DXC.js";import"./AOTR6PSM.js";import{a as t}from"./7KQPO4TE.js";import"./TDCOZS24.js";import"./BHLUZNIA.js";import"./QLNBBGJ5.js";import"./SHIHT7KQ.js";import"./RSIZBOJN.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f 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.2 */
4
- import{F as s}from"./NUE4IZOA.js";var t=s({defaultAssetPath:"https://jsdev.arcgis.com/next/instant-apps-components/",hydratedAttribute:"hydrated"}),{customElement:n,getAssetPath:i,setAssetPath:d}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,n as b,i as c};
3
+ v1.1.0-next.20250903 */
4
+ import{F as s}from"./MQO36PNR.js";var t=s({defaultAssetPath:"https://jsdev.arcgis.com/next/instant-apps-components/",hydratedAttribute:"hydrated"}),{customElement:n,getAssetPath:i,setAssetPath:d}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,n as b,i as c};
@@ -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.2 */
4
- import"./LTPGJHX3.js";var a="Anda tidak memiliki cukup kredit untuk melakukan pengoperasian ini. Hubungi Administrator Sistem ArcGIS Anda untuk mendapatkan bantuan.",e="Alat ini diterbitkan dari notebook. Akses ke ArcGIS Notebooks diblokir untuk organisasi Anda. Hubungi administrator Anda untuk menyesuaikan pengaturan.",i="${ dataPath } tidak boleh memiliki ${ additionalProperty }.",r="${ dataPath } harus cocok dengan skema salah satu dari ini: ${ schemaOptions }.",n="Coba simpan peta lagi.",t="Perkiraan kredit gagal. Gulir ke bawah, perbaiki kesalahan, dan perkirakan kreditnya lagi.",s="Terjadi kesalahan saat menjalankan analisis.",l="${ dataPath } harus sama dengan salah satu nilai yang diizinkan ini: ${ allowedValues }.",o="Gagal menyimpan riwayat analisis",d="Penyimpanan riwayat penuh. Hapus beberapa item dari riwayat analisis dan coba simpan lagi.",m="Nama layanan mengandung satu atau lebih karakter yang tidak valid.",k="Penyimpanan layer sementara sebagai feature layeryang dihosting tidak selesai.",u="Gagal mendapatkan properti kunci.",p="Gagal memuat layer.",y="Layer tidak tersedia.",g="${ dataPath } tidak boleh memiliki lebih dari ${ limit } item.",h="Terjadi kesalahan saat menyimpan model. Coba menyimpan lagi.",c="${ dataPath } tidak boleh memiliki kurang dari ${ limit } item.",b="${ dataPath } tidak boleh lebih pendek dari ${ limit } karakter.",P="Gagal memuat item model. Pastikan model tersebut ada dan izin akses telah diberikan.",E="Gagal menyelesaikan permintaan.",v="Anda tidak memiliki izin untuk menjalankan alat ini. <calcite-link target='_blank' href='${ docLink }'>Pelajari selengkapnya</calcite-link>",S="Gagal masuk ke portal.",$="Gagal membaca input data.",f="${ dataPath } tidak memiliki properti bernama ${ missingProperty }.",I="Layer hasil sudah ada dengan nama ini. Layer hasil harus bernama unik di seluruh organisasi. Silakan gunakan nama yang berbeda.",F="Nama luaran berisi satu karakter tidak valid atau lebih. <a href='${docLink}' target='_blank'>Pelajari selengkapnya.</a>",L="Gagal menerbitkan layer sementara sebagai layer yang dihosting karena satu atau beberapa kolom tidak valid. Jalankan kembali alat untuk membuat layer dengan kolom yang valid.",T="Pengiriman pekerjaan gagal. Gulir ke bawah, perbaiki kesalahan, dan jalankan analisis lagi.",A="${ dataPath } harus memiliki setidaknya satu karakter non-spasi.",G={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:i,anyOfValues:r,cannotWriteToItemResource:n,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:y,maxItems:g,mbFailedToSave:h,minItems:c,minLength:b,modelNotFound:P,networkError:E,noPermissionToAccessTool:v,portalLoadError:S,queryFeaturesError:$,requiredProperty:f,serviceNameExistsError:I,specialCharactersInServiceNameError:F,temporaryLayerFieldsError:L,toolValidationError:T,whiteSpacePattern:A};export{a as InsufficientCreditsError,e as accessBlocked,i as additionalProperty,r as anyOfValues,n as cannotWriteToItemResource,t as creditEstimationError,G as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,y as layerUnavailable,g as maxItems,h as mbFailedToSave,c as minItems,b as minLength,P as modelNotFound,E as networkError,v as noPermissionToAccessTool,S as portalLoadError,$ as queryFeaturesError,f as requiredProperty,I as serviceNameExistsError,F as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,T as toolValidationError,A as whiteSpacePattern};
3
+ v1.1.0-next.20250903 */
4
+ import"./RSIZBOJN.js";var a="Anda tidak memiliki cukup kredit untuk melakukan pengoperasian ini. Hubungi Administrator Sistem ArcGIS Anda untuk mendapatkan bantuan.",e="Alat ini diterbitkan dari notebook. Akses ke ArcGIS Notebooks diblokir untuk organisasi Anda. Hubungi administrator Anda untuk menyesuaikan pengaturan.",i="${ dataPath } tidak boleh memiliki ${ additionalProperty }.",r="${ dataPath } harus cocok dengan skema salah satu dari ini: ${ schemaOptions }.",n="Coba simpan peta lagi.",t="Perkiraan kredit gagal. Gulir ke bawah, perbaiki kesalahan, dan perkirakan kreditnya lagi.",s="Terjadi kesalahan saat menjalankan analisis.",l="${ dataPath } harus sama dengan salah satu nilai yang diizinkan ini: ${ allowedValues }.",o="Gagal menyimpan riwayat analisis",d="Penyimpanan riwayat penuh. Hapus beberapa item dari riwayat analisis dan coba simpan lagi.",m="Nama layanan mengandung satu atau lebih karakter yang tidak valid.",k="Penyimpanan layer sementara sebagai feature layeryang dihosting tidak selesai.",u="Gagal mendapatkan properti kunci.",p="Gagal memuat layer.",y="Layer tidak tersedia.",g="${ dataPath } tidak boleh memiliki lebih dari ${ limit } item.",h="Terjadi kesalahan saat menyimpan model. Coba menyimpan lagi.",c="${ dataPath } tidak boleh memiliki kurang dari ${ limit } item.",b="${ dataPath } tidak boleh lebih pendek dari ${ limit } karakter.",P="Gagal memuat item model. Pastikan model tersebut ada dan izin akses telah diberikan.",E="Gagal menyelesaikan permintaan.",v="Anda tidak memiliki izin untuk menjalankan alat ini. <calcite-link target='_blank' href='${ docLink }'>Pelajari selengkapnya</calcite-link>",S="Gagal masuk ke portal.",$="Gagal membaca input data.",f="${ dataPath } tidak memiliki properti bernama ${ missingProperty }.",I="Layer hasil sudah ada dengan nama ini. Layer hasil harus bernama unik di seluruh organisasi. Silakan gunakan nama yang berbeda.",F="Nama luaran berisi satu karakter tidak valid atau lebih. <a href='${docLink}' target='_blank'>Pelajari selengkapnya.</a>",L="Gagal menerbitkan layer sementara sebagai layer yang dihosting karena satu atau beberapa kolom tidak valid. Jalankan kembali alat untuk membuat layer dengan kolom yang valid.",T="Pengiriman pekerjaan gagal. Gulir ke bawah, perbaiki kesalahan, dan jalankan analisis lagi.",A="${ dataPath } harus memiliki setidaknya satu karakter non-spasi.",G={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:i,anyOfValues:r,cannotWriteToItemResource:n,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:y,maxItems:g,mbFailedToSave:h,minItems:c,minLength:b,modelNotFound:P,networkError:E,noPermissionToAccessTool:v,portalLoadError:S,queryFeaturesError:$,requiredProperty:f,serviceNameExistsError:I,specialCharactersInServiceNameError:F,temporaryLayerFieldsError:L,toolValidationError:T,whiteSpacePattern:A};export{a as InsufficientCreditsError,e as accessBlocked,i as additionalProperty,r as anyOfValues,n as cannotWriteToItemResource,t as creditEstimationError,G as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,y as layerUnavailable,g as maxItems,h as mbFailedToSave,c as minItems,b as minLength,P as modelNotFound,E as networkError,v as noPermissionToAccessTool,S as portalLoadError,$ as queryFeaturesError,f as requiredProperty,I as serviceNameExistsError,F as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,T as toolValidationError,A 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.2 */
4
- import{i as d,j as i}from"./6KHCKTQR.js";import{a as c}from"./RUEX2MOD.js";import{a as p}from"./AMVW6UNS.js";import{a as s}from"./EPCC65BL.js";function f(r){let e=!1;return r&&(e=!(r.typeKeywords||[]).includes(c)),e}function w(r,e){let o=(r||[]).filter(t=>t!==c);return e||o.push(c),o}var y=class{constructor(e){this.mappings=e}storeToEntity(e,o){let t=S(e,o,this.mappings);if(s(e,"item")){let n=s(e,"item");i("canEdit",["admin","update"].includes(n.itemControl),t),i("canDelete",n.itemControl==="admin",t),i("canRecycle",n.canRecycle||!1,t),i("protected",n.protected,t)}return t}entityToStore(e,o){return C(e,o,this.mappings)}};function C(r,e,o){if(s(e,"item")){let t=s(e,"item");t.typeKeywords&&(t.typeKeywords=s(r,"isDiscussable")?t.typeKeywords.filter(n=>n!==c):[...t.typeKeywords,c],i("item.typeKeywords",t.typeKeywords,e))}return m(r,"entityKey",e,"storeKey",o)}function S(r,e,o){if(s(r,"item")){let t=s(r,"item");i("isDiscussable",f(t),e)}return m(r,"storeKey",e,"entityKey",o)}function m(r,e,o,t,n){let u=p(o);return n.forEach(l=>{let g=s(l,e),A=s(l,t),a=s(r,g);a!=null&&d(u,A,a,!0)}),u}export{f as a,w as b,y as c,C as d,S as e};
3
+ v1.1.0-next.20250903 */
4
+ import{i as d,j as i}from"./WI46PU6H.js";import{a as c}from"./FW2FTBQD.js";import{a as p}from"./CWCOPM3Z.js";import{a as s}from"./GGK5XRBW.js";function f(r){let e=!1;return r&&(e=!(r.typeKeywords||[]).includes(c)),e}function w(r,e){let o=(r||[]).filter(t=>t!==c);return e||o.push(c),o}var y=class{constructor(e){this.mappings=e}storeToEntity(e,o){let t=S(e,o,this.mappings);if(s(e,"item")){let n=s(e,"item");i("canEdit",["admin","update"].includes(n.itemControl),t),i("canDelete",n.itemControl==="admin",t),i("canRecycle",n.canRecycle||!1,t),i("protected",n.protected,t)}return t}entityToStore(e,o){return C(e,o,this.mappings)}};function C(r,e,o){if(s(e,"item")){let t=s(e,"item");t.typeKeywords&&(t.typeKeywords=s(r,"isDiscussable")?t.typeKeywords.filter(n=>n!==c):[...t.typeKeywords,c],i("item.typeKeywords",t.typeKeywords,e))}return m(r,"entityKey",e,"storeKey",o)}function S(r,e,o){if(s(r,"item")){let t=s(r,"item");i("isDiscussable",f(t),e)}return m(r,"storeKey",e,"entityKey",o)}function m(r,e,o,t,n){let u=p(o);return n.forEach(l=>{let g=s(l,e),A=s(l,t),a=s(r,g);a!=null&&d(u,A,a,!0)}),u}export{f as a,w as b,y as c,C as d,S as e};
@@ -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.2 */
4
- import"./LTPGJHX3.js";var a="Jums nav pietiekami daudz kred\u012Btu, lai izpild\u012Btu \u0161o darb\u012Bbu. Sazinieties ar ArcGIS sist\u0113mas administratoru, lai sa\u0146emtu pal\u012Bdz\u012Bbu.",e="\u0160is r\u012Bks tika public\u0113ts no notebook. ArcGIS Notebooks piek\u013Cuve j\u016Bsu organiz\u0101cijai ir blo\u0137\u0113ta. Sazinieties ar savu administratoru, lai piel\u0101gotu iestat\u012Bjumu.",i="${ dataPath } nedr\u012Bkst b\u016Bt ${ additionalProperty }.",r="${ dataPath } j\u0101atbilst k\u0101dai no \u0161\u0101d\u0101m sh\u0113m\u0101m: ${ schemaOptions }.",t="M\u0113\u0123iniet saglab\u0101t karti v\u0113lreiz.",s="Servisa kred\u012Bta apr\u0113\u0137ins neizdev\u0101s. Ritiniet uz leju, izlabojiet k\u013C\u016Bdas un v\u0113lreiz apr\u0113\u0137iniet servisa kred\u012Btus.",o="Veicot anal\u012Bzi, rad\u0101s k\u013C\u016Bda.",n="${ dataPath } j\u0101b\u016Bt vien\u0101dam ar k\u0101du no \u0161\u012Bm at\u013Cautaj\u0101m v\u0113rt\u012Bb\u0101m: ${ allowedValues }.",l="Neizdev\u0101s saglab\u0101t anal\u012Bzes v\u0113sturi",d="V\u0113stures kr\u0101tuve ir pilna. No\u0146emiet da\u017Eas vien\u012Bbas no anal\u012Bzes v\u0113stures un m\u0113\u0123iniet saglab\u0101t v\u0113lreiz.",u="Pakalpojuma nosaukum\u0101 ir viena vai vair\u0101kas neder\u012Bgas rakstz\u012Bmes.",m="Pagaidu sl\u0101\u0146a saglab\u0101\u0161ana viesota elementu sl\u0101\u0146a veid\u0101 netika pabeigta.",v="Neizdev\u0101s ieg\u016Bt galvenos rekviz\u012Btus.",k="Neizdev\u0101s iel\u0101d\u0113t sl\u0101ni.",c="Sl\u0101nis nav pieejams.",p="${ dataPath } nedr\u012Bkst b\u016Bt vair\u0101k par ${ limit } vien\u012Bb\u0101m.",z="Saglab\u0101jot modeli, rad\u0101s k\u013C\u016Bda. M\u0113\u0123iniet saglab\u0101t v\u0113lreiz.",b="${ dataPath } nedr\u012Bkst b\u016Bt maz\u0101k par ${ limit } vien\u012Bb\u0101m.",g="${ dataPath } nedr\u012Bkst b\u016Bt \u012Bs\u0101ks par ${ limit } rakstz\u012Bm\u0113m.",P="Neizdev\u0101s iel\u0101d\u0113t mode\u013Ca vien\u012Bbu. P\u0101rliecinieties, vai modelis past\u0101v un ir pie\u0161\u0137irta piek\u013Cuves at\u013Cauja.",E="Neizdev\u0101s pabeigt piepras\u012Bjumu.",h="Jums nav at\u013Caujas lietot \u0161o r\u012Bku. <calcite-link target='_blank' href='${ docLink }'>Papildinform\u0101cija</calcite-link>",S="Neizdev\u0101s pieteikties port\u0101l\u0101.",j="Neizdev\u0101s nolas\u012Bt ievades datus.",y="${ dataPath } tr\u016Bkst parametra ar nosaukumu ${ missingProperty }.",N="Rezult\u0101tu sl\u0101nis ar \u0161\u0101du nosaukumu jau past\u0101v. Rezult\u0101tu sl\u0101\u0146iem vis\u0101 organiz\u0101cij\u0101 j\u0101b\u016Bt ar unik\u0101liem nosaukumiem. L\u016Bdzu, izmantojiet citu nosaukumu.",$="Izvades nosaukum\u0101 ir viena vai vair\u0101kas neder\u012Bgas rakstz\u012Bmes. <a href='${docLink}' target='_blank'>Uzzin\u0101t vair\u0101k.</a>",f="Pagaidu sl\u0101\u0146a k\u0101 viesota sl\u0101\u0146a public\u0113\u0161ana neizdev\u0101s viena vai vair\u0101ku neder\u012Bgu lauku d\u0113\u013C. Atk\u0101rtoti palaidiet r\u012Bku, lai izveidotu sl\u0101ni ar der\u012Bgiem laukiem.",I="Darba iesnieg\u0161ana neizdev\u0101s. Ritiniet uz leju, izlabojiet k\u013C\u016Bdas un v\u0113lreiz palaidiet anal\u012Bzi.",F="${ dataPath } j\u0101b\u016Bt vismaz vienai rakstz\u012Bmei, kas nav atstarpe.",L={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:i,anyOfValues:r,cannotWriteToItemResource:t,creditEstimationError:s,defaultError:o,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:u,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:v,layerLoadFailure:k,layerUnavailable:c,maxItems:p,mbFailedToSave:z,minItems:b,minLength:g,modelNotFound:P,networkError:E,noPermissionToAccessTool:h,portalLoadError:S,queryFeaturesError:j,requiredProperty:y,serviceNameExistsError:N,specialCharactersInServiceNameError:$,temporaryLayerFieldsError:f,toolValidationError:I,whiteSpacePattern:F};export{a as InsufficientCreditsError,e as accessBlocked,i as additionalProperty,r as anyOfValues,t as cannotWriteToItemResource,s as creditEstimationError,L as default,o as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,u as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,v as keyPropertiesError,k as layerLoadFailure,c as layerUnavailable,p as maxItems,z as mbFailedToSave,b as minItems,g as minLength,P as modelNotFound,E as networkError,h as noPermissionToAccessTool,S as portalLoadError,j as queryFeaturesError,y as requiredProperty,N as serviceNameExistsError,$ as specialCharactersInServiceNameError,f as temporaryLayerFieldsError,I as toolValidationError,F as whiteSpacePattern};
3
+ v1.1.0-next.20250903 */
4
+ import"./RSIZBOJN.js";var a="Jums nav pietiekami daudz kred\u012Btu, lai izpild\u012Btu \u0161o darb\u012Bbu. Sazinieties ar ArcGIS sist\u0113mas administratoru, lai sa\u0146emtu pal\u012Bdz\u012Bbu.",e="\u0160is r\u012Bks tika public\u0113ts no notebook. ArcGIS Notebooks piek\u013Cuve j\u016Bsu organiz\u0101cijai ir blo\u0137\u0113ta. Sazinieties ar savu administratoru, lai piel\u0101gotu iestat\u012Bjumu.",i="${ dataPath } nedr\u012Bkst b\u016Bt ${ additionalProperty }.",r="${ dataPath } j\u0101atbilst k\u0101dai no \u0161\u0101d\u0101m sh\u0113m\u0101m: ${ schemaOptions }.",t="M\u0113\u0123iniet saglab\u0101t karti v\u0113lreiz.",s="Servisa kred\u012Bta apr\u0113\u0137ins neizdev\u0101s. Ritiniet uz leju, izlabojiet k\u013C\u016Bdas un v\u0113lreiz apr\u0113\u0137iniet servisa kred\u012Btus.",o="Veicot anal\u012Bzi, rad\u0101s k\u013C\u016Bda.",n="${ dataPath } j\u0101b\u016Bt vien\u0101dam ar k\u0101du no \u0161\u012Bm at\u013Cautaj\u0101m v\u0113rt\u012Bb\u0101m: ${ allowedValues }.",l="Neizdev\u0101s saglab\u0101t anal\u012Bzes v\u0113sturi",d="V\u0113stures kr\u0101tuve ir pilna. No\u0146emiet da\u017Eas vien\u012Bbas no anal\u012Bzes v\u0113stures un m\u0113\u0123iniet saglab\u0101t v\u0113lreiz.",u="Pakalpojuma nosaukum\u0101 ir viena vai vair\u0101kas neder\u012Bgas rakstz\u012Bmes.",m="Pagaidu sl\u0101\u0146a saglab\u0101\u0161ana viesota elementu sl\u0101\u0146a veid\u0101 netika pabeigta.",v="Neizdev\u0101s ieg\u016Bt galvenos rekviz\u012Btus.",k="Neizdev\u0101s iel\u0101d\u0113t sl\u0101ni.",c="Sl\u0101nis nav pieejams.",p="${ dataPath } nedr\u012Bkst b\u016Bt vair\u0101k par ${ limit } vien\u012Bb\u0101m.",z="Saglab\u0101jot modeli, rad\u0101s k\u013C\u016Bda. M\u0113\u0123iniet saglab\u0101t v\u0113lreiz.",b="${ dataPath } nedr\u012Bkst b\u016Bt maz\u0101k par ${ limit } vien\u012Bb\u0101m.",g="${ dataPath } nedr\u012Bkst b\u016Bt \u012Bs\u0101ks par ${ limit } rakstz\u012Bm\u0113m.",P="Neizdev\u0101s iel\u0101d\u0113t mode\u013Ca vien\u012Bbu. P\u0101rliecinieties, vai modelis past\u0101v un ir pie\u0161\u0137irta piek\u013Cuves at\u013Cauja.",E="Neizdev\u0101s pabeigt piepras\u012Bjumu.",h="Jums nav at\u013Caujas lietot \u0161o r\u012Bku. <calcite-link target='_blank' href='${ docLink }'>Papildinform\u0101cija</calcite-link>",S="Neizdev\u0101s pieteikties port\u0101l\u0101.",j="Neizdev\u0101s nolas\u012Bt ievades datus.",y="${ dataPath } tr\u016Bkst parametra ar nosaukumu ${ missingProperty }.",N="Rezult\u0101tu sl\u0101nis ar \u0161\u0101du nosaukumu jau past\u0101v. Rezult\u0101tu sl\u0101\u0146iem vis\u0101 organiz\u0101cij\u0101 j\u0101b\u016Bt ar unik\u0101liem nosaukumiem. L\u016Bdzu, izmantojiet citu nosaukumu.",$="Izvades nosaukum\u0101 ir viena vai vair\u0101kas neder\u012Bgas rakstz\u012Bmes. <a href='${docLink}' target='_blank'>Uzzin\u0101t vair\u0101k.</a>",f="Pagaidu sl\u0101\u0146a k\u0101 viesota sl\u0101\u0146a public\u0113\u0161ana neizdev\u0101s viena vai vair\u0101ku neder\u012Bgu lauku d\u0113\u013C. Atk\u0101rtoti palaidiet r\u012Bku, lai izveidotu sl\u0101ni ar der\u012Bgiem laukiem.",I="Darba iesnieg\u0161ana neizdev\u0101s. Ritiniet uz leju, izlabojiet k\u013C\u016Bdas un v\u0113lreiz palaidiet anal\u012Bzi.",F="${ dataPath } j\u0101b\u016Bt vismaz vienai rakstz\u012Bmei, kas nav atstarpe.",L={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:i,anyOfValues:r,cannotWriteToItemResource:t,creditEstimationError:s,defaultError:o,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:u,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:v,layerLoadFailure:k,layerUnavailable:c,maxItems:p,mbFailedToSave:z,minItems:b,minLength:g,modelNotFound:P,networkError:E,noPermissionToAccessTool:h,portalLoadError:S,queryFeaturesError:j,requiredProperty:y,serviceNameExistsError:N,specialCharactersInServiceNameError:$,temporaryLayerFieldsError:f,toolValidationError:I,whiteSpacePattern:F};export{a as InsufficientCreditsError,e as accessBlocked,i as additionalProperty,r as anyOfValues,t as cannotWriteToItemResource,s as creditEstimationError,L as default,o as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,u as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,v as keyPropertiesError,k as layerLoadFailure,c as layerUnavailable,p as maxItems,z as mbFailedToSave,b as minItems,g as minLength,P as modelNotFound,E as networkError,h as noPermissionToAccessTool,S as portalLoadError,j as queryFeaturesError,y as requiredProperty,N as serviceNameExistsError,$ as specialCharactersInServiceNameError,f as temporaryLayerFieldsError,I as toolValidationError,F 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.2 */
3
+ v1.1.0-next.20250903 */
4
4
  var t={type:"string",minLength:1,maxLength:250,format:"entityTitleValidator"},e={type:"string",minLength:1,maxLength:250,format:"siteEntityTitleValidator"},p={type:"string",maxLength:2048},r={type:"string",enum:["public","org","private"],default:"private"},o={type:"array",items:{type:"string"}},s={type:"array",items:{type:"string"},maxItems:20},n={type:"boolean",enum:[!0,!1],default:!0},i={type:"array",maxItems:4,items:{type:"string"}},a={type:"object",default:{type:"none"},properties:{type:{type:"string",enum:["none","org","custom"],default:"none"},name:{type:"string"}}},y={type:"object",properties:{baseViewItemId:{type:"array",items:{type:"string"},maxItems:1}}},E={type:"object",properties:{base64:{type:"string"},format:{type:"string"},fileName:{type:"string"},blob:{type:"object",properties:{type:{type:"string"},size:{type:"number"}}},url:{type:"string"}}},g={type:"object",properties:{title:{type:"string"},description:{type:"string"},canCollapse:{type:"boolean"},stages:{type:"array",items:{type:"object",properties:{title:{type:"string"},timeframe:{type:"string"},stageDescription:{type:"string"},status:{type:"string"},link:{type:"object",properties:{href:{type:"string"},title:{type:"string"}}}}}}}},c={type:"object",properties:{consentNotice:{type:"object",properties:{allowPrivacyConfig:{type:"boolean",default:!1},blocking:{type:"boolean",default:!1},disclaimer:{type:"array",items:[{type:"object",properties:{text:{type:"string"},lang:{type:"string"},default:{type:"boolean"}}}]},policyURL:{type:"string",pattern:"^(https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w.-]*)*\\/?$|^$"}}}}},l={type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$"};export{t as a,e as b,p as c,r as d,o as e,s as f,n as g,i as h,a as i,y as j,E as k,g as l,c as m,l as n};
@@ -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.2 */
4
- import{a as u}from"./KSTE62UX.js";import{a as m,f as b,z as _}from"./AS5PUT7N.js";import{b as d}from"./ROOZ6PE2.js";import"./UKIPNYSS.js";import"./3TXIADMS.js";import{C as p,D as g,E as h,G as t,h as l,i,l as e}from"./NUE4IZOA.js";import"./LTPGJHX3.js";var I=l`:host{--instant-apps-sign-in-indicator-color: #007ac2;display:block;box-shadow:none!important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center;height:100%}:host .instant-apps-sign-in__container calcite-action{--calcite-action-text-color: var(--calcite-color-text-1);--calcite-font-size--2: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: 12px}:host .instant-apps-sign-in__container calcite-action:focus{--calcite-action-background-color: var(--calcite-color-foreground-2)}:host .instant-apps-sign-in__container calcite-action,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2: rgba(0, 0, 0, .04);--calcite-color-foreground-3: rgba(0, 0, 0, .04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-popover[scale=m] .instant-apps-sign-in__sign-in-container{min-width:140px}:host .instant-apps-sign-in__container calcite-popover[scale=s] .instant-apps-sign-in__sign-in-container{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:.7;transition:.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:#fffc;color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press: var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}`,s={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator",signInContainer:"instant-apps-sign-in__sign-in-container"},o=class extends h{constructor(){super(...arguments),this._messages=u({name:"instant-apps-sign-in",blocking:!0}),this.signInPopover=p(),this.ready=!1,this.isSignedIn=!1,this.type="navigation",this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0}static{this.properties={ready:16,isSignedIn:16,user:16,type:1,portal:0,oauthappid:1,openInPopup:5,landingPage:5,showIndicator:5,closeLandingPage:0,signInPopoverItems:0}}static{this.styles=I}async load(){await this.initSignIn()}willUpdate(n){(n.has("portal")||n.has("oauthappid"))&&this.initSignIn()}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,a]=await Promise.all([m(),_()]);this.idManager=n,this.info=await b({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await a.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},2e3)}render(){return this.ready?this.renderContent():null}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return i`<div class=${t(s.base)}>${this.isSignedIn?this.renderSignInPopover():this.renderSignInButton()}</div>`}renderSignInPopover(){let n=this.type==="navigation"?"m":"s",a=this.showIndicator?s.indicator:"",r=this.user?.id??this.user?.sourceJSON?.id;return i`${this.type==="navigation"?i`<calcite-navigation-user class=${t(a)} id=instant-apps-sign-in-user-button .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e} text-disabled></calcite-navigation-user>`:i`<button id=instant-apps-sign-in-user-button><calcite-avatar class=${t(a)} .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e}></calcite-avatar></button>`}<calcite-popover placement=bottom-end .scale=${n} reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close label="User settings" ${g(this.signInPopover)}><div class=${t(s.signInContainer)}><slot name=sign-in-popover-top></slot>${this.signInPopoverItems?.map(c=>i`<calcite-action scale=s @click=${f=>{c.onClick(f),this.signInPopover.value&&(this.signInPopover.value.open=!1)}} .text=${c.label} text-enabled></calcite-action>`)}<calcite-action scale=s @click=${this.signOut} .text=${this._messages.signOut} text-enabled></calcite-action></div></calcite-popover>`}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",a=this.type==="navigation"?s.SignInBtn:"";return i`<calcite-button class=${t(a)} @click=${this.signIn} scale=s icon-start=sign-in .appearance=${n}>${this._messages.signIn}</calcite-button>`}renderLandingPageSignIn(){return i`<div class=${t(s.buttonContainer)}><calcite-button class=${t(s.entryButton)} scale=l @click=${this.landingPageSignIn}>${this._messages.signIn}</calcite-button><calcite-button class=${t(s.entryButton)} scale=l appearance=outline-fill @click=${this.guestOnClick}>${this._messages.continueAsGuest}</calcite-button></div>`}};d("instant-apps-sign-in",o);export{o as InstantAppsSignIn};
3
+ v1.1.0-next.20250903 */
4
+ import{a as u}from"./CRS7PGKJ.js";import{a as m,f as b,z as _}from"./MJJQO7HA.js";import{b as d}from"./S3ZKPUSV.js";import"./QTL5HLJT.js";import"./NTWOUJJC.js";import{C as p,D as g,E as h,G as t,h as l,i,l as e}from"./MQO36PNR.js";import"./RSIZBOJN.js";var I=l`:host{--instant-apps-sign-in-indicator-color: #007ac2;display:block;box-shadow:none!important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center;height:100%}:host .instant-apps-sign-in__container calcite-action{--calcite-action-text-color: var(--calcite-color-text-1);--calcite-font-size--2: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: 12px}:host .instant-apps-sign-in__container calcite-action:focus{--calcite-action-background-color: var(--calcite-color-foreground-2)}:host .instant-apps-sign-in__container calcite-action,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2: rgba(0, 0, 0, .04);--calcite-color-foreground-3: rgba(0, 0, 0, .04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-popover[scale=m] .instant-apps-sign-in__sign-in-container{min-width:140px}:host .instant-apps-sign-in__container calcite-popover[scale=s] .instant-apps-sign-in__sign-in-container{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:.7;transition:.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:#fffc;color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press: var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}`,s={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator",signInContainer:"instant-apps-sign-in__sign-in-container"},o=class extends h{constructor(){super(...arguments),this._messages=u({name:"instant-apps-sign-in",blocking:!0}),this.signInPopover=p(),this.ready=!1,this.isSignedIn=!1,this.type="navigation",this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0}static{this.properties={ready:16,isSignedIn:16,user:16,type:1,portal:0,oauthappid:1,openInPopup:5,landingPage:5,showIndicator:5,closeLandingPage:0,signInPopoverItems:0}}static{this.styles=I}async load(){await this.initSignIn()}willUpdate(n){(n.has("portal")||n.has("oauthappid"))&&this.initSignIn()}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,a]=await Promise.all([m(),_()]);this.idManager=n,this.info=await b({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await a.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},2e3)}render(){return this.ready?this.renderContent():null}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return i`<div class=${t(s.base)}>${this.isSignedIn?this.renderSignInPopover():this.renderSignInButton()}</div>`}renderSignInPopover(){let n=this.type==="navigation"?"m":"s",a=this.showIndicator?s.indicator:"",r=this.user?.id??this.user?.sourceJSON?.id;return i`${this.type==="navigation"?i`<calcite-navigation-user class=${t(a)} id=instant-apps-sign-in-user-button .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e} text-disabled></calcite-navigation-user>`:i`<button id=instant-apps-sign-in-user-button><calcite-avatar class=${t(a)} .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e}></calcite-avatar></button>`}<calcite-popover placement=bottom-end .scale=${n} reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close label="User settings" ${g(this.signInPopover)}><div class=${t(s.signInContainer)}><slot name=sign-in-popover-top></slot>${this.signInPopoverItems?.map(c=>i`<calcite-action scale=s @click=${f=>{c.onClick(f),this.signInPopover.value&&(this.signInPopover.value.open=!1)}} .text=${c.label} text-enabled></calcite-action>`)}<calcite-action scale=s @click=${this.signOut} .text=${this._messages.signOut} text-enabled></calcite-action></div></calcite-popover>`}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",a=this.type==="navigation"?s.SignInBtn:"";return i`<calcite-button class=${t(a)} @click=${this.signIn} scale=s icon-start=sign-in .appearance=${n}>${this._messages.signIn}</calcite-button>`}renderLandingPageSignIn(){return i`<div class=${t(s.buttonContainer)}><calcite-button class=${t(s.entryButton)} scale=l @click=${this.landingPageSignIn}>${this._messages.signIn}</calcite-button><calcite-button class=${t(s.entryButton)} scale=l appearance=outline-fill @click=${this.guestOnClick}>${this._messages.continueAsGuest}</calcite-button></div>`}};d("instant-apps-sign-in",o);export{o as InstantAppsSignIn};
@@ -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.2 */
4
- import"./LTPGJHX3.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.1.0-next.20250903 */
4
+ import"./RSIZBOJN.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};