@esri/solutions-components 1.2.0-next.39 → 1.2.0-next.40

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 (482) hide show
  1. package/dist/cdn/{Y2WHVNN4.js → 22LSTXDI.js} +2 -2
  2. package/dist/cdn/{6EQFECME.js → 24AE6RS5.js} +2 -2
  3. package/dist/cdn/{GFVX4EMM.js → 24BPSUMW.js} +2 -2
  4. package/dist/cdn/{R2OABS2T.js → 25J7T73M.js} +2 -2
  5. package/dist/cdn/{WZUVYC73.js → 2A5DEDLR.js} +2 -2
  6. package/dist/cdn/{2O6NGBB6.js → 2MEICN7Y.js} +2 -2
  7. package/dist/cdn/{PKVF2FP5.js → 2N2XJJQB.js} +2 -2
  8. package/dist/cdn/2RONSDCL.js +4 -0
  9. package/dist/cdn/2UBVJURQ.js +4 -0
  10. package/dist/cdn/{FG5AJMYA.js → 2XM7CVSN.js} +2 -2
  11. package/dist/cdn/335A3SVP.js +18 -0
  12. package/dist/cdn/{EL5FRVS6.js → 33QQDKOE.js} +2 -2
  13. package/dist/cdn/{GSWS6LV4.js → 3BKKYRYW.js} +2 -2
  14. package/dist/cdn/{V67XFEUW.js → 3DN5HXPC.js} +2 -2
  15. package/dist/cdn/{44NBOHM2.js → 3FSBI6F5.js} +2 -2
  16. package/dist/cdn/{ED5WILS7.js → 3G7VU2K3.js} +1 -1
  17. package/dist/cdn/{U7OZ5SFK.js → 3GFJTYMC.js} +2 -2
  18. package/dist/cdn/{LWA5F2BZ.js → 3GZO2WZD.js} +1 -1
  19. package/dist/cdn/{HIFCAPVC.js → 3O3L74OO.js} +2 -2
  20. package/dist/cdn/3SPKBPGT.js +4 -0
  21. package/dist/cdn/{PKQMEHQA.js → 3ULXZT44.js} +2 -2
  22. package/dist/cdn/3WOOLYTT.js +4 -0
  23. package/dist/cdn/{XPWG546Z.js → 3YAIZ4AY.js} +2 -2
  24. package/dist/cdn/{QLU5OWJF.js → 43Z5ON3N.js} +2 -2
  25. package/dist/cdn/{2WXPOV3P.js → 44LEPW6A.js} +1 -1
  26. package/dist/cdn/{MRWIBLIJ.js → 4AAJZTHE.js} +2 -2
  27. package/dist/cdn/{F3MCBCB6.js → 4EFWB4US.js} +2 -2
  28. package/dist/cdn/{CQQZWTFQ.js → 4FG36VXF.js} +2 -2
  29. package/dist/cdn/{U2LYBUGE.js → 4IG37QFC.js} +2 -2
  30. package/dist/cdn/{3QN5E5ZG.js → 4PGNXDTB.js} +2 -2
  31. package/dist/cdn/{4BWFKSLS.js → 4T6WSHHS.js} +2 -2
  32. package/dist/cdn/{ZXIUDDYB.js → 4TEDDJJZ.js} +2 -2
  33. package/dist/cdn/{GFSUU6WL.js → 4TOFX2YC.js} +2 -2
  34. package/dist/cdn/{2VG4KTXI.js → 52CMYQNR.js} +2 -2
  35. package/dist/cdn/{OBQWYEXQ.js → 54FNRUZ7.js} +2 -2
  36. package/dist/cdn/{6GG4PERR.js → 54XJV5MW.js} +2 -2
  37. package/dist/cdn/{JYP27YIQ.js → 57KDR6SS.js} +2 -2
  38. package/dist/cdn/{GGC6RL2U.js → 5DJHL7NR.js} +2 -2
  39. package/dist/cdn/{P2EO3DWY.js → 5G3C4VGP.js} +2 -2
  40. package/dist/cdn/{ULZSI2DN.js → 5GELTW2I.js} +2 -2
  41. package/dist/cdn/{GCWO775W.js → 5GJRS7I3.js} +2 -2
  42. package/dist/cdn/{2ES34Q6J.js → 5HGT7YVW.js} +1 -1
  43. package/dist/cdn/{6HLRUCZG.js → 5OA2SJVO.js} +2 -2
  44. package/dist/cdn/{JUEKMPOJ.js → 5PKZDGNZ.js} +2 -2
  45. package/dist/cdn/{AMF6BI56.js → 5TWZLTBH.js} +2 -2
  46. package/dist/cdn/{EAYYPNUN.js → 5WEG26FF.js} +2 -2
  47. package/dist/cdn/{ZO4AXM6R.js → 5ZWAZCFY.js} +2 -2
  48. package/dist/cdn/{KTJQK2DV.js → 6HNCP5GT.js} +2 -2
  49. package/dist/cdn/{LWSKZY3I.js → 6JWM4HAN.js} +2 -2
  50. package/dist/cdn/{VL5YXNHS.js → 6QZZ7FGW.js} +2 -2
  51. package/dist/cdn/{6O7APH3Z.js → 6SASOMAS.js} +2 -2
  52. package/dist/cdn/{SJYJMWIY.js → 6SFZDUXH.js} +2 -2
  53. package/dist/cdn/{6EIKVLU7.js → 6WP5NTQB.js} +2 -2
  54. package/dist/cdn/{KE7LRF4I.js → 72Q6CHGU.js} +2 -2
  55. package/dist/cdn/{RMSZYQJG.js → 7375BHEC.js} +2 -2
  56. package/dist/cdn/{5ZNDWVZH.js → 753D5YV7.js} +2 -2
  57. package/dist/cdn/{WZML2FIR.js → 75X6PFX2.js} +2 -2
  58. package/dist/cdn/{DOCQSXJ7.js → 7FETL7XH.js} +2 -2
  59. package/dist/cdn/{U3G2QMBL.js → 7JTTP3OJ.js} +2 -2
  60. package/dist/cdn/{HDQCKS57.js → 7KDS3WQC.js} +2 -2
  61. package/dist/cdn/{LJUGVDCP.js → 7MSJIXZK.js} +2 -2
  62. package/dist/cdn/{L2PXD7EH.js → 7OBLVTKG.js} +2 -2
  63. package/dist/cdn/{Q4KFQCM6.js → 7QEJFG62.js} +2 -2
  64. package/dist/cdn/{GEUFVTB2.js → 7RXDA3Y6.js} +2 -2
  65. package/dist/cdn/{5XOOAIG3.js → A6A6Q77M.js} +2 -2
  66. package/dist/cdn/{UQH76H3R.js → A6LCU65M.js} +1 -1
  67. package/dist/cdn/{M5JMSIE7.js → A7ZWKVMD.js} +2 -2
  68. package/dist/cdn/{TLJ572GX.js → ADASAFRJ.js} +2 -2
  69. package/dist/cdn/{Z37462H3.js → AFVOWSFB.js} +2 -2
  70. package/dist/cdn/{4XMI442R.js → AGRLPQ5O.js} +2 -2
  71. package/dist/cdn/{OKG5OWZ4.js → AJWFP36O.js} +2 -2
  72. package/dist/cdn/{WEWWSGGN.js → AJWX6DOV.js} +2 -2
  73. package/dist/cdn/{C46SRFOU.js → ANUW6DCM.js} +1 -1
  74. package/dist/cdn/{2IX3QGSO.js → APY3C3BR.js} +2 -2
  75. package/dist/cdn/{RCDFWLE4.js → AYCEU4PL.js} +2 -2
  76. package/dist/cdn/{PK6MBS72.js → AZ75RE5E.js} +3 -3
  77. package/dist/cdn/{5NYJD7TZ.js → AZHM7YHG.js} +2 -2
  78. package/dist/cdn/{6A2NATOZ.js → B2NDFNNN.js} +2 -2
  79. package/dist/cdn/{3TEA7MX6.js → B3MJQRPZ.js} +1 -1
  80. package/dist/cdn/{MUA7ZCJU.js → B4ZETRNQ.js} +2 -2
  81. package/dist/cdn/{2YPK4AUS.js → BBA4OM6D.js} +2 -2
  82. package/dist/cdn/{UBKD5JKQ.js → BCJMXG6H.js} +2 -2
  83. package/dist/cdn/{HETORT6U.js → BD5LDFYB.js} +2 -2
  84. package/dist/cdn/{GGKFJMLJ.js → BDHJOA2K.js} +2 -2
  85. package/dist/cdn/{VZKG4JHV.js → BGF72Y2E.js} +2 -2
  86. package/dist/cdn/{CTTYGCJK.js → BHPJPLEZ.js} +2 -2
  87. package/dist/cdn/{SJ3LMJOB.js → BHSFL2DH.js} +2 -2
  88. package/dist/cdn/{AWEQVKIB.js → BLA3VU3A.js} +2 -2
  89. package/dist/cdn/{45I67QEZ.js → BNTIILCB.js} +2 -2
  90. package/dist/cdn/{HUZIVTBQ.js → C3UIO7BG.js} +2 -2
  91. package/dist/cdn/{J2RRRBDM.js → C4MC27PY.js} +2 -2
  92. package/dist/cdn/{RSXAK76K.js → C4OP542Q.js} +2 -2
  93. package/dist/cdn/{K56GVQG2.js → C7JWDXZG.js} +2 -2
  94. package/dist/cdn/{RIQN7H3T.js → CBI7AKW4.js} +2 -2
  95. package/dist/cdn/{DWAVU62X.js → CFQ27C5D.js} +2 -2
  96. package/dist/cdn/{V5NG2JBW.js → CI3AJZYM.js} +2 -2
  97. package/dist/cdn/{AUX627ZK.js → CJZADT7Y.js} +2 -2
  98. package/dist/cdn/{KRJK7YPS.js → CPCK2RA2.js} +2 -2
  99. package/dist/cdn/CPZET4SV.js +4 -0
  100. package/dist/cdn/{3ISSDQ4D.js → CU4HDZQG.js} +2 -2
  101. package/dist/cdn/{TSO2GPQ5.js → CUQSJ2GM.js} +2 -2
  102. package/dist/cdn/{KULCFWUA.js → CUWIPVQT.js} +2 -2
  103. package/dist/cdn/{MFMURPUV.js → CWMJC4JV.js} +2 -2
  104. package/dist/cdn/{5GRPH64Y.js → D2GL5OFA.js} +2 -2
  105. package/dist/cdn/{XBE6YUAO.js → D3UBHI4Y.js} +2 -2
  106. package/dist/cdn/{BYRYCYHN.js → D5FQLPDO.js} +2 -2
  107. package/dist/cdn/{5Z5TBRGZ.js → D5JSWKGE.js} +2 -2
  108. package/dist/cdn/D5K6GCKH.js +4 -0
  109. package/dist/cdn/{WTBUBL7G.js → DDVBE4OC.js} +2 -2
  110. package/dist/cdn/{YAE55YMV.js → DFCH3LOG.js} +2 -2
  111. package/dist/cdn/{64OWILE3.js → DHU27M2E.js} +2 -2
  112. package/dist/cdn/{O5ALHKVH.js → DRDKG2LA.js} +1 -1
  113. package/dist/cdn/{73A3MIHN.js → DRK6UDCI.js} +2 -2
  114. package/dist/cdn/{IHW26JOK.js → DTN6ENHP.js} +2 -2
  115. package/dist/cdn/{PZTV2JTA.js → DVDKL2N7.js} +2 -2
  116. package/dist/cdn/{BQG6CK2P.js → DWQVBUOO.js} +2 -2
  117. package/dist/cdn/{5RQ465F3.js → DWYYNV4Q.js} +2 -2
  118. package/dist/cdn/{SABMPJEJ.js → E4AWIKH2.js} +2 -2
  119. package/dist/cdn/{MN2R7MTW.js → EAFE3KIJ.js} +2 -2
  120. package/dist/cdn/{VRSKGCS7.js → EDV4ZUGV.js} +2 -2
  121. package/dist/cdn/{ERPFWR4V.js → EFMEWOB6.js} +2 -2
  122. package/dist/cdn/{CQG3ZUSI.js → EGRV2XKN.js} +1 -1
  123. package/dist/cdn/{LVR5WN67.js → EJHRKWBI.js} +2 -2
  124. package/dist/cdn/{2Q4FTEUR.js → EMT55WWC.js} +2 -2
  125. package/dist/cdn/ENZRU6SN.js +4 -0
  126. package/dist/cdn/{PZJICKXI.js → EO2KGBGE.js} +2 -2
  127. package/dist/cdn/{SGODNKW5.js → EOSRI7N4.js} +2 -2
  128. package/dist/cdn/{BIKIWV7Q.js → EOUXBVTT.js} +2 -2
  129. package/dist/cdn/EPCYTXFN.js +4 -0
  130. package/dist/cdn/{VNSARVVC.js → EPZ7RIIQ.js} +1 -1
  131. package/dist/cdn/ER5SMVIY.js +4 -0
  132. package/dist/cdn/{GEJU4I45.js → ERNHWKWE.js} +2 -2
  133. package/dist/cdn/{7OIK5YLC.js → ESQZ2D7M.js} +2 -2
  134. package/dist/cdn/{QS4IJ33L.js → ETIXSDXY.js} +2 -2
  135. package/dist/cdn/{W7JWL435.js → EW3XU45Z.js} +2 -2
  136. package/dist/cdn/{LPUIJYXX.js → F3DJR3KS.js} +1 -1
  137. package/dist/cdn/{MEWRX3M3.js → F4KFLOKG.js} +2 -2
  138. package/dist/cdn/{HLX23ODB.js → F57VGGPR.js} +2 -2
  139. package/dist/cdn/{4NGLWLMV.js → F6FFHZA2.js} +2 -2
  140. package/dist/cdn/{LK5TYQL5.js → F6IAVJXL.js} +2 -2
  141. package/dist/cdn/{IHK3NBEO.js → FFZEUJLW.js} +2 -2
  142. package/dist/cdn/{XXWZDACE.js → FJNEPOPO.js} +2 -2
  143. package/dist/cdn/{3PPCI2R3.js → FJVY2BZI.js} +1 -1
  144. package/dist/cdn/{IBOKCC7C.js → FKI7FLDC.js} +2 -2
  145. package/dist/cdn/{UM77354S.js → FLOQAGXP.js} +2 -2
  146. package/dist/cdn/{CZKLCZBX.js → FLPS6WKJ.js} +1 -1
  147. package/dist/cdn/{ZWG3U3E7.js → FLQM3H4O.js} +2 -2
  148. package/dist/cdn/{JWMKG6UR.js → FPGYDUSB.js} +2 -2
  149. package/dist/cdn/{IQDY7VUL.js → FRNSR4YA.js} +2 -2
  150. package/dist/cdn/{O3RPPL4R.js → FT5LRSEX.js} +2 -2
  151. package/dist/cdn/{DGM7V6SO.js → FVVBSVQT.js} +2 -2
  152. package/dist/cdn/{JGG25YKA.js → GESTY7KD.js} +2 -2
  153. package/dist/cdn/{IFH6ER27.js → GEWRFQHZ.js} +2 -2
  154. package/dist/cdn/{67DXBPNN.js → GGSXCCHW.js} +1 -1
  155. package/dist/cdn/{PYKRSFCJ.js → GHWWUUKL.js} +2 -2
  156. package/dist/cdn/{BZYIJT4H.js → GLEWVSPF.js} +2 -2
  157. package/dist/cdn/{MEJIGZJA.js → GNF7YAU7.js} +2 -2
  158. package/dist/cdn/{HLO4ESLP.js → GR37X77I.js} +2 -2
  159. package/dist/cdn/{5G5DFCQ2.js → GRYHPDU4.js} +2 -2
  160. package/dist/cdn/GT5ATGLO.js +4 -0
  161. package/dist/cdn/{7H5I3SD4.js → GUZZNYMG.js} +2 -2
  162. package/dist/cdn/{CLLV77OZ.js → GVA2HDGK.js} +2 -2
  163. package/dist/cdn/{6F2DKEFE.js → GWQHIE4E.js} +2 -2
  164. package/dist/cdn/{RHFUZ4EQ.js → H4PWEP4P.js} +1 -1
  165. package/dist/cdn/{72AB6BBZ.js → HECR4WWY.js} +2 -2
  166. package/dist/cdn/{ASQECNQT.js → HEMZKBCY.js} +1 -1
  167. package/dist/cdn/{KMUD7MIG.js → HJIN4TCD.js} +2 -2
  168. package/dist/cdn/{QFKKMAW7.js → HLGZHYQM.js} +2 -2
  169. package/dist/cdn/{MZZHC6MJ.js → HNQC7O7U.js} +2 -2
  170. package/dist/cdn/{RNCLA6XD.js → HQYAOOKS.js} +2 -2
  171. package/dist/cdn/{PC5PQMH3.js → HSTVSCY5.js} +2 -2
  172. package/dist/cdn/{NXBFLQLG.js → HZ7QRNML.js} +2 -2
  173. package/dist/cdn/{GXTBHUQ3.js → HZTRCBGK.js} +2 -2
  174. package/dist/cdn/{4SCKR3SG.js → I32DNJKQ.js} +2 -2
  175. package/dist/cdn/{HESFWY6K.js → I37S3UHW.js} +1 -1
  176. package/dist/cdn/{ES5HSUHM.js → I5XDWXNN.js} +2 -2
  177. package/dist/cdn/{4VFCAKDX.js → I6ZD6GGV.js} +2 -2
  178. package/dist/cdn/{PNWUR4FN.js → IHAS3GLL.js} +2 -2
  179. package/dist/cdn/{6GJQHZLV.js → IK66JQE4.js} +2 -2
  180. package/dist/cdn/{KN6VRCJR.js → IKBU6H27.js} +2 -2
  181. package/dist/cdn/{CME3FQFQ.js → IM45V3PM.js} +2 -2
  182. package/dist/cdn/{EJNLBR4A.js → IMRTNUFG.js} +2 -2
  183. package/dist/cdn/{IYCAGAXO.js → IPUH3CLJ.js} +2 -2
  184. package/dist/cdn/{NPAJRPLS.js → IUH6PRUS.js} +1 -1
  185. package/dist/cdn/{R7JCMEBX.js → IZSZYB7Z.js} +2 -2
  186. package/dist/cdn/{YWTNIFNR.js → J54RZLOA.js} +2 -2
  187. package/dist/cdn/{KH6KBN5S.js → JBXSDSN3.js} +2 -2
  188. package/dist/cdn/{TDAI5FBB.js → JCJ4ZV6E.js} +2 -2
  189. package/dist/cdn/{XCPR5CLY.js → JGZQYKAL.js} +2 -2
  190. package/dist/cdn/{JZMWBYSL.js → JH5UYQ3Z.js} +2 -2
  191. package/dist/cdn/{KZRCF37A.js → JK4L7H5H.js} +2 -2
  192. package/dist/cdn/{6NAJSWSH.js → JKLMSSSI.js} +2 -2
  193. package/dist/cdn/{IR4NISLP.js → JRZLCTS4.js} +1 -1
  194. package/dist/cdn/{NQR5HWGO.js → JSHK3ETV.js} +2 -2
  195. package/dist/cdn/{YKVADFXR.js → JSYJGH4U.js} +1 -1
  196. package/dist/cdn/{R3FHS5ZA.js → JVJRJL6I.js} +2 -2
  197. package/dist/cdn/{MW4NBRQZ.js → JXUG2KP2.js} +1 -1
  198. package/dist/cdn/{CWBKZLNV.js → K7S4AJZT.js} +2 -2
  199. package/dist/cdn/{HRU5TQGK.js → KBJDOXK4.js} +2 -2
  200. package/dist/cdn/{EXHFUAHT.js → KDF5MZUX.js} +2 -2
  201. package/dist/cdn/{CG4CZ32M.js → KGJIH765.js} +2 -2
  202. package/dist/cdn/{BQ3F536M.js → KGXSXCRM.js} +1 -1
  203. package/dist/cdn/{CJMUNG5Y.js → KGYLZ5DV.js} +2 -2
  204. package/dist/cdn/{RKQTODFO.js → KHRMXQO2.js} +2 -2
  205. package/dist/cdn/{XWYZJJRL.js → KKEDX77V.js} +2 -2
  206. package/dist/cdn/{BYEECON3.js → KKHEDVKE.js} +2 -2
  207. package/dist/cdn/{2GANLR5Q.js → KUVGJIO5.js} +2 -2
  208. package/dist/cdn/KX4UNPUD.js +4 -0
  209. package/dist/cdn/{F5TWGHSB.js → KY6O7GSS.js} +2 -2
  210. package/dist/cdn/{UYP7LPCO.js → L3JUKBR5.js} +2 -2
  211. package/dist/cdn/{O7CTM4NU.js → L5T25CJG.js} +1 -1
  212. package/dist/cdn/{3VN4LR27.js → L7PZF3H7.js} +2 -2
  213. package/dist/cdn/{EXJCJXVV.js → LAU2XGXX.js} +2 -2
  214. package/dist/cdn/{QBWBOGFY.js → LCUWRVKQ.js} +2 -2
  215. package/dist/cdn/{LZSDBEQY.js → LE5O3XZD.js} +2 -2
  216. package/dist/cdn/{QPH7RQUD.js → LMKMGN5K.js} +2 -2
  217. package/dist/cdn/{H3WFFNMJ.js → LPFR4RY3.js} +1 -1
  218. package/dist/cdn/{HUDLR4XR.js → LRXZF53Y.js} +2 -2
  219. package/dist/cdn/LS4WZROV.js +4 -0
  220. package/dist/cdn/{Z6HB2LKU.js → LTHMBOAJ.js} +2 -2
  221. package/dist/cdn/{OHHPHVIZ.js → LVBC6GKK.js} +2 -2
  222. package/dist/cdn/{5XZXS7KC.js → LW2EQEUD.js} +1 -1
  223. package/dist/cdn/{KYRIG7D4.js → LYQCHOBG.js} +2 -2
  224. package/dist/cdn/MQ7WBOZK.js +4 -0
  225. package/dist/cdn/{NAXDVUOY.js → MSRRU2I4.js} +2 -2
  226. package/dist/cdn/{RIA6LI7U.js → MUPVM5TO.js} +2 -2
  227. package/dist/cdn/MXJ45EGJ.js +4 -0
  228. package/dist/cdn/{JNIH7XXW.js → N5KCDCYV.js} +2 -2
  229. package/dist/cdn/{QL653ZDR.js → NADV4UQF.js} +2 -2
  230. package/dist/cdn/{WP7VNBE6.js → NBQGOCMY.js} +2 -2
  231. package/dist/cdn/{5VVNZED5.js → NGQP5MW2.js} +2 -2
  232. package/dist/cdn/{JVI6VOOY.js → NL5Z74O6.js} +2 -2
  233. package/dist/cdn/{4WNCYDZV.js → NMKTSPKA.js} +2 -2
  234. package/dist/cdn/{PZNQ6JJL.js → NOLMQG73.js} +2 -2
  235. package/dist/cdn/{NNRTA5SJ.js → NPOTTWTA.js} +2 -2
  236. package/dist/cdn/{MIOO5HYN.js → NPPPAHVY.js} +2 -2
  237. package/dist/cdn/{PXSFL6NE.js → NPXOLE4L.js} +1 -1
  238. package/dist/cdn/{RR77N5AA.js → NTNNBCBZ.js} +2 -2
  239. package/dist/cdn/{UUILJSCG.js → NYVFL4F3.js} +2 -2
  240. package/dist/cdn/{LIY7TY7Z.js → O5KY5GGR.js} +2 -2
  241. package/dist/cdn/{4AE4PUDE.js → OBB3JW3W.js} +2 -2
  242. package/dist/cdn/{J2XTPBZ7.js → OBRTMTTT.js} +2 -2
  243. package/dist/cdn/{DGUXBPYO.js → ODKMZP55.js} +2 -2
  244. package/dist/cdn/{OBAJ3QVO.js → OGCIPWNC.js} +2 -2
  245. package/dist/cdn/{MDGGXEIV.js → OGPBYNOK.js} +2 -2
  246. package/dist/cdn/{JDP425FV.js → OHIPUVGR.js} +2 -2
  247. package/dist/cdn/{QEAZDKTC.js → OKXLKT25.js} +2 -2
  248. package/dist/cdn/OKXSBONV.js +4 -0
  249. package/dist/cdn/{CZNTAIG5.js → ORYHJCTE.js} +2 -2
  250. package/dist/cdn/{ADGRZEHH.js → OSRM45JC.js} +2 -2
  251. package/dist/cdn/{P6NEF3AG.js → OZLRGHBY.js} +2 -2
  252. package/dist/cdn/{QXT7E6EY.js → P4VQHHDZ.js} +2 -2
  253. package/dist/cdn/PB4Z4GCP.js +4 -0
  254. package/dist/cdn/{6VJXMFYM.js → PGBK57JY.js} +2 -2
  255. package/dist/cdn/{TB5HMOJ3.js → PHMEXWZP.js} +2 -2
  256. package/dist/cdn/{AIUKZ7QZ.js → PKB5PLTX.js} +2 -2
  257. package/dist/cdn/{IT2MV4QW.js → PLHAF4ZU.js} +2 -2
  258. package/dist/cdn/PM227WQV.js +4 -0
  259. package/dist/cdn/{GC6WKYIL.js → PQE4GXZT.js} +2 -2
  260. package/dist/cdn/{HN35ETXK.js → PROBCAQZ.js} +2 -2
  261. package/dist/cdn/{AVRTEGMF.js → PSCV3RBP.js} +2 -2
  262. package/dist/cdn/{2GJE2W5K.js → PTSTR5UK.js} +2 -2
  263. package/dist/cdn/{XLE7HHIL.js → PUSST5YV.js} +2 -2
  264. package/dist/cdn/{2AJOUQB7.js → Q2LX4CPJ.js} +2 -2
  265. package/dist/cdn/{APTD6OZU.js → Q6IEZTC6.js} +2 -2
  266. package/dist/cdn/{TATJA4IA.js → QBTTL63Z.js} +2 -2
  267. package/dist/cdn/{BKOGMQC7.js → QHUQJ4OZ.js} +2 -2
  268. package/dist/cdn/{JPUHNRZ6.js → QIDDKBBC.js} +2 -2
  269. package/dist/cdn/{RCONKWD3.js → QNDDTKZG.js} +1 -1
  270. package/dist/cdn/{KFDSUIDH.js → QNKC7LHX.js} +2 -2
  271. package/dist/cdn/{WSNKRWTS.js → QRHMXAWZ.js} +2 -2
  272. package/dist/cdn/{UC4RHZAC.js → QVNT6K3T.js} +4 -4
  273. package/dist/cdn/{75FCMS3Q.js → QVOH6SZI.js} +2 -2
  274. package/dist/cdn/{2KYRVCYO.js → QZNUPCEF.js} +1 -1
  275. package/dist/cdn/{KNV6T7IX.js → R2PBNQEG.js} +2 -2
  276. package/dist/cdn/{FVIWRJEX.js → R3JSAEUZ.js} +2 -2
  277. package/dist/cdn/{PBK6ZGYF.js → R5NP2XDZ.js} +2 -2
  278. package/dist/cdn/{H7GNFLX5.js → RFONERYC.js} +2 -2
  279. package/dist/cdn/RGWDQAC3.js +4 -0
  280. package/dist/cdn/{6YPWVM37.js → RIEMFJC6.js} +2 -2
  281. package/dist/cdn/{XIM7BJJT.js → RJ4YPCDR.js} +2 -2
  282. package/dist/cdn/{CWKRSSOA.js → RJSQPLUW.js} +2 -2
  283. package/dist/cdn/{IEPOS5EV.js → RXJY2TGC.js} +2 -2
  284. package/dist/cdn/{WRBLZ2EY.js → S37MMQRU.js} +2 -2
  285. package/dist/cdn/{KPVMNGYD.js → SAYEECND.js} +2 -2
  286. package/dist/cdn/{CTY2EBIR.js → SB5ZV4NW.js} +2 -2
  287. package/dist/cdn/{PIHN7OGO.js → SGXBK67B.js} +2 -2
  288. package/dist/cdn/{SBMKGTYT.js → SIQS2YKG.js} +2 -2
  289. package/dist/cdn/{E3ZJUJQE.js → SPLZB73T.js} +1 -1
  290. package/dist/cdn/{352FKSLT.js → SQSRL2J6.js} +2 -2
  291. package/dist/cdn/{44NXP2VH.js → SRFRBXOY.js} +2 -2
  292. package/dist/cdn/{JTN3AKO6.js → SSHLTDW5.js} +2 -2
  293. package/dist/cdn/{BRUTOLXS.js → ST3BF6QC.js} +2 -2
  294. package/dist/cdn/{BTBUOLUA.js → TDUJUMW2.js} +2 -2
  295. package/dist/cdn/{NEVD3I6S.js → TG54RX2X.js} +2 -2
  296. package/dist/cdn/{3ST4PJS2.js → TMYVCDZA.js} +2 -2
  297. package/dist/cdn/{4EI3LJ75.js → TN4LCNIE.js} +1 -1
  298. package/dist/cdn/{3CZIT627.js → TN7VTHN3.js} +2 -2
  299. package/dist/cdn/{FI2RYZTL.js → TTP4LZPA.js} +2 -2
  300. package/dist/cdn/{UXTVUYEE.js → TU3WIPQD.js} +2 -2
  301. package/dist/cdn/{GL7LRY5F.js → TW27HES5.js} +2 -2
  302. package/dist/cdn/{MBHAKWXC.js → U47ZULP3.js} +1 -1
  303. package/dist/cdn/{VCGAGRCW.js → U6AVHWUS.js} +1 -1
  304. package/dist/cdn/{BCWAOOBL.js → UGTCTLUV.js} +2 -2
  305. package/dist/cdn/{CONE7BUX.js → UGVYHTBT.js} +1 -1
  306. package/dist/cdn/{574TSGS3.js → UNCPD7T7.js} +2 -2
  307. package/dist/cdn/{WTPDNXJI.js → UNOHYBEG.js} +2 -2
  308. package/dist/cdn/{XRIEOIYQ.js → UQDFMOQ7.js} +2 -2
  309. package/dist/cdn/{PXJUCITY.js → URTS7576.js} +2 -2
  310. package/dist/cdn/{ZLCJOGCM.js → UX2674JQ.js} +2 -2
  311. package/dist/cdn/{JPJINGZH.js → UY7LCGSK.js} +2 -2
  312. package/dist/cdn/{ZUCD46UL.js → V37TZ7RB.js} +2 -2
  313. package/dist/cdn/{CE5L46DL.js → V6EYACWV.js} +2 -2
  314. package/dist/cdn/{EGAIBYO4.js → VDIUPZJD.js} +2 -2
  315. package/dist/cdn/{QLD2MUBD.js → VLUHNLRB.js} +1 -1
  316. package/dist/cdn/{CTO2VJXA.js → W2TJFQ5I.js} +2 -2
  317. package/dist/cdn/{COFVR5QC.js → W6NUSHEG.js} +2 -2
  318. package/dist/cdn/{AHPHMUFH.js → WACIDFPV.js} +2 -2
  319. package/dist/cdn/{JDG372HJ.js → WNW464FX.js} +2 -2
  320. package/dist/cdn/{P6WMRRIT.js → WRZAXET6.js} +2 -2
  321. package/dist/cdn/{SQ4556X7.js → WT4IH2FV.js} +2 -2
  322. package/dist/cdn/{NFC7YG45.js → WUL5L4WL.js} +2 -2
  323. package/dist/cdn/{AMT5P6S7.js → WX3Q7NQD.js} +2 -2
  324. package/dist/cdn/{5OH2OKSA.js → WXS3AQX4.js} +2 -2
  325. package/dist/cdn/{JQRRHZBK.js → X2W6D3F4.js} +1 -1
  326. package/dist/cdn/{QQKNXZ7O.js → X4DEICTA.js} +2 -2
  327. package/dist/cdn/{ZFICIJZQ.js → X72LGKZL.js} +2 -2
  328. package/dist/cdn/{WUDSDZT7.js → XEN5U75R.js} +1 -1
  329. package/dist/cdn/{CGUJSWMR.js → XI5PVVHF.js} +2 -2
  330. package/dist/cdn/{KNCE4TTO.js → XPRSOAKF.js} +2 -2
  331. package/dist/cdn/{3INDJ4AP.js → XSYDP7UI.js} +2 -2
  332. package/dist/cdn/{XWCG6AMB.js → Y4QQLONZ.js} +2 -2
  333. package/dist/cdn/{2LBWKLHR.js → Y5QUSO6G.js} +2 -2
  334. package/dist/cdn/{ZKZS3TY4.js → Y6NKSWSY.js} +2 -2
  335. package/dist/cdn/{DNQ5PPRV.js → YEK3SESL.js} +1 -1
  336. package/dist/cdn/{CEG5AOTW.js → YIRPFSJ6.js} +2 -2
  337. package/dist/cdn/{S3PARDYS.js → YK2LFJ5V.js} +2 -2
  338. package/dist/cdn/{JFD2GLUZ.js → YOWURAYQ.js} +2 -2
  339. package/dist/cdn/{PQYA37C4.js → YOXIM5D6.js} +1 -1
  340. package/dist/cdn/{WHS2PMPC.js → YU3E3SDE.js} +2 -2
  341. package/dist/cdn/YV3XBU5G.js +18 -0
  342. package/dist/cdn/{UVOTALEM.js → Z2MYKHNC.js} +2 -2
  343. package/dist/cdn/Z6ZULYWD.js +4 -0
  344. package/dist/cdn/ZBR65XZU.js +4 -0
  345. package/dist/cdn/{KMX7DYG7.js → ZHFIEXY5.js} +2 -2
  346. package/dist/cdn/{QP3FFP7T.js → ZIOL363O.js} +2 -2
  347. package/dist/cdn/{LHM6JY3L.js → ZMPAB7Q7.js} +2 -2
  348. package/dist/cdn/{4CZMUJAU.js → ZNONU4U5.js} +2 -2
  349. package/dist/cdn/{OCORZHZK.js → ZOP5HNIE.js} +2 -2
  350. package/dist/cdn/{DTZTMTPS.js → ZT7KRKCV.js} +2 -2
  351. package/dist/cdn/{S7GXXB2P.js → ZZ4ENTL4.js} +2 -2
  352. package/dist/cdn/index.js +2 -2
  353. package/dist/chunks/Auth.js +1 -1
  354. package/dist/chunks/appConfig.js +1 -1
  355. package/dist/chunks/cardFetchingUtils.js +1 -1
  356. package/dist/chunks/cardsHelpers.js +1 -1
  357. package/dist/chunks/common.js +1 -1
  358. package/dist/chunks/deployAppContexts.js +1 -1
  359. package/dist/chunks/downloadUtils.js +1 -1
  360. package/dist/chunks/getItemIcon.js +1 -1
  361. package/dist/chunks/helpers.js +1 -1
  362. package/dist/chunks/interfaces.js +1 -1
  363. package/dist/chunks/mapViewUtils.js +1 -1
  364. package/dist/chunks/pciUtils.js +1 -1
  365. package/dist/chunks/popupUtils.js +1 -1
  366. package/dist/chunks/privilegeUtils.js +1 -1
  367. package/dist/chunks/publicNotificationContext.js +1 -1
  368. package/dist/chunks/queryUtils.js +1 -1
  369. package/dist/chunks/runtime.js +1 -1
  370. package/dist/chunks/solution-deployed-card.js +1 -1
  371. package/dist/chunks/solution-store.js +1 -1
  372. package/dist/chunks/templates.js +1 -1
  373. package/dist/chunks/useT9n.js +1 -1
  374. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  375. package/dist/components/buffer-tools/customElement.js +1 -1
  376. package/dist/components/card-manager/customElement.js +1 -1
  377. package/dist/components/consent-manager/customElement.js +1 -1
  378. package/dist/components/create-feature/customElement.js +1 -1
  379. package/dist/components/create-related-feature/customElement.js +1 -1
  380. package/dist/components/crowdsource-manager/customElement.js +1 -1
  381. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  382. package/dist/components/deduct-calculator/customElement.js +1 -1
  383. package/dist/components/delete-button/customElement.js +1 -1
  384. package/dist/components/delete-dialog/customElement.js +1 -1
  385. package/dist/components/edit-card/customElement.js +1 -1
  386. package/dist/components/feature-details/customElement.js +1 -1
  387. package/dist/components/feature-list/customElement.js +1 -1
  388. package/dist/components/field-selection/customElement.js +1 -1
  389. package/dist/components/info-card/customElement.js +1 -1
  390. package/dist/components/json-editor/customElement.js +1 -1
  391. package/dist/components/layer-list/customElement.js +1 -1
  392. package/dist/components/layer-table/customElement.js +1 -1
  393. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  394. package/dist/components/map-card/customElement.js +1 -1
  395. package/dist/components/map-draw-tools/customElement.js +1 -1
  396. package/dist/components/map-floor-filter/customElement.js +1 -1
  397. package/dist/components/map-fullscreen/customElement.js +1 -1
  398. package/dist/components/map-layer-picker/customElement.js +1 -1
  399. package/dist/components/map-legend/customElement.js +1 -1
  400. package/dist/components/map-picker/customElement.js +1 -1
  401. package/dist/components/map-search/customElement.js +1 -1
  402. package/dist/components/map-select-tools/customElement.js +1 -1
  403. package/dist/components/map-tools/customElement.js +1 -1
  404. package/dist/components/pci-calculator/customElement.js +1 -1
  405. package/dist/components/pdf-download/customElement.js +1 -1
  406. package/dist/components/public-notification/customElement.js +1 -1
  407. package/dist/components/refine-selection/customElement.js +1 -1
  408. package/dist/components/selection-tool/customElement.js +1 -1
  409. package/dist/components/solution-configuration/customElement.js +1 -1
  410. package/dist/components/solution-configure-titles/customElement.js +1 -1
  411. package/dist/components/solution-contents/customElement.js +1 -1
  412. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  413. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  414. package/dist/components/solution-deployed-card/customElement.js +1 -1
  415. package/dist/components/solution-deployed-card-panel/customElement.js +4 -4
  416. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  417. package/dist/components/solution-details-card/customElement.js +1 -1
  418. package/dist/components/solution-details-panel/customElement.js +1 -1
  419. package/dist/components/solution-item/customElement.js +1 -1
  420. package/dist/components/solution-item-accordion/customElement.js +1 -1
  421. package/dist/components/solution-item-details/customElement.js +1 -1
  422. package/dist/components/solution-item-diagram/customElement.js +1 -1
  423. package/dist/components/solution-item-icon/customElement.js +1 -1
  424. package/dist/components/solution-item-sharing/customElement.js +1 -1
  425. package/dist/components/solution-organization-variables/customElement.js +1 -1
  426. package/dist/components/solution-resource-card/customElement.js +1 -1
  427. package/dist/components/solution-resource-item/customElement.js +1 -1
  428. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  429. package/dist/components/solution-social-share/customElement.js +1 -1
  430. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  431. package/dist/components/solution-template-data/customElement.js +1 -1
  432. package/dist/components/solution-variables/customElement.js +1 -1
  433. package/dist/components/solutions-all-panel/customElement.js +1 -1
  434. package/dist/components/solutions-all-shell/customElement.js +1 -1
  435. package/dist/components/solutions-deploy-app/customElement.d.ts +1 -0
  436. package/dist/components/solutions-deploy-app/customElement.js +17 -17
  437. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  438. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  439. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  440. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  441. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  442. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  443. package/dist/components/solutions-resources/customElement.js +1 -1
  444. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  445. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  446. package/dist/components/spatial-ref/customElement.js +1 -1
  447. package/dist/components/store-manager/customElement.js +1 -1
  448. package/dist/docs/api.json +15 -1
  449. package/dist/docs/docs.json +21 -1
  450. package/dist/docs/vscode.html-custom-data.json +1 -1
  451. package/dist/docs/web-types.json +10 -2
  452. package/dist/index.d.ts +1 -0
  453. package/dist/index.js +1 -1
  454. package/dist/loader.js +1 -1
  455. package/dist/types/lumina.d.ts +1 -0
  456. package/dist/types/preact.d.ts +1 -0
  457. package/dist/types/preact10.d.ts +1 -0
  458. package/dist/types/react.d.ts +1 -0
  459. package/dist/types/stencil.d.ts +1 -0
  460. package/package.json +1 -1
  461. package/dist/cdn/4BRGJEKH.js +0 -4
  462. package/dist/cdn/54YAKRH3.js +0 -4
  463. package/dist/cdn/6IOFUKLT.js +0 -4
  464. package/dist/cdn/6J3DNHKP.js +0 -4
  465. package/dist/cdn/6VTRHK52.js +0 -4
  466. package/dist/cdn/7JDAS6PM.js +0 -18
  467. package/dist/cdn/CVXNKCZL.js +0 -4
  468. package/dist/cdn/DGLC6S3I.js +0 -4
  469. package/dist/cdn/FGTV2JOZ.js +0 -4
  470. package/dist/cdn/FYLGBYPU.js +0 -4
  471. package/dist/cdn/G5ZFF6K4.js +0 -4
  472. package/dist/cdn/KEC4V5NM.js +0 -4
  473. package/dist/cdn/LMW4LPU4.js +0 -18
  474. package/dist/cdn/M57DXFH6.js +0 -4
  475. package/dist/cdn/OKYASTM3.js +0 -4
  476. package/dist/cdn/ORIRCVEP.js +0 -4
  477. package/dist/cdn/PCCIGDAH.js +0 -4
  478. package/dist/cdn/QBYFRB7X.js +0 -4
  479. package/dist/cdn/SN74PV4Q.js +0 -4
  480. package/dist/cdn/WNOETQOT.js +0 -4
  481. package/dist/cdn/XMCWDSSJ.js +0 -4
  482. package/dist/cdn/YLMKS7JB.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.39 */
