@esri/solutions-components 1.0.0-next.20250528.1 → 1.0.0-next.20250528.2

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 (378) hide show
  1. package/dist/cdn/{OGZ3UIZT.js → 27LQAQ6Y.js} +2 -2
  2. package/dist/cdn/{25PBJJQW.js → 2BECX5WX.js} +2 -2
  3. package/dist/cdn/{AYFLC652.js → 2HAFNSIE.js} +2 -2
  4. package/dist/cdn/{LVMAXE6W.js → 2IDGPQJR.js} +2 -2
  5. package/dist/cdn/{O6HZLBPG.js → 2MMQZII3.js} +2 -2
  6. package/dist/cdn/{OXNEUTDS.js → 2OOMOXGH.js} +2 -2
  7. package/dist/cdn/{GUKAJOM3.js → 2TF5G4JI.js} +1 -1
  8. package/dist/cdn/{YQFC4GG5.js → 2XZSJ6JD.js} +2 -2
  9. package/dist/cdn/{VMYRQS35.js → 35BOYRXZ.js} +2 -2
  10. package/dist/cdn/{VJF4PI5U.js → 3LMFSQQR.js} +2 -2
  11. package/dist/cdn/{QTWHZ3DL.js → 3PIEW24G.js} +2 -2
  12. package/dist/cdn/{B7PLQJPS.js → 3S4FG2ZZ.js} +2 -2
  13. package/dist/cdn/{MEJKJ4M5.js → 3SGIDV3I.js} +2 -2
  14. package/dist/cdn/{ZIB46UQF.js → 3WC22OVN.js} +2 -2
  15. package/dist/cdn/{JFW3ETMX.js → 3XJKMZHA.js} +1 -1
  16. package/dist/cdn/{LGMAK23W.js → 455HDVF4.js} +2 -2
  17. package/dist/cdn/{GPPR5STT.js → 4KGZBVTB.js} +2 -2
  18. package/dist/cdn/{4BCOHKBU.js → 4ME5QMIF.js} +2 -2
  19. package/dist/cdn/{3I4NEFH6.js → 4QWQA7SP.js} +2 -2
  20. package/dist/cdn/{TNVAHKZK.js → 4S2I2R2Q.js} +1 -1
  21. package/dist/cdn/{XYAE4MT5.js → 54NDBS5W.js} +2 -2
  22. package/dist/cdn/{6CNRWGJ4.js → 5APFWJZZ.js} +2 -2
  23. package/dist/cdn/{PEAUVPGM.js → 5BKTEPSJ.js} +2 -2
  24. package/dist/cdn/{BQJ4XZB4.js → 5IZBEDEU.js} +1 -1
  25. package/dist/cdn/{EMLYZ2SS.js → 5NIDGVLZ.js} +2 -2
  26. package/dist/cdn/{4FJ6YIEW.js → 5P6SZW5B.js} +2 -2
  27. package/dist/cdn/{BTD7DMX5.js → 5PENO4BC.js} +2 -2
  28. package/dist/cdn/{CDAJFWOQ.js → 5USKOL72.js} +2 -2
  29. package/dist/cdn/{WVH5MJSX.js → 5ZAVVIAH.js} +2 -2
  30. package/dist/cdn/{43IF6RVS.js → 64XCUKMX.js} +2 -2
  31. package/dist/cdn/{JU2E7OJJ.js → 66IB2PZE.js} +2 -2
  32. package/dist/cdn/{PW6BCLMM.js → 6APCAUUT.js} +2 -2
  33. package/dist/cdn/{RHIPAMD6.js → 6CPKRUI3.js} +1 -1
  34. package/dist/cdn/{BQWBXINS.js → 6GVJGNRK.js} +2 -2
  35. package/dist/cdn/{2GFLPWN7.js → 6PWODZF3.js} +2 -2
  36. package/dist/cdn/{WFWVO6JC.js → 6QWS7JEN.js} +2 -2
  37. package/dist/cdn/{NQ4GJ2EY.js → 6RHP2Y7C.js} +1 -1
  38. package/dist/cdn/{OYGGU32Q.js → 6WQKENE2.js} +4 -4
  39. package/dist/cdn/{LDUWYS5W.js → 6WXHOI6Z.js} +2 -2
  40. package/dist/cdn/{LDBZTZKY.js → 6XYU4BZS.js} +2 -2
  41. package/dist/cdn/{AK7RIEHS.js → 72HLVTY7.js} +2 -2
  42. package/dist/cdn/{GOJUA34O.js → 73NJ4RPV.js} +1 -1
  43. package/dist/cdn/{KNTNR7IZ.js → 7GY7BTPK.js} +2 -2
  44. package/dist/cdn/{O5KMAS35.js → 7OZTZCPH.js} +2 -2
  45. package/dist/cdn/{F53ZDM22.js → A2WX4D7A.js} +1 -1
  46. package/dist/cdn/{KGCLTR2S.js → A3JKO4I4.js} +1 -1
  47. package/dist/cdn/{M3IHDXDC.js → A4JM6VWA.js} +2 -2
  48. package/dist/cdn/{NDIWTIWO.js → ABYMP2JA.js} +2 -2
  49. package/dist/cdn/{R73PDU63.js → AF3RJAL5.js} +1 -1
  50. package/dist/cdn/{JQ2FK77O.js → AGRD4ULC.js} +2 -2
  51. package/dist/cdn/{QB3JQLSH.js → AH5AIEIN.js} +1 -1
  52. package/dist/cdn/{GBW3TB6N.js → AHEWCN4W.js} +2 -2
  53. package/dist/cdn/{IYU2EMNF.js → AJUGJQUJ.js} +1 -1
  54. package/dist/cdn/{4EEFLJ7L.js → ARQHAHK5.js} +2 -2
  55. package/dist/cdn/{JSGP47F6.js → ARYFWYUR.js} +1 -1
  56. package/dist/cdn/{4KQPYQDK.js → AT3MTRQS.js} +1 -1
  57. package/dist/cdn/{AJGIKTXY.js → B4HONVWZ.js} +1 -1
  58. package/dist/cdn/{SJXIUCRN.js → BACSZ2Z7.js} +1 -1
  59. package/dist/cdn/{77Q75LZE.js → BANL5YR3.js} +2 -2
  60. package/dist/cdn/{HQRVKXX3.js → BB7RJW6E.js} +2 -2
  61. package/dist/cdn/BGVU5VPJ.js +18 -0
  62. package/dist/cdn/{SJRG6HSF.js → BKQVXWB7.js} +2 -2
  63. package/dist/cdn/{JV6ZPBUH.js → BZFFNFXK.js} +2 -2
  64. package/dist/cdn/{PMGGZDUN.js → C2XKMOX2.js} +2 -2
  65. package/dist/cdn/{HRPJRXCN.js → C3A3SGFC.js} +2 -2
  66. package/dist/cdn/{OC7VO4DN.js → C7TWT6K2.js} +2 -2
  67. package/dist/cdn/{7TRQSZUN.js → CLZ42RFU.js} +1 -1
  68. package/dist/cdn/{KIFEL7BK.js → COLHBQ5X.js} +2 -2
  69. package/dist/cdn/{7EPNN646.js → CPB7DXI3.js} +2 -2
  70. package/dist/cdn/{ZYKXXCGE.js → CQ6SIDRV.js} +2 -2
  71. package/dist/cdn/{RCJYMJC7.js → CQMNR2XZ.js} +1 -1
  72. package/dist/cdn/{CJWTSXB2.js → CR3NXOPF.js} +2 -2
  73. package/dist/cdn/{ZYGUTXA6.js → CRYN5SYR.js} +2 -2
  74. package/dist/cdn/CSTT6IAN.js +4 -0
  75. package/dist/cdn/{VSZYFVFD.js → CXW7Q33E.js} +2 -2
  76. package/dist/cdn/{XIE4A7B3.js → D6KVYJKN.js} +2 -2
  77. package/dist/cdn/{CQDWK2WT.js → DCP6AHDZ.js} +2 -2
  78. package/dist/cdn/{W5Y6RZM3.js → DJI7J3C3.js} +2 -2
  79. package/dist/cdn/{KIBBTGLB.js → DMRVOPBM.js} +2 -2
  80. package/dist/cdn/{T6F66PP6.js → DT2GGHBN.js} +2 -2
  81. package/dist/cdn/{UZTDCPJS.js → DUOJYQGU.js} +2 -2
  82. package/dist/cdn/{FJFCA3JN.js → DWBMQBAB.js} +2 -2
  83. package/dist/cdn/{DTGGAA3W.js → DZXTVGRQ.js} +2 -2
  84. package/dist/cdn/{WWUUOJSY.js → ELBSRAMH.js} +2 -2
  85. package/dist/cdn/{ND675HM5.js → ETSCX6UD.js} +1 -1
  86. package/dist/cdn/{KSS3APGW.js → EU3TXNP2.js} +2 -2
  87. package/dist/cdn/{W3GEDPI3.js → EXWX56R4.js} +2 -2
  88. package/dist/cdn/F7YKY2OF.js +4 -0
  89. package/dist/cdn/{G5U4WJ6F.js → FATTGIYI.js} +2 -2
  90. package/dist/cdn/{CY46FXGX.js → FCHOLYNH.js} +2 -2
  91. package/dist/cdn/{VPZ5SZQL.js → FEWEA7AN.js} +2 -2
  92. package/dist/cdn/{KRGDTQIC.js → FF7R4YTO.js} +2 -2
  93. package/dist/cdn/{PIIJOLSO.js → FNHXNPPV.js} +2 -2
  94. package/dist/cdn/{MV7WFJWQ.js → FPWLAJBO.js} +1 -1
  95. package/dist/cdn/{YYNAOG7P.js → FTCXP7FD.js} +2 -2
  96. package/dist/cdn/FY5WSCFM.js +4 -0
  97. package/dist/cdn/{QBAOABKC.js → GA7L2IWK.js} +2 -2
  98. package/dist/cdn/{O3VZ3S2D.js → GLCP6BKS.js} +2 -2
  99. package/dist/cdn/{ZWADX6AH.js → GLL5XNBZ.js} +2 -2
  100. package/dist/cdn/{D7KUWDF4.js → GOHA6HJP.js} +2 -2
  101. package/dist/cdn/{G2LRWQIG.js → GPKFZD7B.js} +2 -2
  102. package/dist/cdn/{BUFXQMR4.js → GR5ID3PD.js} +1 -1
  103. package/dist/cdn/{XTBY6TYN.js → GUP4UK2N.js} +2 -2
  104. package/dist/cdn/{2XJALQPT.js → GVI4R5J2.js} +2 -2
  105. package/dist/cdn/{KONDPSKH.js → HJJD6V2O.js} +2 -2
  106. package/dist/cdn/{CHQTMB53.js → HM7CZ2CI.js} +2 -2
  107. package/dist/cdn/{DWC5BEDO.js → HM7JZP3A.js} +1 -1
  108. package/dist/cdn/{LLDUTJLC.js → HOYA4JWQ.js} +2 -2
  109. package/dist/cdn/{LIA4W3XJ.js → HOYVNZRK.js} +2 -2
  110. package/dist/cdn/{TILTEUIM.js → HTYN6WXU.js} +2 -2
  111. package/dist/cdn/{IFDRGA6G.js → HYTRDNUE.js} +2 -2
  112. package/dist/cdn/{WIUOXWKD.js → I4KZ2A5P.js} +2 -2
  113. package/dist/cdn/{NRKV4EJ5.js → IBDFSTWX.js} +2 -2
  114. package/dist/cdn/{ZGCS2MUQ.js → IBEMOISL.js} +2 -2
  115. package/dist/cdn/{JPKSZ5IW.js → IE24UY4O.js} +2 -2
  116. package/dist/cdn/{6GZ3P7MW.js → IIPLB2RS.js} +2 -2
  117. package/dist/cdn/{VQ6Q6POM.js → IIX655ZM.js} +1 -1
  118. package/dist/cdn/{GE7Z77AB.js → IJBFY7JW.js} +2 -2
  119. package/dist/cdn/{TE37N2QX.js → INDADVJP.js} +2 -2
  120. package/dist/cdn/{4ICGVS3H.js → INY65VHN.js} +2 -2
  121. package/dist/cdn/{OFT4RWEQ.js → IP6ATOM6.js} +2 -2
  122. package/dist/cdn/{TJ7USYVU.js → IPIQ52KV.js} +2 -2
  123. package/dist/cdn/{KH77SOOF.js → IUBGSA3I.js} +1 -1
  124. package/dist/cdn/{ZRSXDUMU.js → IVXXAKCK.js} +2 -2
  125. package/dist/cdn/{FGXWHEON.js → J5LWWUIP.js} +2 -2
  126. package/dist/cdn/{NXSWGBEL.js → J62YOWFC.js} +2 -2
  127. package/dist/cdn/{KCERPNOX.js → JATAGG24.js} +2 -2
  128. package/dist/cdn/{LAMCTX2N.js → JBDNXDLS.js} +2 -2
  129. package/dist/cdn/{3WNIWICF.js → JBG5SAVM.js} +1 -1
  130. package/dist/cdn/{VOA4OGLR.js → JBZH2KKN.js} +2 -2
  131. package/dist/cdn/{2BKLFFV3.js → JDSGIOVR.js} +2 -2
  132. package/dist/cdn/{ZXNSOMLE.js → JFVYQIUH.js} +2 -2
  133. package/dist/cdn/{GWZZSWGD.js → JHFAVQVG.js} +2 -2
  134. package/dist/cdn/{UU7VMXV4.js → JKB6LYON.js} +2 -2
  135. package/dist/cdn/{KTBOVBO5.js → JSDNVCX7.js} +2 -2
  136. package/dist/cdn/{SXA34E2S.js → JY7KFFEJ.js} +2 -2
  137. package/dist/cdn/{D47MDJ3H.js → K6SJCTAS.js} +1 -1
  138. package/dist/cdn/K72NRGFR.js +4 -0
  139. package/dist/cdn/{LUEDPLY5.js → KETC3CAC.js} +2 -2
  140. package/dist/cdn/{NYVDHE7E.js → KFFWCZKY.js} +2 -2
  141. package/dist/cdn/{TZMAAM5M.js → KOQOMT46.js} +2 -2
  142. package/dist/cdn/{E4W6U2SB.js → KPKDVL2J.js} +2 -2
  143. package/dist/cdn/{6NZPPYBU.js → KSMEO6R5.js} +2 -2
  144. package/dist/cdn/{OLCSJ76K.js → KZWHC2ST.js} +2 -2
  145. package/dist/cdn/{72HVUAV7.js → L32HIJPV.js} +2 -2
  146. package/dist/cdn/{CBDBYDEC.js → L3IX5SCS.js} +2 -2
  147. package/dist/cdn/{Y5PUS34W.js → LBJE5BZD.js} +1 -1
  148. package/dist/cdn/{ETIBVIWV.js → LWBDG7UH.js} +2 -2
  149. package/dist/cdn/{I6S2QECH.js → LYQL4O5M.js} +2 -2
  150. package/dist/cdn/{AICVPUBP.js → LYWU4RZH.js} +2 -2
  151. package/dist/cdn/{JLOUT5MX.js → M3OFPTT3.js} +2 -2
  152. package/dist/cdn/{PDSHIJNC.js → MHSBM4WB.js} +2 -2
  153. package/dist/cdn/{LGDOEW7U.js → MRMD4H7O.js} +2 -2
  154. package/dist/cdn/{KHX3R2Z4.js → MRUWYVHI.js} +2 -2
  155. package/dist/cdn/{LSN7P2WQ.js → MVN27KOI.js} +2 -2
  156. package/dist/cdn/{7B4R56TM.js → N2MZJBHS.js} +2 -2
  157. package/dist/cdn/{CQVD5CBU.js → N324UTZ5.js} +2 -2
  158. package/dist/cdn/{FRFEDLSJ.js → N4OHCK66.js} +2 -2
  159. package/dist/cdn/{XT622WJC.js → N5UBRYXZ.js} +2 -2
  160. package/dist/cdn/{RV2K4TCT.js → NGO6CV3G.js} +2 -2
  161. package/dist/cdn/{L3QLTAE7.js → NNQAPUKF.js} +1 -1
  162. package/dist/cdn/{JKUIOQXV.js → NZCTTZQJ.js} +2 -2
  163. package/dist/cdn/{7O72W7MF.js → O4UWY4LV.js} +2 -2
  164. package/dist/cdn/O4YIZH4Y.js +4 -0
  165. package/dist/cdn/{Z2PPSD4G.js → OC334CIK.js} +2 -2
  166. package/dist/cdn/{QJF7KQWQ.js → OC44744D.js} +2 -2
  167. package/dist/cdn/{S6W7RXCG.js → OI3SHZPE.js} +2 -2
  168. package/dist/cdn/{3VARNN3H.js → OPD73MSN.js} +2 -2
  169. package/dist/cdn/{XGZWD23R.js → OW7E6OZU.js} +2 -2
  170. package/dist/cdn/{Y35URT5Q.js → PGFLUWJN.js} +2 -2
  171. package/dist/cdn/{3UDIIW5C.js → PLAM4ZSV.js} +2 -2
  172. package/dist/cdn/{UN6AJVDX.js → POG7OHTN.js} +2 -2
  173. package/dist/cdn/{WWYCJLBB.js → PP63JUSI.js} +2 -2
  174. package/dist/cdn/{UREM6GTN.js → PRB7DA6V.js} +2 -2
  175. package/dist/cdn/PTLSWZZ2.js +4 -0
  176. package/dist/cdn/{IS7TFPZJ.js → PZFNMBVW.js} +2 -2
  177. package/dist/cdn/{CKS2TCJA.js → Q5HH7VHO.js} +2 -2
  178. package/dist/cdn/{35V32ZGG.js → QBYJ6PX6.js} +2 -2
  179. package/dist/cdn/{AUPBYR3G.js → QDFSCCOX.js} +2 -2
  180. package/dist/cdn/{MKKLL5ZS.js → QDMUSM3I.js} +2 -2
  181. package/dist/cdn/{MIYEYP2E.js → QIVTK7HW.js} +2 -2
  182. package/dist/cdn/{O5J4RJ7B.js → QO56HLQG.js} +2 -2
  183. package/dist/cdn/{FCUG4KCK.js → QOPQPJ6E.js} +1 -1
  184. package/dist/cdn/{MD4FE2CK.js → QPNL4XAH.js} +1 -1
  185. package/dist/cdn/{JR76OCEB.js → QPRN44LY.js} +2 -2
  186. package/dist/cdn/{OH2C77EU.js → QZVIZAH5.js} +2 -2
  187. package/dist/cdn/{NLEAVUXF.js → R53BLRMX.js} +2 -2
  188. package/dist/cdn/{VUPD7KXT.js → RFYBQIXD.js} +2 -2
  189. package/dist/cdn/{5R67XATC.js → RIQZUFV2.js} +2 -2
  190. package/dist/cdn/{ZGLNJWEU.js → RJJHXXVX.js} +2 -2
  191. package/dist/cdn/{VWG7PXDE.js → ROR6SI6U.js} +2 -2
  192. package/dist/cdn/{ECUWZTYK.js → RR3GDG64.js} +1 -1
  193. package/dist/cdn/{NG7TRKJC.js → RS6TXCOP.js} +2 -2
  194. package/dist/cdn/{FU7XT4WQ.js → RTTXS2RX.js} +2 -2
  195. package/dist/cdn/{CFAG2FSB.js → RVNPJNAS.js} +2 -2
  196. package/dist/cdn/{ATD6DCLS.js → RVOILI7H.js} +2 -2
  197. package/dist/cdn/{KLOTZOBR.js → S56UY63G.js} +2 -2
  198. package/dist/cdn/{JXE3ERND.js → SDKQPMU5.js} +2 -2
  199. package/dist/cdn/{OWFH5BT6.js → SFJHXT65.js} +1 -1
  200. package/dist/cdn/{TWC3U47D.js → SFS5GEDR.js} +2 -2
  201. package/dist/cdn/{MLUU7VQW.js → SGX5RQ3B.js} +2 -2
  202. package/dist/cdn/{HSQGDLNP.js → SGXJZQ4L.js} +2 -2
  203. package/dist/cdn/{ZEXSMSCH.js → SLKM4GXK.js} +2 -2
  204. package/dist/cdn/{6EP7M7XJ.js → SMLBVO43.js} +2 -2
  205. package/dist/cdn/{C6CUID27.js → T2DUZEDU.js} +1 -1
  206. package/dist/cdn/{ZQ3NC6T5.js → TCDUH4QD.js} +2 -2
  207. package/dist/cdn/{Q5XIIJWU.js → TCRWJTPW.js} +2 -2
  208. package/dist/cdn/{43OPIVHU.js → TKILZGVC.js} +2 -2
  209. package/dist/cdn/{ZZOPKSTN.js → TMXXOYO3.js} +2 -2
  210. package/dist/cdn/{BZAHWVGQ.js → TQ24PIOH.js} +1 -1
  211. package/dist/cdn/{XTJG5DFS.js → TSB43IHY.js} +2 -2
  212. package/dist/cdn/{Z3IGCQ5P.js → TWFIXUDH.js} +2 -2
  213. package/dist/cdn/{T7CCQFVO.js → TWGLV5JH.js} +2 -2
  214. package/dist/cdn/{5P7OI5M3.js → U2EADFOW.js} +2 -2
  215. package/dist/cdn/{J6V5STA2.js → U4N25UBP.js} +2 -2
  216. package/dist/cdn/{QAYAJ4FV.js → UBUVKOMA.js} +2 -2
  217. package/dist/cdn/{VSHIFJKY.js → UFQAANOF.js} +2 -2
  218. package/dist/cdn/{MZR4QIPT.js → UHBAUGQ4.js} +1 -1
  219. package/dist/cdn/{OTBCJJWT.js → UKDRKFWF.js} +2 -2
  220. package/dist/cdn/{WFZTAET5.js → UOL6LQRJ.js} +2 -2
  221. package/dist/cdn/{RTK3SRIT.js → UOWOGIE5.js} +2 -2
  222. package/dist/cdn/{EEPQSN7Q.js → UQBMV5BY.js} +2 -2
  223. package/dist/cdn/{PQYDJLKT.js → UZVRS2XU.js} +1 -1
  224. package/dist/cdn/{FHO5VR6B.js → V5UFRWYB.js} +2 -2
  225. package/dist/cdn/{U4QTERGW.js → VGPMZBNK.js} +2 -2
  226. package/dist/cdn/{EBAAUYON.js → VUHZ6YXM.js} +2 -2
  227. package/dist/cdn/{V6HLBAH2.js → VXCG5LEV.js} +2 -2
  228. package/dist/cdn/{GEXPP6OZ.js → VYMYL6JP.js} +2 -2
  229. package/dist/cdn/{GWBHN5NX.js → WO7YGQFB.js} +2 -2
  230. package/dist/cdn/{F3PTGHYO.js → WVVZ4CLC.js} +2 -2
  231. package/dist/cdn/{XUB7T7AY.js → WX4ZUMZN.js} +2 -2
  232. package/dist/cdn/{EEA33WZI.js → WYRW7PJT.js} +2 -2
  233. package/dist/cdn/{YHLJU5F5.js → X4W4ZZ7O.js} +2 -2
  234. package/dist/cdn/{7PBXJUEO.js → X6GE3EIS.js} +2 -2
  235. package/dist/cdn/{PTJY6HJV.js → XA34OFHO.js} +2 -2
  236. package/dist/cdn/{JLDFHYKB.js → XCO35G7O.js} +2 -2
  237. package/dist/cdn/{LEPBL2Y4.js → XEO56VFL.js} +2 -2
  238. package/dist/cdn/{B3LCPBNL.js → XFDA7NEB.js} +2 -2
  239. package/dist/cdn/{U7UDQUDH.js → XFZL2VCD.js} +2 -2
  240. package/dist/cdn/{SDZEVUAE.js → XHZTR3BJ.js} +2 -2
  241. package/dist/cdn/{WPS526RU.js → XIJFQNOB.js} +2 -2
  242. package/dist/cdn/{W7L5ZB6Y.js → XL4TPC5B.js} +2 -2
  243. package/dist/cdn/{MXWAIEZD.js → XN5WML6J.js} +2 -2
  244. package/dist/cdn/{IPQ4FLYZ.js → XOHNTOVE.js} +2 -2
  245. package/dist/cdn/{I6XJAIFC.js → XQKIPHIH.js} +2 -2
  246. package/dist/cdn/{ATVPQHJY.js → XQNKJT3W.js} +2 -2
  247. package/dist/cdn/{XA42UGQ7.js → XSNJZI7M.js} +2 -2
  248. package/dist/cdn/XY544Q64.js +4 -0
  249. package/dist/cdn/Y236OPC4.js +4 -0
  250. package/dist/cdn/{JTR2SH4G.js → Y3MVHWDO.js} +2 -2
  251. package/dist/cdn/{N25XK6FN.js → Y4M5KS3M.js} +1 -1
  252. package/dist/cdn/{KQUX7BEF.js → Y5QDB3GF.js} +2 -2
  253. package/dist/cdn/{RPFPO2CV.js → YAK6SM64.js} +2 -2
  254. package/dist/cdn/{C2QYX64L.js → YFG6Q4W4.js} +2 -2
  255. package/dist/cdn/{WVBNKWGH.js → YOSMKTOJ.js} +2 -2
  256. package/dist/cdn/{P3YM6KJZ.js → YQHRK3AQ.js} +2 -2
  257. package/dist/cdn/{GMXEQORB.js → YTSZZUYS.js} +2 -2
  258. package/dist/cdn/{PRJAT3UX.js → YUOGYP2W.js} +2 -2
  259. package/dist/cdn/{V52IJEN4.js → YVBTB4PY.js} +2 -2
  260. package/dist/cdn/{XZIMLV7H.js → YXUMTVRG.js} +1 -1
  261. package/dist/cdn/{CSHPIQ5D.js → YZCPJ5JI.js} +2 -2
  262. package/dist/cdn/{5GTGLHQA.js → Z2MJRFIE.js} +2 -2
  263. package/dist/cdn/{KANXN4TE.js → Z3T7XWKC.js} +2 -2
  264. package/dist/cdn/{6HHL5FY3.js → Z6TJZJH7.js} +2 -2
  265. package/dist/cdn/{XKK7HJBO.js → ZA4R3KFB.js} +2 -2
  266. package/dist/cdn/{KREDNK7J.js → ZEIIGNWR.js} +2 -2
  267. package/dist/cdn/{PWAKHJK5.js → ZEZCVFYU.js} +2 -2
  268. package/dist/cdn/{NX52APT5.js → ZGO54R7R.js} +2 -2
  269. package/dist/cdn/{O6O3MX2S.js → ZHXAH2ZO.js} +2 -2
  270. package/dist/cdn/{UPK424CD.js → ZJKJXFXC.js} +2 -2
  271. package/dist/cdn/{6CDGGVGE.js → ZJXXAWMH.js} +1 -1
  272. package/dist/cdn/{YI5CBQRZ.js → ZLNLCCC6.js} +1 -1
  273. package/dist/cdn/{IE537KVP.js → ZOPBEUAZ.js} +2 -2
  274. package/dist/cdn/{YJSQANUI.js → ZUGYY22V.js} +2 -2
  275. package/dist/cdn/{ANGZ4WNK.js → ZWGDNNV7.js} +2 -2
  276. package/dist/cdn/{G24GFGOQ.js → ZZAKVFN7.js} +2 -2
  277. package/dist/cdn/index.js +2 -2
  278. package/dist/chunks/Auth.js +1 -1
  279. package/dist/chunks/cardFetchingUtils.js +1 -1
  280. package/dist/chunks/common.js +1 -1
  281. package/dist/chunks/deployAppContexts.js +1 -1
  282. package/dist/chunks/downloadUtils.js +1 -1
  283. package/dist/chunks/index.js +1 -1
  284. package/dist/chunks/interfaces.js +1 -1
  285. package/dist/chunks/loadModules.js +1 -1
  286. package/dist/chunks/mapViewUtils.js +1 -1
  287. package/dist/chunks/pciUtils.js +1 -1
  288. package/dist/chunks/popupUtils.js +1 -1
  289. package/dist/chunks/publicNotificationStore.js +1 -1
  290. package/dist/chunks/queryUtils.js +1 -1
  291. package/dist/chunks/runtime.js +1 -1
  292. package/dist/chunks/solution-store.js +1 -1
  293. package/dist/chunks/templates.js +1 -1
  294. package/dist/chunks/useT9n.js +1 -1
  295. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  296. package/dist/components/basemap-gallery/customElement.js +1 -1
  297. package/dist/components/buffer-tools/customElement.js +1 -1
  298. package/dist/components/card-manager/customElement.js +1 -1
  299. package/dist/components/consent-manager/customElement.js +1 -1
  300. package/dist/components/create-feature/customElement.js +1 -1
  301. package/dist/components/create-related-feature/customElement.js +1 -1
  302. package/dist/components/crowdsource-manager/customElement.js +1 -1
  303. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  304. package/dist/components/deduct-calculator/customElement.js +1 -1
  305. package/dist/components/delete-button/customElement.js +1 -1
  306. package/dist/components/delete-dialog/customElement.js +1 -1
  307. package/dist/components/edit-card/customElement.js +1 -1
  308. package/dist/components/feature-details/customElement.js +1 -1
  309. package/dist/components/feature-list/customElement.js +1 -1
  310. package/dist/components/field-selection/customElement.js +1 -1
  311. package/dist/components/floor-filter/customElement.js +1 -1
  312. package/dist/components/info-card/customElement.js +3 -3
  313. package/dist/components/json-editor/customElement.js +1 -1
  314. package/dist/components/layer-list/customElement.js +1 -1
  315. package/dist/components/layer-table/customElement.js +1 -1
  316. package/dist/components/map-card/customElement.js +1 -1
  317. package/dist/components/map-draw-tools/customElement.js +1 -1
  318. package/dist/components/map-fullscreen/customElement.js +1 -1
  319. package/dist/components/map-layer-picker/customElement.js +1 -1
  320. package/dist/components/map-legend/customElement.js +1 -1
  321. package/dist/components/map-picker/customElement.js +1 -1
  322. package/dist/components/map-search/customElement.js +1 -1
  323. package/dist/components/map-select-tools/customElement.js +1 -1
  324. package/dist/components/map-tools/customElement.js +1 -1
  325. package/dist/components/pci-calculator/customElement.js +1 -1
  326. package/dist/components/pdf-download/customElement.js +1 -1
  327. package/dist/components/public-notification/customElement.js +1 -1
  328. package/dist/components/refine-selection/customElement.js +1 -1
  329. package/dist/components/selection-tool/customElement.js +1 -1
  330. package/dist/components/solution-article-card/customElement.js +1 -1
  331. package/dist/components/solution-configuration/customElement.js +1 -1
  332. package/dist/components/solution-configure-panel/customElement.js +1 -1
  333. package/dist/components/solution-configure-titles/customElement.js +1 -1
  334. package/dist/components/solution-contents/customElement.js +1 -1
  335. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  336. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  337. package/dist/components/solution-deploy-panel/customElement.js +1 -1
  338. package/dist/components/solution-deployed-card/customElement.js +1 -1
  339. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  340. package/dist/components/solution-details-card/customElement.js +1 -1
  341. package/dist/components/solution-details-panel/customElement.js +1 -1
  342. package/dist/components/solution-item/customElement.js +1 -1
  343. package/dist/components/solution-item-accordion/customElement.js +1 -1
  344. package/dist/components/solution-item-details/customElement.js +1 -1
  345. package/dist/components/solution-item-icon/customElement.js +1 -1
  346. package/dist/components/solution-item-sharing/customElement.js +1 -1
  347. package/dist/components/solution-items-diagram/customElement.js +1 -1
  348. package/dist/components/solution-organization-variables/customElement.js +1 -1
  349. package/dist/components/solution-resource-item/customElement.js +1 -1
  350. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  351. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  352. package/dist/components/solution-template-data/customElement.js +1 -1
  353. package/dist/components/solution-variables/customElement.js +1 -1
  354. package/dist/components/solutions-all-panel/customElement.js +1 -1
  355. package/dist/components/solutions-all-shell/customElement.js +1 -1
  356. package/dist/components/solutions-article-panel/customElement.js +1 -1
  357. package/dist/components/solutions-articles/customElement.js +1 -1
  358. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  359. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  360. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  361. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  362. package/dist/components/spatial-ref/customElement.js +1 -1
  363. package/dist/components/store-manager/customElement.js +1 -1
  364. package/dist/docs/api.json +1 -1
  365. package/dist/docs/docs.json +1 -1
  366. package/dist/docs/web-types.json +1 -1
  367. package/dist/index.js +1 -1
  368. package/dist/loader.js +1 -1
  369. package/package.json +1 -1
  370. package/dist/cdn/4CZ6KARN.js +0 -4
  371. package/dist/cdn/BYQMGQYW.js +0 -4
  372. package/dist/cdn/CSLY3NAJ.js +0 -4
  373. package/dist/cdn/GFGFGTPN.js +0 -18
  374. package/dist/cdn/H2B7HOSC.js +0 -4
  375. package/dist/cdn/IOMQBKLV.js +0 -4
  376. package/dist/cdn/JDNXYCIG.js +0 -4
  377. package/dist/cdn/NHLCW2BL.js +0 -4
  378. package/dist/cdn/ZIBR3KWF.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528.1 */
