@esri/solutions-components 1.2.0-next.60 → 1.2.0-next.62

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 (446) hide show
  1. package/dist/cdn/{CKNI5JQZ.js → 22JVEJ5Q.js} +2 -2
  2. package/dist/cdn/22NCE237.js +4 -0
  3. package/dist/cdn/{6GOVJOEP.js → 22PAFNIS.js} +1 -1
  4. package/dist/cdn/{TBX5YM7Y.js → 236NYJJU.js} +2 -2
  5. package/dist/cdn/23YDHQTC.js +4 -0
  6. package/dist/cdn/253F2A32.js +4 -0
  7. package/dist/cdn/{JBY2LVLC.js → 2GSMLN5P.js} +2 -2
  8. package/dist/cdn/2HJI2XXY.js +99 -0
  9. package/dist/cdn/{GDA44E5L.js → 2PLJEDPA.js} +2 -2
  10. package/dist/cdn/{IJ245FDS.js → 2S7HZF7M.js} +2 -2
  11. package/dist/cdn/{PKVTULHS.js → 32CAHGJ5.js} +2 -2
  12. package/dist/cdn/37ABMKIT.js +4 -0
  13. package/dist/cdn/{DHWSNW5P.js → 3GS5C3NN.js} +2 -2
  14. package/dist/cdn/{N6VW2C5V.js → 3HWVOIZJ.js} +2 -2
  15. package/dist/cdn/{YUD3M45U.js → 3X3W65RV.js} +2 -2
  16. package/dist/cdn/{WQZZSYO5.js → 43XNXLYA.js} +1 -1
  17. package/dist/cdn/45XVYTNF.js +4 -0
  18. package/dist/cdn/{BURTSBUG.js → 4DEQWZVP.js} +2 -2
  19. package/dist/cdn/{UK7HJV5Q.js → 4IVBY5EY.js} +2 -2
  20. package/dist/cdn/{ZP32JPRG.js → 4LZ6CQRP.js} +2 -2
  21. package/dist/cdn/{F2O4WKM6.js → 4MMEN7ON.js} +1 -1
  22. package/dist/cdn/{SHP3U3JY.js → 4UIXAAHB.js} +2 -2
  23. package/dist/cdn/{JQQORYBM.js → 4XIOAYVM.js} +2 -2
  24. package/dist/cdn/{5BILAT4P.js → 4XVPHNUD.js} +2 -2
  25. package/dist/cdn/{W62W3LOA.js → 52LPF2VM.js} +2 -2
  26. package/dist/cdn/{HWMTN5ZA.js → 54CECDRX.js} +3 -3
  27. package/dist/cdn/{RODDEQZP.js → 554VYCGW.js} +2 -2
  28. package/dist/cdn/{EDH5P6Q7.js → 57XJMKLA.js} +2 -2
  29. package/dist/cdn/{MJOCAQYG.js → 5APMCLL6.js} +2 -2
  30. package/dist/cdn/{5UHH33AX.js → 5D5B7JGO.js} +2 -2
  31. package/dist/cdn/{H6QRA25K.js → 5FMIL22Q.js} +2 -2
  32. package/dist/cdn/{CNDUM26C.js → 5KQ5Q26R.js} +2 -2
  33. package/dist/cdn/{DCZYU4L6.js → 5M6DOBGP.js} +2 -2
  34. package/dist/cdn/{7FQXWGOC.js → 5T5TBQ6T.js} +2 -2
  35. package/dist/cdn/{25S4YYPR.js → 5TSB7GTX.js} +1 -1
  36. package/dist/cdn/{2LQ6UZTT.js → 62DGAPEO.js} +2 -2
  37. package/dist/cdn/{54ED5CXQ.js → 62ZCP7VD.js} +2 -2
  38. package/dist/cdn/{T7D3VOZH.js → 63OPMGEP.js} +1 -1
  39. package/dist/cdn/{JHF5JR4C.js → 64QSZHAO.js} +2 -2
  40. package/dist/cdn/{DSMKW3R5.js → 6CU2WRF6.js} +2 -2
  41. package/dist/cdn/{XZQZZC3C.js → 6IIEGCHC.js} +1 -1
  42. package/dist/cdn/{CZ7OZ7WB.js → 6NJA65DE.js} +2 -2
  43. package/dist/cdn/{5TEHU4A3.js → 6PW6R74H.js} +2 -2
  44. package/dist/cdn/{TPC7NEBD.js → 726JATVV.js} +2 -2
  45. package/dist/cdn/7GUJY2LR.js +4 -0
  46. package/dist/cdn/{NJDA4LPT.js → 7IGDME5U.js} +2 -2
  47. package/dist/cdn/{QVQG7XLV.js → 7R442J7P.js} +2 -2
  48. package/dist/cdn/{6FVZXZD6.js → 7RMDHBJB.js} +2 -2
  49. package/dist/cdn/{3UZFYGDX.js → 7Y3KZNR2.js} +2 -2
  50. package/dist/cdn/{YRJBKF6C.js → A24UTMFY.js} +2 -2
  51. package/dist/cdn/{VGEFJTQ7.js → A4UPSJJE.js} +2 -2
  52. package/dist/cdn/{B72I6V6F.js → A6VN4V55.js} +2 -2
  53. package/dist/cdn/{L5QIQ6XB.js → A7DAUWF2.js} +2 -2
  54. package/dist/cdn/{ILEKKEKK.js → ADPIMKQF.js} +2 -2
  55. package/dist/cdn/{2KLTC6O5.js → AGA3QECA.js} +2 -2
  56. package/dist/cdn/{APPQU75R.js → AI4YPMS2.js} +2 -2
  57. package/dist/cdn/{6JWWLPWA.js → AKIG2SOT.js} +2 -2
  58. package/dist/cdn/{CTLSDIIG.js → ALPA4YMT.js} +2 -2
  59. package/dist/cdn/{RJ4NCL2V.js → AMPKI3ZS.js} +2 -2
  60. package/dist/cdn/{NVQ6TXGS.js → APXUHBE6.js} +2 -2
  61. package/dist/cdn/{I5XRY7QD.js → ARVI4H2Q.js} +2 -2
  62. package/dist/cdn/{HEW7XMPJ.js → ASIRLW76.js} +2 -2
  63. package/dist/cdn/AVOVSN7I.js +4 -0
  64. package/dist/cdn/{6KLBYZFM.js → AYBCSY7S.js} +1 -1
  65. package/dist/cdn/{7AH7N5XT.js → B325AODH.js} +2 -2
  66. package/dist/cdn/{YKML7M7J.js → B34U5BOQ.js} +2 -2
  67. package/dist/cdn/{ZCVLEFOZ.js → B5HFPNLU.js} +2 -2
  68. package/dist/cdn/B6AW4EWR.js +4 -0
  69. package/dist/cdn/{TMAKLZXE.js → B7SKJJP3.js} +2 -2
  70. package/dist/cdn/{N3W52TLJ.js → BAMGFCWQ.js} +2 -2
  71. package/dist/cdn/{OSUCA7CY.js → BBVT6UMT.js} +1 -1
  72. package/dist/cdn/{6BYDV3EW.js → BIXSBFWC.js} +2 -2
  73. package/dist/cdn/{C32KHGLO.js → BK4RW3VQ.js} +2 -2
  74. package/dist/cdn/{NOGPPLBH.js → BKAHIMJS.js} +2 -2
  75. package/dist/cdn/{NJN5EPQ4.js → BNJCN3PG.js} +2 -2
  76. package/dist/cdn/{JJ7ZGFCV.js → BZDZ3UJ6.js} +2 -2
  77. package/dist/cdn/{7WO57UW7.js → C5VOK3FJ.js} +2 -2
  78. package/dist/cdn/{A3HBTAZT.js → C6IB2AKM.js} +2 -2
  79. package/dist/cdn/{AHRD7AGX.js → C6JSF4KJ.js} +2 -2
  80. package/dist/cdn/{BMUBVYWB.js → CACE6JPT.js} +2 -2
  81. package/dist/cdn/CGH4Y5QV.js +4 -0
  82. package/dist/cdn/{YCKVHLNK.js → CNVT4KW2.js} +2 -2
  83. package/dist/cdn/{LDWBOY5O.js → CUCGCLEY.js} +2 -2
  84. package/dist/cdn/{NKNXRQAV.js → CUEWTRE6.js} +2 -2
  85. package/dist/cdn/{JJKBP6VP.js → D3FDZ2UO.js} +2 -2
  86. package/dist/cdn/{VAAKEDW6.js → D7AKN3FL.js} +2 -2
  87. package/dist/cdn/{4B45SS3L.js → DADOAOGK.js} +2 -2
  88. package/dist/cdn/{YIXNCAFO.js → DBJEWRVF.js} +2 -2
  89. package/dist/cdn/{BJ7ITM4Z.js → DBQK233J.js} +2 -2
  90. package/dist/cdn/{O5PY3MEI.js → DHGDH6TY.js} +2 -2
  91. package/dist/cdn/{HOZY6EI4.js → DIUGFURH.js} +2 -2
  92. package/dist/cdn/{5O4YCDNG.js → DJQJX7XN.js} +2 -2
  93. package/dist/cdn/{VKEAIQ7W.js → DKENTSZS.js} +2 -2
  94. package/dist/cdn/{U5Y5C2T7.js → DMBX6WDE.js} +2 -2
  95. package/dist/cdn/{KXCASIUR.js → DNQXEBRM.js} +1 -1
  96. package/dist/cdn/{HYKFAUBN.js → DOUCTK4Y.js} +2 -2
  97. package/dist/cdn/{6YX67STC.js → DQ56YCHP.js} +2 -2
  98. package/dist/cdn/{HMCZQXAN.js → DY6XHIHX.js} +2 -2
  99. package/dist/cdn/{7ZR4MPQZ.js → DYTPNPZ6.js} +2 -2
  100. package/dist/cdn/{ZIBWJVYK.js → E4CBAFDM.js} +2 -2
  101. package/dist/cdn/{6N5NPFCF.js → E4GKMLY7.js} +1 -1
  102. package/dist/cdn/{RYTV4M2W.js → E4MHP3D6.js} +2 -2
  103. package/dist/cdn/{VBXJSOCP.js → E5TKEWBV.js} +2 -2
  104. package/dist/cdn/{JUN72POY.js → EAEVZCHH.js} +2 -2
  105. package/dist/cdn/{IKCE3HR4.js → EARAW6MW.js} +2 -2
  106. package/dist/cdn/{DVPHVSDL.js → EGFNOBOA.js} +2 -2
  107. package/dist/cdn/{V5T2QK5Z.js → ERMUBMJN.js} +3 -3
  108. package/dist/cdn/{YHKV4IMA.js → ET3OO6ME.js} +2 -2
  109. package/dist/cdn/{6AE27ENC.js → EVD3PK7T.js} +2 -2
  110. package/dist/cdn/{RF3JRSKX.js → EWAAPXCJ.js} +2 -2
  111. package/dist/cdn/{TZLKWPKE.js → EWXIH5IA.js} +1 -1
  112. package/dist/cdn/{VIHFAHTC.js → EZEU4P7C.js} +2 -2
  113. package/dist/cdn/{OAIWU3G2.js → F3G2SMGH.js} +2 -2
  114. package/dist/cdn/{SADSRCE6.js → F4O75RZP.js} +2 -2
  115. package/dist/cdn/{C5IIHI76.js → F5JAPR6B.js} +2 -2
  116. package/dist/cdn/{UNXHL3PD.js → FNQ2L2DM.js} +2 -2
  117. package/dist/cdn/{NRH5UT5G.js → FP5D2SZA.js} +2 -2
  118. package/dist/cdn/{KQJ5NCH6.js → FPZEMX4B.js} +2 -2
  119. package/dist/cdn/{UYBRDZJB.js → FTRDBT4T.js} +1 -1
  120. package/dist/cdn/{65VZKYXC.js → FZJHK5CF.js} +2 -2
  121. package/dist/cdn/{I2GKR2VA.js → FZLUKWFG.js} +2 -2
  122. package/dist/cdn/{D7E2HKRL.js → G2AIEDH5.js} +2 -2
  123. package/dist/cdn/{4ZUI33B3.js → G2WHRDRB.js} +2 -2
  124. package/dist/cdn/{WE6UE3KJ.js → G5HIPUSK.js} +2 -2
  125. package/dist/cdn/{VLJVPFSV.js → GC4O5APO.js} +2 -2
  126. package/dist/cdn/{NCOWGV7K.js → GEIREK7Z.js} +2 -2
  127. package/dist/cdn/{7MHE37ND.js → GJFCLYAN.js} +2 -2
  128. package/dist/cdn/{TEDF2YLW.js → GKEZI3PT.js} +2 -2
  129. package/dist/cdn/{AOTAJDNP.js → GNV3ZQMC.js} +2 -2
  130. package/dist/cdn/{ZGSIGKHE.js → GQ2XFFMS.js} +2 -2
  131. package/dist/cdn/{AURJV7BW.js → GUNQEMBA.js} +2 -2
  132. package/dist/cdn/{OXWGYPXL.js → GVHW3DLW.js} +2 -2
  133. package/dist/cdn/{K7YP5PDD.js → H2OY3T5X.js} +2 -2
  134. package/dist/cdn/{5KBG56UB.js → H55LL3JW.js} +2 -2
  135. package/dist/cdn/{M4JSPVOB.js → H5CJXI25.js} +2 -2
  136. package/dist/cdn/{FNJ2SV5I.js → HDZR66W4.js} +2 -2
  137. package/dist/cdn/HFAKSY2S.js +4 -0
  138. package/dist/cdn/{VJTZDKH6.js → HGL4EETI.js} +2 -2
  139. package/dist/cdn/{KU7YFFLU.js → HGORRSQH.js} +2 -2
  140. package/dist/cdn/{BTLCSZS6.js → HHTFAIXB.js} +2 -2
  141. package/dist/cdn/{ZEOSRRT3.js → HMRGYX5P.js} +2 -2
  142. package/dist/cdn/{ZMOPA7LL.js → HP5QJTNI.js} +2 -2
  143. package/dist/cdn/{64ZV5SC6.js → HUGBK2U5.js} +2 -2
  144. package/dist/cdn/{JISBULOQ.js → HV67SLIL.js} +2 -2
  145. package/dist/cdn/{55BTIKND.js → HZ6I4XIB.js} +2 -2
  146. package/dist/cdn/{542KFAVB.js → IAYBBBQT.js} +2 -2
  147. package/dist/cdn/{2QT4FWZI.js → IFZPP6SX.js} +2 -2
  148. package/dist/cdn/{WCFSF7A6.js → IHPRKZ6H.js} +2 -2
  149. package/dist/cdn/{QGEJHDKV.js → IHYUEJMC.js} +2 -2
  150. package/dist/cdn/{A6EVVFF5.js → IJQDG7IP.js} +1 -1
  151. package/dist/cdn/{RKIQ5DUF.js → INSM2YOC.js} +1 -1
  152. package/dist/cdn/{NRD46FCK.js → IPK2F5FY.js} +2 -2
  153. package/dist/cdn/{3C7EEW26.js → IULSZB52.js} +2 -2
  154. package/dist/cdn/{2WAKVF6V.js → IWA7DA43.js} +2 -2
  155. package/dist/cdn/{ERJ7WRMG.js → IWCAJBZW.js} +2 -2
  156. package/dist/cdn/{D4HJALUO.js → IXXHXXXL.js} +2 -2
  157. package/dist/cdn/J2GHMMFS.js +4 -0
  158. package/dist/cdn/{I2ZUPDGL.js → J3UFVX3S.js} +2 -2
  159. package/dist/cdn/{X6UQRYBW.js → J63NAMCW.js} +2 -2
  160. package/dist/cdn/{PWZXYVX5.js → JC7RDCAK.js} +1 -1
  161. package/dist/cdn/{K6F7LOXC.js → JFF52LZP.js} +2 -2
  162. package/dist/cdn/{CLGO7JPJ.js → JFSGS5OC.js} +2 -2
  163. package/dist/cdn/{N2EZQGSH.js → JHLUVV4N.js} +2 -2
  164. package/dist/cdn/{E5D2NJVY.js → JIJ63VQQ.js} +2 -2
  165. package/dist/cdn/{PTDYPOBH.js → JIWFE5LY.js} +2 -2
  166. package/dist/cdn/{FTRTGXW7.js → JLLGVKZ3.js} +2 -2
  167. package/dist/cdn/{WYHW2ASX.js → JOKQH5HY.js} +2 -2
  168. package/dist/cdn/{WFPKRTD3.js → JQUL7FKM.js} +2 -2
  169. package/dist/cdn/JRR6TOXN.js +4 -0
  170. package/dist/cdn/{JCODPNFL.js → JVKAKNFS.js} +2 -2
  171. package/dist/cdn/{NIX6S7F4.js → K3AJABNT.js} +2 -2
  172. package/dist/cdn/K4AQW7JU.js +4 -0
  173. package/dist/cdn/{ENLS3ON7.js → K5PP5PS3.js} +2 -2
  174. package/dist/cdn/{MGTGTJF2.js → K5XSI7EQ.js} +2 -2
  175. package/dist/cdn/{5A33WQAT.js → KB4RIKZC.js} +2 -2
  176. package/dist/cdn/{ZKK5CT2Y.js → KD3N253K.js} +2 -2
  177. package/dist/cdn/{L6CDXESS.js → KDYFZUTB.js} +2 -2
  178. package/dist/cdn/{CTCPMABN.js → KG6ZXBS3.js} +2 -2
  179. package/dist/cdn/{CJZPJFAS.js → KK7FYLJQ.js} +2 -2
  180. package/dist/cdn/{AXSGVQ6P.js → KMZFQSAO.js} +2 -2
  181. package/dist/cdn/{H4MLUVTV.js → KTC723NZ.js} +2 -2
  182. package/dist/cdn/{QU5W75PN.js → KX5MJZBS.js} +2 -2
  183. package/dist/cdn/{3X5566EC.js → KXKGISFI.js} +2 -2
  184. package/dist/cdn/{KS2TXTJB.js → KXM4MDPA.js} +1 -1
  185. package/dist/cdn/L3X5KHYY.js +4 -0
  186. package/dist/cdn/{T2GOSVXE.js → L4WWTSVG.js} +1 -1
  187. package/dist/cdn/{3S7MAI7H.js → L6TD54I2.js} +2 -2
  188. package/dist/cdn/{FRISKWYY.js → LEQFLWZJ.js} +2 -2
  189. package/dist/cdn/{4N5CTUVM.js → LF6GOWP7.js} +2 -2
  190. package/dist/cdn/{N3WXY7EJ.js → LFZ3JTH2.js} +2 -2
  191. package/dist/cdn/LYOK3PYB.js +4 -0
  192. package/dist/cdn/{RPRDW34S.js → M3NVL5WO.js} +2 -2
  193. package/dist/cdn/M3S3NPNI.js +4 -0
  194. package/dist/cdn/{4B2V45V5.js → MBZ2CBF3.js} +2 -2
  195. package/dist/cdn/{LHRZ7IBA.js → MCTC2Q7E.js} +4 -4
  196. package/dist/cdn/{CBEROJ4E.js → MGYSZD74.js} +2 -2
  197. package/dist/cdn/{NLVAFEJX.js → MIBMK3NI.js} +2 -2
  198. package/dist/cdn/MJXQ54VH.js +4 -0
  199. package/dist/cdn/{WFIOSSYN.js → MNKJFLXG.js} +2 -2
  200. package/dist/cdn/{EUGPRFL4.js → MPWXNEN5.js} +2 -2
  201. package/dist/cdn/{2EZ2T3HV.js → MR2LK44L.js} +2 -2
  202. package/dist/cdn/{VI6A3Y4V.js → MS5LO6DW.js} +2 -2
  203. package/dist/cdn/{NF7C27BU.js → MUGJVLFI.js} +2 -2
  204. package/dist/cdn/{LUGOSNDF.js → MWZHS3D4.js} +2 -2
  205. package/dist/cdn/{IIWGQLYN.js → MX5P2FVF.js} +2 -2
  206. package/dist/cdn/{N2ZLUG26.js → MXLQXZPF.js} +2 -2
  207. package/dist/cdn/{YPOFETNV.js → N3WZI64X.js} +2 -2
  208. package/dist/cdn/{35CB3CIG.js → N4UDOCET.js} +2 -2
  209. package/dist/cdn/{UTJOHATU.js → N6VBAVNA.js} +2 -2
  210. package/dist/cdn/{S2GLQ7ZY.js → N7B4ODMG.js} +1 -1
  211. package/dist/cdn/{EJK6FW2Z.js → NDRCKJQN.js} +1 -1
  212. package/dist/cdn/{66RDTM4T.js → NGBAJJ6D.js} +2 -2
  213. package/dist/cdn/{ZLSRPXWT.js → NH3EQDO5.js} +1 -1
  214. package/dist/cdn/{GXHJQQCL.js → NHCQYVJM.js} +2 -2
  215. package/dist/cdn/{FYBSJAMQ.js → NLYW2WAM.js} +2 -2
  216. package/dist/cdn/{HFOH5YAJ.js → NO3GNFZC.js} +2 -2
  217. package/dist/cdn/{YVDXF4UB.js → NPJZFC4M.js} +2 -2
  218. package/dist/cdn/{APHETGJW.js → NTD7CHVT.js} +2 -2
  219. package/dist/cdn/{RFUX4G37.js → NW7OFXKC.js} +2 -2
  220. package/dist/cdn/{6ZX35J5Z.js → O3P5NOM2.js} +2 -2
  221. package/dist/cdn/{FOKCZWOQ.js → OA2S63FZ.js} +2 -2
  222. package/dist/cdn/{CNEHMBZW.js → OFWF4FLH.js} +1 -1
  223. package/dist/cdn/{VDIJAOXE.js → OOFFATCD.js} +2 -2
  224. package/dist/cdn/{45S22WSU.js → OPYKS7CX.js} +2 -2
  225. package/dist/cdn/{DAU34542.js → OUAROGMB.js} +2 -2
  226. package/dist/cdn/{SBSDLWOC.js → OYOHY5WS.js} +2 -2
  227. package/dist/cdn/{WIX6R4XI.js → P2A5KXML.js} +2 -2
  228. package/dist/cdn/{DHDV37FH.js → P3OVPYEQ.js} +2 -2
  229. package/dist/cdn/{JNZZAE7R.js → P6L7EUVQ.js} +2 -2
  230. package/dist/cdn/{46UPVPEV.js → P6SI3ZH2.js} +1 -1
  231. package/dist/cdn/{ZQGM6XZT.js → PBORVLXJ.js} +2 -2
  232. package/dist/cdn/{JQKYSOGE.js → PHODD4Z6.js} +1 -1
  233. package/dist/cdn/{4WNXJSEW.js → PJQAZKQO.js} +2 -2
  234. package/dist/cdn/{7AEU6P43.js → PTLVWRGF.js} +2 -2
  235. package/dist/cdn/{K6NKAZBD.js → PXKUIO5A.js} +1 -1
  236. package/dist/cdn/{77X5GFH7.js → Q2WQ7T7X.js} +2 -2
  237. package/dist/cdn/{J6VXDYLB.js → Q4CAV6BE.js} +1 -1
  238. package/dist/cdn/{JQW2KPJK.js → QEYD7M5P.js} +2 -2
  239. package/dist/cdn/{TGDEP6QV.js → QL3LWZTF.js} +2 -2
  240. package/dist/cdn/{NTTL23B5.js → QP5YBLLN.js} +2 -2
  241. package/dist/cdn/{RFWZ3BG4.js → QPKAXYA6.js} +2 -2
  242. package/dist/cdn/{GDCPRSCH.js → QQ272QFM.js} +2 -2
  243. package/dist/cdn/{C2RIOHYE.js → R3LWYP4G.js} +2 -2
  244. package/dist/cdn/{VJ2T3Q32.js → R3P3XMLO.js} +2 -2
  245. package/dist/cdn/{M3KP4ULO.js → R3RWAKZN.js} +2 -2
  246. package/dist/cdn/{CQ3N5OAF.js → R3WMYDWR.js} +2 -2
  247. package/dist/cdn/{LC53SJ67.js → RFS4CVZ4.js} +2 -2
  248. package/dist/cdn/{TUKEY4JX.js → RID7XYT6.js} +2 -2
  249. package/dist/cdn/{HIWCPXI4.js → RJMILIJO.js} +2 -2
  250. package/dist/cdn/{6CNOIOZQ.js → RL5RZQ3Q.js} +2 -2
  251. package/dist/cdn/{YLWCZLWX.js → RLHTV7UW.js} +2 -2
  252. package/dist/cdn/{2IAKNCRC.js → RLPYO4Q4.js} +2 -2
  253. package/dist/cdn/{NX6CRTAS.js → RMIDYV3B.js} +2 -2
  254. package/dist/cdn/{AU6YGJUT.js → RO3ES6UD.js} +2 -2
  255. package/dist/cdn/{JP6UDOIU.js → RRTOIEHS.js} +2 -2
  256. package/dist/cdn/{6HTNO2RE.js → RTTRLG4C.js} +2 -2
  257. package/dist/cdn/{GUFWLMXD.js → RUUYDJAI.js} +2 -2
  258. package/dist/cdn/{P5F6E4BB.js → RVOGF5GW.js} +2 -2
  259. package/dist/cdn/RXOWC3ZA.js +4 -0
  260. package/dist/cdn/{W6LHCK7P.js → RZ73JTAW.js} +2 -2
  261. package/dist/cdn/{RLCYPEXM.js → RZHJQZ7I.js} +1 -1
  262. package/dist/cdn/{KAJZSBBY.js → S3HCQON5.js} +2 -2
  263. package/dist/cdn/{NRA2XWTH.js → S4PR5QYT.js} +2 -2
  264. package/dist/cdn/{ERDVBBRX.js → S72CRXHN.js} +2 -2
  265. package/dist/cdn/{5CEVZOKP.js → SAEYOHYV.js} +2 -2
  266. package/dist/cdn/{QMT2B3M5.js → SDNXMJH4.js} +2 -2
  267. package/dist/cdn/{ZWBLEX27.js → T56TNAF3.js} +1 -1
  268. package/dist/cdn/{JTMPBZCY.js → TBMZRIU6.js} +2 -2
  269. package/dist/cdn/{2CJ5ETBI.js → TBZMPKUE.js} +2 -2
  270. package/dist/cdn/{NY4MAF55.js → THL4LIOE.js} +2 -2
  271. package/dist/cdn/{5CXNGEOT.js → TNSW4TRC.js} +2 -2
  272. package/dist/cdn/{G72TLXN2.js → TUKMTW4X.js} +2 -2
  273. package/dist/cdn/TYKBDMUD.js +4 -0
  274. package/dist/cdn/{7UAODYVA.js → TYMBB7GT.js} +2 -2
  275. package/dist/cdn/{VXR2PQEH.js → TZWGA55B.js} +2 -2
  276. package/dist/cdn/{7IB6W2XU.js → U3653AAK.js} +2 -2
  277. package/dist/cdn/{N5V5PPBQ.js → U4TLYOFC.js} +2 -2
  278. package/dist/cdn/{JOMW3W6X.js → U5K2UMRG.js} +2 -2
  279. package/dist/cdn/{RVQYDMMJ.js → U5QDQ3AE.js} +1 -1
  280. package/dist/cdn/{24IN4UPG.js → U5VJAOJI.js} +2 -2
  281. package/dist/cdn/{VTTSGBR5.js → U72STWZM.js} +1 -1
  282. package/dist/cdn/{WX2RTJ3T.js → UA6OB7Z3.js} +1 -1
  283. package/dist/cdn/{C4C7KF52.js → UB7EJKIT.js} +1 -1
  284. package/dist/cdn/{TIVFVKSV.js → UDBS4W2F.js} +2 -2
  285. package/dist/cdn/{UM5VAPJJ.js → UIXMR5OS.js} +2 -2
  286. package/dist/cdn/{TBBACRUK.js → UK3Y26QU.js} +1 -1
  287. package/dist/cdn/{V6P7MNAU.js → URCMK5PU.js} +2 -2
  288. package/dist/cdn/{OBI4A4AA.js → V6B7ICFF.js} +1 -1
  289. package/dist/cdn/{GONKLRTB.js → VCX42K34.js} +2 -2
  290. package/dist/cdn/{K5GHIYOF.js → VFQZQD4U.js} +2 -2
  291. package/dist/cdn/{E6ZJGJIL.js → VFY3MJZR.js} +2 -2
  292. package/dist/cdn/VI5526JP.js +4 -0
  293. package/dist/cdn/{T2KFMS3E.js → VIAGSUD6.js} +2 -2
  294. package/dist/cdn/{4KFYFEVG.js → VLXAVLHU.js} +2 -2
  295. package/dist/cdn/{6AY42FOZ.js → VWFBOHPK.js} +2 -2
  296. package/dist/cdn/{G6LTOZJF.js → VX47PIHG.js} +2 -2
  297. package/dist/cdn/{4MFPZMLB.js → VXBXLYF2.js} +1 -1
  298. package/dist/cdn/{MC5TSFO6.js → VXFBOPP3.js} +2 -2
  299. package/dist/cdn/{GORSVRD2.js → VYX3EYGU.js} +2 -2
  300. package/dist/cdn/VZYFBVG3.js +4 -0
  301. package/dist/cdn/{YKSQ7TEX.js → W5YSAGU7.js} +2 -2
  302. package/dist/cdn/{QZHTC427.js → WF3R5HTS.js} +2 -2
  303. package/dist/cdn/{GRW5JAFG.js → WGA7J4T3.js} +2 -2
  304. package/dist/cdn/{FSB6TM6Q.js → WIXYBKC6.js} +2 -2
  305. package/dist/cdn/{CTMUKS54.js → WKAPUSKT.js} +2 -2
  306. package/dist/cdn/{22GH5WFX.js → WKI33GD4.js} +2 -2
  307. package/dist/cdn/{AR6I4F7I.js → WO6O4V7P.js} +2 -2
  308. package/dist/cdn/{GK66FWMX.js → WYV3XXOH.js} +2 -2
  309. package/dist/cdn/{NK5C67VR.js → X2K7HTRW.js} +1 -1
  310. package/dist/cdn/{ARJYRYDO.js → X2SHXAEX.js} +2 -2
  311. package/dist/cdn/{UCYKJ3G4.js → X3UWVOUF.js} +2 -2
  312. package/dist/cdn/{JPLACREE.js → XBNBDIQF.js} +2 -2
  313. package/dist/cdn/{PLGFKWRR.js → XIR3LIO5.js} +2 -2
  314. package/dist/cdn/{OB4IBA7J.js → XKOHRGWS.js} +2 -2
  315. package/dist/cdn/{E6VAH377.js → XN4ZLYC3.js} +2 -2
  316. package/dist/cdn/{FC4NR45A.js → XWYQHMRJ.js} +2 -2
  317. package/dist/cdn/{CFTL75CW.js → XYK3ZJ74.js} +2 -2
  318. package/dist/cdn/{BXPMHWOX.js → Y4O7BEH5.js} +2 -2
  319. package/dist/cdn/{M7RJNNBQ.js → YC3C5VLU.js} +2 -2
  320. package/dist/cdn/{3MXNBCEX.js → YDNDI3GC.js} +2 -2
  321. package/dist/cdn/{O7AV7GPK.js → YGN4DTLR.js} +2 -2
  322. package/dist/cdn/{EGAV5W7I.js → YKZ4EIP4.js} +2 -2
  323. package/dist/cdn/{XO3YBGIL.js → YMEMNG2X.js} +2 -2
  324. package/dist/cdn/{4KDH67ME.js → YN7MAH2I.js} +1 -1
  325. package/dist/cdn/{AXNUZSJ6.js → YNQH4WHK.js} +2 -2
  326. package/dist/cdn/{4VJV22PL.js → YT326XBB.js} +2 -2
  327. package/dist/cdn/{WUZDDPQU.js → Z6GXQBPV.js} +2 -2
  328. package/dist/cdn/{4XUHKCM3.js → ZIMI5N7B.js} +2 -2
  329. package/dist/cdn/{VYKWK2BX.js → ZP7YO34W.js} +2 -2
  330. package/dist/cdn/{DHZ5UA72.js → ZPINCTCI.js} +1 -1
  331. package/dist/cdn/{5MFTYGYS.js → ZQOWCQMD.js} +2 -2
  332. package/dist/cdn/{NMTVBRAS.js → ZV5UJA56.js} +2 -2
  333. package/dist/cdn/{BGAY3YMT.js → ZVYEXCFN.js} +2 -2
  334. package/dist/cdn/{FT22BE2Q.js → ZX3GJIWV.js} +2 -2
  335. package/dist/cdn/index.js +2 -2
  336. package/dist/chunks/Auth.js +1 -2
  337. package/dist/chunks/Auth.js.map +1 -1
  338. package/dist/chunks/appConfig.js +1 -1
  339. package/dist/chunks/cardFetchingUtils.js +2 -15
  340. package/dist/chunks/cardFetchingUtils.js.map +1 -1
  341. package/dist/chunks/cardsHelpers.js +1 -1
  342. package/dist/chunks/common.js +1 -1
  343. package/dist/chunks/deployAppContexts.js +1 -1
  344. package/dist/chunks/downloadUtils.js +1 -1
  345. package/dist/chunks/getItemIcon.js +1 -1
  346. package/dist/chunks/helpers.js +1 -1
  347. package/dist/chunks/interfaces.js +1 -1
  348. package/dist/chunks/mapViewUtils.js +1 -1
  349. package/dist/chunks/pciUtils.js +1 -1
  350. package/dist/chunks/popupUtils.js +1 -1
  351. package/dist/chunks/publicNotificationContext.js +1 -1
  352. package/dist/chunks/queryUtils.js +1 -1
  353. package/dist/chunks/runtime.js +1 -1
  354. package/dist/chunks/solutions-deploy-app-nav.js +1 -1
  355. package/dist/chunks/useT9n.js +1 -1
  356. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  357. package/dist/components/buffer-tools/customElement.js +1 -1
  358. package/dist/components/card-manager/customElement.js +1 -1
  359. package/dist/components/consent-manager/customElement.js +1 -1
  360. package/dist/components/create-feature/customElement.js +1 -1
  361. package/dist/components/create-related-feature/customElement.js +1 -1
  362. package/dist/components/crowdsource-manager/customElement.js +1 -1
  363. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  364. package/dist/components/deduct-calculator/customElement.js +1 -1
  365. package/dist/components/delete-button/customElement.js +1 -1
  366. package/dist/components/delete-dialog/customElement.js +1 -1
  367. package/dist/components/edit-card/customElement.js +1 -1
  368. package/dist/components/feature-details/customElement.js +1 -1
  369. package/dist/components/feature-list/customElement.js +1 -1
  370. package/dist/components/field-selection/customElement.js +1 -1
  371. package/dist/components/info-card/customElement.js +1 -1
  372. package/dist/components/layer-list/customElement.js +1 -1
  373. package/dist/components/layer-table/customElement.js +1 -1
  374. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  375. package/dist/components/map-card/customElement.js +1 -1
  376. package/dist/components/map-draw-tools/customElement.js +1 -1
  377. package/dist/components/map-floor-filter/customElement.js +1 -1
  378. package/dist/components/map-fullscreen/customElement.js +1 -1
  379. package/dist/components/map-layer-picker/customElement.js +1 -1
  380. package/dist/components/map-legend/customElement.js +1 -1
  381. package/dist/components/map-picker/customElement.js +1 -1
  382. package/dist/components/map-search/customElement.js +1 -1
  383. package/dist/components/map-select-tools/customElement.js +1 -1
  384. package/dist/components/map-tools/customElement.js +1 -1
  385. package/dist/components/pci-calculator/customElement.js +1 -1
  386. package/dist/components/pdf-download/customElement.js +1 -1
  387. package/dist/components/public-notification/customElement.js +1 -1
  388. package/dist/components/refine-selection/customElement.js +1 -1
  389. package/dist/components/selection-tool/customElement.js +1 -1
  390. package/dist/components/solution-configure-titles/customElement.js +1 -1
  391. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  392. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  393. package/dist/components/solution-deployed-card/customElement.js +1 -1
  394. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  395. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  396. package/dist/components/solution-details-card/customElement.js +1 -1
  397. package/dist/components/solution-details-panel/customElement.js +1 -1
  398. package/dist/components/solution-item-accordion/customElement.js +1 -1
  399. package/dist/components/solution-item-diagram/customElement.js +1 -1
  400. package/dist/components/solution-item-icon/customElement.js +1 -1
  401. package/dist/components/solution-resource-card/customElement.js +1 -1
  402. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  403. package/dist/components/solution-social-share/customElement.js +1 -1
  404. package/dist/components/solutions-all-panel/customElement.js +14 -21
  405. package/dist/components/solutions-all-panel/customElement.js.map +1 -1
  406. package/dist/components/solutions-all-shell/customElement.js +1 -1
  407. package/dist/components/solutions-deploy-app/customElement.js +14 -21
  408. package/dist/components/solutions-deploy-app/customElement.js.map +1 -1
  409. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  410. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  411. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  412. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  413. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  414. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  415. package/dist/components/solutions-resources/customElement.js +1 -1
  416. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  417. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  418. package/dist/docs/api.json +1 -1
  419. package/dist/docs/docs.json +1 -1
  420. package/dist/docs/web-types.json +1 -1
  421. package/dist/index.js +1 -1
  422. package/dist/loader.js +1 -1
  423. package/dist/utils/CardsFetcher.d.ts +1 -1
  424. package/package.json +1 -1
  425. package/dist/cdn/2ZAI2L2Z.js +0 -4
  426. package/dist/cdn/3Q7MPYBN.js +0 -4
  427. package/dist/cdn/3TTOX4BB.js +0 -4
  428. package/dist/cdn/4VTDE7WM.js +0 -4
  429. package/dist/cdn/7YYWVE2S.js +0 -4
  430. package/dist/cdn/CGZFXEML.js +0 -4
  431. package/dist/cdn/F2RRVGZ2.js +0 -4
  432. package/dist/cdn/FS4FOH3D.js +0 -4
  433. package/dist/cdn/GGIS4CC6.js +0 -4
  434. package/dist/cdn/HDKINGQW.js +0 -4
  435. package/dist/cdn/HM4AHTQA.js +0 -4
  436. package/dist/cdn/JXNGGIST.js +0 -4
  437. package/dist/cdn/KST6M5H6.js +0 -4
  438. package/dist/cdn/OY6SET3T.js +0 -4
  439. package/dist/cdn/Q5VHOWDO.js +0 -4
  440. package/dist/cdn/U74L7VJM.js +0 -4
  441. package/dist/cdn/UTCZEP45.js +0 -4
  442. package/dist/cdn/UUIEPEEK.js +0 -4
  443. package/dist/cdn/WEOL6RSK.js +0 -99
  444. package/dist/cdn/WGEGKLDT.js +0 -4
  445. package/dist/cdn/WGRUBU2Y.js +0 -4
  446. package/dist/cdn/YXKSGCHP.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as y}from"./JNZZAE7R.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{b}from"./ZMOPA7LL.js";import{E as n,F as h,G as w,I as a,h as f,i as r,l as m}from"./VTTSGBR5.js";import"./OBI4A4AA.js";export default $arcgis.t(([$,E])=>{var x=f`/** @license