3
+ v1.2.0-next.40 */
4
4
  var i=(e,t="v")=>{if(!e)return e;let n=e.indexOf("?")>-1?"&":"?";return e+=`${n}${t}=${new Date().getTime()}`,e};export{i as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.39 */
4
- import{a}from"./GGKFJMLJ.js";import"./HETORT6U.js";import"./LWSKZY3I.js";import{b as n}from"./S7GXXB2P.js";import{F as r,J as e,h as s,i as t}from"./2ES34Q6J.js";import"./UQH76H3R.js";var c=s`/** @license
3
+ v1.2.0-next.40 */
4
+ import{a}from"./BDHJOA2K.js";import"./BD5LDFYB.js";import"./6JWM4HAN.js";import{b as n}from"./ZZ4ENTL4.js";import{F as r,J as e,h as s,i as t}from"./5HGT7YVW.js";import"./A6LCU65M.js";var c=s`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.39 */
4
- import{a}from"./KZRCF37A.js";import"./UQH76H3R.js";export default a();
3
+ v1.2.0-next.40 */
4
+ import{a}from"./JK4L7H5H.js";import"./A6LCU65M.js";export default 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.39 */
4
- import{a as e}from"./VRSKGCS7.js";import"./QPH7RQUD.js";import"./5XZXS7KC.js";import"./P6NEF3AG.js";import"./BQG6CK2P.js";import"./MDGGXEIV.js";import"./UYP7LPCO.js";import"./GEJU4I45.js";import"./VL5YXNHS.js";import"./YWTNIFNR.js";import"./RHFUZ4EQ.js";import"./CME3FQFQ.js";import"./VCGAGRCW.js";import"./H3WFFNMJ.js";import"./QQKNXZ7O.js";import"./LVR5WN67.js";import"./6A2NATOZ.js";import{a as t}from"./LPUIJYXX.js";import"./F3MCBCB6.js";import"./5XOOAIG3.js";import"./COFVR5QC.js";import"./LWA5F2BZ.js";import"./C46SRFOU.js";import"./UQH76H3R.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f as buildUiSchema};
3
+ v1.2.0-next.40 */
4
+ import{a as e}from"./EDV4ZUGV.js";import"./LMKMGN5K.js";import"./LW2EQEUD.js";import"./OZLRGHBY.js";import"./DWQVBUOO.js";import"./OGPBYNOK.js";import"./L3JUKBR5.js";import"./ERNHWKWE.js";import"./6QZZ7FGW.js";import"./J54RZLOA.js";import"./H4PWEP4P.js";import"./IM45V3PM.js";import"./U6AVHWUS.js";import"./LPFR4RY3.js";import"./X4DEICTA.js";import"./EJHRKWBI.js";import"./B2NDFNNN.js";import{a as t}from"./F3DJR3KS.js";import"./4EFWB4US.js";import"./A6A6Q77M.js";import"./W6NUSHEG.js";import"./3GZO2WZD.js";import"./ANUW6DCM.js";import"./A6LCU65M.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f 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.39 */
4
- import a from"./YKVADFXR.js";import{a as h}from"./UVOTALEM.js";import{b as D}from"./OCORZHZK.js";import{D as I,E as b,F as v,h as L,i as r,p as f}from"./2ES34Q6J.js";import"./UQH76H3R.js";export default $arcgis.t(([d,m,{a:p,c:$,d:S,e:g,f:u}])=>{var y=L`:host{display:block;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);min-width:200px}:host calcite-dropdown{width:100%}:host calcite-button{--calcite-color-brand: var(--calcite-color-text-3);--calcite-color-brand-hover: var(--calcite-color-text-3)}`,w=class extends v{constructor(){super(...arguments),this.trigger=I(),this.t9nData=null,this.isLoaded=!1,this.icon="language",this.locales=[],this.selectedLanguage=null,this.calciteDropdownOverlayPositioning="absolute",this.selectedLanguageUpdated=f()}static{this.properties={t9nData:16,isLoaded:16,icon:1,portalItem:0,view:0,locales:0,defaultLocale:1,selectedLanguage:1,calciteDropdownOverlayPositioning:1}}static{this.styles=y}async refresh(){try{let e=await u(this.portalItem),t=await g(e);this.t9nData=t;let a={locale:this.selectedLanguage,data:t[this.selectedLanguage]};this.selectedLanguageUpdated.emit(a)}catch{}}async load(){try{this.portalItemResource=await u(this.portalItem);let e=await g(this.portalItemResource);this.t9nData=e??{}}catch{this.t9nData={},console.error("NO PORTAL ITEM RESOURCE AVAILABLE."),this.isLoaded=!0}finally{this.userLocale=this.defaultLocale;let e=new URLSearchParams(window.location.search).get("locale"),t=this.locales?.map(o=>o?.locale)?.filter(o=>o===e)?.length>0,a=$(this.portalItem.portal),c=this.locales?.map(o=>o?.locale)?.filter(o=>o===a)?.length>0;this.selectedLanguage=t?e:c?a:this.userLocale;let i=this.selectedLanguage;if(i!==this.userLocale&&(this.calciteDropdownItemSelectCallback(i)(),this.selectedLanguageUpdated.emit({locale:i,data:this.t9nData?.[i]??null})),this.view){let o=this.view.map;this.defaultWebMapId=o?.portalItem?.id??"";let s=this.locales?.filter(l=>l?.webmap&&l?.webmap!==this.defaultWebMapId&&l?.locale===this.selectedLanguage)?.[0]?.webmap;s&&(this.view.map=new m({portalItem:{id:s}}))}this.isLoaded=!0}}calciteDropdownItemSelectCallback(e){return async()=>{if(!this.isLoaded)return;this.selectedLanguage=e;let{selectedLanguage:t,t9nData:a,userLocale:c}=this,i=this.locales.find(l=>l.locale===t);a&&i&&t!==c&&(i.data=a[e]);let o=new URLSearchParams(window.location.search),s=S(this.selectedLanguage);if(d.setLocale(s),o.set("locale",s),this.view){let l=this.locales.filter(n=>n.locale===t)?.[0]?.webmap;if(l)this.view.map=new m({portalItem:{id:l}});else{let n=this.view?.map?.portalItem?.id;n&&this.defaultWebMapId!==n&&(this.view.map=new m({portalItem:{id:this.defaultWebMapId}}))}}document.documentElement.setAttribute("lang",s),d.prefersRTL()?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr"),window.history.replaceState({},"",decodeURIComponent(`${window.location.pathname}?${o}`)),this.selectedLanguageUpdated.emit(i)}}getSelectedLanguageText(e){let t=Object.keys(p.partial).includes(e)?"partial":"full",a=p[t],{language:c,translated:i}=a[e];return`${c} - ${i}`}render(){let e=this.renderTrigger(),t=this.renderDropdownItems(),a=this.renderDefaultLocale();return r`<calcite-dropdown @calciteDropdownBeforeOpen=${()=>{this.trigger.value&&(this.trigger.value.iconEnd="chevron-up")}} @calciteDropdownBeforeClose=${()=>{this.trigger.value&&(this.trigger.value.iconEnd="chevron-down")}} .overlayPositioning=${this.calciteDropdownOverlayPositioning} width-scale=m>${e}<calcite-dropdown-group>${a}${t}</calcite-dropdown-group></calcite-dropdown>`}renderDefaultLocale(){let{userLocale:e}=this;return h(`default-${e}`,r`<calcite-dropdown-item @calciteDropdownItemSelect=${this.calciteDropdownItemSelectCallback(e)} .selected=${this.selectedLanguage===this.userLocale}>${this.getSelectedLanguageText(e)}</calcite-dropdown-item>`)}renderTrigger(){return r`<calcite-button slot=trigger .iconStart=${this.icon} icon-end=chevron-down width=full appearance=outline ${b(this.trigger)}>${this.getSelectedLanguageText(this.selectedLanguage)}</calcite-button>`}renderDropdownItems(){return this.locales?.map(e=>e.locale)?.map(e=>this.renderDropdownItem(e))}renderDropdownItem(e){let t=this.getSelectedLanguageText(e),a=e===this.selectedLanguage;return h(e,r`<calcite-dropdown-item .selected=${a} @calciteDropdownItemSelect=${this.calciteDropdownItemSelectCallback(e)}>${t}</calcite-dropdown-item>`)}};D("instant-apps-language-switcher",w);return w},"intl","WebMap",a)
3
+ v1.2.0-next.40 */
4
+ import a from"./JSYJGH4U.js";import{a as h}from"./Z2MYKHNC.js";import{b as D}from"./ZOP5HNIE.js";import{D as I,E as b,F as v,h as L,i as r,p as f}from"./5HGT7YVW.js";import"./A6LCU65M.js";export default $arcgis.t(([d,m,{a:p,c:$,d:S,e:g,f:u}])=>{var y=L`:host{display:block;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);min-width:200px}:host calcite-dropdown{width:100%}:host calcite-button{--calcite-color-brand: var(--calcite-color-text-3);--calcite-color-brand-hover: var(--calcite-color-text-3)}`,w=class extends v{constructor(){super(...arguments),this.trigger=I(),this.t9nData=null,this.isLoaded=!1,this.icon="language",this.locales=[],this.selectedLanguage=null,this.calciteDropdownOverlayPositioning="absolute",this.selectedLanguageUpdated=f()}static{this.properties={t9nData:16,isLoaded:16,icon:1,portalItem:0,view:0,locales:0,defaultLocale:1,selectedLanguage:1,calciteDropdownOverlayPositioning:1}}static{this.styles=y}async refresh(){try{let e=await u(this.portalItem),t=await g(e);this.t9nData=t;let a={locale:this.selectedLanguage,data:t[this.selectedLanguage]};this.selectedLanguageUpdated.emit(a)}catch{}}async load(){try{this.portalItemResource=await u(this.portalItem);let e=await g(this.portalItemResource);this.t9nData=e??{}}catch{this.t9nData={},console.error("NO PORTAL ITEM RESOURCE AVAILABLE."),this.isLoaded=!0}finally{this.userLocale=this.defaultLocale;let e=new URLSearchParams(window.location.search).get("locale"),t=this.locales?.map(o=>o?.locale)?.filter(o=>o===e)?.length>0,a=$(this.portalItem.portal),c=this.locales?.map(o=>o?.locale)?.filter(o=>o===a)?.length>0;this.selectedLanguage=t?e:c?a:this.userLocale;let i=this.selectedLanguage;if(i!==this.userLocale&&(this.calciteDropdownItemSelectCallback(i)(),this.selectedLanguageUpdated.emit({locale:i,data:this.t9nData?.[i]??null})),this.view){let o=this.view.map;this.defaultWebMapId=o?.portalItem?.id??"";let s=this.locales?.filter(l=>l?.webmap&&l?.webmap!==this.defaultWebMapId&&l?.locale===this.selectedLanguage)?.[0]?.webmap;s&&(this.view.map=new m({portalItem:{id:s}}))}this.isLoaded=!0}}calciteDropdownItemSelectCallback(e){return async()=>{if(!this.isLoaded)return;this.selectedLanguage=e;let{selectedLanguage:t,t9nData:a,userLocale:c}=this,i=this.locales.find(l=>l.locale===t);a&&i&&t!==c&&(i.data=a[e]);let o=new URLSearchParams(window.location.search),s=S(this.selectedLanguage);if(d.setLocale(s),o.set("locale",s),this.view){let l=this.locales.filter(n=>n.locale===t)?.[0]?.webmap;if(l)this.view.map=new m({portalItem:{id:l}});else{let n=this.view?.map?.portalItem?.id;n&&this.defaultWebMapId!==n&&(this.view.map=new m({portalItem:{id:this.defaultWebMapId}}))}}document.documentElement.setAttribute("lang",s),d.prefersRTL()?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr"),window.history.replaceState({},"",decodeURIComponent(`${window.location.pathname}?${o}`)),this.selectedLanguageUpdated.emit(i)}}getSelectedLanguageText(e){let t=Object.keys(p.partial).includes(e)?"partial":"full",a=p[t],{language:c,translated:i}=a[e];return`${c} - ${i}`}render(){let e=this.renderTrigger(),t=this.renderDropdownItems(),a=this.renderDefaultLocale();return r`<calcite-dropdown @calciteDropdownBeforeOpen=${()=>{this.trigger.value&&(this.trigger.value.iconEnd="chevron-up")}} @calciteDropdownBeforeClose=${()=>{this.trigger.value&&(this.trigger.value.iconEnd="chevron-down")}} .overlayPositioning=${this.calciteDropdownOverlayPositioning} width-scale=m>${e}<calcite-dropdown-group>${a}${t}</calcite-dropdown-group></calcite-dropdown>`}renderDefaultLocale(){let{userLocale:e}=this;return h(`default-${e}`,r`<calcite-dropdown-item @calciteDropdownItemSelect=${this.calciteDropdownItemSelectCallback(e)} .selected=${this.selectedLanguage===this.userLocale}>${this.getSelectedLanguageText(e)}</calcite-dropdown-item>`)}renderTrigger(){return r`<calcite-button slot=trigger .iconStart=${this.icon} icon-end=chevron-down width=full appearance=outline ${b(this.trigger)}>${this.getSelectedLanguageText(this.selectedLanguage)}</calcite-button>`}renderDropdownItems(){return this.locales?.map(e=>e.locale)?.map(e=>this.renderDropdownItem(e))}renderDropdownItem(e){let t=this.getSelectedLanguageText(e),a=e===this.selectedLanguage;return h(e,r`<calcite-dropdown-item .selected=${a} @calciteDropdownItemSelect=${this.calciteDropdownItemSelectCallback(e)}>${t}</calcite-dropdown-item>`)}};D("instant-apps-language-switcher",w);return w},"intl","WebMap",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.39 */
3
+ v1.2.0-next.40 */
4
4
  var o={user:"user",group:"group",groupAdmin:"group-admin",org:"org",orgAdmin:"org-admin",authenticated:"authenticated",anonymous:"anonymous",owner:"owner"};export{o as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.39 */
3
+ v1.2.0-next.40 */
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.39 */
4
- import{a as P}from"./WUDSDZT7.js";import{a as v}from"./UVOTALEM.js";import{a as F}from"./6HLRUCZG.js";import{b as U}from"./OCORZHZK.js";import"./HETORT6U.js";import"./LWSKZY3I.js";import{F as M,H as g,h as S,i as h,l as $,p as C}from"./2ES34Q6J.js";import"./UQH76H3R.js";export default $arcgis.t(([b,q,I,N])=>{var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),_=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(_||{}),L=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(L||{}),B=(a=>(a.Transparent="transparent",a))(B||{}),V=(a=>(a.Start="start",a.Center="center",a))(V||{}),R=S`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width:992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,T=`${x}--`,m=`${x}__`,j=P.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},D=class extends M{constructor(){super(...arguments),this._messages=F({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=C()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=R}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await b?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(b.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=new I([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{this.handles=new N,this.layers=new I([]),this.layerViews=new I([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,u=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:u,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],u=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=u;let y=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return y&&(d.timeExtent=y),d},c=()=>async i=>{let l=this.layerViews?.find(y=>y.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),u=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(u)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),u=d!==null,y=u?q.formatNumber(d,p):null,f=u?`${y}`:"";e[l].displayValue=f,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>b.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>b.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return b.watch(()=>this.view?.updating,()=>{b.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await b.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=b.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return v("instant-apps-scoreboard-base",h`<div class=${g(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${g(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?V.Start:V.Center,l=c?_.Left:_.Up,d=c?_.Right:_.Down,p={previous:l,next:d},u=o||e?_.Blank:p.previous,y=s||e?_.Blank:p.next,f={previous:o||e,next:s||e},E=B.Transparent,k=this.isMobile?L.Small:L.Large,w={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${u} .disabled=${f.previous} .alignment=${i} .scale=${k} .appearance=${E} .text=${w.previous??""} .label=${w.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${y} .disabled=${f.next} .alignment=${i} .scale=${k} .appearance=${E} .text=${w.next??""} .label=${w.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${g(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${g(r.item)}><span class=${g(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${g(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${g(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${T}calcite-`;return v(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${T}calcite-`,e=this._messages.loading;return v(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};U("instant-apps-scoreboard",D);return D},"core/reactiveUtils","intl","core/Collection","core/Handles")
3
+ v1.2.0-next.40 */
4
+ import{a as P}from"./XEN5U75R.js";import{a as v}from"./Z2MYKHNC.js";import{a as F}from"./5OA2SJVO.js";import{b as U}from"./ZOP5HNIE.js";import"./BD5LDFYB.js";import"./6JWM4HAN.js";import{F as M,H as g,h as S,i as h,l as $,p as C}from"./5HGT7YVW.js";import"./A6LCU65M.js";export default $arcgis.t(([b,q,I,N])=>{var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),_=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(_||{}),L=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(L||{}),B=(a=>(a.Transparent="transparent",a))(B||{}),V=(a=>(a.Start="start",a.Center="center",a))(V||{}),R=S`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width:992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,T=`${x}--`,m=`${x}__`,j=P.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},D=class extends M{constructor(){super(...arguments),this._messages=F({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=C()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=R}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await b?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(b.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=new I([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{this.handles=new N,this.layers=new I([]),this.layerViews=new I([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,u=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:u,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],u=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=u;let y=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return y&&(d.timeExtent=y),d},c=()=>async i=>{let l=this.layerViews?.find(y=>y.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),u=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(u)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),u=d!==null,y=u?q.formatNumber(d,p):null,f=u?`${y}`:"";e[l].displayValue=f,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>b.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>b.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return b.watch(()=>this.view?.updating,()=>{b.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await b.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=b.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return v("instant-apps-scoreboard-base",h`<div class=${g(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${g(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?V.Start:V.Center,l=c?_.Left:_.Up,d=c?_.Right:_.Down,p={previous:l,next:d},u=o||e?_.Blank:p.previous,y=s||e?_.Blank:p.next,f={previous:o||e,next:s||e},E=B.Transparent,k=this.isMobile?L.Small:L.Large,w={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${u} .disabled=${f.previous} .alignment=${i} .scale=${k} .appearance=${E} .text=${w.previous??""} .label=${w.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${y} .disabled=${f.next} .alignment=${i} .scale=${k} .appearance=${E} .text=${w.next??""} .label=${w.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${g(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${g(r.item)}><span class=${g(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${g(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${g(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${T}calcite-`;return v(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${T}calcite-`,e=this._messages.loading;return v(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};U("instant-apps-scoreboard",D);return D},"core/reactiveUtils","intl","core/Collection","core/Handles")
@@ -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.39 */
3
+ v1.2.0-next.40 */
4
4
  var s="calcite-mode-light",c="calcite-mode-dark";function a(e){let t=e?.closest(`.${c}, .${s}`);return t==null?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t?.classList.contains(c)?"dark":"light"}export{a};
@@ -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.39 */
4
- import{a as u}from"./BQ3F536M.js";import{a as m}from"./6HLRUCZG.js";import{b as d}from"./OCORZHZK.js";import"./HETORT6U.js";import"./LWSKZY3I.js";import{F as p,H as n,g as c,h as r,i as e,p as h}from"./2ES34Q6J.js";import"./UQH76H3R.js";function y(i){window?.localStorage.setItem(i,"false")}function f(i){return!!window?.localStorage?.getItem(i)}function g(i){window?.localStorage?.removeItem(i)}var _=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media(max-width:816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,a={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=this._createSanitizerInstance(),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=_}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:s}=this;s?t=this.open&&!f(s):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let s=t.target,{checked:o}=s;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:s}=this;if(!s)return;let o=t.target,{checked:b}=o;b?y(s):g(s)}}render(){return e`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${n(a.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${n(a.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&e`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${n(a.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,s=this.closeBehavior!=="confirmation"&&t&&f(t)?!0:null;return e`<div class=${n(a.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${s??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${n(a.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return e`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return e`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${this.secondaryButtonText}</calcite-button>`}_createSanitizerInstance(){return new u({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
3
+ v1.2.0-next.40 */
4
+ import{a as u}from"./KGXSXCRM.js";import{a as m}from"./5OA2SJVO.js";import{b as d}from"./ZOP5HNIE.js";import"./BD5LDFYB.js";import"./6JWM4HAN.js";import{F as p,H as n,g as c,h as r,i as e,p as h}from"./5HGT7YVW.js";import"./A6LCU65M.js";function y(i){window?.localStorage.setItem(i,"false")}function f(i){return!!window?.localStorage?.getItem(i)}function g(i){window?.localStorage?.removeItem(i)}var _=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media(max-width:816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,a={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=this._createSanitizerInstance(),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=_}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:s}=this;s?t=this.open&&!f(s):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let s=t.target,{checked:o}=s;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:s}=this;if(!s)return;let o=t.target,{checked:b}=o;b?y(s):g(s)}}render(){return e`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${n(a.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${n(a.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&e`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${n(a.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,s=this.closeBehavior!=="confirmation"&&t&&f(t)?!0:null;return e`<div class=${n(a.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${s??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${n(a.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return e`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return e`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${this.secondaryButtonText}</calcite-button>`}_createSanitizerInstance(){return new u({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
@@ -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.39 */
4
- import{c as a}from"./LPUIJYXX.js";import"./UQH76H3R.js";export{a as MetricSchema};
3
+ v1.2.0-next.40 */
4
+ import{c as a}from"./F3DJR3KS.js";import"./A6LCU65M.js";export{a as MetricSchema};
@@ -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.39 */
4
- import"./UQH76H3R.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.2.0-next.40 */
4
+ import"./A6LCU65M.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.39 */
4
- import{a as h}from"./6HLRUCZG.js";import{b as v}from"./OCORZHZK.js";import"./HETORT6U.js";import"./LWSKZY3I.js";import{D as m,E as d,F as u,H as i,h as n,i as l,p as r,s as p}from"./2ES34Q6J.js";import"./UQH76H3R.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
3
+ v1.2.0-next.40 */
4
+ import{a as h}from"./5OA2SJVO.js";import{b as v}from"./ZOP5HNIE.js";import"./BD5LDFYB.js";import"./6JWM4HAN.js";import{D as m,E as d,F as u,H as i,h as n,i as l,p as r,s as p}from"./5HGT7YVW.js";import"./A6LCU65M.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
@@ -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.39 */
4
- import{b as p,d as a,e as h,f as E}from"./IR4NISLP.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
3
+ v1.2.0-next.40 */
4
+ import{b as p,d as a,e as h,f as E}from"./JRZLCTS4.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
@@ -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.39 */
4
- import{b as c}from"./S7GXXB2P.js";import{D as n,E as h,F as d,h as r,i as o,p as i}from"./2ES34Q6J.js";import"./UQH76H3R.js";export default $arcgis.t(([m,s])=>{var p=r`/** @license
3
+ v1.2.0-next.40 */
4
+ import{b as c}from"./ZZ4ENTL4.js";import{D as n,E as h,F as d,h as r,i as o,p as i}from"./5HGT7YVW.js";import"./A6LCU65M.js";export default $arcgis.t(([m,s])=>{var p=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");