4
- import{d as I}from"./WFWVO6JC.js";import{C as x,b as g,c as w,z as v}from"./7TRQSZUN.js";import{a as V}from"./ECUWZTYK.js";import"./RHIPAMD6.js";import{a as L,c,d as E,e as S,f as P}from"./OLCSJ76K.js";import"./AJGIKTXY.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.20250528.2 */
4
+ import{d as I}from"./6QWS7JEN.js";import{C as x,b as g,c as w,z as v}from"./CLZ42RFU.js";import{a as V}from"./RR3GDG64.js";import"./6CPKRUI3.js";import{a as L,c,d as E,e as S,f as P}from"./KZWHC2ST.js";import"./B4HONVWZ.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};
@@ -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.20250528.2 */
4
+ import{a as O}from"./GR5ID3PD.js";import{d as _}from"./6RHP2Y7C.js";import{a as l,d as p}from"./FPWLAJBO.js";import"./3XJKMZHA.js";import"./B4HONVWZ.js";function C(e,a){let i=[];return O(e,(t,c)=>(c.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let c=q(a),r,u,s,m,d;switch(c){case"stat":s=import("./IIPLB2RS.js"),m={"hub:card:stat":()=>import("./BANL5YR3.js")}[a],await Promise.all([s,m()]).then(async([f,o])=>{let{MetricSchema:n}=f;r=l(n),u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(d=o.buildDefaults(e,i,t))});break;case"follow":s=import("./XOHNTOVE.js"),m={"hub:card:follow":()=>import("./5APFWJZZ.js")}[a],await Promise.all([s,m()]).then(([f,o])=>{let{FollowSchema:n}=f;r=l(n),u=o.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./C3A3SGFC.js"),m=import("./RFYBQIXD.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:c}=a;t.maxLength=_(c);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:c}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let c=a.split(":")[1],r,u,s;switch(c){case"site":let{getSiteSchema:m}=await import("./XFZL2VCD.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./SGX5RQ3B.js"),"hub:site:create":()=>import("./VUHZ6YXM.js"),"hub:site:followers":()=>import("./UOWOGIE5.js"),"hub:site:discussions":()=>import("./2IDGPQJR.js"),"hub:site:settings":()=>import("./KOQOMT46.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./PRB7DA6V.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./3S4FG2ZZ.js"),"hub:discussion:create":()=>import("./TMXXOYO3.js"),"hub:discussion:settings":()=>import("./6GVJGNRK.js"),"hub:discussion:settings:discussions":()=>import("./QDFSCCOX.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./O4YIZH4Y.js");r=l(f);let o=await{"hub:channel:edit":()=>import("./IBEMOISL.js"),"hub:channel:create":()=>import("./PTLSWZZ2.js")}[a]();u=await o.buildUiSchema(e,i,t),o.buildDefaults&&(s=await o.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./K72NRGFR.js");r=l(n);let v=await{"hub:project:edit":()=>import("./YQHRK3AQ.js"),"hub:project:create":()=>import("./CPB7DXI3.js"),"hub:project:create2":()=>import("./TSB43IHY.js"),"hub:project:metrics":()=>import("./V5UFRWYB.js"),"hub:project:settings":()=>import("./GVI4R5J2.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./Y236OPC4.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./SMLBVO43.js"),"hub:initiative:create":()=>import("./TCDUH4QD.js"),"hub:initiative:create2":()=>import("./IJBFY7JW.js"),"hub:initiative:metrics":()=>import("./RJJHXXVX.js"),"hub:initiative:associations":()=>import("./U2EADFOW.js"),"hub:initiative:settings":()=>import("./CR3NXOPF.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./LYWU4RZH.js");r=l(I);let D=await{"hub:page:edit":()=>import("./HM7CZ2CI.js"),"hub:page:create":()=>import("./NGO6CV3G.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./C2XKMOX2.js");r=l(K);let U=await{"hub:content:edit":()=>import("./POG7OHTN.js"),"hub:content:discussions":()=>import("./ZJKJXFXC.js"),"hub:content:settings":()=>import("./YTSZZUYS.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./YZCPJ5JI.js");r=l(y);let k=await{"hub:template:edit":()=>import("./DT2GGHBN.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./XY544Q64.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./5PENO4BC.js"),"hub:group:create:association":()=>import("./XCO35G7O.js"),"hub:group:create:view":()=>import("./XIJFQNOB.js"),"hub:group:create:edit":()=>import("./C7TWT6K2.js"),"hub:group:create":()=>import("./XHZTR3BJ.js"),"hub:group:edit":()=>import("./J5LWWUIP.js"),"hub:group:settings":()=>import("./27LQAQ6Y.js"),"hub:group:discussions":()=>import("./6APCAUUT.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./RVNPJNAS.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./SLKM4GXK.js"),"hub:survey:settings":()=>import("./HYTRDNUE.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./FY5WSCFM.js"),"hub:event:edit":()=>import("./ZEIIGNWR.js"),"hub:event:registrants":()=>import("./2HAFNSIE.js")}[a](),H=await{"hub:event:create":()=>import("./VXCG5LEV.js"),"hub:event:edit":()=>import("./3LMFSQQR.js"),"hub:event:registrants":()=>import("./5NIDGVLZ.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./KFFWCZKY.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./455HDVF4.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./35BOYRXZ.js");r=l(N);let P=await{"hub:user:settings":()=>import("./FF7R4YTO.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
@@ -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.20250528.1 */
4
- import{a as h}from"./XKK7HJBO.js";import{a as x}from"./LGDOEW7U.js";import{e as v}from"./WFWVO6JC.js";import{c as w,h as I,i as T,k as p,l as u,x as E,z as S}from"./7TRQSZUN.js";import"./RHIPAMD6.js";import{a as _,c as s,d as C,e as b}from"./OLCSJ76K.js";import"./AJGIKTXY.js";var{state:t,onChange:L}=x({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),g="time-slider-watch",y=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await S();this.reactiveUtils=e,this.handles=await w()}catch{}}async init(e){e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:n}=t;if(i)try{if(await i.when(),n.length===1&&n[0]?.type==="map")this.initTimeSlider(e,n[0]);else{let a=await this.getTimeLayerViews(i,n);t.timeInfoItems=this.generateTimeInfoItems(a,n),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let n=e.map?.allLayers,a=o=>n?.find(({id:f})=>o===f),m=i.map(({id:o})=>a(o)).map(async o=>await e.whenLayerView(o));return await Promise.all(m)}generateTimeInfoItems(e,i){return[...i].map(a=>{let l=e.find(({layer:m})=>m.id===a.id);return this.generateTimeInfoItem(l,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:n,rangeEnd:a,timeIntervalValue:l}){let f=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:l??1,rangeStart:new Date(n),rangeEnd:new Date(a),timeExtent:f,previousTimeExtent:null}}async initTimeSlider(e,i){let n=async a=>(t.timeSlider=await E(a),t.autoPlay&&t.timeSlider.play(),void await Promise.resolve());if(i){let a=await this.getTimeSliderConfig(e,i);await n(a)}else{let a=t?.timeInfoItems?.[0];if(!a)return;t.selectedTimeInfoItem=a;let l=await this.getTimeSliderConfig(e);await n(l)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){L("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let n=i.layerView;this.applyTimeExtent(n,n?.featureEffect?.filter?.timeExtent||n.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let n={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let a=t.view?.map?.widgets?.timeSlider,l={...n,fullTimeExtent:a?.fullTimeExtent,timeExtent:a?.currentTimeExtent};return a?.stopInterval?.unit&&a?.stopInterval?.value&&(l.stops={interval:await u({unit:a?.stopInterval?.unit,value:a?.stopInterval?.value})}),l}else{let[{timeExtent:a,rangeStart:l,rangeEnd:m,unit:o,timeIntervalValue:f}]=t.timeInfoItems;return{...n,fullTimeExtent:a,timeExtent:await p({start:l,end:m}),stops:{interval:await u({unit:o,value:f})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await p({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,n){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,n):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,n){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||n){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await I({filter:{timeExtent:i},includedEffect:await h(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await h(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await T({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(g)&&this.handles?.remove(g),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),g)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:n}){let a=n??await p({start:e,end:i});return await Promise.resolve(a)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await u({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},d=new y,M=".instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand:var(--calcite-ui-text-1);--calcite-ui-brand:var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}",F=M,c={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},D=class{constructor(r){_(this,r),this.messages=void 0,this.timeSliderRef=void 0,this.timeInfoConfigItems=[],this.filterMode=void 0,this.view=void 0,this.timeSliderConfig=void 0,this.autoPlay=!1}async updateTimeInfoConfigItems(){t.timeInfoConfigItems=this.timeInfoConfigItems,await d.init(this.timeSliderRef)}async updateFilterMode(){t.filterMode=this.filterMode}async updateTimeSliderConfig(){t.timeSliderConfig=this.timeSliderConfig,await d.init(this.timeSliderRef)}async updateAutoPlay(){t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop())}async componentWillLoad(){try{t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode),await v(this)}catch{}}async componentDidLoad(){try{await d.init(this.timeSliderRef)}catch{}finally{t.loading=!1}}disconnectedcallback(){d.destroy()}render(){return s(C,{key:"c994735c86c7bb3edeadf623a15c565960637f23"},this._renderBase())}_renderBase(){return s("div",{class:`${c.base}${this.view.type!=="2d"?c.threeD:""}`},this._renderLoader(),this.view.type==="2d"&&this._renderTopEl(),s("div",{key:"time-slider",ref:r=>{r&&(this.timeSliderRef=r)}}))}_renderLoader(){return t.loading&&s("div",null,s("div",{class:c.background}),s("div",{class:c.loadingContainer},s("calcite-loader",{scale:"m",label:this.messages?.loading??"",text:this.messages?.loading})))}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let r=t.selectedTimeInfoItem?.layerView?.layer?.title;return s("span",{class:c.layerTitle},r)}_renderDropdown(){return t.selectedTimeInfoItem&&s("calcite-dropdown",null,this._renderDropdownButton(),this._renderDropdownItems())}_renderDropdownButton(){return s("calcite-button",{slot:"trigger",appearance:"transparent",iconEnd:"chevron-down",width:"full",alignment:"space-between"},d.getLabel(t.selectedTimeInfoItem))}_renderDropdownItems(){return t.timeInfoItems.map(r=>this._renderDropdownItem(r))}_renderDropdownItem(r){let e=t.selectedTimeInfoItem?.layerView?.layer?.id,i=r?.layerView?.layer?.id;return s("calcite-dropdown-item",{onCalciteDropdownItemSelect:()=>d.updateSelectedTimeInfoItem(r),selected:e===i},d.getLabel(r))}get el(){return b(this)}static get watchers(){return{timeInfoConfigItems:["updateTimeInfoConfigItems"],filterMode:["updateFilterMode"],timeSliderConfig:["updateTimeSliderConfig"],autoPlay:["updateAutoPlay"]}}};D.style=F;export{D as instant_apps_time_filter};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as h}from"./ZA4R3KFB.js";import{a as x}from"./MRMD4H7O.js";import{e as v}from"./6QWS7JEN.js";import{c as w,h as I,i as T,k as p,l as u,x as E,z as S}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as _,c as s,d as C,e as b}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var{state:t,onChange:L}=x({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),g="time-slider-watch",y=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await S();this.reactiveUtils=e,this.handles=await w()}catch{}}async init(e){e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:n}=t;if(i)try{if(await i.when(),n.length===1&&n[0]?.type==="map")this.initTimeSlider(e,n[0]);else{let a=await this.getTimeLayerViews(i,n);t.timeInfoItems=this.generateTimeInfoItems(a,n),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let n=e.map?.allLayers,a=o=>n?.find(({id:f})=>o===f),m=i.map(({id:o})=>a(o)).map(async o=>await e.whenLayerView(o));return await Promise.all(m)}generateTimeInfoItems(e,i){return[...i].map(a=>{let l=e.find(({layer:m})=>m.id===a.id);return this.generateTimeInfoItem(l,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:n,rangeEnd:a,timeIntervalValue:l}){let f=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:l??1,rangeStart:new Date(n),rangeEnd:new Date(a),timeExtent:f,previousTimeExtent:null}}async initTimeSlider(e,i){let n=async a=>(t.timeSlider=await E(a),t.autoPlay&&t.timeSlider.play(),void await Promise.resolve());if(i){let a=await this.getTimeSliderConfig(e,i);await n(a)}else{let a=t?.timeInfoItems?.[0];if(!a)return;t.selectedTimeInfoItem=a;let l=await this.getTimeSliderConfig(e);await n(l)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){L("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let n=i.layerView;this.applyTimeExtent(n,n?.featureEffect?.filter?.timeExtent||n.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let n={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let a=t.view?.map?.widgets?.timeSlider,l={...n,fullTimeExtent:a?.fullTimeExtent,timeExtent:a?.currentTimeExtent};return a?.stopInterval?.unit&&a?.stopInterval?.value&&(l.stops={interval:await u({unit:a?.stopInterval?.unit,value:a?.stopInterval?.value})}),l}else{let[{timeExtent:a,rangeStart:l,rangeEnd:m,unit:o,timeIntervalValue:f}]=t.timeInfoItems;return{...n,fullTimeExtent:a,timeExtent:await p({start:l,end:m}),stops:{interval:await u({unit:o,value:f})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await p({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,n){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,n):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,n){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||n){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await I({filter:{timeExtent:i},includedEffect:await h(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await h(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await T({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(g)&&this.handles?.remove(g),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),g)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:n}){let a=n??await p({start:e,end:i});return await Promise.resolve(a)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await u({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},d=new y,M=".instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand:var(--calcite-ui-text-1);--calcite-ui-brand:var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}",F=M,c={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},D=class{constructor(r){_(this,r),this.messages=void 0,this.timeSliderRef=void 0,this.timeInfoConfigItems=[],this.filterMode=void 0,this.view=void 0,this.timeSliderConfig=void 0,this.autoPlay=!1}async updateTimeInfoConfigItems(){t.timeInfoConfigItems=this.timeInfoConfigItems,await d.init(this.timeSliderRef)}async updateFilterMode(){t.filterMode=this.filterMode}async updateTimeSliderConfig(){t.timeSliderConfig=this.timeSliderConfig,await d.init(this.timeSliderRef)}async updateAutoPlay(){t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop())}async componentWillLoad(){try{t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode),await v(this)}catch{}}async componentDidLoad(){try{await d.init(this.timeSliderRef)}catch{}finally{t.loading=!1}}disconnectedcallback(){d.destroy()}render(){return s(C,{key:"c994735c86c7bb3edeadf623a15c565960637f23"},this._renderBase())}_renderBase(){return s("div",{class:`${c.base}${this.view.type!=="2d"?c.threeD:""}`},this._renderLoader(),this.view.type==="2d"&&this._renderTopEl(),s("div",{key:"time-slider",ref:r=>{r&&(this.timeSliderRef=r)}}))}_renderLoader(){return t.loading&&s("div",null,s("div",{class:c.background}),s("div",{class:c.loadingContainer},s("calcite-loader",{scale:"m",label:this.messages?.loading??"",text:this.messages?.loading})))}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let r=t.selectedTimeInfoItem?.layerView?.layer?.title;return s("span",{class:c.layerTitle},r)}_renderDropdown(){return t.selectedTimeInfoItem&&s("calcite-dropdown",null,this._renderDropdownButton(),this._renderDropdownItems())}_renderDropdownButton(){return s("calcite-button",{slot:"trigger",appearance:"transparent",iconEnd:"chevron-down",width:"full",alignment:"space-between"},d.getLabel(t.selectedTimeInfoItem))}_renderDropdownItems(){return t.timeInfoItems.map(r=>this._renderDropdownItem(r))}_renderDropdownItem(r){let e=t.selectedTimeInfoItem?.layerView?.layer?.id,i=r?.layerView?.layer?.id;return s("calcite-dropdown-item",{onCalciteDropdownItemSelect:()=>d.updateSelectedTimeInfoItem(r),selected:e===i},d.getLabel(r))}get el(){return b(this)}static get watchers(){return{timeInfoConfigItems:["updateTimeInfoConfigItems"],filterMode:["updateFilterMode"],timeSliderConfig:["updateTimeSliderConfig"],autoPlay:["updateAutoPlay"]}}};D.style=F;export{D as instant_apps_time_filter};
@@ -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.20250528.1 */
4
- import{b as l,c as o}from"./DTGGAA3W.js";import{c as g}from"./NQ4GJ2EY.js";var p=async(s,e)=>{s.slug&&!s.slug.startsWith(`${s.orgUrlKey}|`)&&(s.slug=g(s.slug,s.orgUrlKey));let{id:r,slug:u}=s,a=r?{slug:u,existingId:r}:{slug:u};return s.slug=await o(a,e),s.typeKeywords=l(s.typeKeywords,s.slug),s};export{p as a};
3
+ v1.0.0-next.20250528.2 */
4
+ import{b as l,c as o}from"./DZXTVGRQ.js";import{c as g}from"./6RHP2Y7C.js";var p=async(s,e)=>{s.slug&&!s.slug.startsWith(`${s.orgUrlKey}|`)&&(s.slug=g(s.slug,s.orgUrlKey));let{id:r,slug:u}=s,a=r?{slug:u,existingId:r}:{slug:u};return s.slug=await o(a,e),s.typeKeywords=l(s.typeKeywords,s.slug),s};export{p 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.20250528.1 */
4
- import{e as o}from"./WFWVO6JC.js";import"./7TRQSZUN.js";import"./RHIPAMD6.js";import{a as l,c as i,d,e as h}from"./OLCSJ76K.js";import"./AJGIKTXY.js";var c=class{constructor(){this.pages=[],this.headerText="",this.pages=[]}setPages(t){this.pages=t,this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=this.pages.length?this.pages[0].title:""}},u=":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}",_=u,p={contentList:"instant-apps-app-guide__content-list",contentListItem:"instant-apps-app-guide__content-list--item",contentWrapper:"instant-apps-app-guide__content-wrapper"},m=class{constructor(e){l(this,e),this._viewModel=new c,this.header=!0,this.data=void 0,this.messages=void 0,this.headerText=void 0}watchPropHandler(e){this._setContent(e)}watchStateHandler(e){this._viewModel.headerText=e}componentWillLoad(){this._setContent(this?.data)}componentDidLoad(){o(this)}render(){let e=this._renderAppGuidePages(this._viewModel.pages),t=this._renderAppGuideHeader();return i(d,{key:"17ec07719a7ea4692912d8c5e51a0ccfcf4fe448"},i("calcite-panel",{key:"fc659c5fcd7ee8370d79e8c6506cc6f55e784e74",scale:"s"},t,i("calcite-carousel",{key:"aa9b07f8ada18253b1a0fb0bfe228e04c81c6021",label:"App Guide",onCalciteCarouselChange:()=>this._updateHeaderText(),ref:a=>this._carouselRef=a,"arrow-type":this._getArrowType()},e)))}_setContent(e){this._viewModel.setPages(e),this.headerText=this._viewModel.headerText}_updateHeaderText(){let{_viewModel:e,_carouselRef:t,messages:a}=this;if(!(e&&t))return;let n=Array.from(t.childNodes).indexOf(t.selectedItem),r=e?.pages,g=r?.[n]??r[0];this.headerText=g?.title||a?.headerText}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}_renderAppGuideHeader(){let{messages:e,header:t,headerText:a}=this,s=!!t&&e?.headerText,n=a||e?.headerText;return s?i("span",{slot:"header-content"},n," ",i("calcite-icon",{icon:"lightbulb",scale:"s"})):null}_renderAppGuidePages(e){return e.map((t,a)=>{let{content:s,type:n,title:r}=t;return i("calcite-carousel-item",{label:r,key:`page_${a}`},i("div",{class:p.contentWrapper},this._renderContentItems(s,n)))})}_renderContentItems(e,t){switch(t){case"list":return i("ol",{class:p.contentList},e.map((a,s)=>i("li",{key:`content-list-item-${s}`,class:p.contentListItem},a)));case"paragraphs":default:return e.map((a,s)=>i("p",{key:`content-paragraph-${s}`},a))}}get el(){return h(this)}static get watchers(){return{data:["watchPropHandler"],headerText:["watchStateHandler"]}}};m.style=_;export{m as instant_apps_app_guide};
3
+ v1.0.0-next.20250528.2 */
4
+ import{e as o}from"./6QWS7JEN.js";import"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as l,c as i,d,e as h}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var c=class{constructor(){this.pages=[],this.headerText="",this.pages=[]}setPages(t){this.pages=t,this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=this.pages.length?this.pages[0].title:""}},u=":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}",_=u,p={contentList:"instant-apps-app-guide__content-list",contentListItem:"instant-apps-app-guide__content-list--item",contentWrapper:"instant-apps-app-guide__content-wrapper"},m=class{constructor(e){l(this,e),this._viewModel=new c,this.header=!0,this.data=void 0,this.messages=void 0,this.headerText=void 0}watchPropHandler(e){this._setContent(e)}watchStateHandler(e){this._viewModel.headerText=e}componentWillLoad(){this._setContent(this?.data)}componentDidLoad(){o(this)}render(){let e=this._renderAppGuidePages(this._viewModel.pages),t=this._renderAppGuideHeader();return i(d,{key:"17ec07719a7ea4692912d8c5e51a0ccfcf4fe448"},i("calcite-panel",{key:"fc659c5fcd7ee8370d79e8c6506cc6f55e784e74",scale:"s"},t,i("calcite-carousel",{key:"aa9b07f8ada18253b1a0fb0bfe228e04c81c6021",label:"App Guide",onCalciteCarouselChange:()=>this._updateHeaderText(),ref:a=>this._carouselRef=a,"arrow-type":this._getArrowType()},e)))}_setContent(e){this._viewModel.setPages(e),this.headerText=this._viewModel.headerText}_updateHeaderText(){let{_viewModel:e,_carouselRef:t,messages:a}=this;if(!(e&&t))return;let n=Array.from(t.childNodes).indexOf(t.selectedItem),r=e?.pages,g=r?.[n]??r[0];this.headerText=g?.title||a?.headerText}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}_renderAppGuideHeader(){let{messages:e,header:t,headerText:a}=this,s=!!t&&e?.headerText,n=a||e?.headerText;return s?i("span",{slot:"header-content"},n," ",i("calcite-icon",{icon:"lightbulb",scale:"s"})):null}_renderAppGuidePages(e){return e.map((t,a)=>{let{content:s,type:n,title:r}=t;return i("calcite-carousel-item",{label:r,key:`page_${a}`},i("div",{class:p.contentWrapper},this._renderContentItems(s,n)))})}_renderContentItems(e,t){switch(t){case"list":return i("ol",{class:p.contentList},e.map((a,s)=>i("li",{key:`content-list-item-${s}`,class:p.contentListItem},a)));case"paragraphs":default:return e.map((a,s)=>i("p",{key:`content-paragraph-${s}`},a))}}get el(){return h(this)}static get watchers(){return{data:["watchPropHandler"],headerText:["watchStateHandler"]}}};m.style=_;export{m as instant_apps_app_guide};
@@ -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.20250528.1 */
4
- import{a as e}from"./CY46FXGX.js";import"./GUKAJOM3.js";import"./KONDPSKH.js";import"./MXWAIEZD.js";import"./MV7WFJWQ.js";import"./PEAUVPGM.js";import"./PQYDJLKT.js";import"./JFW3ETMX.js";import"./Y5PUS34W.js";import{a,b as s}from"./HSQGDLNP.js";import{a as p}from"./C2QYX64L.js";import{D as c,I as h,c as m,d as l,e as o,q as r}from"./L3QLTAE7.js";import"./AJGIKTXY.js";var u=m`@layer{/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as e}from"./FCHOLYNH.js";import"./2TF5G4JI.js";import"./HJJD6V2O.js";import"./XN5WML6J.js";import"./FPWLAJBO.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import"./LBJE5BZD.js";import{a,b as s}from"./SGXJZQ4L.js";import{a as p}from"./YFG6Q4W4.js";import{D as c,I as h,c as m,d as l,e as o,q as r}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var u=m`@layer{/** @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.20250528.1 */
4
- import{a as l}from"./C2QYX64L.js";import{D as n,I as o,c as r,d as a,o as s}from"./L3QLTAE7.js";import"./AJGIKTXY.js";var c=r`/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as l}from"./YFG6Q4W4.js";import{D as n,I as o,c as r,d as a,o as s}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var c=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528.1 */
4
- import{a as i}from"./F53ZDM22.js";import{a}from"./4EEFLJ7L.js";import"./JTR2SH4G.js";import"./IYU2EMNF.js";import"./MV7WFJWQ.js";import"./GOJUA34O.js";import{a as o}from"./LAMCTX2N.js";import{a as s}from"./NRKV4EJ5.js";import"./PEAUVPGM.js";import"./PQYDJLKT.js";import"./JFW3ETMX.js";import{b as r}from"./KIFEL7BK.js";import"./6CDGGVGE.js";import"./LEPBL2Y4.js";import"./MZR4QIPT.js";import"./HQRVKXX3.js";import"./4BCOHKBU.js";import"./NLEAVUXF.js";import"./B3LCPBNL.js";import"./2BKLFFV3.js";import"./LDBZTZKY.js";import"./OFT4RWEQ.js";import"./5R67XATC.js";import"./OWFH5BT6.js";import"./ATD6DCLS.js";import"./QB3JQLSH.js";import"./XTBY6TYN.js";import"./7PBXJUEO.js";import"./5GTGLHQA.js";import"./C6CUID27.js";import"./CQVD5CBU.js";import"./LSN7P2WQ.js";import"./N25XK6FN.js";import"./KGCLTR2S.js";import"./AJGIKTXY.js";var d=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.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`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...a(e,l.thumbnail,i(l),"template",t.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 s(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}}]}]});export{d as buildUiSchema};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as i}from"./A2WX4D7A.js";import{a}from"./ARQHAHK5.js";import"./Y3MVHWDO.js";import"./AJUGJQUJ.js";import"./FPWLAJBO.js";import"./73NJ4RPV.js";import{a as o}from"./JBDNXDLS.js";import{a as s}from"./IBDFSTWX.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import{b as r}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var d=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.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`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...a(e,l.thumbnail,i(l),"template",t.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 s(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}}]}]});export{d as buildUiSchema};
@@ -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.20250528.1 */
4
- import{a as n}from"./C2QYX64L.js";import{D as o,I as r,c as s,d as t,q as i}from"./L3QLTAE7.js";import"./AJGIKTXY.js";var a=s`@layer{/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as n}from"./YFG6Q4W4.js";import{D as o,I as r,c as s,d as t,q as i}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var a=s`@layer{/** @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.20250528.1 */
4
- import{d as u,e as L}from"./NG7TRKJC.js";import"./Y5PUS34W.js";import"./SJXIUCRN.js";import{a as m,b as w}from"./HSQGDLNP.js";import{b}from"./VQ6Q6POM.js";import{a as V}from"./C2QYX64L.js";import{D as M,E as p,I as v,c as y,d as c,o as h,q as f}from"./L3QLTAE7.js";import"./AJGIKTXY.js";var E=y`@layer{/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{d as u,e as L}from"./RS6TXCOP.js";import"./LBJE5BZD.js";import"./BACSZ2Z7.js";import{a as m,b as w}from"./SGXJZQ4L.js";import{b}from"./IIX655ZM.js";import{a as V}from"./YFG6Q4W4.js";import{D as M,E as p,I as v,c as y,d as c,o as h,q as f}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var E=y`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528.1 */
4
- import{b as y,e as g,k as h}from"./G24GFGOQ.js";import{b as s,c as f}from"./NQ4GJ2EY.js";import{a as i}from"./MV7WFJWQ.js";import{b as c}from"./WIUOXWKD.js";import{b as m,e as p,f as a,g as d,k as l}from"./PEAUVPGM.js";function M(e,t){return f(y(e),t,4)}function U(e,t){let r=e.filter(o=>!o.startsWith(`${s}|`));return r.push([s,t].join("|")),r}async function b(e,t){if(!e.slug)return[];let o={filter:`typekeywords:"${e.slug.startsWith(`${s}|`)?e.slug:[s,e.slug].join("|")}"`};t.authentication?o.authentication=t.authentication:t.portal&&(o.portal=t.portal),e.exclude&&(o.q=`NOT id:${e.exclude}`);try{return(await l(o)).results}catch(n){throw n}}function w(e,t,r=0){let o=r?[e.slug,r].join("-"):e.slug;return b({slug:o,exclude:e.existingId},t).then(n=>n.length?w(e,t,r+1):o).catch(n=>{throw Error(`Error in getUniqueSlug ${n}`)})}function u(e){return e.params=Object.assign(Object.assign({},e.params),j(e.item)),e}function j(e){let t=JSON.parse(JSON.stringify(e));return t.data&&(typeof Blob<"u"&&e.data instanceof Blob||e.data.constructor.name==="ReadStream"?t.file=e.data:t.text=e.data,delete t.data),t}function x(...e){return p(u(e[0]))}function K(...e){return m(u(e[0]))}var S={location:"location.json"};function z(){let e=["access","created","culture","description","extent","id","itemControl","modified","owner","tags","categories","type","typeKeywords","thumbnail","url","orgId"],t=["display","geometry","view","associations","catalogs","assistant"],r=Object.keys(S),o=[];return e.forEach(n=>{o.push({entityKey:n,storeKey:`item.${n}`})}),t.forEach(n=>{o.push({entityKey:n,storeKey:`data.${n}`})}),r.forEach(n=>{o.push({entityKey:n,storeKey:`resources.${n}`})}),o.push({entityKey:"slug",storeKey:"item.properties.slug"}),o.push({entityKey:"summary",storeKey:"item.snippet"}),o.push({entityKey:"schemaVersion",storeKey:"item.properties.schemaVersion"}),o.push({entityKey:"orgUrlKey",storeKey:"item.properties.orgUrlKey"}),o.push({entityKey:"name",storeKey:"item.title"}),o.push({entityKey:"boundary",storeKey:"item.properties.boundary"}),o.push({entityKey:"discussionSettings",storeKey:"entitySettings.settings.discussions"}),o.push({entityKey:"entitySettingsId",storeKey:"entitySettings.id"}),o}function J(e,t){return t.createdDate=new Date(e.created),t.createdDateSource="item.created",t.updatedDate=new Date(e.modified),t.updatedDateSource="item.modified",t.location=t.location||g(e),t.isDiscussable=h(e),t}function I(e,t){return Promise.all([a(e,t),d(e,t)]).then(r=>({item:r[0],data:r[1]}))}async function O(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent));let o=await x(Object.assign({item:r},t));return I(o.id,t)}function Q(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent)),E(r)&&(t.params=Object.assign(Object.assign({},t.params),{clearEmptyFields:!0}));let o=Object.assign({item:r},t);return K(o).then(()=>r.data?I(r.id,t):a(r.id,t).then(n=>({item:n})))}function E(e){return["description","snippet","tags","categories","licenseInfo"].some(t=>{var r;return e[t]===""||((r=e[t])===null||r===void 0?void 0:r.length)===0})}export{M as a,U as b,w as c,z as d,J as e,I as f,O as g,Q as h};
3
+ v1.0.0-next.20250528.2 */
4
+ import{b as y,e as g,k as h}from"./ZZAKVFN7.js";import{b as s,c as f}from"./6RHP2Y7C.js";import{a as i}from"./FPWLAJBO.js";import{b as c}from"./I4KZ2A5P.js";import{b as m,e as p,f as a,g as d,k as l}from"./5BKTEPSJ.js";function M(e,t){return f(y(e),t,4)}function U(e,t){let r=e.filter(o=>!o.startsWith(`${s}|`));return r.push([s,t].join("|")),r}async function b(e,t){if(!e.slug)return[];let o={filter:`typekeywords:"${e.slug.startsWith(`${s}|`)?e.slug:[s,e.slug].join("|")}"`};t.authentication?o.authentication=t.authentication:t.portal&&(o.portal=t.portal),e.exclude&&(o.q=`NOT id:${e.exclude}`);try{return(await l(o)).results}catch(n){throw n}}function w(e,t,r=0){let o=r?[e.slug,r].join("-"):e.slug;return b({slug:o,exclude:e.existingId},t).then(n=>n.length?w(e,t,r+1):o).catch(n=>{throw Error(`Error in getUniqueSlug ${n}`)})}function u(e){return e.params=Object.assign(Object.assign({},e.params),j(e.item)),e}function j(e){let t=JSON.parse(JSON.stringify(e));return t.data&&(typeof Blob<"u"&&e.data instanceof Blob||e.data.constructor.name==="ReadStream"?t.file=e.data:t.text=e.data,delete t.data),t}function x(...e){return p(u(e[0]))}function K(...e){return m(u(e[0]))}var S={location:"location.json"};function z(){let e=["access","created","culture","description","extent","id","itemControl","modified","owner","tags","categories","type","typeKeywords","thumbnail","url","orgId"],t=["display","geometry","view","associations","catalogs","assistant"],r=Object.keys(S),o=[];return e.forEach(n=>{o.push({entityKey:n,storeKey:`item.${n}`})}),t.forEach(n=>{o.push({entityKey:n,storeKey:`data.${n}`})}),r.forEach(n=>{o.push({entityKey:n,storeKey:`resources.${n}`})}),o.push({entityKey:"slug",storeKey:"item.properties.slug"}),o.push({entityKey:"summary",storeKey:"item.snippet"}),o.push({entityKey:"schemaVersion",storeKey:"item.properties.schemaVersion"}),o.push({entityKey:"orgUrlKey",storeKey:"item.properties.orgUrlKey"}),o.push({entityKey:"name",storeKey:"item.title"}),o.push({entityKey:"boundary",storeKey:"item.properties.boundary"}),o.push({entityKey:"discussionSettings",storeKey:"entitySettings.settings.discussions"}),o.push({entityKey:"entitySettingsId",storeKey:"entitySettings.id"}),o}function J(e,t){return t.createdDate=new Date(e.created),t.createdDateSource="item.created",t.updatedDate=new Date(e.modified),t.updatedDateSource="item.modified",t.location=t.location||g(e),t.isDiscussable=h(e),t}function I(e,t){return Promise.all([a(e,t),d(e,t)]).then(r=>({item:r[0],data:r[1]}))}async function O(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent));let o=await x(Object.assign({item:r},t));return I(o.id,t)}function Q(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent)),E(r)&&(t.params=Object.assign(Object.assign({},t.params),{clearEmptyFields:!0}));let o=Object.assign({item:r},t);return K(o).then(()=>r.data?I(r.id,t):a(r.id,t).then(n=>({item:n})))}function E(e){return["description","snippet","tags","categories","licenseInfo"].some(t=>{var r;return e[t]===""||((r=e[t])===null||r===void 0?void 0:r.length)===0})}export{M as a,U as b,w as c,z as d,J as e,I as f,O as g,Q as h};
@@ -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.20250528.1 */
4
- import{a as h}from"./ECUWZTYK.js";import{a as n,b as o}from"./XZIMLV7H.js";import{b as i}from"./RHIPAMD6.js";import{a as r,c as t,d as l,e as d,f as p}from"./OLCSJ76K.js";import"./AJGIKTXY.js";var _=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}",f=_,e={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},u=class{constructor(a){r(this,a),this.infoIsOpenChanged=p(this,"infoIsOpenChanged",6),this._sanitizer=new o({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText="",this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=h.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=i(this.el),this.handleMobileBreakpoints(),this.dir=i(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){let a=this.logoImage==="undefined"||this.logoImage?.split("?")?.[0]==="undefined"||this.logoImage?.split("?")?.[0]===""||!this.logoImage,s=this.renderLogo(a),g=this.renderTitle(),c=this.headerAlignment==="right"||this.headerAlignment==="center"?e.headerContent.concat(" ",e.alignment[this.headerAlignment]):e.headerContent,m=n(this.fontFamily);return t(l,{key:"67508c680a63356bffe44968e023768d34a3a8d1"},this.customHeaderHtml?[t("style",null,this.customHeaderCss),t("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:t("header",{class:`${e.base}${this.dir==="rtl"?` ${e.flipRtl}`:""}${this.logoImage&&!a?` ${e.logoHeight}${this.logoScale}`:` ${e.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:m}},t("div",{class:e.headerContainer},t("span",{class:c},s,g,this.infoButton?t("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),t("div",{class:e.actionsEndContainer},t("slot",{name:"actions-end"})))))}renderLogo(a){return a?"":this.logoImage&&this.logoLink?t("a",{href:this.logoLink,target:"_blank"},t("img",{class:`${e.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText})):this.logoImage?t("img",{class:`${e.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?t("a",{style:{color:this.textColor},href:this.titleTextLink,rel:"noopener noreferrer",target:"_blank"},t("h1",{style:{color:this.textColor}},this.titleText)):t("h1",{style:{color:this.textColor}},this.titleText)}async toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),void await Promise.resolve()}mqlCallback(){return a=>{let{matches:s}=a;if(s){this.logoScale="s";return}this.logoScale=this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;let a=`(max-width: ${this.mobileWidthBreakpoint}px)`,s=window.matchMedia(a);s.matches&&(this.logoScale="s"),s.addEventListener("change",this.mqlCallback())}get el(){return d(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};u.style=f;export{u as instant_apps_header};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as h}from"./RR3GDG64.js";import{a as n,b as o}from"./YXUMTVRG.js";import{b as i}from"./6CPKRUI3.js";import{a as r,c as t,d as l,e as d,f as p}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var _=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}",f=_,e={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},u=class{constructor(a){r(this,a),this.infoIsOpenChanged=p(this,"infoIsOpenChanged",6),this._sanitizer=new o({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText="",this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=h.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=i(this.el),this.handleMobileBreakpoints(),this.dir=i(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){let a=this.logoImage==="undefined"||this.logoImage?.split("?")?.[0]==="undefined"||this.logoImage?.split("?")?.[0]===""||!this.logoImage,s=this.renderLogo(a),g=this.renderTitle(),c=this.headerAlignment==="right"||this.headerAlignment==="center"?e.headerContent.concat(" ",e.alignment[this.headerAlignment]):e.headerContent,m=n(this.fontFamily);return t(l,{key:"67508c680a63356bffe44968e023768d34a3a8d1"},this.customHeaderHtml?[t("style",null,this.customHeaderCss),t("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:t("header",{class:`${e.base}${this.dir==="rtl"?` ${e.flipRtl}`:""}${this.logoImage&&!a?` ${e.logoHeight}${this.logoScale}`:` ${e.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:m}},t("div",{class:e.headerContainer},t("span",{class:c},s,g,this.infoButton?t("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),t("div",{class:e.actionsEndContainer},t("slot",{name:"actions-end"})))))}renderLogo(a){return a?"":this.logoImage&&this.logoLink?t("a",{href:this.logoLink,target:"_blank"},t("img",{class:`${e.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText})):this.logoImage?t("img",{class:`${e.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?t("a",{style:{color:this.textColor},href:this.titleTextLink,rel:"noopener noreferrer",target:"_blank"},t("h1",{style:{color:this.textColor}},this.titleText)):t("h1",{style:{color:this.textColor}},this.titleText)}async toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),void await Promise.resolve()}mqlCallback(){return a=>{let{matches:s}=a;if(s){this.logoScale="s";return}this.logoScale=this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;let a=`(max-width: ${this.mobileWidthBreakpoint}px)`,s=window.matchMedia(a);s.matches&&(this.logoScale="s"),s.addEventListener("change",this.mqlCallback())}get el(){return d(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};u.style=f;export{u as instant_apps_header};
@@ -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.20250528.1 */
3
+ v1.0.0-next.20250528.2 */
4
4
  var o={user:"user",group:"group",groupAdmin:"group-admin",org:"org",orgAdmin:"org-admin",authenticated:"authenticated",anonymous:"anonymous",owner:"owner"};export{o 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.20250528.1 */
4
- import{a as e}from"./GUKAJOM3.js";var{state:a,onChange:n}=e({managedLayers:{},managedTables:[],highlightHandles:[],removeHandles:()=>{a.highlightHandles.forEach(s=>s?.remove()),a.highlightHandles=[]}}),h=new CustomEvent("managedLayersChanged",{bubbles:!0,cancelable:!1,composed:!0});n("managedLayers",()=>{dispatchEvent(h)});export{a};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as e}from"./2TF5G4JI.js";var{state:a,onChange:n}=e({managedLayers:{},managedTables:[],highlightHandles:[],removeHandles:()=>{a.highlightHandles.forEach(s=>s?.remove()),a.highlightHandles=[]}}),h=new CustomEvent("managedLayersChanged",{bubbles:!0,cancelable:!1,composed:!0});n("managedLayers",()=>{dispatchEvent(h)});export{a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528.1 */
4
- import{a as d}from"./KSS3APGW.js";import"./GUKAJOM3.js";import{a as T,d as I}from"./OYGGU32Q.js";import"./KONDPSKH.js";import"./MXWAIEZD.js";import"./MV7WFJWQ.js";import"./PEAUVPGM.js";import"./PQYDJLKT.js";import"./JFW3ETMX.js";import"./TNVAHKZK.js";import{g as L,j as E}from"./NG7TRKJC.js";import{c as l,e as r,f as c}from"./Y5PUS34W.js";import"./SJXIUCRN.js";import{a as g,b as _}from"./HSQGDLNP.js";import{b as k}from"./VQ6Q6POM.js";import{a as x}from"./C2QYX64L.js";import{D as w,E as h,I as v,J as $,c as f,d as o,g as p,o as y,q as S}from"./L3QLTAE7.js";import"./AJGIKTXY.js";var C=f`@layer{/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as d}from"./EU3TXNP2.js";import"./2TF5G4JI.js";import{a as T,d as I}from"./6WQKENE2.js";import"./HJJD6V2O.js";import"./XN5WML6J.js";import"./FPWLAJBO.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import"./4S2I2R2Q.js";import{g as L,j as E}from"./RS6TXCOP.js";import{c as l,e as r,f as c}from"./LBJE5BZD.js";import"./BACSZ2Z7.js";import{a as g,b as _}from"./SGXJZQ4L.js";import{b as k}from"./IIX655ZM.js";import{a as x}from"./YFG6Q4W4.js";import{D as w,E as h,I as v,J as $,c as f,d as o,g as p,o as y,q as S}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var C=f`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250528.2 */
4
+ import{b as e,e as r}from"./UQBMV5BY.js";import"./ETSCX6UD.js";import"./ZGO54R7R.js";import"./QOPQPJ6E.js";import{d as t}from"./XA34OFHO.js";import"./TQ24PIOH.js";import"./Y3MVHWDO.js";import"./AJUGJQUJ.js";import"./FPWLAJBO.js";import"./73NJ4RPV.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import"./UHBAUGQ4.js";import"./B4HONVWZ.js";async function c(a,n){let o=await e(Object.assign({channelId:a,data:{relations:[t.CHANNEL_ACL]}},n.hubRequestOptions));return r(o,n.currentUser)}export{c as fetchHubChannel};
@@ -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.20250528.1 */
4
- import{c as C}from"./AJGIKTXY.js";var T=C(N=>{"use strict";var R=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ne=R+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L="["+R+"]["+Ne+"]*",be=new RegExp("^"+L+"$"),Ae=function(e,t){let s=[],n=t.exec(e);for(;n;){let i=[];i.startIndex=t.lastIndex-n[0].length;let r=n.length;for(let u=0;u<r;u++)i.push(n[u]);s.push(i),n=t.exec(e)}return s},Ce=function(e){let t=be.exec(e);return!(t===null||typeof t>"u")};N.isExist=function(e){return typeof e<"u"};N.isEmptyObject=function(e){return Object.keys(e).length===0};N.merge=function(e,t,s){if(t){let n=Object.keys(t),i=n.length;for(let r=0;r<i;r++)s==="strict"?e[n[r]]=[t[n[r]]]:e[n[r]]=t[n[r]]}};N.getValue=function(e){return N.isExist(e)?e:""};N.buildOptions=function(e,t,s){let n={};if(!e)return t;for(let i=0;i<s.length;i++)e[s[i]]!==void 0?n[s[i]]=e[s[i]]:n[s[i]]=t[s[i]];return n};N.isTagNameInArrayMode=function(e,t,s){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,s):t==="strict"};N.isName=Ce;N.getAllMatches=Ae;N.nameRegexp=L});var $=C(Z=>{"use strict";var v=T(),q=function(e,t,s){let n={};if(!t.alwaysCreateTextNode&&(!e.child||v.isEmptyObject(e.child))&&(!e.attrsMap||v.isEmptyObject(e.attrsMap)))return v.isExist(e.val)?e.val:"";if(v.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let r=v.isTagNameInArrayMode(e.tagname,t.arrayMode,s);n[t.textNodeName]=r?[e.val]:e.val}v.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let r=0;r<i.length;r++){let u=i[r];if(e.child[u]&&e.child[u].length>1){n[u]=[];for(let a in e.child[u])e.child[u].hasOwnProperty(a)&&n[u].push(q(e.child[u][a],t,u))}else{let a=q(e.child[u][0],t,u),o=t.arrayMode===!0&&typeof a=="object"||v.isTagNameInArrayMode(u,t.arrayMode,s);n[u]=o?[a]:a}}return n};Z.convertToJson=q});var Q=C((ct,X)=>{"use strict";X.exports=function(e,t,s){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=s,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var z=C((ft,Y)=>{var Te=/^[-+]?0x[a-fA-F0-9]+$/,ye=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ve={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Pe(e,t={}){if(t=Object.assign({},ve,t),!e||typeof e!="string")return e;let s=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(s))return e;if(e==="0")return 0;if(t.hex&&Te.test(s))return Ee(s,16);if(s.search(/[eE]/)!==-1){let n=s.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(n){if(t.leadingZeros)s=(n[1]||"")+n[3];else if(!(n[2]==="0"&&n[3][0]==="."))return e;return t.eNotation?Number(s):e}else return e}else{let n=ye.exec(s);if(n){let i=n[1],r=n[2],u=me(n[3]);if(!t.leadingZeros&&r.length>0&&i&&s[2]!==".")return e;if(!t.leadingZeros&&r.length>0&&!i&&s[1]!==".")return e;if(t.leadingZeros&&r===e)return 0;{let a=Number(s),o=""+a;return o.search(/[eE]/)!==-1?t.eNotation?a:e:s.indexOf(".")!==-1?o==="0"&&u===""||o===u||i&&o==="-"+u?a:e:r?u===o||i+u===o?a:e:s===o||s===i+o?a:e}}else return e}}function me(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}function Ee(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}Y.exports=Pe});var E=C(V=>{"use strict";var P=T(),Ie=T().buildOptions,w=Q(),we=z(),dt="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,P.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var U={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[],alwaysCreateTextNode:!1};V.defaultOptions=U;var W=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];V.props=W;function O(e,t,s){return t&&(s.trimValues&&(t=t.trim()),t=s.tagValueProcessor(t,e),t=_(t,s.parseNodeValue,s.numParseOptions)),t}function Oe(e,t){if(t.ignoreNameSpace){let s=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(s[0]==="xmlns")return"";s.length===2&&(e=n+s[1])}return e}function _(e,t,s){if(t&&typeof e=="string"){let n=e.trim();return n==="true"?!0:n==="false"?!1:we(e,s)}else return P.isExist(e)?e:""}var Ve=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function K(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let s=P.getAllMatches(e,Ve),n=s.length,i={};for(let r=0;r<n;r++){let u=Oe(s[r][1],t);u.length&&(s[r][4]!==void 0?(t.trimValues&&(s[r][4]=s[r][4].trim()),s[r][4]=t.attrValueProcessor(s[r][4],u),i[t.attributeNamePrefix+u]=_(s[r][4],t.parseAttributeValue,t.numParseOptions)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+u]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let r={};return r[t.attrNodeName]=i,r}return i}}var Fe=function(e,t){e=e.replace(/\r\n?/g,`
3
+ v1.0.0-next.20250528.2 */
4
+ import{c as C}from"./B4HONVWZ.js";var T=C(N=>{"use strict";var R=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ne=R+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L="["+R+"]["+Ne+"]*",be=new RegExp("^"+L+"$"),Ae=function(e,t){let s=[],n=t.exec(e);for(;n;){let i=[];i.startIndex=t.lastIndex-n[0].length;let r=n.length;for(let u=0;u<r;u++)i.push(n[u]);s.push(i),n=t.exec(e)}return s},Ce=function(e){let t=be.exec(e);return!(t===null||typeof t>"u")};N.isExist=function(e){return typeof e<"u"};N.isEmptyObject=function(e){return Object.keys(e).length===0};N.merge=function(e,t,s){if(t){let n=Object.keys(t),i=n.length;for(let r=0;r<i;r++)s==="strict"?e[n[r]]=[t[n[r]]]:e[n[r]]=t[n[r]]}};N.getValue=function(e){return N.isExist(e)?e:""};N.buildOptions=function(e,t,s){let n={};if(!e)return t;for(let i=0;i<s.length;i++)e[s[i]]!==void 0?n[s[i]]=e[s[i]]:n[s[i]]=t[s[i]];return n};N.isTagNameInArrayMode=function(e,t,s){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,s):t==="strict"};N.isName=Ce;N.getAllMatches=Ae;N.nameRegexp=L});var $=C(Z=>{"use strict";var v=T(),q=function(e,t,s){let n={};if(!t.alwaysCreateTextNode&&(!e.child||v.isEmptyObject(e.child))&&(!e.attrsMap||v.isEmptyObject(e.attrsMap)))return v.isExist(e.val)?e.val:"";if(v.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let r=v.isTagNameInArrayMode(e.tagname,t.arrayMode,s);n[t.textNodeName]=r?[e.val]:e.val}v.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let r=0;r<i.length;r++){let u=i[r];if(e.child[u]&&e.child[u].length>1){n[u]=[];for(let a in e.child[u])e.child[u].hasOwnProperty(a)&&n[u].push(q(e.child[u][a],t,u))}else{let a=q(e.child[u][0],t,u),o=t.arrayMode===!0&&typeof a=="object"||v.isTagNameInArrayMode(u,t.arrayMode,s);n[u]=o?[a]:a}}return n};Z.convertToJson=q});var Q=C((ct,X)=>{"use strict";X.exports=function(e,t,s){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=s,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var z=C((ft,Y)=>{var Te=/^[-+]?0x[a-fA-F0-9]+$/,ye=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ve={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Pe(e,t={}){if(t=Object.assign({},ve,t),!e||typeof e!="string")return e;let s=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(s))return e;if(e==="0")return 0;if(t.hex&&Te.test(s))return Ee(s,16);if(s.search(/[eE]/)!==-1){let n=s.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(n){if(t.leadingZeros)s=(n[1]||"")+n[3];else if(!(n[2]==="0"&&n[3][0]==="."))return e;return t.eNotation?Number(s):e}else return e}else{let n=ye.exec(s);if(n){let i=n[1],r=n[2],u=me(n[3]);if(!t.leadingZeros&&r.length>0&&i&&s[2]!==".")return e;if(!t.leadingZeros&&r.length>0&&!i&&s[1]!==".")return e;if(t.leadingZeros&&r===e)return 0;{let a=Number(s),o=""+a;return o.search(/[eE]/)!==-1?t.eNotation?a:e:s.indexOf(".")!==-1?o==="0"&&u===""||o===u||i&&o==="-"+u?a:e:r?u===o||i+u===o?a:e:s===o||s===i+o?a:e}}else return e}}function me(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}function Ee(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}Y.exports=Pe});var E=C(V=>{"use strict";var P=T(),Ie=T().buildOptions,w=Q(),we=z(),dt="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,P.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var U={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[],alwaysCreateTextNode:!1};V.defaultOptions=U;var W=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];V.props=W;function O(e,t,s){return t&&(s.trimValues&&(t=t.trim()),t=s.tagValueProcessor(t,e),t=_(t,s.parseNodeValue,s.numParseOptions)),t}function Oe(e,t){if(t.ignoreNameSpace){let s=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(s[0]==="xmlns")return"";s.length===2&&(e=n+s[1])}return e}function _(e,t,s){if(t&&typeof e=="string"){let n=e.trim();return n==="true"?!0:n==="false"?!1:we(e,s)}else return P.isExist(e)?e:""}var Ve=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function K(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let s=P.getAllMatches(e,Ve),n=s.length,i={};for(let r=0;r<n;r++){let u=Oe(s[r][1],t);u.length&&(s[r][4]!==void 0?(t.trimValues&&(s[r][4]=s[r][4].trim()),s[r][4]=t.attrValueProcessor(s[r][4],u),i[t.attributeNamePrefix+u]=_(s[r][4],t.parseAttributeValue,t.numParseOptions)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+u]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let r={};return r[t.attrNodeName]=i,r}return i}}var Fe=function(e,t){e=e.replace(/\r\n?/g,`
5
5
  `),t=Ie(t,U,W);let s=new w("!xml"),n=s,i="";for(let r=0;r<e.length;r++)if(e[r]==="<")if(e[r+1]==="/"){let a=m(e,">",r,"Closing Tag is not closed."),o=e.substring(r+2,a).trim();if(t.ignoreNameSpace){let h=o.indexOf(":");h!==-1&&(o=o.substr(h+1))}n&&(n.val?n.val=P.getValue(n.val)+""+O(o,i,t):n.val=O(o,i,t)),t.stopNodes.length&&t.stopNodes.includes(n.tagname)&&(n.child=[],n.attrsMap==null&&(n.attrsMap={}),n.val=e.substr(n.startIndex+1,r-n.startIndex-1)),n=n.parent,i="",r=a}else if(e[r+1]==="?")r=m(e,"?>",r,"Pi Tag is not closed.");else if(e.substr(r+1,3)==="!--")r=m(e,"-->",r,"Comment is not closed.");else if(e.substr(r+1,2)==="!D"){let a=m(e,">",r,"DOCTYPE is not closed.");e.substring(r,a).indexOf("[")>=0?r=e.indexOf("]>",r)+1:r=a}else if(e.substr(r+1,2)==="!["){let a=m(e,"]]>",r,"CDATA is not closed.")-2,o=e.substring(r+9,a);if(i&&(n.val=P.getValue(n.val)+""+O(n.tagname,i,t),i=""),t.cdataTagName){let h=new w(t.cdataTagName,n,o);n.addChild(h),n.val=P.getValue(n.val)+t.cdataPositionChar,o&&(h.val=o)}else n.val=(n.val||"")+(o||"");r=a+2}else{let a=Me(e,r+1),o=a.data,h=a.index,d=o.indexOf(" "),l=o,A=!0;if(d!==-1&&(l=o.substr(0,d).replace(/\s\s*$/,""),o=o.substr(d+1)),t.ignoreNameSpace){let p=l.indexOf(":");p!==-1&&(l=l.substr(p+1),A=l!==a.data.substr(p+1))}if(n&&i&&n.tagname!=="!xml"&&(n.val=P.getValue(n.val)+""+O(n.tagname,i,t)),o.length>0&&o.lastIndexOf("/")===o.length-1){l[l.length-1]==="/"?(l=l.substr(0,l.length-1),o=l):o=o.substr(0,o.length-1);let p=new w(l,n,"");l!==o&&(p.attrsMap=K(o,t)),n.addChild(p)}else{let p=new w(l,n);t.stopNodes.length&&t.stopNodes.includes(p.tagname)&&(p.startIndex=h),l!==o&&A&&(p.attrsMap=K(o,t)),n.addChild(p),n=p}i="",r=h}else i+=e[r];return s};function Me(e,t){let s,n="";for(let i=t;i<e.length;i++){let r=e[i];if(s)r===s&&(s="");else if(r==='"'||r==="'")s=r;else{if(r===">")return{data:n,index:i};r===" "&&(r=" ")}n+=r}}function m(e,t,s,n){let i=e.indexOf(t,s);if(i===-1)throw new Error(n);return i+t.length-1}V.getTraversalObj=Fe});var ee=C(D=>{"use strict";var M=T(),ke={allowBooleanAttributes:!1},qe=["allowBooleanAttributes"];D.validate=function(e,t){t=M.buildOptions(t,ke,qe);let s=[],n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let r=0;r<e.length;r++)if(e[r]==="<"&&e[r+1]==="?"){if(r+=2,r=G(e,r),r.err)return r}else if(e[r]==="<"){let u=r;if(r++,e[r]==="!"){r=H(e,r);continue}else{let a=!1;e[r]==="/"&&(a=!0,r++);let o="";for(;r<e.length&&e[r]!==">"&&e[r]!==" "&&e[r]!==" "&&e[r]!==`
6
6
  `&&e[r]!=="\r";r++)o+=e[r];if(o=o.trim(),o[o.length-1]==="/"&&(o=o.substring(0,o.length-1),r--),!$e(o)){let l;return o.trim().length===0?l="Invalid space after '<'.":l="Tag '"+o+"' is an invalid name.",f("InvalidTag",l,g(e,r))}let h=xe(e,r);if(h===!1)return f("InvalidAttr","Attributes for '"+o+"' have open quote.",g(e,r));let d=h.value;if(r=h.index,d[d.length-1]==="/"){let l=r-d.length;d=d.substring(0,d.length-1);let A=j(d,t);if(A===!0)n=!0;else return f(A.err.code,A.err.msg,g(e,l+A.err.line))}else if(a)if(h.tagClosed){if(d.trim().length>0)return f("InvalidTag","Closing tag '"+o+"' can't have attributes or invalid starting.",g(e,u));{let l=s.pop();if(o!==l.tagName){let A=g(e,l.tagStartPos);return f("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+A.line+", col "+A.col+") instead of closing tag '"+o+"'.",g(e,u))}s.length==0&&(i=!0)}}else return f("InvalidTag","Closing tag '"+o+"' doesn't have proper closing.",g(e,r));else{let l=j(d,t);if(l!==!0)return f(l.err.code,l.err.msg,g(e,r-d.length+l.err.line));if(i===!0)return f("InvalidXml","Multiple possible root nodes found.",g(e,r));s.push({tagName:o,tagStartPos:u}),n=!0}for(r++;r<e.length;r++)if(e[r]==="<")if(e[r+1]==="!"){r++,r=H(e,r);continue}else if(e[r+1]==="?"){if(r=G(e,++r),r.err)return r}else break;else if(e[r]==="&"){let l=Le(e,r);if(l==-1)return f("InvalidChar","char '&' is not expected.",g(e,r));r=l}e[r]==="<"&&r--}}else{if(e[r]===" "||e[r]===" "||e[r]===`
7
7
  `||e[r]==="\r")continue;return f("InvalidChar","char '"+e[r]+"' is not expected.",g(e,r))}if(n){if(s.length==1)return f("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",g(e,s[0].tagStartPos));if(s.length>0)return f("InvalidXml","Invalid '"+JSON.stringify(s.map(r=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return f("InvalidXml","Start tag expected.",1);return!0};function G(e,t){let s=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){let n=e.substr(s,t-s);if(t>5&&n==="xml")return f("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function H(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let s=1;for(t+=8;t<e.length;t++)if(e[t]==="<")s++;else if(e[t]===">"&&(s--,s===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var Be='"',Se="'";function xe(e,t){let s="",n="",i=!1;for(;t<e.length;t++){if(e[t]===Be||e[t]===Se)n===""?n=e[t]:n!==e[t]||(n="");else if(e[t]===">"&&n===""){i=!0;break}s+=e[t]}return n!==""?!1:{value:s,index:t,tagClosed:i}}var Je=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function j(e,t){let s=M.getAllMatches(e,Je),n={};for(let i=0;i<s.length;i++){if(s[i][1].length===0)return f("InvalidAttr","Attribute '"+s[i][2]+"' has no space in starting.",F(s[i]));if(s[i][3]===void 0&&!t.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+s[i][2]+"' is not allowed.",F(s[i]));let r=s[i][2];if(!Ze(r))return f("InvalidAttr","Attribute '"+r+"' is an invalid name.",F(s[i]));if(!n.hasOwnProperty(r))n[r]=1;else return f("InvalidAttr","Attribute '"+r+"' is repeated.",F(s[i]))}return!0}function Re(e,t){let s=/\d/;for(e[t]==="x"&&(t++,s=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(s))break}return-1}function Le(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,Re(e,t);let s=0;for(;t<e.length;t++,s++)if(!(e[t].match(/\w/)&&s<20)){if(e[t]===";")break;return-1}return t}function f(e,t,s){return{err:{code:e,msg:t,line:s.line||s,col:s.col}}}function Ze(e){return M.isName(e)}function $e(e){return M.isName(e)}function g(e,t){let s=e.substring(0,t).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function F(e){return e.startIndex+e[1].length}});var se=C(ne=>{"use strict";var y=function(e){return String.fromCharCode(e)},c={nilChar:y(176),missingChar:y(201),nilPremitive:y(175),missingPremitive:y(200),emptyChar:y(178),emptyValue:y(177),boundryChar:y(179),objStart:y(198),arrStart:y(204),arrayEnd:y(185)},Xe=[c.nilChar,c.nilPremitive,c.missingChar,c.missingPremitive,c.boundryChar,c.emptyChar,c.emptyValue,c.arrayEnd,c.objStart,c.arrStart],I=function(e,t,s){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?B(e[0].val,t):B(e,t);{let n=Qe(e);if(n===!0){let i="";if(Array.isArray(t)){i+=c.arrStart;let r=t[0],u=e.length;if(typeof r=="string")for(let a=0;a<u;a++){let o=B(e[a].val,r);i=S(i,o)}else for(let a=0;a<u;a++){let o=I(e[a],r,s);i=S(i,o)}i+=c.arrayEnd}else{i+=c.objStart;let r=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let u in r){let a=r[u],o;!s.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?o=I(e.attrsMap[a],t[a],s):a===s.textNodeName?o=I(e.val,t[a],s):o=I(e.child[a],t[a],s),i=S(i,o)}}return i}else return n}},B=function(e){switch(e){case void 0:return c.missingPremitive;case null:return c.nilPremitive;case"":return c.emptyValue;default:return e}},S=function(e,t){return!te(t[0])&&!te(e[e.length-1])&&(e+=c.boundryChar),e+t},te=function(e){return Xe.indexOf(e)!==-1};function Qe(e){return e===void 0?c.missingChar:e===null?c.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?c.emptyChar:!0}var re=E(),Ye=T().buildOptions,ze=function(e,t,s){return s=Ye(s,re.defaultOptions,re.props),I(e,t,s)};ne.convert2nimn=ze});var ae=C(oe=>{"use strict";var k=T(),Ke=T().buildOptions,ie=E(),Ue=function(e,t){return t=Ke(t,ie.defaultOptions,ie.props),t.indentBy=t.indentBy||"",x(e,t,0)},x=function(e,t,s){let n="{",i=Object.keys(e.child);for(let r=0;r<i.length;r++){let u=i[r];if(e.child[u]&&e.child[u].length>1){n+='"'+u+'" : [ ';for(let a in e.child[u])n+=x(e.child[u][a],t)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+u+'" : '+x(e.child[u][0],t)+" ,"}return k.merge(n,e.attrsMap),k.isEmptyObject(n)?k.isExist(e.val)?e.val:"":(k.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(n+='"'+t.textNodeName+'" : '+We(e.val))),n[n.length-1]===","&&(n=n.substr(0,n.length-2)),n+"}")};function We(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}oe.convertToJsonString=Ue});var fe=C((bt,ce)=>{"use strict";var _e=T().buildOptions,Ge={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},He=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function J(e){this.options=_e(e,Ge,He),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=st),this.options.cdataTagName?this.isCDATA=it:this.isCDATA=function(){return!1},this.replaceCDATAstr=De,this.replaceCDATAarr=et,this.processTextOrObjNode=je,this.options.format?(this.indentate=nt,this.tagEndChar=`>
@@ -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.20250528.1 */
4
- import{a as P}from"./GUKAJOM3.js";import{c as n,e as g,f as m,g as d,h as I,i as S,m as b,q as F,r as y,s as v,t as R,u as w,v as T}from"./KONDPSKH.js";import{b as o,h as _}from"./Y5PUS34W.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as P}from"./2TF5G4JI.js";import{c as n,e as g,f as m,g as d,h as I,i as S,m as b,q as F,r as y,s as v,t as R,u as w,v as T}from"./HJJD6V2O.js";import{b as o,h as _}from"./LBJE5BZD.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};