@esri/solutions-components 1.0.2 → 1.0.3

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 (476) hide show
  1. package/dist/cdn/{JQKAETCU.js → 23KPU4GQ.js} +1 -1
  2. package/dist/cdn/{CH2V66RG.js → 25MVNDYY.js} +2 -2
  3. package/dist/cdn/{RVQFI2GI.js → 26CFA6NB.js} +2 -2
  4. package/dist/cdn/{TA2KPG6T.js → 2F4XUH2B.js} +2 -2
  5. package/dist/cdn/{MW46SBLS.js → 2H7MTCHN.js} +2 -2
  6. package/dist/cdn/{6Y37L4Y2.js → 2JUQQJOQ.js} +1 -1
  7. package/dist/cdn/{AGXQF5CB.js → 2KV5NHCA.js} +2 -2
  8. package/dist/cdn/{MFT2YTZE.js → 2MGMAN6M.js} +2 -2
  9. package/dist/cdn/{MDBE6QB6.js → 2S6VPY6M.js} +2 -2
  10. package/dist/cdn/{J5SSKOUJ.js → 2TLBO4KI.js} +2 -2
  11. package/dist/cdn/36DIJFDW.js +18 -0
  12. package/dist/cdn/{NF6VWQKC.js → 374EIYTN.js} +2 -2
  13. package/dist/cdn/{UZSGGRRN.js → 3K2JVPRP.js} +2 -2
  14. package/dist/cdn/{7DSO57VG.js → 3O5UNJZ5.js} +2 -2
  15. package/dist/cdn/{ORFCQZNQ.js → 3RYX2KRP.js} +2 -2
  16. package/dist/cdn/{I2QY6RRM.js → 3U5MCBML.js} +2 -2
  17. package/dist/cdn/{OMJT2NGS.js → 3WBD7HCV.js} +2 -2
  18. package/dist/cdn/{KMK3IXHT.js → 42D6SGED.js} +2 -2
  19. package/dist/cdn/{LMJVHANR.js → 4L6E3M5G.js} +2 -2
  20. package/dist/cdn/{5BS5RPN3.js → 4PHIBFBK.js} +2 -2
  21. package/dist/cdn/{TK6UBBJX.js → 54VXW2B6.js} +2 -2
  22. package/dist/cdn/{XPTTFHFY.js → 5FB3DI4G.js} +2 -2
  23. package/dist/cdn/{URAHLQ3P.js → 5JPHH76I.js} +2 -2
  24. package/dist/cdn/{EXPP7EHV.js → 5QYTBWNM.js} +2 -2
  25. package/dist/cdn/{T757ITK2.js → 5VTF2S3V.js} +2 -2
  26. package/dist/cdn/{QZWC4VIB.js → 5Y3YCWRM.js} +2 -2
  27. package/dist/cdn/{R6VHQQOK.js → 62ZWA6O7.js} +1 -1
  28. package/dist/cdn/{XF3EBBPG.js → 662JMFYU.js} +2 -2
  29. package/dist/cdn/{6YWQEJ3R.js → 67BKTI47.js} +2 -2
  30. package/dist/cdn/{Y3DUHGHO.js → 6BX7KLOB.js} +1 -1
  31. package/dist/cdn/{UHULYTFL.js → 6DFZGD4Y.js} +1 -1
  32. package/dist/cdn/{N765GK5M.js → 6EP36Y7F.js} +2 -2
  33. package/dist/cdn/{CBU5ZJTL.js → 6FHHBRRB.js} +2 -2
  34. package/dist/cdn/{5UIQ5XPI.js → 6GCYWKFS.js} +1 -1
  35. package/dist/cdn/{HE7ELDIR.js → 6IAXNX3E.js} +1 -1
  36. package/dist/cdn/{SB6IKLS3.js → 6ILYUU4G.js} +2 -2
  37. package/dist/cdn/{ZM76BYQX.js → 6QV3LFXT.js} +2 -2
  38. package/dist/cdn/{4B47MLZ4.js → 6TTGY74E.js} +2 -2
  39. package/dist/cdn/{O7SEZIYA.js → 6XG23GK2.js} +2 -2
  40. package/dist/cdn/{M4Q44Y7R.js → 757B2YT4.js} +2 -2
  41. package/dist/cdn/{QUB3JPGL.js → 7ANMAQXN.js} +1 -1
  42. package/dist/cdn/{T5ORGPHJ.js → 7CDY7L44.js} +2 -2
  43. package/dist/cdn/{2DREXAAI.js → 7QEYVLH4.js} +2 -2
  44. package/dist/cdn/{AWOD4YMZ.js → 7SATBHPG.js} +2 -2
  45. package/dist/cdn/{HISSLYMD.js → 7VB4EGOH.js} +2 -2
  46. package/dist/cdn/{MRDF2627.js → 7XCWAN5G.js} +2 -2
  47. package/dist/cdn/{5D4L7E7B.js → A4H6OMJ4.js} +2 -2
  48. package/dist/cdn/{K3UTGJMU.js → A7TRZP7N.js} +1 -1
  49. package/dist/cdn/{VVZJIYXL.js → AD4OROQI.js} +2 -2
  50. package/dist/cdn/AGKANRB2.js +4 -0
  51. package/dist/cdn/{MWZRE5PN.js → AHAZLVQ4.js} +2 -2
  52. package/dist/cdn/{NHKMUTOW.js → ASBGMXK6.js} +2 -2
  53. package/dist/cdn/{CU4HDBVA.js → B34U6ISQ.js} +2 -2
  54. package/dist/cdn/{MX2NQ664.js → B6P5GUKS.js} +2 -2
  55. package/dist/cdn/{UGWIFJHW.js → B75MQOOF.js} +1 -1
  56. package/dist/cdn/{CBAXU66B.js → BEQE76XU.js} +2 -2
  57. package/dist/cdn/{PA6X2UX4.js → BGK6GNQ2.js} +2 -2
  58. package/dist/cdn/{DVKB52PG.js → BJDRPNDP.js} +2 -2
  59. package/dist/cdn/{AXPTSMNQ.js → BK4BKQMD.js} +2 -2
  60. package/dist/cdn/{OJUIATLV.js → BQIN6I6Z.js} +2 -2
  61. package/dist/cdn/{PT2PN6JX.js → BR63TLFP.js} +2 -2
  62. package/dist/cdn/{BTHJLT2K.js → BT6EYE4X.js} +2 -2
  63. package/dist/cdn/{QIVGXNMA.js → C23KGGFI.js} +2 -2
  64. package/dist/cdn/{OWFH6YUK.js → C4OSLESX.js} +2 -2
  65. package/dist/cdn/{NS7LWOIF.js → CDJIJD2S.js} +1 -1
  66. package/dist/cdn/{T7XUVORP.js → CM4AL2I7.js} +2 -2
  67. package/dist/cdn/{45JENHBT.js → COF6OUJT.js} +2 -2
  68. package/dist/cdn/CYFSOW6X.js +18 -0
  69. package/dist/cdn/{H236KX4X.js → D33LMOKH.js} +2 -2
  70. package/dist/cdn/{RZBKYA4H.js → DDZUXMVO.js} +1 -1
  71. package/dist/cdn/{J4QVOH72.js → DLYWKQDY.js} +2 -2
  72. package/dist/cdn/{UJYMNOGA.js → DP4UK5MF.js} +2 -2
  73. package/dist/cdn/DT6LXM6J.js +4 -0
  74. package/dist/cdn/{YFRUN4NK.js → DYAASCEQ.js} +2 -2
  75. package/dist/cdn/{UHMFK7KR.js → E5MMH3QZ.js} +2 -2
  76. package/dist/cdn/{JFXEOOWV.js → EFD7INAF.js} +2 -2
  77. package/dist/cdn/{6RC6X7JL.js → EFQOQ4XM.js} +2 -2
  78. package/dist/cdn/{CXHBMY3H.js → EGOHB7G6.js} +2 -2
  79. package/dist/cdn/{P6I2SMSL.js → EKILMPMP.js} +2 -2
  80. package/dist/cdn/{V72LELKA.js → EL2ASFX3.js} +2 -2
  81. package/dist/cdn/{WPQTSQ5W.js → ENWJIRTW.js} +2 -2
  82. package/dist/cdn/{KYJLH6UV.js → EOIHR5PX.js} +2 -2
  83. package/dist/cdn/{QBKQBYYD.js → EQDEFLKQ.js} +2 -2
  84. package/dist/cdn/{XL6DAOQU.js → ERJKLBV2.js} +2 -2
  85. package/dist/cdn/{KK5EFX35.js → ESRPIZDO.js} +2 -2
  86. package/dist/cdn/{XNRASUFU.js → ETUG5HUX.js} +2 -2
  87. package/dist/cdn/{EJ2ZYQDN.js → EV4XJGO3.js} +2 -2
  88. package/dist/cdn/{OU5FGKZQ.js → EXLYOLGD.js} +2 -2
  89. package/dist/cdn/{NDXSJLKV.js → EYRRGEDQ.js} +1 -1
  90. package/dist/cdn/{YEK5YHI4.js → F4YYWP73.js} +2 -2
  91. package/dist/cdn/F7LDLM6P.js +4 -0
  92. package/dist/cdn/{57ICJINS.js → FAZP4TDB.js} +2 -2
  93. package/dist/cdn/{VC3OUF74.js → FCK3OBGA.js} +2 -2
  94. package/dist/cdn/{HMOPCXOD.js → FGYAYTAY.js} +2 -2
  95. package/dist/cdn/{M6VJRRQ6.js → FJG2Y4MT.js} +2 -2
  96. package/dist/cdn/{ME3PJXJC.js → FJMY5BVP.js} +2 -2
  97. package/dist/cdn/{FYGEDZYU.js → FL6PET5V.js} +2 -2
  98. package/dist/cdn/{EUJJCM4N.js → FNWEYQDD.js} +1 -1
  99. package/dist/cdn/{6ZPPQS7Z.js → FP7ZUAH6.js} +2 -2
  100. package/dist/cdn/{QMCJ7WTH.js → FR3CBOZY.js} +2 -2
  101. package/dist/cdn/{Z3W52BA5.js → FSDJA4MR.js} +2 -2
  102. package/dist/cdn/{TF5NNCNV.js → FSH3VY4W.js} +2 -2
  103. package/dist/cdn/{L6MHQFEW.js → FX4GM76R.js} +2 -2
  104. package/dist/cdn/{MMQ4KQ2B.js → G4JWUXWW.js} +2 -2
  105. package/dist/cdn/{2N4CQXHT.js → G5TN4YYX.js} +2 -2
  106. package/dist/cdn/{PZ4I46YP.js → GGXBJUNZ.js} +2 -2
  107. package/dist/cdn/{BIVUMER5.js → GKSL27GK.js} +1 -1
  108. package/dist/cdn/{EU66V4DL.js → GNONOVEA.js} +2 -2
  109. package/dist/cdn/{TYK6M57O.js → GTEHENBQ.js} +2 -2
  110. package/dist/cdn/{4CA5Q4HU.js → GTFFXKQ2.js} +2 -2
  111. package/dist/cdn/{GSHJMUOL.js → H5NKKY63.js} +2 -2
  112. package/dist/cdn/{VOP3WFWQ.js → HE4HDKLZ.js} +2 -2
  113. package/dist/cdn/{SZVMRJ24.js → HQGW6OLO.js} +1 -1
  114. package/dist/cdn/{BH7LJ72A.js → HUHLOYKI.js} +2 -2
  115. package/dist/cdn/{SMUXGPZR.js → HWGQUCPH.js} +2 -2
  116. package/dist/cdn/{DQCGIKDE.js → HYI5EZI4.js} +2 -2
  117. package/dist/cdn/{AXNLHEND.js → HYZDGSVF.js} +2 -2
  118. package/dist/cdn/{MPH25RN2.js → HZQ2DNC7.js} +2 -2
  119. package/dist/cdn/{IJNIOO5S.js → I2QMTG55.js} +2 -2
  120. package/dist/cdn/{N4NNCHK6.js → I75QXGU6.js} +2 -2
  121. package/dist/cdn/{YX2IMVKL.js → IAGXR3NP.js} +1 -1
  122. package/dist/cdn/{5Q6ZKF23.js → ICTEUNHA.js} +1 -1
  123. package/dist/cdn/{34K3UEZZ.js → IGGGIS6G.js} +2 -2
  124. package/dist/cdn/{XHXK6QN7.js → IGM6T5LG.js} +2 -2
  125. package/dist/cdn/{X26TSF65.js → IKXIA6DX.js} +2 -2
  126. package/dist/cdn/{Q2BUQJJY.js → IP5TND75.js} +2 -2
  127. package/dist/cdn/{3L5CUNW3.js → IU5ETFJQ.js} +2 -2
  128. package/dist/cdn/{J6BS2SYI.js → IYR7CWGB.js} +2 -2
  129. package/dist/cdn/{W23X7NWO.js → IYVUU2KK.js} +2 -2
  130. package/dist/cdn/{PJC5OY32.js → IZG3VEFG.js} +1 -1
  131. package/dist/cdn/{MRHAUAK5.js → J5Z6XBH5.js} +1 -1
  132. package/dist/cdn/{2KQCEICX.js → JDBACJRP.js} +4 -4
  133. package/dist/cdn/{3QXMAC7L.js → JEJY27MQ.js} +2 -2
  134. package/dist/cdn/{627BP4CQ.js → JFAFRMBB.js} +2 -2
  135. package/dist/cdn/{BBCZTH66.js → JFDXJGIJ.js} +1 -1
  136. package/dist/cdn/{IDOBPHGE.js → JGLFDJFF.js} +2 -2
  137. package/dist/cdn/{FQRP6IK4.js → JGYXU6MT.js} +2 -2
  138. package/dist/cdn/{W5Q4PI4D.js → JI7QBF2J.js} +2 -2
  139. package/dist/cdn/{BWY46B5P.js → JIYQEZGV.js} +2 -2
  140. package/dist/cdn/{YX4KF34C.js → JMGTSAK6.js} +2 -2
  141. package/dist/cdn/{XINOQA62.js → JMQV4UK4.js} +1 -1
  142. package/dist/cdn/{RDBY4KOY.js → JVJODSGL.js} +2 -2
  143. package/dist/cdn/{427VOQVY.js → JZNSQN5C.js} +2 -2
  144. package/dist/cdn/{IGNOSAEB.js → JZUBI6LB.js} +1 -1
  145. package/dist/cdn/{QTN6BMW2.js → K6A5BZGW.js} +1 -1
  146. package/dist/cdn/{RQZHVOZW.js → KDL2CC6G.js} +2 -2
  147. package/dist/cdn/{2RQJQWZN.js → KJ5OTXP6.js} +2 -2
  148. package/dist/cdn/{IQVXZDV3.js → KJDCKGFK.js} +2 -2
  149. package/dist/cdn/{P5VXHMBV.js → KJL5HNOR.js} +2 -2
  150. package/dist/cdn/{JCJADZGS.js → KJOKXQZU.js} +2 -2
  151. package/dist/cdn/{WDJYH74E.js → KLABUUYY.js} +2 -2
  152. package/dist/cdn/{LYLGDYC3.js → KQRJJTQ5.js} +2 -2
  153. package/dist/cdn/{RUMM4LRY.js → KQTQK4OJ.js} +2 -2
  154. package/dist/cdn/{RQNGE4QQ.js → KU6NIERJ.js} +2 -2
  155. package/dist/cdn/{YWS4DWQO.js → KUJTRCCI.js} +2 -2
  156. package/dist/cdn/L36YOWRK.js +4 -0
  157. package/dist/cdn/{5X2CUO2G.js → LHUMSMJ6.js} +2 -2
  158. package/dist/cdn/{NVRFL7NL.js → LIGPP436.js} +2 -2
  159. package/dist/cdn/{J67A6WYJ.js → LN5LFFQL.js} +2 -2
  160. package/dist/cdn/{E7DQW7XG.js → LN6SBKS6.js} +2 -2
  161. package/dist/cdn/{ZLEZXMKN.js → LPDDFOTY.js} +2 -2
  162. package/dist/cdn/{XWBLDO6F.js → LVGWOKF7.js} +1 -1
  163. package/dist/cdn/{XOZFNKXY.js → M5R3XZG4.js} +2 -2
  164. package/dist/cdn/{GJYS7J5Y.js → M5UPX2J7.js} +2 -2
  165. package/dist/cdn/{3XT4LMZL.js → M7HTAQHD.js} +1 -1
  166. package/dist/cdn/{34FKJAYZ.js → METZPEKO.js} +2 -2
  167. package/dist/cdn/{Z2FRFIOF.js → MGVUU433.js} +2 -2
  168. package/dist/cdn/{PQ55EL2N.js → MKX2QKK2.js} +2 -2
  169. package/dist/cdn/MMLZ4JEL.js +4 -0
  170. package/dist/cdn/{DMOKBYTT.js → N372V6ZZ.js} +2 -2
  171. package/dist/cdn/{KQ6WZUPW.js → NCB45ISZ.js} +2 -2
  172. package/dist/cdn/{R2RYAQ6J.js → ND6B7H5G.js} +2 -2
  173. package/dist/cdn/{FGX5VXCN.js → NIIZBG5D.js} +2 -2
  174. package/dist/cdn/{BPHSFWBE.js → NMDV24RB.js} +2 -2
  175. package/dist/cdn/{SFYHUOTM.js → NNUFXWGF.js} +2 -2
  176. package/dist/cdn/{5PEEQTOJ.js → NPHCFVY5.js} +2 -2
  177. package/dist/cdn/{G57AFF3K.js → NRBFWIU7.js} +1 -1
  178. package/dist/cdn/{MJ6UHJO5.js → NUECMUNR.js} +2 -2
  179. package/dist/cdn/{623OCGUZ.js → NUUEBECA.js} +2 -2
  180. package/dist/cdn/{MCOVXOZE.js → NZJICJCJ.js} +2 -2
  181. package/dist/cdn/{OGNLV67M.js → O2PJYMGL.js} +1 -1
  182. package/dist/cdn/{N6WPLWG3.js → OA6N3UPU.js} +2 -2
  183. package/dist/cdn/{5IMGOBVR.js → OCMNVWI4.js} +2 -2
  184. package/dist/cdn/{MS7LIRHZ.js → OF36TDKR.js} +2 -2
  185. package/dist/cdn/{BSBALSW3.js → OHTIVF6F.js} +2 -2
  186. package/dist/cdn/{TSJWAHST.js → OHVFUCPD.js} +2 -2
  187. package/dist/cdn/{GLKAIY7B.js → OIKCCXRR.js} +2 -2
  188. package/dist/cdn/{N2SRPBDD.js → OVCAOTN3.js} +1 -1
  189. package/dist/cdn/OW7UYJ4J.js +4 -0
  190. package/dist/cdn/{SEWOHKIX.js → PKYOZYLI.js} +2 -2
  191. package/dist/cdn/{QKUXZWFL.js → PLA5JT3G.js} +2 -2
  192. package/dist/cdn/PQAE7N6I.js +4 -0
  193. package/dist/cdn/{Q7OC2577.js → PRIAU7QU.js} +2 -2
  194. package/dist/cdn/{3VJVSHZ3.js → PVTQGF36.js} +2 -2
  195. package/dist/cdn/{EIG2RIEW.js → QA65PTZZ.js} +2 -2
  196. package/dist/cdn/{DAE4AFWE.js → QDY6ZNGH.js} +2 -2
  197. package/dist/cdn/{6CHYPF6P.js → QEC76CAD.js} +2 -2
  198. package/dist/cdn/{53U2O7QU.js → QIQSY5XY.js} +2 -2
  199. package/dist/cdn/{VSEHM5KR.js → QLVDQY5R.js} +2 -2
  200. package/dist/cdn/{NJBLOY6O.js → QQUJHAOI.js} +2 -2
  201. package/dist/cdn/{6ULIHKIX.js → QSBF5CAO.js} +1 -1
  202. package/dist/cdn/{YWLH4TVT.js → QSMNEUAM.js} +2 -2
  203. package/dist/cdn/{WQUBINLR.js → QZN2ALHA.js} +2 -2
  204. package/dist/cdn/{AX3GHSA4.js → R47YRNRP.js} +2 -2
  205. package/dist/cdn/{ZUKAASU2.js → RC5OYDLU.js} +2 -2
  206. package/dist/cdn/{MBB3DRUX.js → RCCJWWIB.js} +2 -2
  207. package/dist/cdn/{E6YH3G2I.js → RHHKJQMD.js} +1 -1
  208. package/dist/cdn/{SPYEGWSA.js → RIVVWLOA.js} +2 -2
  209. package/dist/cdn/{4V6HHPEY.js → RM45AKVD.js} +2 -2
  210. package/dist/cdn/{ITWRX5NJ.js → RMNBDS6F.js} +2 -2
  211. package/dist/cdn/{LHDC2KUS.js → RRF3ACRD.js} +2 -2
  212. package/dist/cdn/{DNSP25OL.js → S4E4IPBZ.js} +1 -1
  213. package/dist/cdn/{BVYE77GY.js → S7NHJP4N.js} +2 -2
  214. package/dist/cdn/{N6AFW5X5.js → SCRDPL23.js} +2 -2
  215. package/dist/cdn/{UGDEHIGY.js → SJO75TT4.js} +2 -2
  216. package/dist/cdn/{HX4VINVI.js → SL2K7YIF.js} +1 -1
  217. package/dist/cdn/{6OP4PP3P.js → SSP7KXPL.js} +2 -2
  218. package/dist/cdn/{C7N6NXZS.js → SUWPBAZX.js} +2 -2
  219. package/dist/cdn/{ZPQ43SZ3.js → SWMF2YA5.js} +2 -2
  220. package/dist/cdn/{IARLSMD2.js → SXUAMVZO.js} +2 -2
  221. package/dist/cdn/{3UIKDYVX.js → SYSMKBTI.js} +1 -1
  222. package/dist/cdn/{OX6RYCMB.js → T3FQL6TN.js} +2 -2
  223. package/dist/cdn/{H7J6NVIQ.js → T3TRA4FC.js} +2 -2
  224. package/dist/cdn/{OXHWMQRP.js → T4OHAC5G.js} +2 -2
  225. package/dist/cdn/{RSH2UKEC.js → T5PIC2NF.js} +2 -2
  226. package/dist/cdn/{3OPTGOTN.js → T6ANMRE3.js} +2 -2
  227. package/dist/cdn/{C5LL6JKL.js → T7OXALTG.js} +2 -2
  228. package/dist/cdn/{X7CS7ZS5.js → TFH7GJUO.js} +2 -2
  229. package/dist/cdn/{XYDJHJLZ.js → TI3IPN2K.js} +1 -1
  230. package/dist/cdn/{EW2G5EHV.js → TJ4EAB2X.js} +2 -2
  231. package/dist/cdn/{3BCY5VBO.js → TJMDZV66.js} +2 -2
  232. package/dist/cdn/{42CBSGWQ.js → TSUZDZYM.js} +2 -2
  233. package/dist/cdn/{UDSTQRSC.js → TTOLHIJV.js} +2 -2
  234. package/dist/cdn/{UPVA5Z5X.js → U3K7MHYO.js} +2 -2
  235. package/dist/cdn/{A2LA4B77.js → U3NZPNKZ.js} +2 -2
  236. package/dist/cdn/{2TV52QIG.js → U4FYJZJP.js} +2 -2
  237. package/dist/cdn/{TND7GPH7.js → UCX6I6GZ.js} +1 -1
  238. package/dist/cdn/{U5EERXBG.js → UDOULYDC.js} +2 -2
  239. package/dist/cdn/{G4VDYGGB.js → UEYWAQCQ.js} +2 -2
  240. package/dist/cdn/{G2U2FC5M.js → UIZ5RNY5.js} +2 -2
  241. package/dist/cdn/{N4BYA7EI.js → UKWTBSYT.js} +2 -2
  242. package/dist/cdn/{2HCC42DE.js → USL5VVU7.js} +2 -2
  243. package/dist/cdn/{DKB2YHXU.js → UY2ZBEHZ.js} +2 -2
  244. package/dist/cdn/{QH7FXF55.js → UYB7XUC7.js} +2 -2
  245. package/dist/cdn/{MEIJQ75E.js → UYOJLBLJ.js} +2 -2
  246. package/dist/cdn/{QNUW3X3Y.js → V2FHJSTQ.js} +2 -2
  247. package/dist/cdn/{HVCG3MNH.js → V2V2PODO.js} +2 -2
  248. package/dist/cdn/{3J3GWPGS.js → VJOELFDU.js} +2 -2
  249. package/dist/cdn/{CST36BMZ.js → VLQOV3NQ.js} +2 -2
  250. package/dist/cdn/{J6SZZA33.js → VS4BFKL3.js} +1 -1
  251. package/dist/cdn/{DHZBJPEI.js → WCEI4GB5.js} +2 -2
  252. package/dist/cdn/{OSZNMAJF.js → WFX5NIY6.js} +2 -2
  253. package/dist/cdn/{ZRIOHEOT.js → WMIMNCJL.js} +2 -2
  254. package/dist/cdn/{RHC7DNDW.js → WOW7ES6W.js} +1 -1
  255. package/dist/cdn/{C6RAYAOF.js → X24JTDBX.js} +2 -2
  256. package/dist/cdn/{AGN7ST2V.js → X6CICXR6.js} +2 -2
  257. package/dist/cdn/{KF6SZPRF.js → XIXNUDIE.js} +2 -2
  258. package/dist/cdn/{ZQRUDWGJ.js → XNBFYXGC.js} +2 -2
  259. package/dist/cdn/{DDIKF3Y6.js → XNRVLUGL.js} +2 -2
  260. package/dist/cdn/{SLARORK6.js → XPXOPI63.js} +2 -2
  261. package/dist/cdn/{SEVUDBYU.js → XRFRTU7J.js} +2 -2
  262. package/dist/cdn/{XYDZ75MI.js → XUHIMDFC.js} +2 -2
  263. package/dist/cdn/{PK2KYHCB.js → XUYTRG7D.js} +2 -2
  264. package/dist/cdn/{BJQ5IZYR.js → XX3BIAK6.js} +2 -2
  265. package/dist/cdn/{2WXZBSU3.js → Y4H3CA2O.js} +2 -2
  266. package/dist/cdn/{TGECS5FN.js → Y4V6VBRL.js} +2 -2
  267. package/dist/cdn/{V3KV4ZPK.js → YAAW6QK6.js} +1 -1
  268. package/dist/cdn/{WONNB7ZA.js → YBKACDGP.js} +2 -2
  269. package/dist/cdn/{BY7442LE.js → YDXJCA4W.js} +2 -2
  270. package/dist/cdn/{D3MKS27U.js → YEGN6TNL.js} +2 -2
  271. package/dist/cdn/{TL4CBL4J.js → YGDA57Y2.js} +2 -2
  272. package/dist/cdn/{WS7S5Z7C.js → YXUJQUV6.js} +2 -2
  273. package/dist/cdn/{B2AUDLTO.js → YYRFIXIU.js} +2 -2
  274. package/dist/cdn/{F3ITEU5L.js → Z4655QBA.js} +2 -2
  275. package/dist/cdn/{3UITRYPY.js → Z5LX6R34.js} +1 -1
  276. package/dist/cdn/{QPQDH5UO.js → ZA5MIGE2.js} +2 -2
  277. package/dist/cdn/{CDC2AGQU.js → ZIBNROWW.js} +2 -2
  278. package/dist/cdn/{Q4KUEUUN.js → ZJO4B77W.js} +2 -2
  279. package/dist/cdn/{BN32H2NI.js → ZMPOAOPQ.js} +2 -2
  280. package/dist/cdn/{PBS5CVH6.js → ZMWBSBOD.js} +2 -2
  281. package/dist/cdn/{HY3PBNPE.js → ZSTVKND7.js} +2 -2
  282. package/dist/cdn/{PWAA6UKX.js → ZVCG3MTM.js} +2 -2
  283. package/dist/cdn/{6OFBEWUU.js → ZWTSIAER.js} +1 -1
  284. package/dist/cdn/assets/layer-table/t9n/messages.ar.json +1 -1
  285. package/dist/cdn/assets/layer-table/t9n/messages.bg.json +1 -1
  286. package/dist/cdn/assets/layer-table/t9n/messages.bs.json +1 -1
  287. package/dist/cdn/assets/layer-table/t9n/messages.ca.json +1 -1
  288. package/dist/cdn/assets/layer-table/t9n/messages.cs.json +1 -1
  289. package/dist/cdn/assets/layer-table/t9n/messages.da.json +1 -1
  290. package/dist/cdn/assets/layer-table/t9n/messages.de.json +1 -1
  291. package/dist/cdn/assets/layer-table/t9n/messages.el.json +1 -1
  292. package/dist/cdn/assets/layer-table/t9n/messages.es.json +1 -1
  293. package/dist/cdn/assets/layer-table/t9n/messages.et.json +1 -1
  294. package/dist/cdn/assets/layer-table/t9n/messages.fi.json +1 -1
  295. package/dist/cdn/assets/layer-table/t9n/messages.fr.json +1 -1
  296. package/dist/cdn/assets/layer-table/t9n/messages.he.json +1 -1
  297. package/dist/cdn/assets/layer-table/t9n/messages.hr.json +1 -1
  298. package/dist/cdn/assets/layer-table/t9n/messages.hu.json +1 -1
  299. package/dist/cdn/assets/layer-table/t9n/messages.id.json +1 -1
  300. package/dist/cdn/assets/layer-table/t9n/messages.it.json +1 -1
  301. package/dist/cdn/assets/layer-table/t9n/messages.ja.json +1 -1
  302. package/dist/cdn/assets/layer-table/t9n/messages.ko.json +1 -1
  303. package/dist/cdn/assets/layer-table/t9n/messages.lt.json +1 -1
  304. package/dist/cdn/assets/layer-table/t9n/messages.lv.json +1 -1
  305. package/dist/cdn/assets/layer-table/t9n/messages.nl.json +1 -1
  306. package/dist/cdn/assets/layer-table/t9n/messages.no.json +1 -1
  307. package/dist/cdn/assets/layer-table/t9n/messages.pl.json +1 -1
  308. package/dist/cdn/assets/layer-table/t9n/messages.pt-BR.json +1 -1
  309. package/dist/cdn/assets/layer-table/t9n/messages.pt-PT.json +1 -1
  310. package/dist/cdn/assets/layer-table/t9n/messages.ro.json +1 -1
  311. package/dist/cdn/assets/layer-table/t9n/messages.ru.json +1 -1
  312. package/dist/cdn/assets/layer-table/t9n/messages.sk.json +1 -1
  313. package/dist/cdn/assets/layer-table/t9n/messages.sl.json +1 -1
  314. package/dist/cdn/assets/layer-table/t9n/messages.sr.json +1 -1
  315. package/dist/cdn/assets/layer-table/t9n/messages.sv.json +1 -1
  316. package/dist/cdn/assets/layer-table/t9n/messages.th.json +1 -1
  317. package/dist/cdn/assets/layer-table/t9n/messages.tr.json +1 -1
  318. package/dist/cdn/assets/layer-table/t9n/messages.uk.json +1 -1
  319. package/dist/cdn/assets/layer-table/t9n/messages.vi.json +1 -1
  320. package/dist/cdn/assets/layer-table/t9n/messages.zh-CN.json +1 -1
  321. package/dist/cdn/assets/layer-table/t9n/messages.zh-HK.json +1 -1
  322. package/dist/cdn/assets/layer-table/t9n/messages.zh-TW.json +1 -1
  323. package/dist/cdn/assets/map-card/t9n/messages.ar.json +1 -1
  324. package/dist/cdn/assets/map-card/t9n/messages.bg.json +1 -1
  325. package/dist/cdn/assets/map-card/t9n/messages.bs.json +1 -1
  326. package/dist/cdn/assets/map-card/t9n/messages.ca.json +1 -1
  327. package/dist/cdn/assets/map-card/t9n/messages.cs.json +1 -1
  328. package/dist/cdn/assets/map-card/t9n/messages.da.json +1 -1
  329. package/dist/cdn/assets/map-card/t9n/messages.de.json +1 -1
  330. package/dist/cdn/assets/map-card/t9n/messages.el.json +1 -1
  331. package/dist/cdn/assets/map-card/t9n/messages.es.json +1 -1
  332. package/dist/cdn/assets/map-card/t9n/messages.et.json +1 -1
  333. package/dist/cdn/assets/map-card/t9n/messages.fi.json +1 -1
  334. package/dist/cdn/assets/map-card/t9n/messages.fr.json +1 -1
  335. package/dist/cdn/assets/map-card/t9n/messages.he.json +1 -1
  336. package/dist/cdn/assets/map-card/t9n/messages.hr.json +1 -1
  337. package/dist/cdn/assets/map-card/t9n/messages.hu.json +1 -1
  338. package/dist/cdn/assets/map-card/t9n/messages.id.json +1 -1
  339. package/dist/cdn/assets/map-card/t9n/messages.it.json +1 -1
  340. package/dist/cdn/assets/map-card/t9n/messages.ja.json +1 -1
  341. package/dist/cdn/assets/map-card/t9n/messages.ko.json +1 -1
  342. package/dist/cdn/assets/map-card/t9n/messages.lt.json +1 -1
  343. package/dist/cdn/assets/map-card/t9n/messages.lv.json +1 -1
  344. package/dist/cdn/assets/map-card/t9n/messages.nl.json +1 -1
  345. package/dist/cdn/assets/map-card/t9n/messages.no.json +1 -1
  346. package/dist/cdn/assets/map-card/t9n/messages.pl.json +1 -1
  347. package/dist/cdn/assets/map-card/t9n/messages.pt-BR.json +1 -1
  348. package/dist/cdn/assets/map-card/t9n/messages.pt-PT.json +1 -1
  349. package/dist/cdn/assets/map-card/t9n/messages.ro.json +1 -1
  350. package/dist/cdn/assets/map-card/t9n/messages.ru.json +1 -1
  351. package/dist/cdn/assets/map-card/t9n/messages.sk.json +1 -1
  352. package/dist/cdn/assets/map-card/t9n/messages.sl.json +1 -1
  353. package/dist/cdn/assets/map-card/t9n/messages.sr.json +1 -1
  354. package/dist/cdn/assets/map-card/t9n/messages.sv.json +1 -1
  355. package/dist/cdn/assets/map-card/t9n/messages.th.json +1 -1
  356. package/dist/cdn/assets/map-card/t9n/messages.tr.json +1 -1
  357. package/dist/cdn/assets/map-card/t9n/messages.uk.json +1 -1
  358. package/dist/cdn/assets/map-card/t9n/messages.vi.json +1 -1
  359. package/dist/cdn/assets/map-card/t9n/messages.zh-CN.json +1 -1
  360. package/dist/cdn/assets/map-card/t9n/messages.zh-HK.json +1 -1
  361. package/dist/cdn/assets/map-card/t9n/messages.zh-TW.json +1 -1
  362. package/dist/cdn/index.js +2 -2
  363. package/dist/chunks/Auth.js +1 -1
  364. package/dist/chunks/appConfig.js +1 -1
  365. package/dist/chunks/cardFetchingUtils.js +1 -1
  366. package/dist/chunks/common.js +1 -1
  367. package/dist/chunks/deployAppContexts.js +1 -1
  368. package/dist/chunks/downloadUtils.js +1 -1
  369. package/dist/chunks/helpers.js +1 -1
  370. package/dist/chunks/index.js +1 -1
  371. package/dist/chunks/interfaces.js +1 -1
  372. package/dist/chunks/loadModules.js +1 -1
  373. package/dist/chunks/mapViewUtils.js +1 -1
  374. package/dist/chunks/pciUtils.js +1 -1
  375. package/dist/chunks/popupUtils.js +1 -1
  376. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  377. package/dist/chunks/privilegeUtils.js +1 -1
  378. package/dist/chunks/publicNotificationStore.js +1 -1
  379. package/dist/chunks/queryUtils.js +1 -1
  380. package/dist/chunks/runtime.js +1 -1
  381. package/dist/chunks/solution-store.js +1 -1
  382. package/dist/chunks/templates.js +1 -1
  383. package/dist/chunks/useT9n.js +1 -1
  384. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  385. package/dist/components/basemap-gallery/customElement.js +1 -1
  386. package/dist/components/buffer-tools/customElement.js +1 -1
  387. package/dist/components/card-manager/customElement.js +1 -1
  388. package/dist/components/consent-manager/customElement.js +1 -1
  389. package/dist/components/create-feature/customElement.js +1 -1
  390. package/dist/components/create-related-feature/customElement.js +1 -1
  391. package/dist/components/crowdsource-manager/customElement.js +1 -1
  392. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  393. package/dist/components/deduct-calculator/customElement.js +1 -1
  394. package/dist/components/delete-button/customElement.js +1 -1
  395. package/dist/components/delete-dialog/customElement.js +1 -1
  396. package/dist/components/edit-card/customElement.js +1 -1
  397. package/dist/components/feature-details/customElement.js +1 -1
  398. package/dist/components/feature-list/customElement.js +1 -1
  399. package/dist/components/field-selection/customElement.js +1 -1
  400. package/dist/components/floor-filter/customElement.js +1 -1
  401. package/dist/components/info-card/customElement.js +1 -1
  402. package/dist/components/json-editor/customElement.js +1 -1
  403. package/dist/components/layer-list/customElement.js +1 -1
  404. package/dist/components/layer-table/customElement.js +1 -1
  405. package/dist/components/map-card/customElement.js +1 -1
  406. package/dist/components/map-draw-tools/customElement.js +1 -1
  407. package/dist/components/map-fullscreen/customElement.js +1 -1
  408. package/dist/components/map-layer-picker/customElement.js +1 -1
  409. package/dist/components/map-legend/customElement.js +1 -1
  410. package/dist/components/map-picker/customElement.js +1 -1
  411. package/dist/components/map-search/customElement.js +1 -1
  412. package/dist/components/map-select-tools/customElement.js +1 -1
  413. package/dist/components/map-tools/customElement.js +1 -1
  414. package/dist/components/pci-calculator/customElement.js +1 -1
  415. package/dist/components/pdf-download/customElement.js +1 -1
  416. package/dist/components/public-notification/customElement.js +1 -1
  417. package/dist/components/refine-selection/customElement.js +1 -1
  418. package/dist/components/selection-tool/customElement.js +1 -1
  419. package/dist/components/solution-article-card/customElement.js +1 -1
  420. package/dist/components/solution-configuration/customElement.js +1 -1
  421. package/dist/components/solution-configure-dialog/customElement.d.ts +7 -1
  422. package/dist/components/solution-configure-dialog/customElement.js +36 -22
  423. package/dist/components/solution-configure-titles/customElement.js +1 -1
  424. package/dist/components/solution-contents/customElement.js +1 -1
  425. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  426. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  427. package/dist/components/solution-deployed-card/customElement.d.ts +13 -0
  428. package/dist/components/solution-deployed-card/customElement.js +39 -30
  429. package/dist/components/solution-deployed-card/index.d.ts +2 -1
  430. package/dist/components/solution-deployed-card/index.js +2 -1
  431. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  432. package/dist/components/solution-details-card/customElement.js +1 -1
  433. package/dist/components/solution-details-panel/customElement.js +1 -1
  434. package/dist/components/solution-item/customElement.js +1 -1
  435. package/dist/components/solution-item-accordion/customElement.js +1 -1
  436. package/dist/components/solution-item-details/customElement.js +1 -1
  437. package/dist/components/solution-item-diagram/customElement.js +1 -1
  438. package/dist/components/solution-item-icon/customElement.js +1 -1
  439. package/dist/components/solution-item-sharing/customElement.js +1 -1
  440. package/dist/components/solution-organization-variables/customElement.js +1 -1
  441. package/dist/components/solution-resource-item/customElement.js +1 -1
  442. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  443. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  444. package/dist/components/solution-template-data/customElement.js +1 -1
  445. package/dist/components/solution-variables/customElement.js +1 -1
  446. package/dist/components/solutions-all-panel/customElement.js +1 -1
  447. package/dist/components/solutions-all-shell/customElement.js +1 -1
  448. package/dist/components/solutions-article-panel/customElement.js +1 -1
  449. package/dist/components/solutions-articles/customElement.js +1 -1
  450. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  451. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  452. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  453. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  454. package/dist/components/spatial-ref/customElement.js +1 -1
  455. package/dist/components/store-manager/customElement.js +1 -1
  456. package/dist/docs/api.json +126 -1
  457. package/dist/docs/docs.json +133 -2
  458. package/dist/docs/vscode.html-custom-data.json +7 -2
  459. package/dist/docs/web-types.json +34 -5
  460. package/dist/index.d.ts +15 -1
  461. package/dist/index.js +1 -1
  462. package/dist/loader.js +3 -3
  463. package/dist/types/lumina.d.ts +2 -1
  464. package/dist/types/preact.d.ts +2 -1
  465. package/dist/types/react.d.ts +2 -1
  466. package/dist/types/stencil.d.ts +2 -1
  467. package/package.json +1 -1
  468. package/dist/cdn/4UFLKP6T.js +0 -4
  469. package/dist/cdn/6FBUKPW2.js +0 -4
  470. package/dist/cdn/BP6NB6LJ.js +0 -18
  471. package/dist/cdn/NZUFRJWD.js +0 -4
  472. package/dist/cdn/S5AIQSGG.js +0 -18
  473. package/dist/cdn/T4PEWJBT.js +0 -4
  474. package/dist/cdn/V3STUVBX.js +0 -4
  475. package/dist/cdn/XMOLE7SD.js +0 -4
  476. package/dist/cdn/ZXBKW6YA.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a,b}from"./6Y37L4Y2.js";import"./QTN6BMW2.js";export{a as UserEditorTypes,b as UserSchema};
