@esri/solutions-components 1.2.0-next.1 → 1.2.0-next.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 (456) hide show
  1. package/dist/cdn/{QSZDH2XJ.js → 22BFHC2I.js} +2 -2
  2. package/dist/cdn/{7Z6VMW3R.js → 22LLS6WR.js} +2 -2
  3. package/dist/cdn/{Z4SN7DKN.js → 24C3TAJY.js} +2 -2
  4. package/dist/cdn/{PZCE22XQ.js → 24PILRZT.js} +2 -2
  5. package/dist/cdn/{JKF6DMWR.js → 26NSAUFX.js} +1 -1
  6. package/dist/cdn/{BT7XOYF5.js → 2AUDRMU3.js} +2 -2
  7. package/dist/cdn/{BSKEER6B.js → 2BOM63KQ.js} +2 -2
  8. package/dist/cdn/{3X4Q46AK.js → 2FFHB27Z.js} +2 -2
  9. package/dist/cdn/{QQ5C5WOS.js → 2IPTMHFY.js} +2 -2
  10. package/dist/cdn/{BZDKUBLK.js → 2JQUC3UP.js} +2 -2
  11. package/dist/cdn/{I3GNEXKT.js → 2KXRE3QQ.js} +2 -2
  12. package/dist/cdn/{KC4VT3EZ.js → 2LK2MZZR.js} +2 -2
  13. package/dist/cdn/{G64ULB7X.js → 2LLZMSJV.js} +2 -2
  14. package/dist/cdn/{3PXVZE5B.js → 2QP26HSW.js} +2 -2
  15. package/dist/cdn/2RVVSM5J.js +4 -0
  16. package/dist/cdn/{MGQ7JXPR.js → 2ZUX4PI4.js} +2 -2
  17. package/dist/cdn/{FYDE2G2S.js → 32275IZ5.js} +2 -2
  18. package/dist/cdn/{SNTUWGY2.js → 327AKQNH.js} +2 -2
  19. package/dist/cdn/{Z44XX64I.js → 32GCN42P.js} +1 -1
  20. package/dist/cdn/{SKBIH7Z2.js → 35KI2UZP.js} +2 -2
  21. package/dist/cdn/{BTZUJGQZ.js → 3AXQAZAI.js} +1 -1
  22. package/dist/cdn/{GZK4P6TS.js → 3ENATMAV.js} +2 -2
  23. package/dist/cdn/{OD3QTJAN.js → 3MGV3QJV.js} +2 -2
  24. package/dist/cdn/{JSDRL6ZD.js → 3MON3AIB.js} +2 -2
  25. package/dist/cdn/{CNU3472Z.js → 3NETFEHL.js} +2 -2
  26. package/dist/cdn/{UK6IC5E3.js → 3SH6IZWK.js} +1 -1
  27. package/dist/cdn/{FPWJ6PMO.js → 3UMQAY7D.js} +2 -2
  28. package/dist/cdn/{7KQUOMHW.js → 3VJ5JQ7K.js} +2 -2
  29. package/dist/cdn/{UG6Y6SUL.js → 3VXS23LI.js} +2 -2
  30. package/dist/cdn/{BYVW36VB.js → 3YPL6RCD.js} +2 -2
  31. package/dist/cdn/{CVNJUCBY.js → 45ANCG22.js} +2 -2
  32. package/dist/cdn/{RLSD2M4U.js → 4CD2LCWF.js} +1 -1
  33. package/dist/cdn/{V5UDKO3L.js → 4J6A5LH5.js} +1 -1
  34. package/dist/cdn/{UNZ4TB2U.js → 4JWTHCFT.js} +2 -2
  35. package/dist/cdn/{4G6CGSME.js → 4NVR4X3L.js} +1 -1
  36. package/dist/cdn/{27APFVLL.js → 4UUIRHC6.js} +2 -2
  37. package/dist/cdn/{6O7OK3WU.js → 4XJKKLD3.js} +1 -1
  38. package/dist/cdn/{BXINC4TL.js → 4XYYUSUA.js} +1 -1
  39. package/dist/cdn/{X4XPW2FK.js → 4YNKTXJZ.js} +2 -2
  40. package/dist/cdn/{VDJEIK4Q.js → 53GNUN6U.js} +4 -4
  41. package/dist/cdn/56QASSI7.js +4 -0
  42. package/dist/cdn/{5RUH4EFW.js → 57S3EVKQ.js} +2 -2
  43. package/dist/cdn/{L2KCAISR.js → 5CCXGSYJ.js} +2 -2
  44. package/dist/cdn/{AM6CUQET.js → 5E2ADQM6.js} +2 -2
  45. package/dist/cdn/{EEH2H5FR.js → 5GQ6DHYL.js} +2 -2
  46. package/dist/cdn/{WL2HLYRG.js → 5GW6VGYE.js} +2 -2
  47. package/dist/cdn/{L4A7ZXML.js → 5HDW32N3.js} +2 -2
  48. package/dist/cdn/{43JJ42I6.js → 5J7IGLEN.js} +2 -2
  49. package/dist/cdn/{GVV6CMDT.js → 5K2GKQME.js} +2 -2
  50. package/dist/cdn/{SBV7BWCP.js → 5LNUHS4F.js} +2 -2
  51. package/dist/cdn/{3FTD7QHK.js → 5T6EZRNO.js} +2 -2
  52. package/dist/cdn/{RSTCU2L3.js → 5WP2S2ZH.js} +1 -1
  53. package/dist/cdn/{736NHE3J.js → 62JXAZTH.js} +2 -2
  54. package/dist/cdn/{653HGMN6.js → 62NI5UX7.js} +2 -2
  55. package/dist/cdn/{EGSHVW4A.js → 62WGZZJQ.js} +2 -2
  56. package/dist/cdn/{3RX4FKVH.js → 63PHQLZJ.js} +2 -2
  57. package/dist/cdn/{DYETIYXT.js → 64KPWKOZ.js} +2 -2
  58. package/dist/cdn/{A3QP26AQ.js → 67H5AKUO.js} +2 -2
  59. package/dist/cdn/{E56R6ZHU.js → 6FCQB3AG.js} +2 -2
  60. package/dist/cdn/{S7RSY7HH.js → 6GSFOGSD.js} +2 -2
  61. package/dist/cdn/{HAPZLAZI.js → 6M2T3Q2M.js} +2 -2
  62. package/dist/cdn/{HHE7DQNN.js → 6QHOYKEI.js} +2 -2
  63. package/dist/cdn/{X6PG67VX.js → 6RJ3S2N4.js} +2 -2
  64. package/dist/cdn/{BQG7DYTH.js → 6RN2G5UX.js} +2 -2
  65. package/dist/cdn/{7WSRMZLR.js → 6Y4X3UOF.js} +2 -2
  66. package/dist/cdn/{GUQOCIWI.js → 73RE22QT.js} +2 -2
  67. package/dist/cdn/{LK4URP54.js → 7GJSEVPA.js} +2 -2
  68. package/dist/cdn/{WQMZCCTG.js → 7L7OMOMR.js} +2 -2
  69. package/dist/cdn/{GDQKBGVU.js → 7LML2KAO.js} +2 -2
  70. package/dist/cdn/{RQBPWWL2.js → 7M65VSDO.js} +1 -1
  71. package/dist/cdn/{HA35BFCM.js → 7TVK2JZJ.js} +2 -2
  72. package/dist/cdn/{G3KFU7YY.js → 7UBRL7BT.js} +2 -2
  73. package/dist/cdn/{HIPPWX3F.js → 7XNXOLSM.js} +2 -2
  74. package/dist/cdn/{TXV3OSVN.js → A2D7SAO5.js} +2 -2
  75. package/dist/cdn/{T2ZLWCLC.js → A54VVFMV.js} +2 -2
  76. package/dist/cdn/{W7TKP6V5.js → AGNDZTZ6.js} +1 -1
  77. package/dist/cdn/{AQLLIUAO.js → AMP4ZNCP.js} +2 -2
  78. package/dist/cdn/{FKLJTSPN.js → AV64MW2C.js} +2 -2
  79. package/dist/cdn/{OVM4U6YF.js → AZZRAFZ2.js} +2 -2
  80. package/dist/cdn/{KJUT6QHE.js → B37JGOGF.js} +2 -2
  81. package/dist/cdn/{XHQ34X3G.js → B5X7FR3W.js} +2 -2
  82. package/dist/cdn/{WXCJRGZG.js → BBLEZ5WS.js} +2 -2
  83. package/dist/cdn/{ZWMQNYU4.js → BCPDT6MV.js} +2 -2
  84. package/dist/cdn/{XAHRAKUG.js → BGMDKWE7.js} +2 -2
  85. package/dist/cdn/{LC5MX3Y5.js → BHXQ7QW6.js} +2 -2
  86. package/dist/cdn/{ZAGSKRBT.js → BJWPKYKV.js} +2 -2
  87. package/dist/cdn/{CIM646MY.js → BL4KF37N.js} +2 -2
  88. package/dist/cdn/BL7TUTFB.js +4 -0
  89. package/dist/cdn/{BGVEHDJZ.js → BN34E5SA.js} +2 -2
  90. package/dist/cdn/{LLTDCAVX.js → BPB3TNH6.js} +2 -2
  91. package/dist/cdn/{LGL4DYMW.js → BS533JHX.js} +2 -2
  92. package/dist/cdn/{JNMUGZK3.js → BSCXWZZC.js} +1 -1
  93. package/dist/cdn/{OYNJ6GFI.js → BTHNNVZX.js} +1 -1
  94. package/dist/cdn/{B5HIH5BI.js → BVRRREAU.js} +2 -2
  95. package/dist/cdn/{CEH26EDG.js → C42K62PR.js} +2 -2
  96. package/dist/cdn/{GDTOMIWL.js → C4GYOXKY.js} +2 -2
  97. package/dist/cdn/{NLUZGNSN.js → C5FQOPJR.js} +2 -2
  98. package/dist/cdn/{JPL6PWCI.js → CFB6TU6B.js} +2 -2
  99. package/dist/cdn/{S2BUTHI2.js → CHPW5FJW.js} +2 -2
  100. package/dist/cdn/{LY6EPL2S.js → CLIXTMET.js} +2 -2
  101. package/dist/cdn/{ZRW2OJ4E.js → CPC2M7AK.js} +2 -2
  102. package/dist/cdn/{LB6KC3G5.js → CRGYVR4L.js} +2 -2
  103. package/dist/cdn/{TGDGVXKT.js → CUBFKAV6.js} +2 -2
  104. package/dist/cdn/{DT6TJWI4.js → CXJUQMCV.js} +2 -2
  105. package/dist/cdn/{DLCCT4NW.js → DDP5UCZA.js} +2 -2
  106. package/dist/cdn/DH3SAWQO.js +4 -0
  107. package/dist/cdn/{4VVSACXP.js → DKRHACVW.js} +2 -2
  108. package/dist/cdn/{F4M6554C.js → DM633MDA.js} +2 -2
  109. package/dist/cdn/{X6SSAB2E.js → DMECGLC4.js} +2 -2
  110. package/dist/cdn/{DNJUS347.js → DMMMW2BR.js} +2 -2
  111. package/dist/cdn/{OBSNNREX.js → DMW55L65.js} +2 -2
  112. package/dist/cdn/{CVGM4QYD.js → DXGUMM4O.js} +2 -2
  113. package/dist/cdn/{LYCCIBXG.js → DZ76G2RX.js} +2 -2
  114. package/dist/cdn/{KSRRTR4T.js → DZHVGBZB.js} +2 -2
  115. package/dist/cdn/{CWHNHLH4.js → E4V5RLGM.js} +2 -2
  116. package/dist/cdn/{7BJFXFUH.js → EALUH4BU.js} +2 -2
  117. package/dist/cdn/{ND2C6KMG.js → EBKAKZZU.js} +2 -2
  118. package/dist/cdn/{D6SWHYCO.js → ECKRAOTK.js} +2 -2
  119. package/dist/cdn/{T2S7EWB5.js → ECVB7DM6.js} +2 -2
  120. package/dist/cdn/{RCWPPZIY.js → EG2JBWTE.js} +2 -2
  121. package/dist/cdn/{YHURTADW.js → EM5Z3TCD.js} +2 -2
  122. package/dist/cdn/{ZUOIOELU.js → ENS7CZX3.js} +2 -2
  123. package/dist/cdn/{RF6B6MW7.js → EWQ7E45G.js} +2 -2
  124. package/dist/cdn/{MGWW6MPC.js → F23TKPQ3.js} +2 -2
  125. package/dist/cdn/{A7GDEXFK.js → FDZWMY22.js} +2 -2
  126. package/dist/cdn/{NBOCMHX6.js → FELH7PBD.js} +2 -2
  127. package/dist/cdn/{4ZE7GGAS.js → FGUX7O4N.js} +2 -2
  128. package/dist/cdn/{BFSMHNRA.js → FHLHSJYN.js} +2 -2
  129. package/dist/cdn/{ZD7TFS7W.js → FJ5G5F6F.js} +2 -2
  130. package/dist/cdn/{RQETMS6H.js → FJYGYKU7.js} +2 -2
  131. package/dist/cdn/{3W7QQ6P6.js → FMF65JWL.js} +2 -2
  132. package/dist/cdn/{ROASTLYA.js → FNLWKSSH.js} +1 -1
  133. package/dist/cdn/{W3X6SZND.js → FTJZYC6F.js} +2 -2
  134. package/dist/cdn/{N6QQZFT5.js → FUYHWE6S.js} +2 -2
  135. package/dist/cdn/{HWZTRX65.js → FYFIZWH7.js} +2 -2
  136. package/dist/cdn/{3UYQB5M2.js → FYQALD4I.js} +1 -1
  137. package/dist/cdn/{QAXMDQX3.js → FZW3ZZPU.js} +2 -2
  138. package/dist/cdn/{BFW6A2EV.js → G5MR5SG5.js} +2 -2
  139. package/dist/cdn/{IW52PVHP.js → G7UTMYYA.js} +2 -2
  140. package/dist/cdn/{IBM5XI3O.js → GA5KNLFJ.js} +2 -2
  141. package/dist/cdn/{XYSEGG7Q.js → GK4O6X2B.js} +2 -2
  142. package/dist/cdn/{PYOCFNFS.js → GRC5KYBB.js} +1 -1
  143. package/dist/cdn/{5BGGKOSZ.js → GU3R45TN.js} +2 -2
  144. package/dist/cdn/{J3W2N5FC.js → GYZWPVGD.js} +2 -2
  145. package/dist/cdn/{Q274TR3Z.js → H7YFIIKJ.js} +2 -2
  146. package/dist/cdn/{DRUP6BQ5.js → HAYDHL6E.js} +2 -2
  147. package/dist/cdn/{UCXPZD52.js → HCEYPHXZ.js} +2 -2
  148. package/dist/cdn/{6UNT5MUE.js → HJCGCJHG.js} +1 -1
  149. package/dist/cdn/{UU4ZDJVO.js → HKUMRXKS.js} +2 -2
  150. package/dist/cdn/{PLW2DSVT.js → HN6L7MEZ.js} +1 -1
  151. package/dist/cdn/{FF2RFQ4J.js → HOCJSK24.js} +2 -2
  152. package/dist/cdn/{NE6U33BE.js → HR44MJZ4.js} +2 -2
  153. package/dist/cdn/{TNFKJE4M.js → HSGU3NPM.js} +2 -2
  154. package/dist/cdn/{F3UCVDZ2.js → HV23NBKM.js} +1 -1
  155. package/dist/cdn/{EAJLTNVD.js → HWBSZWSI.js} +2 -2
  156. package/dist/cdn/I3IHBW4I.js +4 -0
  157. package/dist/cdn/{P2ZBSU5H.js → I4E7TVY4.js} +2 -2
  158. package/dist/cdn/{LFVIZYTM.js → I5X57Y6X.js} +1 -1
  159. package/dist/cdn/{NYBXXXFR.js → IAMELUPG.js} +1 -1
  160. package/dist/cdn/{PQFMMRQF.js → IBIR3MNF.js} +2 -2
  161. package/dist/cdn/{TXTZQIXU.js → IGUMVL7J.js} +2 -2
  162. package/dist/cdn/{FUAAIOVV.js → II4ZEXAJ.js} +2 -2
  163. package/dist/cdn/{QKV74IV3.js → IIBBHZ5N.js} +2 -2
  164. package/dist/cdn/{W34PKOJS.js → IN3OKM7F.js} +2 -2
  165. package/dist/cdn/{IMCXSNGQ.js → IPIW25QW.js} +2 -2
  166. package/dist/cdn/{Y74KYB73.js → ITIM5MBI.js} +2 -2
  167. package/dist/cdn/{ZHUFA7F3.js → IUWPOFEU.js} +2 -2
  168. package/dist/cdn/{5EYMLB42.js → IWN7UDRD.js} +2 -2
  169. package/dist/cdn/{AAILNBJL.js → J3AFQ2U2.js} +2 -2
  170. package/dist/cdn/{BVHEKO2U.js → J5HRIE3W.js} +2 -2
  171. package/dist/cdn/{7YJKP23X.js → J5U3NOSX.js} +2 -2
  172. package/dist/cdn/{DO6VOO2V.js → J6IINHXU.js} +2 -2
  173. package/dist/cdn/{I2HXIQGP.js → JDDI6RWH.js} +2 -2
  174. package/dist/cdn/{BY7JMUBE.js → JDMCVY5U.js} +2 -2
  175. package/dist/cdn/JHPYHESZ.js +4 -0
  176. package/dist/cdn/{XIXNLRAQ.js → JKVDTJCD.js} +1 -1
  177. package/dist/cdn/{32DRSUWP.js → JOOTU2MN.js} +2 -2
  178. package/dist/cdn/{EAJPSM6R.js → JSMMX4OW.js} +2 -2
  179. package/dist/cdn/{CRXAZVVV.js → JVHOB5XV.js} +2 -2
  180. package/dist/cdn/{C4VBVF5F.js → JWXSAYHC.js} +2 -2
  181. package/dist/cdn/{HYRLUKFR.js → JYKNVSA4.js} +2 -2
  182. package/dist/cdn/{XBBZMVKA.js → JZ2AJ7NV.js} +2 -2
  183. package/dist/cdn/{HEQ4RTPP.js → K3ZT5FZ2.js} +1 -1
  184. package/dist/cdn/{55L6CSSX.js → K5U7ZHCS.js} +2 -2
  185. package/dist/cdn/{YO25MEEB.js → KCTOUFKC.js} +2 -2
  186. package/dist/cdn/{RN2IQ6P7.js → KJEGNTYQ.js} +2 -2
  187. package/dist/cdn/{GO3DBAQ3.js → KORLC5U7.js} +2 -2
  188. package/dist/cdn/{PZH7RCYT.js → KQHBJ2QB.js} +1 -1
  189. package/dist/cdn/{GPAASHCV.js → KQM2NMJJ.js} +2 -2
  190. package/dist/cdn/{ECIK3AWG.js → KSKZZDYX.js} +1 -1
  191. package/dist/cdn/{DTHJ6RVO.js → KURD67WP.js} +2 -2
  192. package/dist/cdn/{LHLMGRPK.js → KVSY5222.js} +2 -2
  193. package/dist/cdn/{XRPPXHNC.js → KXEXXT56.js} +2 -2
  194. package/dist/cdn/{5D6MJQRN.js → KXKBIVFJ.js} +2 -2
  195. package/dist/cdn/{6PGNEYP5.js → KYYMWKPV.js} +2 -2
  196. package/dist/cdn/{GOLK3KHK.js → KZ2V3URW.js} +2 -2
  197. package/dist/cdn/L2O6CXOR.js +18 -0
  198. package/dist/cdn/{MAJWJ4QY.js → LA735BCX.js} +2 -2
  199. package/dist/cdn/{PNLI6VBN.js → LETYH73H.js} +2 -2
  200. package/dist/cdn/{MJW4C2UT.js → LNOZBYMZ.js} +2 -2
  201. package/dist/cdn/{DQPEZQH4.js → LPJPNWKA.js} +2 -2
  202. package/dist/cdn/{BMUM7THE.js → LUKTYB6E.js} +2 -2
  203. package/dist/cdn/{Y3S2FSFT.js → LZIYOPAC.js} +2 -2
  204. package/dist/cdn/{2CEJYF62.js → LZUM3H4J.js} +2 -2
  205. package/dist/cdn/{L7QPZ7RC.js → M2TJWZ2F.js} +2 -2
  206. package/dist/cdn/{XIAOC6XW.js → M46DOI6W.js} +1 -1
  207. package/dist/cdn/{U6X3W2T2.js → MB2DM6NF.js} +2 -2
  208. package/dist/cdn/{MBZJ3EX7.js → MDL3GASV.js} +2 -2
  209. package/dist/cdn/{4UHO6YOS.js → MEM675A5.js} +2 -2
  210. package/dist/cdn/{7PM6K4BQ.js → MGON4SLN.js} +1 -1
  211. package/dist/cdn/{VE7TDW2K.js → MK3C2NWT.js} +2 -2
  212. package/dist/cdn/{522BPYLF.js → MNBZZ6G3.js} +2 -2
  213. package/dist/cdn/{XZSRLA3D.js → MOAD2WOZ.js} +2 -2
  214. package/dist/cdn/{QFL5XFOY.js → MOKFQR6C.js} +2 -2
  215. package/dist/cdn/{SS34O6SJ.js → MQDP5X2Y.js} +1 -1
  216. package/dist/cdn/{U63ZSVX5.js → MQE2DTF5.js} +1 -1
  217. package/dist/cdn/{VNA2COY6.js → MTQRP42U.js} +1 -1
  218. package/dist/cdn/MZFDMEQW.js +4 -0
  219. package/dist/cdn/{OTLPAZXI.js → NAFDFLKN.js} +2 -2
  220. package/dist/cdn/{AFI227JI.js → NAWCG6BY.js} +2 -2
  221. package/dist/cdn/{3XLZCUHG.js → NF5TB4T5.js} +2 -2
  222. package/dist/cdn/{NHLT7M36.js → NLWFERKV.js} +3 -3
  223. package/dist/cdn/{RXM4HJ6I.js → NM6FSLHS.js} +2 -2
  224. package/dist/cdn/{GPN7CMKQ.js → NNT3DJXP.js} +1 -1
  225. package/dist/cdn/{QZC5UTRX.js → NR4TU43I.js} +2 -2
  226. package/dist/cdn/{PFANUBNV.js → NSJNK5YX.js} +2 -2
  227. package/dist/cdn/{GKZBYEDV.js → NTN5IKQX.js} +2 -2
  228. package/dist/cdn/{IHWF6T6Y.js → NVBXPDWS.js} +2 -2
  229. package/dist/cdn/{LNB7BGSN.js → NVOMEAQG.js} +2 -2
  230. package/dist/cdn/{7GIY6DUJ.js → NW5D2PXR.js} +2 -2
  231. package/dist/cdn/{2W53WRNR.js → NWAXN6PC.js} +2 -2
  232. package/dist/cdn/{RTNMZG5Q.js → NYH5N4UB.js} +2 -2
  233. package/dist/cdn/{TO4XC5SF.js → O3ZWY3L2.js} +2 -2
  234. package/dist/cdn/{MZKLKS6I.js → O6WPAEXC.js} +2 -2
  235. package/dist/cdn/{LY7L2GZL.js → O7K2BTNK.js} +2 -2
  236. package/dist/cdn/{CWXSLS5U.js → O7KVFY2I.js} +2 -2
  237. package/dist/cdn/{XQSYZIRC.js → OFMGQCKQ.js} +2 -2
  238. package/dist/cdn/{SWN5VSPM.js → OGKY3OCB.js} +2 -2
  239. package/dist/cdn/{3QZ3WO4J.js → OHBU7SZN.js} +2 -2
  240. package/dist/cdn/{EAPSALKZ.js → OI7TKT4E.js} +2 -2
  241. package/dist/cdn/{QVDUABX7.js → OLVN3BUK.js} +2 -2
  242. package/dist/cdn/{7JXHJ3TL.js → OS2R7DZG.js} +2 -2
  243. package/dist/cdn/{LPLIW3W4.js → OWSYDJWA.js} +2 -2
  244. package/dist/cdn/{K73RVWFQ.js → OXW67XUN.js} +2 -2
  245. package/dist/cdn/OY2ZL2MH.js +4 -0
  246. package/dist/cdn/{W3EZRLCH.js → P4SJ4TW3.js} +2 -2
  247. package/dist/cdn/{HRVWEYZD.js → PCXV5WCW.js} +2 -2
  248. package/dist/cdn/{OTY43NZY.js → PDD2INCO.js} +2 -2
  249. package/dist/cdn/{ZKTXJLE2.js → PDM2TVRE.js} +2 -2
  250. package/dist/cdn/{MBAMULPA.js → PHK7ECEK.js} +2 -2
  251. package/dist/cdn/{OJZCK5XA.js → PKW5U5JD.js} +2 -2
  252. package/dist/cdn/{MFQXVNXI.js → PMVAYDID.js} +2 -2
  253. package/dist/cdn/{SB2P3KLH.js → PTQNSUMQ.js} +2 -2
  254. package/dist/cdn/{KZGCFGXP.js → PV3NKFWO.js} +2 -2
  255. package/dist/cdn/{XXDPF2HK.js → Q4ILVP7M.js} +2 -2
  256. package/dist/cdn/{U3NL7FT6.js → Q5JBWZWR.js} +2 -2
  257. package/dist/cdn/{Q5KPFPGD.js → Q63YUEPK.js} +2 -2
  258. package/dist/cdn/{XJ62F4NL.js → QAQPOJT3.js} +1 -1
  259. package/dist/cdn/{22IZH5VL.js → QDOOFKZT.js} +2 -2
  260. package/dist/cdn/{CB4NXNE5.js → QHDUDNQB.js} +2 -2
  261. package/dist/cdn/{MGLOK6G6.js → QK7H3QEZ.js} +1 -1
  262. package/dist/cdn/{3QPRWMXZ.js → QLGVQPSP.js} +2 -2
  263. package/dist/cdn/{VZLWG2KJ.js → QT7SOK6K.js} +2 -2
  264. package/dist/cdn/{25LMHUAF.js → QTPWQXFC.js} +2 -2
  265. package/dist/cdn/{IQVYADON.js → QVZEI2LS.js} +2 -2
  266. package/dist/cdn/{SIE6CDNG.js → QWFYFDGT.js} +1 -1
  267. package/dist/cdn/{ILI2S73E.js → R3MDKVZV.js} +2 -2
  268. package/dist/cdn/{H5BCC2WI.js → R5IZJTD3.js} +2 -2
  269. package/dist/cdn/{C2CDVQOR.js → R5SUWIAX.js} +2 -2
  270. package/dist/cdn/{FUHNVQ4J.js → RHR64B37.js} +2 -2
  271. package/dist/cdn/{LRQNOIGC.js → RQXTVQCL.js} +2 -2
  272. package/dist/cdn/{S6Q334DO.js → RR4VEAAE.js} +2 -2
  273. package/dist/cdn/{FTPJQUXV.js → RWC6IC3I.js} +2 -2
  274. package/dist/cdn/{HKOPWYUS.js → RY4AM746.js} +2 -2
  275. package/dist/cdn/{2MVXKE3V.js → S6NACDB2.js} +2 -2
  276. package/dist/cdn/{KXTFN2PN.js → SPZK2YXW.js} +2 -2
  277. package/dist/cdn/{FXHXJ4QL.js → SS3YAHMD.js} +2 -2
  278. package/dist/cdn/{CP4FAI42.js → T3RNILJN.js} +2 -2
  279. package/dist/cdn/{IW3SAA7O.js → T5OCPOMY.js} +2 -2
  280. package/dist/cdn/{EAXDRT25.js → T5SK6ZJW.js} +2 -2
  281. package/dist/cdn/{OBBAK6WE.js → TB2NFORT.js} +2 -2
  282. package/dist/cdn/{LJMZ6FUS.js → TCJAIPWL.js} +2 -2
  283. package/dist/cdn/{IRGSMHZ2.js → TCORLZCI.js} +2 -2
  284. package/dist/cdn/{WMIGKGLJ.js → TFT2UUZJ.js} +2 -2
  285. package/dist/cdn/{F4N67DYP.js → TJYHQJCY.js} +2 -2
  286. package/dist/cdn/{MXVQWNSO.js → TMEKDW2G.js} +2 -2
  287. package/dist/cdn/{OFNTBPZ5.js → TMNFYXWD.js} +2 -2
  288. package/dist/cdn/{IW5XHI5X.js → TMRDI3WC.js} +2 -2
  289. package/dist/cdn/{AG5QKP4L.js → TTAAIUU3.js} +2 -2
  290. package/dist/cdn/{7YHRTXQH.js → U2MIR3HL.js} +2 -2
  291. package/dist/cdn/{H3FZKBQZ.js → U3QZIS3C.js} +2 -2
  292. package/dist/cdn/{JZ5M3XFU.js → U3VTY66Y.js} +2 -2
  293. package/dist/cdn/{X6Y2CG22.js → U5XUYD32.js} +2 -2
  294. package/dist/cdn/{AJCN5TZU.js → UBTE3LJB.js} +2 -2
  295. package/dist/cdn/{ZHHNANTF.js → UGI2HCBX.js} +2 -2
  296. package/dist/cdn/{JNLG6F4W.js → ULELHCUW.js} +1 -1
  297. package/dist/cdn/{BH4WHSTL.js → ULHGH3CX.js} +2 -2
  298. package/dist/cdn/{EFN7NAAY.js → UNCK4FW5.js} +2 -2
  299. package/dist/cdn/{7A3C36WQ.js → UQGQFHTP.js} +2 -2
  300. package/dist/cdn/{YNNECUYO.js → URMO7GLW.js} +2 -2
  301. package/dist/cdn/{QAPZIGZM.js → USO4FEJS.js} +2 -2
  302. package/dist/cdn/{MFYT2IIR.js → UVMWA227.js} +2 -2
  303. package/dist/cdn/{ZYJNP3QC.js → UXPF53LA.js} +2 -2
  304. package/dist/cdn/{JPZHUXDB.js → UXZC7IGT.js} +2 -2
  305. package/dist/cdn/{K53JJQXH.js → V2II4COO.js} +2 -2
  306. package/dist/cdn/{R474NPB2.js → V623WVLR.js} +2 -2
  307. package/dist/cdn/{I4ZETC2J.js → V74LH3IK.js} +2 -2
  308. package/dist/cdn/{WRPJ4GDB.js → V7H6MEIS.js} +2 -2
  309. package/dist/cdn/{X7BDUXYU.js → VFRHV2HY.js} +2 -2
  310. package/dist/cdn/{JGE7H6EF.js → VLRXMBNG.js} +2 -2
  311. package/dist/cdn/{DSVAIF4Y.js → VPFAWHJS.js} +1 -1
  312. package/dist/cdn/W45EDCYZ.js +18 -0
  313. package/dist/cdn/{YQNHBPTC.js → WBO3VKCK.js} +2 -2
  314. package/dist/cdn/{7G4N7AYZ.js → WDPM64EG.js} +2 -2
  315. package/dist/cdn/{KQ3W6U2O.js → WJKAHLIO.js} +2 -2
  316. package/dist/cdn/{A3HZAJRG.js → WKQNA7HE.js} +2 -2
  317. package/dist/cdn/{XK5FC7XQ.js → WNLGN4CE.js} +2 -2
  318. package/dist/cdn/{2YHT764G.js → WTU7JILZ.js} +2 -2
  319. package/dist/cdn/{KSKCA47T.js → WV4ZCFFT.js} +2 -2
  320. package/dist/cdn/{WWT2VJFI.js → XFW3K5OF.js} +2 -2
  321. package/dist/cdn/{TPMHGYOD.js → XFZNGT7C.js} +2 -2
  322. package/dist/cdn/{SZAH6PQP.js → XINUYSXZ.js} +2 -2
  323. package/dist/cdn/{UMBJBGPS.js → XLHINQDA.js} +2 -2
  324. package/dist/cdn/{6VLVWAKZ.js → XQYYFNOC.js} +1 -1
  325. package/dist/cdn/{6HBBCCOM.js → XSERGQVD.js} +2 -2
  326. package/dist/cdn/{OADOYFV7.js → XUXRXNUV.js} +2 -2
  327. package/dist/cdn/{JFZABKV5.js → XWYN5XJT.js} +2 -2
  328. package/dist/cdn/{3OEDIKQ5.js → XYIEX7QB.js} +2 -2
  329. package/dist/cdn/{4LOY373E.js → Y2YYJ66T.js} +2 -2
  330. package/dist/cdn/{23EIVSUJ.js → Y7U5BQY2.js} +2 -2
  331. package/dist/cdn/{WAQDYC7I.js → YFJ3R7UO.js} +2 -2
  332. package/dist/cdn/{TCPVLIO2.js → YGKTKWJH.js} +2 -2
  333. package/dist/cdn/{67I4BHMX.js → YJUZZNM3.js} +2 -2
  334. package/dist/cdn/{26SSUBUE.js → YOCF54TS.js} +2 -2
  335. package/dist/cdn/{DW2DU6WF.js → YODKEVX7.js} +2 -2
  336. package/dist/cdn/{4NAXXYIA.js → Z7QQNFJ7.js} +2 -2
  337. package/dist/cdn/{OXUROQRO.js → ZG7Z2ZV5.js} +1 -1
  338. package/dist/cdn/{IFOFHB4W.js → ZH5IG5IH.js} +2 -2
  339. package/dist/cdn/{TTADVCT4.js → ZJFAIID3.js} +2 -2
  340. package/dist/cdn/{E45HXI25.js → ZN7CNQRT.js} +2 -2
  341. package/dist/cdn/{U4JDQFDS.js → ZSPXSDH4.js} +2 -2
  342. package/dist/cdn/{H6GTBKYE.js → ZTCFEMKZ.js} +2 -2
  343. package/dist/cdn/{HTK6SD7P.js → ZYEOJZ6Z.js} +2 -2
  344. package/dist/cdn/index.js +2 -2
  345. package/dist/chunks/Auth.js +1 -1
  346. package/dist/chunks/CardsFetcher.js +1 -1
  347. package/dist/chunks/appConfig.js +1 -1
  348. package/dist/chunks/cardFetchingUtils.js +1 -1
  349. package/dist/chunks/cardsHelpers.js +1 -1
  350. package/dist/chunks/common.js +1 -1
  351. package/dist/chunks/deployAppContexts.js +1 -1
  352. package/dist/chunks/downloadUtils.js +1 -1
  353. package/dist/chunks/getItemIcon.js +1 -1
  354. package/dist/chunks/helpers.js +1 -1
  355. package/dist/chunks/interfaces.js +1 -1
  356. package/dist/chunks/loadModules.js +1 -1
  357. package/dist/chunks/mapViewUtils.js +1 -1
  358. package/dist/chunks/pciUtils.js +1 -1
  359. package/dist/chunks/popupUtils.js +1 -1
  360. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  361. package/dist/chunks/privilegeUtils.js +1 -1
  362. package/dist/chunks/publicNotificationContext.js +1 -1
  363. package/dist/chunks/queryUtils.js +1 -1
  364. package/dist/chunks/runtime.js +1 -1
  365. package/dist/chunks/solution-store.js +1 -1
  366. package/dist/chunks/templates.js +1 -1
  367. package/dist/chunks/useT9n.js +1 -1
  368. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  369. package/dist/components/basemap-gallery/customElement.js +1 -1
  370. package/dist/components/buffer-tools/customElement.js +1 -1
  371. package/dist/components/card-manager/customElement.js +1 -1
  372. package/dist/components/consent-manager/customElement.js +1 -1
  373. package/dist/components/create-feature/customElement.js +1 -1
  374. package/dist/components/create-related-feature/customElement.js +1 -1
  375. package/dist/components/crowdsource-manager/customElement.js +1 -1
  376. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  377. package/dist/components/deduct-calculator/customElement.js +1 -1
  378. package/dist/components/delete-button/customElement.js +1 -1
  379. package/dist/components/delete-dialog/customElement.js +1 -1
  380. package/dist/components/edit-card/customElement.js +1 -1
  381. package/dist/components/feature-details/customElement.js +1 -1
  382. package/dist/components/feature-list/customElement.js +1 -1
  383. package/dist/components/field-selection/customElement.js +1 -1
  384. package/dist/components/floor-filter/customElement.js +1 -1
  385. package/dist/components/info-card/customElement.js +1 -1
  386. package/dist/components/json-editor/customElement.js +1 -1
  387. package/dist/components/layer-list/customElement.js +1 -1
  388. package/dist/components/layer-table/customElement.js +1 -1
  389. package/dist/components/map-card/customElement.js +1 -1
  390. package/dist/components/map-draw-tools/customElement.js +1 -1
  391. package/dist/components/map-fullscreen/customElement.js +1 -1
  392. package/dist/components/map-layer-picker/customElement.js +1 -1
  393. package/dist/components/map-legend/customElement.js +1 -1
  394. package/dist/components/map-picker/customElement.js +1 -1
  395. package/dist/components/map-search/customElement.js +1 -1
  396. package/dist/components/map-select-tools/customElement.js +1 -1
  397. package/dist/components/map-tools/customElement.js +1 -1
  398. package/dist/components/pci-calculator/customElement.js +1 -1
  399. package/dist/components/pdf-download/customElement.js +1 -1
  400. package/dist/components/public-notification/customElement.js +1 -1
  401. package/dist/components/refine-selection/customElement.js +1 -1
  402. package/dist/components/selection-tool/customElement.js +1 -1
  403. package/dist/components/solution-article-card/customElement.js +1 -1
  404. package/dist/components/solution-configuration/customElement.js +1 -1
  405. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  406. package/dist/components/solution-configure-titles/customElement.js +1 -1
  407. package/dist/components/solution-contents/customElement.js +1 -1
  408. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  409. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  410. package/dist/components/solution-deployed-card/customElement.js +1 -1
  411. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  412. package/dist/components/solution-details-card/customElement.js +1 -1
  413. package/dist/components/solution-details-panel/customElement.js +1 -1
  414. package/dist/components/solution-item/customElement.js +1 -1
  415. package/dist/components/solution-item-accordion/customElement.js +1 -1
  416. package/dist/components/solution-item-details/customElement.js +1 -1
  417. package/dist/components/solution-item-diagram/customElement.js +1 -1
  418. package/dist/components/solution-item-icon/customElement.js +1 -1
  419. package/dist/components/solution-item-sharing/customElement.js +1 -1
  420. package/dist/components/solution-organization-variables/customElement.js +1 -1
  421. package/dist/components/solution-resource-item/customElement.js +1 -1
  422. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  423. package/dist/components/solution-social-share/customElement.js +1 -1
  424. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  425. package/dist/components/solution-template-data/customElement.js +1 -1
  426. package/dist/components/solution-variables/customElement.js +1 -1
  427. package/dist/components/solutions-all-panel/customElement.js +1 -1
  428. package/dist/components/solutions-all-shell/customElement.js +1 -1
  429. package/dist/components/solutions-article-panel/customElement.js +1 -1
  430. package/dist/components/solutions-articles/customElement.js +1 -1
  431. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  432. package/dist/components/solutions-deploy-app/customElement.js +8 -7
  433. package/dist/components/solutions-deploy-app-nav/customElement.js +8 -8
  434. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  435. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  436. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  437. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  438. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  439. package/dist/components/spatial-ref/customElement.js +1 -1
  440. package/dist/components/store-manager/customElement.js +1 -1
  441. package/dist/docs/api.json +1 -1
  442. package/dist/docs/docs.json +1 -1
  443. package/dist/docs/web-types.json +1 -1
  444. package/dist/index.js +1 -1
  445. package/dist/loader.js +1 -1
  446. package/package.json +1 -1
  447. package/dist/cdn/35OPALGJ.js +0 -4
  448. package/dist/cdn/4XORBQ43.js +0 -4
  449. package/dist/cdn/BVUB2SWQ.js +0 -4
  450. package/dist/cdn/D2RAZUGA.js +0 -18
  451. package/dist/cdn/F5427EYW.js +0 -4
  452. package/dist/cdn/FGB6FI4J.js +0 -4
  453. package/dist/cdn/MPAC6ACP.js +0 -4
  454. package/dist/cdn/UQ33VZUS.js +0 -4
  455. package/dist/cdn/WPRGEX3Q.js +0 -4
  456. package/dist/cdn/X6PEX6MA.js +0 -18
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
3
+ v1.2.0-next.2 */
4
4
  function V(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function F(t){return Object.keys(t).some(e=>{let r=t[e];if(!r)return!1;switch(r&&r.toParam&&(r=r.toParam()),r.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(t){let e={};return Object.keys(t).forEach(r=>{var n,o;let s=t[r];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,c;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;c=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":c=JSON.stringify(s);break;case"Date":c=s.valueOf();break;case"Function":c=null;break;case"Boolean":c=s+"";break;default:c=s;break}(c||c===0||typeof c=="string"||Array.isArray(c))&&(e[r]=c)}),e}function Q(t,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(r=>Q(t,r)).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(e)}function T(t){let e=M(t);return Object.keys(e).map(r=>Q(r,e[r])).join("&")}var X=globalThis.FormData,Te=globalThis.File,Se=globalThis.Blob;function Y(t,e){let r=F(t)||e,n=M(t);if(r){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(t)}var k=class extends Error{constructor(e,r,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",r=r||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=r==="UNKNOWN_ERROR_CODE"?e:`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var ge={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},L="ARCGIS_REST_JS_NO_CORS";globalThis[L]||(globalThis[L]=Object.assign({},ge));var w=globalThis[L];function B(t){let e=new URL(t);t=e.origin+e.pathname,e.search.includes("f=json")&&(t+="?f=json");let r=e.origin;return w.pendingNoCorsRequests[r]?w.pendingNoCorsRequests[r]:(w.pendingNoCorsRequests[r]=fetch(t,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r),w.crossOriginNoCorsDomains[r.toLowerCase()]=Date.now(),delete w.pendingNoCorsRequests[r]}).catch(n=>(delete w.pendingNoCorsRequests[r],Promise.reject(new Error(`no-cors request to ${r} failed`)))),w.pendingNoCorsRequests[r])}function Z(t){t.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?z(e):(z("http://"+e),z("https://"+e))})}function z(t){let r=new URL(t).origin;w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r)}function J(t){let e=!1;if(w.noCorsDomains.length){let r=new URL(t).origin.toLowerCase();e=w.noCorsDomains.some(n=>r.includes(n))}return e}function ee(t){let e=!1;if(J(t)){let r=new URL(t).origin.toLowerCase(),n=w.crossOriginNoCorsDomains[r]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(t){console&&console.warn&&console.warn.apply(console,[t])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(t,e){var r;if(!e&&!window||!t)return!1;{e=e||window;let n=(r=e.location)===null||r===void 0?void 0:r.origin;return t.startsWith(n)}}var H="@esri/arcgis-rest-js";function we(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",r="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,r,n,o,s),this.name="ArcGISAuthError",this.message=r==="AUTHENTICATION_ERROR_CODE"?e:`${r}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,r=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(c=>{let u=Object.assign(Object.assign({},this.options),{authentication:c});return oe(this.url,u)}).then(c=>{s(c)}).catch(c=>{c.name==="ArcGISAuthError"&&n<r?o(s,i):c.name===this.name&&c.message===this.message&&n>=r?i(this):i(c)})};return new Promise((s,i)=>{o(s,i)})}};function Ee(t,e,r,n,o){if(t.code>=400){let{message:s,code:i}=t;throw new k(s,i,t,e,n)}if(t.error){let{message:s,code:i,messageCode:c}=t.error,u=c||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,t,e,n):new k(s,u,t,e,n)}if(t.status==="failed"||t.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(t.statusMessage).message,i=JSON.parse(t.statusMessage).code}catch{s=t.statusMessage||t.message}throw new k(s,i,t,e,n)}return t}function oe(t,e){let r=we(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},r),e),{params:Object.assign(Object.assign({},r.params),e.params),headers:Object.assign(Object.assign({},r.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),c=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};J(t)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let x;if(typeof n.authentication=="string"){let a=n.authentication;x={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(a)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AAPT")&&!n.authentication.startsWith("AATK")&&!n.authentication.startsWith("AAST")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else x=n.authentication;let p=t,d=!1;typeof window<"u"&&(d=ne(t));let R=!d&&ee(t);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(t)),S.then(()=>x?x.getToken(t).catch(a=>(a.url=t,a.options=n,c=a,Promise.resolve(""))):Promise.resolve("")).then(a=>{a.length&&(i.token=a),x&&x.getDomainCredentials&&(u.credentials=x.getDomainCredentials(t));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?t:t+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",a.length&&n.hideToken&&(i.token=a,delete l["X-Esri-Authorization"])):t=b}let m=new RegExp("/items/.+/updateResources").test(t);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=H),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(t,u):re().then(({fetch:h})=>h(t,u))}).then(a=>{if(!a.ok)return a.json().then(l=>{let{status:m,statusText:h}=a,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,t,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=a;throw new k(h,`HTTP ${m}`,a,t,n)});if(s)return a;switch(i.f){case"json":return a.json();case"geojson":return a.json();case"html":return a.text();case"text":return a.text();default:return a.blob()}}).then(a=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=Ee(a,p,i,n,c);if(a&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(t)&&Array.isArray(a.authorizedCrossOriginNoCorsDomains)&&Z(a.authorizedCrossOriginNoCorsDomains),c){let m=t.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},c=null}return l}else return a})}function f(t,e={params:{f:"json"}}){let{request:r}=e,n=V(e,["request"]);return r?r(t,n):oe(t,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function xe(t){let[e,r]=t.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(r)}}function se(t){return!t||t.length<=0?{}:t.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,r)=>{let{key:n,value:o}=xe(r);return e[n]=o,e},{})}var ie=300*1e3;function C(t,e){let r=e;return r.rawResponse=!1,f(t,r).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function E(t){return typeof t!="string"||(t=t.trim(),t[t.length-1]==="/"&&(t=t.slice(0,-1))),t}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(t){return q.test(t)}function _e(t){if(!q.test(t))return t;switch(K(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function K(t){if(!q.test(t))return null;let r=t.match(q)[1].split(".").pop();return r.includes("dev")?"dev":r.includes("qa")?"qa":"production"}function ce(t,e){let r=E(_e(e)).replace(/https?:\/\//,""),n=E(t).replace(/https?:\/\//,"");return new RegExp(n,"i").test(r)}function ue(t,e){let r=ae(t),n=ae(e),o=K(t),s=K(e);return!!(r&&n&&o===s)}function le(t,e,r="https://www.arcgis.com/sharing/rest"){let n=`${r}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:t}})}function ot(t,e,r){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},r),t);return o.params=e.reduce((s,i)=>((t[i]||typeof t[i]=="boolean"||typeof t[i]=="number"&&t[i]===0)&&(s[i]=t[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var _;(function(t){t.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",t.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",t.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",t.NOT_FEDERATED="NOT_FEDERATED",t.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(_||(_={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",r=_.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let r=new.target.prototype;Object.setPrototypeOf(this,r),this.name="ArcGISAccessDeniedError"}};var he;(function(t){t.ArcGISRequestError="ArcGISRequestError",t.ArcGISAuthError="ArcGISAuthError",t.ArcGISAccessDeniedError="ArcGISAccessDeniedError",t.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var j=class{constructor(e){this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let r=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(r,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var W;(function(t){t.Success="Succeeded",t.Failed="Failed",t.Waiting="Waiting",t.Cancelled="Cancelled",t.Cancelling="Cancelling",t.New="New",t.Executing="Executing",t.Submitted="Submitted",t.Failure="Failure",t.TimedOut="TimedOut",t.Error="Error",t.Status="Etatus",t.Unknown="Unknown"})(W||(W={}));function fe(t){let e=`${E(t.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,r=t.token,n=t.clientId;delete t.portal,delete t.clientId,delete t.token;let o=Object.assign(Object.assign({},t),{httpMethod:"POST",params:{client_id:n,auth_token:r}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(t,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(t,e=window){if(!e&&window&&(e=window),t&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(t);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function G(t){!t&&window&&(t=window);let e=t.crypto.getRandomValues(new Uint8Array(32));return $(e)}function de(t,e){return typeof t=="string"?t:typeof t=="object"?t.id:G(e)}function me(t,e,r){return JSON.stringify(typeof e=="string"||!e?{id:t,originalUrl:r}:Object.assign({id:t},e))}function ye(t){return typeof t.userId=="string"||typeof t.expires=="number"}var O=class t extends j{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.state=e.state,this.federatedServers={},this.trustedDomains=[],e.server){let r=this.getServerRootUrl(e.server);this.federatedServers[r]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,r){!r&&window&&(r=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:c,popup:u,popupWindowFeatures:x,locale:p,params:d,style:R,pkce:S,state:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=de(a,r),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;r.localStorage.setItem(m,l);let h=`${E(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:c,state:me(l,a,r.location.href),locale:p,style:R};o!=="arcgis"&&(h=`${E(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=G(r),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;r.localStorage.setItem(U,v),D=pe(v,r).then(function(g){b.code_challenge_method=g?"S256":"plain",b.code_challenge=g||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{r.addEventListener(`arcgis-rest-js-popup-auth-${s}`,g=>{if(g.detail.error==="access_denied"){let P=new N;return U(P),P}if(g.detail.errorMessage){let P=new A(g.detail.errorMessage,g.detail.error);return U(P),P}v(new t({clientId:s,portal:n,ssl:g.detail.ssl,token:g.detail.token,tokenExpires:g.detail.expires,username:g.detail.username,refreshToken:g.detail.refreshToken,refreshTokenExpires:g.detail.refreshTokenExpires,redirectUri:c,state:g.detail.state}))},{once:!0}),r.open(h,"oauth-window",x),r.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});r.location.href=h})}static completeOAuth2(e,r){!r&&window&&(r=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,x=r.localStorage.getItem(u),p=se(i?r.location.search.replace(/^\?/,""):r.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(a,l,m){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:a}})),r.close();return}return m&&r.history.replaceState(r.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(a,l))}function S(a,l){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign(Object.assign({},a),{state:l})})),r.close();return}return l.originalUrl&&r.history.replaceState(r.history.state,"",l.originalUrl),new t({clientId:o,portal:n,ssl:a.ssl,token:a.token,tokenExpires:a.expires,username:a.username,refreshToken:a.refreshToken,refreshTokenExpires:a.refreshTokenExpires,redirectUri:c||location.href.replace(location.search,""),state:l})}if(!x||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==x)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let a=p.error,l=p.error_description||"Unknown error";return R(l,a,d.originalUrl)}if(i&&p.code){let a=E(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=r.localStorage.getItem(l);return r.localStorage.removeItem(l),C(a,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:c||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,r){!r&&window&&(r=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===r.parent&&i.data)try{return o(t.parentMessageHandler(i))}catch(c){return s(c)}},r.addEventListener("message",n,!1),r.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(r.removeEventListener("message",n,!1),o))}static authorize(e,r){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:c}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};c&&(u.state=c);let x=`${n}/oauth2/authorize?${T(u)}`;r.writeHead(301,{Location:x}),r.end()}static exchangeAuthorizationCode(e,r){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:r}}).then(i=>new t({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let r=JSON.parse(e);return new t({clientId:r.clientId,refreshToken:r.refreshToken,refreshTokenExpires:r.refreshTokenExpires?new Date(r.refreshTokenExpires):void 0,username:r.username,password:r.password,token:r.token,tokenExpires:r.tokenExpires?new Date(r.tokenExpires):void 0,portal:r.portal,ssl:r.ssl,tokenDuration:r.tokenDuration,redirectUri:r.redirectUri,server:r.server})}static fromCredential(e,r){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return r.hasServer?new t({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new t({portal:E(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let r=e.data.credential;return ye(r)?t.fromCredential(r,{hasPortal:!0,hasServer:!1,server:r.server}):new t(r)}if(e.data.type==="arcgis:auth:error"){let r=new Error(e.data.error.message);throw r.name=e.data.error.name,r}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let r=new t(e);return r.getUser().then(()=>r)}static signIn(e){let r=new t(e);return r.getUser().then(()=>r)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let r=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(r,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,r){return ue(this.portal,e)?this.getFreshToken(r):new RegExp(this.portal,"i").test(e)?this.getFreshToken(r):this.getTokenForServer(e,r)}validateAppAccess(e){return this.getToken(this.portal).then(r=>le(r,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,r){!r&&window&&(r=window),this._hostHandler=this.createPostMessageHandler(e),r.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",_.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[r]=E(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=r.match(/(https?:\/\/)(.+)/),[i,...c]=s.split("/");return`${o}${i.toLowerCase()}/${c.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(r=>e.startsWith(r.toLowerCase()))?"include":"same-origin")}signOut(){return t.destroy(this)}createPostMessageHandler(e){return r=>{let n=e.indexOf(r.origin)>-1,o=r.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let c=this.toCredential();c.server=c.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:c}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};r.source.postMessage(i,r.origin)}}}getTokenForServer(e,r){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,r);throw new y(`${e} is not federated with ${this.portal}.`,_.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,_.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,r){return f(e,{params:{token:this.token,serverUrl:r,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,_.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let r={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:H};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:r},e))):f(`${this.portal}/generateToken`,Object.assign({params:r},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,_.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,_.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,r){return this._token=e,this._tokenExpires=r,this}exchangeRefreshToken(e){let r=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,r).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(r=>!r.startsWith("http://")).map(r=>r.startsWith("https://")?r:`https://${r}`)),this))}};function I(t){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(t)}I.beginOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...t)};I.completeOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),t.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...t)};I.fromParent=function(...t){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...t)};I.authorize=function(...t){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...t)};I.exchangeAuthorizationCode=function(...t){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...t)};I.fromCredential=function(...t){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...t)};I.deserialize=function(...t){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...t)};export{Y as a,te as b,A as c,f as d,ot as e,E as f,O as g};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as e}from"./RQETMS6H.js";var s=["hub:survey:edit","hub:survey:settings"],a=Object.assign(Object.assign({},e),{properties:Object.assign({displayMap:{type:"boolean",enum:[!0,!1],default:!1},hasMapQuestion:{type:"boolean",enum:[!0,!1],default:!1}},e.properties)});export{s as a,a as b};
3
+ v1.2.0-next.2 */
4
+ import{a as e}from"./FJYGYKU7.js";var s=["hub:survey:edit","hub:survey:settings"],a=Object.assign(Object.assign({},e),{properties:Object.assign({displayMap:{type:"boolean",enum:[!0,!1],default:!1},hasMapQuestion:{type:"boolean",enum:[!0,!1],default:!1}},e.properties)});export{s as a,a as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import"./7PM6K4BQ.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
3
+ v1.2.0-next.2 */
4
+ import"./MGON4SLN.js";var e="Sie verf\xFCgen nicht \xFCber gen\xFCgend Credits, um diesen Vorgang auszuf\xFChren. Wenden Sie sich an den ArcGIS-Systemadministrator.",r="Dieses Werkzeug wurde \xFCber ein Notebook ver\xF6ffentlicht. Zugriff auf ArcGIS\xA0Notebooks ist in Ihrer Organisation blockiert. Wenden Sie sich an den Administrator, um die Einstellung anzupassen.",n="${ dataPath } darf nicht ${ additionalProperty } aufweisen.",i="${ dataPath } muss mit einem der folgenden Schemas \xFCbereinstimmen: ${ schemaOptions }.",a="Speichern Sie die Karte erneut.",t="Credit-Sch\xE4tzung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und lassen Sie die Credits erneut sch\xE4tzen.",s="Bei Ausf\xFChrung der Analyse ist ein Fehler aufgetreten.",l="${ dataPath } muss einem der folgenden zul\xE4ssigen Werte entsprechen: ${ allowedValues }.",o="Fehler beim Speichern des Analyseverlaufs",d="Der Verlaufsspeicher ist voll. Entfernen Sie einige Elemente aus dem Analyseverlauf, und speichern Sie erneut.",h="Der Service-Name enth\xE4lt mindestens ein ung\xFCltiges Zeichen.",u="Das Speichern des tempor\xE4ren Layers als gehosteten Feature-Layer wurde nicht abgeschlossen.",c="Fehler beim Abrufen der Schl\xFCsseleigenschaften.",m="Fehler beim Laden des Layers.",g="Layer ist nicht verf\xFCgbar.",f="${ dataPath } darf nicht mehr als ${ limit } Elemente enthalten.",S="Fehler beim Speichern des Modells. Versuchen Sie noch einmal zu speichern.",b="${ dataPath } darf nicht weniger als ${ limit } Elemente enthalten.",y="${ dataPath } darf nicht k\xFCrzer als ${ limit } Zeichen sein.",E="Das Modellelement konnte nicht geladen werden. Stellen Sie sicher, dass das Modell vorhanden ist und Ihnen entsprechende Zugriffsberechtigungen gew\xE4hrt wurden.",p="Fehler beim Abschlie\xDFen der Anforderung.",F="Sie sind nicht berechtigt, dieses Werkzeug auszuf\xFChren. <calcite-link target='_blank' href='${ docLink }'>Weitere Informationen</calcite-link>",v="Fehler beim Anmelden beim Portal.",P="Fehler beim Lesen der Eingabedaten.",k="${ dataPath } fehlt eine Eigenschaft mit dem Namen ${ missingProperty }.",L="Ein Ergebnis-Layer mit diesem Namen ist bereits vorhanden. Ergebnis-Layer m\xFCssen innerhalb der Organisation \xFCber einen eindeutigen Namen verf\xFCgen. Verwenden Sie einen anderen Namen.",I="Der Ausgabename enth\xE4lt mindestens ein ung\xFCltiges Zeichen. <a href='${docLink}' target='_blank'>Mehr erfahren</a>",$="Beim Ver\xF6ffentlichen des tempor\xE4ren Layers als gehosteten Layer ist ein Fehler aufgetreten, da mindestens ein Feld ung\xFCltig ist. F\xFChren Sie das Werkzeug erneut aus, um einen Layer mit g\xFCltigen Feldern zu erstellen.",A="Auftrags\xFCbermittlung fehlgeschlagen. F\xFChren Sie einen Bildlauf nach unten durch, korrigieren Sie die Fehler, und f\xFChren Sie die Analyse erneut aus.",N="${ dataPath } muss mindestens ein Zeichen enthalten, bei dem es sich nicht um ein Leerstellenzeichen handelt.",w={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:n,anyOfValues:i,cannotWriteToItemResource:a,creditEstimationError:t,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:h,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:c,layerLoadFailure:m,layerUnavailable:g,maxItems:f,mbFailedToSave:S,minItems:b,minLength:y,modelNotFound:E,networkError:p,noPermissionToAccessTool:F,portalLoadError:v,queryFeaturesError:P,requiredProperty:k,serviceNameExistsError:L,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:$,toolValidationError:A,whiteSpacePattern:N};export{e as InsufficientCreditsError,r as accessBlocked,n as additionalProperty,i as anyOfValues,a as cannotWriteToItemResource,t as creditEstimationError,w as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,h as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,c as keyPropertiesError,m as layerLoadFailure,g as layerUnavailable,f as maxItems,S as mbFailedToSave,b as minItems,y as minLength,E as modelNotFound,p as networkError,F as noPermissionToAccessTool,v as portalLoadError,P as queryFeaturesError,k as requiredProperty,L as serviceNameExistsError,I as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,A as toolValidationError,N as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
3
+ v1.2.0-next.2 */
4
4
  var n;(function(i){i.InPerson="inPerson",i.Online="online",i.Both="both"})(n||(n={}));var o;(function(i){i.Unlimited="unlimited",i.Fixed="fixed"})(o||(o={}));export{n as a,o as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import"./7PM6K4BQ.js";var e="Du har inte tillr\xE4ckligt m\xE5nga krediter f\xF6r att utf\xF6ra den h\xE4r \xE5tg\xE4rden. Kontakta din ArcGIS-systemadministrat\xF6r f\xF6r att f\xE5 hj\xE4lp.",a="Det h\xE4r verktyget har publicerats fr\xE5n en notebook. \xC5tkomst till ArcGIS Notebooks \xE4r blockerad f\xF6r din organisation. Kontakta din administrat\xF6r f\xF6r att justera inst\xE4llningen.",t="${ dataPath } f\xE5r inte inneh\xE5lla ${ additionalProperty }.",r="${ dataPath } m\xE5ste matcha schemat f\xF6r n\xE5gon av dessa: ${ schemaOptions }.",i="F\xF6rs\xF6k att spara kartan igen.",n="Kreditber\xE4kningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och ber\xE4kna krediterna igen.",s="Ett fel uppstod n\xE4r analysen k\xF6rdes.",l="${ dataPath } m\xE5ste vara lika med ett av dessa till\xE5tna v\xE4rden: ${ allowedValues }.",o="Det gick inte att spara analyshistoriken",d="Historiklagringen \xE4r full. Ta bort n\xE5gra objekt fr\xE5n analyshistoriken och f\xF6rs\xF6k att spara igen.",g="Tj\xE4nstnamnet inneh\xE5ller ett eller flera ogiltiga tecken.",m="Lagring av det tillf\xE4lliga lagret som ett driftat geoobjektlager slutf\xF6rdes inte.",k="Det gick inte att h\xE4mta nyckelegenskaper.",c="Det gick inte att l\xE4sa in lagret.",f="Lagret \xE4r inte tillg\xE4ngligt.",h="${ dataPath } f\xE5r inte ha fler \xE4n ${ limit } objekt.",u="Ett fel uppstod n\xE4r modellen sparades. F\xF6rs\xF6k att spara igen.",p="${ dataPath } f\xE5r inte ha f\xE4rre \xE4n ${ limit } objekt.",y="${ dataPath } f\xE5r inte vara kortare \xE4n ${ limit } tecken.",v="Kunde inte l\xE4sa in modellobjektet. Kontrollera att modellen finns och att \xE5tkomstbeh\xF6righet har beviljats.",b="Det gick inte att slutf\xF6ra f\xF6rfr\xE5gan.",E="Du saknar beh\xF6righet att k\xF6ra det h\xE4r verktyget. <calcite-link target='_blank' href='${ docLink }'>L\xE4s mer</calcite-link>",P="Det gick inte att logga in p\xE5 portalen.",S="Det gick inte att l\xE4sa indata.",$="${ dataPath } saknar egenskapen ${ missingProperty }.",F="Det finns redan ett resultatlager med det h\xE4r namnet. Resultatlager m\xE5ste ha unika namn i hela organisationen. Anv\xE4nd ett annat namn.",I="Utdatanamnet inneh\xE5ller ett eller flera ogiltiga tecken. <a href='${docLink}' target='_blank'>L\xE4s mer.</a>",L="Publicering av det tillf\xE4lliga lagret som ett driftat geoobjektlager misslyckades p\xE5 grund av ett eller flera ogiltiga f\xE4lt. K\xF6r verktyget igen f\xF6r att skapa ett lager med giltiga f\xE4lt.",T="Jobbinl\xE4mningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och k\xF6r analysen igen.",D="${ dataPath } m\xE5ste ha minst ett tecken som inte \xE4r ett blanksteg.",j={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:i,creditEstimationError:n,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:g,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:k,layerLoadFailure:c,layerUnavailable:f,maxItems:h,mbFailedToSave:u,minItems:p,minLength:y,modelNotFound:v,networkError:b,noPermissionToAccessTool:E,portalLoadError:P,queryFeaturesError:S,requiredProperty:$,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:T,whiteSpacePattern:D};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,i as cannotWriteToItemResource,n as creditEstimationError,j as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,g as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,k as keyPropertiesError,c as layerLoadFailure,f as layerUnavailable,h as maxItems,u as mbFailedToSave,p as minItems,y as minLength,v as modelNotFound,b as networkError,E as noPermissionToAccessTool,P as portalLoadError,S as queryFeaturesError,$ as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,T as toolValidationError,D as whiteSpacePattern};
3
+ v1.2.0-next.2 */
4
+ import"./MGON4SLN.js";var e="Du har inte tillr\xE4ckligt m\xE5nga krediter f\xF6r att utf\xF6ra den h\xE4r \xE5tg\xE4rden. Kontakta din ArcGIS-systemadministrat\xF6r f\xF6r att f\xE5 hj\xE4lp.",a="Det h\xE4r verktyget har publicerats fr\xE5n en notebook. \xC5tkomst till ArcGIS Notebooks \xE4r blockerad f\xF6r din organisation. Kontakta din administrat\xF6r f\xF6r att justera inst\xE4llningen.",t="${ dataPath } f\xE5r inte inneh\xE5lla ${ additionalProperty }.",r="${ dataPath } m\xE5ste matcha schemat f\xF6r n\xE5gon av dessa: ${ schemaOptions }.",i="F\xF6rs\xF6k att spara kartan igen.",n="Kreditber\xE4kningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och ber\xE4kna krediterna igen.",s="Ett fel uppstod n\xE4r analysen k\xF6rdes.",l="${ dataPath } m\xE5ste vara lika med ett av dessa till\xE5tna v\xE4rden: ${ allowedValues }.",o="Det gick inte att spara analyshistoriken",d="Historiklagringen \xE4r full. Ta bort n\xE5gra objekt fr\xE5n analyshistoriken och f\xF6rs\xF6k att spara igen.",g="Tj\xE4nstnamnet inneh\xE5ller ett eller flera ogiltiga tecken.",m="Lagring av det tillf\xE4lliga lagret som ett driftat geoobjektlager slutf\xF6rdes inte.",k="Det gick inte att h\xE4mta nyckelegenskaper.",c="Det gick inte att l\xE4sa in lagret.",f="Lagret \xE4r inte tillg\xE4ngligt.",h="${ dataPath } f\xE5r inte ha fler \xE4n ${ limit } objekt.",u="Ett fel uppstod n\xE4r modellen sparades. F\xF6rs\xF6k att spara igen.",p="${ dataPath } f\xE5r inte ha f\xE4rre \xE4n ${ limit } objekt.",y="${ dataPath } f\xE5r inte vara kortare \xE4n ${ limit } tecken.",v="Kunde inte l\xE4sa in modellobjektet. Kontrollera att modellen finns och att \xE5tkomstbeh\xF6righet har beviljats.",b="Det gick inte att slutf\xF6ra f\xF6rfr\xE5gan.",E="Du saknar beh\xF6righet att k\xF6ra det h\xE4r verktyget. <calcite-link target='_blank' href='${ docLink }'>L\xE4s mer</calcite-link>",P="Det gick inte att logga in p\xE5 portalen.",S="Det gick inte att l\xE4sa indata.",$="${ dataPath } saknar egenskapen ${ missingProperty }.",F="Det finns redan ett resultatlager med det h\xE4r namnet. Resultatlager m\xE5ste ha unika namn i hela organisationen. Anv\xE4nd ett annat namn.",I="Utdatanamnet inneh\xE5ller ett eller flera ogiltiga tecken. <a href='${docLink}' target='_blank'>L\xE4s mer.</a>",L="Publicering av det tillf\xE4lliga lagret som ett driftat geoobjektlager misslyckades p\xE5 grund av ett eller flera ogiltiga f\xE4lt. K\xF6r verktyget igen f\xF6r att skapa ett lager med giltiga f\xE4lt.",T="Jobbinl\xE4mningen misslyckades. Skrolla ner, \xE5tg\xE4rda felen och k\xF6r analysen igen.",D="${ dataPath } m\xE5ste ha minst ett tecken som inte \xE4r ett blanksteg.",j={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:i,creditEstimationError:n,defaultError:s,enumValues:l,failedToSaveHistory:o,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:g,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:k,layerLoadFailure:c,layerUnavailable:f,maxItems:h,mbFailedToSave:u,minItems:p,minLength:y,modelNotFound:v,networkError:b,noPermissionToAccessTool:E,portalLoadError:P,queryFeaturesError:S,requiredProperty:$,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:T,whiteSpacePattern:D};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,i as cannotWriteToItemResource,n as creditEstimationError,j as default,s as defaultError,l as enumValues,o as failedToSaveHistory,d as fullSessionStorage,g as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,k as keyPropertiesError,c as layerLoadFailure,f as layerUnavailable,h as maxItems,u as mbFailedToSave,p as minItems,y as minLength,v as modelNotFound,b as networkError,E as noPermissionToAccessTool,P as portalLoadError,S as queryFeaturesError,$ as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,T as toolValidationError,D as whiteSpacePattern};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as v}from"./6UNT5MUE.js";import{b as f}from"./PZCE22XQ.js";import{a as w,b as I,d as y}from"./XQSYZIRC.js";import"./SS34O6SJ.js";import"./XIAOC6XW.js";import{a as L}from"./T2S7EWB5.js";import"./QAPZIGZM.js";import"./BT7XOYF5.js";import{b as u}from"./GDQKBGVU.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./BXINC4TL.js";import"./7PM6K4BQ.js";var $=b`@layer{/** @license
3
+ v1.2.0-next.2 */
4
+ import{a as v}from"./HJCGCJHG.js";import{b as f}from"./24PILRZT.js";import{a as w,b as I,d as y}from"./OFMGQCKQ.js";import"./MQDP5X2Y.js";import"./M46DOI6W.js";import{a as L}from"./ECVB7DM6.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{b as u}from"./7LML2KAO.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./4XYYUSUA.js";import"./MGON4SLN.js";var $=b`@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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{k as a}from"./QVDUABX7.js";var n={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function d(t,p,o,e,l){var i;let r=(i=n[e])!==null&&i!==void 0?i:n.content,c=a(r,l),s;return e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${t}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}},[{labelKey:e==="group"?`${t}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:o,defaultImgUrl:c,maxWidth:727,maxHeight:484},s)}]}export{d as a};
3
+ v1.2.0-next.2 */
4
+ import{k as a}from"./OLVN3BUK.js";var n={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function d(t,p,o,e,l){var i;let r=(i=n[e])!==null&&i!==void 0?i:n.content,c=a(r,l),s;return e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${t}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}},[{labelKey:e==="group"?`${t}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:o,defaultImgUrl:c,maxWidth:727,maxHeight:484},s)}]}export{d 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as i}from"./5BGGKOSZ.js";var c=class e extends Error{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(r),this.operation=o,this.name="OperationError",this.rootCause=t,Object.setPrototypeOf(this,e.prototype),this.stack=i(t,"stack",new Error().stack)}};var p=class extends c{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(o,r,t),this.name="HubError",this.stack=i(t,"stack",new Error().stack)}};export{p as a};
3
+ v1.2.0-next.2 */
4
+ import{a as i}from"./GU3R45TN.js";var c=class e extends Error{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(r),this.operation=o,this.name="OperationError",this.rootCause=t,Object.setPrototypeOf(this,e.prototype),this.stack=i(t,"stack",new Error().stack)}};var p=class extends c{constructor(o,r,t){r=r||"UNKNOWN_ERROR",t=i(t,"rootCause",t),super(o,r,t),this.name="HubError",this.stack=i(t,"stack",new Error().stack)}};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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
3
+ v1.2.0-next.2 */
4
4
  function O(t){return t.indexOf("|")>-1&&(t=t.replace("|","::")),t}function S(t){return t[0]==="{"&&(t=t.substring(1,t.length-1)),/^(\{){0,1}[0-9a-fA-F]{8}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{4}[-]?[0-9a-fA-F]{12}(\}){0,1}$/gi.test(t)}var _="~",n=256,r="slug";function G(t,e="",o=0){let R=[r];return e&&R.push(e.toLowerCase()),R.push(t),R.join("|").substring(0,n-o).replace(/-+$/,"").replace(new RegExp(`^${r}\\|`),"")}function i(t){let e=`${r}|${t}|`;return n-e.length}var c=(t,e)=>`${t.split("|").pop()}${_}${e}`;export{S as a,O as b,r as c,G as d,i as e,c as f};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{c as m}from"./6O7OK3WU.js";import{b as g}from"./PZCE22XQ.js";import{a as u}from"./T2S7EWB5.js";import"./QAPZIGZM.js";import"./BT7XOYF5.js";import{b as p}from"./GDQKBGVU.js";import{C as s,E as h,h as c,i as t,o as d}from"./BXINC4TL.js";import"./7PM6K4BQ.js";var b=c`/** @license
3
+ v1.2.0-next.2 */
4
+ import{c as m}from"./4XJKKLD3.js";import{b as g}from"./24PILRZT.js";import{a as u}from"./ECVB7DM6.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{b as p}from"./7LML2KAO.js";import{C as s,E as h,h as c,i as t,o as d}from"./4XYYUSUA.js";import"./MGON4SLN.js";var b=c`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import"./7PM6K4BQ.js";var a="Sinulla ei ole riitt\xE4v\xE4sti krediittej\xE4 t\xE4m\xE4n toiminnon toteuttamiseen. Pyyd\xE4 apua ArcGIS-j\xE4rjestelm\xE4n p\xE4\xE4k\xE4ytt\xE4j\xE4lt\xE4.",t="T\xE4m\xE4 ty\xF6kalu on julkaistu muistikirjasta. Organisaatiosi ArcGIS Notebooks -k\xE4ytt\xF6oikeus on ev\xE4tty. Ota yhteys p\xE4\xE4k\xE4ytt\xE4j\xE4\xE4n asetuksen muuttamista varten.",e="Kohteessa ${ dataPath } ei saa olla kohdetta ${ additionalProperty }.",i="Kohteen ${ dataPath } on vastattava jotakin n\xE4ist\xE4 skeemoista: ${ schemaOptions }.",s="Yrit\xE4 tallentaa kartta uudelleen.",o="Krediitin arviointi ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja arvioi krediitit uudelleen.",n="Analyysia suorittaessa tapahtui virhe.",r="Kohteen ${ dataPath } tulee olla yht\xE4 suuri kuin jokin n\xE4ist\xE4 sallituista arvoista: ${ allowedValues }.",l="Analyysihistorian tallennus ep\xE4onnistui",u="Historian tallennustila on t\xE4ynn\xE4. Poista joitain kohteita analyysihistoriasta ja yrit\xE4 tallentaa uudelleen.",d="Palvelun nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin.",k="Tilap\xE4isen karttatason tallennusta is\xE4nn\xF6ityn\xE4 karttatasona ei suoritettu loppuun.",m="Avainominaisuuksien nouto ep\xE4onnistui.",y="Karttatason lataus ep\xE4onnistui.",h="Karttataso ei ole k\xE4ytett\xE4viss\xE4.",v="Kohteessa ${ dataPath } ei saa olla yli ${ limit } kohdetta.",c="Mallia tallennettaessa tapahtui virhe. Yrit\xE4 tallentaa uudelleen.",p="Kohteessa ${ dataPath } ei saa olla alle ${ limit } kohdetta.",P="${ dataPath } ei saa olla alle ${ limit } merkki\xE4 pitk\xE4.",E="Mallikohteen lataus ep\xE4onnistui. Varmista, ett\xE4 malli on olemassa ja ett\xE4 k\xE4ytt\xF6oikeus on my\xF6nnetty.",j="Pyynn\xF6n suorittaminen ep\xE4onnistui.",S="Sinulla ei ole t\xE4m\xE4n ty\xF6kalun suoritusoikeutta. <calcite-link target='_blank' href='${ docLink }'>Lis\xE4tietoja</calcite-link>",T="Portaaliin kirjautuminen ep\xE4onnistui.",$="L\xE4ht\xF6tietojen luku ep\xE4onnistui.",f="Kohteesta ${ dataPath } puuttuu ominaisuus ${ missingProperty }.",F="T\xE4m\xE4n niminen tuloskarttataso on jo olemassa. Tuloskarttatasot on nimett\xE4v\xE4 yksil\xF6llisesti koko organisaatiossa. K\xE4yt\xE4 toista nime\xE4.",I="Tulosaineiston nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin. <a href='${docLink}' target='_blank'>Lue lis\xE4\xE4.</a>",L="Tilap\xE4isen karttatason julkaiseminen is\xE4nn\xF6ityn\xE4 karttatasona ei onnistunut v\xE4hint\xE4\xE4n yhden virheellisen kent\xE4n vuoksi. Suorita ty\xF6kalu uudelleen, jos haluat luoda karttatason kelvollisilla kentill\xE4.",K="Ty\xF6n l\xE4hetys ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja suorita analyysi uudelleen.",V="Kohteessa ${ dataPath } on oltava v\xE4hint\xE4\xE4n yksi muu kuin v\xE4limerkki.",g={InsufficientCreditsError:a,accessBlocked:t,additionalProperty:e,anyOfValues:i,cannotWriteToItemResource:s,creditEstimationError:o,defaultError:n,enumValues:r,failedToSaveHistory:l,fullSessionStorage:u,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:m,layerLoadFailure:y,layerUnavailable:h,maxItems:v,mbFailedToSave:c,minItems:p,minLength:P,modelNotFound:E,networkError:j,noPermissionToAccessTool:S,portalLoadError:T,queryFeaturesError:$,requiredProperty:f,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:K,whiteSpacePattern:V};export{a as InsufficientCreditsError,t as accessBlocked,e as additionalProperty,i as anyOfValues,s as cannotWriteToItemResource,o as creditEstimationError,g as default,n as defaultError,r as enumValues,l as failedToSaveHistory,u as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,y as layerLoadFailure,h as layerUnavailable,v as maxItems,c as mbFailedToSave,p as minItems,P as minLength,E as modelNotFound,j as networkError,S as noPermissionToAccessTool,T as portalLoadError,$ as queryFeaturesError,f as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,K as toolValidationError,V as whiteSpacePattern};
3
+ v1.2.0-next.2 */
4
+ import"./MGON4SLN.js";var a="Sinulla ei ole riitt\xE4v\xE4sti krediittej\xE4 t\xE4m\xE4n toiminnon toteuttamiseen. Pyyd\xE4 apua ArcGIS-j\xE4rjestelm\xE4n p\xE4\xE4k\xE4ytt\xE4j\xE4lt\xE4.",t="T\xE4m\xE4 ty\xF6kalu on julkaistu muistikirjasta. Organisaatiosi ArcGIS Notebooks -k\xE4ytt\xF6oikeus on ev\xE4tty. Ota yhteys p\xE4\xE4k\xE4ytt\xE4j\xE4\xE4n asetuksen muuttamista varten.",e="Kohteessa ${ dataPath } ei saa olla kohdetta ${ additionalProperty }.",i="Kohteen ${ dataPath } on vastattava jotakin n\xE4ist\xE4 skeemoista: ${ schemaOptions }.",s="Yrit\xE4 tallentaa kartta uudelleen.",o="Krediitin arviointi ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja arvioi krediitit uudelleen.",n="Analyysia suorittaessa tapahtui virhe.",r="Kohteen ${ dataPath } tulee olla yht\xE4 suuri kuin jokin n\xE4ist\xE4 sallituista arvoista: ${ allowedValues }.",l="Analyysihistorian tallennus ep\xE4onnistui",u="Historian tallennustila on t\xE4ynn\xE4. Poista joitain kohteita analyysihistoriasta ja yrit\xE4 tallentaa uudelleen.",d="Palvelun nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin.",k="Tilap\xE4isen karttatason tallennusta is\xE4nn\xF6ityn\xE4 karttatasona ei suoritettu loppuun.",m="Avainominaisuuksien nouto ep\xE4onnistui.",y="Karttatason lataus ep\xE4onnistui.",h="Karttataso ei ole k\xE4ytett\xE4viss\xE4.",v="Kohteessa ${ dataPath } ei saa olla yli ${ limit } kohdetta.",c="Mallia tallennettaessa tapahtui virhe. Yrit\xE4 tallentaa uudelleen.",p="Kohteessa ${ dataPath } ei saa olla alle ${ limit } kohdetta.",P="${ dataPath } ei saa olla alle ${ limit } merkki\xE4 pitk\xE4.",E="Mallikohteen lataus ep\xE4onnistui. Varmista, ett\xE4 malli on olemassa ja ett\xE4 k\xE4ytt\xF6oikeus on my\xF6nnetty.",j="Pyynn\xF6n suorittaminen ep\xE4onnistui.",S="Sinulla ei ole t\xE4m\xE4n ty\xF6kalun suoritusoikeutta. <calcite-link target='_blank' href='${ docLink }'>Lis\xE4tietoja</calcite-link>",T="Portaaliin kirjautuminen ep\xE4onnistui.",$="L\xE4ht\xF6tietojen luku ep\xE4onnistui.",f="Kohteesta ${ dataPath } puuttuu ominaisuus ${ missingProperty }.",F="T\xE4m\xE4n niminen tuloskarttataso on jo olemassa. Tuloskarttatasot on nimett\xE4v\xE4 yksil\xF6llisesti koko organisaatiossa. K\xE4yt\xE4 toista nime\xE4.",I="Tulosaineiston nimi sis\xE4lt\xE4\xE4 v\xE4hint\xE4\xE4n yhden virheellisen merkin. <a href='${docLink}' target='_blank'>Lue lis\xE4\xE4.</a>",L="Tilap\xE4isen karttatason julkaiseminen is\xE4nn\xF6ityn\xE4 karttatasona ei onnistunut v\xE4hint\xE4\xE4n yhden virheellisen kent\xE4n vuoksi. Suorita ty\xF6kalu uudelleen, jos haluat luoda karttatason kelvollisilla kentill\xE4.",K="Ty\xF6n l\xE4hetys ep\xE4onnistui. Vierit\xE4 alas, korjaa virheet ja suorita analyysi uudelleen.",V="Kohteessa ${ dataPath } on oltava v\xE4hint\xE4\xE4n yksi muu kuin v\xE4limerkki.",g={InsufficientCreditsError:a,accessBlocked:t,additionalProperty:e,anyOfValues:i,cannotWriteToItemResource:s,creditEstimationError:o,defaultError:n,enumValues:r,failedToSaveHistory:l,fullSessionStorage:u,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:k,keyPropertiesError:m,layerLoadFailure:y,layerUnavailable:h,maxItems:v,mbFailedToSave:c,minItems:p,minLength:P,modelNotFound:E,networkError:j,noPermissionToAccessTool:S,portalLoadError:T,queryFeaturesError:$,requiredProperty:f,serviceNameExistsError:F,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:L,toolValidationError:K,whiteSpacePattern:V};export{a as InsufficientCreditsError,t as accessBlocked,e as additionalProperty,i as anyOfValues,s as cannotWriteToItemResource,o as creditEstimationError,g as default,n as defaultError,r as enumValues,l as failedToSaveHistory,u as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,y as layerLoadFailure,h as layerUnavailable,v as maxItems,c as mbFailedToSave,p as minItems,P as minLength,E as modelNotFound,j as networkError,S as noPermissionToAccessTool,T as portalLoadError,$ as queryFeaturesError,f as requiredProperty,F as serviceNameExistsError,I as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,K as toolValidationError,V as whiteSpacePattern};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as c,b as n,c as y}from"./DSVAIF4Y.js";import{b as d}from"./GDQKBGVU.js";import{C as a,D as s,E as m,h as u,i as t,o as p}from"./BXINC4TL.js";import"./7PM6K4BQ.js";var h=u`/** @license
3
+ v1.2.0-next.2 */
4
+ import{a as c,b as n,c as y}from"./VPFAWHJS.js";import{b as d}from"./7LML2KAO.js";import{C as a,D as s,E as m,h as u,i as t,o as p}from"./4XYYUSUA.js";import"./MGON4SLN.js";var h=u`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as l}from"./22IZH5VL.js";import{a as e}from"./7BJFXFUH.js";import{a as v}from"./RSTCU2L3.js";import{a as y}from"./522BPYLF.js";import{a as t}from"./EAJPSM6R.js";import{a as i}from"./XYSEGG7Q.js";import{a as p}from"./E45HXI25.js";import{a as d}from"./LB6KC3G5.js";import{a as E}from"./XXDPF2HK.js";import{a as s}from"./OTLPAZXI.js";import{a as n}from"./OFNTBPZ5.js";import{a}from"./ZWMQNYU4.js";import{a as r}from"./5EYMLB42.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
3
+ v1.2.0-next.2 */
4
+ import{a as l}from"./QDOOFKZT.js";import{a as e}from"./EALUH4BU.js";import{a as v}from"./5WP2S2ZH.js";import{a as y}from"./MNBZZ6G3.js";import{a as t}from"./JSMMX4OW.js";import{a as i}from"./GK4O6X2B.js";import{a as p}from"./ZN7CNQRT.js";import{a as d}from"./CRGYVR4L.js";import{a as E}from"./Q4ILVP7M.js";import{a as s}from"./NAFDFLKN.js";import{a as n}from"./TMNFYXWD.js";import{a}from"./BCPDT6MV.js";import{a as r}from"./IWN7UDRD.js";var x=[...r,...E,...t,...i,...p,...d,...s,...n,...a,...l,...e,...v,...y],f=["hub:card:stat"],C=["hub:card:follow"],b=["hub:card:eventGallery"],I=[...f,...C,...b],F=[...x,...I],T;(function(o){o.SHOW="SHOW",o.HIDE="HIDE",o.DISABLE="DISABLE",o.ENABLE="ENABLE",o.NONE="",o.RESET="RESET"})(T||(T={}));var c;(function(o){o.section="Section",o.control="Control",o.layout="Layout",o.slot="Slot",o.notice="Notice",o.text="Text"})(c||(c={}));var m;(function(o){o.accordion="accordion",o.accordionItem="accordionItem",o.block="block",o.stepper="stepper",o.step="step",o.subblock="subblock",o.card="card"})(m||(m={}));var u;(function(o){o.error="ERROR",o.success="SUCCESS",o.custom="CUSTOM"})(u||(u={}));export{T as a,u as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{g as s}from"./Z44XX64I.js";async function S(i,y,o){let e=y?.layer;if(!i)return e?.effect?e.effect:e?.featureEffect?o==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let n=await s(),l=new n({includedEffect:i}).toJSON().includedEffect,u=l,m=e.effect,h=e.featureEffect,r=null;h?r=o==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:r=m;let p=r?l:null;if(!p)return n.fromJSON({includedEffect:l}).includedEffect;let f=[...p];return u&&u.forEach(d=>{f.forEach(t=>{let{value:E}=t;if(E)E.forEach((a,c)=>{a.type===d.type?E[c]=d:!t.value.find(v=>v.type===u[0].type)&&(t.value=[...t.value,...u])});else{let a=!f.find(c=>c.type===t.type);!f.find(c=>c.type===d.type)&&(f=[...f,d]),a&&(f=[...f,t])}})}),n.fromJSON({includedEffect:f}).includedEffect}export{S as a};
3
+ v1.2.0-next.2 */
4
+ import{g as s}from"./32GCN42P.js";async function S(i,y,o){let e=y?.layer;if(!i)return e?.effect?e.effect:e?.featureEffect?o==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let n=await s(),l=new n({includedEffect:i}).toJSON().includedEffect,u=l,m=e.effect,h=e.featureEffect,r=null;h?r=o==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:r=m;let p=r?l:null;if(!p)return n.fromJSON({includedEffect:l}).includedEffect;let f=[...p];return u&&u.forEach(d=>{f.forEach(t=>{let{value:E}=t;if(E)E.forEach((a,c)=>{a.type===d.type?E[c]=d:!t.value.find(v=>v.type===u[0].type)&&(t.value=[...t.value,...u])});else{let a=!f.find(c=>c.type===t.type);!f.find(c=>c.type===d.type)&&(f=[...f,d]),a&&(f=[...f,t])}})}),n.fromJSON({includedEffect:f}).includedEffect}export{S 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import"./7PM6K4BQ.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
3
+ v1.2.0-next.2 */
4
+ import"./MGON4SLN.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as G}from"./X4XPW2FK.js";import{a as L}from"./E56R6ZHU.js";import{c as K,d as _,e as U}from"./OD3QTJAN.js";import{l as j,p as P}from"./IRGSMHZ2.js";import"./PLW2DSVT.js";import"./FYDE2G2S.js";import"./UK6IC5E3.js";import"./QVDUABX7.js";import"./PYOCFNFS.js";import{a as S}from"./ECIK3AWG.js";import"./ROASTLYA.js";import"./PQFMMRQF.js";import"./Y3S2FSFT.js";import"./UCXPZD52.js";import{w}from"./UMBJBGPS.js";import"./XJ62F4NL.js";import"./6VLVWAKZ.js";import"./5BGGKOSZ.js";import"./JNMUGZK3.js";import{b as A}from"./U63ZSVX5.js";import{a as c,b as p}from"./MGLOK6G6.js";import"./HEQ4RTPP.js";import"./7PM6K4BQ.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
3
+ v1.2.0-next.2 */
4
+ import{a as G}from"./4YNKTXJZ.js";import{a as L}from"./6FCQB3AG.js";import{c as K,d as _,e as U}from"./3MGV3QJV.js";import{l as j,p as P}from"./TCORLZCI.js";import"./HN6L7MEZ.js";import"./32275IZ5.js";import"./3SH6IZWK.js";import"./OLVN3BUK.js";import"./GRC5KYBB.js";import{a as S}from"./KSKZZDYX.js";import"./FNLWKSSH.js";import"./IBIR3MNF.js";import"./LZIYOPAC.js";import"./HCEYPHXZ.js";import{w}from"./XLHINQDA.js";import"./QAQPOJT3.js";import"./XQYYFNOC.js";import"./GU3R45TN.js";import"./BSCXWZZC.js";import{b as A}from"./MQE2DTF5.js";import{a as c,b as p}from"./QK7H3QEZ.js";import"./K3ZT5FZ2.js";import"./MGON4SLN.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import"./7PM6K4BQ.js";var e="\u60A8\u6C92\u6709\u8DB3\u5920\u7684\u9EDE\u6578\u4F86\u57F7\u884C\u6B64\u64CD\u4F5C\u3002 \u806F\u7D61 ArcGIS \u7CFB\u7D71\u7BA1\u7406\u54E1\u4EE5\u53D6\u5F97\u5354\u52A9\u3002",a="\u6B64\u5DE5\u5177\u662F\u5F9E\u7B46\u8A18\u672C\u767C\u4F48\u7684\u3002 \u60A8\u7684\u7D44\u7E54\u5C0D ArcGIS Notebooks \u7684\u5B58\u53D6\u88AB\u5C01\u9396\u3002 \u8ACB\u806F\u7D61\u60A8\u7684\u7BA1\u7406\u54E1\u4EE5\u8ABF\u6574\u8A2D\u5B9A\u3002",r="${ dataPath } \u4E0D\u80FD\u6709 ${ additionalProperty }\u3002",t="${ dataPath } \u5FC5\u9808\u7B26\u5408\u4E0B\u5217\u5176\u4E2D\u4E00\u9805\u7D50\u69CB\u63CF\u8FF0: ${ schemaOptions }\u3002",o="\u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u5730\u5716\u3002",s="\u9EDE\u6578\u4F30\u8A08\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u4F30\u8A08\u9EDE\u6578\u3002",i="\u57F7\u884C\u5206\u6790\u6642\u767C\u751F\u932F\u8AA4\u3002",l="${ dataPath } \u5FC5\u9808\u7B49\u65BC\u4E0B\u5217\u5176\u4E2D\u4E00\u500B\u5141\u8A31\u503C: ${ allowedValues }\u3002",d="\u7121\u6CD5\u5132\u5B58\u5206\u6790\u6B77\u7A0B\u8A18\u9304",n="\u6B77\u7A0B\u8A18\u9304\u5132\u5B58\u9AD4\u6EFF\u6EA2\u3002 \u5F9E\u5206\u6790\u6B77\u53F2\u8A18\u9304\u4E2D\u79FB\u9664\u4E00\u4E9B\u9805\u76EE\u4E26\u5617\u8A66\u518D\u6B21\u5132\u5B58\u3002",c="\u670D\u52D9\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002",m="\u5C07\u81E8\u6642\u5716\u5C64\u5132\u5B58\u70BA\u8A17\u7BA1\u5716\u5FB5\u5716\u5C64\u672A\u5B8C\u6210\u3002",u="\u7121\u6CD5\u53D6\u5F97\u91D1\u9470\u5C6C\u6027\u3002",E="\u7121\u6CD5\u8F09\u5165\u5716\u5C64\u3002",h="\u5716\u5C64\u7121\u6CD5\u4F7F\u7528\u3002",y="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u591A\u65BC ${ limit } \u500B\u3002",P="\u5132\u5B58\u6A21\u578B\u6642\u767C\u751F\u932F\u8AA4\u3002 \u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u3002",p="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u5C11\u65BC ${ limit } \u500B\u3002",S="${ dataPath } \u4E0D\u61C9\u77ED\u65BC ${ limit } \u500B\u5B57\u5143\u3002",$="\u7121\u6CD5\u8F09\u5165\u6A21\u578B\u9805\u76EE\u3002 \u78BA\u5B9A\u6A21\u578B\u5B58\u5728\uFF0C\u4E26\u4E14\u5DF2\u6388\u4E88\u5B58\u53D6\u6B0A\u9650\u3002",v="\u7121\u6CD5\u5B8C\u6210\u8ACB\u6C42\u3002",f="\u60A8\u6C92\u6709\u57F7\u884C\u6B64\u5DE5\u5177\u7684\u6B0A\u9650\u3002 <calcite-link target='_blank' href='${ docLink }'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A</calcite-link>",F="\u7121\u6CD5\u767B\u5165\u5230\u5165\u53E3\u7DB2\u7AD9\u3002",I="\u7121\u6CD5\u8B80\u53D6\u8F38\u5165\u8CC7\u6599\u3002",k="${ dataPath } \u7F3A\u5C11\u540D\u70BA ${ missingProperty } \u7684\u5C6C\u6027\u3002",T="\u5DF2\u5B58\u5728\u6B64\u540D\u7A31\u7684\u7D50\u679C\u5716\u5C64\u3002 \u7D50\u679C\u5716\u5C64\u5728\u6574\u500B\u7D44\u7E54\u4E2D\u5FC5\u9808\u6709\u552F\u4E00\u540D\u7A31\u3002 \u8ACB\u4F7F\u7528\u4E0D\u540C\u7684\u540D\u7A31\u3002",L="\u8F38\u51FA\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002 <a href='${docLink}' target='_blank'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A\u3002</a>",b="\u7531\u65BC\u4E00\u6216\u591A\u500B\u7121\u6548\u6B04\u4F4D\uFF0C\u5C07\u81E8\u6642\u5716\u5C64\u767C\u4F48\u70BA\u8A17\u7BA1\u5716\u5C64\u5931\u6557\u3002 \u91CD\u65B0\u57F7\u884C\u5DE5\u5177\u4EE5\u5EFA\u7ACB\u5177\u5099\u6709\u6548\u6B04\u4F4D\u7684\u5716\u5C64\u3002",N="\u5DE5\u4F5C\u63D0\u4EA4\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u57F7\u884C\u5206\u6790\u3002",g="${ dataPath } \u81F3\u5C11\u5FC5\u9808\u6709\u4E00\u500B\u975E\u7A7A\u767D\u5B57\u5143\u3002",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
3
+ v1.2.0-next.2 */
4
+ import"./MGON4SLN.js";var e="\u60A8\u6C92\u6709\u8DB3\u5920\u7684\u9EDE\u6578\u4F86\u57F7\u884C\u6B64\u64CD\u4F5C\u3002 \u806F\u7D61 ArcGIS \u7CFB\u7D71\u7BA1\u7406\u54E1\u4EE5\u53D6\u5F97\u5354\u52A9\u3002",a="\u6B64\u5DE5\u5177\u662F\u5F9E\u7B46\u8A18\u672C\u767C\u4F48\u7684\u3002 \u60A8\u7684\u7D44\u7E54\u5C0D ArcGIS Notebooks \u7684\u5B58\u53D6\u88AB\u5C01\u9396\u3002 \u8ACB\u806F\u7D61\u60A8\u7684\u7BA1\u7406\u54E1\u4EE5\u8ABF\u6574\u8A2D\u5B9A\u3002",r="${ dataPath } \u4E0D\u80FD\u6709 ${ additionalProperty }\u3002",t="${ dataPath } \u5FC5\u9808\u7B26\u5408\u4E0B\u5217\u5176\u4E2D\u4E00\u9805\u7D50\u69CB\u63CF\u8FF0: ${ schemaOptions }\u3002",o="\u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u5730\u5716\u3002",s="\u9EDE\u6578\u4F30\u8A08\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u4F30\u8A08\u9EDE\u6578\u3002",i="\u57F7\u884C\u5206\u6790\u6642\u767C\u751F\u932F\u8AA4\u3002",l="${ dataPath } \u5FC5\u9808\u7B49\u65BC\u4E0B\u5217\u5176\u4E2D\u4E00\u500B\u5141\u8A31\u503C: ${ allowedValues }\u3002",d="\u7121\u6CD5\u5132\u5B58\u5206\u6790\u6B77\u7A0B\u8A18\u9304",n="\u6B77\u7A0B\u8A18\u9304\u5132\u5B58\u9AD4\u6EFF\u6EA2\u3002 \u5F9E\u5206\u6790\u6B77\u53F2\u8A18\u9304\u4E2D\u79FB\u9664\u4E00\u4E9B\u9805\u76EE\u4E26\u5617\u8A66\u518D\u6B21\u5132\u5B58\u3002",c="\u670D\u52D9\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002",m="\u5C07\u81E8\u6642\u5716\u5C64\u5132\u5B58\u70BA\u8A17\u7BA1\u5716\u5FB5\u5716\u5C64\u672A\u5B8C\u6210\u3002",u="\u7121\u6CD5\u53D6\u5F97\u91D1\u9470\u5C6C\u6027\u3002",E="\u7121\u6CD5\u8F09\u5165\u5716\u5C64\u3002",h="\u5716\u5C64\u7121\u6CD5\u4F7F\u7528\u3002",y="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u591A\u65BC ${ limit } \u500B\u3002",P="\u5132\u5B58\u6A21\u578B\u6642\u767C\u751F\u932F\u8AA4\u3002 \u6B63\u5728\u5617\u8A66\u91CD\u65B0\u5132\u5B58\u3002",p="${ dataPath } \u7684\u9805\u76EE\u6578\u4E0D\u61C9\u5C11\u65BC ${ limit } \u500B\u3002",S="${ dataPath } \u4E0D\u61C9\u77ED\u65BC ${ limit } \u500B\u5B57\u5143\u3002",$="\u7121\u6CD5\u8F09\u5165\u6A21\u578B\u9805\u76EE\u3002 \u78BA\u5B9A\u6A21\u578B\u5B58\u5728\uFF0C\u4E26\u4E14\u5DF2\u6388\u4E88\u5B58\u53D6\u6B0A\u9650\u3002",v="\u7121\u6CD5\u5B8C\u6210\u8ACB\u6C42\u3002",f="\u60A8\u6C92\u6709\u57F7\u884C\u6B64\u5DE5\u5177\u7684\u6B0A\u9650\u3002 <calcite-link target='_blank' href='${ docLink }'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A</calcite-link>",F="\u7121\u6CD5\u767B\u5165\u5230\u5165\u53E3\u7DB2\u7AD9\u3002",I="\u7121\u6CD5\u8B80\u53D6\u8F38\u5165\u8CC7\u6599\u3002",k="${ dataPath } \u7F3A\u5C11\u540D\u70BA ${ missingProperty } \u7684\u5C6C\u6027\u3002",T="\u5DF2\u5B58\u5728\u6B64\u540D\u7A31\u7684\u7D50\u679C\u5716\u5C64\u3002 \u7D50\u679C\u5716\u5C64\u5728\u6574\u500B\u7D44\u7E54\u4E2D\u5FC5\u9808\u6709\u552F\u4E00\u540D\u7A31\u3002 \u8ACB\u4F7F\u7528\u4E0D\u540C\u7684\u540D\u7A31\u3002",L="\u8F38\u51FA\u540D\u7A31\u5305\u542B\u4E00\u6216\u591A\u500B\u7121\u6548\u5B57\u5143\u3002 <a href='${docLink}' target='_blank'>\u77AD\u89E3\u8A73\u7D30\u8CC7\u8A0A\u3002</a>",b="\u7531\u65BC\u4E00\u6216\u591A\u500B\u7121\u6548\u6B04\u4F4D\uFF0C\u5C07\u81E8\u6642\u5716\u5C64\u767C\u4F48\u70BA\u8A17\u7BA1\u5716\u5C64\u5931\u6557\u3002 \u91CD\u65B0\u57F7\u884C\u5DE5\u5177\u4EE5\u5EFA\u7ACB\u5177\u5099\u6709\u6548\u6B04\u4F4D\u7684\u5716\u5C64\u3002",N="\u5DE5\u4F5C\u63D0\u4EA4\u5931\u6557\u3002 \u5411\u4E0B\u6372\u52D5\uFF0C\u4FEE\u6B63\u932F\u8AA4\uFF0C\u4E26\u91CD\u65B0\u57F7\u884C\u5206\u6790\u3002",g="${ dataPath } \u81F3\u5C11\u5FC5\u9808\u6709\u4E00\u500B\u975E\u7A7A\u767D\u5B57\u5143\u3002",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a}from"./NYBXXXFR.js";import{a as d}from"./PYOCFNFS.js";import{K as b,L as m}from"./UMBJBGPS.js";import"./XJ62F4NL.js";import{a as l}from"./JNMUGZK3.js";import{a as i}from"./FUHNVQ4J.js";import"./22IZH5VL.js";import"./7BJFXFUH.js";import"./U63ZSVX5.js";import"./IMCXSNGQ.js";import"./MGLOK6G6.js";import"./RSTCU2L3.js";import"./522BPYLF.js";import"./HEQ4RTPP.js";import"./EAJPSM6R.js";import"./XYSEGG7Q.js";import"./E45HXI25.js";import"./LB6KC3G5.js";import"./XXDPF2HK.js";import"./OTLPAZXI.js";import"./OFNTBPZ5.js";import"./ZWMQNYU4.js";import"./5EYMLB42.js";import"./RN2IQ6P7.js";import"./RQETMS6H.js";import"./LFVIZYTM.js";import"./JKF6DMWR.js";import"./XIXNLRAQ.js";import"./7PM6K4BQ.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/features/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
3
+ v1.2.0-next.2 */
4
+ import{a}from"./IAMELUPG.js";import{a as d}from"./GRC5KYBB.js";import{K as b,L as m}from"./XLHINQDA.js";import"./QAQPOJT3.js";import{a as l}from"./BSCXWZZC.js";import{a as i}from"./RHR64B37.js";import"./QDOOFKZT.js";import"./EALUH4BU.js";import"./MQE2DTF5.js";import"./IPIW25QW.js";import"./QK7H3QEZ.js";import"./5WP2S2ZH.js";import"./MNBZZ6G3.js";import"./K3ZT5FZ2.js";import"./JSMMX4OW.js";import"./GK4O6X2B.js";import"./ZN7CNQRT.js";import"./CRGYVR4L.js";import"./Q4ILVP7M.js";import"./NAFDFLKN.js";import"./TMNFYXWD.js";import"./BCPDT6MV.js";import"./IWN7UDRD.js";import"./KJEGNTYQ.js";import"./FJYGYKU7.js";import"./I5X57Y6X.js";import"./26NSAUFX.js";import"./JKVDTJCD.js";import"./MGON4SLN.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/features/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{e as l,f as o}from"./OVM4U6YF.js";import{d as g}from"./SIE6CDNG.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.2.0-next.2 */
4
+ import{e as l,f as o}from"./AZZRAFZ2.js";import{d as g}from"./QWFYFDGT.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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as u}from"./RXM4HJ6I.js";import{a as m,f as b,z as _}from"./Z44XX64I.js";import{b as d}from"./3XLZCUHG.js";import"./QAPZIGZM.js";import"./BT7XOYF5.js";import{C as p,D as g,E as h,G as t,h as l,i,l as e}from"./BXINC4TL.js";import"./7PM6K4BQ.js";var I=l`:host{--instant-apps-sign-in-indicator-color: #007ac2;display:block;box-shadow:none!important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center;height:100%}:host .instant-apps-sign-in__container calcite-action{--calcite-action-text-color: var(--calcite-color-text-1);--calcite-font-size--2: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: 12px}:host .instant-apps-sign-in__container calcite-action:focus{--calcite-action-background-color: var(--calcite-color-foreground-2)}:host .instant-apps-sign-in__container calcite-action,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2: rgba(0, 0, 0, .04);--calcite-color-foreground-3: rgba(0, 0, 0, .04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-popover[scale=m] .instant-apps-sign-in__sign-in-container{min-width:140px}:host .instant-apps-sign-in__container calcite-popover[scale=s] .instant-apps-sign-in__sign-in-container{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:.7;transition:.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:#fffc;color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press: var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}`,s={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator",signInContainer:"instant-apps-sign-in__sign-in-container"},o=class extends h{constructor(){super(...arguments),this._messages=u({name:"instant-apps-sign-in",blocking:!0}),this.signInPopover=p(),this.ready=!1,this.isSignedIn=!1,this.type="navigation",this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0}static{this.properties={ready:16,isSignedIn:16,user:16,type:1,portal:0,oauthappid:1,openInPopup:5,landingPage:5,showIndicator:5,closeLandingPage:0,signInPopoverItems:0}}static{this.styles=I}async load(){await this.initSignIn()}willUpdate(n){(n.has("portal")||n.has("oauthappid"))&&this.initSignIn()}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,a]=await Promise.all([m(),_()]);this.idManager=n,this.info=await b({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await a.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},2e3)}render(){return this.ready?this.renderContent():null}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return i`<div class=${t(s.base)}>${this.isSignedIn?this.renderSignInPopover():this.renderSignInButton()}</div>`}renderSignInPopover(){let n=this.type==="navigation"?"m":"s",a=this.showIndicator?s.indicator:"",r=this.user?.id??this.user?.sourceJSON?.id;return i`${this.type==="navigation"?i`<calcite-navigation-user class=${t(a)} id=instant-apps-sign-in-user-button .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e} text-disabled></calcite-navigation-user>`:i`<button id=instant-apps-sign-in-user-button><calcite-avatar class=${t(a)} .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e}></calcite-avatar></button>`}<calcite-popover placement=bottom-end .scale=${n} reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close label="User settings" ${g(this.signInPopover)}><div class=${t(s.signInContainer)}><slot name=sign-in-popover-top></slot>${this.signInPopoverItems?.map(c=>i`<calcite-action scale=s @click=${f=>{c.onClick(f),this.signInPopover.value&&(this.signInPopover.value.open=!1)}} .text=${c.label} text-enabled></calcite-action>`)}<calcite-action scale=s @click=${this.signOut} .text=${this._messages.signOut} text-enabled></calcite-action></div></calcite-popover>`}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",a=this.type==="navigation"?s.SignInBtn:"";return i`<calcite-button class=${t(a)} @click=${this.signIn} scale=s icon-start=sign-in .appearance=${n}>${this._messages.signIn}</calcite-button>`}renderLandingPageSignIn(){return i`<div class=${t(s.buttonContainer)}><calcite-button class=${t(s.entryButton)} scale=l @click=${this.landingPageSignIn}>${this._messages.signIn}</calcite-button><calcite-button class=${t(s.entryButton)} scale=l appearance=outline-fill @click=${this.guestOnClick}>${this._messages.continueAsGuest}</calcite-button></div>`}};d("instant-apps-sign-in",o);export{o as InstantAppsSignIn};
3
+ v1.2.0-next.2 */
4
+ import{a as u}from"./NM6FSLHS.js";import{a as m,f as b,z as _}from"./32GCN42P.js";import{b as d}from"./NF5TB4T5.js";import"./USO4FEJS.js";import"./2AUDRMU3.js";import{C as p,D as g,E as h,G as t,h as l,i,l as e}from"./4XYYUSUA.js";import"./MGON4SLN.js";var I=l`:host{--instant-apps-sign-in-indicator-color: #007ac2;display:block;box-shadow:none!important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center;height:100%}:host .instant-apps-sign-in__container calcite-action{--calcite-action-text-color: var(--calcite-color-text-1);--calcite-font-size--2: var(--calcite-font-size--1);--calcite-internal-action-padding-inline: 12px}:host .instant-apps-sign-in__container calcite-action:focus{--calcite-action-background-color: var(--calcite-color-foreground-2)}:host .instant-apps-sign-in__container calcite-action,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2: rgba(0, 0, 0, .04);--calcite-color-foreground-3: rgba(0, 0, 0, .04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-popover[scale=m] .instant-apps-sign-in__sign-in-container{min-width:140px}:host .instant-apps-sign-in__container calcite-popover[scale=s] .instant-apps-sign-in__sign-in-container{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:.7;transition:.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:#fffc;color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover: var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press: var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}`,s={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator",signInContainer:"instant-apps-sign-in__sign-in-container"},o=class extends h{constructor(){super(...arguments),this._messages=u({name:"instant-apps-sign-in",blocking:!0}),this.signInPopover=p(),this.ready=!1,this.isSignedIn=!1,this.type="navigation",this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0}static{this.properties={ready:16,isSignedIn:16,user:16,type:1,portal:0,oauthappid:1,openInPopup:5,landingPage:5,showIndicator:5,closeLandingPage:0,signInPopoverItems:0}}static{this.styles=I}async load(){await this.initSignIn()}willUpdate(n){(n.has("portal")||n.has("oauthappid"))&&this.initSignIn()}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,a]=await Promise.all([m(),_()]);this.idManager=n,this.info=await b({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await a.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},2e3)}render(){return this.ready?this.renderContent():null}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return i`<div class=${t(s.base)}>${this.isSignedIn?this.renderSignInPopover():this.renderSignInButton()}</div>`}renderSignInPopover(){let n=this.type==="navigation"?"m":"s",a=this.showIndicator?s.indicator:"",r=this.user?.id??this.user?.sourceJSON?.id;return i`${this.type==="navigation"?i`<calcite-navigation-user class=${t(a)} id=instant-apps-sign-in-user-button .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e} text-disabled></calcite-navigation-user>`:i`<button id=instant-apps-sign-in-user-button><calcite-avatar class=${t(a)} .thumbnail=${this.user?.thumbnailUrl??""} full-name=${this.user?.fullName??e} .username=${this.user?.username} user-id=${r??e}></calcite-avatar></button>`}<calcite-popover placement=bottom-end .scale=${n} reference-element=instant-apps-sign-in-user-button offset-distance=0 pointer-disabled focus-trap-disabled auto-close label="User settings" ${g(this.signInPopover)}><div class=${t(s.signInContainer)}><slot name=sign-in-popover-top></slot>${this.signInPopoverItems?.map(c=>i`<calcite-action scale=s @click=${f=>{c.onClick(f),this.signInPopover.value&&(this.signInPopover.value.open=!1)}} .text=${c.label} text-enabled></calcite-action>`)}<calcite-action scale=s @click=${this.signOut} .text=${this._messages.signOut} text-enabled></calcite-action></div></calcite-popover>`}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",a=this.type==="navigation"?s.SignInBtn:"";return i`<calcite-button class=${t(a)} @click=${this.signIn} scale=s icon-start=sign-in .appearance=${n}>${this._messages.signIn}</calcite-button>`}renderLandingPageSignIn(){return i`<div class=${t(s.buttonContainer)}><calcite-button class=${t(s.entryButton)} scale=l @click=${this.landingPageSignIn}>${this._messages.signIn}</calcite-button><calcite-button class=${t(s.entryButton)} scale=l appearance=outline-fill @click=${this.guestOnClick}>${this._messages.continueAsGuest}</calcite-button></div>`}};d("instant-apps-sign-in",o);export{o as InstantAppsSignIn};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import a from"./KC4VT3EZ.js";import{a as v}from"./LRQNOIGC.js";import{h as O,i as A}from"./Z44XX64I.js";export default $arcgis.t(([{a:N,b:V}])=>{function J(e,n,l){return t=>{let a=t?.layer?.type;if(a==="feature"||a==="group"){let s=D(n,t,l).then(o=>o);s&&e.push(s);let i=o=>{let r=D(n,o,l).then(u=>u);r&&e.push(r)};t.children.forEach(o=>{i(o),o?.children?.length>0&&o.children.forEach(r=>{i(r),r?.children?.length>0&&r.children.forEach(u=>{i(u)})})})}}}async function D(e,n,l){try{let t=n?.layer?.type==="group",a=n?.layer?.layers?.some(d=>d.visible),s=n?.layer?.layers?.every(d=>!d?.legendEnabled);await l.whenOnce(()=>e?.state==="ready"),!t||t&&a?t&&s?await l.whenOnce(()=>n?.layer?.loaded):await l.whenOnce(()=>n?.ready):await l.whenOnce(()=>n?.legendElements);let i=n?.legendElements?.[0],o=new Map,r=n.layer,u=await e?.view?.whenLayerView(r),c=r.renderer?.field??"";i!==void 0&&i?.infos?.forEach(d=>{if(d.type==="symbol-table"){let p=[];d.infos.forEach(h=>{let E={count:null,selected:!1,legendElementInfo:h};p.push(E)});let y={count:null,selected:!1,legendElementInfo:d,nestedInfos:p};o.set(d.title,y)}else{let p={count:null,selected:!1,legendElementInfo:d};o.set(d.label??r.id,p)}});let f=[];return u?Promise.resolve({activeLayerInfo:n,title:u.layer.title,categories:o,field:c,queryExpressions:f,totalCount:null,fLayerView:u,legendElement:i}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function _(e,n){let l={},t=[];e.activeLayerInfos.forEach(J(t,e,n));try{return(await Promise.all(t)).forEach(a=>{let s=a?.activeLayerInfo?.layer?.id;l[s]=a}),Promise.resolve(l)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ee(e){return Array.from(e,n=>n[1])}function ne(e,n,l,t,a){if(t)return t?.nestedInfos?.[a];let s="label"in l&&l?.label?l?.label:n?.id;return e?.categories?.get(s)}function re(e){return N?.data?.[e?.id]}async function te(e,n,l,t,a){let{queryExpressions:s,fLayerView:i}=e;K(e,n,l,a);let o=s.every(f=>f&&f.includes("<>"))?" AND ":" OR ",r=s.join(o),u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null,{type:c}=t;if(c==="filter")i.filter=await A({where:r,timeExtent:u});else if(t.effect){let{includedEffect:f,excludedEffect:d}=t.effect,p=await v(d,i,"excludedEffect"),y=await v(f,i,"includedEffect");i.featureEffect=await O({filter:await A({where:r,timeExtent:u}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function q(e,n){let l=n?n?.layer?.renderer?.authoringInfo:null,t=l?l.fields:null,a=[];if(!t)return"";if(Object.hasOwn(e,"value"))return t.forEach(s=>{if(e.value===s)return;let i=`(${e.value} > ${s} OR (${s} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;a.push(i)}),a.join(" AND ");{let s=[];t.forEach(o=>{s.push(`${o} = 0`)});let i=[];if(t.length>2){t.forEach(r=>{t.forEach(u=>{if(r===u)return;let c=[];t.forEach(f=>{r===f||u===f||c.push(`${r} = ${u} AND (${r} > ${f} OR ${r} >= ${f})`)}),i.push(`(${c.join(" AND ")})`)})});let o=[];return t.forEach(r=>{o.push(`${r} IS NULL`)}),`(${s.join(" AND ")}) OR (${i.join(" OR ")}) OR (${o.join(" AND ")})`}else{let o=[];t.forEach(u=>{t.forEach(c=>{u!==c&&(o.push(`${u} = ${c}`),o.push(`(${s.join(" AND ")})`))})});let r=[];return t.forEach(u=>{t.forEach(c=>{u!==c&&r.push(`(${u} = 0 AND ${c} IS NULL) OR (${u} IS NULL AND ${c} IS NULL)`)})}),`(${o.join(" OR ")}) OR (${r.join(" OR ")})`}}}function K(e,n,l,t){let{field:a,legendElement:s,categories:i,fLayerView:o}=e,r=e?.queryExpressions;t&&Array.from(e.categories).map(h=>h[1]).forEach(h=>{h.nestedInfos?.every(E=>!E.selected)&&h.nestedInfos?.forEach(E=>{let $=a?`${a} = '${E.legendElementInfo.value}'`:null,m=$?r.indexOf($):-1;$&&m!==-1&&r.splice(m,1)})});let u=s?.infos,c=j(o),f=c?q(n,o):x(n,a,l,s,u??[],""),d=i?t?i.get(t.title)?.nestedInfos?.[l]:i.get(n.label??o?.layer?.id):null;d&&(d.selected=!d?.selected);let p=u&&u.length===1,y=r.indexOf(f);if(c){let h=r.indexOf(f);r.length===0||h===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]?r[0]="1=0":r&&r.length===1||r.length===1&&f!==r[0]&&r[0]==="1=0"?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"?r[0]=null:r.splice(h,1),r.join(" OR ")}else r.length===0||y===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]&&!p?r[0]="1=0":r&&r.length===1&&!p||r.length===1&&f!==r[0]&&r[0]==="1=0"&&!p?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"&&!p?r[0]=null:r.splice(y,1);if(t){let h=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{a&&`${a} = '${$.legendElementInfo.value}'`&&h.push(`${a} = '${$.legendElementInfo.value}'`)})}),h.forEach(E=>{r.includes(E)||r.push(E)})}}function x(e,n,l,t,a,s){let{value:i}=e;if(t?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&a?.length===1){if(Object.hasOwn(a?.[0],"value")&&Array.isArray(a?.[0].value)&&Object.hasOwn(a?.[a.length-2],"value")&&Array.isArray(a?.[a.length-2].value))return s?`((${n}/${s}) > ${a?.[0].value[1]}) OR ((${n}/${s}) < ${a?.[a.length-2].value[0]}) OR ${s} = 0 OR ${s} IS NULL`:`${n} > ${a?.[0].value[1]} OR ${n} < ${a?.[a.length-2].value[0]} OR ${n} IS NULL`;if(a?.length===1)return"1=0";{let o=[];a?.forEach(u=>{if(u?.value){let{value:c}=u,f=c.indexOf("'")!==-1?c.split("'").join("''"):null,d=f?`${n} <> '${f}'`:isNaN(c)||typeof c=="string"&&!c.trim()?`${n} <> '${c}'`:`${n} <> ${c} AND ${n} <> '${c}'`;o.push(d)}});let r=o.join(" AND ");return n&&r?`${r} OR ${n} IS NULL`:""}}else{let o=i.indexOf("'")!==-1?i.split("'").join("''"):null,r=Array.isArray(e.value),u=a&&a.length-1===l,c=!Object.hasOwn(a?.[a.length-1],"value"),f=a&&a.length-2===l;return r?s?u||c&&f?`(${n}/${s}) >= ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:`(${n}/${s}) > ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:u||c&&f?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:a?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:o?`${n} = '${o}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`}else return""}function ae(e){return Array.isArray(e)?e.every(n=>!n.selected):e&&Array.from(e.categories.entries()).every(n=>!n[1].selected)&&e.queryExpressions[0]!=="1=0"}function j(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function se(e,n,l){let t=e.layer?.renderer?.field,a=n?.type,s=e?.layerView,i=s?.layer?.renderer?.classBreakInfos,o=s?.layer?.renderer?.uniqueValueInfos&&t,r=a==="size-ramp",u=a==="color-ramp",c=a==="opacity-ramp",f=a==="heatmap-ramp",d=s&&i&&i.length>1,p=s?.layer?.renderer?.authoringInfo?.type,y=p==="class-breaks-color",h=p==="class-breaks-size",E=n?.infos?.length===1&&!t,$=p==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table",m=e?.layer?.type==="feature",g=m&&t&&!u&&!r&&d,I=!!(m&&t&&!u&&!r&&!d),L=!!(I||j(s)&&!r||y&&t||h&&t||E&&!t&&t!==null||$||o),k=e?.layer?.featureReduction&&e?.legendElements?.[l]?.type==="size-ramp",R=n?.type==="symbol-table"&&n?.infos?.length===1,z=!e?.legendElements.every(w=>w.type!=="color-ramp"),F=!e?.legendElements.every(w=>w.type!=="size-ramp"),C=R&&z,T=R&&F,Q=n?.infos?.every(w=>typeof w.value=="number"),B=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",G=p==="dot-density",H=S(e?.layer,t);return m&&!k&&!c&&!f&&!C&&!T&&!Q&&!B&&!G&&H?i?g||L:I||L:!1}function ie(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(n=>{n.selected=!1}),e}function oe(e,n){e.categories.get(n)?.nestedInfos?.forEach(s=>{let i=`${e.field} = '${s.legendElementInfo.value}'`,o=e.queryExpressions.indexOf(i);o!==-1&&e.queryExpressions.splice(o,1),s.selected=!1});let l=[],t=Array.from(e.categories).map(s=>s[1]);t.forEach(s=>{s.nestedInfos?.every(i=>!i.selected)&&s.nestedInfos?.forEach(i=>{l.push(`${e.field} = '${i.legendElementInfo.value}'`)})}),l.forEach(s=>{e.queryExpressions.includes(s)||e.queryExpressions.push(s)});let a=e.queryExpressions.join(" OR ");return t.every(s=>s.nestedInfos?.every(i=>!i.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=a),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=a)),e}async function fe(e,n,l){let t=e.fLayerView.createQuery();if(l)if(l.nestedInfos.every(a=>!a.selected)){let a=l.nestedInfos.map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=l.nestedInfos.filter(s=>s.selected).map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=e.queryExpressions.join(" OR ");t.where=a}try{let{extent:a}=await e.fLayerView.layer.queryExtent(t);await n.goTo(a)}catch{}}function ce(e){return e.map(n=>n?.count).reduce((n,l)=>n+l)}function ue(e){return e.map(n=>n?.nestedInfos?.map(l=>l.count).reduce((l,t)=>l+t)).reduce((n,l)=>n+l)}async function b(e,n,l,t,a,s,i,o){if(!n||!S(n?.layer,l))return;let r=n?.layer?.type==="feature"?n.createQuery():null,u=j(n)?q(t,n):t.type?x(i,l,o,t,t.infos):x(t,l,a,s,s.infos);r&&u&&(r.where=u==="1=0"?"1=1":u,e&&(r.geometry=e));try{let c=r?await n.queryFeatureCount(r):null;return Promise.resolve({[t.label??n?.layer?.id]:c})}catch(c){console.error("FAILURE AT 'getInfoCount': ",c)}return await Promise.resolve(null)}async function de(e,n){let l={...n},{activeLayerInfos:t}=e,a=e?.view?.extent,s={},i={};t.forEach(async o=>{let r=o.legendElements[0],u=o.layer,c=n[o?.layer?.id]?.fLayerView,f=u.renderer?.field,d=[];i[o.layer.id]=[],r?.infos?.forEach((y,h)=>{if(r.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach(($,m)=>{let g=b(a,c,f,y,h,r,$,m);E.push(g)}),i[o.layer.id].push(E)}else d.push(b(a,c,f,y,h,r)),i[o.layer.id]=d});let p=y=>{let h=[],E=y.legendElements[0],$=y.layer,m=n[y?.layer?.id]?.fLayerView,g=$.renderer?.field;E?.infos?.forEach((I,L)=>h.push(b(a,m,g,I,L,E))),i[y.layer.id]=h};o.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(h=>{p(h),h?.children?.length>0&&h.children.forEach(E=>{p(E)})})})});for(let o in i){let r=s[o];r||(r=s[o]={});let u=await Promise.all(i[o]);if(u.every(c=>Array.isArray(c))){let c=await Promise.all(u.map(async f=>(await Promise.all(f)).map(d=>d&&Object.values(d)[0])));r[o]=c,s[o]={...r[o]}}else{let c={};u.forEach(f=>{if(!f)return;let d=Object.keys(f)[0];c[d]=f[d]}),o&&(r[o]=c),s[o]={...r[o]}}}return t.forEach(o=>{let r=n[o.layer.id],u=o.layer.id;r?.categories?.forEach((f,d)=>{let p=Array.from(r?.categories).findIndex(y=>y[0]===d);if(f?.nestedInfos)f?.nestedInfos.forEach((y,h)=>{let E=s?.[o?.layer?.id]?.[p]?.[h];y.count=isNaN(E)?null:E});else{let y=s?.[u]?.[d];f.count=isNaN(y)?null:y}});let c=f=>{let d=f.layer.id;n[d]?.categories?.forEach((p,y)=>{let h=s?.[d]?.[y];p.count=h})};o?.children?.forEach(f=>{c(f),f?.children?.length>0&&f.children.forEach(d=>{c(d),d?.children?.length>0&&d.children.forEach(p=>{c(p)})})})}),await Promise.resolve(l)}function ye(e,n){return e?.nestedInfos?.[n]}function he(e){return Array.from(e).map(n=>n[1]).every(n=>!!n?.nestedInfos)}function Ee(e){return!!e?.legendElements?.[0]?.infos?.every?.(n=>n?.type==="symbol-table")}function pe(e,n){if(typeof n?.title=="string")return e?.categories?.get(n?.title)}function $e(e){let n="calcite-mode-",l=`${n}light`,t=`${n}dark`;return e.classList.contains(t)?t:l}function me(e){if(e.layerId&&e.intLegendLayerData){let n=e.layerId,l=e.intLegendLayerData,t={...N.data,[n]:l};V.set("data",t)}}function ge(e,n){let{type:l}=e;l==="filter"?M(n):l==="effect"&&W(e,n)}function M(e){e?.allLayerViews?.filter(n=>n?.layer?.type==="feature")?.forEach(n=>{let l=n,t=P(l);l.filter=t,l.set("featureEffect",null)})}function W(e,n){n?.allLayerViews?.filter(l=>l?.layer?.type==="feature").forEach(async l=>{let t=l;if(e?.effect&&t){let{includedEffect:a,excludedEffect:s}=e.effect,i=await v(s,t,"excludedEffect"),o=await v(a,t,"includedEffect"),r=P(t);t.featureEffect=await O({filter:r,includedEffect:o,excludedEffect:i}),t.set("filter",null)}})}function P(e){return e?.filter||e?.featureEffect?.filter}function S(e,n){let l=e?.fields,t=l&&l.map(a=>a.name);return n?t&&t.includes(n):!0}function we(e){let n=[];return e.forEach(l=>U(l,n)),n}function U(e,n){n.push(e),e.children&&e.children.length>0&&e.children.forEach(l=>{U(l,n)})}return{a:D,b:_,c:ee,d:ne,e:re,f:te,g:ae,h:le,i:se,j:ie,k:oe,l:fe,m:ce,n:ue,o:de,p:ye,q:he,r:Ee,s:pe,t:$e,u:me,v:ge,w:we}},a)
3
+ v1.2.0-next.2 */
4
+ import a from"./2LK2MZZR.js";import{a as v}from"./RQXTVQCL.js";import{h as O,i as A}from"./32GCN42P.js";export default $arcgis.t(([{a:N,b:V}])=>{function J(e,n,l){return t=>{let a=t?.layer?.type;if(a==="feature"||a==="group"){let s=D(n,t,l).then(o=>o);s&&e.push(s);let i=o=>{let r=D(n,o,l).then(u=>u);r&&e.push(r)};t.children.forEach(o=>{i(o),o?.children?.length>0&&o.children.forEach(r=>{i(r),r?.children?.length>0&&r.children.forEach(u=>{i(u)})})})}}}async function D(e,n,l){try{let t=n?.layer?.type==="group",a=n?.layer?.layers?.some(d=>d.visible),s=n?.layer?.layers?.every(d=>!d?.legendEnabled);await l.whenOnce(()=>e?.state==="ready"),!t||t&&a?t&&s?await l.whenOnce(()=>n?.layer?.loaded):await l.whenOnce(()=>n?.ready):await l.whenOnce(()=>n?.legendElements);let i=n?.legendElements?.[0],o=new Map,r=n.layer,u=await e?.view?.whenLayerView(r),c=r.renderer?.field??"";i!==void 0&&i?.infos?.forEach(d=>{if(d.type==="symbol-table"){let p=[];d.infos.forEach(h=>{let E={count:null,selected:!1,legendElementInfo:h};p.push(E)});let y={count:null,selected:!1,legendElementInfo:d,nestedInfos:p};o.set(d.title,y)}else{let p={count:null,selected:!1,legendElementInfo:d};o.set(d.label??r.id,p)}});let f=[];return u?Promise.resolve({activeLayerInfo:n,title:u.layer.title,categories:o,field:c,queryExpressions:f,totalCount:null,fLayerView:u,legendElement:i}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function _(e,n){let l={},t=[];e.activeLayerInfos.forEach(J(t,e,n));try{return(await Promise.all(t)).forEach(a=>{let s=a?.activeLayerInfo?.layer?.id;l[s]=a}),Promise.resolve(l)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ee(e){return Array.from(e,n=>n[1])}function ne(e,n,l,t,a){if(t)return t?.nestedInfos?.[a];let s="label"in l&&l?.label?l?.label:n?.id;return e?.categories?.get(s)}function re(e){return N?.data?.[e?.id]}async function te(e,n,l,t,a){let{queryExpressions:s,fLayerView:i}=e;K(e,n,l,a);let o=s.every(f=>f&&f.includes("<>"))?" AND ":" OR ",r=s.join(o),u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null,{type:c}=t;if(c==="filter")i.filter=await A({where:r,timeExtent:u});else if(t.effect){let{includedEffect:f,excludedEffect:d}=t.effect,p=await v(d,i,"excludedEffect"),y=await v(f,i,"includedEffect");i.featureEffect=await O({filter:await A({where:r,timeExtent:u}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function q(e,n){let l=n?n?.layer?.renderer?.authoringInfo:null,t=l?l.fields:null,a=[];if(!t)return"";if(Object.hasOwn(e,"value"))return t.forEach(s=>{if(e.value===s)return;let i=`(${e.value} > ${s} OR (${s} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;a.push(i)}),a.join(" AND ");{let s=[];t.forEach(o=>{s.push(`${o} = 0`)});let i=[];if(t.length>2){t.forEach(r=>{t.forEach(u=>{if(r===u)return;let c=[];t.forEach(f=>{r===f||u===f||c.push(`${r} = ${u} AND (${r} > ${f} OR ${r} >= ${f})`)}),i.push(`(${c.join(" AND ")})`)})});let o=[];return t.forEach(r=>{o.push(`${r} IS NULL`)}),`(${s.join(" AND ")}) OR (${i.join(" OR ")}) OR (${o.join(" AND ")})`}else{let o=[];t.forEach(u=>{t.forEach(c=>{u!==c&&(o.push(`${u} = ${c}`),o.push(`(${s.join(" AND ")})`))})});let r=[];return t.forEach(u=>{t.forEach(c=>{u!==c&&r.push(`(${u} = 0 AND ${c} IS NULL) OR (${u} IS NULL AND ${c} IS NULL)`)})}),`(${o.join(" OR ")}) OR (${r.join(" OR ")})`}}}function K(e,n,l,t){let{field:a,legendElement:s,categories:i,fLayerView:o}=e,r=e?.queryExpressions;t&&Array.from(e.categories).map(h=>h[1]).forEach(h=>{h.nestedInfos?.every(E=>!E.selected)&&h.nestedInfos?.forEach(E=>{let $=a?`${a} = '${E.legendElementInfo.value}'`:null,m=$?r.indexOf($):-1;$&&m!==-1&&r.splice(m,1)})});let u=s?.infos,c=j(o),f=c?q(n,o):x(n,a,l,s,u??[],""),d=i?t?i.get(t.title)?.nestedInfos?.[l]:i.get(n.label??o?.layer?.id):null;d&&(d.selected=!d?.selected);let p=u&&u.length===1,y=r.indexOf(f);if(c){let h=r.indexOf(f);r.length===0||h===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]?r[0]="1=0":r&&r.length===1||r.length===1&&f!==r[0]&&r[0]==="1=0"?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"?r[0]=null:r.splice(h,1),r.join(" OR ")}else r.length===0||y===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]&&!p?r[0]="1=0":r&&r.length===1&&!p||r.length===1&&f!==r[0]&&r[0]==="1=0"&&!p?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"&&!p?r[0]=null:r.splice(y,1);if(t){let h=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{a&&`${a} = '${$.legendElementInfo.value}'`&&h.push(`${a} = '${$.legendElementInfo.value}'`)})}),h.forEach(E=>{r.includes(E)||r.push(E)})}}function x(e,n,l,t,a,s){let{value:i}=e;if(t?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&a?.length===1){if(Object.hasOwn(a?.[0],"value")&&Array.isArray(a?.[0].value)&&Object.hasOwn(a?.[a.length-2],"value")&&Array.isArray(a?.[a.length-2].value))return s?`((${n}/${s}) > ${a?.[0].value[1]}) OR ((${n}/${s}) < ${a?.[a.length-2].value[0]}) OR ${s} = 0 OR ${s} IS NULL`:`${n} > ${a?.[0].value[1]} OR ${n} < ${a?.[a.length-2].value[0]} OR ${n} IS NULL`;if(a?.length===1)return"1=0";{let o=[];a?.forEach(u=>{if(u?.value){let{value:c}=u,f=c.indexOf("'")!==-1?c.split("'").join("''"):null,d=f?`${n} <> '${f}'`:isNaN(c)||typeof c=="string"&&!c.trim()?`${n} <> '${c}'`:`${n} <> ${c} AND ${n} <> '${c}'`;o.push(d)}});let r=o.join(" AND ");return n&&r?`${r} OR ${n} IS NULL`:""}}else{let o=i.indexOf("'")!==-1?i.split("'").join("''"):null,r=Array.isArray(e.value),u=a&&a.length-1===l,c=!Object.hasOwn(a?.[a.length-1],"value"),f=a&&a.length-2===l;return r?s?u||c&&f?`(${n}/${s}) >= ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:`(${n}/${s}) > ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:u||c&&f?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:a?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:o?`${n} = '${o}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`}else return""}function ae(e){return Array.isArray(e)?e.every(n=>!n.selected):e&&Array.from(e.categories.entries()).every(n=>!n[1].selected)&&e.queryExpressions[0]!=="1=0"}function j(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function se(e,n,l){let t=e.layer?.renderer?.field,a=n?.type,s=e?.layerView,i=s?.layer?.renderer?.classBreakInfos,o=s?.layer?.renderer?.uniqueValueInfos&&t,r=a==="size-ramp",u=a==="color-ramp",c=a==="opacity-ramp",f=a==="heatmap-ramp",d=s&&i&&i.length>1,p=s?.layer?.renderer?.authoringInfo?.type,y=p==="class-breaks-color",h=p==="class-breaks-size",E=n?.infos?.length===1&&!t,$=p==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table",m=e?.layer?.type==="feature",g=m&&t&&!u&&!r&&d,I=!!(m&&t&&!u&&!r&&!d),L=!!(I||j(s)&&!r||y&&t||h&&t||E&&!t&&t!==null||$||o),k=e?.layer?.featureReduction&&e?.legendElements?.[l]?.type==="size-ramp",R=n?.type==="symbol-table"&&n?.infos?.length===1,z=!e?.legendElements.every(w=>w.type!=="color-ramp"),F=!e?.legendElements.every(w=>w.type!=="size-ramp"),C=R&&z,T=R&&F,Q=n?.infos?.every(w=>typeof w.value=="number"),B=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",G=p==="dot-density",H=S(e?.layer,t);return m&&!k&&!c&&!f&&!C&&!T&&!Q&&!B&&!G&&H?i?g||L:I||L:!1}function ie(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(n=>{n.selected=!1}),e}function oe(e,n){e.categories.get(n)?.nestedInfos?.forEach(s=>{let i=`${e.field} = '${s.legendElementInfo.value}'`,o=e.queryExpressions.indexOf(i);o!==-1&&e.queryExpressions.splice(o,1),s.selected=!1});let l=[],t=Array.from(e.categories).map(s=>s[1]);t.forEach(s=>{s.nestedInfos?.every(i=>!i.selected)&&s.nestedInfos?.forEach(i=>{l.push(`${e.field} = '${i.legendElementInfo.value}'`)})}),l.forEach(s=>{e.queryExpressions.includes(s)||e.queryExpressions.push(s)});let a=e.queryExpressions.join(" OR ");return t.every(s=>s.nestedInfos?.every(i=>!i.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=a),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=a)),e}async function fe(e,n,l){let t=e.fLayerView.createQuery();if(l)if(l.nestedInfos.every(a=>!a.selected)){let a=l.nestedInfos.map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=l.nestedInfos.filter(s=>s.selected).map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=e.queryExpressions.join(" OR ");t.where=a}try{let{extent:a}=await e.fLayerView.layer.queryExtent(t);await n.goTo(a)}catch{}}function ce(e){return e.map(n=>n?.count).reduce((n,l)=>n+l)}function ue(e){return e.map(n=>n?.nestedInfos?.map(l=>l.count).reduce((l,t)=>l+t)).reduce((n,l)=>n+l)}async function b(e,n,l,t,a,s,i,o){if(!n||!S(n?.layer,l))return;let r=n?.layer?.type==="feature"?n.createQuery():null,u=j(n)?q(t,n):t.type?x(i,l,o,t,t.infos):x(t,l,a,s,s.infos);r&&u&&(r.where=u==="1=0"?"1=1":u,e&&(r.geometry=e));try{let c=r?await n.queryFeatureCount(r):null;return Promise.resolve({[t.label??n?.layer?.id]:c})}catch(c){console.error("FAILURE AT 'getInfoCount': ",c)}return await Promise.resolve(null)}async function de(e,n){let l={...n},{activeLayerInfos:t}=e,a=e?.view?.extent,s={},i={};t.forEach(async o=>{let r=o.legendElements[0],u=o.layer,c=n[o?.layer?.id]?.fLayerView,f=u.renderer?.field,d=[];i[o.layer.id]=[],r?.infos?.forEach((y,h)=>{if(r.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach(($,m)=>{let g=b(a,c,f,y,h,r,$,m);E.push(g)}),i[o.layer.id].push(E)}else d.push(b(a,c,f,y,h,r)),i[o.layer.id]=d});let p=y=>{let h=[],E=y.legendElements[0],$=y.layer,m=n[y?.layer?.id]?.fLayerView,g=$.renderer?.field;E?.infos?.forEach((I,L)=>h.push(b(a,m,g,I,L,E))),i[y.layer.id]=h};o.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(h=>{p(h),h?.children?.length>0&&h.children.forEach(E=>{p(E)})})})});for(let o in i){let r=s[o];r||(r=s[o]={});let u=await Promise.all(i[o]);if(u.every(c=>Array.isArray(c))){let c=await Promise.all(u.map(async f=>(await Promise.all(f)).map(d=>d&&Object.values(d)[0])));r[o]=c,s[o]={...r[o]}}else{let c={};u.forEach(f=>{if(!f)return;let d=Object.keys(f)[0];c[d]=f[d]}),o&&(r[o]=c),s[o]={...r[o]}}}return t.forEach(o=>{let r=n[o.layer.id],u=o.layer.id;r?.categories?.forEach((f,d)=>{let p=Array.from(r?.categories).findIndex(y=>y[0]===d);if(f?.nestedInfos)f?.nestedInfos.forEach((y,h)=>{let E=s?.[o?.layer?.id]?.[p]?.[h];y.count=isNaN(E)?null:E});else{let y=s?.[u]?.[d];f.count=isNaN(y)?null:y}});let c=f=>{let d=f.layer.id;n[d]?.categories?.forEach((p,y)=>{let h=s?.[d]?.[y];p.count=h})};o?.children?.forEach(f=>{c(f),f?.children?.length>0&&f.children.forEach(d=>{c(d),d?.children?.length>0&&d.children.forEach(p=>{c(p)})})})}),await Promise.resolve(l)}function ye(e,n){return e?.nestedInfos?.[n]}function he(e){return Array.from(e).map(n=>n[1]).every(n=>!!n?.nestedInfos)}function Ee(e){return!!e?.legendElements?.[0]?.infos?.every?.(n=>n?.type==="symbol-table")}function pe(e,n){if(typeof n?.title=="string")return e?.categories?.get(n?.title)}function $e(e){let n="calcite-mode-",l=`${n}light`,t=`${n}dark`;return e.classList.contains(t)?t:l}function me(e){if(e.layerId&&e.intLegendLayerData){let n=e.layerId,l=e.intLegendLayerData,t={...N.data,[n]:l};V.set("data",t)}}function ge(e,n){let{type:l}=e;l==="filter"?M(n):l==="effect"&&W(e,n)}function M(e){e?.allLayerViews?.filter(n=>n?.layer?.type==="feature")?.forEach(n=>{let l=n,t=P(l);l.filter=t,l.set("featureEffect",null)})}function W(e,n){n?.allLayerViews?.filter(l=>l?.layer?.type==="feature").forEach(async l=>{let t=l;if(e?.effect&&t){let{includedEffect:a,excludedEffect:s}=e.effect,i=await v(s,t,"excludedEffect"),o=await v(a,t,"includedEffect"),r=P(t);t.featureEffect=await O({filter:r,includedEffect:o,excludedEffect:i}),t.set("filter",null)}})}function P(e){return e?.filter||e?.featureEffect?.filter}function S(e,n){let l=e?.fields,t=l&&l.map(a=>a.name);return n?t&&t.includes(n):!0}function we(e){let n=[];return e.forEach(l=>U(l,n)),n}function U(e,n){n.push(e),e.children&&e.children.length>0&&e.children.forEach(l=>{U(l,n)})}return{a:D,b:_,c:ee,d:ne,e:re,f:te,g:ae,h:le,i:se,j:ie,k:oe,l:fe,m:ce,n:ue,o:de,p:ye,q:he,r:Ee,s:pe,t:$e,u:me,v:ge,w:we}},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.2/esri/copyright.txt for details.
3
- v1.2.0-next.1 */
4
- import{a as s}from"./OXUROQRO.js";import{a as r}from"./25LMHUAF.js";import"./QVDUABX7.js";import"./PYOCFNFS.js";import"./ECIK3AWG.js";import"./ROASTLYA.js";import"./UCXPZD52.js";import{a as o}from"./KSRRTR4T.js";import"./UMBJBGPS.js";import"./XJ62F4NL.js";import"./5BGGKOSZ.js";import"./JNMUGZK3.js";import"./HEQ4RTPP.js";import"./7PM6K4BQ.js";var y=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}},...r(e,t.thumbnail,s(t),"group",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await o(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}}]}]}]});export{y as buildUiSchema};
3
+ v1.2.0-next.2 */
4
+ import{a as s}from"./ZG7Z2ZV5.js";import{a as r}from"./QTPWQXFC.js";import"./OLVN3BUK.js";import"./GRC5KYBB.js";import"./KSKZZDYX.js";import"./FNLWKSSH.js";import"./HCEYPHXZ.js";import{a as o}from"./DZHVGBZB.js";import"./XLHINQDA.js";import"./QAQPOJT3.js";import"./GU3R45TN.js";import"./BSCXWZZC.js";import"./K3ZT5FZ2.js";import"./MGON4SLN.js";var y=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}},...r(e,t.thumbnail,s(t),"group",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await o(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}}]}]}]});export{y as buildUiSchema};