@esri/solutions-components 1.0.0-next.20250605 → 1.0.0-next.20250613

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 (489) hide show
  1. package/dist/assets/config/appConfig.json.d.ts +1 -1
  2. package/dist/assets/spatialReferences.json.d.ts +3 -0
  3. package/dist/cdn/{TULGRERT.js → 22VDIWCV.js} +2 -2
  4. package/dist/cdn/{ROVGEAF3.js → 274YYYMS.js} +2 -2
  5. package/dist/cdn/{SP2JO6Q3.js → 2CO25KUU.js} +2 -2
  6. package/dist/cdn/{HEPGER72.js → 2CXGIE2Y.js} +2 -2
  7. package/dist/cdn/{D37USTZ3.js → 2DKM6FJB.js} +2 -2
  8. package/dist/cdn/2EPS5SYY.js +18 -0
  9. package/dist/cdn/{4ZGXBIVH.js → 2IW5OPGT.js} +1 -1
  10. package/dist/cdn/{NE2UAOWL.js → 2J67PINK.js} +2 -2
  11. package/dist/cdn/{FSN5FQRG.js → 2JCMVX4M.js} +1 -1
  12. package/dist/cdn/{B22SBUCC.js → 2NUECUOL.js} +2 -2
  13. package/dist/cdn/{FJU4NZYE.js → 2PFHWIEU.js} +2 -2
  14. package/dist/cdn/{34F5RSDO.js → 2T3B74OY.js} +2 -2
  15. package/dist/cdn/{EJFAX7DQ.js → 2TBU3VSR.js} +3 -3
  16. package/dist/cdn/{XOLJEZVW.js → 2TJPUN6O.js} +2 -2
  17. package/dist/cdn/{7K5ZFURJ.js → 2Y73A3MC.js} +2 -2
  18. package/dist/cdn/{L23ZIKAY.js → 33L6GMXG.js} +2 -2
  19. package/dist/cdn/{KMPEI3WK.js → 377IXJY2.js} +1 -1
  20. package/dist/cdn/{LMBHKGYA.js → 3IMYYEAA.js} +2 -2
  21. package/dist/cdn/{UYHKYPA5.js → 3IRDRDFA.js} +2 -2
  22. package/dist/cdn/{FNEE7DUR.js → 3Q3S4KCD.js} +2 -2
  23. package/dist/cdn/45JZSDFM.js +32 -0
  24. package/dist/cdn/{CZL4FXMV.js → 4EDMGBIS.js} +2 -2
  25. package/dist/cdn/{2UP2HWNK.js → 4IS37ZST.js} +3 -3
  26. package/dist/cdn/{GK37CEKN.js → 4JCBZIU7.js} +2 -2
  27. package/dist/cdn/{XSPGKSFV.js → 4NASOTXM.js} +3 -3
  28. package/dist/cdn/{VLUKESNO.js → 4OT4W6QT.js} +2 -2
  29. package/dist/cdn/{R2CS5FOZ.js → 4QPHTDMN.js} +2 -2
  30. package/dist/cdn/{QB54S7F4.js → 5DPFMR4I.js} +1 -1
  31. package/dist/cdn/{F3L5GFZI.js → 5HO6CGS5.js} +2 -2
  32. package/dist/cdn/{I6Q6CZKU.js → 5NPDUIR3.js} +2 -2
  33. package/dist/cdn/{HPKI63DN.js → 5TICPJ6T.js} +1 -1
  34. package/dist/cdn/{AHQ3XGAS.js → 5UJ4IPXJ.js} +2 -2
  35. package/dist/cdn/{O6TVLT3A.js → 65PMG2PU.js} +2 -2
  36. package/dist/cdn/{MXZE6DRA.js → 66BP63VM.js} +2 -2
  37. package/dist/cdn/{5M4BUTK4.js → 66GDPGJ4.js} +2 -2
  38. package/dist/cdn/6AJFPNS6.js +18 -0
  39. package/dist/cdn/{GQGYZ5UC.js → 6DNHQQ3A.js} +2 -2
  40. package/dist/cdn/{I4DZFH7G.js → 6JQDE67P.js} +2 -2
  41. package/dist/cdn/{W2MSJDRL.js → 6MQ5O5LY.js} +2 -2
  42. package/dist/cdn/6MUGOANO.js +18 -0
  43. package/dist/cdn/6MV7IVTY.js +18 -0
  44. package/dist/cdn/{2IQP5CPJ.js → 6PO4KLK2.js} +1 -1
  45. package/dist/cdn/{3T72AHYQ.js → 6QYNVEGC.js} +2 -2
  46. package/dist/cdn/6RLCUNUI.js +4 -0
  47. package/dist/cdn/72ABS7Y2.js +4 -0
  48. package/dist/cdn/{XSYAZ3QX.js → 7DGHICZE.js} +2 -2
  49. package/dist/cdn/{TFY5N3WM.js → 7DTXJNDH.js} +2 -2
  50. package/dist/cdn/{ZRMVLR6Z.js → 7F5VKLCK.js} +1 -1
  51. package/dist/cdn/{CQZPEOV3.js → 7FEZLKY7.js} +2 -2
  52. package/dist/cdn/{P7IZEV4L.js → 7FVHNQUY.js} +2 -2
  53. package/dist/cdn/{NJS2N5K3.js → 7HNEFBST.js} +2 -2
  54. package/dist/cdn/{3CA2UUPB.js → 7J7JEO5J.js} +2 -2
  55. package/dist/cdn/7XO35MKM.js +4 -0
  56. package/dist/cdn/A72736JC.js +18 -0
  57. package/dist/cdn/{2K4LEPDI.js → AF64VHQT.js} +2 -2
  58. package/dist/cdn/{A6VHGI5U.js → AJP3NB7X.js} +2 -2
  59. package/dist/cdn/{3S7YVVVZ.js → B25NMROT.js} +2 -2
  60. package/dist/cdn/{MUSGKJHI.js → B3A3AMPV.js} +2 -2
  61. package/dist/cdn/{WNKH5IG6.js → B7UAO4LR.js} +2 -2
  62. package/dist/cdn/{SA6AJPBT.js → BAKMXZ7G.js} +2 -2
  63. package/dist/cdn/BJUDP4CV.js +4 -0
  64. package/dist/cdn/BNKH37TY.js +4 -0
  65. package/dist/cdn/{6FA2FL3C.js → BOD65ZU4.js} +2 -2
  66. package/dist/cdn/{YNKDS73P.js → C2AIE2T2.js} +2 -2
  67. package/dist/cdn/C5K2J7H4.js +4 -0
  68. package/dist/cdn/{FM5G7FRN.js → CGZYVYUK.js} +2 -2
  69. package/dist/cdn/{XUJO4B4K.js → CILM6ZZK.js} +1 -1
  70. package/dist/cdn/CKVKWVOH.js +18 -0
  71. package/dist/cdn/{FCGJ2VZH.js → CXKUQGUM.js} +2 -2
  72. package/dist/cdn/{5TQFPX44.js → D2SRSVHL.js} +2 -2
  73. package/dist/cdn/D5LXSOBF.js +4 -0
  74. package/dist/cdn/{U4TZ7FO3.js → DASHRYX4.js} +1 -1
  75. package/dist/cdn/{GKGR6CL5.js → DBXTXE2N.js} +1 -1
  76. package/dist/cdn/{PB7R6EJV.js → DH27ODVZ.js} +2 -2
  77. package/dist/cdn/{CTHU3ZDE.js → DI4XSN3O.js} +2 -2
  78. package/dist/cdn/{DQBC22ZI.js → DVVDE2AV.js} +1 -1
  79. package/dist/cdn/DWW72S7K.js +4 -0
  80. package/dist/cdn/DX3JGAPB.js +18 -0
  81. package/dist/cdn/{3PFSXVNI.js → DXFLMIEH.js} +2 -2
  82. package/dist/cdn/{EACONZXN.js → DZYWA7TU.js} +2 -2
  83. package/dist/cdn/E4EIYPLL.js +18 -0
  84. package/dist/cdn/{JCWH5TGE.js → E64YVOUB.js} +2 -2
  85. package/dist/cdn/{7H5QHDT3.js → ENBESLVD.js} +1 -1
  86. package/dist/cdn/ERDIVQ25.js +4 -0
  87. package/dist/cdn/{DFH335RF.js → ERWALFVE.js} +2 -2
  88. package/dist/cdn/{TT63U5XZ.js → EXBNMAE6.js} +1 -1
  89. package/dist/cdn/{ZIZC3PWT.js → F2HTXL46.js} +2 -2
  90. package/dist/cdn/FIBRPI6R.js +4 -0
  91. package/dist/cdn/{GRYSKL7I.js → FK3LVUKS.js} +2 -2
  92. package/dist/cdn/{PMETOHGA.js → FOBRIUEH.js} +2 -2
  93. package/dist/cdn/{TWXRBFOF.js → FOWQMKU2.js} +2 -2
  94. package/dist/cdn/{PSFFYGFC.js → FSKJTN3T.js} +2 -2
  95. package/dist/cdn/{YHJQLEL5.js → FSX5ISCK.js} +2 -2
  96. package/dist/cdn/{V4EKVAQ2.js → FVBTKN3N.js} +1 -1
  97. package/dist/cdn/{B2ZUA2SA.js → FWKD6EYP.js} +2 -2
  98. package/dist/cdn/GAEUS47T.js +4 -0
  99. package/dist/cdn/GFZBEF2X.js +4 -0
  100. package/dist/cdn/{WL5HYM67.js → GOSNXA6P.js} +2 -2
  101. package/dist/cdn/GSQAL2KY.js +4 -0
  102. package/dist/cdn/{OG3HGM7O.js → GWKZIPJH.js} +2 -2
  103. package/dist/cdn/H47GJ6H5.js +18 -0
  104. package/dist/cdn/H5JSQR72.js +18 -0
  105. package/dist/cdn/{WUF32TGT.js → H6BFVMYO.js} +2 -2
  106. package/dist/cdn/{J7MKHQD5.js → HEG6SMKM.js} +2 -2
  107. package/dist/cdn/{RJCEZOX5.js → HN5MMXWZ.js} +2 -2
  108. package/dist/cdn/{4D4Q4I4W.js → HS6GUC22.js} +2 -2
  109. package/dist/cdn/I62RYEPM.js +18 -0
  110. package/dist/cdn/{NL5KEH5L.js → I6NUVFSK.js} +2 -2
  111. package/dist/cdn/{D3MPEAVK.js → IAC5U4FW.js} +2 -2
  112. package/dist/cdn/{N74LH7NF.js → IAJEOYDY.js} +2 -2
  113. package/dist/cdn/{PGUKFHUT.js → IALX23CK.js} +2 -2
  114. package/dist/cdn/{IJU4WTDO.js → IF3A3DMK.js} +2 -2
  115. package/dist/cdn/IJOSG4N5.js +4 -0
  116. package/dist/cdn/{4RAQTPVG.js → JBOSZIGQ.js} +2 -2
  117. package/dist/cdn/{76RSSIAE.js → JSD4D4IU.js} +2 -2
  118. package/dist/cdn/{CT4IZZF2.js → JTGDHH2G.js} +2 -2
  119. package/dist/cdn/{ZRH55DSX.js → JVLS6G3W.js} +2 -2
  120. package/dist/cdn/{7HTKOKPV.js → K7TEZ7PM.js} +1 -1
  121. package/dist/cdn/{UWKDTPML.js → KAVI5FEZ.js} +1 -1
  122. package/dist/cdn/{6VLCRTPG.js → KDUSIRYT.js} +2 -2
  123. package/dist/cdn/{T2W5CMQT.js → KF2RPBWH.js} +2 -2
  124. package/dist/cdn/{3I4OEU4B.js → KFHHWR7Q.js} +2 -2
  125. package/dist/cdn/KG63GRNH.js +4 -0
  126. package/dist/cdn/{LFRLPN2S.js → KKBRAZNY.js} +2 -2
  127. package/dist/cdn/{PDE5YS33.js → KUDZ5D7L.js} +2 -2
  128. package/dist/cdn/KWKZT7B5.js +4 -0
  129. package/dist/cdn/{NJ3ACG6J.js → KXVNO4A5.js} +2 -2
  130. package/dist/cdn/L3IKBHLJ.js +4 -0
  131. package/dist/cdn/LBJBSIYL.js +4 -0
  132. package/dist/cdn/{LU6KZOCK.js → LBK2B2KM.js} +2 -2
  133. package/dist/cdn/{H7DFMVRR.js → LCSMIPHM.js} +2 -2
  134. package/dist/cdn/{T4XGEVZN.js → LGQFUJLP.js} +2 -2
  135. package/dist/cdn/{VYJNSH4L.js → LHP5SZ5Q.js} +1 -1
  136. package/dist/cdn/{DUWNVKPD.js → LPFHKDLD.js} +1 -1
  137. package/dist/cdn/{ND4M76E6.js → M3QOKP23.js} +2 -2
  138. package/dist/cdn/M3VFFWM2.js +4 -0
  139. package/dist/cdn/M5U5CJTL.js +4 -0
  140. package/dist/cdn/{JJL2DXOK.js → M7AKF2FM.js} +2 -2
  141. package/dist/cdn/{NZBLJRVM.js → MFFHR33L.js} +2 -2
  142. package/dist/cdn/{5XNGEXET.js → MHCFCKU5.js} +1 -1
  143. package/dist/cdn/{26YTMD6C.js → MHGX7IC4.js} +1 -1
  144. package/dist/cdn/{FBEKXE53.js → MJUSVFEE.js} +1 -1
  145. package/dist/cdn/MK7REF7S.js +4 -0
  146. package/dist/cdn/MLNYLKNC.js +3 -0
  147. package/dist/cdn/{GB5JUBYE.js → MTEXHIUZ.js} +2 -2
  148. package/dist/cdn/MU7TM2F2.js +4 -0
  149. package/dist/cdn/{4SADSXOQ.js → MVCOK2CK.js} +2 -2
  150. package/dist/cdn/MVV4NNJ5.js +4 -0
  151. package/dist/cdn/{TTCDYWE4.js → MYTDLSKW.js} +2 -2
  152. package/dist/cdn/{STFHU6UJ.js → MZY3EBXD.js} +2 -2
  153. package/dist/cdn/{JURO4ER3.js → N3FYHZ2M.js} +2 -2
  154. package/dist/cdn/{JOUJ6B3E.js → N5IMLUEJ.js} +2 -2
  155. package/dist/cdn/{EKG3CXMP.js → N7LCND73.js} +1 -1
  156. package/dist/cdn/NCJNH5ZN.js +4 -0
  157. package/dist/cdn/{D4ZAKPPN.js → NI6W7D5A.js} +2 -2
  158. package/dist/cdn/{DL73WI42.js → NJMEDUPT.js} +2 -2
  159. package/dist/cdn/{DVL6LPJA.js → NLV4FZCC.js} +2 -2
  160. package/dist/cdn/{P3FCJEZO.js → NMMFRIU6.js} +2 -2
  161. package/dist/cdn/NQWWH65Q.js +4 -0
  162. package/dist/cdn/{3R3QUK2F.js → NSX3F6PK.js} +2 -2
  163. package/dist/cdn/{FJTPGHCP.js → NW4UWDEC.js} +2 -2
  164. package/dist/cdn/{VPORF37W.js → O3RRQFC7.js} +2 -2
  165. package/dist/cdn/OBFREFMC.js +18 -0
  166. package/dist/cdn/{ZFYQGS6G.js → OGBEUJ35.js} +2 -2
  167. package/dist/cdn/OGJBWQ2A.js +4 -0
  168. package/dist/cdn/{JANCWVYC.js → OHWUPE3N.js} +2 -2
  169. package/dist/cdn/OKEZMB6G.js +18 -0
  170. package/dist/cdn/{H6KOMX3B.js → OL7UAB72.js} +2 -2
  171. package/dist/cdn/{DUW7R25K.js → OOPBP5XR.js} +2 -2
  172. package/dist/cdn/OSZACI45.js +18 -0
  173. package/dist/cdn/{2WRSC34B.js → OTGVNQI2.js} +2 -2
  174. package/dist/cdn/{DKEAKE2K.js → OTLIXGZN.js} +1 -1
  175. package/dist/cdn/OVMH6ABW.js +18 -0
  176. package/dist/cdn/{T3YBLIK3.js → OXKZ4WL5.js} +2 -2
  177. package/dist/cdn/{PLF2X6MM.js → OZAZROXV.js} +2 -2
  178. package/dist/cdn/{WMFM2LJJ.js → P2M5FUPS.js} +2 -2
  179. package/dist/cdn/{NU2EHQKG.js → P3SBMKK7.js} +2 -2
  180. package/dist/cdn/{GNVUXY6S.js → PGM2D4BL.js} +2 -2
  181. package/dist/cdn/{CZC5E6PT.js → PKZWKHVE.js} +2 -2
  182. package/dist/cdn/{WSM3I5LT.js → PN3T6KFP.js} +2 -2
  183. package/dist/cdn/PQ4JMMPZ.js +4 -0
  184. package/dist/cdn/PQFKVNAR.js +4 -0
  185. package/dist/cdn/{BVF77XL3.js → PSNN2F3O.js} +2 -2
  186. package/dist/cdn/{W2YR6DCI.js → PTID7RWS.js} +2 -2
  187. package/dist/cdn/{XLFGPXWZ.js → PWFNEOMW.js} +2 -2
  188. package/dist/cdn/PY2SRIID.js +18 -0
  189. package/dist/cdn/PZ4QY622.js +4 -0
  190. package/dist/cdn/Q6RSACS2.js +4 -0
  191. package/dist/cdn/{T5NML6EW.js → QF52CHR2.js} +2 -2
  192. package/dist/cdn/{YESDLOJA.js → QFECG4JS.js} +2 -2
  193. package/dist/cdn/{SPASMJZ7.js → QH3NPYAQ.js} +2 -2
  194. package/dist/cdn/{JDEXVRJ5.js → QHKUHSB4.js} +2 -2
  195. package/dist/cdn/{EFQJYMT3.js → QMGASUOO.js} +2 -2
  196. package/dist/cdn/{6UUULLLC.js → QN7LS2QQ.js} +2 -2
  197. package/dist/cdn/{JPYE25NL.js → QQSAJPIY.js} +2 -2
  198. package/dist/cdn/{Q2SYWGNQ.js → QSZMGRE6.js} +2 -2
  199. package/dist/cdn/{T62HZRZ4.js → QV7PB2KD.js} +2 -2
  200. package/dist/cdn/{2P5UHGEH.js → QZITIAU7.js} +2 -2
  201. package/dist/cdn/{YNOM76J7.js → RAOIGUOR.js} +2 -2
  202. package/dist/cdn/{4RRDEPWJ.js → RBVM5G3M.js} +2 -2
  203. package/dist/cdn/{3RJL5JGR.js → REX5WEEL.js} +2 -2
  204. package/dist/cdn/{TB6EIWVL.js → RJ3KA2QH.js} +2 -2
  205. package/dist/cdn/{FUXLF2VF.js → RP24U6QA.js} +2 -2
  206. package/dist/cdn/{WZEIIAU2.js → RRKAGWN6.js} +2 -2
  207. package/dist/cdn/{CIHLT7JJ.js → RYBBDSVC.js} +2 -2
  208. package/dist/cdn/{KN36CLI6.js → S3YNSR6B.js} +1 -1
  209. package/dist/cdn/{IL2JAPH7.js → S7XCGTZK.js} +2 -2
  210. package/dist/cdn/{MVBPZBKK.js → SDSGL4OS.js} +2 -2
  211. package/dist/cdn/{KI4MEEVP.js → SGXXUYPR.js} +2 -2
  212. package/dist/cdn/{36QOQZUH.js → SHEOGGDB.js} +2 -2
  213. package/dist/cdn/SP5YHQIJ.js +18 -0
  214. package/dist/cdn/{OGO5SDYD.js → SPJHTFGW.js} +2 -2
  215. package/dist/cdn/T67LMZC2.js +4 -0
  216. package/dist/cdn/{I3DYDXPP.js → T6H5UYKM.js} +2 -2
  217. package/dist/cdn/{MANN6WHT.js → TC5MSHUC.js} +1 -1
  218. package/dist/cdn/{UXLQNMFU.js → TH36Z3EQ.js} +2 -2
  219. package/dist/cdn/{5WBJ7JHK.js → TPKKNJPF.js} +4 -4
  220. package/dist/cdn/{UTDSMFWL.js → TQ6RZ33F.js} +1 -1
  221. package/dist/cdn/{RPSFV63U.js → TW5CSUJI.js} +2 -2
  222. package/dist/cdn/{HBJNKM2C.js → TYZZAW7E.js} +2 -2
  223. package/dist/cdn/{PGUOGQLS.js → TZU3WM3P.js} +2 -2
  224. package/dist/cdn/{OGISVN6B.js → U5YN7LKZ.js} +1 -1
  225. package/dist/cdn/{ONPGGFF4.js → UC2ZDCJ4.js} +2 -2
  226. package/dist/cdn/{NUVLGW3I.js → UKVIZZJA.js} +2 -2
  227. package/dist/cdn/UKW2PIRS.js +4 -0
  228. package/dist/cdn/UOKEIQSK.js +4 -0
  229. package/dist/cdn/{WCDC3LA2.js → UPA7CZWG.js} +2 -2
  230. package/dist/cdn/{AOA73IL2.js → UPQTLWZA.js} +2 -2
  231. package/dist/cdn/{CH2SVK4L.js → UR3FAOLQ.js} +2 -2
  232. package/dist/cdn/{ELZ7PG6K.js → UY2NUYYG.js} +2 -2
  233. package/dist/cdn/{NLIFCBCW.js → UZYRU2CV.js} +2 -2
  234. package/dist/cdn/{FNTEHVST.js → V6CU25IV.js} +2 -2
  235. package/dist/cdn/V6ZZBJ75.js +4 -0
  236. package/dist/cdn/VC3IFEV6.js +18 -0
  237. package/dist/cdn/{ZMNMOEFY.js → VEEP6F3T.js} +2 -2
  238. package/dist/cdn/{LLHQVJKK.js → VEPIEGAH.js} +2 -2
  239. package/dist/cdn/{JGA5STLE.js → VH4KD2UB.js} +1 -1
  240. package/dist/cdn/VHMJSA7X.js +4 -0
  241. package/dist/cdn/VM6LPXEK.js +4 -0
  242. package/dist/cdn/{SBYXJC54.js → VRTRTGZA.js} +2 -2
  243. package/dist/cdn/{R3TVF6ES.js → VXBW6YBU.js} +2 -2
  244. package/dist/cdn/W3TTJTGV.js +4 -0
  245. package/dist/cdn/{F3B6EWIS.js → W4BK25RV.js} +2 -2
  246. package/dist/cdn/{MQX3K4RF.js → W4KUVWND.js} +3 -3
  247. package/dist/cdn/{FAMDDI7C.js → WCOVLACF.js} +2 -2
  248. package/dist/cdn/{XKZSGZGT.js → WDBQW7IX.js} +2 -2
  249. package/dist/cdn/{VHB6NDP6.js → WUXC3NVU.js} +1 -1
  250. package/dist/cdn/WXYWYY3L.js +4 -0
  251. package/dist/cdn/{QADXDV6V.js → X2U56JE5.js} +2 -2
  252. package/dist/cdn/{66C54WBP.js → X3C4SWBZ.js} +2 -2
  253. package/dist/cdn/{I6GLKTED.js → X67KLNQ2.js} +1 -1
  254. package/dist/cdn/{HITJF4RQ.js → X6YB4RRP.js} +2 -2
  255. package/dist/cdn/{XYVZEUU3.js → X7CCOJBI.js} +1 -1
  256. package/dist/cdn/{Z55KW3GE.js → XBAMLJBK.js} +2 -2
  257. package/dist/cdn/XHNIG4LQ.js +4 -0
  258. package/dist/cdn/{TROND5WN.js → XHSVY2EB.js} +2 -2
  259. package/dist/cdn/XNWAPK5V.js +4 -0
  260. package/dist/cdn/{O7NFPTWX.js → XQJLGH6W.js} +2 -2
  261. package/dist/cdn/{7Z27VXFW.js → XT7PFAWR.js} +2 -2
  262. package/dist/cdn/{HRSOPFCG.js → XWSLSQGX.js} +2 -2
  263. package/dist/cdn/XXYS5XVH.js +18 -0
  264. package/dist/cdn/{4L4IBTJF.js → Y34X2BEZ.js} +2 -2
  265. package/dist/cdn/{J6PNQKBC.js → YD7TNP2F.js} +2 -2
  266. package/dist/cdn/{SRNUXUPT.js → YDLBEEXI.js} +2 -2
  267. package/dist/cdn/{ZRJNRVE3.js → YDQYV74W.js} +2 -2
  268. package/dist/cdn/{55R3KRVW.js → YIKSDDBF.js} +2 -2
  269. package/dist/cdn/{6AYWXJGE.js → YINO6TQT.js} +2 -2
  270. package/dist/cdn/YLIEQBKF.js +4 -0
  271. package/dist/cdn/YQ62X2PW.js +6 -0
  272. package/dist/cdn/{5JEZVAD4.js → YSBCE6IL.js} +1 -1
  273. package/dist/cdn/{HVZJ36FS.js → YUKV3NWK.js} +3 -3
  274. package/dist/cdn/{N67Z7ZNA.js → Z2JRY3A7.js} +2 -2
  275. package/dist/cdn/{MLJEVKSP.js → Z6TNCHWU.js} +2 -2
  276. package/dist/cdn/Z7OOU2TV.js +4 -0
  277. package/dist/cdn/{GMIFING2.js → ZAP6T3AI.js} +2 -2
  278. package/dist/cdn/{C4NNXXEU.js → ZCSKWHOT.js} +2 -2
  279. package/dist/cdn/{Y2F6P2NH.js → ZJVPDHYK.js} +2 -2
  280. package/dist/cdn/{HVNXNVUK.js → ZOP3G47D.js} +2 -2
  281. package/dist/cdn/{JI774UUM.js → ZPNMD2RT.js} +1 -1
  282. package/dist/cdn/{55C6EXD4.js → ZQMYQNUW.js} +2 -2
  283. package/dist/cdn/{PHJTNAEQ.js → ZSBHYTRL.js} +2 -2
  284. package/dist/cdn/{POF7HICC.js → ZUQWIUGY.js} +2 -2
  285. package/dist/cdn/{WRV54M6S.js → ZWICHMUP.js} +2 -2
  286. package/dist/cdn/{ZYH25ZQL.js → ZYM7TYLE.js} +2 -2
  287. package/dist/cdn/assets/layer-table/t9n/messages.en.json +1 -1
  288. package/dist/cdn/assets/layer-table/t9n/messages.json +1 -1
  289. package/dist/cdn/assets/map-card/t9n/messages.en.json +1 -1
  290. package/dist/cdn/assets/map-card/t9n/messages.json +1 -1
  291. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
  292. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
  293. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  294. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  295. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  296. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  297. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  298. package/dist/cdn/index.js +2 -2
  299. package/dist/cdn/main.css +1 -1
  300. package/dist/chunks/Auth.js +3 -9
  301. package/dist/chunks/appConfig.js +11 -0
  302. package/dist/chunks/cardFetchingUtils.js +102 -150
  303. package/dist/chunks/common.js +1 -1
  304. package/dist/chunks/deployAppContexts.js +1 -1
  305. package/dist/chunks/downloadUtils.js +1 -1
  306. package/dist/chunks/helpers.js +76 -0
  307. package/dist/chunks/index.js +1 -1
  308. package/dist/chunks/interfaces.js +38 -21
  309. package/dist/chunks/loadModules.js +1 -1
  310. package/dist/chunks/mapViewUtils.js +2 -2
  311. package/dist/chunks/pciUtils.js +1 -1
  312. package/dist/chunks/popupUtils.js +1 -1
  313. package/dist/chunks/privilegeUtils.js +56 -0
  314. package/dist/chunks/publicNotificationStore.js +1 -1
  315. package/dist/chunks/queryUtils.js +1 -1
  316. package/dist/chunks/runtime.js +1 -1
  317. package/dist/chunks/solution-store.js +1 -1
  318. package/dist/chunks/templates.js +1 -1
  319. package/dist/chunks/useT9n.js +1 -1
  320. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  321. package/dist/components/basemap-gallery/customElement.js +1 -1
  322. package/dist/components/buffer-tools/customElement.js +1 -1
  323. package/dist/components/card-manager/customElement.js +24 -23
  324. package/dist/components/consent-manager/customElement.js +1 -1
  325. package/dist/components/create-feature/customElement.d.ts +6 -0
  326. package/dist/components/create-feature/customElement.js +8 -8
  327. package/dist/components/create-related-feature/customElement.js +1 -1
  328. package/dist/components/crowdsource-manager/customElement.js +16 -16
  329. package/dist/components/crowdsource-reporter/customElement.js +19 -16
  330. package/dist/components/deduct-calculator/customElement.js +1 -1
  331. package/dist/components/delete-button/customElement.js +1 -1
  332. package/dist/components/delete-dialog/customElement.js +1 -1
  333. package/dist/components/edit-card/customElement.js +24 -18
  334. package/dist/components/feature-details/customElement.js +1 -1
  335. package/dist/components/feature-list/customElement.js +1 -1
  336. package/dist/components/field-selection/customElement.js +1 -1
  337. package/dist/components/floor-filter/customElement.js +1 -1
  338. package/dist/components/info-card/customElement.js +1 -1
  339. package/dist/components/json-editor/customElement.js +1 -1
  340. package/dist/components/layer-list/customElement.js +1 -1
  341. package/dist/components/layer-table/customElement.js +70 -66
  342. package/dist/components/map-card/customElement.d.ts +12 -0
  343. package/dist/components/map-card/customElement.js +53 -48
  344. package/dist/components/map-draw-tools/customElement.js +2 -2
  345. package/dist/components/map-fullscreen/customElement.js +1 -1
  346. package/dist/components/map-layer-picker/customElement.js +2 -2
  347. package/dist/components/map-legend/customElement.js +1 -1
  348. package/dist/components/map-picker/customElement.js +22 -18
  349. package/dist/components/map-search/customElement.js +1 -1
  350. package/dist/components/map-select-tools/customElement.js +2 -2
  351. package/dist/components/map-tools/customElement.js +3 -3
  352. package/dist/components/pci-calculator/customElement.js +1 -1
  353. package/dist/components/pdf-download/customElement.js +1 -1
  354. package/dist/components/public-notification/customElement.js +2 -2
  355. package/dist/components/refine-selection/customElement.js +2 -2
  356. package/dist/components/selection-tool/customElement.js +1 -1
  357. package/dist/components/solution-article-card/customElement.js +1 -1
  358. package/dist/components/solution-configuration/customElement.js +1 -1
  359. package/dist/components/{solution-configure-panel → solution-configure-dialog}/customElement.d.ts +1 -1
  360. package/dist/components/{solution-configure-panel → solution-configure-dialog}/customElement.js +8 -8
  361. package/dist/components/solution-configure-titles/customElement.js +1 -1
  362. package/dist/components/solution-contents/customElement.js +1 -1
  363. package/dist/components/solution-delete-dialog/customElement.d.ts +24 -0
  364. package/dist/components/solution-delete-dialog/customElement.js +70 -15
  365. package/dist/components/solution-delete-dialog/index.d.ts +5 -0
  366. package/dist/components/solution-delete-dialog/index.js +5 -0
  367. package/dist/components/solution-deploy-dialog/customElement.d.ts +42 -0
  368. package/dist/components/solution-deploy-dialog/customElement.js +154 -16
  369. package/dist/components/solution-deploy-dialog/index.d.ts +9 -0
  370. package/dist/components/solution-deploy-dialog/index.js +9 -0
  371. package/dist/components/solution-deployed-card/customElement.d.ts +9 -0
  372. package/dist/components/solution-deployed-card/customElement.js +24 -14
  373. package/dist/components/solution-deployed-card/index.d.ts +1 -0
  374. package/dist/components/solution-deployed-card/index.js +1 -0
  375. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  376. package/dist/components/solution-details-card/customElement.d.ts +4 -11
  377. package/dist/components/solution-details-card/customElement.js +16 -16
  378. package/dist/components/solution-details-panel/customElement.d.ts +14 -0
  379. package/dist/components/solution-details-panel/customElement.js +240 -17
  380. package/dist/components/solution-details-panel/index.d.ts +14 -0
  381. package/dist/components/solution-details-panel/index.js +14 -0
  382. package/dist/components/solution-item/customElement.js +1 -1
  383. package/dist/components/solution-item-accordion/customElement.js +1 -1
  384. package/dist/components/solution-item-details/customElement.js +1 -1
  385. package/dist/components/solution-item-icon/customElement.js +1 -1
  386. package/dist/components/solution-item-sharing/customElement.js +1 -1
  387. package/dist/components/solution-items-diagram/customElement.js +1 -1
  388. package/dist/components/solution-organization-variables/customElement.js +1 -1
  389. package/dist/components/solution-resource-item/customElement.js +1 -1
  390. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  391. package/dist/components/solution-spatial-ref/customElement.js +14 -14
  392. package/dist/components/solution-template-data/customElement.js +1 -1
  393. package/dist/components/solution-variables/customElement.js +1 -1
  394. package/dist/components/solutions-all-panel/customElement.d.ts +10 -8
  395. package/dist/components/solutions-all-panel/customElement.js +51 -53
  396. package/dist/components/solutions-all-shell/customElement.d.ts +1 -1
  397. package/dist/components/solutions-all-shell/customElement.js +31 -29
  398. package/dist/components/solutions-article-panel/customElement.js +1 -1
  399. package/dist/components/solutions-articles/customElement.js +1 -1
  400. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  401. package/dist/components/solutions-deployed-panel/customElement.js +23 -21
  402. package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
  403. package/dist/components/solutions-deployed-shell/customElement.js +28 -26
  404. package/dist/components/solutions-filter-panel/customElement.d.ts +8 -3
  405. package/dist/components/solutions-filter-panel/customElement.js +82 -101
  406. package/dist/components/spatial-ref/customElement.js +1 -1
  407. package/dist/components/store-manager/customElement.js +1 -1
  408. package/dist/docs/api.json +741 -282
  409. package/dist/docs/docs.json +847 -322
  410. package/dist/docs/vscode.html-custom-data.json +47 -48
  411. package/dist/docs/web-types.json +268 -95
  412. package/dist/index.d.ts +68 -11
  413. package/dist/index.js +1 -1
  414. package/dist/loader.js +9 -10
  415. package/dist/types/lumina.d.ts +20 -15
  416. package/dist/types/preact.d.ts +21 -17
  417. package/dist/types/react.d.ts +22 -19
  418. package/dist/types/stencil.d.ts +20 -15
  419. package/dist/utils/cardFetchingUtils.d.ts +3 -3
  420. package/dist/utils/interfaces.d.ts +94 -9
  421. package/dist/utils/privilegeUtils.d.ts +14 -0
  422. package/package.json +3 -2
  423. package/dist/cdn/33CJMY5K.js +0 -18
  424. package/dist/cdn/3FEML345.js +0 -18
  425. package/dist/cdn/3IP3UCC6.js +0 -4
  426. package/dist/cdn/4OW4FAGV.js +0 -18
  427. package/dist/cdn/4ZZY4G5L.js +0 -4
  428. package/dist/cdn/5CTYL5OX.js +0 -4
  429. package/dist/cdn/5VVOF3UA.js +0 -4
  430. package/dist/cdn/6BLHHHGI.js +0 -18
  431. package/dist/cdn/6QGWW2DJ.js +0 -4
  432. package/dist/cdn/AS2YP4CC.js +0 -4
  433. package/dist/cdn/BFNEXKKP.js +0 -18
  434. package/dist/cdn/C3JZDZSB.js +0 -4
  435. package/dist/cdn/C5ZEFQEX.js +0 -4
  436. package/dist/cdn/CMO56LFB.js +0 -4
  437. package/dist/cdn/CR2HG4F6.js +0 -4
  438. package/dist/cdn/D57MZFOU.js +0 -4
  439. package/dist/cdn/DDWTO2EM.js +0 -4
  440. package/dist/cdn/DL42SYVU.js +0 -4
  441. package/dist/cdn/EI3DVNTC.js +0 -4
  442. package/dist/cdn/GAEZB6HN.js +0 -4
  443. package/dist/cdn/HA2OGFHW.js +0 -4
  444. package/dist/cdn/HIYIOXEQ.js +0 -4
  445. package/dist/cdn/I2GIDS2K.js +0 -4
  446. package/dist/cdn/IPXVQFFH.js +0 -4
  447. package/dist/cdn/J2ZOLADT.js +0 -4
  448. package/dist/cdn/JH33JHRL.js +0 -4
  449. package/dist/cdn/KCMPZ54Y.js +0 -18
  450. package/dist/cdn/KS3MADXB.js +0 -4
  451. package/dist/cdn/LK4UQLYZ.js +0 -18
  452. package/dist/cdn/LROPDZCW.js +0 -4
  453. package/dist/cdn/M6XME7OM.js +0 -4
  454. package/dist/cdn/NHGBIUB5.js +0 -18
  455. package/dist/cdn/OEHWO6ML.js +0 -18
  456. package/dist/cdn/PEOMHSG3.js +0 -4
  457. package/dist/cdn/PFGUJCMD.js +0 -18
  458. package/dist/cdn/PGXMYR7Q.js +0 -18
  459. package/dist/cdn/PIBSUTGK.js +0 -18
  460. package/dist/cdn/PJPC75F5.js +0 -4
  461. package/dist/cdn/RMYNQEIN.js +0 -18
  462. package/dist/cdn/RRRRSVAS.js +0 -4
  463. package/dist/cdn/SYSZXXPY.js +0 -4
  464. package/dist/cdn/TKRGTLNR.js +0 -18
  465. package/dist/cdn/TQ2X7VMW.js +0 -6
  466. package/dist/cdn/U44MKOB3.js +0 -4
  467. package/dist/cdn/VJPEZ2CS.js +0 -18
  468. package/dist/cdn/VK73BGU2.js +0 -18
  469. package/dist/cdn/VLHFZNHN.js +0 -4
  470. package/dist/cdn/VUAQDVTL.js +0 -18
  471. package/dist/cdn/XCZRYZDV.js +0 -4
  472. package/dist/cdn/XEG2HRCV.js +0 -4
  473. package/dist/cdn/XK4Y3NEC.js +0 -18
  474. package/dist/cdn/YNVH5WET.js +0 -4
  475. package/dist/cdn/YS42NZJY.js +0 -4
  476. package/dist/cdn/YZNBB7J7.js +0 -4
  477. package/dist/cdn/ZE5UWIMJ.js +0 -4
  478. package/dist/cdn/ZIAYAVCI.js +0 -18
  479. package/dist/cdn/ZVTVCHDD.js +0 -18
  480. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +0 -1
  481. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +0 -1
  482. package/dist/components/solution-deploy-panel/customElement.d.ts +0 -18
  483. package/dist/components/solution-deploy-panel/customElement.js +0 -72
  484. package/dist/components/solution-deploy-panel/index.d.ts +0 -12
  485. package/dist/components/solution-deploy-panel/index.js +0 -12
  486. /package/dist/cdn/assets/{solution-configure-panel → solution-configure-dialog}/t9n/messages.en.json +0 -0
  487. /package/dist/cdn/assets/{solution-configure-panel → solution-configure-dialog}/t9n/messages.json +0 -0
  488. /package/dist/components/{solution-configure-panel → solution-configure-dialog}/index.d.ts +0 -0
  489. /package/dist/components/{solution-configure-panel → solution-configure-dialog}/index.js +0 -0
