@esri/solutions-components 1.0.5 → 1.0.6

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 (388) hide show
  1. package/dist/cdn/{WBAN3UIC.js → 22SEAIC6.js} +2 -2
  2. package/dist/cdn/{HPUAGDRV.js → 26THV7PU.js} +2 -2
  3. package/dist/cdn/{DO5IRX2P.js → 2A54WJLL.js} +2 -2
  4. package/dist/cdn/{XK7SWBXE.js → 2ACF42ZR.js} +2 -2
  5. package/dist/cdn/{M7HD332R.js → 2C7UE46M.js} +1 -1
  6. package/dist/cdn/{M3L66GKK.js → 2CLEIN6Y.js} +2 -2
  7. package/dist/cdn/{SMY4IACN.js → 2CO6LGS3.js} +2 -2
  8. package/dist/cdn/{QU55HNGY.js → 2ESDNOLP.js} +2 -2
  9. package/dist/cdn/{AQZ3QIKE.js → 2IVXEYYO.js} +2 -2
  10. package/dist/cdn/{AYDTR35F.js → 2NJLBLNN.js} +2 -2
  11. package/dist/cdn/{GE2KFI4B.js → 2T6B7XX3.js} +2 -2
  12. package/dist/cdn/{GKBVNMEW.js → 2TLMYAKF.js} +2 -2
  13. package/dist/cdn/{LUCYOE4G.js → 2URV24QB.js} +2 -2
  14. package/dist/cdn/{GJ2UG6YP.js → 2WMXCGJ6.js} +2 -2
  15. package/dist/cdn/{UVRRN3AM.js → 2XQB5N5F.js} +2 -2
  16. package/dist/cdn/{UISRG6AV.js → 3MOEHDA6.js} +2 -2
  17. package/dist/cdn/{VTS75E4I.js → 3QP57WZY.js} +2 -2
  18. package/dist/cdn/{D2SOXDMW.js → 3RW2NBPF.js} +2 -2
  19. package/dist/cdn/{V3XFBVJ2.js → 3SJSHFDQ.js} +2 -2
  20. package/dist/cdn/{NNNUOKAQ.js → 3VN45O3V.js} +2 -2
  21. package/dist/cdn/{N5MNRNS4.js → 3XGPYKD3.js} +2 -2
  22. package/dist/cdn/{IVWP7URA.js → 46LGQEFB.js} +2 -2
  23. package/dist/cdn/{PSUWSWTK.js → 47HUGK47.js} +2 -2
  24. package/dist/cdn/{HR2HFJXC.js → 4ASSBQRJ.js} +1 -1
  25. package/dist/cdn/{2QFMILDU.js → 4CVEF3SI.js} +2 -2
  26. package/dist/cdn/{CBITJT5D.js → 4JAS7M3U.js} +4 -4
  27. package/dist/cdn/{6U4PV22I.js → 4OXHTSNR.js} +1 -1
  28. package/dist/cdn/{MTDAXKJA.js → 4SEEFYPD.js} +1 -1
  29. package/dist/cdn/{A4L4EUDH.js → 4YK53WB6.js} +2 -2
  30. package/dist/cdn/{RMU2WXMJ.js → 547GZYOP.js} +2 -2
  31. package/dist/cdn/{76JQ5L7D.js → 55NQUWEY.js} +1 -1
  32. package/dist/cdn/{M4VZ4CMY.js → 5AW5NLLI.js} +2 -2
  33. package/dist/cdn/{ML3FDA7I.js → 5BK4CWOX.js} +2 -2
  34. package/dist/cdn/{IAHPQU5I.js → 5DAI66LT.js} +2 -2
  35. package/dist/cdn/{43R5NRNV.js → 5M5TLNGP.js} +1 -1
  36. package/dist/cdn/{EV22N3KD.js → 5MXFQYLE.js} +2 -2
  37. package/dist/cdn/{2LVUHNL4.js → 5S66UFIB.js} +2 -2
  38. package/dist/cdn/5YO5OS74.js +4 -0
  39. package/dist/cdn/{2IRIOH44.js → 62WQV5YC.js} +2 -2
  40. package/dist/cdn/{PKKVL46F.js → 6424ZLL7.js} +2 -2
  41. package/dist/cdn/{25JM7WUJ.js → 65HTNVVT.js} +2 -2
  42. package/dist/cdn/{OORGXTFY.js → 6AJKPURT.js} +2 -2
  43. package/dist/cdn/{ZUQZHS53.js → 6CG6AANG.js} +2 -2
  44. package/dist/cdn/{IMYZB3YV.js → 6IIAYEYM.js} +2 -2
  45. package/dist/cdn/{QZAU4Z6W.js → 7BU5DV4Q.js} +2 -2
  46. package/dist/cdn/{7OZSPB2F.js → 7CNMLAFT.js} +2 -2
  47. package/dist/cdn/{FFJCM7BG.js → 7DOQHPCH.js} +2 -2
  48. package/dist/cdn/{ZLTHON4G.js → 7H3KZPHJ.js} +2 -2
  49. package/dist/cdn/{PLTCACVO.js → 7I736LZK.js} +2 -2
  50. package/dist/cdn/{FKCBARKI.js → 7ME4UIGX.js} +2 -2
  51. package/dist/cdn/{HOTDMMJJ.js → 7MOURTYJ.js} +2 -2
  52. package/dist/cdn/{XFM3FD2A.js → 7YYOJP6L.js} +2 -2
  53. package/dist/cdn/{4527TPFQ.js → A3WJQEV7.js} +1 -1
  54. package/dist/cdn/{6LUI2X3G.js → A57HOD63.js} +2 -2
  55. package/dist/cdn/{TKDGIQNC.js → AB3FQQCW.js} +2 -2
  56. package/dist/cdn/{HRBMV6MS.js → ALV3VZWM.js} +2 -2
  57. package/dist/cdn/{JMMD7YBL.js → AMVC3HZO.js} +2 -2
  58. package/dist/cdn/{33UPFZYZ.js → AVVTO725.js} +2 -2
  59. package/dist/cdn/{SCOCPPIV.js → B6GTZILX.js} +2 -2
  60. package/dist/cdn/{QVLJY52I.js → B7B7CVVL.js} +2 -2
  61. package/dist/cdn/BIFHOJDA.js +4 -0
  62. package/dist/cdn/{EL5KWKMD.js → BIVE3ZGY.js} +2 -2
  63. package/dist/cdn/{5CGYAFLG.js → BJ6DOG6H.js} +2 -2
  64. package/dist/cdn/{VXJY4QCS.js → BLS4G62F.js} +2 -2
  65. package/dist/cdn/{PWM7PIST.js → BNYADJK7.js} +2 -2
  66. package/dist/cdn/BVZ2O4L5.js +4 -0
  67. package/dist/cdn/{TENNMXGF.js → BYJRAAEE.js} +1 -1
  68. package/dist/cdn/{7YFBO4YO.js → CHYWNBKA.js} +2 -2
  69. package/dist/cdn/{J252EEIH.js → CMN7YBVU.js} +2 -2
  70. package/dist/cdn/{AXDYNDWC.js → CNAEZ5PG.js} +1 -1
  71. package/dist/cdn/{M35TRRGF.js → CPO6UAZQ.js} +1 -1
  72. package/dist/cdn/{5JYWXCER.js → D2EREVL4.js} +2 -2
  73. package/dist/cdn/{RWQELBMY.js → D5OHP7NT.js} +2 -2
  74. package/dist/cdn/{6N7ZWEZT.js → D6XX6KWD.js} +2 -2
  75. package/dist/cdn/{OZWDP6Y7.js → DAJFINWG.js} +2 -2
  76. package/dist/cdn/{Z4FNCV4E.js → DUJNFEQ6.js} +2 -2
  77. package/dist/cdn/{SUSAZ65X.js → EAA2PB5H.js} +2 -2
  78. package/dist/cdn/{NTJ65ON3.js → ECMZSRUN.js} +2 -2
  79. package/dist/cdn/{LG2N3IDQ.js → EFBCF4LP.js} +2 -2
  80. package/dist/cdn/{35ZVLYI7.js → EJEJMEGK.js} +2 -2
  81. package/dist/cdn/{CFPXLHXR.js → EKVRW3FM.js} +2 -2
  82. package/dist/cdn/{EEECQWVR.js → ESBUX6NR.js} +2 -2
  83. package/dist/cdn/{7B2MAX64.js → ESYYQOPE.js} +1 -1
  84. package/dist/cdn/{2BDPGGKC.js → EXGOSSST.js} +2 -2
  85. package/dist/cdn/{YQFYU4G2.js → EXPAYLFV.js} +2 -2
  86. package/dist/cdn/{5TRSWX6M.js → EZ4U6AGL.js} +2 -2
  87. package/dist/cdn/{EPYFVSXR.js → F243JFYJ.js} +2 -2
  88. package/dist/cdn/{5JHZFHQW.js → F2QHZOXB.js} +2 -2
  89. package/dist/cdn/{UZTSBHXN.js → FH3SI764.js} +2 -2
  90. package/dist/cdn/{O4U6ZUNI.js → FHIBMCQA.js} +2 -2
  91. package/dist/cdn/{22F7LFMG.js → FIDPLPEF.js} +2 -2
  92. package/dist/cdn/{TYVJSPBM.js → FV3U3YJ6.js} +2 -2
  93. package/dist/cdn/{CJFK6TKW.js → G6EIQMVR.js} +2 -2
  94. package/dist/cdn/{RIQFARZP.js → GDYIFL6J.js} +2 -2
  95. package/dist/cdn/{EW3T5VLB.js → GGI3REJL.js} +2 -2
  96. package/dist/cdn/{FLX4QZPY.js → GHXC6C2C.js} +2 -2
  97. package/dist/cdn/{65NNPWV7.js → GO42R2CK.js} +1 -1
  98. package/dist/cdn/{VOFDMTBC.js → GZEJGYES.js} +2 -2
  99. package/dist/cdn/{VCL4EPUN.js → HGXPDXCR.js} +2 -2
  100. package/dist/cdn/{UUY24OGE.js → HJIGIFOQ.js} +2 -2
  101. package/dist/cdn/{WZ764LLN.js → HQIAA5ZR.js} +1 -1
  102. package/dist/cdn/{HM7EBFPG.js → HUCFHRHI.js} +2 -2
  103. package/dist/cdn/{IFPYTV3R.js → HVATWN37.js} +1 -1
  104. package/dist/cdn/{RVTHLBJL.js → HYALTA6M.js} +2 -2
  105. package/dist/cdn/{VIRNYXF5.js → I2VKZ5OH.js} +2 -2
  106. package/dist/cdn/{EJ7VKYZG.js → I657I5LG.js} +2 -2
  107. package/dist/cdn/{HZILY6RQ.js → I65O4DPY.js} +2 -2
  108. package/dist/cdn/{ODVL6BLS.js → IBB2E74R.js} +2 -2
  109. package/dist/cdn/{2A6DDRTH.js → IEAQX2G7.js} +2 -2
  110. package/dist/cdn/{TIUXVXYM.js → IHZQS7G5.js} +2 -2
  111. package/dist/cdn/{4SF42JCK.js → IPYR6HZK.js} +2 -2
  112. package/dist/cdn/{7244YR36.js → IRV3QYFT.js} +2 -2
  113. package/dist/cdn/{UDYWBQQB.js → IWNKMVAS.js} +2 -2
  114. package/dist/cdn/{JOWT5YJ4.js → IY23MDOC.js} +2 -2
  115. package/dist/cdn/{H3C4GIDZ.js → J64IOAQO.js} +2 -2
  116. package/dist/cdn/{D2UIHI5N.js → J6ENWA7R.js} +2 -2
  117. package/dist/cdn/{AHHA6SMZ.js → JAO6QZJO.js} +2 -2
  118. package/dist/cdn/{MVAWCLJQ.js → JFYTC7KL.js} +2 -2
  119. package/dist/cdn/{W7HZRPHM.js → JKJC7XFT.js} +2 -2
  120. package/dist/cdn/{VUZA56M3.js → JKX35XOC.js} +2 -2
  121. package/dist/cdn/{DHVPMGLT.js → JNUBPQVQ.js} +2 -2
  122. package/dist/cdn/{G2PAP4HL.js → JRU7OOCQ.js} +2 -2
  123. package/dist/cdn/{WFUAPKTB.js → JTAN45P3.js} +2 -2
  124. package/dist/cdn/{7ATYJT4O.js → JTKT3XWL.js} +2 -2
  125. package/dist/cdn/{PGB7D5V5.js → K3SH7RK6.js} +2 -2
  126. package/dist/cdn/{CXOHKJLR.js → KCFSZOBX.js} +1 -1
  127. package/dist/cdn/{PJSBBGLJ.js → KDP6FDXS.js} +2 -2
  128. package/dist/cdn/{2RWXUIPE.js → KOI7FBWC.js} +2 -2
  129. package/dist/cdn/{OTYGSW7W.js → KOWTHDEB.js} +2 -2
  130. package/dist/cdn/{ZRLT4TEH.js → KURSJGVA.js} +2 -2
  131. package/dist/cdn/{YC7HMH6M.js → KV5PYIUB.js} +2 -2
  132. package/dist/cdn/{AYND4SCK.js → L3LGCXHS.js} +1 -1
  133. package/dist/cdn/{DSA7P4FN.js → L4MTDEUA.js} +2 -2
  134. package/dist/cdn/{QQPQDFEM.js → LA3N6LZH.js} +2 -2
  135. package/dist/cdn/{5S2FZKYO.js → LBZLGIWD.js} +2 -2
  136. package/dist/cdn/{ZY74MRCW.js → LGOLEOFG.js} +2 -2
  137. package/dist/cdn/{3IMXMLFS.js → LHXHL3RB.js} +2 -2
  138. package/dist/cdn/LJSLZOAW.js +4 -0
  139. package/dist/cdn/{QNXFXUZA.js → LJV6DE44.js} +2 -2
  140. package/dist/cdn/{KJOPUX6H.js → LKBUXCMF.js} +2 -2
  141. package/dist/cdn/{YEFAWRXP.js → LOL2WTGD.js} +2 -2
  142. package/dist/cdn/{IHQISHAM.js → LOVLAODG.js} +2 -2
  143. package/dist/cdn/{WCEUO2OS.js → LP4BQM2H.js} +2 -2
  144. package/dist/cdn/{XYGVP2FK.js → LVAZCCYX.js} +2 -2
  145. package/dist/cdn/{XXM424DO.js → M3F2PRVV.js} +2 -2
  146. package/dist/cdn/{FZV7IALP.js → M3ZMKHJ2.js} +2 -2
  147. package/dist/cdn/{B4PHULG7.js → MI37N43V.js} +2 -2
  148. package/dist/cdn/{GUN44VYU.js → MNPZD4I5.js} +2 -2
  149. package/dist/cdn/{S6GQFWK7.js → MSGDDP7Y.js} +2 -2
  150. package/dist/cdn/{QP26HSVE.js → MXCKPU23.js} +1 -1
  151. package/dist/cdn/{JUVS4QTT.js → N5K33ZZT.js} +2 -2
  152. package/dist/cdn/{HCCTS5WV.js → N65S4NHY.js} +2 -2
  153. package/dist/cdn/{GFTMWJE2.js → N7ACGWAI.js} +2 -2
  154. package/dist/cdn/{RYQCNLW7.js → NCSI6ZKY.js} +2 -2
  155. package/dist/cdn/{PNZFKJGE.js → NCYI3FJ4.js} +2 -2
  156. package/dist/cdn/{DCYHSAL2.js → NGDTJRWQ.js} +2 -2
  157. package/dist/cdn/{RC3IVWI3.js → NJBDDFNX.js} +1 -1
  158. package/dist/cdn/{ZLU7K6TK.js → NNO7ZI7X.js} +2 -2
  159. package/dist/cdn/{S5TXHJGZ.js → NP7OH2ZI.js} +2 -2
  160. package/dist/cdn/{SBX54Z43.js → NRUKSPT4.js} +2 -2
  161. package/dist/cdn/{7M5YUYGE.js → NSCQHAM7.js} +2 -2
  162. package/dist/cdn/{QH2LKILS.js → NZ42ZTHT.js} +2 -2
  163. package/dist/cdn/{CXN63GPC.js → O5OQYVQ3.js} +2 -2
  164. package/dist/cdn/{AC7K2P6S.js → O6X34RFQ.js} +2 -2
  165. package/dist/cdn/{HNUCWI6T.js → OMFYWQSY.js} +2 -2
  166. package/dist/cdn/{IMFE25FS.js → OTBZT6CE.js} +2 -2
  167. package/dist/cdn/{WIVOL6CT.js → OTQ4RPLU.js} +1 -1
  168. package/dist/cdn/{VLNWSZVR.js → OUA6OKHZ.js} +2 -2
  169. package/dist/cdn/{Q66CZJP6.js → P27R335T.js} +1 -1
  170. package/dist/cdn/{WNFUARBO.js → P3YZSASH.js} +2 -2
  171. package/dist/cdn/{AOOQAYSR.js → P473G3UD.js} +2 -2
  172. package/dist/cdn/{WQKEPPJH.js → P7J4L36T.js} +1 -1
  173. package/dist/cdn/{OGRHFK6Y.js → PAPULN5H.js} +2 -2
  174. package/dist/cdn/{4ULTYKHN.js → PEW7EK74.js} +2 -2
  175. package/dist/cdn/{IS4CHLDX.js → PKBDH7MF.js} +2 -2
  176. package/dist/cdn/{OQJGVRY2.js → PNHNT6BL.js} +2 -2
  177. package/dist/cdn/{4UCCOTIL.js → PVPNQBWZ.js} +2 -2
  178. package/dist/cdn/{C6WPV722.js → PXPVE3JE.js} +2 -2
  179. package/dist/cdn/{UCI3QQAA.js → Q2VYZCZY.js} +1 -1
  180. package/dist/cdn/{5WAZGRRD.js → Q2YCPZOX.js} +2 -2
  181. package/dist/cdn/{CDBDE4TC.js → Q6HRIABM.js} +2 -2
  182. package/dist/cdn/{MO5VIHBL.js → Q6U6FUMJ.js} +2 -2
  183. package/dist/cdn/{MK7N6OTA.js → QCT6FXMR.js} +1 -1
  184. package/dist/cdn/{NTSPFMPN.js → QD76ALH3.js} +2 -2
  185. package/dist/cdn/{TVGUICDI.js → QMREQGH3.js} +2 -2
  186. package/dist/cdn/{3LJQBCLM.js → QP35PXG2.js} +2 -2
  187. package/dist/cdn/{EHUPQ5JP.js → QR6JZJTO.js} +2 -2
  188. package/dist/cdn/{B2AAEHPJ.js → QRBQ5KHF.js} +1 -1
  189. package/dist/cdn/QSOTGUOZ.js +4 -0
  190. package/dist/cdn/{W3GV4JXP.js → QZIAEDXM.js} +1 -1
  191. package/dist/cdn/{TXB56MNF.js → R5YJMFXC.js} +2 -2
  192. package/dist/cdn/{G56M322A.js → RGTPM7HZ.js} +2 -2
  193. package/dist/cdn/{2VXYY4NW.js → ROJGI2W3.js} +1 -1
  194. package/dist/cdn/{ZV3QGDX6.js → RRMHR2HB.js} +2 -2
  195. package/dist/cdn/{KQPN7NFG.js → RV65ILJG.js} +2 -2
  196. package/dist/cdn/{XU3KAISP.js → RZUGSVMP.js} +1 -1
  197. package/dist/cdn/{LIXHHHMQ.js → S7NFYQWB.js} +1 -1
  198. package/dist/cdn/{SHWG5PCG.js → SEVP5RIV.js} +2 -2
  199. package/dist/cdn/{KUFJAMWI.js → SIUHVSRB.js} +2 -2
  200. package/dist/cdn/{7NMV3XFP.js → SM2GUROD.js} +1 -1
  201. package/dist/cdn/{HKKUMEH5.js → STUHZQEZ.js} +1 -1
  202. package/dist/cdn/{R5UFCXCH.js → SVFIF3T3.js} +2 -2
  203. package/dist/cdn/{YXHSDCRJ.js → SXP3TCP2.js} +2 -2
  204. package/dist/cdn/{H72WOGJ7.js → SXZVPSYN.js} +2 -2
  205. package/dist/cdn/{T6PMIZLP.js → SZDHEJ35.js} +2 -2
  206. package/dist/cdn/T3WZ5RIH.js +4 -0
  207. package/dist/cdn/{S3AWAGTI.js → T5JHR5GE.js} +2 -2
  208. package/dist/cdn/{GFTGPFHL.js → T6ZDTQ2A.js} +2 -2
  209. package/dist/cdn/{W7Z3ORQY.js → TGWWWSMN.js} +2 -2
  210. package/dist/cdn/{G7LK4PDL.js → THIMASMK.js} +2 -2
  211. package/dist/cdn/{UITEOOYI.js → TTOMCAES.js} +1 -1
  212. package/dist/cdn/{4J5HYMPQ.js → TWADDFKI.js} +2 -2
  213. package/dist/cdn/{KQIW24JY.js → TY5HNZTA.js} +2 -2
  214. package/dist/cdn/{7WZE34BF.js → U4QKTJ5K.js} +2 -2
  215. package/dist/cdn/{E4626BS2.js → U4WC6C2F.js} +2 -2
  216. package/dist/cdn/{PP6K5WOA.js → UASHMMAZ.js} +2 -2
  217. package/dist/cdn/{DC2VXLYA.js → UDLYWYW6.js} +2 -2
  218. package/dist/cdn/{TA3ZXQAF.js → UESCD5AB.js} +2 -2
  219. package/dist/cdn/{AGGLKLN3.js → UI236QD6.js} +2 -2
  220. package/dist/cdn/{5QHONC74.js → UKYKTZWK.js} +2 -2
  221. package/dist/cdn/{Z4WD3SG2.js → UMSXHNKH.js} +1 -1
  222. package/dist/cdn/{DZ75SULS.js → UR4O5D7C.js} +2 -2
  223. package/dist/cdn/{QUCDVIOQ.js → UUCDGMFW.js} +2 -2
  224. package/dist/cdn/{H36GDFY7.js → UV2M2RAL.js} +1 -1
  225. package/dist/cdn/{Z3XBAPZC.js → UWXNPHTE.js} +1 -1
  226. package/dist/cdn/{N54CIKSY.js → V434XRYU.js} +2 -2
  227. package/dist/cdn/{MURI73WZ.js → V73IDRPZ.js} +2 -2
  228. package/dist/cdn/{OG4FHSPI.js → VA7UARYI.js} +1 -1
  229. package/dist/cdn/{25FEJN5O.js → VBSXEYLV.js} +2 -2
  230. package/dist/cdn/{JAMFZUE3.js → VHDIRVUR.js} +2 -2
  231. package/dist/cdn/{BRSXWNGO.js → VOHSJZCI.js} +2 -2
  232. package/dist/cdn/{TNEFDIIG.js → VP2MDCXM.js} +2 -2
  233. package/dist/cdn/{CGZZGJLP.js → VPHAMFNI.js} +2 -2
  234. package/dist/cdn/{GGBJCIO7.js → VQ65EGUC.js} +2 -2
  235. package/dist/cdn/{IREZCPC5.js → VVGYJHF7.js} +2 -2
  236. package/dist/cdn/{JJJAHCRO.js → VW6GSY2U.js} +2 -2
  237. package/dist/cdn/{VJF6Y7HU.js → WAPUSBNS.js} +2 -2
  238. package/dist/cdn/{5WNLR3DS.js → WE2YJ72U.js} +2 -2
  239. package/dist/cdn/{WV2ZROZJ.js → WH6W2UP3.js} +2 -2
  240. package/dist/cdn/{IPXTSW43.js → WIDXS23Z.js} +2 -2
  241. package/dist/cdn/{36RPCHBW.js → WLSDNFCT.js} +2 -2
  242. package/dist/cdn/{6XYUDJQ2.js → WLSI7POK.js} +1 -1
  243. package/dist/cdn/{WZYGUEIV.js → WPAFQXGE.js} +2 -2
  244. package/dist/cdn/{34BPQSHF.js → WPVYE7FE.js} +2 -2
  245. package/dist/cdn/{7NDRZHL6.js → WQF5CITX.js} +2 -2
  246. package/dist/cdn/{QBIXFYYE.js → WSCCQ5U4.js} +1 -1
  247. package/dist/cdn/WV5BUD4Z.js +4 -0
  248. package/dist/cdn/{H4HFWY3H.js → X6L4PHXI.js} +2 -2
  249. package/dist/cdn/{7OEQCUDV.js → X6YLW36Y.js} +1 -1
  250. package/dist/cdn/{2TT2EKLS.js → X7KYTABF.js} +2 -2
  251. package/dist/cdn/{XFANWHPY.js → XAAGW7YF.js} +2 -2
  252. package/dist/cdn/{ZEPG4DE3.js → XCEE3SEK.js} +2 -2
  253. package/dist/cdn/{EX6HJQ4X.js → XDZ5DDWA.js} +2 -2
  254. package/dist/cdn/{JRMGFAZK.js → XGGAVQTC.js} +2 -2
  255. package/dist/cdn/{3RLVYGV7.js → XLXUXKG6.js} +2 -2
  256. package/dist/cdn/{YMUVFR3U.js → XNPZJ7V4.js} +2 -2
  257. package/dist/cdn/{ONL3NL26.js → XOCETJCR.js} +2 -2
  258. package/dist/cdn/{M6GEH5RY.js → XORA7HCU.js} +2 -2
  259. package/dist/cdn/{D3RXCR6Q.js → XR3GB5SE.js} +1 -1
  260. package/dist/cdn/{UR7ODANG.js → XW6O3WSI.js} +2 -2
  261. package/dist/cdn/{OOX6G6UE.js → XXU7NGZI.js} +2 -2
  262. package/dist/cdn/{FQTZU3Z2.js → Y4CRJWJF.js} +2 -2
  263. package/dist/cdn/{5LOTR4DW.js → Y4RVCE5F.js} +2 -2
  264. package/dist/cdn/{QYU6USHT.js → Y5TEYKUG.js} +2 -2
  265. package/dist/cdn/{RCDWSNVF.js → Y6FNQ642.js} +2 -2
  266. package/dist/cdn/{D2XDABCT.js → YBIF6TAJ.js} +2 -2
  267. package/dist/cdn/{76DZHGT4.js → YIO2CSY3.js} +2 -2
  268. package/dist/cdn/{FDNO4BVO.js → YM6G3EU3.js} +2 -2
  269. package/dist/cdn/{CYHKUA3T.js → YQ4UFRN4.js} +2 -2
  270. package/dist/cdn/{Q5QONQ6T.js → YQE7AUFT.js} +2 -2
  271. package/dist/cdn/{56FAI7QX.js → YRBPGBT5.js} +2 -2
  272. package/dist/cdn/{SH3RI2GK.js → YSIFIKOE.js} +2 -2
  273. package/dist/cdn/{I3SHQQXU.js → YUWAB65A.js} +2 -2
  274. package/dist/cdn/{U4LWP3KK.js → YVJDVYGA.js} +1 -1
  275. package/dist/cdn/{TBU33TUJ.js → YWZCXS4Z.js} +2 -2
  276. package/dist/cdn/{I3ZD6IV4.js → YZCZUMV2.js} +1 -1
  277. package/dist/cdn/{H3FM5UM6.js → Z5RJQBZY.js} +1 -1
  278. package/dist/cdn/{AYBHICHM.js → ZDKRS7QS.js} +2 -2
  279. package/dist/cdn/{WCVUN6XF.js → ZETWXE6M.js} +2 -2
  280. package/dist/cdn/{5K5LGI4X.js → ZS2IQNQO.js} +2 -2
  281. package/dist/cdn/ZTVPU2LX.js +4 -0
  282. package/dist/cdn/{WIE3EFBI.js → ZWW6ZGXP.js} +2 -2
  283. package/dist/cdn/{64ETTMNQ.js → ZWYST46E.js} +2 -2
  284. package/dist/cdn/{UMIQ4XRZ.js → ZZ4UGIDE.js} +2 -2
  285. package/dist/cdn/index.js +2 -2
  286. package/dist/chunks/Auth.js +1 -1
  287. package/dist/chunks/appConfig.js +1 -1
  288. package/dist/chunks/cardFetchingUtils.js +1 -1
  289. package/dist/chunks/common.js +1 -1
  290. package/dist/chunks/deployAppContexts.js +1 -1
  291. package/dist/chunks/downloadUtils.js +1 -1
  292. package/dist/chunks/helpers.js +1 -1
  293. package/dist/chunks/index.js +1 -1
  294. package/dist/chunks/interfaces.js +1 -1
  295. package/dist/chunks/loadModules.js +1 -1
  296. package/dist/chunks/mapViewUtils.js +1 -1
  297. package/dist/chunks/pciUtils.js +1 -1
  298. package/dist/chunks/popupUtils.js +1 -1
  299. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  300. package/dist/chunks/privilegeUtils.js +1 -1
  301. package/dist/chunks/publicNotificationStore.js +1 -1
  302. package/dist/chunks/queryUtils.js +1 -1
  303. package/dist/chunks/runtime.js +1 -1
  304. package/dist/chunks/solution-store.js +1 -1
  305. package/dist/chunks/templates.js +1 -1
  306. package/dist/chunks/useT9n.js +1 -1
  307. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  308. package/dist/components/basemap-gallery/customElement.js +1 -1
  309. package/dist/components/buffer-tools/customElement.js +1 -1
  310. package/dist/components/card-manager/customElement.js +1 -1
  311. package/dist/components/consent-manager/customElement.js +1 -1
  312. package/dist/components/create-feature/customElement.js +1 -1
  313. package/dist/components/create-related-feature/customElement.js +1 -1
  314. package/dist/components/crowdsource-manager/customElement.js +1 -1
  315. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  316. package/dist/components/deduct-calculator/customElement.js +1 -1
  317. package/dist/components/delete-button/customElement.js +1 -1
  318. package/dist/components/delete-dialog/customElement.js +1 -1
  319. package/dist/components/edit-card/customElement.js +1 -1
  320. package/dist/components/feature-details/customElement.js +1 -1
  321. package/dist/components/feature-list/customElement.js +1 -1
  322. package/dist/components/field-selection/customElement.js +1 -1
  323. package/dist/components/floor-filter/customElement.js +1 -1
  324. package/dist/components/info-card/customElement.js +1 -1
  325. package/dist/components/json-editor/customElement.js +1 -1
  326. package/dist/components/layer-list/customElement.js +1 -1
  327. package/dist/components/layer-table/customElement.js +1 -1
  328. package/dist/components/map-card/customElement.js +1 -1
  329. package/dist/components/map-draw-tools/customElement.js +1 -1
  330. package/dist/components/map-fullscreen/customElement.js +1 -1
  331. package/dist/components/map-layer-picker/customElement.js +1 -1
  332. package/dist/components/map-legend/customElement.js +1 -1
  333. package/dist/components/map-picker/customElement.js +1 -1
  334. package/dist/components/map-search/customElement.js +1 -1
  335. package/dist/components/map-select-tools/customElement.js +1 -1
  336. package/dist/components/map-tools/customElement.js +1 -1
  337. package/dist/components/pci-calculator/customElement.js +1 -1
  338. package/dist/components/pdf-download/customElement.js +1 -1
  339. package/dist/components/public-notification/customElement.js +1 -1
  340. package/dist/components/refine-selection/customElement.js +1 -1
  341. package/dist/components/selection-tool/customElement.js +1 -1
  342. package/dist/components/solution-article-card/customElement.js +1 -1
  343. package/dist/components/solution-configuration/customElement.js +1 -1
  344. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  345. package/dist/components/solution-configure-titles/customElement.js +1 -1
  346. package/dist/components/solution-contents/customElement.js +1 -1
  347. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  348. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  349. package/dist/components/solution-deployed-card/customElement.js +1 -1
  350. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  351. package/dist/components/solution-details-card/customElement.js +1 -1
  352. package/dist/components/solution-details-panel/customElement.js +1 -1
  353. package/dist/components/solution-item/customElement.js +1 -1
  354. package/dist/components/solution-item-accordion/customElement.js +1 -1
  355. package/dist/components/solution-item-details/customElement.js +1 -1
  356. package/dist/components/solution-item-diagram/customElement.js +1 -1
  357. package/dist/components/solution-item-icon/customElement.js +1 -1
  358. package/dist/components/solution-item-sharing/customElement.js +1 -1
  359. package/dist/components/solution-organization-variables/customElement.js +1 -1
  360. package/dist/components/solution-resource-item/customElement.js +1 -1
  361. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  362. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  363. package/dist/components/solution-template-data/customElement.js +1 -1
  364. package/dist/components/solution-variables/customElement.js +1 -1
  365. package/dist/components/solutions-all-panel/customElement.js +1 -1
  366. package/dist/components/solutions-all-shell/customElement.js +1 -1
  367. package/dist/components/solutions-article-panel/customElement.js +1 -1
  368. package/dist/components/solutions-articles/customElement.js +1 -1
  369. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  370. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  371. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  372. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  373. package/dist/components/spatial-ref/customElement.js +1 -1
  374. package/dist/components/store-manager/customElement.js +1 -1
  375. package/dist/docs/api.json +1 -1
  376. package/dist/docs/docs.json +1 -1
  377. package/dist/docs/web-types.json +1 -1
  378. package/dist/index.js +1 -1
  379. package/dist/loader.js +1 -1
  380. package/package.json +1 -1
  381. package/dist/cdn/4HAO722I.js +0 -4
  382. package/dist/cdn/B5754CLI.js +0 -4
  383. package/dist/cdn/DP2E5JFM.js +0 -4
  384. package/dist/cdn/JYDRZHOB.js +0 -4
  385. package/dist/cdn/TTDNDVCB.js +0 -4
  386. package/dist/cdn/VH4DOQZ4.js +0 -4
  387. package/dist/cdn/WBRXMEMP.js +0 -4
  388. package/dist/cdn/WN54HJON.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{c as f}from"./H36GDFY7.js";import{a,b as s}from"./OZWDP6Y7.js";import{a as g}from"./TA3ZXQAF.js";import{D as m,c as r,d as i,n as d,x as p,y as h,z as u}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var w=r`/** @license
3
+ v1.0.6 */
4
+ import{c as f}from"./UV2M2RAL.js";import{a,b as s}from"./DAJFINWG.js";import{a as g}from"./UESCD5AB.js";import{D as m,c as r,d as i,n as d,x as p,y as h,z as u}from"./XR3GB5SE.js";import"./TTOMCAES.js";var w=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as Y}from"./2IRIOH44.js";import{a as F}from"./M7HD332R.js";import{a as w}from"./22F7LFMG.js";import{a as J}from"./XK7SWBXE.js";import{a as W,b as H}from"./64ETTMNQ.js";import{d as N,g as B,h as V,i as X}from"./RIQFARZP.js";import{b as h,c as E}from"./TVGUICDI.js";import{m as u,p as T}from"./GKBVNMEW.js";import"./43R5NRNV.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import{b as S,d as C,f as R}from"./2VXYY4NW.js";import"./65NNPWV7.js";import{i as j}from"./GFTGPFHL.js";import"./OG4FHSPI.js";import{a as m,c as M,e as P,i as l}from"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./2QFMILDU.js";import"./EEECQWVR.js";import{a as A,b as O}from"./S5TXHJGZ.js";import{s as L}from"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import{a as f}from"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import{b as g}from"./Z3XBAPZC.js";import"./UITEOOYI.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
3
+ v1.0.6 */
4
+ import{a as Y}from"./62WQV5YC.js";import{a as F}from"./2C7UE46M.js";import{a as w}from"./FIDPLPEF.js";import{a as J}from"./2ACF42ZR.js";import{a as W,b as H}from"./ZWYST46E.js";import{d as N,g as B,h as V,i as X}from"./GDYIFL6J.js";import{b as h,c as E}from"./QMREQGH3.js";import{m as u,p as T}from"./2TLMYAKF.js";import"./5M5TLNGP.js";import"./LOVLAODG.js";import"./P27R335T.js";import{b as S,d as C,f as R}from"./ROJGI2W3.js";import"./GO42R2CK.js";import{i as j}from"./T6ZDTQ2A.js";import"./VA7UARYI.js";import{a as m,c as M,e as P,i as l}from"./QCT6FXMR.js";import"./P7J4L36T.js";import"./4CVEF3SI.js";import"./ESBUX6NR.js";import{a as A,b as O}from"./NP7OH2ZI.js";import{s as L}from"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import{a as f}from"./SZDHEJ35.js";import"./4OXHTSNR.js";import"./Q2VYZCZY.js";import{b as g}from"./UWXNPHTE.js";import"./TTOMCAES.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as k}from"./I3SHQQXU.js";import"./HR2HFJXC.js";import{g as s}from"./76JQ5L7D.js";import{a as g,b as m}from"./OZWDP6Y7.js";import{b as y}from"./M35TRRGF.js";import{a as w}from"./TA3ZXQAF.js";import{D as p,c,d as l,n as a,p as d,y as n,z as o}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var _=c`@layer{/** @license
3
+ v1.0.6 */
4
+ import{a as k}from"./YUWAB65A.js";import"./4ASSBQRJ.js";import{g as s}from"./55NQUWEY.js";import{a as g,b as m}from"./DAJFINWG.js";import{b as y}from"./CPO6UAZQ.js";import{a as w}from"./UESCD5AB.js";import{D as p,c,d as l,n as a,p as d,y as n,z as o}from"./XR3GB5SE.js";import"./TTOMCAES.js";var _=c`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as G}from"./2IRIOH44.js";import{a as L}from"./XK7SWBXE.js";import{c as K,d as _,e as U}from"./TVGUICDI.js";import{l as j,p as P}from"./GKBVNMEW.js";import"./43R5NRNV.js";import"./IHQISHAM.js";import"./65NNPWV7.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import{a as S}from"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./2QFMILDU.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import{w}from"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import{b as A}from"./HKKUMEH5.js";import{a as c,b as p}from"./7OEQCUDV.js";import"./UITEOOYI.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
3
+ v1.0.6 */
4
+ import{a as G}from"./62WQV5YC.js";import{a as L}from"./2ACF42ZR.js";import{c as K,d as _,e as U}from"./QMREQGH3.js";import{l as j,p as P}from"./2TLMYAKF.js";import"./5M5TLNGP.js";import"./LOVLAODG.js";import"./GO42R2CK.js";import"./T6ZDTQ2A.js";import"./VA7UARYI.js";import{a as S}from"./QCT6FXMR.js";import"./P7J4L36T.js";import"./4CVEF3SI.js";import"./ESBUX6NR.js";import"./NP7OH2ZI.js";import{w}from"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import"./SZDHEJ35.js";import"./4OXHTSNR.js";import"./Q2VYZCZY.js";import{b as A}from"./STUHZQEZ.js";import{a as c,b as p}from"./X6YLW36Y.js";import"./TTOMCAES.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{d as e}from"./S5TXHJGZ.js";function l(a,s){return{hubGroup:{access:"private",autoJoin:!1,isSharedUpdate:!1,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:"organization"},hubViewGroup:{access:"org",autoJoin:!1,isSharedUpdate:!1,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"anyone":"organization"},hubEditGroup:{access:"org",autoJoin:!1,isSharedUpdate:!0,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"collaborators":"organization"},hubFollowersGroup:{access:"public",autoJoin:!0,isInvitationOnly:!1,isViewOnly:!0,leavingDisallowed:!1},hubAssociationsGroup:{access:"public",autoJoin:!1,isInvitationOnly:!1,isViewOnly:!0,leavingDisallowed:!1,membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"anyone":"organization",protected:!0}}[a]}export{l as a};
3
+ v1.0.6 */
4
+ import{d as e}from"./NP7OH2ZI.js";function l(a,s){return{hubGroup:{access:"private",autoJoin:!1,isSharedUpdate:!1,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:"organization"},hubViewGroup:{access:"org",autoJoin:!1,isSharedUpdate:!1,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"anyone":"organization"},hubEditGroup:{access:"org",autoJoin:!1,isSharedUpdate:!0,isInvitationOnly:!1,hiddenMembers:!1,isViewOnly:!1,leavingDisallowed:!1,tags:["Hub Group"],membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"collaborators":"organization"},hubFollowersGroup:{access:"public",autoJoin:!0,isInvitationOnly:!1,isViewOnly:!0,leavingDisallowed:!1},hubAssociationsGroup:{access:"public",autoJoin:!1,isInvitationOnly:!1,isViewOnly:!0,leavingDisallowed:!1,membershipAccess:e("platform:portal:user:addExternalMembersToGroup",s).access?"anyone":"organization",protected:!0}}[a]}export{l as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as X}from"./XK7SWBXE.js";import{a as s}from"./XU3KAISP.js";import{c as x}from"./I3ZD6IV4.js";import{a as J,b as H}from"./64ETTMNQ.js";import{h as V,i as z}from"./RIQFARZP.js";import{b as R,c as w}from"./TVGUICDI.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./GKBVNMEW.js";import"./43R5NRNV.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./SBX54Z43.js";import"./65NNPWV7.js";import{i as G}from"./GFTGPFHL.js";import"./OG4FHSPI.js";import{a as p}from"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./2QFMILDU.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import{k as O,s as j}from"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import{a as d}from"./6U4PV22I.js";import"./UCI3QQAA.js";import"./Z3XBAPZC.js";import"./UITEOOYI.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
3
+ v1.0.6 */
4
+ import{a as X}from"./2ACF42ZR.js";import{a as s}from"./RZUGSVMP.js";import{c as x}from"./YZCZUMV2.js";import{a as J,b as H}from"./ZWYST46E.js";import{h as V,i as z}from"./GDYIFL6J.js";import{b as R,c as w}from"./QMREQGH3.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./2TLMYAKF.js";import"./5M5TLNGP.js";import"./LOVLAODG.js";import"./P27R335T.js";import"./ROJGI2W3.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./NRUKSPT4.js";import"./GO42R2CK.js";import{i as G}from"./T6ZDTQ2A.js";import"./VA7UARYI.js";import{a as p}from"./QCT6FXMR.js";import"./P7J4L36T.js";import"./4CVEF3SI.js";import"./ESBUX6NR.js";import"./NP7OH2ZI.js";import{k as O,s as j}from"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import"./SZDHEJ35.js";import{a as d}from"./4OXHTSNR.js";import"./Q2VYZCZY.js";import"./UWXNPHTE.js";import"./TTOMCAES.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import a from"./JAMFZUE3.js";export default $arcgis.t(([{a:e}])=>{function u(r){return Array.isArray(r)?r:Array.from(r)}function c(r,o){let t=i(o),n=e([{k:"id",v:r}])||"";return t?`${t}/home/item.html${n}`:""}function m(r,o,t){let n=i(t);return n?`${n}/sharing/rest/content/items/${r}/resources/${o}`:""}function i(r){return r?.PortalSubset?.orgUrl||r?.PortalUrl||""}return{a:u,b:c,c:m}},a)
3
+ v1.0.6 */
4
+ import a from"./VHDIRVUR.js";export default $arcgis.t(([{a:e}])=>{function u(r){return Array.isArray(r)?r:Array.from(r)}function c(r,o){let t=i(o),n=e([{k:"id",v:r}])||"";return t?`${t}/home/item.html${n}`:""}function m(r,o,t){let n=i(t);return n?`${n}/sharing/rest/content/items/${r}/resources/${o}`:""}function i(r){return r?.PortalSubset?.orgUrl||r?.PortalUrl||""}return{a:u,b:c,c:m}},a)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{e as c}from"./CBITJT5D.js";import{b as l}from"./M35TRRGF.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
3
+ v1.0.6 */
4
+ import{e as c}from"./4JAS7M3U.js";import{b as l}from"./CPO6UAZQ.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as c,b as n,c as y}from"./4527TPFQ.js";import{a,b as s}from"./OZWDP6Y7.js";import{D as d,c as u,d as t,n as p,y as m}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var h=u`/** @license
3
+ v1.0.6 */
4
+ import{a as c,b as n,c as y}from"./A3WJQEV7.js";import{a,b as s}from"./DAJFINWG.js";import{D as d,c as u,d as t,n as p,y as m}from"./XR3GB5SE.js";import"./TTOMCAES.js";var h=u`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
3
+ v1.0.6 */
4
4
  var R=(e=>(e.H="H",e.M="M",e.L="L",e))(R||{}),L=(e=>(e[e.ALLIGATOR_CRACKING=1]="ALLIGATOR_CRACKING",e[e.BLEEDING=2]="BLEEDING",e[e.BLOCK_CRACKING=3]="BLOCK_CRACKING",e[e.BUMPS_SAGS=4]="BUMPS_SAGS",e[e.CORRUGATION=5]="CORRUGATION",e[e.DEPRESSION=6]="DEPRESSION",e[e.EDGE_CRACKING=7]="EDGE_CRACKING",e[e.REFLECTION_CRACKING=8]="REFLECTION_CRACKING",e[e.LANE_SHOULDER_DROP_OFF=9]="LANE_SHOULDER_DROP_OFF",e[e.LONG_TRANS_CRACKING=10]="LONG_TRANS_CRACKING",e[e.PATCHING_UTIL_CUT_PATCHING=11]="PATCHING_UTIL_CUT_PATCHING",e[e.POLISHED_AGGREGATE=12]="POLISHED_AGGREGATE",e[e.POTHOLES=13]="POTHOLES",e[e.RAILROAD_CROSSING=14]="RAILROAD_CROSSING",e[e.RUTTING=15]="RUTTING",e[e.SHOVING=16]="SHOVING",e[e.SLIPPAGE_CRACKING=17]="SLIPPAGE_CRACKING",e[e.SWELL=18]="SWELL",e[e.RAVELING=19]="RAVELING",e[e.WEATHERING=20]="WEATHERING",e))(L||{});function S(e,o,u,t=!1){let r=Number.parseInt(e),n=R[o],l=Number.parseFloat(u.toString());if(Number.isNaN(l)||l===0)return"";let i=t===!0||t.toString().toLowerCase()==="true",s;switch(r){case 1:s=k;break;case 2:s=$;break;case 3:s=D;break;case 4:s=m;break;case 5:s=P;break;case 6:s=K;break;case 7:s=F;break;case 8:s=V;break;case 9:s=y;break;case 10:s=U;break;case 11:s=w;break;case 12:s=x;break;case 13:s=B;break;case 14:s=j;break;case 15:s=W;break;case 16:s=q;break;case 17:s=z;break;case 18:s=J;break;case 19:s=Q;break;case 20:s=X;break}if(s){let f=s(n,Math.log10(l)),g=p(f),d=`${e}|${o}|${g}|${l}`;return i&&(console.log(`Deduct value: ${f}`),console.log(`Rounded deduct value: ${g}`),console.log(`Formatted devduct value (type|severity|roundedDV|density): ${d}`)),d}else return""}function I(e,o=!1){let u=e.indexOf("|")>-1?h(e,o):e.split(",").map(n=>Number.parseFloat(n)),t=o===!0||o.toString().toLowerCase()==="true",r=0;if(u=u.filter(n=>Math.abs(n)>0),u.length>0){let n=Y(u,t);n!==void 0&&(r=100-p(n))}return r}function h(e,o){let u={},t=v(e),r=Object.keys(t).filter(n=>Object.keys(t[n]).length>1);return r.length>0&&r.forEach(n=>{let l,i,s,f,g,d;if(Object.keys(t[n]).forEach(c=>{c==="H"?(l=t[n][c].deductValue,f=t[n][c].density):c==="M"?(i=t[n][c].deductValue,g=t[n][c].density):(s=t[n][c].deductValue,d=t[n][c].density)}),l!==void 0&&i!==void 0&&s!==void 0&&f!==void 0&&g!==void 0&&d!==void 0){let c=(f&&g&&d?M:_)(n,l,i,s,f,g,d,o);c&&(u[n]=c,o&&(console.log("updates"),console.log(u)))}}),T(e,u)}function M(e,o,u,t,r,n,l,i){let s=I(`${o},${u},${t}`,!0);i&&(console.log("pci1"),console.log(s));let f=l+n,g=N(e,"M",f.toString(),o,i),d=n+r,c=N(e,"H",d.toString(),t,i),b=l+r,H=N(e,"H",b.toString(),u,i),O=l+n+r,A=N(e,"H",O.toString(),0,i);i&&(console.log("low med pci2"),console.log(g.pci),console.log("med high pci2"),console.log(c.pci),console.log("low high pci2"),console.log(H.pci),console.log("low med high pci2"),console.log(A.pci));let E=[g,c,H,A].reduce((C,G)=>G.pci>s&&(!C||G.pci>C.pci)?G:C,void 0);return E?E.dv:void 0}function _(e,o,u,t,r,n,l,i){let s=I(`${o||u},${t||u}`,!0);i&&(console.log("pci1"),console.log(s));let f=r||n,g=f+(l||n),d=N(e,f===r?"H":"M",g.toString(),0,i);return i&&(console.log("pci2"),console.log(d.pci)),d.pci>s?d.dv:void 0}function N(e,o,u,t,r){let n=S(e,o,u).split("|"),l=Number.parseFloat(n[2]);return{pci:I(`${n[2]},${t}`,r),dv:t?[l,t]:[l]}}function v(e){return e.split(",").reduce((o,u)=>{let t=u.split("|"),r=t[0],n=t[1],l=Number.parseFloat(t[2]),i=Number.parseFloat(t[3]);return o[r]||(o[r]={}),o[r][n]={deductValue:l,density:i},o},{})}function T(e,o){let u=[];return e.split(",").reduce((t,r)=>{let n=r.split("|"),l=n[0],i=Number.parseFloat(n[2]);return Object.keys(o).length>0&&o[l]?(u.push(l),t.push(...o[l]),delete o[l]):u.indexOf(l)<0&&t.push(i),t},[])}function a(e,o){return o.reduce((u,t,r)=>u+=r===0?t:r===1?t*e:t*Math.pow(e,r),0)}function p(e){return Math.round(e*10)/10}function k(e,o){return a(o,e==="H"?[30.71,29.22,9.407,-6.981,-2.158,3.047,-.6578]:e==="M"?[21.62,21.32,5.194,-1.343,.2341]:[11.31,16.05,7.572,-1.471])}function $(e,o){return a(o,e==="H"?[5.343,6.927,7.926,4.265,-.7582]:e==="M"?[2.38,5.483,4.128,.8366,.03659,.1052]:[.01391,.5079,1.576,1.191,.1329,.03823])}function D(e,o){return a(o,e==="H"?[7.926,11.93,8.826,3.432,-1.382]:e==="M"?[2.587,9.142,6.647,-.455,-.2439,.1107]:[.646,4.002,4.2,.4987,-.06269])}function m(e,o){return a(o,e==="H"?[52.77,38.07,8.964,-.4148,-1.589,2.478]:e==="M"?[24.66,27.86,15.73,3.295,-5.27,5.921,7.959]:[8.768,13.79,7.064,7.455,6.041,-1.739,-1.371])}function P(e,o){return a(o,e==="H"?[34.21,21.59,1.863,6.141,-.687,-1.885,.4916]:e==="M"?[15.78,19.69,6.276,-2.124,.5868,.06045]:[2.173,5.609,5.976,-.7348,-.2172,1.494,-.5659])}function K(e,o){return a(o,e==="H"?[17.84,5.904,9.406,18.28,-2.753,-7.798,2.402]:e==="M"?[8.471,3.171,10.25,12.2,-.9687,-4.601,1.079]:[4.836,-.7572,4.786,12.39,1.233,-4.871,.9749])}function F(e,o){return a(o,e==="H"?[14.99,13.5,10.62,5.15,-1.792,-2.826]:e==="M"?[9.177,10.26,5.704,-.6812,-.8588,.2123]:[3.049,4.802,4.058,-.3556,-1.55,1.02])}function V(e,o){return a(o,e==="H"?[14.99,17.21,27.63,31.13,-20.94,-18.82,9.985]:e==="M"?[9.9193,10.88,8.073,14.8,-3.792,-9.583,3.651]:[2.356,6.664,3.717,-1.393,1.94,1.785,-.9707])}function y(e,o){return a(o,e==="H"?[7.549,6.907,7.284,9.304,2.064]:e==="M"?[4.02,1.744,14.36,15.92,-40.22,23.6]:[2.004,1.065,9.706,11.75,-27.52,15.04])}function U(e,o){return a(o,e==="H"?[19.56,24.06,12.12,9.336,1.532,-4.396]:e==="M"?[9.751,15.53,4.719,1.369,1.206,-1.164]:[2.347,9.074,8.424,-1.338,-1.873,1.144])}function w(e,o){return a(o,e==="H"?[20.15,16.55,5.415,10.77,3.257,-4.502]:e==="M"?[10.28,12.71,6.174,1.928,.6923,-.4673]:[2.523,6.892,5.702,2.407,.2185,-.8722])}function x(e,o){return a(o,e==="H"||e==="M"||e==="L"?[3.417,-26.82,71.15,-76.22,38.52,-6.904]:[])}function B(e,o){return a(o,e==="H"?[110.7,60.66,2.378,-2.664]:e==="M"?[90.47,60.41,-.1123,-4.746]:[58.19,40.53,2.884,-1.443,.1195])}function j(e,o){return a(o,e==="H"?[20,38.64,-62.82,193.6,-162.7,41.22]:e==="M"?[6.994,23.47,-52.3,167.3,-143.6,37.64]:[1.998,-.7488,13.8,-.7917,-1.981])}function W(e,o){return a(o,e==="H"?[27.61,25.19,8.557,1.65,-2.203]:e==="M"?[18.47,20.77,6.617,-1.13,-2.286]:[8.833,14.84,3.129,.1451,2.438,-1.279])}function q(e,o){return a(o,e==="H"?[18.7,20.17,10.3,4.694,1.331,-2.61]:e==="M"?[10.39,14.78,5.488,4.001,3.23,-2.387]:[4.002,10.66,6.332,-.5226,-.1923])}function z(e,o){return a(o,e==="H"?[19.73,32.21,25.87,-2.871,-10.55,1.496,.7393]:e==="M"?[11.38,18.55,18.38,1.628,-7.596,.5841,.5946]:[5.144,12.95,11.95,-.833,-2.995,1.325,-.2113])}function J(e,o){return a(o,e==="H"?[34,16.84,-23.09,41.17,-14.84]:e==="M"?[12,15.67,20.59,-28.33,21,-5.508]:[1.995,11.9,-12.83,16.74,-5.361])}function Q(e,o){return a(o,e==="H"?[16.77,10.67,5.758,12.9,-.0633,-5.659,1.48]:e==="M"?[8.512,5.106,1.63,3.469,1.028,-1.211,.1938]:[])}function X(e,o){return a(o,e==="H"?[3.673,3.349,2.598,-1.233,2.754,2.434,-1.485]:e==="M"?[1.12,.9769,.93,-.5955,1.041,1.111,-.614]:[-.0386,-.0736,.834,1.63,-.0287,-.639,.1515])}function Y(e,o){let u,t=e.filter(r=>r>2);if(t.length<=1)u=t.reduce((r,n)=>(r+=n,r),0),o&&(console.log("If none or only one individual deduct value is greater"),console.log("than two, the total value is used in place of the maximum CD"),console.log(`Max CDV: ${u}`));else{let r=e.sort((i,s)=>s-i),n=r[0],l=1+9/98*(100-n);if(o&&(console.log(`Deduct values sorted in descending order: ${r}`),console.log(`Highest deduct value: ${n}`),console.log(`Allowable number of deducts including fractions: ${l}`)),l<=10){let i=Z(r,l);o&&console.log(`Reduce deduct values to the m largest including the fractional part: ${i}`);let s=e1(i,o);u=Math.max(...s),o&&console.log(`Max CDV: ${u}`)}else o&&console.log("Allowable number of deducts including fractions (must be less than or equal to ten)")}return u}function Z(e,o){let u=o-Math.floor(o);return e.length<o?e:e.reduce((t,r,n)=>(n+1<o?t.push(r):u>0&&t.push(p(r*u)),t),[])}function e1(e,o){let u=e.length,t=[];for(;u>=1;)o&&console.log(`vals: ${e}`),t.push(o1(e,o)),u-=1,e.splice(u,1,2);return t}function o1(e,o){let u=e.reduce((r,n)=>r+=n,0),t=e.reduce((r,n)=>n>2?r+1:r,0);return t1(u,t,o)}function t1(e,o,u){let t=a(e,{7:[-9.482,.6045,3563e-7,-5448e-9],6:[-8.165,.5724,4266e-7,-4254e-9],5:[-7.932,.6091,3464e-7,-4265e-9],4:[-6.78,.6301,7376e-7,-6357e-9],3:[-5.015,.7546,-43e-5,-3075e-9],2:[-1.668,.7992,-3013e-7,-5214e-9],1:[1651e-18,1,-4249e-21,1149e-22]}[o>=7?7:o]);return u&&(console.log(`totalDV: ${e}`),console.log(`q: ${o}`),console.log(`CDV: ${t}`)),t}export{R as a,L as b,S as c,I as d};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as s,b as a}from"./OZWDP6Y7.js";import{a as d}from"./TA3ZXQAF.js";import{D as r,c as o,d as t,n,y as c}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var p=o`/** @license
3
+ v1.0.6 */
4
+ import{a as s,b as a}from"./DAJFINWG.js";import{a as d}from"./UESCD5AB.js";import{D as r,c as o,d as t,n,y as c}from"./XR3GB5SE.js";import"./TTOMCAES.js";var p=o`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as n}from"./4UCCOTIL.js";import{b as I,c as b,d as v}from"./PP6K5WOA.js";import{a as i}from"./33UPFZYZ.js";import"./HR2HFJXC.js";import"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import"./AQZ3QIKE.js";import{g as a}from"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import"./76JQ5L7D.js";import{a as f,b as _}from"./OZWDP6Y7.js";import{a as g}from"./TA3ZXQAF.js";import{D as m,c,d as o,f as r,p as u,y as d,z as p}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var y=c`@layer{/** @license
3
+ v1.0.6 */
4
+ import{a as n}from"./PVPNQBWZ.js";import{b as I,c as b,d as v}from"./UASHMMAZ.js";import{a as i}from"./AVVTO725.js";import"./4ASSBQRJ.js";import"./GHXC6C2C.js";import"./62WQV5YC.js";import"./YZCZUMV2.js";import"./GDYIFL6J.js";import"./2TLMYAKF.js";import"./LOVLAODG.js";import"./P27R335T.js";import"./ROJGI2W3.js";import"./T6ZDTQ2A.js";import"./VA7UARYI.js";import"./QCT6FXMR.js";import"./P7J4L36T.js";import"./ESBUX6NR.js";import"./NP7OH2ZI.js";import"./2IVXEYYO.js";import{g as a}from"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import"./SZDHEJ35.js";import"./4OXHTSNR.js";import"./Q2VYZCZY.js";import"./55NQUWEY.js";import{a as f,b as _}from"./DAJFINWG.js";import{a as g}from"./UESCD5AB.js";import{D as m,c,d as o,f as r,p as u,y as d,z as p}from"./XR3GB5SE.js";import"./TTOMCAES.js";var y=c`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import b from"./FKCBARKI.js";import a from"./JAMFZUE3.js";import{c as p}from"./H36GDFY7.js";import"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import{a as l,b as h}from"./OZWDP6Y7.js";import{a as d}from"./TA3ZXQAF.js";import{B as i,D as c,c as o,d as t,x as n,y as r}from"./D3RXCR6Q.js";import"./UITEOOYI.js";export default $arcgis.t(([,{c:g}])=>{var u=o`/** @license
3
+ v1.0.6 */
4
+ import b from"./7ME4UIGX.js";import a from"./VHDIRVUR.js";import{c as p}from"./UV2M2RAL.js";import"./GHXC6C2C.js";import"./62WQV5YC.js";import"./YZCZUMV2.js";import"./GDYIFL6J.js";import"./2TLMYAKF.js";import"./LOVLAODG.js";import"./P27R335T.js";import"./ROJGI2W3.js";import"./T6ZDTQ2A.js";import"./VA7UARYI.js";import"./QCT6FXMR.js";import"./P7J4L36T.js";import"./ESBUX6NR.js";import"./NP7OH2ZI.js";import"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import"./SZDHEJ35.js";import"./4OXHTSNR.js";import"./Q2VYZCZY.js";import{a as l,b as h}from"./DAJFINWG.js";import{a as d}from"./UESCD5AB.js";import{B as i,D as c,c as o,d as t,x as n,y as r}from"./XR3GB5SE.js";import"./TTOMCAES.js";export default $arcgis.t(([,{c:g}])=>{var u=o`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as n}from"./U4LWP3KK.js";import{a as s}from"./35ZVLYI7.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import{a as r,b as i}from"./WCEUO2OS.js";import"./2QFMILDU.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import{a as o}from"./E4626BS2.js";import{a}from"./6N7ZWEZT.js";import"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./JOWT5YJ4.js";import"./TENNMXGF.js";import"./WNFUARBO.js";import"./UCI3QQAA.js";import"./MURI73WZ.js";import"./CGZZGJLP.js";import"./JUVS4QTT.js";import"./OQJGVRY2.js";import"./UR7ODANG.js";import"./JJJAHCRO.js";import"./RCDWSNVF.js";import"./76DZHGT4.js";import"./HKKUMEH5.js";import"./H72WOGJ7.js";import"./7OEQCUDV.js";import"./IAHPQU5I.js";import"./2RWXUIPE.js";import"./QQPQDFEM.js";import"./7NMV3XFP.js";import"./H4HFWY3H.js";import"./WBAN3UIC.js";import"./Z3XBAPZC.js";import"./IFPYTV3R.js";import"./UITEOOYI.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
3
+ v1.0.6 */
4
+ import{a as n}from"./YVJDVYGA.js";import{a as s}from"./EJEJMEGK.js";import"./T6ZDTQ2A.js";import"./VA7UARYI.js";import"./QCT6FXMR.js";import"./P7J4L36T.js";import{a as r,b as i}from"./LP4BQM2H.js";import"./4CVEF3SI.js";import"./ESBUX6NR.js";import"./NP7OH2ZI.js";import{a as o}from"./U4WC6C2F.js";import{a}from"./D6XX6KWD.js";import"./2IVXEYYO.js";import"./QRBQ5KHF.js";import"./OTQ4RPLU.js";import"./SZDHEJ35.js";import"./4OXHTSNR.js";import"./IY23MDOC.js";import"./BYJRAAEE.js";import"./P3YZSASH.js";import"./Q2VYZCZY.js";import"./V73IDRPZ.js";import"./VPHAMFNI.js";import"./N5K33ZZT.js";import"./PNHNT6BL.js";import"./XW6O3WSI.js";import"./VW6GSY2U.js";import"./Y6FNQ642.js";import"./YIO2CSY3.js";import"./STUHZQEZ.js";import"./SXZVPSYN.js";import"./X6YLW36Y.js";import"./5DAI66LT.js";import"./KOI7FBWC.js";import"./LA3N6LZH.js";import"./SM2GUROD.js";import"./X6L4PHXI.js";import"./22SEAIC6.js";import"./UWXNPHTE.js";import"./HVATWN37.js";import"./TTOMCAES.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.5 */
4
- import{a as P}from"./HR2HFJXC.js";import{$b as F,H as g,J as m,K as d,L as I,bc as y,cc as v,dc as R,e as n,ec as w,fc as T,mb as b,pa as S}from"./FLX4QZPY.js";import{b as o,h as _}from"./76JQ5L7D.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};
3
+ v1.0.6 */
4
+ import{a as P}from"./4ASSBQRJ.js";import{$b as F,H as g,J as m,K as d,L as I,bc as y,cc as v,dc as R,e as n,ec as w,fc as T,mb as b,pa as S}from"./GHXC6C2C.js";import{b as o,h as _}from"./55NQUWEY.js";var u={solutionItemId:"",defaultWkid:void 0,solutionData:{metadata:{},templates:[]},templateEdits:{},featureServices:[],spatialReferenceInfo:{enabled:!1,services:{}}},f=class{constructor(){this._hasChanges=!1,this._store=P({...u})}static get Store(){return this._instance||(this._instance=new this)}getItemInfo(a){let e=this._store.get("solutionData").templates,t;return e.some(s=>a==s.itemId?(t=s,!0):!1),t||void 0}getStoreInfo(a){return this._store.get(a)}async loadSolution(a,e){this._authentication=e;let t=await S(a,e);if(t){let s=m(t,"params.wkid.default","");await this._prepareSolutionItemsForEditing(a,t.templates,e);let r=this._getFeatureServices(t.templates),i=this._getSpatialReferenceInfo(r,s);this._store.set("solutionItemId",a),this._store.set("defaultWkid",s),this._store.set("solutionData",t),this._store.set("featureServices",r),this._store.set("spatialReferenceInfo",i)}this._flagStoreHasChanges(!1)}replaceItemThumbnail(a){a.resourceFilePaths.forEach(e=>{e.type===n.Thumbnail&&(e.updateType===o.None?e.updateType=o.Remove:(e.updateType===o.Add||e.updateType===o.Update)&&(e.updateType=o.Obsolete))}),a.resourceFilePaths=a.resourceFilePaths.filter(e=>e.updateType!=o.Obsolete),a.resourceFilePaths.push({blob:a.thumbnail,filename:a.thumbnail.name,type:n.Thumbnail,updateType:o.Add}),this.setItemInfo(a)}async saveSolution(){let a=this._store.get("solutionItemId"),e=this._store.get("solutionData"),t=this._store.get("spatialReferenceInfo"),s=this._store.get("featureServices");if(await this._prepareSolutionItemsForStorage(a,e.templates,this._authentication),this._updateFSSpatialReferenceInfoInTemplates(s,e.templates),t.enabled){let r={label:"Spatial Reference",valueType:"spatialReference",attributes:{required:!0}};t.default&&(r.default=t.default),d(e,"params.wkid",r)}else d(e,"params.wkid",{});await b({id:a,text:e},this._authentication)}setItemInfo(a){let e=this._store.get("solutionData");e.templates.some(t=>a.itemId==t.itemId?(t=a,this._store.set("solutionData",e),this._flagStoreHasChanges(!0),!0):!1)}setStoreInfo(a,e){this._store.set(a,e),this._flagStoreHasChanges(!0)}_testAccess(a,e,t,s){switch(a){case"_emptyTheStore":this._emptyTheStore();break;case"_getFeatureServices":return this._getFeatureServices(e);case"_getItemsSharedWithThisGroup":return this._getItemsSharedWithThisGroup(e,t);case"_getResourceFilePaths":return this._getResourceFilePaths(e,t,s);case"_getResourceStorageName":return this._getResourceStorageName(e,t);case"_getSpatialReferenceInfo":return this._getSpatialReferenceInfo(e,t);case"_prepareSolutionItemsForEditing":return this._prepareSolutionItemsForEditing(e,t,s);case"_prepareSolutionItemsForStorage":return this._prepareSolutionItemsForStorage(e,t,s);case"_splitFilename":return this._splitFilename(e);case"_updateFSSpatialReferenceInfoInTemplates":return this._updateFSSpatialReferenceInfoInTemplates(e,t)}return null}_emptyTheStore(){this._store.set("solutionItemId",u.solutionItemId),this._store.set("defaultWkid",u.defaultWkid),this._store.set("solutionData",u.solutionData),this._store.set("templateEdits",u.templateEdits),this._store.set("featureServices",u.featureServices),this._store.set("spatialReferenceInfo",u.spatialReferenceInfo)}_flagStoreHasChanges(a){window.dispatchEvent(new CustomEvent("solutionStoreHasChanges",{detail:a,bubbles:!0,cancelable:!1,composed:!0})),this._hasChanges=a}_getCustomizableFeatureServices(a){return a.reduce((e,t)=>(t.type==="Feature Service"&&(t?.item?.typeKeywords||[]).indexOf("View Service")<0&&e.push(t),e),[])}_getFeatureServices(a){return this._getCustomizableFeatureServices(a).map(e=>{let t=e.item.title||e.item.name,s=g(e,"properties.service.spatialReference.wkid");return{id:e.itemId,name:t,enabled:s.toString().startsWith(_),wkid:s}})}_getItemsSharedWithThisGroup(a,e){return e.reduce((t,s)=>(s.itemId!==a.itemId&&s.type!=="Group"&&t.push({id:s.itemId,title:s.item.name||s.item.title,isShared:(s.groups||[]).indexOf(a.itemId)>-1,shareItem:(s.groups||[]).indexOf(a.itemId)>-1,type:s.type,typeKeywords:s.item.typeKeywords}),t),[])}_getResourceFilePaths(a,e,t){return y(t,a,e.resources,1).map(s=>(s.updateType=o.None,s))}_getResourceStorageName(a,e){let t=a;switch(e.type){case n.Data:t=`${t}_info_data`;break;case n.Info:t=`${t}_info`;break;case n.Metadata:t=`${t}_info_metadata`;break;case n.Resource:break;case n.Thumbnail:t=`${t}_info_thumbnail`;break}let s=e.filename;e.type==n.Data&&s&&!v(s)&&(s=s+".zip",t+="z");let r=e.folder?e.folder+"/"+s:s;return t+"/"+r}_getSpatialReferenceInfo(a,e){let t={};a.forEach(r=>{t[r.name]=r.enabled});let s={enabled:!1,services:t};return e&&(s.default=e),s}async _prepareSolutionItemsForEditing(a,e,t){let s=[];e.forEach(i=>{i.resourceFilePaths=this._getResourceFilePaths(a,i,t.portal),s.push(i.resourceFilePaths.length>0?R(t,i.resourceFilePaths):Promise.resolve()),i.groupDetails=i.type==="Group"?this._getItemsSharedWithThisGroup(i,e):[]});let r=await Promise.all(s);return e.forEach((i,l)=>{i.thumbnail=r[l]?r[l]:void 0}),Promise.resolve()}async _prepareSolutionItemsForStorage(a,e,t){let s=[],r=[];return e.forEach(i=>{i.resourceFilePaths.forEach(async l=>{let p=this._getResourceStorageName(i.itemId,l);switch(l.updateType){case o.Add:let{prefix:k,suffix:E}=this._splitFilename(p);i.resources.push(p),s.push({itemId:i.itemId,file:l.blob,folder:k,filename:E});break;case o.Update:r.push(new Promise(async h=>{try{await T(a,p,l.blob,t)}catch(c){console.log("Unable to update "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break;case o.Remove:r.push(new Promise(async h=>{try{await w(a,p,t),i.resources=i.resources.filter(c=>c!==p)}catch(c){console.log("Unable to remove "+p+" for item "+i.itemId+": "+JSON.stringify(c))}h()}));break}return Promise.resolve()}),delete i.thumbnail,delete i.groupDetails}),Promise.all(r).then(async()=>(s.length>0&&await F(s,a,t),Promise.resolve()))}_updateFSSpatialReferenceInfoInTemplates(a,e){let t=this._getCustomizableFeatureServices(e);t.forEach(s=>{let r=a.find(i=>i.id===s.itemId);if(r){let i=m(s,"properties.service.spatialReference",{});i.wkid=r.wkid,r.enabled&&i.latestWkid&&delete i.latestWkid,I(s,"properties.service.spatialReference",i)}}),e.forEach(s=>{let r=t.find(i=>i.itemId===s.itemId);if(r){s.properties.service.spatialReference={...r.properties.service.spatialReference};let i=Number.parseInt(s.properties.service.spatialReference.wkid);Number.isNaN(i)||(s.properties.service.spatialReference.wkid=i)}})}_splitFilename(a){let e=a.split("/");return{prefix:e.length>1?e.slice(0,e.length-1).join("/"):void 0,suffix:e[e.length-1]}}},O=f.Store;export{O as a};