3
+ v1.0.3 */
4
+ import{a,b}from"./2JUQQJOQ.js";import"./K6A5BZGW.js";export{a as UserEditorTypes,b as UserSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{G as l,I}from"./UPVA5Z5X.js";import{h}from"./V3KV4ZPK.js";function w(i){return i.reduce((r,n)=>{let t=n.item.title||n.item.name;if(n.type==="Feature Service"&&(n.item.typeKeywords||[]).indexOf("View Service")<0&&r.indexOf(t)<0){let e=l(n,"properties.service.spatialReference.wkid");r.push({id:n.itemId,name:t,enabled:e.toString().startsWith(h),wkid:e})}return r},[])}function b(i){let r=x(i),n=r.reduce((t,e)=>(t.push(e.id),t),[]);return i.reduce((t,e)=>{if(n.indexOf(e.itemId)>-1){let d=r.filter(o=>o.id===e.itemId);t.push(y(e,i,d[0].dependencies))}return t},[])}function x(i){let r=[];function n(s,c){let u=s.findIndex(a=>c===a.itemId);return u>=0?s[u]:null}function t(s,c,u=[]){let a=n(i,s);if(a){let p={id:s,dependencies:[]};u.indexOf(s)<0&&(u.push(s),a.dependencies.forEach(m=>{let f=e.indexOf(m);f>=0&&e.splice(f,1),t(m,p.dependencies,u)})),c.push(p)}}let e=$(i),d=i.filter(s=>e.indexOf(s.itemId)<0).sort((s,c)=>c.dependencies.length-s.dependencies.length);e=e.concat(d.map(s=>s.itemId));let o=e.shift();for(;typeof o<"u";)t(o,r),o=e.shift();return r}function S(i){return[{id:"",title:i.geocodeUrl,value:"{{organization.helperServices.geocode:getDefaultLocatorURL}}"},{id:"",title:i.geometryUrl,value:"{{organization.helperServices.geometry.url}}"},{id:"",title:i.portalBaseUrl,value:"{{portalBaseUrl}}"},{id:"",title:i.routeUrl,value:"{{organization.helperServices.route.url}}"},{id:"",title:i.solutionItemExtent,value:"{{solutionItemExtent}}"}]}function U(i,r){let n=[];return i.forEach(t=>{let e={id:t.itemId,title:t.item.title||t.item.name,type:t.type,value:void 0,dependencies:[{id:t.itemId,title:r.itemId,value:`{{${t.itemId}.itemId}}`}]};t.item.url&&e.dependencies.push({id:t.itemId,title:r.url,value:`{{${t.itemId}.url}}`}),t.type==="Feature Service"&&(e.dependencies.push({id:t.itemId,title:r.solutionExtent,value:`{{${t.itemId}.solutionExtent}}`}),v(t.properties.layers||[],e,t,r),v(t.properties.tables||[],e,t,r)),n.push(e)}),n}function k(i,r){let n={};i.forEach(d=>{n[d.id]=d.enabled});let t=l(r,"params.wkid.default"),e=I(r,"params.wkid.attributes.required",!1);return t?{enabled:e,default:t,services:n}:{enabled:e,services:n}}function v(i,r,n,t){i.forEach(e=>{let d=e.name&&e.name.indexOf("||")>-1?e.name.split("||")[1].replace("}}","").trim():e.name;r.dependencies.push({id:n.itemId,title:`${d} (${t.id})`,value:`{{${n.itemId}.layer${e.id}.id}}`}),r.dependencies.push({id:n.itemId,title:`${d} (${t.name})`,value:`{{${n.itemId}.layer${e.id}.name||${d}}}`})})}function y(i,r,n){return{id:i.itemId||"",title:i.item.title||"",dependencies:g(n,r),type:i.item.type||"",typeKeywords:i.item.typeKeywords||[]}}function g(i,r){let n=[],t=i.reduce((e,d)=>(e.push(d.id),n.push(d),e),[]);return r.reduce((e,d)=>{let o=t.indexOf(d.itemId);return o>-1&&e.push(y(d,r,n[o].dependencies)),e},[])}function $(i){let r=i.map(n=>n.itemId);return i.forEach(n=>{(n.dependencies||[]).forEach(t=>{let e=r.indexOf(t);e>=0&&r.splice(e,1)})}),r}export{w as a,b,S as c,U as d,k as e};
3
+ v1.0.3 */
4
+ import{G as l,I}from"./U3K7MHYO.js";import{h}from"./YAAW6QK6.js";function w(i){return i.reduce((r,n)=>{let t=n.item.title||n.item.name;if(n.type==="Feature Service"&&(n.item.typeKeywords||[]).indexOf("View Service")<0&&r.indexOf(t)<0){let e=l(n,"properties.service.spatialReference.wkid");r.push({id:n.itemId,name:t,enabled:e.toString().startsWith(h),wkid:e})}return r},[])}function b(i){let r=x(i),n=r.reduce((t,e)=>(t.push(e.id),t),[]);return i.reduce((t,e)=>{if(n.indexOf(e.itemId)>-1){let d=r.filter(o=>o.id===e.itemId);t.push(y(e,i,d[0].dependencies))}return t},[])}function x(i){let r=[];function n(s,c){let u=s.findIndex(a=>c===a.itemId);return u>=0?s[u]:null}function t(s,c,u=[]){let a=n(i,s);if(a){let p={id:s,dependencies:[]};u.indexOf(s)<0&&(u.push(s),a.dependencies.forEach(m=>{let f=e.indexOf(m);f>=0&&e.splice(f,1),t(m,p.dependencies,u)})),c.push(p)}}let e=$(i),d=i.filter(s=>e.indexOf(s.itemId)<0).sort((s,c)=>c.dependencies.length-s.dependencies.length);e=e.concat(d.map(s=>s.itemId));let o=e.shift();for(;typeof o<"u";)t(o,r),o=e.shift();return r}function S(i){return[{id:"",title:i.geocodeUrl,value:"{{organization.helperServices.geocode:getDefaultLocatorURL}}"},{id:"",title:i.geometryUrl,value:"{{organization.helperServices.geometry.url}}"},{id:"",title:i.portalBaseUrl,value:"{{portalBaseUrl}}"},{id:"",title:i.routeUrl,value:"{{organization.helperServices.route.url}}"},{id:"",title:i.solutionItemExtent,value:"{{solutionItemExtent}}"}]}function U(i,r){let n=[];return i.forEach(t=>{let e={id:t.itemId,title:t.item.title||t.item.name,type:t.type,value:void 0,dependencies:[{id:t.itemId,title:r.itemId,value:`{{${t.itemId}.itemId}}`}]};t.item.url&&e.dependencies.push({id:t.itemId,title:r.url,value:`{{${t.itemId}.url}}`}),t.type==="Feature Service"&&(e.dependencies.push({id:t.itemId,title:r.solutionExtent,value:`{{${t.itemId}.solutionExtent}}`}),v(t.properties.layers||[],e,t,r),v(t.properties.tables||[],e,t,r)),n.push(e)}),n}function k(i,r){let n={};i.forEach(d=>{n[d.id]=d.enabled});let t=l(r,"params.wkid.default"),e=I(r,"params.wkid.attributes.required",!1);return t?{enabled:e,default:t,services:n}:{enabled:e,services:n}}function v(i,r,n,t){i.forEach(e=>{let d=e.name&&e.name.indexOf("||")>-1?e.name.split("||")[1].replace("}}","").trim():e.name;r.dependencies.push({id:n.itemId,title:`${d} (${t.id})`,value:`{{${n.itemId}.layer${e.id}.id}}`}),r.dependencies.push({id:n.itemId,title:`${d} (${t.name})`,value:`{{${n.itemId}.layer${e.id}.name||${d}}}`})})}function y(i,r,n){return{id:i.itemId||"",title:i.item.title||"",dependencies:g(n,r),type:i.item.type||"",typeKeywords:i.item.typeKeywords||[]}}function g(i,r){let n=[],t=i.reduce((e,d)=>(e.push(d.id),n.push(d),e),[]);return r.reduce((e,d)=>{let o=t.indexOf(d.itemId);return o>-1&&e.push(y(d,r,n[o].dependencies)),e},[])}function $(i){let r=i.map(n=>n.itemId);return i.forEach(n=>{(n.dependencies||[]).forEach(t=>{let e=r.indexOf(t);e>=0&&r.splice(e,1)})}),r}export{w as a,b,S as c,U as d,k as e};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as e,c as t,e as a,g as s,k as o}from"./Y3DUHGHO.js";var u=["hub:group:edit","hub:group:settings","hub:group:discussions","hub:group:create:followers","hub:group:create:association","hub:group:create:view","hub:group:create:edit","hub:group:create"],i={required:["name"],type:"object",properties:{name:e,summary:Object.assign(Object.assign({},t),{maxLength:250}),description:{type:"string"},_thumbnail:o,access:{type:"string",enum:["private","org","public"],default:"private"},isSharedUpdate:{type:"boolean",enum:[!1,!0],default:!1},leavingDisallowed:{type:"boolean",enum:[!1,!0],default:!1},isOpenData:{type:"boolean",enum:[!1,!0],default:!1},membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"},isViewOnly:{type:"boolean",enum:[!1,!0],default:!1},_join:{type:"string",enum:["invite","request","auto"],default:"invite"},hiddenMembers:{type:"boolean",enum:[!1,!0],default:!1},isDiscussable:s,tags:a}};export{u as a,i as b};
3
+ v1.0.3 */
4
+ import{a as e,c as t,e as a,g as s,k as o}from"./6BX7KLOB.js";var u=["hub:group:edit","hub:group:settings","hub:group:discussions","hub:group:create:followers","hub:group:create:association","hub:group:create:view","hub:group:create:edit","hub:group:create"],i={required:["name"],type:"object",properties:{name:e,summary:Object.assign(Object.assign({},t),{maxLength:250}),description:{type:"string"},_thumbnail:o,access:{type:"string",enum:["private","org","public"],default:"private"},isSharedUpdate:{type:"boolean",enum:[!1,!0],default:!1},leavingDisallowed:{type:"boolean",enum:[!1,!0],default:!1},isOpenData:{type:"boolean",enum:[!1,!0],default:!1},membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"},isViewOnly:{type:"boolean",enum:[!1,!0],default:!1},_join:{type:"string",enum:["invite","request","auto"],default:"invite"},hiddenMembers:{type:"boolean",enum:[!1,!0],default:!1},isDiscussable:s,tags:a}};export{u as a,i as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as n}from"./UGWIFJHW.js";import{a as s}from"./PZ4I46YP.js";import"./OSZNMAJF.js";import"./QUB3JPGL.js";import"./NDXSJLKV.js";import"./N2SRPBDD.js";import{a as r,b as i}from"./2TV52QIG.js";import"./SEVUDBYU.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import{a as o}from"./J6BS2SYI.js";import{a}from"./AWOD4YMZ.js";import"./SPYEGWSA.js";import"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import"./CH2V66RG.js";import"./6Y37L4Y2.js";import"./34K3UEZZ.js";import"./E6YH3G2I.js";import"./XF3EBBPG.js";import"./EIG2RIEW.js";import"./BSBALSW3.js";import"./BH7LJ72A.js";import"./EXPP7EHV.js";import"./5X2CUO2G.js";import"./57ICJINS.js";import"./MEIJQ75E.js";import"./SZVMRJ24.js";import"./XL6DAOQU.js";import"./BIVUMER5.js";import"./SFYHUOTM.js";import"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
3
+ v1.0.3 */
4
+ import{a as n}from"./B75MQOOF.js";import{a as s}from"./GGXBJUNZ.js";import"./WFX5NIY6.js";import"./7ANMAQXN.js";import"./EYRRGEDQ.js";import"./OVCAOTN3.js";import{a as r,b as i}from"./U4FYJZJP.js";import"./XRFRTU7J.js";import"./FP7ZUAH6.js";import"./JIYQEZGV.js";import{a as o}from"./IYR7CWGB.js";import{a}from"./7SATBHPG.js";import"./RIVVWLOA.js";import"./SYSMKBTI.js";import"./M7HTAQHD.js";import"./ASBGMXK6.js";import"./Z5LX6R34.js";import"./25MVNDYY.js";import"./2JUQQJOQ.js";import"./IGGGIS6G.js";import"./RHHKJQMD.js";import"./662JMFYU.js";import"./QA65PTZZ.js";import"./OHTIVF6F.js";import"./HUHLOYKI.js";import"./5QYTBWNM.js";import"./LHUMSMJ6.js";import"./FAZP4TDB.js";import"./UYOJLBLJ.js";import"./HQGW6OLO.js";import"./ERJKLBV2.js";import"./GKSL27GK.js";import"./NNUFXWGF.js";import"./GTEHENBQ.js";import"./2S6VPY6M.js";import"./JFDXJGIJ.js";import"./AHAZLVQ4.js";import"./IGM6T5LG.js";import"./SL2K7YIF.js";import"./6BX7KLOB.js";import"./K6A5BZGW.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{e,f as t}from"./Y3DUHGHO.js";import"./QTN6BMW2.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
3
+ v1.0.3 */
4
+ import{e,f as t}from"./6BX7KLOB.js";import"./K6A5BZGW.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var p;(function(e){e.BMP="bmp",e.GIF="gif",e.JPG="jpg",e.JPG_PNG="jpgpng",e.PNG="png",e.PNG8="png8",e.PNG24="png24",e.TIFF="tiff",e.PNG32="png32",e.BIP="bip",e.BSQ="bsq",e.LERC="lerc",e.CSV="csv",e.EXCEL="excel",e.FEATURE_COLLECTION="featureCollection",e.FILE_GDB="filegdb",e.GEOJSON="geojson",e.GEO_PACKAGE="geoPackage",e.JSON="json",e.KML="kml",e.SHAPEFILE="shapefile",e.SQLITE="sqlite"})(p||(p={}));var t;(function(e){e.PENDING="pending",e.PROCESSING="processing",e.CONVERTING="converting",e.COMPLETED="completed",e.FAILED="failed"})(t||(t={}));var P=class extends Error{constructor(s){super(s.rawMessage),this.name="ArcgisHubDownloadError",this.message=s.rawMessage,this.messageId=s.messageId,this.operation=s.operation}};export{p as a,t as b,P as c};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as s}from"./XHXK6QN7.js";var t=["hub:discussion:edit","hub:discussion:create","hub:discussion:settings","hub:discussion:settings:discussions"],i=Object.assign(Object.assign({},s),{required:["name"],properties:Object.assign(Object.assign({},s.properties),{prompt:{type:"string",default:"",maxLength:150},discussionSettings:{type:"object",properties:{allowedChannelIds:{type:"array",items:{type:"string"}},allowedLocations:{type:"array",items:{type:"object"}}}}})});export{t as a,i as b};
3
+ v1.0.3 */
4
+ import{a as s}from"./IGM6T5LG.js";var t=["hub:discussion:edit","hub:discussion:create","hub:discussion:settings","hub:discussion:settings:discussions"],i=Object.assign(Object.assign({},s),{required:["name"],properties:Object.assign(Object.assign({},s.properties),{prompt:{type:"string",default:"",maxLength:150},discussionSettings:{type:"object",properties:{allowedChannelIds:{type:"array",items:{type:"string"}},allowedLocations:{type:"array",items:{type:"object"}}}}})});export{t as a,i as b};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as v}from"./KF6SZPRF.js";import"./2KQCEICX.js";import"./UPVA5Z5X.js";import"./42CBSGWQ.js";import"./J6SZZA33.js";import"./LHDC2KUS.js";import"./VSEHM5KR.js";import"./MRDF2627.js";import"./XINOQA62.js";import"./MRHAUAK5.js";import"./OSZNMAJF.js";import"./QUB3JPGL.js";import"./NDXSJLKV.js";import"./N2SRPBDD.js";import"./6ZPPQS7Z.js";import"./BWY46B5P.js";import"./SPYEGWSA.js";import"./3UIKDYVX.js";import"./3XT4LMZL.js";import"./NHKMUTOW.js";import"./3UITRYPY.js";import"./E6YH3G2I.js";import"./RZBKYA4H.js";import"./NS7LWOIF.js";import{b}from"./TND7GPH7.js";import{a as m}from"./J67A6WYJ.js";import{A as f,D as w,c as p,d as s,f as u,n as o,p as _,y as g,z as i}from"./6ULIHKIX.js";import"./QTN6BMW2.js";var E=p`@layer{/** @license
3
+ v1.0.3 */
4
+ import{a as v}from"./XIXNUDIE.js";import"./JDBACJRP.js";import"./U3K7MHYO.js";import"./TSUZDZYM.js";import"./VS4BFKL3.js";import"./RRF3ACRD.js";import"./QLVDQY5R.js";import"./7XCWAN5G.js";import"./JMQV4UK4.js";import"./J5Z6XBH5.js";import"./WFX5NIY6.js";import"./7ANMAQXN.js";import"./EYRRGEDQ.js";import"./OVCAOTN3.js";import"./FP7ZUAH6.js";import"./JIYQEZGV.js";import"./RIVVWLOA.js";import"./SYSMKBTI.js";import"./M7HTAQHD.js";import"./ASBGMXK6.js";import"./Z5LX6R34.js";import"./RHHKJQMD.js";import"./DDZUXMVO.js";import"./CDJIJD2S.js";import{b}from"./UCX6I6GZ.js";import{a as m}from"./LN5LFFQL.js";import{A as f,D as w,c as p,d as s,f as u,n as o,p as _,y as g,z as i}from"./QSBF5CAO.js";import"./K6A5BZGW.js";var E=p`@layer{/** @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.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var t={type:"string",minLength:1,maxLength:250,format:"entityTitleValidator"},e={type:"string",minLength:1,maxLength:250,format:"siteEntityTitleValidator"},p={type:"string",maxLength:2048},r={type:"string",enum:["public","org","private"],default:"private"},o={type:"array",items:{type:"string"}},s={type:"array",items:{type:"string"},maxItems:20},n={type:"boolean",enum:[!0,!1],default:!0},i={type:"array",maxItems:4,items:{type:"string"}},a={type:"object",default:{type:"none"},properties:{type:{type:"string",enum:["none","org","custom"],default:"none"},name:{type:"string"}}},y={type:"object",properties:{baseViewItemId:{type:"array",items:{type:"string"},maxItems:1}}},E={type:"object",properties:{base64:{type:"string"},format:{type:"string"},fileName:{type:"string"},blob:{type:"object",properties:{type:{type:"string"},size:{type:"number"}}},url:{type:"string"}}},g={type:"object",properties:{title:{type:"string"},description:{type:"string"},canCollapse:{type:"boolean"},stages:{type:"array",items:{type:"object",properties:{title:{type:"string"},timeframe:{type:"string"},stageDescription:{type:"string"},status:{type:"string"},link:{type:"object",properties:{href:{type:"string"},title:{type:"string"}}}}}}}},c={type:"object",properties:{consentNotice:{type:"object",properties:{allowPrivacyConfig:{type:"boolean",default:!1},blocking:{type:"boolean",default:!1},disclaimer:{type:"array",items:[{type:"object",properties:{text:{type:"string"},lang:{type:"string"},default:{type:"boolean"}}}]},policyURL:{type:"string",pattern:"^(https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w.-]*)*\\/?$|^$"}}}}},l={type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$"};export{t as a,e as b,p as c,r as d,o as e,s as f,n as g,i as h,a as i,y as j,E as k,g as l,c as m,l as n};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var t="cannotDiscuss";export{t 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.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{d as r}from"./HE7ELDIR.js";import{a as o,b as n}from"./SLARORK6.js";import{D as c,c as s,d as i,y as d,z as a}from"./6ULIHKIX.js";import"./QTN6BMW2.js";var p=s`/** @license
3
+ v1.0.3 */
4
+ import{d as r}from"./6IAXNX3E.js";import{a as o,b as n}from"./XPXOPI63.js";import{D as c,c as s,d as i,y as d,z as a}from"./QSBF5CAO.js";import"./K6A5BZGW.js";var p=s`/** @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.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import"./QTN6BMW2.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
3
+ v1.0.3 */
4
+ import"./K6A5BZGW.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
@@ -1,3 +1,3 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  var R=(e=>(e.H="H",e.M="M",e.L="L",e))(R||{}),L=(e=>(e[e.ALLIGATOR_CRACKING=1]="ALLIGATOR_CRACKING",e[e.BLEEDING=2]="BLEEDING",e[e.BLOCK_CRACKING=3]="BLOCK_CRACKING",e[e.BUMPS_SAGS=4]="BUMPS_SAGS",e[e.CORRUGATION=5]="CORRUGATION",e[e.DEPRESSION=6]="DEPRESSION",e[e.EDGE_CRACKING=7]="EDGE_CRACKING",e[e.REFLECTION_CRACKING=8]="REFLECTION_CRACKING",e[e.LANE_SHOULDER_DROP_OFF=9]="LANE_SHOULDER_DROP_OFF",e[e.LONG_TRANS_CRACKING=10]="LONG_TRANS_CRACKING",e[e.PATCHING_UTIL_CUT_PATCHING=11]="PATCHING_UTIL_CUT_PATCHING",e[e.POLISHED_AGGREGATE=12]="POLISHED_AGGREGATE",e[e.POTHOLES=13]="POTHOLES",e[e.RAILROAD_CROSSING=14]="RAILROAD_CROSSING",e[e.RUTTING=15]="RUTTING",e[e.SHOVING=16]="SHOVING",e[e.SLIPPAGE_CRACKING=17]="SLIPPAGE_CRACKING",e[e.SWELL=18]="SWELL",e[e.RAVELING=19]="RAVELING",e[e.WEATHERING=20]="WEATHERING",e))(L||{});function S(e,o,u,t=!1){let r=Number.parseInt(e),n=R[o],l=Number.parseFloat(u.toString());if(Number.isNaN(l)||l===0)return"";let i=t===!0||t.toString().toLowerCase()==="true",s;switch(r){case 1:s=k;break;case 2:s=$;break;case 3:s=D;break;case 4:s=m;break;case 5:s=P;break;case 6:s=K;break;case 7:s=F;break;case 8:s=V;break;case 9:s=y;break;case 10:s=U;break;case 11:s=w;break;case 12:s=x;break;case 13:s=B;break;case 14:s=j;break;case 15:s=W;break;case 16:s=q;break;case 17:s=z;break;case 18:s=J;break;case 19:s=Q;break;case 20:s=X;break}if(s){let f=s(n,Math.log10(l)),g=p(f),d=`${e}|${o}|${g}|${l}`;return i&&(console.log(`Deduct value: ${f}`),console.log(`Rounded deduct value: ${g}`),console.log(`Formatted devduct value (type|severity|roundedDV|density): ${d}`)),d}else return""}function I(e,o=!1){let u=e.indexOf("|")>-1?h(e,o):e.split(",").map(n=>Number.parseFloat(n)),t=o===!0||o.toString().toLowerCase()==="true",r=0;if(u=u.filter(n=>Math.abs(n)>0),u.length>0){let n=Y(u,t);n!==void 0&&(r=100-p(n))}return r}function h(e,o){let u={},t=v(e),r=Object.keys(t).filter(n=>Object.keys(t[n]).length>1);return r.length>0&&r.forEach(n=>{let l,i,s,f,g,d;if(Object.keys(t[n]).forEach(c=>{c==="H"?(l=t[n][c].deductValue,f=t[n][c].density):c==="M"?(i=t[n][c].deductValue,g=t[n][c].density):(s=t[n][c].deductValue,d=t[n][c].density)}),l!==void 0&&i!==void 0&&s!==void 0&&f!==void 0&&g!==void 0&&d!==void 0){let c=(f&&g&&d?M:_)(n,l,i,s,f,g,d,o);c&&(u[n]=c,o&&(console.log("updates"),console.log(u)))}}),T(e,u)}function M(e,o,u,t,r,n,l,i){let s=I(`${o},${u},${t}`,!0);i&&(console.log("pci1"),console.log(s));let f=l+n,g=N(e,"M",f.toString(),o,i),d=n+r,c=N(e,"H",d.toString(),t,i),b=l+r,H=N(e,"H",b.toString(),u,i),O=l+n+r,A=N(e,"H",O.toString(),0,i);i&&(console.log("low med pci2"),console.log(g.pci),console.log("med high pci2"),console.log(c.pci),console.log("low high pci2"),console.log(H.pci),console.log("low med high pci2"),console.log(A.pci));let E=[g,c,H,A].reduce((C,G)=>G.pci>s&&(!C||G.pci>C.pci)?G:C,void 0);return E?E.dv:void 0}function _(e,o,u,t,r,n,l,i){let s=I(`${o||u},${t||u}`,!0);i&&(console.log("pci1"),console.log(s));let f=r||n,g=f+(l||n),d=N(e,f===r?"H":"M",g.toString(),0,i);return i&&(console.log("pci2"),console.log(d.pci)),d.pci>s?d.dv:void 0}function N(e,o,u,t,r){let n=S(e,o,u).split("|"),l=Number.parseFloat(n[2]);return{pci:I(`${n[2]},${t}`,r),dv:t?[l,t]:[l]}}function v(e){return e.split(",").reduce((o,u)=>{let t=u.split("|"),r=t[0],n=t[1],l=Number.parseFloat(t[2]),i=Number.parseFloat(t[3]);return o[r]||(o[r]={}),o[r][n]={deductValue:l,density:i},o},{})}function T(e,o){let u=[];return e.split(",").reduce((t,r)=>{let n=r.split("|"),l=n[0],i=Number.parseFloat(n[2]);return Object.keys(o).length>0&&o[l]?(u.push(l),t.push(...o[l]),delete o[l]):u.indexOf(l)<0&&t.push(i),t},[])}function a(e,o){return o.reduce((u,t,r)=>u+=r===0?t:r===1?t*e:t*Math.pow(e,r),0)}function p(e){return Math.round(e*10)/10}function k(e,o){return a(o,e==="H"?[30.71,29.22,9.407,-6.981,-2.158,3.047,-.6578]:e==="M"?[21.62,21.32,5.194,-1.343,.2341]:[11.31,16.05,7.572,-1.471])}function $(e,o){return a(o,e==="H"?[5.343,6.927,7.926,4.265,-.7582]:e==="M"?[2.38,5.483,4.128,.8366,.03659,.1052]:[.01391,.5079,1.576,1.191,.1329,.03823])}function D(e,o){return a(o,e==="H"?[7.926,11.93,8.826,3.432,-1.382]:e==="M"?[2.587,9.142,6.647,-.455,-.2439,.1107]:[.646,4.002,4.2,.4987,-.06269])}function m(e,o){return a(o,e==="H"?[52.77,38.07,8.964,-.4148,-1.589,2.478]:e==="M"?[24.66,27.86,15.73,3.295,-5.27,5.921,7.959]:[8.768,13.79,7.064,7.455,6.041,-1.739,-1.371])}function P(e,o){return a(o,e==="H"?[34.21,21.59,1.863,6.141,-.687,-1.885,.4916]:e==="M"?[15.78,19.69,6.276,-2.124,.5868,.06045]:[2.173,5.609,5.976,-.7348,-.2172,1.494,-.5659])}function K(e,o){return a(o,e==="H"?[17.84,5.904,9.406,18.28,-2.753,-7.798,2.402]:e==="M"?[8.471,3.171,10.25,12.2,-.9687,-4.601,1.079]:[4.836,-.7572,4.786,12.39,1.233,-4.871,.9749])}function F(e,o){return a(o,e==="H"?[14.99,13.5,10.62,5.15,-1.792,-2.826]:e==="M"?[9.177,10.26,5.704,-.6812,-.8588,.2123]:[3.049,4.802,4.058,-.3556,-1.55,1.02])}function V(e,o){return a(o,e==="H"?[14.99,17.21,27.63,31.13,-20.94,-18.82,9.985]:e==="M"?[9.9193,10.88,8.073,14.8,-3.792,-9.583,3.651]:[2.356,6.664,3.717,-1.393,1.94,1.785,-.9707])}function y(e,o){return a(o,e==="H"?[7.549,6.907,7.284,9.304,2.064]:e==="M"?[4.02,1.744,14.36,15.92,-40.22,23.6]:[2.004,1.065,9.706,11.75,-27.52,15.04])}function U(e,o){return a(o,e==="H"?[19.56,24.06,12.12,9.336,1.532,-4.396]:e==="M"?[9.751,15.53,4.719,1.369,1.206,-1.164]:[2.347,9.074,8.424,-1.338,-1.873,1.144])}function w(e,o){return a(o,e==="H"?[20.15,16.55,5.415,10.77,3.257,-4.502]:e==="M"?[10.28,12.71,6.174,1.928,.6923,-.4673]:[2.523,6.892,5.702,2.407,.2185,-.8722])}function x(e,o){return a(o,e==="H"||e==="M"||e==="L"?[3.417,-26.82,71.15,-76.22,38.52,-6.904]:[])}function B(e,o){return a(o,e==="H"?[110.7,60.66,2.378,-2.664]:e==="M"?[90.47,60.41,-.1123,-4.746]:[58.19,40.53,2.884,-1.443,.1195])}function j(e,o){return a(o,e==="H"?[20,38.64,-62.82,193.6,-162.7,41.22]:e==="M"?[6.994,23.47,-52.3,167.3,-143.6,37.64]:[1.998,-.7488,13.8,-.7917,-1.981])}function W(e,o){return a(o,e==="H"?[27.61,25.19,8.557,1.65,-2.203]:e==="M"?[18.47,20.77,6.617,-1.13,-2.286]:[8.833,14.84,3.129,.1451,2.438,-1.279])}function q(e,o){return a(o,e==="H"?[18.7,20.17,10.3,4.694,1.331,-2.61]:e==="M"?[10.39,14.78,5.488,4.001,3.23,-2.387]:[4.002,10.66,6.332,-.5226,-.1923])}function z(e,o){return a(o,e==="H"?[19.73,32.21,25.87,-2.871,-10.55,1.496,.7393]:e==="M"?[11.38,18.55,18.38,1.628,-7.596,.5841,.5946]:[5.144,12.95,11.95,-.833,-2.995,1.325,-.2113])}function J(e,o){return a(o,e==="H"?[34,16.84,-23.09,41.17,-14.84]:e==="M"?[12,15.67,20.59,-28.33,21,-5.508]:[1.995,11.9,-12.83,16.74,-5.361])}function Q(e,o){return a(o,e==="H"?[16.77,10.67,5.758,12.9,-.0633,-5.659,1.48]:e==="M"?[8.512,5.106,1.63,3.469,1.028,-1.211,.1938]:[])}function X(e,o){return a(o,e==="H"?[3.673,3.349,2.598,-1.233,2.754,2.434,-1.485]:e==="M"?[1.12,.9769,.93,-.5955,1.041,1.111,-.614]:[-.0386,-.0736,.834,1.63,-.0287,-.639,.1515])}function Y(e,o){let u,t=e.filter(r=>r>2);if(t.length<=1)u=t.reduce((r,n)=>(r+=n,r),0),o&&(console.log("If none or only one individual deduct value is greater"),console.log("than two, the total value is used in place of the maximum CD"),console.log(`Max CDV: ${u}`));else{let r=e.sort((i,s)=>s-i),n=r[0],l=1+9/98*(100-n);if(o&&(console.log(`Deduct values sorted in descending order: ${r}`),console.log(`Highest deduct value: ${n}`),console.log(`Allowable number of deducts including fractions: ${l}`)),l<=10){let i=Z(r,l);o&&console.log(`Reduce deduct values to the m largest including the fractional part: ${i}`);let s=e1(i,o);u=Math.max(...s),o&&console.log(`Max CDV: ${u}`)}else o&&console.log("Allowable number of deducts including fractions (must be less than or equal to ten)")}return u}function Z(e,o){let u=o-Math.floor(o);return e.length<o?e:e.reduce((t,r,n)=>(n+1<o?t.push(r):u>0&&t.push(p(r*u)),t),[])}function e1(e,o){let u=e.length,t=[];for(;u>=1;)o&&console.log(`vals: ${e}`),t.push(o1(e,o)),u-=1,e.splice(u,1,2);return t}function o1(e,o){let u=e.reduce((r,n)=>r+=n,0),t=e.reduce((r,n)=>n>2?r+1:r,0);return t1(u,t,o)}function t1(e,o,u){let t=a(e,{7:[-9.482,.6045,3563e-7,-5448e-9],6:[-8.165,.5724,4266e-7,-4254e-9],5:[-7.932,.6091,3464e-7,-4265e-9],4:[-6.78,.6301,7376e-7,-6357e-9],3:[-5.015,.7546,-43e-5,-3075e-9],2:[-1.668,.7992,-3013e-7,-5214e-9],1:[1651e-18,1,-4249e-21,1149e-22]}[o>=7?7:o]);return u&&(console.log(`totalDV: ${e}`),console.log(`q: ${o}`),console.log(`CDV: ${t}`)),t}export{R as a,L as b,S as c,I as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as t}from"./CH2V66RG.js";import"./6Y37L4Y2.js";import"./34K3UEZZ.js";import"./E6YH3G2I.js";import"./XF3EBBPG.js";import"./EIG2RIEW.js";import"./BSBALSW3.js";import"./BH7LJ72A.js";import"./EXPP7EHV.js";import"./5X2CUO2G.js";import"./57ICJINS.js";import"./MEIJQ75E.js";import"./SZVMRJ24.js";import"./XL6DAOQU.js";import"./BIVUMER5.js";import"./SFYHUOTM.js";import"./TYK6M57O.js";import"./MDBE6QB6.js";import"./BBCZTH66.js";import"./MWZRE5PN.js";import"./XHXK6QN7.js";import"./HX4VINVI.js";import"./Y3DUHGHO.js";import"./QTN6BMW2.js";var o=async(e,s,l)=>{let a=!s.hasMapQuestion;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.settings.label`,elements:[{labelKey:`${e}.fields.displayMap.label`,scope:"/properties/displayMap",type:"Control",rule:{effect:t.DISABLE,condition:{scope:"/properties/hasMapQuestion",schema:{const:!1}}},options:{control:"hub-field-input-tile-select",type:"radio",labels:[`{{${e}.fields.displayMap.enabled.label:translate}}`,`{{${e}.fields.displayMap.disabled.label:translate}}`],descriptions:[`{{${e}.fields.displayMap.enabled.description:translate}}`,`{{${e}.fields.displayMap.disabled.description:translate}}`],icons:["sidecar","form-elements"],layout:"horizontal"}},{type:"Notice",options:{notice:{configuration:{id:"map-question-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.fields.displayMap.notice.title:translate}}`,body:`{{${e}.fields.displayMap.notice.message:translate}}`,autoShow:!0}},rules:[{effect:t.SHOW,conditions:[a]}]}]}]}};export{o as buildUiSchema};
3
+ v1.0.3 */
4
+ import{a as t}from"./25MVNDYY.js";import"./2JUQQJOQ.js";import"./IGGGIS6G.js";import"./RHHKJQMD.js";import"./662JMFYU.js";import"./QA65PTZZ.js";import"./OHTIVF6F.js";import"./HUHLOYKI.js";import"./5QYTBWNM.js";import"./LHUMSMJ6.js";import"./FAZP4TDB.js";import"./UYOJLBLJ.js";import"./HQGW6OLO.js";import"./ERJKLBV2.js";import"./GKSL27GK.js";import"./NNUFXWGF.js";import"./GTEHENBQ.js";import"./2S6VPY6M.js";import"./JFDXJGIJ.js";import"./AHAZLVQ4.js";import"./IGM6T5LG.js";import"./SL2K7YIF.js";import"./6BX7KLOB.js";import"./K6A5BZGW.js";var o=async(e,s,l)=>{let a=!s.hasMapQuestion;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.settings.label`,elements:[{labelKey:`${e}.fields.displayMap.label`,scope:"/properties/displayMap",type:"Control",rule:{effect:t.DISABLE,condition:{scope:"/properties/hasMapQuestion",schema:{const:!1}}},options:{control:"hub-field-input-tile-select",type:"radio",labels:[`{{${e}.fields.displayMap.enabled.label:translate}}`,`{{${e}.fields.displayMap.disabled.label:translate}}`],descriptions:[`{{${e}.fields.displayMap.enabled.description:translate}}`,`{{${e}.fields.displayMap.disabled.description:translate}}`],icons:["sidecar","form-elements"],layout:"horizontal"}},{type:"Notice",options:{notice:{configuration:{id:"map-question-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.fields.displayMap.notice.title:translate}}`,body:`{{${e}.fields.displayMap.notice.message:translate}}`,autoShow:!0}},rules:[{effect:t.SHOW,conditions:[a]}]}]}]}};export{o 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.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{b as d}from"./SLARORK6.js";import{D as h,c as o,d as a,n as r,y as c,z as l}from"./6ULIHKIX.js";import"./QTN6BMW2.js";var u=o`:host{display:block}.chat-container{display:flex;flex-direction:column;gap:10px;max-width:400px;background-color:#d3d3d3;border-radius:10px;padding:10px}.chat-panel{--calcite-panel-background-color: "blue"}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:300px;max-height:300px;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;width:90%;--calcite-card-background-color: "blue";--calcite-card-border-color: "blue";color:#fff}.system-message{align-self:flex-start;background:var(--calcite-ui-foreground-1);border-radius:8px;width:90%;--calcite-card-background-color: "white";--calcite-card-border-color: "white"}.message-content{padding:0}.chat-input{display:flex;gap:8px}`,n=class extends c{constructor(){super(...arguments),this.handleSendMessage=async()=>{if(!this.inputRef?.value.trim())return;this._isLoading=!0;let e=this.inputRef.value.trim(),i={message:e};if(this.conversationStore.conversationId!==null){if(i={message:e,conversationId:this.conversationStore.conversationId},this.token){let s=await this.requestAIServer(i,this.token);this.loopRequest(s,this.token)}}else if(this.token){let s=await this.requestAIServer(i,this.token);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token)}this.inputRef.value=""},this.loopRequest=async(e,i)=>{let s={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId},t=await this.requestAIServer(s,i);t.hasMore?(t.message&&t.message!==null&&(this._isValidJson(t.message)!==!1?(this.jsonMessage=this._isValidJson(t.message),t.context?.intent==="inspection"?this.messages=[...this.messages,{text:this.jsonMessage,sender:t.context.author,format:"json",inquiryId:t.inquiryId}]:t.context&&(this.jsonMessage.response&&this.jsonMessage.response==="no"?(this._resetConversation(),this.messages=[...this.messages,{text:"What else can I help you with?",sender:t.context.author,format:"text",inquiryId:t.inquiryId}]):this.messages=[...this.messages,{text:this.jsonMessage.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])):t.context&&(this.messages=[...this.messages,{text:t.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])),this.loopRequest(t,i)):this._isLoading=!1},this.requestAIServer=async(e,i)=>await fetch(this.AIServerUrl,{method:"POST",headers:{"Content-Type":"application/json",token:i},body:JSON.stringify(e)}).then(async s=>await s.json()).then(s=>s||"error").catch(s=>s),this.resetChat=()=>{this._resetConversation(),this.messages=[],this.inputRef&&(this.inputRef.value="")},this._isValidJson=e=>{try{return JSON.parse(e)}catch{return!1}},this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setRef=e=>{this.inputRef=e},this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this.jsonMessage={},this.messages=[],this._isLoading=!1,this.AIServerUrl="http://localhost:8080/skills/solution_deployment/chat",this.token=null,this.arcgisCreateSolutionEvent=r()}static{this.properties={conversationStore:16,jsonMessage:16,messages:16,_isLoading:16,AIServerUrl:1,token:1}}static{this.styles=u}emitCreateSolutionEvent(e){return console.log(e),this.arcgisCreateSolutionEvent.emit()}render(){return a`<div class="chat-container"><calcite-panel class="chat-panel" heading="Solution Assistant">${this.messages.length>0?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent>Reset</calcite-button>`:""}<div class="chat-messages">${this.messages.map(e=>a`<calcite-card class=${l(e.sender==="human"?"user-message":"system-message")}><div class="message-content"><strong>${e.sender==="human"?"You:":"AI:"}</strong>${e.format==="json"?this.renderExtraInformation(e.text):e.text}</div></calcite-card>`)}</div></calcite-panel><div class="chat-input"><calcite-text-area placeholder="Type your message..." auto-grow value="I would like to assess and capture the condition of bus stops in our city?" ${d(this._setRef)}></calcite-text-area><calcite-button @click=${this.handleSendMessage} .disabled=${!!this._isLoading}>${this._isLoading?a`<calcite-loader label=processing... inline></calcite-loader>`:"Send"}</calcite-button></div></div>`}renderExtraInformation(e){return a`<calcite-accordion><calcite-accordion-item description="View the JSON schema" heading="View Schema"><calcite-card><calcite-button @click=${()=>this.emitCreateSolutionEvent(e)}>Create Solution</calcite-button></calcite-card><calcite-card><pre>${JSON.stringify(e,null,2)}</pre></calcite-card></calcite-accordion-item></calcite-accordion>`}};h("arcgis-solutions-assistant",n);export{n as ArcgisSolutionsAssistant};
3
+ v1.0.3 */
4
+ import{b as d}from"./XPXOPI63.js";import{D as h,c as o,d as a,n as r,y as c,z as l}from"./QSBF5CAO.js";import"./K6A5BZGW.js";var u=o`:host{display:block}.chat-container{display:flex;flex-direction:column;gap:10px;max-width:400px;background-color:#d3d3d3;border-radius:10px;padding:10px}.chat-panel{--calcite-panel-background-color: "blue"}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:300px;max-height:300px;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;width:90%;--calcite-card-background-color: "blue";--calcite-card-border-color: "blue";color:#fff}.system-message{align-self:flex-start;background:var(--calcite-ui-foreground-1);border-radius:8px;width:90%;--calcite-card-background-color: "white";--calcite-card-border-color: "white"}.message-content{padding:0}.chat-input{display:flex;gap:8px}`,n=class extends c{constructor(){super(...arguments),this.handleSendMessage=async()=>{if(!this.inputRef?.value.trim())return;this._isLoading=!0;let e=this.inputRef.value.trim(),i={message:e};if(this.conversationStore.conversationId!==null){if(i={message:e,conversationId:this.conversationStore.conversationId},this.token){let s=await this.requestAIServer(i,this.token);this.loopRequest(s,this.token)}}else if(this.token){let s=await this.requestAIServer(i,this.token);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token)}this.inputRef.value=""},this.loopRequest=async(e,i)=>{let s={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId},t=await this.requestAIServer(s,i);t.hasMore?(t.message&&t.message!==null&&(this._isValidJson(t.message)!==!1?(this.jsonMessage=this._isValidJson(t.message),t.context?.intent==="inspection"?this.messages=[...this.messages,{text:this.jsonMessage,sender:t.context.author,format:"json",inquiryId:t.inquiryId}]:t.context&&(this.jsonMessage.response&&this.jsonMessage.response==="no"?(this._resetConversation(),this.messages=[...this.messages,{text:"What else can I help you with?",sender:t.context.author,format:"text",inquiryId:t.inquiryId}]):this.messages=[...this.messages,{text:this.jsonMessage.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])):t.context&&(this.messages=[...this.messages,{text:t.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])),this.loopRequest(t,i)):this._isLoading=!1},this.requestAIServer=async(e,i)=>await fetch(this.AIServerUrl,{method:"POST",headers:{"Content-Type":"application/json",token:i},body:JSON.stringify(e)}).then(async s=>await s.json()).then(s=>s||"error").catch(s=>s),this.resetChat=()=>{this._resetConversation(),this.messages=[],this.inputRef&&(this.inputRef.value="")},this._isValidJson=e=>{try{return JSON.parse(e)}catch{return!1}},this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setRef=e=>{this.inputRef=e},this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this.jsonMessage={},this.messages=[],this._isLoading=!1,this.AIServerUrl="http://localhost:8080/skills/solution_deployment/chat",this.token=null,this.arcgisCreateSolutionEvent=r()}static{this.properties={conversationStore:16,jsonMessage:16,messages:16,_isLoading:16,AIServerUrl:1,token:1}}static{this.styles=u}emitCreateSolutionEvent(e){return console.log(e),this.arcgisCreateSolutionEvent.emit()}render(){return a`<div class="chat-container"><calcite-panel class="chat-panel" heading="Solution Assistant">${this.messages.length>0?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent>Reset</calcite-button>`:""}<div class="chat-messages">${this.messages.map(e=>a`<calcite-card class=${l(e.sender==="human"?"user-message":"system-message")}><div class="message-content"><strong>${e.sender==="human"?"You:":"AI:"}</strong>${e.format==="json"?this.renderExtraInformation(e.text):e.text}</div></calcite-card>`)}</div></calcite-panel><div class="chat-input"><calcite-text-area placeholder="Type your message..." auto-grow value="I would like to assess and capture the condition of bus stops in our city?" ${d(this._setRef)}></calcite-text-area><calcite-button @click=${this.handleSendMessage} .disabled=${!!this._isLoading}>${this._isLoading?a`<calcite-loader label=processing... inline></calcite-loader>`:"Send"}</calcite-button></div></div>`}renderExtraInformation(e){return a`<calcite-accordion><calcite-accordion-item description="View the JSON schema" heading="View Schema"><calcite-card><calcite-button @click=${()=>this.emitCreateSolutionEvent(e)}>Create Solution</calcite-button></calcite-card><calcite-card><pre>${JSON.stringify(e,null,2)}</pre></calcite-card></calcite-accordion-item></calcite-accordion>`}};h("arcgis-solutions-assistant",n);export{n as ArcgisSolutionsAssistant};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as w}from"./G57AFF3K.js";import{e as E}from"./I2QY6RRM.js";import{B as y,C as b}from"./6OFBEWUU.js";import"./5Q6ZKF23.js";import{a as F,c as l,d as C,e as x,f as m}from"./6CHYPF6P.js";import"./QTN6BMW2.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":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:normal}.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__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;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:calc(300ms * 2)}}.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}",k=S,u={base:"instant-apps-filter-list",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",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],expanded:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}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:u.operatorDesc,heading:this.messages?.[t],expanded:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,title:this.messages?.resetDatePicker,scale:"s"}))):void 0}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("calcite-action",{id:t,slot:"actions-end",appearance:"transparent",text:this.messages?.zoomTo,title:this.messages?.zoomTo,scale:"s",icon:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)}):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="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)}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:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),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 n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===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:`'${g(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),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.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 n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} 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 n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.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 a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}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 n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&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"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 updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(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))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,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:n,selectedFields:s,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:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{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(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];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:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){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.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&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 n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.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 n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.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 i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}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=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.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==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.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((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
3
+ v1.0.3 */
4
+ import{a as w}from"./NRBFWIU7.js";import{e as E}from"./3U5MCBML.js";import{B as y,C as b}from"./ZWTSIAER.js";import"./ICTEUNHA.js";import{a as F,c as l,d as C,e as x,f as m}from"./QEC76CAD.js";import"./K6A5BZGW.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":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:normal}.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__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;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:calc(300ms * 2)}}.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}",k=S,u={base:"instant-apps-filter-list",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",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],expanded:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}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:u.operatorDesc,heading:this.messages?.[t],expanded:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,title:this.messages?.resetDatePicker,scale:"s"}))):void 0}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("calcite-action",{id:t,slot:"actions-end",appearance:"transparent",text:this.messages?.zoomTo,title:this.messages?.zoomTo,scale:"s",icon:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)}):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="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)}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:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),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 n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===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:`'${g(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),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.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 n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} 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 n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.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 a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}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 n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&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"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 updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(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))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,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:n,selectedFields:s,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:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{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(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];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:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){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.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&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 n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.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 n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.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 i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}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=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.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==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.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((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{a as o}from"./N2SRPBDD.js";function r(n,t){let e;t.authentication&&(e=t.authentication.token);let a=t.authentication?`?token=${e}`:"";return n&&o(`${n}${a}`)}export{r as a};
3
+ v1.0.3 */
4
+ import{a as o}from"./OVCAOTN3.js";function r(n,t){let e;t.authentication&&(e=t.authentication.token);let a=t.authentication?`?token=${e}`:"";return n&&o(`${n}${a}`)}export{r as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{d as w,e as L}from"./MCOVXOZE.js";import"./V3KV4ZPK.js";import"./NS7LWOIF.js";import{a as c,b as p}from"./SLARORK6.js";import{b}from"./TND7GPH7.js";import{a as V}from"./J67A6WYJ.js";import{D as v,c as y,d as l,n as h,p as f,y as M,z as m}from"./6ULIHKIX.js";import"./QTN6BMW2.js";var S=y`@layer{/** @license
3
+ v1.0.3 */
4
+ import{d as w,e as L}from"./NZJICJCJ.js";import"./YAAW6QK6.js";import"./CDJIJD2S.js";import{a as c,b as p}from"./XPXOPI63.js";import{b}from"./UCX6I6GZ.js";import{a as V}from"./LN5LFFQL.js";import{D as v,c as y,d as l,n as h,p as f,y as M,z as m}from"./QSBF5CAO.js";import"./K6A5BZGW.js";var S=y`@layer{/** @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.0/esri/copyright.txt for details.
3
- v1.0.2 */
3
+ v1.0.3 */
4
4
  function a(t){let e=t;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://qaext.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://devext.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(e="https://www.arcgis.com"),e}export{a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.2 */
4
- import{b as c}from"./3XT4LMZL.js";import{a as b}from"./NHKMUTOW.js";import{a as u}from"./3UITRYPY.js";function a(t,e,r,s,n,l){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:l||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function U(t,e,r,s){switch(r){case"item":return k(t,e,s);case"group":return E(t,e,s);case"event":return y(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function k(t,e,r){t=f(t);let s,n=u(r,"filters")||[],l=u(r,"context"),i=h(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=a(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=a(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=a(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=l.trustedOrgIds.filter(p=>p!==l.currentUser.orgId&&p!==m(l));o.length&&(s=a(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(l);g&&(s=a(t,e,[{predicates:[{orgid:g}]},...n],i,"item",l.isCommunityOrg?v(g,l):void 0));break;case"livingAtlas":d(e,r),s=a(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=a(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}function v(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function E(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...l],i,"group");break;case"viewGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...l],i,"group");break;case"allGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:[""]}]},...l],i,"group");break;case"myGroups":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...l],i,"group");break;case"orgGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...l],i,"group");break;case"communityGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...l],i,"group");break;case"publicGroups":s=a(t,e,[{predicates:[{access:"public"}]},...l],i,"group");break}return s}function y(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...l],i,"event");break;case"orgEvents":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...l],i,"event");break;case"worldEvents":s=a(t,e,[{predicates:[{access:["public","private","org"]}]},...l],i,"event");break}return s}function w(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function O(){return["appAndMap","dataset","document","feedback","site","project"]}function h(t,e,r){t=f(t);let s=w(t,e),n=O();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}export{U as a};
3
+ v1.0.3 */
4
+ import{b as c}from"./M7HTAQHD.js";import{a as b}from"./ASBGMXK6.js";import{a as u}from"./Z5LX6R34.js";function a(t,e,r,s,n,l){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:l||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function U(t,e,r,s){switch(r){case"item":return k(t,e,s);case"group":return E(t,e,s);case"event":return y(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function k(t,e,r){t=f(t);let s,n=u(r,"filters")||[],l=u(r,"context"),i=h(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=a(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=a(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=a(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=l.trustedOrgIds.filter(p=>p!==l.currentUser.orgId&&p!==m(l));o.length&&(s=a(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(l);g&&(s=a(t,e,[{predicates:[{orgid:g}]},...n],i,"item",l.isCommunityOrg?v(g,l):void 0));break;case"livingAtlas":d(e,r),s=a(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=a(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}function v(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function E(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...l],i,"group");break;case"viewGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...l],i,"group");break;case"allGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:[""]}]},...l],i,"group");break;case"myGroups":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...l],i,"group");break;case"orgGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...l],i,"group");break;case"communityGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...l],i,"group");break;case"publicGroups":s=a(t,e,[{predicates:[{access:"public"}]},...l],i,"group");break}return s}function y(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...l],i,"event");break;case"orgEvents":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...l],i,"event");break;case"worldEvents":s=a(t,e,[{predicates:[{access:["public","private","org"]}]},...l],i,"event");break}return s}function w(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function O(){return["appAndMap","dataset","document","feedback","site","project"]}function h(t,e,r){t=f(t);let s=w(t,e),n=O();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}export{U as a};