@@ -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.0-next.20250605 */
4
- import{a as o,b as l}from"./FNEE7DUR.js";import{b as c}from"./JI774UUM.js";import{a as u}from"./FCGJ2VZH.js";import{D as r,I as h,c as n,d as i,o as s}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var m=n`/** @license
3
+ v1.0.0-next.20250613 */
4
+ import{a as o,b as l}from"./3Q3S4KCD.js";import{b as c}from"./ZPNMD2RT.js";import{a as u}from"./CXKUQGUM.js";import{D as h,c as n,d as i,n as s,y as r}from"./4NASOTXM.js";import"./UKVIZZJA.js";var m=n`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.0-next.20250605 */
4
- import{a as _}from"./GMIFING2.js";import"./DKEAKE2K.js";import{c as g,g as $,j as F}from"./3I4OEU4B.js";import{e as d}from"./C3JZDZSB.js";import{a as E,d as O,f as T}from"./VHB6NDP6.js";import{a as u,b as p}from"./FNEE7DUR.js";import{b as I}from"./JI774UUM.js";import{a as k}from"./FCGJ2VZH.js";import{D as C,E as y,F as V,I as G,c as L,d as c,o as S,q as v}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var N=L`@layer{/** @license
3
+ v1.0.0-next.20250613 */
4
+ import{a as _}from"./ZAP6T3AI.js";import"./OTLIXGZN.js";import{c as g,g as $,j as F}from"./KFHHWR7Q.js";import{e as d}from"./BJUDP4CV.js";import{a as E,d as O,f as T}from"./WUXC3NVU.js";import{a as u,b as p}from"./3Q3S4KCD.js";import{b as I}from"./ZPNMD2RT.js";import{a as k}from"./CXKUQGUM.js";import{A as V,D as G,c as L,d as c,n as S,p as v,y as C,z as y}from"./4NASOTXM.js";import"./UKVIZZJA.js";var N=L`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{a as n,b as l}from"./3Q3S4KCD.js";import{a as f}from"./CXKUQGUM.js";import{A as m,D as b,c as d,d as s,n as r,y as h,z as c}from"./4NASOTXM.js";import"./UKVIZZJA.js";var I=d`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block;--solutions-theme-foreground-color: var(--calcite-color-foreground-1);width:100%}.width-full{width:100%}.width-26{width:26%!important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-bottom-width:1px!important;border-width:0px}.border-bottom-2{border-bottom-width:2px!important;border-width:0px}.border-solid{border-style:solid;border-color:var(--calcite-color-border-3)}.border-left-right{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 68px);overflow-y:auto}.position-absolute{position:absolute}.position-relative{position:relative}`,p=class extends h{constructor(){super(...arguments),this.mapInfos=[],this.isMapLayout=!1,this.showMapListInPopover=!1,this.referenceElement="",this.selectedWebMapId="",this._mapListExpanded=!1,this._translations=f({name:"map-picker",blocking:!0}),this._list=n(),this._loadedId="",this._skipEditCheck=!1,this._popover=n(),this.beforeMapInfoChange=r(),this.mapInfoChange=r()}static{this.properties={mapInfos:0,isMapLayout:5,height:9,showMapListInPopover:5,referenceElement:1,selectedWebMapId:1,_mapListExpanded:16,_translations:16}}static{this.styles=I}willUpdate(e){e.has("mapInfos")&&this.hasUpdated&&this.mapInfosWatchHandler(this.mapInfos,e.get("mapInfos")),e.has("selectedWebMapId")&&this.hasUpdated&&this.selectedWebMapIdWatchHandler(this.selectedWebMapId)}_webMapInfoWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&(this._loadedId=e?.id,this.mapInfoChange.emit(e))}async mapInfosWatchHandler(e,t){if(e&&JSON.stringify(e)!==JSON.stringify(t)){let i=this._getWebMapInfo();this._webMapSelected(i)}}async selectedWebMapIdWatchHandler(e){this._loadedId=e}async setMapByID(e,t=!1){this._skipEditCheck=t;let i=this.mapInfos?.filter(o=>o.id===e);e&&i?.length>0&&this._webMapSelected(i[0]),this._skipEditCheck=!1}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(e){this._mapListExpanded=e}render(){return s`${!this.showMapListInPopover&&this._getToolbar()||""}${this.showMapListInPopover?this._getMapListPopover():this._getMapNameList(this._mapListExpanded)}`}loaded(){let e=this._getWebMapInfo();e&&this._webMapSelected(e),this._popover.value?.addEventListener("calcitePopoverOpen",()=>{(this._list.value?.querySelector("calcite-list-item[selected]")).setFocus()})}_getMapPicker(){let e="map-picker-expand-toggle",t=this._mapListExpanded?"chevron-up":"chevron-down";return s`<div class="width-full"><calcite-button alignment=icon-end-space-between appearance=transparent class="width-full height-full" .iconEnd=${t} icon-start=map id=${e} kind=neutral @click=${()=>this._chooseMap()} width=full>${this._getWebMapInfo().name}</calcite-button><calcite-tooltip placement=bottom .referenceElement=${e}><span>${this._translations.switchMap}</span></calcite-tooltip></div>`}_getToolbar(){let e=this.isMapLayout?"border-bottom-1":"border-bottom-2";return s`<div class="display-flex border-left-right"><calcite-action-bar class=${`border-solid action-bar-size ${e}`} expand-disabled layout=horizontal slot=header>${this._getMapPicker()}</calcite-action-bar></div>`}_getMapNameList(e){let t=this.height&&this.height>0&&this.showMapListInPopover?{height:`${this.height.toString()}px`}:{},i=this.showMapListInPopover?"position-relative":"position-absolute",o=this.isMapLayout?"width-26":"width-full",g=this.isMapLayout?"border-bottom-1":"border-bottom-2",u=e?`map-list border-solid ${g} adjusted-height ${o} ${i}`:"display-none";return s`<div class=${c(u)} style=${m(t)}><calcite-list id=mapList label selection-appearance=border selection-mode=single-persist ${l(this._list)}>${this.mapInfos.map(a=>s`<calcite-list-item .label=${a.name} @click=${()=>this._webMapSelected(a)} .selected=${a.id===this._loadedId} .value=${a.id}></calcite-list-item>`)}</calcite-list></div>`}_getMapListPopover(){return s`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=auto .referenceElement=${this.referenceElement} ${l(this._popover)}>${this._getMapNameList(!0)}</calcite-popover>`}_getWebMapInfo(){let e=this.mapInfos.find(t=>this.selectedWebMapId===t.id);if(!e&&this.mapInfos.length>0&&(e=this.mapInfos[0]),!e)throw new Error("No valid web map info available");return e}_webMapSelected(e){let t=this._loadedId;this._loadedId=e.id;let i=!1;this._skipEditCheck?i=!0:this.beforeMapInfoChange.emit({currentId:t,mapInfo:e,ref:this.el}).defaultPrevented||(i=!0),i&&(this._webMapInfoWatchHandler(e,this._webMapInfo),this._webMapInfo=e),this._popover.value&&(this._popover.value.open=!1),this._mapListExpanded=!1}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}};b("map-picker",p);export{p as MapPicker};
@@ -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.0-next.20250605 */
4
- import{a as n,b as m}from"./FNEE7DUR.js";import{b as l}from"./JI774UUM.js";import{D as p,I as o,c as t,d as r}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var h=t`/** @license
3
+ v1.0.0-next.20250613 */
4
+ import{a as n,b as m}from"./3Q3S4KCD.js";import{b as l}from"./ZPNMD2RT.js";import{D as o,c as t,d as r,y as p}from"./4NASOTXM.js";import"./UKVIZZJA.js";var h=t`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
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.0-next.20250605 */
3
+ v1.0.0-next.20250613 */
4
4
  var y={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},we="app",Re=Object.defineProperty,xe=(e,t)=>{for(var o in t)Re(e,o,{get:t[o],enumerable:!0})},Se="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",_e=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},q=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",w=typeof window<"u"?window:{};w.HTMLElement;var N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),j=!1,G=[],ie=[],Ee=(e,t)=>o=>{e.push(o),j||(j=!0,t&&N.$flags$&4?K(D):N.raf(D))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){I(o)}e.length=0},D=()=>{J(G),J(ie),(j=G.length>0)&&N.raf(D)},K=e=>ke().then(e),Ce=Ee(ie,!0),Le=e=>e!=null&&e!==void 0,$e=e=>(e=typeof e,e==="object"||e==="function"),Ae=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe={};xe(Oe,{err:()=>ce,map:()=>Fe,ok:()=>U,unwrap:()=>Me,unwrapErr:()=>Pe});var U=e=>({isOk:!0,isErr:!1,value:e}),ce=e=>({isOk:!1,isErr:!0,value:e});function Fe(e,t){if(e.isOk){let o=t(e.value);return o instanceof Promise?o.then(n=>U(n)):U(o)}if(e.isErr){let o=e.value;return ce(o)}throw"should never get here"}var Me=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},de=e=>{let t=ee(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&fe(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(De(n,Q(n),!1).length?n.hidden=!0:n.hidden=!1)});let o=0;for(o=0;o<t.length;o++){let n=t[o];n.nodeType===1&&ee(n,"childNodes").length&&de(n)}},je=e=>{let t=[];for(let o=0;o<e.length;o++){let n=e[o]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t};function fe(e,t,o){let n=0,s=[],l;for(;n<e.length;n++)l=e[n],l["s-sr"]&&(!t||l["s-hn"]===t)&&o===void 0&&s.push(l),s=[...s,...fe(l.childNodes,t,o)];return s}var De=(e,t,o=!0)=>{let n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Q(s)===t&&(o||!s["s-sr"])&&n.push(s);return n},Z=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Q=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ue(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=o=>function(n){let s=[],l=this["s-sn"];n?.flatten&&console.error(`