3
+ v1.2.0-next.62 */
4
+ import{a as y}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b}from"./HP5QJTNI.js";import{E as n,F as h,G as w,I as a,h as f,i as r,l as m}from"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([$,E])=>{var x=f`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import d from"./E5TKEWBV.js";import c from"./HHTFAIXB.js";import b from"./AGA3QECA.js";import a from"./KTC723NZ.js";import"./JOKQH5HY.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import"./HP5QJTNI.js";import"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([,,,a])=>{return a},a,b,c,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.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
3
+ v1.2.0-next.62 */
4
4
  export default $arcgis.t(([i])=>{async function J(o,y,a){let e=y?.layer;if(!o)return e?.effect?e.effect:e?.featureEffect?a==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let n=new i({includedEffect:o}).toJSON().includedEffect,u=n,s=e.effect,h=e.featureEffect,l=null;h?l=a==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:l=s;let p=l?n:null;if(!p)return i.fromJSON({includedEffect:n}).includedEffect;let f=[...p];return u&&u.forEach(d=>{f.forEach(t=>{let{value:r}=t;if(r)r.forEach((E,c)=>{E.type===d.type?r[c]=d:!t.value.find(m=>m.type===u[0].type)&&(t.value=[...t.value,...u])});else{let E=!f.find(c=>c.type===t.type);!f.find(c=>c.type===d.type)&&(f=[...f,d]),E&&(f=[...f,t])}})}),i.fromJSON({includedEffect:f}).includedEffect}return J},"layers/support/FeatureEffect")
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as o}from"./JNZZAE7R.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{b as n}from"./ZMOPA7LL.js";import{G as r,K as e,h as s,i as t,q as a}from"./VTTSGBR5.js";import"./OBI4A4AA.js";var c=s`/** @license
3
+ v1.2.0-next.62 */
4
+ import{a as o}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b as n}from"./HP5QJTNI.js";import{G as r,K as e,h as s,i as t,q as a}from"./U72STWZM.js";import"./V6B7ICFF.js";var c=s`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import c from"./UDBS4W2F.js";import"./N7B4ODMG.js";import b from"./3GS5C3NN.js";import a from"./KTC723NZ.js";import"./JOKQH5HY.js";import"./6IIEGCHC.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import"./HP5QJTNI.js";import"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import f from"./3HWVOIZJ.js";import e from"./E5TKEWBV.js";import d from"./ERMUBMJN.js";import"./YN7MAH2I.js";import"./B34U5BOQ.js";import c from"./HHTFAIXB.js";import b from"./AGA3QECA.js";import"./GEIREK7Z.js";import a from"./KTC723NZ.js";import"./JOKQH5HY.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import"./HP5QJTNI.js";import"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as h}from"./JNZZAE7R.js";import{b as p}from"./ZMOPA7LL.js";import{G as d,h as a,i as l,l as c,q as n}from"./VTTSGBR5.js";var u=a`/** @license
3
+ v1.2.0-next.62 */
4
+ import{a as h}from"./P6L7EUVQ.js";import{b as p}from"./HP5QJTNI.js";import{G as d,h as a,i as l,l as c,q as n}from"./U72STWZM.js";var u=a`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,99 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import e from"./VI5526JP.js";import c from"./VX47PIHG.js";import b from"./AGA3QECA.js";import a from"./KTC723NZ.js";import{b as w,d as C}from"./JOKQH5HY.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import{a as S}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b as f}from"./HP5QJTNI.js";import{G as y,h as m,i as n,j as _,q as d}from"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([{m:T,n:x,p:v,q:h},,{c:I},{a:u,b:L}])=>{var D=m`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+ calcite-panel {
21
+ width: 100%;
22
+ height: 100%;
23
+ --calcite-panel-background-color: var(--calcite-color-foreground-2);
24
+ }
25
+
26
+ .card-group {
27
+ overflow: hidden;
28
+ padding: 0.2rem var(--calcite-spacing-md) var(--calcite-spacing-md);
29
+ }
30
+
31
+ solution-details-card{
32
+ width: calc(25% - 0.6rem);
33
+ }
34
+
35
+ @media (max-width: 1234px) {
36
+ solution-details-card {
37
+ width: calc(33.333% - 0.6rem);
38
+ }
39
+ }
40
+
41
+ @media (max-width: 1010px) {
42
+ solution-details-card {
43
+ width: calc(50% - 0.6rem);
44
+ }
45
+ }
46
+
47
+ /* We go back to 3 cards below 800 because the filter tree on the left disappears */
48
+ /* See the solutions-all-shell.css for the filter disappearing selector */
49
+ @media (max-width: 800px) {
50
+ solution-details-card {
51
+ width: calc(33.33% - 0.6rem);
52
+ }
53
+ }
54
+
55
+ @media (max-width: 680px) {
56
+ solution-details-card {
57
+ width: calc(50% - 0.6rem);
58
+ }
59
+ }
60
+
61
+ @media (max-width: 440px) {
62
+ solution-details-card {
63
+ width: calc(100% - 0.75rem);
64
+ }
65
+ }
66
+
67
+ .solutions-briefcase {
68
+ margin: auto;
69
+ padding-top: var(--calcite-spacing-xxxl);
70
+ }
71
+
72
+ .text-center {
73
+ text-align: center;
74
+ }
75
+
76
+ .leader-1 {
77
+ margin-top: var(--calcite-spacing-xxl);
78
+ }
79
+
80
+ .trailer-1 {
81
+ margin-bottom: var(--calcite-spacing-xxl);
82
+ }
83
+
84
+ .warning-text {
85
+ max-width: 35em;
86
+ margin-left: auto;
87
+ margin-right: auto;
88
+ font-size: var(--calcite-font-size-md);
89
+ }
90
+
91
+ .no-solutions {
92
+ display: flex;
93
+ flex-direction: column;
94
+ justify-content: center;
95
+ width: 100%;
96
+ height: 100%;
97
+ transform: translateY(50%);
98
+ }
99
+ `,b=5,g=class extends y{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=S({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${h}`,this._allCards=[],this._baseAgoTerms=h,this._categories=[],this._configContextConsumer=w({context:C,subscribe:!0,callback:async e=>{e&&await this._loadUpdateProcedures()}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this.cardsFetched=d(),this.allCardsFetched=d(),this.searchTermSet=d(),this.sortTypeSet=d(),this.detailsCardSelected=d(),this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=b,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=b,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:[16,{},{state:!0}],_isLoading:[16,{},{state:!0}],_modifiedCheckTry:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=D}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){return this._isLoading||this._cards.length?n`<calcite-panel>${this._isLoading?n`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:n`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:n`<div class="no-solutions">${this._getMeridianSearch()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.noSolutionsFound}</div></div>`}_renderCards(){return this._cards.map(e=>n`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(this._configContextConsumer.value){this._isLoading=!0;let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},this._configContextConsumer.value?.primarySolutionsGroupId,{num:1e3}),t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((a,l)=>a.categories.includes(s)&&!l.categories.includes(s)?-1:!a.categories.includes(s)&&l.categories.includes(s)?1:a.categories.includes(s)&&l.categories.includes(s)?a.categories.length-l.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let o of t){let r=s.get(o.deployCommonId),c=Number(o.deployVersion);(!r||c>r)&&s.set(o.deployCommonId,c)}let a=this._deployedSolutions.cards.filter(o=>{let r=s.get(o.deployCommonId);return r!==void 0&&Number(o.deployVersion)>=r}),l=new Set(a.map(o=>o.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(o=>!l.has(o))),t.sort((o,r)=>{let c=this._relatedSolutions.has(o.deployCommonId),p=this._relatedSolutions.has(r.deployCommonId);return c&&!p?-1:!c&&p?1:0})}let i=t.map(s=>{let a=s.categories.indexOf("/Categories/New Release")>-1,l=s.categories.indexOf("/Categories/Updated")>-1,o=!1,r=!0;return this._deployedSolutions&&(o=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s)),s.chip=a?"new":l?"updated":o&&r?"deployed":"none",s.supportReuse=o?!!(o&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=I(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(i.length),this._isLoading=!1,i}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){this._isLoading=!0;let e=this._configContextConsumer.value;this._cardsFetcher=new u(e.locale,e.orgUrl,e.portalUrl),this._cardsFetcherDeployed=new u(e.locale,e.orgUrl,e.portalUrl),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let e=this._configContextConsumer.value.authentication,t=this._configContextConsumer.value.userSession;if(e&&t&&e.IsSignedIn){let i=await L(e,t,this._cardsFetcher,this._cardsFetcherDeployed,v,"created");if(i){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===i?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=i}}}_getMeridianSearch(){return n`<div class="solutions-briefcase"><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${_`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let i=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${i}/${s}`)}else this._categories.push(`/Categories/${i}`)}})}_getDomainValue(e){return x[e]}_getIndustryValue(e){return e==="AEC"?"AEC":T[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(i=>i.includes("solutionid")&&i.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(i=>i?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}_lookupSolutionById(e){let t=this._cards.filter(i=>i.typeKeywords.includes(e));t.length>0&&this.detailsCardSelected.emit(t[0])}};f("solutions-all-panel",g);return g},a,b,c,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.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import"./OBI4A4AA.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.2.0-next.62 */
4
+ import"./V6B7ICFF.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};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as E}from"./FC4NR45A.js";import{o as m,p as h,s as v}from"./VTTSGBR5.js";export default $arcgis.t(([{on:B,watch:f},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var u=class extends v{constructor(t,n){super(t),this.Y=new Map,this.A=void 0,this.#o=x();let e=this;e.#e=n,e.Z(),e.setProvisionalExports(P(t,new WeakRef(e),t.M.length-1,e.instance,e.Y),!1),m(t,o=>{if(o){let c=f(()=>t[o],r=>{if(r===e.instance)return;let i=e.instance;e.exports=r,e.instance=r,e.Y.forEach((a,l)=>t.requestUpdate(a,i[l])),e.#t&&i.destroy(),e.#t=!1},{sync:!0});e.onDestroy(c.remove)}},e.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(t){super.exports=t,this.#o.notify()}Z(){let t=this;t.instance="prototype"in t.#e&&"declaredClass"in t.#e.prototype?new t.#e:t.#e(),t.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},Y=E(u),P=(s,t,n,e,o)=>new Proxy(e,{get:(c,r)=>{let i=c[r];if(typeof r=="symbol"||o.has(r))return i;let a=s.M[n];return a.A=r,h(s,l=>{if(a.A=void 0,l!==void 0){let p=l.key;o.set(r,p);let d=s.constructor.getPropertyOptions(p),y=r!==p&&p.toLowerCase().includes("disable");k(t,d,r,p,y),d.i===void 0&&A(d,n,r,y)}},i)}}),k=(s,t,n,e,o,c)=>c=f(()=>{let r=s.deref();return r===void 0||r.component.manager.destroyed?c=c.remove():r.exports[n]},(r,i)=>{if(!c)return;s.deref().component?.requestUpdate(e,o?!i:i),t.c=!1},{sync:!0}),A=(s,t,n,e)=>{s.d.get=function(){let o=this.M[t]?.exports[n];return e?!o:o},s.d.set=function(o){let c=this.M[t];c.A!==n&&(c.exports[n]=e?!o:o)}};var O=s=>{let t=class extends g{},n=typeof s=="function"?s():s,e=Object.getOwnPropertyDescriptors(n);for(let[c,r]of Object.entries(e))Object.defineProperty(t.prototype,c,r),C()(t.prototype,c);let o=b()(t);return new o},T=s=>{let t=typeof s=="function"?s():s,n=O(t);return{state:n,get:e=>n[e],set:(e,o)=>n.set(e,o),onChange:(e,o)=>f(()=>n[e],c=>o(c),{sync:!0}).remove}};return T},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
3
+ v1.2.0-next.62 */
4
+ import{a as E}from"./XWYQHMRJ.js";import{o as m,p as h,s as v}from"./U72STWZM.js";export default $arcgis.t(([{on:B,watch:f},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var u=class extends v{constructor(t,n){super(t),this.Y=new Map,this.A=void 0,this.#o=x();let e=this;e.#e=n,e.Z(),e.setProvisionalExports(P(t,new WeakRef(e),t.M.length-1,e.instance,e.Y),!1),m(t,o=>{if(o){let c=f(()=>t[o],r=>{if(r===e.instance)return;let i=e.instance;e.exports=r,e.instance=r,e.Y.forEach((a,l)=>t.requestUpdate(a,i[l])),e.#t&&i.destroy(),e.#t=!1},{sync:!0});e.onDestroy(c.remove)}},e.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(t){super.exports=t,this.#o.notify()}Z(){let t=this;t.instance="prototype"in t.#e&&"declaredClass"in t.#e.prototype?new t.#e:t.#e(),t.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},Y=E(u),P=(s,t,n,e,o)=>new Proxy(e,{get:(c,r)=>{let i=c[r];if(typeof r=="symbol"||o.has(r))return i;let a=s.M[n];return a.A=r,h(s,l=>{if(a.A=void 0,l!==void 0){let p=l.key;o.set(r,p);let d=s.constructor.getPropertyOptions(p),y=r!==p&&p.toLowerCase().includes("disable");k(t,d,r,p,y),d.i===void 0&&A(d,n,r,y)}},i)}}),k=(s,t,n,e,o,c)=>c=f(()=>{let r=s.deref();return r===void 0||r.component.manager.destroyed?c=c.remove():r.exports[n]},(r,i)=>{if(!c)return;s.deref().component?.requestUpdate(e,o?!i:i),t.c=!1},{sync:!0}),A=(s,t,n,e)=>{s.d.get=function(){let o=this.M[t]?.exports[n];return e?!o:o},s.d.set=function(o){let c=this.M[t];c.A!==n&&(c.exports[n]=e?!o:o)}};var O=s=>{let t=class extends g{},n=typeof s=="function"?s():s,e=Object.getOwnPropertyDescriptors(n);for(let[c,r]of Object.entries(e))Object.defineProperty(t.prototype,c,r),C()(t.prototype,c);let o=b()(t);return new o},T=s=>{let t=typeof s=="function"?s():s,n=O(t);return{state:n,get:e=>n[e],set:(e,o)=>n.set(e,o),onChange:(e,o)=>f(()=>n[e],c=>o(c),{sync:!0}).remove}};return T},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as y}from"./YHKV4IMA.js";import{a as d}from"./ZIBWJVYK.js";import{a as E}from"./K5GHIYOF.js";import{a as s}from"./N3WXY7EJ.js";import{a as n}from"./YCKVHLNK.js";import{a}from"./4N5CTUVM.js";import{a as l}from"./ENLS3ON7.js";import{a as e}from"./CTCPMABN.js";import{a as v}from"./ZWBLEX27.js";import{a as r}from"./P5F6E4BB.js";import{a as t}from"./CFTL75CW.js";import{a as i}from"./NKNXRQAV.js";import{a as p}from"./4B45SS3L.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
3
+ v1.2.0-next.62 */
4
+ import{a as y}from"./ET3OO6ME.js";import{a as d}from"./E4CBAFDM.js";import{a as E}from"./VFQZQD4U.js";import{a as s}from"./LFZ3JTH2.js";import{a as n}from"./CNVT4KW2.js";import{a}from"./LF6GOWP7.js";import{a as l}from"./K5PP5PS3.js";import{a as e}from"./KG6ZXBS3.js";import{a as v}from"./T56TNAF3.js";import{a as r}from"./RVOGF5GW.js";import{a as t}from"./XYK3ZJ74.js";import{a as i}from"./CUEWTRE6.js";import{a as p}from"./DADOAOGK.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import{a}from"./B34U5BOQ.js";import"./GEIREK7Z.js";import"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import"./HP5QJTNI.js";import"./U72STWZM.js";import"./V6B7ICFF.js";export{a as SolutionDeployingDialog};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import a from"./H4MLUVTV.js";import{e as l}from"./XZQZZC3C.js";export default $arcgis.t(([{i:f}])=>{async function b(a,e){let t;return await a.when(()=>{t=a.map.allLayers.toArray().reduce((s,n)=>((n.type==="feature"||n?.type==="subtype-group")&&(s[n.id]={name:n.title,supportsUpdate:void 0}),s),{})}),c(e,t,a)}async function m(a,e){let t;return await a.when(()=>{t=a.map.allTables.toArray().reduce((s,n)=>(s[n.id]={name:n.title,supportsUpdate:void 0},s),{})}),c(e,t,a)}async function c(a,e,t){if(a){let s={},n=Object.keys(e);for(let i=0;i<n.length;i++)try{let r=n[i],o=await y(t,r);await o.load(),await o.when(),s[r]={name:e[r].name,supportsUpdate:o.editingEnabled&&o.capabilities?.operations.supportsUpdate}}catch(r){console.log(r);continue}return s}else return e}async function p(a,e){let t=await y(a,e);return t?await a.whenLayerView(t):void 0}async function y(a,e){let t=[];return await a?.when(()=>{t=[...a.map.allLayers.toArray(),...a.map.allTables.toArray()].filter(s=>s.id===e)}),t.length>0?t[0]:void 0}async function T(a){let e=a.map.allLayers.filter(s=>s.type==="feature").toArray().map(s=>s),t=[];return await a.when(()=>{t=e.map(s=>a.whenLayerView(s))}),await Promise.allSettled(t),e}async function I(a){let e=a.map.allTables.toArray(),t=[];return await a.when(()=>{t=e.map(s=>s.load())}),await Promise.allSettled(t),e}async function A(a,e,t,s=!1,n=0){return s&&(await h(a,e,t,!1,void 0,n),await new Promise(i=>setTimeout(i,1e3))),e.highlight(a)}async function L(a){let e=d(a);return Object.keys(e).reduce((t,s)=>{let n=e[s];return t.push(n.layerView.highlight(n.ids)),t},[])}function d(a){return a.reduce((e,t)=>{let s=t.layerView,n=s?.layer.id;return n&&Object.keys(e).indexOf(n)>-1?e[n].ids=[...new Set([...t.selectedIds,...e[n].ids])]:n&&(e[n]={layerView:s,ids:t.selectedIds}),t.workflowType===f.REFINE&&Object.keys(t.refineInfos).forEach(i=>{let r=t.refineInfos[i];Object.keys(e).indexOf(i)>-1&&(e[i].ids=[...new Set([...r.addIds,...e[i].ids])],e[i].ids=e[i].ids.filter(o=>r.removeIds.indexOf(o)<0))}),e},{})}async function u(a,e,t){let s={objectIds:a};e.featureEffect={...t,filter:s},setTimeout(()=>{e.featureEffect=void 0},1300)}async function h(a,e,t,s=!0,n,i=0){let r=await l(a,e.layer),o={target:r.extent};r.count===1&&e.layer.geometryType==="point"&&i&&(o.scale=i),await t.goTo(o),s&&await u(a,e,n)}return{a:b,b:m,c:p,d:y,e:T,f:I,g:A,h:L,i:d,j:h}},a)
3
+ v1.2.0-next.62 */
4
+ import a from"./KTC723NZ.js";import{e as l}from"./6IIEGCHC.js";export default $arcgis.t(([{i:f}])=>{async function b(a,e){let t;return await a.when(()=>{t=a.map.allLayers.toArray().reduce((s,n)=>((n.type==="feature"||n?.type==="subtype-group")&&(s[n.id]={name:n.title,supportsUpdate:void 0}),s),{})}),c(e,t,a)}async function m(a,e){let t;return await a.when(()=>{t=a.map.allTables.toArray().reduce((s,n)=>(s[n.id]={name:n.title,supportsUpdate:void 0},s),{})}),c(e,t,a)}async function c(a,e,t){if(a){let s={},n=Object.keys(e);for(let i=0;i<n.length;i++)try{let r=n[i],o=await y(t,r);await o.load(),await o.when(),s[r]={name:e[r].name,supportsUpdate:o.editingEnabled&&o.capabilities?.operations.supportsUpdate}}catch(r){console.log(r);continue}return s}else return e}async function p(a,e){let t=await y(a,e);return t?await a.whenLayerView(t):void 0}async function y(a,e){let t=[];return await a?.when(()=>{t=[...a.map.allLayers.toArray(),...a.map.allTables.toArray()].filter(s=>s.id===e)}),t.length>0?t[0]:void 0}async function T(a){let e=a.map.allLayers.filter(s=>s.type==="feature").toArray().map(s=>s),t=[];return await a.when(()=>{t=e.map(s=>a.whenLayerView(s))}),await Promise.allSettled(t),e}async function I(a){let e=a.map.allTables.toArray(),t=[];return await a.when(()=>{t=e.map(s=>s.load())}),await Promise.allSettled(t),e}async function A(a,e,t,s=!1,n=0){return s&&(await h(a,e,t,!1,void 0,n),await new Promise(i=>setTimeout(i,1e3))),e.highlight(a)}async function L(a){let e=d(a);return Object.keys(e).reduce((t,s)=>{let n=e[s];return t.push(n.layerView.highlight(n.ids)),t},[])}function d(a){return a.reduce((e,t)=>{let s=t.layerView,n=s?.layer.id;return n&&Object.keys(e).indexOf(n)>-1?e[n].ids=[...new Set([...t.selectedIds,...e[n].ids])]:n&&(e[n]={layerView:s,ids:t.selectedIds}),t.workflowType===f.REFINE&&Object.keys(t.refineInfos).forEach(i=>{let r=t.refineInfos[i];Object.keys(e).indexOf(i)>-1&&(e[i].ids=[...new Set([...r.addIds,...e[i].ids])],e[i].ids=e[i].ids.filter(o=>r.removeIds.indexOf(o)<0))}),e},{})}async function u(a,e,t){let s={objectIds:a};e.featureEffect={...t,filter:s},setTimeout(()=>{e.featureEffect=void 0},1300)}async function h(a,e,t,s=!0,n,i=0){let r=await l(a,e.layer),o={target:r.extent};r.count===1&&e.layer.geometryType==="point"&&i&&(o.scale=i),await t.goTo(o),s&&await u(a,e,n)}return{a:b,b:m,c:p,d:y,e:T,f:I,g:A,h:L,i:d,j:h}},a)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import e from"./V5T2QK5Z.js";import b from"./BTLCSZS6.js";import a from"./H4MLUVTV.js";import{b as I,d as S}from"./WYHW2ASX.js";import{J as u,L as v,M as R,p as g,ra as L}from"./FNJ2SV5I.js";import{k as M}from"./V6P7MNAU.js";import{a as k}from"./JNZZAE7R.js";import{b as $}from"./ZMOPA7LL.js";import{E as c,F as d,G as x,I as h,J as w,K as _,h as y,i as s,q as m}from"./VTTSGBR5.js";export default $arcgis.t(([{b:A,d:E,s:f},{a:P,b:C},{a:T}])=>{var O=y`/** @license
3
+ v1.2.0-next.62 */
4
+ import e from"./ERMUBMJN.js";import b from"./HHTFAIXB.js";import a from"./KTC723NZ.js";import{b as I,d as S}from"./JOKQH5HY.js";import{J as u,L as v,M as R,p as g,ra as L}from"./HDZR66W4.js";import{k as M}from"./URCMK5PU.js";import{a as k}from"./P6L7EUVQ.js";import{b as $}from"./HP5QJTNI.js";import{E as c,F as d,G as x,I as h,J as w,K as _,h as y,i as s,q as m}from"./U72STWZM.js";export default $arcgis.t(([{b:A,d:E,s:f},{a:P,b:C},{a:T}])=>{var O=y`/** @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.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as S}from"./WQZZSYO5.js";import{a as x}from"./NCOWGV7K.js";import{a as L}from"./JISBULOQ.js";import{b as I}from"./7AEU6P43.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{E as $,F as v,G as k,I as p,h as F,i as l,l as h,q as b}from"./VTTSGBR5.js";import"./OBI4A4AA.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
3
+ v1.2.0-next.62 */
4
+ import{a as S}from"./43XNXLYA.js";import{a as x}from"./GEIREK7Z.js";import{a as L}from"./HV67SLIL.js";import{b as I}from"./PTLVWRGF.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{E as $,F as v,G as k,I as p,h as F,i as l,l as h,q as b}from"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
3
+ v1.2.0-next.62 */
4
4
  var s="calcite-mode-light",c="calcite-mode-dark";function a(e){let t=e?.closest(`.${c}, .${s}`);return t==null?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t?.classList.contains(c)?"dark":"light"}export{a};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.62 */
4
+ import c from"./5D5B7JGO.js";import b from"./GUNQEMBA.js";import"./YN7MAH2I.js";import"./ASIRLW76.js";import"./GEIREK7Z.js";import a from"./KTC723NZ.js";import"./JOKQH5HY.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import"./HP5QJTNI.js";import"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([,,a])=>{return a},a,b,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.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as F}from"./EJK6FW2Z.js";import{a as Y}from"./LC53SJ67.js";import{a as w}from"./GONKLRTB.js";import{a as J}from"./L6CDXESS.js";import{a as W,b as H}from"./2QT4FWZI.js";import{b as h,c as E}from"./UM5VAPJJ.js";import"./A6EVVFF5.js";import{d as N,g as B,h as V,i as X}from"./N2EZQGSH.js";import{m as u,p as T}from"./AU6YGJUT.js";import"./UCYKJ3G4.js";import"./TZLKWPKE.js";import{b as S,d as C,f as R}from"./UYBRDZJB.js";import"./ZLSRPXWT.js";import{i as j}from"./ZGSIGKHE.js";import"./PWZXYVX5.js";import{a as m,c as M,e as P,i as l}from"./T7D3VOZH.js";import"./NK5C67VR.js";import"./TPC7NEBD.js";import"./RJ4NCL2V.js";import{a as A,b as O}from"./GRW5JAFG.js";import{s as L}from"./V6P7MNAU.js";import"./WX2RTJ3T.js";import"./K6NKAZBD.js";import{a as f}from"./VGEFJTQ7.js";import"./F2O4WKM6.js";import"./C4C7KF52.js";import{b as g}from"./RVQYDMMJ.js";import"./OBI4A4AA.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
3
+ v1.2.0-next.62 */
4
+ import{a as F}from"./NDRCKJQN.js";import{a as Y}from"./RFS4CVZ4.js";import{a as w}from"./VCX42K34.js";import{a as J}from"./KDYFZUTB.js";import{a as W,b as H}from"./IFZPP6SX.js";import{b as h,c as E}from"./UIXMR5OS.js";import"./IJQDG7IP.js";import{d as N,g as B,h as V,i as X}from"./JHLUVV4N.js";import{m as u,p as T}from"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import{b as S,d as C,f as R}from"./FTRDBT4T.js";import"./NH3EQDO5.js";import{i as j}from"./GQ2XFFMS.js";import"./JC7RDCAK.js";import{a as m,c as M,e as P,i as l}from"./63OPMGEP.js";import"./X2K7HTRW.js";import"./726JATVV.js";import"./AMPKI3ZS.js";import{a as A,b as O}from"./WGA7J4T3.js";import{s as L}from"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import{a as f}from"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import{b as g}from"./U5QDQ3AE.js";import"./V6B7ICFF.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import c from"./DAU34542.js";import a from"./LHRZ7IBA.js";import"./46UPVPEV.js";import"./TBBACRUK.js";import"./XZQZZC3C.js";import"./FNJ2SV5I.js";import"./RKIQ5DUF.js";import"./LC53SJ67.js";import"./N2EZQGSH.js";import"./AU6YGJUT.js";import"./UCYKJ3G4.js";import"./TZLKWPKE.js";import"./UYBRDZJB.js";import"./ZGSIGKHE.js";import"./PWZXYVX5.js";import"./T7D3VOZH.js";import"./NK5C67VR.js";import"./RJ4NCL2V.js";import"./GRW5JAFG.js";import"./V6P7MNAU.js";import"./WX2RTJ3T.js";import"./K6NKAZBD.js";import"./VGEFJTQ7.js";import"./F2O4WKM6.js";import"./C4C7KF52.js";import{a as m}from"./JNZZAE7R.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{b as w}from"./ZMOPA7LL.js";import{G as g,I as i,J as b,h as u,i as s,l as _,q as l,t as f}from"./VTTSGBR5.js";import"./OBI4A4AA.js";export default $arcgis.t(([E,o,,y])=>{var F=u`@layer{
3
+ v1.2.0-next.62 */
4
+ import c from"./OUAROGMB.js";import a from"./MCTC2Q7E.js";import"./P6SI3ZH2.js";import"./UK3Y26QU.js";import"./6IIEGCHC.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import{a as m}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b as w}from"./HP5QJTNI.js";import{G as g,I as i,J as b,h as u,i as s,l as _,q as l,t as f}from"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([E,o,,y])=>{var F=u`@layer{
5
5
  /** @license
6
6
  * Copyright 2025 Esri
7
7
  *
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import"./OBI4A4AA.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",s="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",i="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",m="The service name contains one or more invalid characters.",c="Saving the temporary layer as a hosted feature layer did not complete.",h="Failed to get key properties.",u="Failed to load the layer.",y="Layer is not available.",p="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",f="${ dataPath } must not have fewer than ${ limit } items.",g="${ dataPath } must not be shorter than ${ limit } characters.",E="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",P="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",F="Failed to log in to portal.",b="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",k="The output name contains one or more invalid characters. <a href='${docLink}' target='_blank'>Learn more.</a>",w="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",L="${ dataPath } must have at least one non-whitespace character.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:h,layerLoadFailure:u,layerUnavailable:y,maxItems:p,mbFailedToSave:v,minItems:f,minLength:g,modelNotFound:E,networkError:P,noPermissionToAccessTool:S,portalLoadError:F,queryFeaturesError:b,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:w,toolValidationError:I,whiteSpacePattern:L};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,A as default,i as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,h as keyPropertiesError,u as layerLoadFailure,y as layerUnavailable,p as maxItems,v as mbFailedToSave,f as minItems,g as minLength,E as modelNotFound,P as networkError,S as noPermissionToAccessTool,F as portalLoadError,b as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,w as temporaryLayerFieldsError,I as toolValidationError,L as whiteSpacePattern};
3
+ v1.2.0-next.62 */
4
+ import"./V6B7ICFF.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",s="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",i="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",m="The service name contains one or more invalid characters.",c="Saving the temporary layer as a hosted feature layer did not complete.",h="Failed to get key properties.",u="Failed to load the layer.",y="Layer is not available.",p="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",f="${ dataPath } must not have fewer than ${ limit } items.",g="${ dataPath } must not be shorter than ${ limit } characters.",E="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",P="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",F="Failed to log in to portal.",b="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",k="The output name contains one or more invalid characters. <a href='${docLink}' target='_blank'>Learn more.</a>",w="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",L="${ dataPath } must have at least one non-whitespace character.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:h,layerLoadFailure:u,layerUnavailable:y,maxItems:p,mbFailedToSave:v,minItems:f,minLength:g,modelNotFound:E,networkError:P,noPermissionToAccessTool:S,portalLoadError:F,queryFeaturesError:b,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:w,toolValidationError:I,whiteSpacePattern:L};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,A as default,i as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,h as keyPropertiesError,u as layerLoadFailure,y as layerUnavailable,p as maxItems,v as mbFailedToSave,f as minItems,g as minLength,E as modelNotFound,P as networkError,S as noPermissionToAccessTool,F as portalLoadError,b as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,w as temporaryLayerFieldsError,I as toolValidationError,L 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
3
+ v1.2.0-next.62 */
4
4
  var u=(i,r)=>r.split(".").reduce(function(e,n){let l=n.match(/\[(.*?)\]$/);if(l){let t=l[1],s=n.replace(l[0],"");if(parseInt(t,10)>-1){let a=parseInt(t,10);return Array.isArray(e[s])&&e[s][a]?e[s][a]:void 0}else return o(e[s],t)}else return e&&e[n]!==void 0?e[n]!==null&&e[n].$use?u(i,e[n].$use):e[n]:void 0},i);function o(i,r){let e=r.split("(");if(!e||e.length!==2)return;let n,l=e[0],t=e[1].replace(")","").split(",").map(s=>s.trim());switch(l){case"findBy":let s=t[0],a;d(t[1])?a=parseFloat(t[1]):a=t[1].replace(/'/g,""),n=i.find(f=>f[s]===a);break;default:n=void 0}return n}function d(i){return!isNaN(parseFloat(i))}export{u as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as x}from"./WFPKRTD3.js";import"./7AEU6P43.js";import c from"./DHWSNW5P.js";import a from"./H4MLUVTV.js";import"./WYHW2ASX.js";import"./XZQZZC3C.js";import"./FNJ2SV5I.js";import"./RKIQ5DUF.js";import"./LC53SJ67.js";import"./N2EZQGSH.js";import"./AU6YGJUT.js";import"./UCYKJ3G4.js";import"./TZLKWPKE.js";import"./UYBRDZJB.js";import"./ZGSIGKHE.js";import"./PWZXYVX5.js";import"./T7D3VOZH.js";import"./NK5C67VR.js";import"./RJ4NCL2V.js";import"./GRW5JAFG.js";import"./V6P7MNAU.js";import"./WX2RTJ3T.js";import"./K6NKAZBD.js";import"./VGEFJTQ7.js";import"./F2O4WKM6.js";import"./C4C7KF52.js";import{a as L}from"./JNZZAE7R.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{b as C}from"./ZMOPA7LL.js";import{E as r,F as h,G as v,I as d,J as $,h as g,i as l,l as y,q as b,t as w}from"./VTTSGBR5.js";import"./OBI4A4AA.js";export default $arcgis.t(([{f:s},{d:I}])=>{var V=g`@layer{
3
+ v1.2.0-next.62 */
4
+ import{a as x}from"./JQUL7FKM.js";import"./PTLVWRGF.js";import c from"./3GS5C3NN.js";import a from"./KTC723NZ.js";import"./JOKQH5HY.js";import"./6IIEGCHC.js";import"./HDZR66W4.js";import"./INSM2YOC.js";import"./RFS4CVZ4.js";import"./JHLUVV4N.js";import"./RO3ES6UD.js";import"./X3UWVOUF.js";import"./EWXIH5IA.js";import"./FTRDBT4T.js";import"./GQ2XFFMS.js";import"./JC7RDCAK.js";import"./63OPMGEP.js";import"./X2K7HTRW.js";import"./AMPKI3ZS.js";import"./WGA7J4T3.js";import"./URCMK5PU.js";import"./UA6OB7Z3.js";import"./PXKUIO5A.js";import"./A4UPSJJE.js";import"./4MMEN7ON.js";import"./UB7EJKIT.js";import{a as L}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b as C}from"./HP5QJTNI.js";import{E as r,F as h,G as v,I as d,J as $,h as g,i as l,l as y,q as b,t as w}from"./U72STWZM.js";import"./V6B7ICFF.js";export default $arcgis.t(([{f:s},{d:I}])=>{var V=g`@layer{
5
5
  /** @license
6
6
  * Copyright 2025 Esri
7
7
  *
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a as e,b as t}from"./J6VXDYLB.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p as d};
3
+ v1.2.0-next.62 */
4
+ import{a as e,b as t}from"./Q4CAV6BE.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p as d};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.60 */
4
- import{a}from"./JNZZAE7R.js";import"./45S22WSU.js";import"./FC4NR45A.js";import{b as l}from"./ZMOPA7LL.js";import{G as n,h as i,i as t,q as s}from"./VTTSGBR5.js";import"./OBI4A4AA.js";var r=i`/** @license
3
+ v1.2.0-next.62 */
4
+ import{a}from"./P6L7EUVQ.js";import"./OPYKS7CX.js";import"./XWYQHMRJ.js";import{b as l}from"./HP5QJTNI.js";import{G as n,h as i,i as t,q as s}from"./U72STWZM.js";import"./V6B7ICFF.js";var r=i`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");