5
5
  Flattening is not supported for Stencil non-shadow slots.
6
6
  You can use \`.childNodes\` to nested slot fallback content.
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{d as w,e as L}from"./KFHHWR7Q.js";import"./BJUDP4CV.js";import"./WUXC3NVU.js";import{a as p,b as m}from"./3Q3S4KCD.js";import{b as V}from"./ZPNMD2RT.js";import{a as b}from"./CXKUQGUM.js";import{D as v,c as y,d as l,n as h,p as f,y as M,z as c}from"./4NASOTXM.js";import"./UKVIZZJA.js";var E=y`@layer{/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.edit-location-btn{margin:5px;display:flex}.esri-editor__panel-content{padding-block:10px!important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`,u=class extends M{constructor(){super(...arguments),this.customizeSubmit=!1,this.enableSearch=!1,this.enableSnapping=!1,this.floorLevel="",this.isMobile=!1,this.selectedLayerId="",this.showGuidingMsg=!0,this.submitNewReportsMessage="",this.updateMapPosition=!1,this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this.showSketchWidgets=!1,this.allowMultipleCreation=!1,this._currentPage="templatePicker",this._editorLoading=!1,this._inValidGeomtryDrawn=!1,this._translations=b({name:"create-feature",blocking:!0}),this._addingAttachment=!1,this._calciteNotice=p(),this._isSubmitBtnClicked=!1,this._mapViewContainer=p(),this._searchDiv=p(),this.success=h(),this.fail=h(),this.drawComplete=h(),this.editingLocation=h(),this.editingAttachment=h(),this.progressStatus=h(),this.modeChanged=h()}static{this.properties={customizeSubmit:5,enableSearch:5,enableSnapping:5,floorLevel:1,formElements:1,isMobile:5,mapView:0,searchConfiguration:0,selectedLayerId:1,showGuidingMsg:5,submitNewReportsMessage:1,updateMapPosition:5,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,showSketchWidgets:5,allowMultipleCreation:5,_currentPage:16,_editorLoading:16,_inValidGeomtryDrawn:16,_translations:16}}static{this.styles=E}static{this.shadowRootOptions=f}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("isMobile")&&this.hasUpdated&&this.isMobileHandler(),e.has("_editorLoading")&&(this.hasUpdated||this._editorLoading!==!1)&&this._editorLoadingWatchHandler(this._editorLoading)}async mapViewWatchHandler(){this.mapView&&await this.mapView.when(async()=>{await this.init()})}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(e){if(e){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){if(this._selectedLayer.templates&&this._editor){let t=this._selectedLayer.templates[0],i={layer:this._selectedLayer,template:t};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(i),await this.hideEditorsElements()}}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor?.viewModel?.featureFormViewModel&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(e){this._editor&&(e?await this._setFloorLevel(e):this.reportingArea&&this.reportingAreaLayer&&this._currentPage!=="drawing"?await this.queryIntersectingFeatures():this._currentPage!=="drawing"&&(this._inValidGeomtryDrawn=!1,this.drawComplete.emit(this._inValidGeomtryDrawn)))}async showForm(){this.progressStatus.emit(100),this._container?.classList.remove("display-none"),this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._currentPage="featureForm"}async load(){await this.initModules()}async loaded(){await this.init()}async updated(){if(this.isMobile&&this.updateMapPosition){let e=this._currentPage==="drawing"?80:30,t=this.enableSearch?this._searchDiv.value?.offsetHeight:0;await this._calciteNotice.value?.componentOnReady();let i=(this._calciteNotice.value?.offsetHeight||0)+t+e;this._mapViewContainer.value&&(this._mapViewContainer.value.style.top=`${i}px`)}}disconnectedCallback(){super.disconnectedCallback(),this._editor&&(this._editor.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel?.destroy(),this._editor.destroy(),this.enableSnapping&&this.mapView?.ui.view&&((this.mapView?.ui.view).grid=null))}render(){let e=this._currentPage==="drawing"||this._currentPage==="editing"?"":"display-none",t=this._editorLoading?"":"display-none",i=this._editorLoading?"display-none":"",s=this.isMobile&&this.updateMapPosition?"show-map":"display-none",a=this._inValidGeomtryDrawn?"danger":"success",r=this._inValidGeomtryDrawn?"exclamation-mark-triangle":"lightbulb",n=this.showGuidingMsg&&this._currentPage!=="templatePicker",d=this._translations.chooseCategoryMsg;return this._inValidGeomtryDrawn?d=this.reportingAreaMessage||this._translations.reportOutsideAreaMessage:this._currentPage==="drawing"||this._currentPage==="editing"?d=this._translations.provideLocationMsg:this._currentPage==="featureForm"&&(d=this._translations.provideDetailsMsg),l`${n&&l`<calcite-notice class="notice-msg" .icon=${r} .kind=${a} open ${m(this._calciteNotice)}><div slot=message>${d}</div></calcite-notice>`||""}<calcite-loader class=${c(t)} label scale=s></calcite-loader>${this._currentPage==="featureForm"&&this.isMobile&&l`<calcite-button appearance=transparent class="edit-location-btn" icon-start=pin @click=${this.editLocation}>${this._translations.editLocationLabel}</calcite-button>`||""}<div class=${c(i)} id=feature-form></div>${this.enableSearch&&l`<div class=${`search-widget ${e} ${i}`} id=search-widget-ref ${m(this._searchDiv)}></div>`||""}<div class=${c(s)} ${m(this._mapViewContainer)}></div>`}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile&&this.updateMapPosition?this.createMobileMapView():this._loadWidgets()))}async initModules(){let[e,t,i,s,a,r,n,d]=await V(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView","esri/widgets/Home"]);this.Editor=e,this.reactiveUtils=t,this.Search=i,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=r,this.MapView=n,this.Home=d}async createMobileMapView(){this._mapViewContainer.value&&this.MapView&&this.mapView&&(this._mapViewContainer.value.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer.value,zoom:this.mapView.zoom,center:this.mapView.center}).when(e=>{this._updatedMapView=e;let t=this.Home&&new this.Home({view:this._updatedMapView});t&&this._updatedMapView.ui.add(t,"top-left"),this._loadWidgets()},e=>{console.log(e)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();let e=[];this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar");let t=this._updatedMapView&&await L(this._updatedMapView),i=this.mapView&&await w(this.mapView,this.selectedLayerId);if(i&&(this._selectedLayer=i,!this._selectedLayer?.isTable&&t&&t.forEach(s=>{e.push({layer:s,enabled:s?.type==="feature"&&s?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this.Editor&&(this._editor=new this.Editor({view:this._updatedMapView,layerInfos:e,visibleElements:{settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping,createFeaturesSection:!0,editFeaturesSection:!1,flow:!0,sketch:this.showSketchWidgets&&this._selectedLayer?.geometryType!=="point"},container:this._container}),this._mapViewContainer.value?this.el.insertBefore(this._container,this._mapViewContainer.value):this.el.appendChild(this._container),this._selectedLayer?.isTable&&(this._editorLoading=!0),this._editor)){let s=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,o=>{o==="adding-attachment"||o==="editing-attachment"?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)});s&&this._editor.viewModel.addHandles(s);let a=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureTemplatesViewModel.state,o=>{o==="ready"&&this._editor?.viewModel?.activeWorkflow?.type!=="create-features"&&(this.progressStatus.emit(50),this._editorLoading=!0)});a&&this._editor.viewModel.addHandles(a);let r=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureFormViewModel?.state,o=>{o==="ready"&&this._editor?.viewModel.featureFormViewModel&&this._currentPage!=="editing"&&(this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.addHandles(this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))),setTimeout(()=>{this._setFloorLevel(this.floorLevel)},50),!this.allowMultipleCreation&&this._editor.activeWorkflow&&(this._editor.activeWorkflow.data.creationInfo.maxFeatures=1),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit(!1))});r&&this._editor.viewModel.addHandles(r);let n=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,o=>{o==="creating-features"&&this._editor?.viewModel.featureFormViewModel&&this._editor.viewModel.featureFormViewModel.state==="disabled"&&(this._mapViewContainer.value?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))});n&&this._editor.viewModel.addHandles(n),this._editor.on("sketch-create",async o=>{o.detail.state==="complete"&&(this._drawnGeometry=o.detail.graphic.geometry,this.reportingArea&&this.reportingAreaLayer&&await this.queryIntersectingFeatures())});let d;this._editor.on("sketch-update",o=>{clearTimeout(d),d=window.setTimeout(async()=>{this._drawnGeometry=o.detail.graphics[0].geometry,this.reportingArea&&this.reportingAreaLayer&&await this.queryIntersectingFeatures()},50)})}}async queryIntersectingFeatures(){let e=this.mapView&&await w(this.mapView,this.reportingAreaLayer);if(e){let t=e.createQuery();t.geometry=this._drawnGeometry,t.spatialRelationship="intersects";let i=await e.queryFeatureCount(t)===0;this._inValidGeomtryDrawn=i,this.drawComplete.emit(this._inValidGeomtryDrawn)}}editLocation(){this.progressStatus.emit(75),this.editingLocation.emit(),this._container?.classList.add("display-none"),this._mapViewContainer.value?.classList.replace("hide-map","show-map"),this._currentPage="editing"}async startCreate(){return await this.hideEditorsElements(),new Promise((e,t)=>{if(this._editor?.viewModel.featureTemplatesViewModel.items?.length){let i=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.addHandles(this._editor.viewModel.featureTemplatesViewModel.on("select",()=>{this.progressStatus.emit(75),setTimeout(()=>{this.hideEditorsElements().then(()=>{e({})},a=>t(a))},700)})),i.length===1&&this._editor.viewModel.featureTemplatesViewModel.select(i[0]);let s=i.length>1;this.hideEditorsElements().then(()=>{s&&e({})},a=>s&&t(a))}})}async createSearchWidget(){if(this._updatedMapView&&this.Search){let e={view:this._updatedMapView};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(e),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let t;this._search.viewModel.addHandles(this._search.on("search-complete",s=>{this._updatedMapView?.goTo(s.results[0].results[0].extent),this._selectedLayer?.geometryType==="point"&&(t=s.results[0].results[0]?.feature.geometry)}));let i=this.reactiveUtils?.watch(()=>this._search?.viewModel.state,s=>{s==="ready"&&setTimeout(()=>{if(this._editor?.viewModel.sketchViewModel?.createGraphic&&t)this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",t),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements();else if(this._editor?.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel.updateGraphics.length>0&&t){let a=this._editor?.viewModel.sketchViewModel?.updateGraphics.getItemAt(0);a&&(a.set("geometry",t),this._editor?.viewModel.sketchViewModel?.update(a),this.hideEditorsElements())}},100)});i&&this._search.viewModel.addHandles(i)}}_getSearchConfig(e,t){let i="includeDefaultSources",s=e.sources;return s&&s?.length>0?(e[i]=!1,s.forEach(a=>{if(a.hasOwnProperty("layer")){let r=a,n=r.layer?.id,d=n?t.map?.findLayerById(n):"",o=r?.layer?.url;d?r.layer=d:o&&this.FeatureLayer&&(r.layer=new this.FeatureLayer(o))}}),s?.forEach(a=>{if(a.hasOwnProperty("locator")){let r=a;if(r?.name==="ArcGIS World Geocoding Service"){let n=r.outFields||["Addr_type","Match_addr","StAddr","City"];r.outFields=n,r.singleLineFieldName="SingleLine"}r.url=r.url,delete r.url}})):e={...e,includeDefaultSources:!0},e}async _setFloorLevel(e){if(!e)return;let t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i){let s=t.fields.find(a=>a.name===i);if(s&&!t?.formTemplate)this._editor?.viewModel.featureFormViewModel&&(this._editor.viewModel.featureFormViewModel.setValue(s.name,e),s.editable=!1);else if(t.formTemplate&&this.formElements&&this.ExpressionInfo&&this.FieldElement){let a=new this.ExpressionInfo({expression:`'${e}'`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),r=new this.FieldElement({label:i,editableExpression:"false",fieldName:i,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:a.name});this._updatedMapView?.map.editableLayers.forEach(n=>{let d=this.formElements.orgElements,o=this.formElements.orgExpressionInfos,_=[...d];if(_.push(r),n.type==="feature"&&this.FormTemplate){let g=n,S=new this.FormTemplate({title:g?.formTemplate?.title,description:g?.formTemplate?.description,elements:_,expressionInfos:[a].concat(o)});n.formTemplate=S}})}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach(e=>{let t=e.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");t?.querySelector("header")?.setAttribute("style","display: none"),t?.querySelector("footer")?.setAttribute("style","display: none")}))}async submitted(e){if(e.invalid.length){this._isSubmitBtnClicked=!1;return}if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{this._editor?.activeWorkflow&&(await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some(t=>{if(t.error)throw t.error}))}catch(t){this.fail.emit(t);return}this.success.emit()}}async timeout(e){return new Promise(t=>setTimeout(t,e))}};v("create-feature",u);export{u as CreateFeature};
@@ -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.0-next.20250605 */
4
- import{d as I}from"./TFY5N3WM.js";import{C as x,b as g,c as w,z as v}from"./DUWNVKPD.js";import{a as V}from"./7HTKOKPV.js";import"./FSN5FQRG.js";import{a as L,c,d as E,e as S,f as P}from"./WUF32TGT.js";import"./NUVLGW3I.js";var D=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}",$=D,u="instant-apps-scoreboard",U=6,C=`${u}--`,p=`${u}__`,F=V.medium[1],m={BASE:u,itemsContainer:`${p}items-container`,items:`${p}items`,item:`${p}item`,label:`${p}item-label`,value:`${p}item-value`,valuePlaceholder:`${p}item-value-placeholder`,position:{bottom:`${p}position--bottom`,side:`${p}position--side`,left:`${p}position--left`,right:`${p}position--right`},mode:{floating:`${p}mode--floating`,pinned:`${p}mode--pinned`}},A=class{constructor(t){L(this,t),this.scoreboardItemsUpdated=P(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await(this.view?.map).loadAll();let t=this.items.map(e=>e?.layer?.id),s=e=>e.type!=="feature"||!e.isTable,o=e=>e.type==="feature"||e.type==="scene",i=e=>t.includes(e.id),a=e=>s(e)&&o(e)&&i(e);this.layers=this.view?.map?.allLayers?.filter(e=>a(e)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(e=>e.outFields=["*"]);let t=[];this.layers.forEach(e=>{let n=e,r=this.view?.whenLayerView(n);t.push(r)});let i=(await Promise.allSettled(t)).filter(e=>e.status==="fulfilled"&&e.value).map(e=>e.value),a=[];i.forEach(e=>a.push(this.reactiveUtils?.whenOnce(()=>!e.updating))),await Promise.all(a),this.layerViews=await g([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state="calculating";let t=[...this.items],s=[];this.queryStatDefinitions(t,s);let o=await Promise.all(s);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(i=>this.items.push(i)),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});this.el?.parentElement&&t.observe(this.el.parentElement);try{this.state="loading",await this.initMessages()}catch{return this.state="disabled",Promise.reject(new Error("Failed to load messages"))}finally{if(!this.view||!this.items)this.state="disabled";else try{await this.initModules()}catch{this.state="disabled"}}}async componentDidLoad(){if(this.state!=="disabled")try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state="disabled",console.error(`${u}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){this.state="disabled",this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await I(this.el))[0],this.messages={...this.messages,...t},Promise.resolve()}catch{console.error("FAILED TO LOAD MESSAGES")}}async initModules(){try{let[t,s]=await Promise.all([v(),x()]);return this.reactiveUtils=t,this.intl=s,this.handles=await w(),this.layers=await g([]),this.layerViews=await g([]),Promise.resolve()}catch(t){throw console.error(t),this.state="disabled",new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,s=t;try{return await s.loadAll(),Promise.resolve()}catch(o){throw console.error(o),this.state="disabled",new Error("Failed to load map resources")}}}generateUID(){return t=>{let s=Math.random(),o=Math.floor(Math.random()*10)+11,a=s.toString(o).replace("0.","");t.uid=a}}render(){let{state:t}=this,s=t==="loading",o=t==="calculating",i=t==="disabled",a=s||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null,e=this.getPositionClass,n=this.getStyleClass;return c(E,{key:"2ec5b4e44c244ee935453d96887e07633f2abf37",class:`${e} ${n}`},i?null:[a,this.items?.length>0?this.renderBase():null])}renderBase(){return c("div",{key:"instant-apps-scoreboard-base",class:u},this.renderContent())}renderContent(){let{state:t}=this;return t==="loading"?this.renderLoader():t==="calculating"||t==="complete"?this.renderItemsContainer():null}renderItemsContainer(){let[t,s]=this.renderPreviousNextButtons();return c("div",{class:m.itemsContainer},t,this.renderItems(),s)}renderPreviousNextButtons(){let t=this.getItemLimit(),s=this.items.filter(k=>k.visible)?.length<=t,o=this.itemIndex===0,i=this.isEnd,a=this.isMobile?!0:this.position==="bottom",e=a?"start":"center",l={previous:a?"chevron-left":"chevron-up",next:a?"chevron-right":"chevron-down"},d=o||s?"blank":l.previous,h=i||s?"blank":l.next,b={previous:o||s,next:i||s},_="transparent",f=this.isMobile?"s":"l",y={previous:this.messages?.previous,next:this.messages?.next};return[c("calcite-action",{onClick:this.previousItem.bind(this),icon:d,disabled:b.previous,alignment:e,scale:f,appearance:_,text:y.previous??"",label:y.previous}),c("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:e,scale:f,appearance:_,text:y.next??"",label:y.next})]}renderItems(){let{items:t}=m,o=this.getItemsToDisplay.map(i=>this.renderItem(i));return c("ul",{class:t},o)}renderItem(t){let{label:s}=t;return c("li",{class:m.item},c("span",{class:m.label,title:s},s),this.renderValue(t))}renderValue(t){let{displayValue:s}=t,o=this.state==="calculating",i=this.state==="disabled",a=s===void 0&&o,e=s||this.messages?.NA,r=!this.layers?.find(d=>t?.layer?.id===d.id)?.visible,l=a?this.renderValuePlaceholder():i?"":r?c("calcite-icon",{icon:"view-hide",scale:"l",title:this.messages?.layerVisibilityOff}):e;return c("span",{class:m.value},l)}renderValuePlaceholder(){return c("span",{class:m.valuePlaceholder})}renderProgress(){let t=`${C}calcite-`;return c("calcite-progress",{key:`${t}progress`,type:"indeterminate"})}renderLoader(){let t=`${C}calcite-`,s=this.messages?.loading;return c("calcite-loader",{key:`${t}loader`,label:s??"",text:s,scale:"m"})}get getPositionClass(){let{bottom:t,left:s,right:o,side:i}=m.position,a=`${this.position==="left"?s:o} ${i}`;return this.isMobile||this.position==="bottom"?t:a}get getStyleClass(){let{floating:t,pinned:s}=m.mode;return this.isMobile?s:this.mode==="floating"?t:s}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<F:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(s=>s.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),o=this.items.slice(this.items.length-t).map(a=>a.uid),i=this.items.slice(this.itemIndex,this.itemIndex+t).map(a=>a.uid);return o.every((a,e)=>a===i[e])}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,s){let o=e=>{let{field:n,operation:r}=e,l=n,d=`${n}_${r}`;return{onStatisticField:l,outStatisticFieldName:d,statisticType:r}},i=(e,n)=>{let r=this.queryType==="layer"?e.layer.createQuery():e.createQuery(),l=[n],d=this.geometry?this.geometry:this.view?.extent;r.outStatistics=l,r.geometry=d;let h=e?.filter?.timeExtent??e?.featureEffect?.filter?.timeExtent??null;return h&&(r.timeExtent=h),r},a=()=>async e=>{let n=this.layerViews?.find(h=>h.layer.id===e?.layer?.id);if(!n)return;let r=o(e),l=i(n,r),d=this.queryType==="layer"?n.layer.queryFeatures(l):n.queryFeatures(l);s.push(d)};t.forEach(a())}handleQueryFeaturesResponses(t,s){let o=e=>{let r=e.features[0],{attributes:l}=r;return Object.values(l)[0]},i=()=>({notation:"compact",compactDisplay:"short"}),a=()=>(e,n)=>{let r=o(e),l=i(),d=r!==null,h=d?this.intl.formatNumber(r,l):null,b=d?`${h}`:"";s[n].displayValue=b,s[n].value=r};t.forEach(a())}initStationaryWatcher(){let t={once:!0,initial:!0},s=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>s()),i="stationary-watcher-key";this.handles?.has(i)&&this.handles.remove(i),this.handles?.add(o(),i)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let s=[],o=i=>{let a=async()=>{let n=await this.view?.whenLayerView(i);await this.reactiveUtils.whenOnce(()=>!n?.updating),this.calculateScoreboardItemValues()},e=this.reactiveUtils.watch(()=>i?.visible,async()=>await a());s.push(e)};this.layers.forEach(o),this.handles?.add([...s],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?U:this.itemLimit}get el(){return S(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};A.style=$;export{A as instant_apps_scoreboard};
3
+ v1.0.0-next.20250613 */
4
+ import{d as I}from"./7DTXJNDH.js";import{C as x,b as g,c as w,z as v}from"./LPFHKDLD.js";import{a as V}from"./K7TEZ7PM.js";import"./2JCMVX4M.js";import{a as L,c,d as E,e as S,f as P}from"./H6BFVMYO.js";import"./UKVIZZJA.js";var D=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}",$=D,u="instant-apps-scoreboard",U=6,C=`${u}--`,p=`${u}__`,F=V.medium[1],m={BASE:u,itemsContainer:`${p}items-container`,items:`${p}items`,item:`${p}item`,label:`${p}item-label`,value:`${p}item-value`,valuePlaceholder:`${p}item-value-placeholder`,position:{bottom:`${p}position--bottom`,side:`${p}position--side`,left:`${p}position--left`,right:`${p}position--right`},mode:{floating:`${p}mode--floating`,pinned:`${p}mode--pinned`}},A=class{constructor(t){L(this,t),this.scoreboardItemsUpdated=P(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await(this.view?.map).loadAll();let t=this.items.map(e=>e?.layer?.id),s=e=>e.type!=="feature"||!e.isTable,o=e=>e.type==="feature"||e.type==="scene",i=e=>t.includes(e.id),a=e=>s(e)&&o(e)&&i(e);this.layers=this.view?.map?.allLayers?.filter(e=>a(e)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(e=>e.outFields=["*"]);let t=[];this.layers.forEach(e=>{let n=e,r=this.view?.whenLayerView(n);t.push(r)});let i=(await Promise.allSettled(t)).filter(e=>e.status==="fulfilled"&&e.value).map(e=>e.value),a=[];i.forEach(e=>a.push(this.reactiveUtils?.whenOnce(()=>!e.updating))),await Promise.all(a),this.layerViews=await g([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state="calculating";let t=[...this.items],s=[];this.queryStatDefinitions(t,s);let o=await Promise.all(s);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(i=>this.items.push(i)),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});this.el?.parentElement&&t.observe(this.el.parentElement);try{this.state="loading",await this.initMessages()}catch{return this.state="disabled",Promise.reject(new Error("Failed to load messages"))}finally{if(!this.view||!this.items)this.state="disabled";else try{await this.initModules()}catch{this.state="disabled"}}}async componentDidLoad(){if(this.state!=="disabled")try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state="disabled",console.error(`${u}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){this.state="disabled",this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await I(this.el))[0],this.messages={...this.messages,...t},Promise.resolve()}catch{console.error("FAILED TO LOAD MESSAGES")}}async initModules(){try{let[t,s]=await Promise.all([v(),x()]);return this.reactiveUtils=t,this.intl=s,this.handles=await w(),this.layers=await g([]),this.layerViews=await g([]),Promise.resolve()}catch(t){throw console.error(t),this.state="disabled",new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,s=t;try{return await s.loadAll(),Promise.resolve()}catch(o){throw console.error(o),this.state="disabled",new Error("Failed to load map resources")}}}generateUID(){return t=>{let s=Math.random(),o=Math.floor(Math.random()*10)+11,a=s.toString(o).replace("0.","");t.uid=a}}render(){let{state:t}=this,s=t==="loading",o=t==="calculating",i=t==="disabled",a=s||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null,e=this.getPositionClass,n=this.getStyleClass;return c(E,{key:"2ec5b4e44c244ee935453d96887e07633f2abf37",class:`${e} ${n}`},i?null:[a,this.items?.length>0?this.renderBase():null])}renderBase(){return c("div",{key:"instant-apps-scoreboard-base",class:u},this.renderContent())}renderContent(){let{state:t}=this;return t==="loading"?this.renderLoader():t==="calculating"||t==="complete"?this.renderItemsContainer():null}renderItemsContainer(){let[t,s]=this.renderPreviousNextButtons();return c("div",{class:m.itemsContainer},t,this.renderItems(),s)}renderPreviousNextButtons(){let t=this.getItemLimit(),s=this.items.filter(k=>k.visible)?.length<=t,o=this.itemIndex===0,i=this.isEnd,a=this.isMobile?!0:this.position==="bottom",e=a?"start":"center",l={previous:a?"chevron-left":"chevron-up",next:a?"chevron-right":"chevron-down"},d=o||s?"blank":l.previous,h=i||s?"blank":l.next,b={previous:o||s,next:i||s},_="transparent",f=this.isMobile?"s":"l",y={previous:this.messages?.previous,next:this.messages?.next};return[c("calcite-action",{onClick:this.previousItem.bind(this),icon:d,disabled:b.previous,alignment:e,scale:f,appearance:_,text:y.previous??"",label:y.previous}),c("calcite-action",{onClick:this.nextItem.bind(this),icon:h,disabled:b.next,alignment:e,scale:f,appearance:_,text:y.next??"",label:y.next})]}renderItems(){let{items:t}=m,o=this.getItemsToDisplay.map(i=>this.renderItem(i));return c("ul",{class:t},o)}renderItem(t){let{label:s}=t;return c("li",{class:m.item},c("span",{class:m.label,title:s},s),this.renderValue(t))}renderValue(t){let{displayValue:s}=t,o=this.state==="calculating",i=this.state==="disabled",a=s===void 0&&o,e=s||this.messages?.NA,r=!this.layers?.find(d=>t?.layer?.id===d.id)?.visible,l=a?this.renderValuePlaceholder():i?"":r?c("calcite-icon",{icon:"view-hide",scale:"l",title:this.messages?.layerVisibilityOff}):e;return c("span",{class:m.value},l)}renderValuePlaceholder(){return c("span",{class:m.valuePlaceholder})}renderProgress(){let t=`${C}calcite-`;return c("calcite-progress",{key:`${t}progress`,type:"indeterminate"})}renderLoader(){let t=`${C}calcite-`,s=this.messages?.loading;return c("calcite-loader",{key:`${t}loader`,label:s??"",text:s,scale:"m"})}get getPositionClass(){let{bottom:t,left:s,right:o,side:i}=m.position,a=`${this.position==="left"?s:o} ${i}`;return this.isMobile||this.position==="bottom"?t:a}get getStyleClass(){let{floating:t,pinned:s}=m.mode;return this.isMobile?s:this.mode==="floating"?t:s}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<F:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(s=>s.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),o=this.items.slice(this.items.length-t).map(a=>a.uid),i=this.items.slice(this.itemIndex,this.itemIndex+t).map(a=>a.uid);return o.every((a,e)=>a===i[e])}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,s){let o=e=>{let{field:n,operation:r}=e,l=n,d=`${n}_${r}`;return{onStatisticField:l,outStatisticFieldName:d,statisticType:r}},i=(e,n)=>{let r=this.queryType==="layer"?e.layer.createQuery():e.createQuery(),l=[n],d=this.geometry?this.geometry:this.view?.extent;r.outStatistics=l,r.geometry=d;let h=e?.filter?.timeExtent??e?.featureEffect?.filter?.timeExtent??null;return h&&(r.timeExtent=h),r},a=()=>async e=>{let n=this.layerViews?.find(h=>h.layer.id===e?.layer?.id);if(!n)return;let r=o(e),l=i(n,r),d=this.queryType==="layer"?n.layer.queryFeatures(l):n.queryFeatures(l);s.push(d)};t.forEach(a())}handleQueryFeaturesResponses(t,s){let o=e=>{let r=e.features[0],{attributes:l}=r;return Object.values(l)[0]},i=()=>({notation:"compact",compactDisplay:"short"}),a=()=>(e,n)=>{let r=o(e),l=i(),d=r!==null,h=d?this.intl.formatNumber(r,l):null,b=d?`${h}`:"";s[n].displayValue=b,s[n].value=r};t.forEach(a())}initStationaryWatcher(){let t={once:!0,initial:!0},s=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>s()),i="stationary-watcher-key";this.handles?.has(i)&&this.handles.remove(i),this.handles?.add(o(),i)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let s=[],o=i=>{let a=async()=>{let n=await this.view?.whenLayerView(i);await this.reactiveUtils.whenOnce(()=>!n?.updating),this.calculateScoreboardItemValues()},e=this.reactiveUtils.watch(()=>i?.visible,async()=>await a());s.push(e)};this.layers.forEach(o),this.handles?.add([...s],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?U:this.itemLimit}get el(){return S(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};A.style=$;export{A as instant_apps_scoreboard};
@@ -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.0-next.20250605 */
4
- import{a as s}from"./V4EKVAQ2.js";import{a as r}from"./MUSGKJHI.js";import"./GAEZB6HN.js";import"./QB54S7F4.js";import"./M6XME7OM.js";import"./TT63U5XZ.js";import{a as o}from"./JCWH5TGE.js";import"./YNVH5WET.js";import"./YNKDS73P.js";import"./KN36CLI6.js";import"./NUVLGW3I.js";var y=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`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}},...r(e,t.thumbnail,s(t),"group",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 o(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}}]}]}]});export{y as buildUiSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a as s}from"./FVBTKN3N.js";import{a as r}from"./B3A3AMPV.js";import"./GFZBEF2X.js";import"./5DPFMR4I.js";import"./IJOSG4N5.js";import"./EXBNMAE6.js";import{a as o}from"./E64YVOUB.js";import"./T67LMZC2.js";import"./C2AIE2T2.js";import"./S3YNSR6B.js";import"./UKVIZZJA.js";var y=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`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}},...r(e,t.thumbnail,s(t),"group",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 o(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}}]}]}]});export{y 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.0-next.20250605 */
4
- import{a,b}from"./U4TZ7FO3.js";import"./NUVLGW3I.js";export{a as UserEditorTypes,b as UserSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a,b}from"./DASHRYX4.js";import"./UKVIZZJA.js";export{a as UserEditorTypes,b as UserSchema};
@@ -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.0-next.20250605 */
4
- import{a as d}from"./NJS2N5K3.js";import{d as g}from"./TFY5N3WM.js";var p;(function(t){t.User="user",t.Translation="translation"})(p||(p={}));var f;(function(t){t.String="string",t.TextEditor="textEditor"})(f||(f={}));var m;(function(t){t.ExpandCollapse="list-merge",t.SettingIndicator="list-button",t.Popover="information",t.Expanded="chevron-down",t.Collapsed="chevron-right",t.Copy="copy-to-clipboard",t.DefaultIcon="language",t.Title="title",t.Subtitle="subheading",t.Text="text",t.Description="description",t.Button="button",t.String="string"})(m||(m={}));var c;(function(t){t.Light="calcite-mode-light",t.Dark="calcite-mode-dark"})(c||(c={}));var S=`
3
+ v1.0.0-next.20250613 */
4
+ import{a as d}from"./7HNEFBST.js";import{d as g}from"./7DTXJNDH.js";var p;(function(t){t.User="user",t.Translation="translation"})(p||(p={}));var f;(function(t){t.String="string",t.TextEditor="textEditor"})(f||(f={}));var m;(function(t){t.ExpandCollapse="list-merge",t.SettingIndicator="list-button",t.Popover="information",t.Expanded="chevron-down",t.Collapsed="chevron-right",t.Copy="copy-to-clipboard",t.DefaultIcon="language",t.Title="title",t.Subtitle="subheading",t.Text="text",t.Description="description",t.Button="button",t.String="string"})(m||(m={}));var c;(function(t){t.Light="calcite-mode-light",t.Dark="calcite-mode-dark"})(c||(c={}));var S=`
5
5
  .instant-apps-language-translator-item__nested-input .ck.ck-reset.ck-editor.ck-rounded-corners {
6
6
  margin-left: 30px !important;
7
7
  }
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as e}from"./ZIZC3PWT.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
3
+ v1.0.0-next.20250613 */
4
+ import{a as e}from"./F2HTXL46.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s 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.0-next.20250605 */
4
- import"./NUVLGW3I.js";var l=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:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{helperText:{labelKey:`${e}.fields.prompt.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]});export{l as buildUiSchema};
3
+ v1.0.0-next.20250613 */
4
+ import"./UKVIZZJA.js";var l=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:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{helperText:{labelKey:`${e}.fields.prompt.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]});export{l 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.0-next.20250605 */
4
- import{b as e}from"./XUJO4B4K.js";import{a as r}from"./ZFYQGS6G.js";import{a as t}from"./DQBC22ZI.js";var o=["hub:event:create","hub:event:edit","hub:event:registrants"],m=()=>{let{startDate:a}=e();return{$async:!0,required:["name","startDate","endDate"],properties:{name:t,startDate:{type:"string",format:"date",formatMinimum:a},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1}},allOf:[r]}};export{o as a,m as b};
3
+ v1.0.0-next.20250613 */
4
+ import{b as e}from"./CILM6ZZK.js";import{a as r}from"./OGBEUJ35.js";import{a as t}from"./DVVDE2AV.js";var o=["hub:event:create","hub:event:edit","hub:event:registrants"],m=()=>{let{startDate:a}=e();return{$async:!0,required:["name","startDate","endDate"],properties:{name:t,startDate:{type:"string",format:"date",formatMinimum:a},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1}},allOf:[r]}};export{o as a,m as b};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{a as G}from"./QFECG4JS.js";import{a as L}from"./XT7PFAWR.js";import{c as K,d as _,e as U}from"./C5K2J7H4.js";import{l as j,p as P}from"./XHNIG4LQ.js";import"./WXYWYY3L.js";import"./ERDIVQ25.js";import"./X7CCOJBI.js";import"./GFZBEF2X.js";import"./5DPFMR4I.js";import{a as S}from"./IJOSG4N5.js";import"./EXBNMAE6.js";import"./FOBRIUEH.js";import"./IAJEOYDY.js";import{w}from"./T67LMZC2.js";import"./C2AIE2T2.js";import"./VH4KD2UB.js";import"./S3YNSR6B.js";import{b as A}from"./CILM6ZZK.js";import{a as c,b as p}from"./MJUSVFEE.js";import"./UKVIZZJA.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{a,b}from"./I6NUVFSK.js";import"./2IW5OPGT.js";import"./UKVIZZJA.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -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.0-next.20250605 */
4
- import{a as s}from"./MUSGKJHI.js";import"./GAEZB6HN.js";import"./QB54S7F4.js";import"./M6XME7OM.js";import"./TT63U5XZ.js";import{a as i,b as a}from"./VPORF37W.js";import"./PMETOHGA.js";import"./N74LH7NF.js";import{a as o}from"./O6TVLT3A.js";import{a as r}from"./JCWH5TGE.js";import"./YNVH5WET.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var u=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:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"discussion",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 r(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 i(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),mapTools:["polygon","rectangle"],noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.details.label`,elements:[{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{control:"hub-field-input-input",type:"textarea",messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]}]});export{u as buildUiSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a as s}from"./B3A3AMPV.js";import"./GFZBEF2X.js";import"./5DPFMR4I.js";import"./IJOSG4N5.js";import"./EXBNMAE6.js";import{a as i,b as a}from"./O3RRQFC7.js";import"./FOBRIUEH.js";import"./IAJEOYDY.js";import{a as o}from"./65PMG2PU.js";import{a as r}from"./E64YVOUB.js";import"./T67LMZC2.js";import"./C2AIE2T2.js";import"./VH4KD2UB.js";import"./S3YNSR6B.js";import"./UZYRU2CV.js";import"./DASHRYX4.js";import"./I6NUVFSK.js";import"./2IW5OPGT.js";import"./2Y73A3MC.js";import"./QHKUHSB4.js";import"./PGM2D4BL.js";import"./BAKMXZ7G.js";import"./2CXGIE2Y.js";import"./QH3NPYAQ.js";import"./2NUECUOL.js";import"./PN3T6KFP.js";import"./CILM6ZZK.js";import"./OGBEUJ35.js";import"./MJUSVFEE.js";import"./DI4XSN3O.js";import"./66GDPGJ4.js";import"./QZITIAU7.js";import"./MHCFCKU5.js";import"./HN5MMXWZ.js";import"./F2HTXL46.js";import"./ENBESLVD.js";import"./DVVDE2AV.js";import"./UKVIZZJA.js";var u=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:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"discussion",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 r(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 i(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),mapTools:["polygon","rectangle"],noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.details.label`,elements:[{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{control:"hub-field-input-input",type:"textarea",messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]}]});export{u 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.0-next.20250605 */
4
- import{e,f as t}from"./DQBC22ZI.js";import"./NUVLGW3I.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.0-next.20250613 */
4
+ import{e,f as t}from"./DVVDE2AV.js";import"./UKVIZZJA.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.0-next.20250605 */
4
- import{a,b}from"./JDEXVRJ5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";export{a as PageEditorTypes,b as PageSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a,b}from"./QHKUHSB4.js";import"./F2HTXL46.js";import"./ENBESLVD.js";import"./DVVDE2AV.js";import"./UKVIZZJA.js";export{a as PageEditorTypes,b as PageSchema};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{a as C}from"./FWKD6EYP.js";import"./H6BFVMYO.js";import{d as I}from"./KFHHWR7Q.js";import{a as s}from"./BJUDP4CV.js";import"./WUXC3NVU.js";import{a as h,b as r}from"./3Q3S4KCD.js";import{a as x}from"./CXKUQGUM.js";import{A as v,D as L,c as g,d as l,f as w,n as b,p as y,y as $,z as m}from"./4NASOTXM.js";import"./UKVIZZJA.js";var F=g`@layer{/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-1{z-index:1}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-50{position:absolute;inset:50px 0 0}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;margin:100px 0;z-index:1}.left-0{left:0}.right-0{right:0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}}`,_=class extends ${constructor(){super(),this.coverPageEnabled=!1,this.customInfoText="",this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor="",this.popupHeaderHoverColor="",this.popupHeaderHoverTextColor="",this.popupHeaderTextColor="",this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.enableSelectionTool=!0,this.featureSelectionMode="multiple",this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=x({name:"crowdsource-manager",blocking:!0}),this._layoutMode=s.GRID,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerExpressions=[],this._layerIds=[],this._isLoading=!0,this._mapExtentFilterChecked=!1,this._deleteIds=[],this._defaultAppLayoutHonored=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._layerTable=h(),this._shouldSetMapView=!1,this._filterList=h(),this._mapCard=h(),this._isMapViewOnLoad=!1,this.showIntroductionWindow=b(),this.showCoverPage=b(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"popupClosed",this.popupClosed),this.listenOn(window,"layoutChanged",this.layoutChanged),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"showDelete",this.showDelete),this.listenOn(window,"idsFound",this.idsFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),C(window)}static{this.properties={appLayout:1,appProxies:1,basemapConfig:0,coverPageEnabled:5,customInfoText:1,defaultAppLayout:1,defaultCenter:1,defaultGlobalId:1,defaultLayer:1,defaultLevel:1,defaultOid:1,defaultWebmap:1,honorMapFieldSettings:5,introductionWindowEnabled:5,enableAutoRefresh:5,enableBasemap:5,enableColumnReorder:5,enableCSV:5,enableFloorFilter:5,enableFullscreen:5,enableHome:5,enableLegend:5,enableSearch:5,enableShare:5,enableSnapping:5,enableZoom:5,mapInfos:0,onlyShowUpdatableLayers:5,popupHeaderColor:1,popupHeaderHoverColor:1,popupHeaderHoverTextColor:1,popupHeaderTextColor:1,searchConfiguration:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,theme:1,zoomAndScrollToSelected:5,zoomToScale:9,enableSelectionTool:5,featureSelectionMode:1,_deleteDialogOpen:16,_enableCreateFeatures:16,_hideFooter:16,_hideTable:16,_isMobile:16,_translations:16,_layer:16,_layoutMode:16,_mapInfo:16,_mapView:16,_panelOpen:16,_numSelected:16,_filterOpen:16,_showInformationHeader:16,_layerExpressions:16,_layerIds:16,_isLoading:16,_mapExtentFilterChecked:16,_deleteIds:16}}static{this.styles=F}static{this.shadowRootOptions=y}willUpdate(e){e.has("appLayout")&&this.appLayout&&this.appLayoutWatchHandler(this.appLayout,e.get("appLayout")),e.has("enableZoom")&&(this.hasUpdated||this.enableZoom!==!0)&&this.enableZoomWatchHandler()}appLayoutWatchHandler(e,t){e!==t&&(this._layerTable.value?.validateTableUpdate(e==="splitView"),this._setActiveLayout(e),this.appLayout==="mapView"&&this._layer?.isTable&&this._mapCard.value&&this._mapCard.value.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.value&&this._layerTable.value.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async featureSelectionChange(e){this._numSelected=e.detail?.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(e){this._layoutMode=e.detail}async mapChanged(e){this._mapChange=e.detail,this.showHideMapPopupAndTable(!1),await this._mapChange?.mapView.when(async()=>{await this._setMapView()})}async layerSelectionChange(e){let t=e.detail[0],i=this._mapView&&await I(this._mapView,t);i&&await i.when(()=>{i.isTable&&!this._isMobile&&(this.appLayout="tableView"),this._layer=i,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1})}async showDelete(e){this._deleteIds=e.detail.ids,this._deleteDialogOpen=!0}async idsFound(e){this._layerIds=e.detail.layerIds}async clearSelection(){this.showHideMapPopupAndTable(!1)}async relatedRecordToggled(e){let t=e.detail;this._relatedTableLayer=t}load(){this._resizeObserver=new ResizeObserver(()=>this._onResize())}render(){let e=this.popupHeaderColor&&this.popupHeaderColor!=="#FFFFFF"?"border-width-0":"";return l`<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode,this._panelOpen,this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile&&this._deleteModal()||""}`}async updated(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}loaded(){this._resizeObserver?.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad=this.appLayout==="mapView",this._setActiveLayout(this.appLayout)}_getFooter(){let e=this._numSelected>0,t=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer,i=this._layer?.editingEnabled&&this._layer.capabilities?.operations.supportsDelete;return this._isMobile&&e&&!this._hideFooter?l`<div class=${"width-100"} slot=footer><div class="display-flex padding-1-2"><calcite-button appearance=solid id=solutions-show @click=${()=>this.showHideMapPopupAndTable(!0)} width=full>${this._translations.view.replace("{{n}}",this._numSelected.toString())}</calcite-button>${i?l`<delete-button class="padding-inline-start-1 width-full" id=solutions-delete .ids=${this.updateIdsToBeDeleted()} @deleteClicked=${this.updateIdsToBeDeleted} .layer=${t}></delete-button>`:void 0}</div></div>`:void 0}updateIdsToBeDeleted(){return this._deleteIds=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._layerTable.value.selectedRelatedIds:this._layerTable.value?.selectedIds,this._deleteIds}_setActiveLayout(e){e==="splitView"&&!this._panelOpen&&this._toggleLayout(),e==="mapView"?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(e,t){let i="";switch(e){case s.HORIZONTAL:i=t?"chevrons-up":"chevrons-down";break;case s.VERTICAL:i=t?"chevrons-left":"chevrons-right";break;case s.GRID:i=t?"chevrons-left":"chevrons-right";break}return i}_getMapSizeClass(e,t,i){let a="";switch(e){case s.HORIZONTAL:a=`${t&&!i?"height-1-2 display-grid":t&&i?"height-full":"height-0"} width-full position-relative`;break;case s.GRID:a=`height-full position-relative ${t?"width-1-3":"width-0"}`;break;case s.VERTICAL:a=`height-full position-relative ${t?"width-1-2":"width-0"}`;break}return a}_getTableSizeClass(e,t){let i="";switch(e){case s.HORIZONTAL:i=`${t?"height-1-2":"height-full"} width-full display-flex flex-column`;break;case s.GRID:i=`${t?"width-2-3":"width-full"} height-full display-flex`;break;case s.VERTICAL:i=`${t?"width-1-2":"width-full"} height-full display-flex`;break}return i}_getBody(e,t,i){let a=e===s.HORIZONTAL?"":"display-flex",o=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",n=document.dir==="rtl"?"left-0":"right-0";return l`<calcite-panel class="width-full height-full position-absolute"><div class=${`width-full height-full overflow-hidden ${a}`}>${this._getMapAndCard(e,t,i)}${this._getTable(e,t,i)}</div>${this.coverPageEnabled&&l`<div class=${`floating-container ${n}`} @click=${this.coverPageButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=content-minimal kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}${this.introductionWindowEnabled&&l`<div class=${`floating-container ${n}`} @click=${this.infoButtonClick}><calcite-button appearance=solid class=${`floating-button ${o}`} icon-start=information-letter kind=neutral label round scale=l split-child=primary width=auto></calcite-button></div>`||""}</calcite-panel>`}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(e,t,i){let a=this._getMapSizeClass(e,t,i);return l`<div class=${`${a} overflow-hidden z-index-1`}>${this._getMapNode(t)}${this._getPopupExpandNode()}</div>`}_getMapNode(e){let t=this.appLayout==="mapView",i=this.appLayout==="tableView",a=this._isMobile?"height-full":t||i?"position-absolute-0":this._layoutMode===s.HORIZONTAL&&(!this._isMobile||e)?"":"adjusted-height-50",o=this.defaultWebmap&&this.defaultLayer,n=this.enableSelectionTool&&this.featureSelectionMode==="multiple"&&!this._layer?.isTable,d=["home","legend","search","fullscreen","basemap","floorfilter","selectiontool"],p=["map-picker","map-layer-picker"];return l`<div class=${`${a} overflow-hidden`} id=card-mapView><map-card .appLayout=${this.appLayout} .appProxies=${this.appProxies} .basemapConfig=${this.basemapConfig} class="width-full" .defaultLayerId=${o?this.defaultLayer:""} .defaultWebmapId=${this.defaultWebmap} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSelectionTool=${n} .enableShare=${this.enableShare} enable-single-expand enable-map-layer-picker enable-map-picker .featureSelectionMode=${this.featureSelectionMode} .hide=${!this._isMobile&&i} zoom-tools-size=s .isMapLayout=${t} .isMobile=${this._isMobile} .mapInfo=${this._mapInfo} .mapInfos=${this.mapInfos?.filter(c=>c.visible!==!1)} map-widgets-index=0 map-widgets-position=top-left mobile-map-widgets-position=top-right map-widgets-size=m .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .selectedFeaturesIds=${this._layerTable.value?.selectedIds??[]} .selectedLayer=${this._layer} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} stack-tools .theme=${this.theme} .mapToolsOrder=${d} .mobileToolsOrder=${p} .zoomToScale=${this.zoomToScale} ${r(this._mapCard)}></map-card></div>`}_getPopupExpandNode(){let e=this._isMobile?"height-full":"height-full position-relative",t=this._isMobile&&this._showInformationHeader?"display-none height-0":"",i=this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark",a=this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":"",o=this.mapInfos?.length>1&&this.appLayout==="tableView"?"position-relative top-51":"",n=this.appLayout!=="tableView"?"position-sticky":"";return l`<div class=${`${i} ${e} ${a} ${o} ${n}`} style=${v({"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor})}><calcite-panel>${!this._isMobile&&this._showInformationHeader||this._numSelected>0&&!this._isMobile?l`<div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-icon icon=information scale=s></calcite-icon><div class="padding-inline-start-75">${this._translations.information}</div></div>`:l`<div></div>`}${this._getCardNode()}</calcite-panel></div>`}_getCardNode(){let e=this.appLayout==="mapView",t=this.appLayout==="tableView",i=this._isMobile?"height-full":t&&this.mapInfos?.length>1?"adjusted-height-100-51":e||t?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isMobile?"height-full":"height-50":"adjusted-height-50_25",a=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",o=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer;return l`<div class=${`width-50 height-full ${a}`}><card-manager class=${`${i} width-full`} .customInfoText=${this.customInfoText} .enableCreateFeatures=${this._enableCreateFeatures&&!this._isMobile} .enableEditGeometry=${this?._mapInfo?.enableEditGeometry} .enableSnapping=${this.enableSnapping} .isMobile=${this._isMobile} .layerOrTable=${o} .mapView=${this?._mapView} @backFromCreateWorkFlow=${()=>{this._showInformationHeader=!0}} @createWorkFlowStarted=${()=>{this.appLayout=o?.isTable?"tableView":"mapView",this._showInformationHeader=!1}} @featureOrRecordSubmitted=${()=>this._layerTable.value&&void this._layerTable.value.refresh()} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout==="mapView"} .showSketchWidgets=${o?.geometryType!=="point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`}_getTable(e,t,i){let a=this.appLayout==="mapView",o=this.appLayout==="tableView",n=i&&this._isMobile?"visibility-hidden":a?"display-none":"",d=a?"height-full width-full z-index-0":"display-none",p=this._getTableSizeClass(e,t),c=e===s.HORIZONTAL?"horizontal":"vertical",T=e===s.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,f=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,S=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map(M=>Number.parseInt(M,10)):[Number.parseInt(this.defaultOid,10)]:void 0;return l`<calcite-shell class=${`${p} border-bottom z-index-1`}>${this._isMobile?void 0:l`<calcite-action-bar class="border-sides" expand-disabled .layout=${c} slot=${T??w}>${this.getActions(e,t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${n}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${u?f:void 0} .defaultLayerId=${u?this.defaultLayer:""} .defaultOid=${u&&!f?S:void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${o} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} ${r(this._layerTable)}></layer-table></div><div class=${m(d)} id=full-map-view></div></calcite-shell>`}getActions(e,t){let i=this._getDividerIcon(e,t),a=t?this._translations.close:this._translations.open,o="toggle-layout";return l`<calcite-action .active=${this.appLayout==="splitView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser id=browser-action @click=${()=>{this.appLayout="splitView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-action><span>${this._translations.splitView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="tableView"} class="toggle-node" icon=dock-left id=dock-left-action @click=${()=>{this.appLayout="tableView"}} text></calcite-action><calcite-tooltip placement=right reference-element=dock-left-action><span>${this._translations.tableView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="mapView"} class="toggle-node" .disabled=${this._layer?.isTable} icon=browser-map id=browser-map-action @click=${()=>{this.appLayout="mapView"}} text></calcite-action><calcite-tooltip placement=right reference-element=browser-map-action><span>${this._translations.mapView}</span></calcite-tooltip><calcite-action class="toggle-node" .icon=${i} id=${o} @click=${()=>this._toggleLayout()} slot=actions-end text></calcite-action><calcite-tooltip placement=bottom .referenceElement=${o}><span>${a}</span></calcite-tooltip>`}_deleteModal(){let e=(this._layerTable.value?.selectedRelatedIds?.length??0)>0?this._relatedTableLayer:this._layer;return l`<delete-dialog id=deleteDialogId .ids=${this._deleteIds} .layer=${e} @deleteDialogClose=${()=>this._deleteDialogOpen=!1} .open=${this._deleteDialogOpen}></delete-dialog>`}_mapExtentFilter(){let e=this._layerExpressions?.length===0;return l`<calcite-panel><div><calcite-block class=${m(this.theme==="dark"?"background-dark":"")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${t=>{let i=!!(t.target.checked||this._filterList.value?.filterCount&&this._filterList.value?.filterCount>0);this._layerTable.value&&this._layerTable.value?.filterUpdate(i,t.target.checked),this._mapCard.value&&this._mapCard.value?.updateFilterState(i),this._mapExtentFilterChecked=t.target.checked}} scale=m></calcite-switch></div></calcite-block>${e&&l`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>`||""}</div></calcite-panel>`}_filterModal(){let e=this._layerExpressions?.length>0,t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-dialog class=${`filter-content-space ${t}`} .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog-manager kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width=s>${!this._layer?.isTable&&this._mapExtentFilter()||""}${e&&this._mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${this._handleFilterListReset} @filterUpdate=${()=>void this._updateFilter()} .view=${this._mapView} ${r(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}_updateFilter(){let e=this._filterList?.value?.filterCount&&this._filterList.value.filterCount>0||this._mapExtentFilterChecked;this._layerTable.value&&this._layerTable.value?.filterUpdate(e),this._mapCard.value&&this._mapCard.value.updateFilterState(e)}_initLayerExpressions(){let e=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[]}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.value&&this._mapCard.value.resetFilter(),this._layerTable.value&&this._layerTable.value.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.value&&this._layerTable.value.closeFilter())}_onResize(){let e=this.el.offsetWidth<=1024,t=!this._isMobile&&e;this._isMobile=e,t&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this.appLayout="splitView"):(this._layer?.isTable&&(this.appLayout="tableView"),this._isMobile=!1),this._layoutMode=this._isMobile?s.HORIZONTAL:s.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if(this.appLayout!=="mapView"){let e=document.getElementById("full-map-view")?.childNodes[0],t=document.getElementById("card-mapView");e&&t&&t.appendChild(e)}}_showMapInFullView(){let e=document.getElementById("card-mapView")?.childNodes,t;e?.forEach(a=>{!t&&a.mapView&&(t=a)});let i=document.getElementById("full-map-view");t&&i&&i.appendChild(t)}showHideMapPopupAndTable(e){this._hideTable=e,this._hideFooter=e}_getMapInfo(e){let t;return this.mapInfos.some(i=>i.id===e?(t={...i},!0):!1),t}async _setMapView(){let e=this._mapChange&&this._getMapInfo(this._mapChange.id);if(e&&this._mapChange){this._mapInfo=e,this._initLayerExpressions(),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;let t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map(a=>Number.parseFloat(a)),i=!this.defaultLevel||this._defaultLevelHonored?void 0:Number.parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView?.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView?.ui.remove("zoom")}};L("crowdsource-manager",_);export{_ as CrowdsourceManager};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{a as u,e as h}from"./RYBBDSVC.js";import{a}from"./FK3LVUKS.js";import"./OTLIXGZN.js";import"./YQ62X2PW.js";import"./QFECG4JS.js";import"./KXVNO4A5.js";import"./W3TTJTGV.js";import"./XHNIG4LQ.js";import"./ERDIVQ25.js";import"./KAVI5FEZ.js";import"./BNKH37TY.js";import"./MK7REF7S.js";import"./QV7PB2KD.js";import"./GFZBEF2X.js";import"./5DPFMR4I.js";import"./IJOSG4N5.js";import"./EXBNMAE6.js";import"./IAJEOYDY.js";import"./T67LMZC2.js";import"./C2AIE2T2.js";import"./VH4KD2UB.js";import"./S3YNSR6B.js";import"./BJUDP4CV.js";import{D as l,n as o,p as n,y as i}from"./4NASOTXM.js";import"./UKVIZZJA.js";var r=class extends i{constructor(){super(...arguments),this.value="",this.templates=[],this.stateLoaded=o()}static{this.properties={value:3,templates:2,authentication:0}}static{this.shadowRootOptions=n}connectedCallback(){super.connectedCallback(),this._handleValueChange(this.value),this._initValueObserver()}render(){return null}async getStoreInfo(t){return Promise.resolve(a.getStoreInfo(t))}_handleValueChange(t){if(t!==""){let e=JSON.parse(t);a.setStoreInfo("solutionData",e);let s=u(e.templates);a.setStoreInfo("featureServices",s),a.setStoreInfo("spatialReferenceInfo",h(s,e)),this.templates=e.templates,this.stateLoaded.emit(a)}}_initValueObserver(){this._valueObserver=new MutationObserver(t=>{t.some(e=>{let s=e.target[e.attributeName];return e.type==="attributes"&&e.attributeName==="value"&&s!==e.oldValue?(this._handleValueChange(s),!0):!1})}),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}};l("store-manager",r);export{r as StoreManager};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250613 */
4
+ import{y as h}from"./YQ62X2PW.js";import{g as n}from"./C2AIE2T2.js";export default $arcgis.t(([l,u,c])=>{var p=class{constructor(t,r,e){this._credential=null,this._locale="en",this._portalSubset=null,this._isEnterprise=!1,this._portalUserSubset=null,this._clientId=t,this._locale=e,this._portalUrl=r,this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:r;let s=new u({appId:t,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});l.registerOAuthInfos([s]),this._portal=new c({url:this._portalUrl})}async init(){try{await this._init()}catch{this.destroy()}return this}async _init(){this._credential=await l.checkSignInStatus(this._portalUrl+"/sharing");try{let t=await l.checkAppAccess(this._portalUrl,this._clientId);(typeof t.valid<"u"&&!t.valid||t.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}catch{window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl,portalUrl:this._portal.url,urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&(this._portalSubset.workflowURL=await h(this._portal.restUrl,this.RestUserSession||new n({}))),this._portal.user?.roleId&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}get SignedIn(){return this._credential!==null}get Credential(){return this._credential}get Portal(){return this._portal}get PortalUrl(){return this._portalUrl}get PortalSubset(){return this._portalSubset}get PortalUserSubset(){return this._portalUserSubset}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserCulture(){return this._portalUserSubset&&this._portalUserSubset.culture||""}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get IsEnterprisePortal(){return this._isEnterprise}get RestUserSession(){let t=this.Credential;if(!t)return null;let r={server:this.PortalUrl,hasPortal:this.IsEnterprisePortal,hasServer:this.IsEnterprisePortal},e=n.fromCredential(t,r);return e.clientId=this._credential._oAuthCred?.appId,e._refreshToken=this._credential._oAuthCred?.refreshToken,e}refreshSession(){let t=this.RestUserSession;return t?t.exchangeRefreshToken():null}signIn(t=""){l.setOAuthRedirectionHandler(r=>{let e=r.authorizeParams.redirect_uri;if(t.length>0){let s=e.split("?"),i=s[0],a="";if(s[1]){let o=new URLSearchParams(s[1]);o.append("signInParam",t),a="?"+o.toString()}r.authorizeParams.redirect_uri=i+a}window.location.href=r.authorizeUrl+"?"+this._objectToQuery(r.authorizeParams)}),l.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(()=>{window.location.reload()})}signOut(){let t="https://"+this._portalSubset?.hostName;window.location.hostname===this._portalSubset?.hostName?t+="/index.html":this._portalSubset?.urlKey&&window.location.hostname.indexOf(this._portalSubset?.urlKey)>-1?t=window.location.origin+"/home/index.html":t=this._portalUrl+"/home",this.signOutAndRedirect(t)}signOutAndRedirect(t){let r=`${this._portalSubset?.restUrl??this._portalUrl+"/sharing/rest"}/oauth2/signout?client_id=${this._clientId}&redirect_uri=${encodeURIComponent(t)}`;this.destroy(),window.location.replace(r)}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,l.destroyCredentials()}_getOrgUrl(t,r,e){return r&&e?window.location.protocol+"//"+r.toLowerCase()+"."+e:t}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,r){return t?r&&typeof r=="function"?Object.keys(t).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(r(e,t[e]))).join("&"):Object.keys(t).map(e=>{let s=t[e];if(s==null)return"";let i=encodeURIComponent(e)+"=",a=r&&r[e];return a?i+encodeURIComponent(a(s)):Array.isArray(s)?s.map(o=>this._isSerializable(o)?i+encodeURIComponent(JSON.stringify(o)):i+encodeURIComponent(o)).join("&"):this._isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)}).filter(e=>e).join("&"):""}};return p},"identity/IdentityManager","identity/OAuthInfo","portal/Portal")
@@ -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.0-next.20250605 */
4
- import{a,b}from"./SPASMJZ7.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a,b}from"./QH3NPYAQ.js";import"./F2HTXL46.js";import"./ENBESLVD.js";import"./DVVDE2AV.js";import"./UKVIZZJA.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
@@ -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.0-next.20250605 */
4
- import{a as p}from"./M6XME7OM.js";import{a as n}from"./KN36CLI6.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
3
+ v1.0.0-next.20250613 */
4
+ import{a as p}from"./IJOSG4N5.js";import{a as n}from"./S3YNSR6B.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as e}from"./ZIZC3PWT.js";var i=["hub:initiativeTemplate:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}},recommendedTemplates:{type:"array",items:{type:"string"}}})});export{i as a,r as b};
3
+ v1.0.0-next.20250613 */
4
+ import{a as e}from"./F2HTXL46.js";var i=["hub:initiativeTemplate:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}},recommendedTemplates:{type:"array",items:{type:"string"}}})});export{i as a,r 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.0-next.20250605 */
4
- import{a as e}from"./ZIZC3PWT.js";var s=["hub:page:edit","hub:page:create"],a=Object.assign(Object.assign({},e),{properties:Object.assign({},e.properties)});export{s as a,a as b};
3
+ v1.0.0-next.20250613 */
4
+ import{a as e}from"./F2HTXL46.js";var s=["hub:page:edit","hub:page:create"],a=Object.assign(Object.assign({},e),{properties:Object.assign({},e.properties)});export{s as a,a 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.0-next.20250605 */
4
- import{a as s}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c as buildUiSchema};
3
+ v1.0.0-next.20250613 */
4
+ import{a as s}from"./UZYRU2CV.js";import"./DASHRYX4.js";import"./I6NUVFSK.js";import"./2IW5OPGT.js";import"./2Y73A3MC.js";import"./QHKUHSB4.js";import"./PGM2D4BL.js";import"./BAKMXZ7G.js";import"./2CXGIE2Y.js";import"./QH3NPYAQ.js";import"./2NUECUOL.js";import"./PN3T6KFP.js";import"./CILM6ZZK.js";import"./OGBEUJ35.js";import"./MJUSVFEE.js";import"./DI4XSN3O.js";import"./66GDPGJ4.js";import"./QZITIAU7.js";import"./MHCFCKU5.js";import"./HN5MMXWZ.js";import"./F2HTXL46.js";import"./ENBESLVD.js";import"./DVVDE2AV.js";import"./UKVIZZJA.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c as buildUiSchema};