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

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 (462) hide show
  1. package/dist/assets/spatialReferences.json.d.ts +3 -0
  2. package/dist/cdn/{W2YR6DCI.js → 243XIJUK.js} +2 -2
  3. package/dist/cdn/{GK37CEKN.js → 25SG2GT6.js} +2 -2
  4. package/dist/cdn/26V65KO5.js +4 -0
  5. package/dist/cdn/{NLIFCBCW.js → 2KAZVBXF.js} +2 -2
  6. package/dist/cdn/2NFTBOR6.js +4 -0
  7. package/dist/cdn/{XK4Y3NEC.js → 2QLL7KRA.js} +3 -3
  8. package/dist/cdn/{5JEZVAD4.js → 2SPB6YWD.js} +1 -1
  9. package/dist/cdn/{SPASMJZ7.js → 2VLL65Q3.js} +2 -2
  10. package/dist/cdn/{T5NML6EW.js → 2ZBKRLIH.js} +2 -2
  11. package/dist/cdn/{SBYXJC54.js → 2ZYGIAK7.js} +2 -2
  12. package/dist/cdn/3FYSHEGC.js +4 -0
  13. package/dist/cdn/{ND4M76E6.js → 3GQWIJEV.js} +2 -2
  14. package/dist/cdn/{4RAQTPVG.js → 3IM72Q7I.js} +2 -2
  15. package/dist/cdn/3MMNPTWA.js +4 -0
  16. package/dist/cdn/3RSE7GWO.js +18 -0
  17. package/dist/cdn/3TPK447W.js +18 -0
  18. package/dist/cdn/{JDEXVRJ5.js → 3U5ZQLVD.js} +2 -2
  19. package/dist/cdn/{PB7R6EJV.js → 3YU6HJT3.js} +2 -2
  20. package/dist/cdn/{EFQJYMT3.js → 3ZZA5SJJ.js} +2 -2
  21. package/dist/cdn/4BBMUYOY.js +4 -0
  22. package/dist/cdn/{CZL4FXMV.js → 4CU2JG7Y.js} +2 -2
  23. package/dist/cdn/{ROVGEAF3.js → 4D7Q4GOL.js} +2 -2
  24. package/dist/cdn/{CIHLT7JJ.js → 4RCKKVLX.js} +2 -2
  25. package/dist/cdn/{L23ZIKAY.js → 4REMJIC2.js} +2 -2
  26. package/dist/cdn/{KI4MEEVP.js → 4YZYX25D.js} +2 -2
  27. package/dist/cdn/{F3L5GFZI.js → 55WTY3OW.js} +2 -2
  28. package/dist/cdn/{OG3HGM7O.js → 5BVRVDRV.js} +2 -2
  29. package/dist/cdn/5FJYF35Q.js +18 -0
  30. package/dist/cdn/{CH2SVK4L.js → 5GOMCD3R.js} +2 -2
  31. package/dist/cdn/{UWKDTPML.js → 5PTXJEIG.js} +1 -1
  32. package/dist/cdn/{NU2EHQKG.js → 5QW7OUY4.js} +2 -2
  33. package/dist/cdn/{ZIZC3PWT.js → 62U5XQ53.js} +2 -2
  34. package/dist/cdn/{I3DYDXPP.js → 6J57YUW2.js} +2 -2
  35. package/dist/cdn/{PHJTNAEQ.js → 6JMHJ4JX.js} +2 -2
  36. package/dist/cdn/{EACONZXN.js → 6JNDGVGH.js} +2 -2
  37. package/dist/cdn/{PDE5YS33.js → 6MX6UN7I.js} +2 -2
  38. package/dist/cdn/{H7DFMVRR.js → 6N4W6KCO.js} +2 -2
  39. package/dist/cdn/{TB6EIWVL.js → 6POZOMRQ.js} +2 -2
  40. package/dist/cdn/{QADXDV6V.js → 6QCOPT4C.js} +2 -2
  41. package/dist/cdn/{XOLJEZVW.js → 6QFNQCBR.js} +2 -2
  42. package/dist/cdn/{CZC5E6PT.js → 6SWIDSO3.js} +2 -2
  43. package/dist/cdn/{UTDSMFWL.js → 6XDCOPQY.js} +1 -1
  44. package/dist/cdn/{MXZE6DRA.js → 6ZFIZXBP.js} +2 -2
  45. package/dist/cdn/{KN36CLI6.js → 6ZSHJ5AZ.js} +1 -1
  46. package/dist/cdn/747TJLHD.js +4 -0
  47. package/dist/cdn/7CYK6OHD.js +4 -0
  48. package/dist/cdn/{WSM3I5LT.js → 7EC2QANE.js} +2 -2
  49. package/dist/cdn/7KHJWE7I.js +46 -0
  50. package/dist/cdn/7NVOEDDR.js +4 -0
  51. package/dist/cdn/{VPORF37W.js → 7NYELHIW.js} +2 -2
  52. package/dist/cdn/{66C54WBP.js → 7PGOUADZ.js} +2 -2
  53. package/dist/cdn/{OEHWO6ML.js → 7QIPUZMZ.js} +2 -2
  54. package/dist/cdn/{4L4IBTJF.js → 7URYQJYI.js} +2 -2
  55. package/dist/cdn/{WMFM2LJJ.js → A57VSTIU.js} +2 -2
  56. package/dist/cdn/{ZRH55DSX.js → A7I5BLUD.js} +2 -2
  57. package/dist/cdn/{3I4OEU4B.js → A7XA3HJY.js} +2 -2
  58. package/dist/cdn/{NZBLJRVM.js → AA2RTEXB.js} +2 -2
  59. package/dist/cdn/{PMETOHGA.js → AE4QMTGD.js} +2 -2
  60. package/dist/cdn/AJ4EANAJ.js +4 -0
  61. package/dist/cdn/{JCWH5TGE.js → AKVBZAV2.js} +2 -2
  62. package/dist/cdn/AL32QPJO.js +18 -0
  63. package/dist/cdn/{J6PNQKBC.js → AMA3CIUW.js} +2 -2
  64. package/dist/cdn/{WZEIIAU2.js → ANDBAAW7.js} +2 -2
  65. package/dist/cdn/{HEPGER72.js → AO22ELU2.js} +2 -2
  66. package/dist/cdn/{TFY5N3WM.js → AO3Y73S4.js} +2 -2
  67. package/dist/cdn/{C4NNXXEU.js → APPDDPRJ.js} +2 -2
  68. package/dist/cdn/{XSYAZ3QX.js → ARFHWNZW.js} +2 -2
  69. package/dist/cdn/{JURO4ER3.js → AZRDVXFS.js} +2 -2
  70. package/dist/cdn/BCT6TYYF.js +4 -0
  71. package/dist/cdn/BJEE2QDX.js +4 -0
  72. package/dist/cdn/{SRNUXUPT.js → BMCGFY4D.js} +2 -2
  73. package/dist/cdn/{WUF32TGT.js → C2WZRDNU.js} +2 -2
  74. package/dist/cdn/{ONPGGFF4.js → CHIYX226.js} +2 -2
  75. package/dist/cdn/{ZRMVLR6Z.js → CHPCWQV3.js} +1 -1
  76. package/dist/cdn/{D4ZAKPPN.js → CKPYQPTD.js} +2 -2
  77. package/dist/cdn/{SA6AJPBT.js → COVJW67Z.js} +2 -2
  78. package/dist/cdn/{P7IZEV4L.js → CQQABTQM.js} +2 -2
  79. package/dist/cdn/{3S7YVVVZ.js → CTYWBQY2.js} +2 -2
  80. package/dist/cdn/{TROND5WN.js → CUNBBRGG.js} +2 -2
  81. package/dist/cdn/{TWXRBFOF.js → CZGM62A6.js} +2 -2
  82. package/dist/cdn/{PGUKFHUT.js → D3O2HT2V.js} +2 -2
  83. package/dist/cdn/{FM5G7FRN.js → D5G2QLXU.js} +2 -2
  84. package/dist/cdn/{BVF77XL3.js → DAEBIZTJ.js} +2 -2
  85. package/dist/cdn/DI3SB5LW.js +4 -0
  86. package/dist/cdn/{EJFAX7DQ.js → DJD52FAE.js} +3 -3
  87. package/dist/cdn/{4SADSXOQ.js → DKKDSFW7.js} +2 -2
  88. package/dist/cdn/{ELZ7PG6K.js → DWL6QFE4.js} +2 -2
  89. package/dist/cdn/DX7BBY5L.js +18 -0
  90. package/dist/cdn/DYZLHNVS.js +4 -0
  91. package/dist/cdn/{N67Z7ZNA.js → DZTZIDHJ.js} +2 -2
  92. package/dist/cdn/{J7MKHQD5.js → E4GHAC43.js} +2 -2
  93. package/dist/cdn/{GB5JUBYE.js → E5SVQDAC.js} +2 -2
  94. package/dist/cdn/{7Z27VXFW.js → E6LAV57F.js} +2 -2
  95. package/dist/cdn/{55C6EXD4.js → E7LSGXZN.js} +2 -2
  96. package/dist/cdn/{O7NFPTWX.js → E7TY2OIZ.js} +2 -2
  97. package/dist/cdn/{HRSOPFCG.js → EBHIEP3O.js} +2 -2
  98. package/dist/cdn/{F3B6EWIS.js → ECUMDGF6.js} +2 -2
  99. package/dist/cdn/{4RRDEPWJ.js → EDPMTOWD.js} +2 -2
  100. package/dist/cdn/{JPYE25NL.js → EGTQT3ZY.js} +2 -2
  101. package/dist/cdn/{DVL6LPJA.js → EHA23YLG.js} +2 -2
  102. package/dist/cdn/{PGUOGQLS.js → EJ7MPJF2.js} +2 -2
  103. package/dist/cdn/{DUW7R25K.js → ELFPC4FQ.js} +2 -2
  104. package/dist/cdn/{JANCWVYC.js → EOURQHYH.js} +2 -2
  105. package/dist/cdn/{FJTPGHCP.js → EWLVZYDD.js} +2 -2
  106. package/dist/cdn/{Z55KW3GE.js → EWPN7Y3J.js} +2 -2
  107. package/dist/cdn/{FNEE7DUR.js → EY76BJOK.js} +2 -2
  108. package/dist/cdn/{3PFSXVNI.js → EZROAF3H.js} +2 -2
  109. package/dist/cdn/{PSFFYGFC.js → F75ZTCHZ.js} +2 -2
  110. package/dist/cdn/{2UP2HWNK.js → FGIPZYFM.js} +3 -3
  111. package/dist/cdn/{2WRSC34B.js → FNMXMPWJ.js} +2 -2
  112. package/dist/cdn/{DKEAKE2K.js → FO3XKEOC.js} +1 -1
  113. package/dist/cdn/{6UUULLLC.js → FWTBUEHA.js} +2 -2
  114. package/dist/cdn/{WNKH5IG6.js → G3FC7NQX.js} +2 -2
  115. package/dist/cdn/{STFHU6UJ.js → G54HYU4T.js} +2 -2
  116. package/dist/cdn/G6HN6TFX.js +4 -0
  117. package/dist/cdn/{5M4BUTK4.js → GA2ZUKPH.js} +2 -2
  118. package/dist/cdn/{U4TZ7FO3.js → GLQGCQKQ.js} +1 -1
  119. package/dist/cdn/{IL2JAPH7.js → GLZNOZSV.js} +2 -2
  120. package/dist/cdn/{JGA5STLE.js → GRH6L6AX.js} +1 -1
  121. package/dist/cdn/{VHB6NDP6.js → GT7ZLIPV.js} +1 -1
  122. package/dist/cdn/{7H5QHDT3.js → GWCLKO7W.js} +1 -1
  123. package/dist/cdn/GXLRWAQM.js +4 -0
  124. package/dist/cdn/GZTSZRL2.js +4 -0
  125. package/dist/cdn/{XYVZEUU3.js → H2TUSR7R.js} +1 -1
  126. package/dist/cdn/{KMPEI3WK.js → H7XUQNKK.js} +1 -1
  127. package/dist/cdn/{ZYH25ZQL.js → HAXSU4N2.js} +2 -2
  128. package/dist/cdn/HDPFTEW7.js +4 -0
  129. package/dist/cdn/{3R3QUK2F.js → HIXGXDSF.js} +2 -2
  130. package/dist/cdn/{OGO5SDYD.js → HJW7MRV7.js} +2 -2
  131. package/dist/cdn/{LFRLPN2S.js → HPIQJM5V.js} +2 -2
  132. package/dist/cdn/{H6KOMX3B.js → HR26NMCP.js} +2 -2
  133. package/dist/cdn/{55R3KRVW.js → HRXPEGPN.js} +2 -2
  134. package/dist/cdn/{5WBJ7JHK.js → HTGPVMDF.js} +4 -4
  135. package/dist/cdn/{MQX3K4RF.js → HY2FPZMQ.js} +3 -3
  136. package/dist/cdn/I5BHAIXT.js +18 -0
  137. package/dist/cdn/{GKGR6CL5.js → I6IP3HEU.js} +1 -1
  138. package/dist/cdn/{Y2F6P2NH.js → IAYSY7E4.js} +2 -2
  139. package/dist/cdn/{I6Q6CZKU.js → IDOXNWMU.js} +2 -2
  140. package/dist/cdn/{2IQP5CPJ.js → IQIUJCL5.js} +1 -1
  141. package/dist/cdn/{WCDC3LA2.js → IQZR2JNQ.js} +2 -2
  142. package/dist/cdn/{PLF2X6MM.js → IWQEYRKW.js} +2 -2
  143. package/dist/cdn/J32WUI3V.js +4 -0
  144. package/dist/cdn/{LMBHKGYA.js → J42OBAV6.js} +2 -2
  145. package/dist/cdn/{TT63U5XZ.js → JA6ZHJAG.js} +1 -1
  146. package/dist/cdn/{T3YBLIK3.js → JEFKNJI4.js} +2 -2
  147. package/dist/cdn/{QB54S7F4.js → JFIQPHVY.js} +1 -1
  148. package/dist/cdn/JHGRJIHO.js +18 -0
  149. package/dist/cdn/JRP43TMR.js +18 -0
  150. package/dist/cdn/{ZRJNRVE3.js → JTR6HRTY.js} +2 -2
  151. package/dist/cdn/{5TQFPX44.js → JTSY6HU4.js} +2 -2
  152. package/dist/cdn/JXXQJ623.js +18 -0
  153. package/dist/cdn/{NJS2N5K3.js → KB55TNLB.js} +2 -2
  154. package/dist/cdn/{LLHQVJKK.js → KKHWQSXB.js} +2 -2
  155. package/dist/cdn/KLYS5Y7D.js +4 -0
  156. package/dist/cdn/{MLJEVKSP.js → KMLGXG55.js} +2 -2
  157. package/dist/cdn/{7HTKOKPV.js → KPZNCFK7.js} +1 -1
  158. package/dist/cdn/{WRV54M6S.js → KVDLSZT5.js} +2 -2
  159. package/dist/cdn/{XSPGKSFV.js → KXIP4DWR.js} +3 -3
  160. package/dist/cdn/{MVBPZBKK.js → KZ5AJUM6.js} +2 -2
  161. package/dist/cdn/LC4T5GIX.js +4 -0
  162. package/dist/cdn/LFIVJEK2.js +4 -0
  163. package/dist/cdn/{TTCDYWE4.js → LMDJKC64.js} +2 -2
  164. package/dist/cdn/LOMV7XIZ.js +4 -0
  165. package/dist/cdn/{FUXLF2VF.js → LQVTKXFQ.js} +2 -2
  166. package/dist/cdn/{HVZJ36FS.js → LR42KSD7.js} +3 -3
  167. package/dist/cdn/{3CA2UUPB.js → LUCGZBV3.js} +2 -2
  168. package/dist/cdn/{YNKDS73P.js → LUWKLSCB.js} +2 -2
  169. package/dist/cdn/{HVNXNVUK.js → LZ37AJKN.js} +2 -2
  170. package/dist/cdn/{HITJF4RQ.js → M4X65SJB.js} +2 -2
  171. package/dist/cdn/{GRYSKL7I.js → M74AMYXF.js} +2 -2
  172. package/dist/cdn/MFATTJGH.js +6 -0
  173. package/dist/cdn/{R2CS5FOZ.js → MGTISYNJ.js} +2 -2
  174. package/dist/cdn/{POF7HICC.js → MLRAY2VI.js} +2 -2
  175. package/dist/cdn/MSN724ZV.js +4 -0
  176. package/dist/cdn/{A6VHGI5U.js → MXTL3VB4.js} +2 -2
  177. package/dist/cdn/{ZFYQGS6G.js → N4PA6ZFU.js} +2 -2
  178. package/dist/cdn/NB6P2ZLZ.js +18 -0
  179. package/dist/cdn/{CQZPEOV3.js → NS5FDWXK.js} +2 -2
  180. package/dist/cdn/{VYJNSH4L.js → O5WPS53A.js} +1 -1
  181. package/dist/cdn/{T2W5CMQT.js → O7LAX6TU.js} +2 -2
  182. package/dist/cdn/{2P5UHGEH.js → OBGE3PJZ.js} +2 -2
  183. package/dist/cdn/{WL5HYM67.js → ODZBAUH3.js} +2 -2
  184. package/dist/cdn/OEIXBUC3.js +4 -0
  185. package/dist/cdn/{T62HZRZ4.js → OG4YXHRH.js} +2 -2
  186. package/dist/cdn/{FBEKXE53.js → OGISURJ2.js} +1 -1
  187. package/dist/cdn/{HBJNKM2C.js → OOYAGXFU.js} +2 -2
  188. package/dist/cdn/{AOA73IL2.js → OUTGXSIV.js} +2 -2
  189. package/dist/cdn/OWN2B732.js +4 -0
  190. package/dist/cdn/{DUWNVKPD.js → P7PGGEDY.js} +1 -1
  191. package/dist/cdn/{5XNGEXET.js → PERO5WYC.js} +1 -1
  192. package/dist/cdn/{XKZSGZGT.js → PITFPHXJ.js} +2 -2
  193. package/dist/cdn/{UXLQNMFU.js → PWNQPO7M.js} +2 -2
  194. package/dist/cdn/{OGISVN6B.js → Q2RVLL7P.js} +1 -1
  195. package/dist/cdn/{34F5RSDO.js → QB5Q44P3.js} +2 -2
  196. package/dist/cdn/{SP2JO6Q3.js → QBKQKD2G.js} +2 -2
  197. package/dist/cdn/{DQBC22ZI.js → QDCUDH5M.js} +1 -1
  198. package/dist/cdn/{B2ZUA2SA.js → QEONXNFP.js} +2 -2
  199. package/dist/cdn/{D3MPEAVK.js → QS3XVQM7.js} +2 -2
  200. package/dist/cdn/{C3JZDZSB.js → QVNQSDMG.js} +2 -2
  201. package/dist/cdn/{6VLCRTPG.js → QZUUFSWN.js} +2 -2
  202. package/dist/cdn/{26YTMD6C.js → REUK7FUQ.js} +1 -1
  203. package/dist/cdn/RJCPG2OD.js +4 -0
  204. package/dist/cdn/{4ZGXBIVH.js → RKK6IXRN.js} +1 -1
  205. package/dist/cdn/{NJ3ACG6J.js → RLTUCGPF.js} +2 -2
  206. package/dist/cdn/{UYHKYPA5.js → RQNTLRQO.js} +2 -2
  207. package/dist/cdn/S2DOD45C.js +4 -0
  208. package/dist/cdn/{36QOQZUH.js → S7S35K4N.js} +2 -2
  209. package/dist/cdn/{NUVLGW3I.js → SA3FJIMJ.js} +2 -2
  210. package/dist/cdn/{I6GLKTED.js → SCC7OFOE.js} +1 -1
  211. package/dist/cdn/{76RSSIAE.js → SCJF5DK5.js} +2 -2
  212. package/dist/cdn/{GMIFING2.js → SKJFR7RS.js} +2 -2
  213. package/dist/cdn/{ZMNMOEFY.js → SKNW5XHW.js} +2 -2
  214. package/dist/cdn/{V4EKVAQ2.js → SMVLVIKJ.js} +1 -1
  215. package/dist/cdn/{AHQ3XGAS.js → SPDKAPN2.js} +2 -2
  216. package/dist/cdn/{CTHU3ZDE.js → SPJUB4WW.js} +2 -2
  217. package/dist/cdn/{I4DZFH7G.js → STTIKHQJ.js} +2 -2
  218. package/dist/cdn/{FAMDDI7C.js → SUUXG2YV.js} +2 -2
  219. package/dist/cdn/SV5SVPCF.js +4 -0
  220. package/dist/cdn/{XLFGPXWZ.js → SXV6GOCF.js} +2 -2
  221. package/dist/cdn/T3L6RRVE.js +4 -0
  222. package/dist/cdn/{2K4LEPDI.js → TQBG4MEK.js} +2 -2
  223. package/dist/cdn/TVJRJKDY.js +4 -0
  224. package/dist/cdn/{NL5KEH5L.js → U5WH4XWF.js} +2 -2
  225. package/dist/cdn/U7YWLWVS.js +4 -0
  226. package/dist/cdn/{FJU4NZYE.js → UC6XV223.js} +2 -2
  227. package/dist/cdn/{IJU4WTDO.js → UFK4WM7T.js} +2 -2
  228. package/dist/cdn/{D37USTZ3.js → UHSG6QNQ.js} +2 -2
  229. package/dist/cdn/{GQGYZ5UC.js → UI54E7VB.js} +2 -2
  230. package/dist/cdn/{7K5ZFURJ.js → UIUU6DED.js} +2 -2
  231. package/dist/cdn/UPMKLS4C.js +4 -0
  232. package/dist/cdn/UXH6MGRX.js +4 -0
  233. package/dist/cdn/V3GT6ZDE.js +4 -0
  234. package/dist/cdn/{W2MSJDRL.js → V4ESJ7QL.js} +2 -2
  235. package/dist/cdn/{MUSGKJHI.js → V74PXGTC.js} +2 -2
  236. package/dist/cdn/{CT4IZZF2.js → VANG24M3.js} +2 -2
  237. package/dist/cdn/VGIYVVAU.js +4 -0
  238. package/dist/cdn/{GNVUXY6S.js → VHT2MWYW.js} +2 -2
  239. package/dist/cdn/{NE2UAOWL.js → VLQDRULY.js} +2 -2
  240. package/dist/cdn/VMFAWFAM.js +4 -0
  241. package/dist/cdn/VOEWFARL.js +4 -0
  242. package/dist/cdn/{3RJL5JGR.js → VPUUIWE2.js} +2 -2
  243. package/dist/cdn/VQL327GB.js +18 -0
  244. package/dist/cdn/{YHJQLEL5.js → W27KI4TX.js} +2 -2
  245. package/dist/cdn/WCIL4Y2K.js +18 -0
  246. package/dist/cdn/{JI774UUM.js → WCZZYOTM.js} +1 -1
  247. package/dist/cdn/{RPSFV63U.js → WE523ZR2.js} +2 -2
  248. package/dist/cdn/{O6TVLT3A.js → WEVRGLHV.js} +2 -2
  249. package/dist/cdn/{3T72AHYQ.js → WH2I2W6Q.js} +2 -2
  250. package/dist/cdn/{T4XGEVZN.js → WNR7QUVP.js} +2 -2
  251. package/dist/cdn/WRV2RHJ6.js +18 -0
  252. package/dist/cdn/{R3TVF6ES.js → X77OKZCY.js} +2 -2
  253. package/dist/cdn/{JOUJ6B3E.js → XA6VGCTE.js} +2 -2
  254. package/dist/cdn/{YNOM76J7.js → XARXAL4K.js} +2 -2
  255. package/dist/cdn/{Q2SYWGNQ.js → XFOQ237Z.js} +2 -2
  256. package/dist/cdn/{B22SBUCC.js → XIWWE2AH.js} +2 -2
  257. package/dist/cdn/{DL73WI42.js → XJYLRRFL.js} +2 -2
  258. package/dist/cdn/{N74LH7NF.js → XKTGW3XN.js} +2 -2
  259. package/dist/cdn/{NHGBIUB5.js → XKYLZR42.js} +2 -2
  260. package/dist/cdn/{HPKI63DN.js → XOEQBFVP.js} +1 -1
  261. package/dist/cdn/{YESDLOJA.js → XPJYK2RV.js} +2 -2
  262. package/dist/cdn/{VLUKESNO.js → XSUHYP6Q.js} +2 -2
  263. package/dist/cdn/{MANN6WHT.js → XVFOF3T5.js} +1 -1
  264. package/dist/cdn/{FNTEHVST.js → XVV53OIG.js} +2 -2
  265. package/dist/cdn/{6FA2FL3C.js → Y4MLXPRQ.js} +2 -2
  266. package/dist/cdn/{XUJO4B4K.js → YFYERRHB.js} +1 -1
  267. package/dist/cdn/{EKG3CXMP.js → YGNM3KWY.js} +1 -1
  268. package/dist/cdn/{P3FCJEZO.js → YJ3QUHDU.js} +2 -2
  269. package/dist/cdn/{6AYWXJGE.js → YJ6YWNY6.js} +2 -2
  270. package/dist/cdn/{FCGJ2VZH.js → YJVHNGLM.js} +2 -2
  271. package/dist/cdn/{TULGRERT.js → YKGOPNZG.js} +2 -2
  272. package/dist/cdn/{RJCEZOX5.js → YN6JZ5LC.js} +2 -2
  273. package/dist/cdn/YOUEIKMV.js +18 -0
  274. package/dist/cdn/{JJL2DXOK.js → YYIW4SX5.js} +2 -2
  275. package/dist/cdn/Z4QMYZMZ.js +4 -0
  276. package/dist/cdn/{FSN5FQRG.js → ZBC2KSKJ.js} +1 -1
  277. package/dist/cdn/ZCJBWPBW.js +4 -0
  278. package/dist/cdn/{4D4Q4I4W.js → ZHYUBIKC.js} +2 -2
  279. package/dist/cdn/{DFH335RF.js → ZIXRBHFZ.js} +2 -2
  280. package/dist/cdn/ZRRGRRES.js +4 -0
  281. package/dist/cdn/{VK73BGU2.js → ZSCGQDPT.js} +2 -2
  282. package/dist/cdn/{LU6KZOCK.js → ZX7QCDFK.js} +2 -2
  283. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  284. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  285. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  286. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  287. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  288. package/dist/cdn/index.js +2 -2
  289. package/dist/cdn/main.css +1 -1
  290. package/dist/chunks/Auth.js +3 -9
  291. package/dist/chunks/appConfig.js +11 -0
  292. package/dist/chunks/cardFetchingUtils.js +102 -150
  293. package/dist/chunks/common.js +1 -1
  294. package/dist/chunks/deployAppContexts.js +1 -1
  295. package/dist/chunks/downloadUtils.js +1 -1
  296. package/dist/chunks/helpers.js +76 -0
  297. package/dist/chunks/index.js +1 -1
  298. package/dist/chunks/interfaces.js +21 -20
  299. package/dist/chunks/loadModules.js +1 -1
  300. package/dist/chunks/mapViewUtils.js +1 -1
  301. package/dist/chunks/pciUtils.js +1 -1
  302. package/dist/chunks/popupUtils.js +1 -1
  303. package/dist/chunks/publicNotificationStore.js +1 -1
  304. package/dist/chunks/queryUtils.js +1 -1
  305. package/dist/chunks/runtime.js +1 -1
  306. package/dist/chunks/solution-store.js +1 -1
  307. package/dist/chunks/templates.js +1 -1
  308. package/dist/chunks/useT9n.js +1 -1
  309. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  310. package/dist/components/basemap-gallery/customElement.js +1 -1
  311. package/dist/components/buffer-tools/customElement.js +1 -1
  312. package/dist/components/card-manager/customElement.js +24 -23
  313. package/dist/components/consent-manager/customElement.js +1 -1
  314. package/dist/components/create-feature/customElement.d.ts +6 -0
  315. package/dist/components/create-feature/customElement.js +8 -8
  316. package/dist/components/create-related-feature/customElement.js +1 -1
  317. package/dist/components/crowdsource-manager/customElement.js +13 -13
  318. package/dist/components/crowdsource-reporter/customElement.js +19 -16
  319. package/dist/components/deduct-calculator/customElement.js +1 -1
  320. package/dist/components/delete-button/customElement.js +1 -1
  321. package/dist/components/delete-dialog/customElement.js +1 -1
  322. package/dist/components/edit-card/customElement.js +24 -18
  323. package/dist/components/feature-details/customElement.js +1 -1
  324. package/dist/components/feature-list/customElement.js +1 -1
  325. package/dist/components/field-selection/customElement.js +1 -1
  326. package/dist/components/floor-filter/customElement.js +1 -1
  327. package/dist/components/info-card/customElement.js +1 -1
  328. package/dist/components/json-editor/customElement.js +1 -1
  329. package/dist/components/layer-list/customElement.js +1 -1
  330. package/dist/components/layer-table/customElement.js +1 -1
  331. package/dist/components/map-card/customElement.d.ts +12 -0
  332. package/dist/components/map-card/customElement.js +25 -25
  333. package/dist/components/map-draw-tools/customElement.js +2 -2
  334. package/dist/components/map-fullscreen/customElement.js +1 -1
  335. package/dist/components/map-layer-picker/customElement.js +2 -2
  336. package/dist/components/map-legend/customElement.js +1 -1
  337. package/dist/components/map-picker/customElement.js +22 -18
  338. package/dist/components/map-search/customElement.js +1 -1
  339. package/dist/components/map-select-tools/customElement.js +1 -1
  340. package/dist/components/map-tools/customElement.js +2 -2
  341. package/dist/components/pci-calculator/customElement.js +1 -1
  342. package/dist/components/pdf-download/customElement.js +1 -1
  343. package/dist/components/public-notification/customElement.js +2 -2
  344. package/dist/components/refine-selection/customElement.js +2 -2
  345. package/dist/components/selection-tool/customElement.js +1 -1
  346. package/dist/components/solution-article-card/customElement.js +1 -1
  347. package/dist/components/solution-configuration/customElement.js +1 -1
  348. package/dist/components/solution-configure-panel/customElement.js +1 -1
  349. package/dist/components/solution-configure-titles/customElement.js +1 -1
  350. package/dist/components/solution-contents/customElement.js +1 -1
  351. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  352. package/dist/components/solution-deploy-dialog/customElement.d.ts +42 -0
  353. package/dist/components/solution-deploy-dialog/customElement.js +154 -16
  354. package/dist/components/solution-deploy-dialog/index.d.ts +9 -0
  355. package/dist/components/solution-deploy-dialog/index.js +9 -0
  356. package/dist/components/solution-deployed-card/customElement.d.ts +4 -0
  357. package/dist/components/solution-deployed-card/customElement.js +16 -11
  358. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  359. package/dist/components/solution-details-card/customElement.d.ts +4 -11
  360. package/dist/components/solution-details-card/customElement.js +16 -16
  361. package/dist/components/solution-details-panel/customElement.d.ts +17 -0
  362. package/dist/components/solution-details-panel/customElement.js +113 -18
  363. package/dist/components/solution-details-panel/index.d.ts +12 -0
  364. package/dist/components/solution-details-panel/index.js +12 -0
  365. package/dist/components/solution-item/customElement.js +1 -1
  366. package/dist/components/solution-item-accordion/customElement.js +1 -1
  367. package/dist/components/solution-item-details/customElement.js +1 -1
  368. package/dist/components/solution-item-icon/customElement.js +1 -1
  369. package/dist/components/solution-item-sharing/customElement.js +1 -1
  370. package/dist/components/solution-items-diagram/customElement.js +1 -1
  371. package/dist/components/solution-organization-variables/customElement.js +1 -1
  372. package/dist/components/solution-resource-item/customElement.js +1 -1
  373. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  374. package/dist/components/solution-spatial-ref/customElement.js +2 -2
  375. package/dist/components/solution-template-data/customElement.js +1 -1
  376. package/dist/components/solution-variables/customElement.js +1 -1
  377. package/dist/components/solutions-all-panel/customElement.d.ts +8 -8
  378. package/dist/components/solutions-all-panel/customElement.js +50 -52
  379. package/dist/components/solutions-all-shell/customElement.d.ts +1 -1
  380. package/dist/components/solutions-all-shell/customElement.js +31 -29
  381. package/dist/components/solutions-article-panel/customElement.js +1 -1
  382. package/dist/components/solutions-articles/customElement.js +1 -1
  383. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  384. package/dist/components/solutions-deployed-panel/customElement.js +15 -14
  385. package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
  386. package/dist/components/solutions-deployed-shell/customElement.js +28 -26
  387. package/dist/components/solutions-filter-panel/customElement.d.ts +8 -3
  388. package/dist/components/solutions-filter-panel/customElement.js +82 -101
  389. package/dist/components/spatial-ref/customElement.js +1 -1
  390. package/dist/components/store-manager/customElement.js +1 -1
  391. package/dist/docs/api.json +521 -259
  392. package/dist/docs/docs.json +504 -192
  393. package/dist/docs/vscode.html-custom-data.json +32 -43
  394. package/dist/docs/web-types.json +172 -87
  395. package/dist/index.d.ts +32 -6
  396. package/dist/index.js +1 -1
  397. package/dist/loader.js +7 -8
  398. package/dist/types/lumina.d.ts +10 -10
  399. package/dist/types/preact.d.ts +10 -11
  400. package/dist/types/react.d.ts +10 -12
  401. package/dist/types/stencil.d.ts +10 -10
  402. package/dist/utils/cardFetchingUtils.d.ts +3 -3
  403. package/dist/utils/interfaces.d.ts +47 -9
  404. package/package.json +3 -2
  405. package/dist/cdn/33CJMY5K.js +0 -18
  406. package/dist/cdn/3FEML345.js +0 -18
  407. package/dist/cdn/3IP3UCC6.js +0 -4
  408. package/dist/cdn/4OW4FAGV.js +0 -18
  409. package/dist/cdn/4ZZY4G5L.js +0 -4
  410. package/dist/cdn/5CTYL5OX.js +0 -4
  411. package/dist/cdn/5VVOF3UA.js +0 -4
  412. package/dist/cdn/6BLHHHGI.js +0 -18
  413. package/dist/cdn/6QGWW2DJ.js +0 -4
  414. package/dist/cdn/AS2YP4CC.js +0 -4
  415. package/dist/cdn/BFNEXKKP.js +0 -18
  416. package/dist/cdn/C5ZEFQEX.js +0 -4
  417. package/dist/cdn/CMO56LFB.js +0 -4
  418. package/dist/cdn/CR2HG4F6.js +0 -4
  419. package/dist/cdn/D57MZFOU.js +0 -4
  420. package/dist/cdn/DDWTO2EM.js +0 -4
  421. package/dist/cdn/DL42SYVU.js +0 -4
  422. package/dist/cdn/EI3DVNTC.js +0 -4
  423. package/dist/cdn/GAEZB6HN.js +0 -4
  424. package/dist/cdn/HA2OGFHW.js +0 -4
  425. package/dist/cdn/HIYIOXEQ.js +0 -4
  426. package/dist/cdn/I2GIDS2K.js +0 -4
  427. package/dist/cdn/IPXVQFFH.js +0 -4
  428. package/dist/cdn/J2ZOLADT.js +0 -4
  429. package/dist/cdn/JH33JHRL.js +0 -4
  430. package/dist/cdn/KCMPZ54Y.js +0 -18
  431. package/dist/cdn/KS3MADXB.js +0 -4
  432. package/dist/cdn/LK4UQLYZ.js +0 -18
  433. package/dist/cdn/LROPDZCW.js +0 -4
  434. package/dist/cdn/M6XME7OM.js +0 -4
  435. package/dist/cdn/PEOMHSG3.js +0 -4
  436. package/dist/cdn/PFGUJCMD.js +0 -18
  437. package/dist/cdn/PGXMYR7Q.js +0 -18
  438. package/dist/cdn/PIBSUTGK.js +0 -18
  439. package/dist/cdn/PJPC75F5.js +0 -4
  440. package/dist/cdn/RMYNQEIN.js +0 -18
  441. package/dist/cdn/RRRRSVAS.js +0 -4
  442. package/dist/cdn/SYSZXXPY.js +0 -4
  443. package/dist/cdn/TKRGTLNR.js +0 -18
  444. package/dist/cdn/TQ2X7VMW.js +0 -6
  445. package/dist/cdn/U44MKOB3.js +0 -4
  446. package/dist/cdn/VJPEZ2CS.js +0 -18
  447. package/dist/cdn/VLHFZNHN.js +0 -4
  448. package/dist/cdn/VUAQDVTL.js +0 -18
  449. package/dist/cdn/XCZRYZDV.js +0 -4
  450. package/dist/cdn/XEG2HRCV.js +0 -4
  451. package/dist/cdn/YNVH5WET.js +0 -4
  452. package/dist/cdn/YS42NZJY.js +0 -4
  453. package/dist/cdn/YZNBB7J7.js +0 -4
  454. package/dist/cdn/ZE5UWIMJ.js +0 -4
  455. package/dist/cdn/ZIAYAVCI.js +0 -18
  456. package/dist/cdn/ZVTVCHDD.js +0 -18
  457. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.en.json +0 -1
  458. package/dist/cdn/assets/solution-deploy-panel/t9n/messages.json +0 -1
  459. package/dist/components/solution-deploy-panel/customElement.d.ts +0 -18
  460. package/dist/components/solution-deploy-panel/customElement.js +0 -72
  461. package/dist/components/solution-deploy-panel/index.d.ts +0 -12
  462. package/dist/components/solution-deploy-panel/index.js +0 -12
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as F}from"./YS42NZJY.js";import{j as x}from"./C3JZDZSB.js";import{a as M}from"./FCGJ2VZH.js";import{A as E,D as k,I as L,c as v,d as u,f as A,o as I,q as $,s as T,t as N,u as R,w as S,x as m,y as w,z as C}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var D=(n,e,l)=>{let r=new Map;for(let t=e;t<=l;t++)r.set(n[t],t);return r},U=N(class extends R{constructor(n){if(super(n),n.type!==T.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,l){let r;l===void 0?l=e:e!==void 0&&(r=e);let t=[],i=[],s=0;for(let a of n)t[s]=r?r(a,s):s,i[s]=l(a,s),s++;return{values:i,keys:t}}render(n,e,l){return this.dt(n,e,l).values}update(n,[e,l,r]){let t=C(n),{values:i,keys:s}=this.dt(e,l,r);if(!Array.isArray(t))return this.ut=s,i;let a=this.ut??=[],p=[],y,O,o=0,h=t.length-1,c=0,d=i.length-1;for(;o<=h&&c<=d;)if(t[o]===null)o++;else if(t[h]===null)h--;else if(a[o]===s[c])p[c]=m(t[o],i[c]),o++,c++;else if(a[h]===s[d])p[d]=m(t[h],i[d]),h--,d--;else if(a[o]===s[d])p[d]=m(t[o],i[d]),S(n,p[d+1],t[o]),o++,d--;else if(a[h]===s[c])p[c]=m(t[h],i[c]),S(n,t[o],t[h]),h--,c++;else if(y===void 0&&(y=D(s,c,d),O=D(a,o,h)),y.has(a[o]))if(y.has(a[h])){let g=O.get(s[c]),_=g!==void 0?t[g]:null;if(_===null){let f=S(n,t[o]);m(f,i[c]),p[c]=f}else p[c]=m(_,i[c]),S(n,t[o],_),t[g]=null;c++}else E(t[h]),h--;else E(t[o]),o++;for(;c<=d;){let g=S(n,p[d+1]);m(g,i[c]),p[c++]=g}for(;o<=h;){let g=t[o++];g!==null&&E(g)}return this.ut=s,w(n,p),A}});var P=v`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.width-full{width:100%}}`;var V={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},G=Object.keys(x).reduce((n,e)=>{let l=e;return n[l]=V[l]??[],n},{}),b=class extends k{constructor(){super(),this.isAIsettingEnabled=!1,this.isAllSolutions=!1,this._activeFilterSettings={industry:{group:"",subgroup:""},isOwnerMySolutions:!0,searchTerm:""},this._translations=M({name:"solutions-filter-panel",blocking:!0}),this.applyFilter=I(),this._handleFilterRemoved=e=>{console.log("Caught globally bubbled event",e)},this.listenOn(window,"filterRemoved",this._handleFilterRemoved)}static{this.properties={isAIsettingEnabled:5,isAllSolutions:5,_activeFilterSettings:16,_translations:16}}static{this.styles=P}static{this.shadowRootOptions=$}changeOwnerFilter(e){if(this._activeFilterSettings.isOwnerMySolutions!==e){this._activeFilterSettings={...this._activeFilterSettings,isOwnerMySolutions:e};let l={displayValue:this._activeFilterSettings.isOwnerMySolutions?this._translations.mySolutions:this._translations.myOrgSolutions,type:"owner",value:this._activeFilterSettings.isOwnerMySolutions?"OWNER":"ORGANIZATION"};this.applyFilter.emit(l)}}changeIndustryFilter(e,l,r){let t={displayValue:r,type:l!==""?"domain":"industry",value:l!==""?l:e,industry:e,domain:l};if(e===""){let i={group:"",subgroup:""};this._activeFilterSettings={...this._activeFilterSettings,industry:i}}else if(this._activeFilterSettings.industry.group!==e){let i={group:e,subgroup:""};this._activeFilterSettings={...this._activeFilterSettings,industry:i}}if(l!==""&&this._activeFilterSettings.industry.subgroup!==l){let i={group:this._activeFilterSettings.industry.group,subgroup:l};this._activeFilterSettings={...this._activeFilterSettings,industry:i}}this.applyFilter.emit(t)}changeSearchFilter(e){this._activeFilterSettings={...this._activeFilterSettings,searchTerm:e},(e.length>=3||e==="")&&this.applyFilter.emit({searchTerm:e})}clearFilters(){this.changeIndustryFilter("","",""),this.changeSearchFilter(""),this.changeOwnerFilter(!0),this.applyFilter.emit(null)}render(){return u`<calcite-panel description .heading=${this._translations.findSolutions}><calcite-action icon=reset @click=${()=>{this.clearFilters()}} slot=header-actions-end .text=${this._translations.clear} text-enabled></calcite-action><calcite-input-text class="width-full" clearable icon=search @calciteInputTextInput=${e=>{this.changeSearchFilter(e.target.value)}} .placeholder=${this._translations.search.solutions} slot=content-top .value=${this._activeFilterSettings.searchTerm}></calcite-input-text><calcite-block-group label>${!this.isAllSolutions&&this.renderOwnerBlock()||""}${this.renderIndustryBlock()}</calcite-block-group>${this.isAIsettingEnabled&&u`<calcite-button icon-start=speech-bubbles label="Solutions Assistant" round scale=l slot=footer-start></calcite-button>`||""}</calcite-panel>`}renderOwnerBlock(){return u`<calcite-block collapsible description expanded .heading=${this._translations.owner}><calcite-tree selection-mode=single>${this._activeFilterSettings.isOwnerMySolutions?u`<calcite-tree-item .label=${this._translations.mySolutions} @click=${()=>{this.changeOwnerFilter(!0)}} selected>${this._translations.mySolutions}</calcite-tree-item>`:u`<calcite-tree-item .label=${this._translations.mySolutions} @click=${()=>{this.changeOwnerFilter(!0)}}>${this._translations.mySolutions}</calcite-tree-item>`}${this._activeFilterSettings.isOwnerMySolutions?u`<calcite-tree-item .label=${this._translations.myOrgSolutions} @click=${()=>{this.changeOwnerFilter(!1)}}>${this._translations.myOrgSolutions}</calcite-tree-item>`:u`<calcite-tree-item .label=${this._translations.myOrgSolutions} @click=${()=>{this.changeOwnerFilter(!1)}} selected>${this._translations.myOrgSolutions}</calcite-tree-item>`}</calcite-tree></calcite-block>`}renderIndustryBlock(){let e=(r,t)=>U(t,i=>i,i=>{let s=Object.keys(this._translations.industriesDomain).find(p=>p.toUpperCase()===i.toUpperCase()),a=s&&s in this._translations.industriesDomain?this._translations.industriesDomain[s]:i;return i===this._activeFilterSettings.industry.subgroup&&F(i,u`<calcite-tree-item .label=${a} @click=${()=>{this.changeIndustryFilter(r,i,a)}} selected>${a}</calcite-tree-item>`),u`<calcite-tree-item .label=${a} @click=${()=>{this.changeIndustryFilter(r,i,a)}}>${a}</calcite-tree-item>`}),l=Object.entries(G).map(([r,t])=>{let i=Object.keys(this._translations.industries).find(a=>a.toUpperCase()===r.toUpperCase()),s=i&&i in this._translations.industries?this._translations.industries[i]:r;return r===this._activeFilterSettings.industry.group?F(r,u`<calcite-tree-item .expanded=${r===this._activeFilterSettings.industry.group&&t.length>0} .label=${s} @click=${()=>{this.changeIndustryFilter(r,"",s)}} selected>${s}${t.length>0&&u`<calcite-tree slot=children>${e(r,t)}</calcite-tree>`||""}</calcite-tree-item>`):F(r,u`<calcite-tree-item .expanded=${r===this._activeFilterSettings.industry.group&&t.length>0} .label=${s} @click=${()=>{this.changeIndustryFilter(r,"",s)}}>${s}${t.length>0&&u`<calcite-tree slot=children>${e(r,t)}</calcite-tree>`||""}</calcite-tree-item>`)});return u`<calcite-block collapsible description expanded .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-tree selection-mode=single>${l}</calcite-tree></calcite-block>`}};L("solutions-filter-panel",b);export{b as SolutionsFilterPanel};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{c as n}from"./GAEZB6HN.js";var A;(function(r){r.ASC="ASC",r.DESC="DESC"})(A||(A={}));var E;(function(r){r.CLAPPING_HANDS="clapping_hands",r.CONFUSED="confused",r.DOWN_ARROW="down_arrow",r.EYES="eyes",r.FACE_WITH_TEARS_OF_JOY="face_with_tears_of_joy",r.FIRE="fire",r.GRINNING="grinning",r.HEART="heart",r.LAUGH="laugh",r.ONE_HUNDRED="one_hundred",r.PARTYING="partying",r.PARTY_POPPER="party_popper",r.RAISING_HANDS="raising_hands",r.ROCKET="rocket",r.SAD="sad",r.SLIGHTLY_SMILING="slightly_smiling",r.SURPRISED="surprised",r.THINKING="thinking",r.THUMBS_UP="thumbs_up",r.THUMBS_DOWN="thumbs_down",r.TROPHY="trophy",r.UP_ARROW="up_arrow",r.WAVING_HAND="waving_hand",r.WINKING="winking",r.WORLD_MAP="world_map"})(E||(E={}));var p;(function(r){r.PUBLIC="public",r.ORG="org",r.PRIVATE="private"})(p||(p={}));var a;(function(r){r.PENDING="pending",r.APPROVED="approved",r.REJECTED="rejected",r.DELETED="deleted",r.HIDDEN="hidden",r.BLOCKED="blocked"})(a||(a={}));var T;(function(r){r.GROUP="group",r.CONTENT="content",r.BOARD="board"})(T||(T={}));var i;(function(r){r.HUB="hub",r.AGO="ago",r.URBAN="urban"})(i||(i={}));var u;(function(r){r.REPLIES="replies",r.REACTIONS="reactions",r.PARENT="parent",r.CHANNEL="channel",r.CHANNEL_ACL="channelAcl"})(u||(u={}));var _;(function(r){r.POST="post"})(_||(_={}));var d;(function(r){r.HAS_USER_POSTS="has_user_posts"})(d||(d={}));var N;(function(r){r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.UPDATED_AT="updatedAt"})(N||(N={}));var D;(function(r){r.CSV="csv",r.JSON="json"})(D||(D={}));var I;(function(r){r.READ="read",r.WRITE="write",r.READWRITE="readWrite",r.MODERATE="moderate",r.MANAGE="manage",r.OWNER="owner"})(I||(I={}));var t;(function(r){r.BODY="body",r.CHANNEL_ID="channelId",r.CREATED_AT="createdAt",r.CREATOR="creator",r.DISCUSSION="discussion",r.EDITOR="editor",r.ID="id",r.PARENT_ID="parentId",r.STATUS="status",r.TITLE="title",r.UPDATED_AT="updatedAt"})(t||(t={}));var c;(function(r){r.Text="text",r.Announcement="announcement",r.Poll="poll",r.Question="question"})(c||(c={}));var O;(function(r){r.ACCESS="access",r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.LAST_ACTIVITY="last_activity",r.UPDATED_AT="updatedAt"})(O||(O={}));var f;(function(r){r.CHANNEL_ACL="channelAcl"})(f||(f={}));var U;(function(r){r.ANONYMOUS_USER="anonymousUser",r.AUTHENTICATED_USER="authenticatedUser",r.GROUP="group",r.ORG="org",r.USER="user"})(U||(U={}));var h;(function(r){r.ADMIN="admin",r.MEMBER="member"})(h||(h={}));var v;(function(r){r.CONTENT="content"})(v||(v={}));function R(r){let e;return r.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://hubqa.arcgis.com":r.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://hubdev.arcgis.com":r.match(/(www|\.maps)\.arcgis.com/)&&(e="https://hub.arcgis.com"),e}function C(r){let e=r&&r.hubApiUrl;return e||R(n(r))}export{C as a,D as b,I as c,f as d,U as e,h as f,v as g};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as r}from"./FCGJ2VZH.js";import{D as o,I as n,c as i,d as t,q as s}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var a=i`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */}`,e=class extends o{constructor(){super(...arguments),this._translations=r({name:"solution-deploy-dialog",blocking:!0})}static{this.properties={_translations:16}}static{this.styles=a}static{this.shadowRootOptions=s}render(){return t`<calcite-dialog></calcite-dialog>`}};n("solution-deploy-dialog",e);export{e as SolutionDeployDialog};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{b as e,c as n,d as r}from"./YNKDS73P.js";var s=new RegExp(/.+(?:map|feature|image)server/i);function i(t){let a=t.match(s);return a?a[0]:c(t)}function c(t){let a=t.split("?")[0];return r(a)}function d(t){return e(r(t.url),t)}function x(t,a){let o=`${r(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return a.params=Object.assign({updateDefinition:{}},a.params),a.updateDefinition&&(a.params.updateDefinition=a.updateDefinition),e(o,a)}function Y(t){let a=n(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return e(`${r(t.url)}/queryRelatedRecords`,a)}export{i as a,d as b,Y as c,x as d};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as X}from"./7Z27VXFW.js";import{a as s}from"./2IQP5CPJ.js";import{b as x}from"./NJ3ACG6J.js";import{d as J,e as H,g as V,h as z}from"./DL42SYVU.js";import{a as h,c as K,f as P,g as T,h as N,i as C,j as B,l as R,m as w}from"./CR2HG4F6.js";import{a as U,b as M,d as I}from"./4ZZY4G5L.js";import"./3IP3UCC6.js";import"./UWKDTPML.js";import"./DDWTO2EM.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./A6VHGI5U.js";import"./XYVZEUU3.js";import{d as G}from"./GAEZB6HN.js";import"./QB54S7F4.js";import{a as p}from"./M6XME7OM.js";import"./TT63U5XZ.js";import"./PMETOHGA.js";import"./N74LH7NF.js";import{f as O,h as j}from"./YNVH5WET.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import{a as d}from"./KN36CLI6.js";import"./7H5QHDT3.js";import"./NUVLGW3I.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 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as i}from"./ONPGGFF4.js";import{a as l}from"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import{a as r}from"./KN36CLI6.js";import{a as s}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var d=async(e,a,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.access.label`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.fields.access.private.description:translate}}`,`{{${e}.fields.access.org.description:translate}}`,`{{${e}.fields.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.fields.access.private.label:translate}}`,`{{${e}.fields.access.org.label:translate}}`,`{{${e}.fields.access.public.label:translate}}`],rules:[{effect:s.NONE},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToOrg",t).access]},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToPublic",t).access]}]}}]},{type:"Section",labelKey:`${e}.sections.capabilities.label`,elements:[{labelKey:`${e}.fields.isSharedUpdate.label`,scope:"/properties/isSharedUpdate",type:"Control",options:Object.assign({control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.isSharedUpdate.helperText`}},!l("platform:portal:admin:createUpdateCapableGroup",t).access&&{tooltip:{labelKey:`${e}.fields.isSharedUpdate.tooltip`}}),rule:{effect:s.ENABLE,conditions:[l("platform:portal:admin:createUpdateCapableGroup",t).access]}},{labelKey:`${e}.fields.isAdmin.label`,scope:"/properties/leavingDisallowed",type:"Control",options:Object.assign({control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.isAdmin.helperText`}},!l("platform:portal:admin:createLeavingDisallowedGroup",t).access&&{tooltip:{labelKey:`${e}.fields.isAdmin.tooltip`}}),rules:[{effect:s.ENABLE,conditions:[l("platform:portal:admin:createLeavingDisallowedGroup",t).access]}]},{labelKey:`${e}.fields.isOpenData.label`,scope:"/properties/isOpenData",type:"Control",options:Object.assign(Object.assign({control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.isOpenData.helperText`}},(!l("platform:opendata:user:designateGroup",t).access||a.access!=="public")&&{tooltip:{labelKey:`${e}.fields.isOpenData.tooltip`}}),{messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.isOpenData.constError`}]}),rules:[{effect:s.ENABLE,conditions:[{scope:"/properties/access",schema:{const:"public"}},l("platform:opendata:user:designateGroup",t).access]},{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{not:{const:"public"}}}]},{effect:s.SHOW,conditions:[!!r(t,"portal.portalProperties.openData.enabled")]}]}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.label:translate}}`,`{{${e}.fields.membershipAccess.collab.label:translate}}`,`{{${e}.fields.membershipAccess.any.label:translate}}`],descriptions:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.membershipAccess.patternError`},{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.membershipAccess.constError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.join.label`,scope:"/properties/_join",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.join.invite.label:translate}}`,`{{${e}.fields.join.request.label:translate}}`,`{{${e}.fields.join.auto.label:translate}}`],descriptions:[`{{${e}.fields.join.invite.description:translate}}`,`{{${e}.fields.join.request.description:translate}}`,`{{${e}.fields.join.auto.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.join.constError`},{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.join.patternError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]}]},{labelKey:`${e}.fields.hiddenMembers.label`,scope:"/properties/hiddenMembers",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.hiddenMembers.members.label:translate}}`,`{{${e}.fields.hiddenMembers.admins.label:translate}}`],descriptions:[`{{${e}.fields.hiddenMembers.members.description:translate}}`,`{{${e}.fields.hiddenMembers.admins.description:translate}}`]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.label:translate}}`,`{{${e}.fields.contributeContent.admins.label:translate}}`],descriptions:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}),f=async(e,a,t)=>Object.assign(Object.assign({},i("hubGroup",t)),a);export{f as buildDefaults,d as buildUiSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a}from"./FCGJ2VZH.js";import{D as n,I as o,c as t,d as i,q as s}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var r=t`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */}`,e=class extends n{constructor(){super(...arguments),this._translations=a({name:"solution-details-panel",blocking:!0})}static{this.properties={_translations:16}}static{this.styles=r}static{this.shadowRootOptions=s}render(){return i`<calcite-panel></calcite-panel>`}};o("solution-details-panel",e);export{e as SolutionDetailsPanel};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as o}from"./ONPGGFF4.js";import{a as r}from"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import"./KN36CLI6.js";import{a as s}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!0]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubEditGroup",t));export{m as buildDefaults,p as buildUiSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a}from"./WL5HYM67.js";import"./XYVZEUU3.js";import"./ROVGEAF3.js";import"./T62HZRZ4.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import"./4ZGXBIVH.js";import"./NUVLGW3I.js";export{a as buildUiSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import d from"./HIYIOXEQ.js";import{a as U,c as P}from"./OGISVN6B.js";import{b as T,n as x,o as b}from"./TQ2X7VMW.js";import"./4ZZY4G5L.js";import"./M6XME7OM.js";import"./YNVH5WET.js";import"./YNKDS73P.js";import"./KN36CLI6.js";import{j as w,k as y,l as a,m as c,n as I,o as u,p as A}from"./C3JZDZSB.js";import{a as v}from"./FCGJ2VZH.js";import{C as h,D as C,G as S,I as f,c as m,d as n,e as p,o as _}from"./XSPGKSFV.js";import"./NUVLGW3I.js";export default $arcgis.t(([{a:O,b:d,c:E}])=>{var F=m`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */calcite-panel{width:100%;height:100%}.card-group{overflow:hidden;padding:.5rem}.solutions-briefcase{margin:auto;padding-top:2rem}.text-center{text-align:center}.leader-1{margin-top:1.5rem}.trailer-1{margin-bottom:1.5rem}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%}`;async function N(s,e,t){let i=t;return s&&(s?.IsEnterprisePortal&&await D("",e)&&i.push(a.NOTEBOOK),await O(e)?t.push(a.VELOCITY):s?.PortalUserPrivileges&&[c.VELOCITYFEEDS,c.VELOCITYBIGDATA,c.VELOCITYREALTIME].forEach(o=>{let r=t.indexOf(o)||-1;r!==-1&&t.splice(r,1)}),i=i.concat(L(V(s),M(s))),i=i.concat(R(s)),i=i.concat(await $(s))),Promise.resolve(i)}function L(s,e){let t=[];return s&&e?t=[a.TRACKINGADMINANDTRACKING,a.TRACKINGADMIN,a.TRACKING]:s&&!e?t=[a.TRACKINGADMIN]:!s&&e&&(t=[a.TRACKING]),t}function R(s){return G(s)?[a.HUBPREMIUM]:[]}async function $(s){let e=await b(s?.RestUserSession);return await x(e,s?.RestUserSession)?[a.WORKFLOW]:[]}async function D(s,e){let t=s+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return T(`${t}/portals/self/servers`,i).then(o=>o?.servers?.find(r=>r.serverFunction.indexOf("NotebookServer")>-1),o=>(console.error(o),!1))}function V(s){let e=s?.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function M(s){return s?.PortalSubset?.locationTrackingEnabled||!1}function G(s){return s?.PortalSubset?.hubPremiumEnabled||!1}var g=class extends C{constructor(){super(...arguments),this.authContextConsumer=h({context:P,subscribe:!0}),this.agoSolutionsGroupId="",this.enterpriseSolutionsGroupId="",this.locale="",this.orgUrl="",this.portalUrl="",this.sortType="numviews",this.userSessionContextConsumer=h({context:U,subscribe:!0}),this.cards=[],this._translations=v({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${u} OR ${A}`,this._allCards=[],this._baseAgoTerms=u,this._categories=[],this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="numviews",this._sortOrder="desc",this._userPrivileges=[],this.cardsFetched=_()}static{this.properties={authContextConsumer:32,agoSolutionsGroupId:1,enterpriseSolutionsGroupId:1,locale:1,orgUrl:1,portalUrl:1,sortType:1,userSessionContextConsumer:32,cards:16,_translations:16}}static{this.styles=F}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this.cards=await this._getSolutions()}async load(){this._cardsFetcher=new d(this.locale,this.orgUrl,this.portalUrl),this._cardsFetcherDeployed=new d(this.locale,this.orgUrl,this.portalUrl),this.cards=await this._getSolutions(),await this._getDeployedSolutions(),this._userPrivileges=await this._getUserPrivileges(),console.log(this._userPrivileges)}render(){return n`<calcite-panel><calcite-card-group class="card-group" label>${this._renderCards()}</calcite-card-group></calcite-panel>`}_renderCards(){return this.cards.length?this.cards.map(e=>n`<solution-details-card .chip=${e.chip} .description=${e.description} .heading=${e.heading} itemId=${e.itemId??S} .thumbnail=${e.thumbnail}></solution-details-card>`):n`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.noSolutionsFound}</div></div>`}async _getSolutions(){let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},this.agoSolutionsGroupId,"",this.userSessionContextConsumer.value,{num:1e3}),t="/Categories/New Release",i=e?.cards.length?e.cards:[];this.sortType==="new"&&i.sort((r,l)=>r.categories.includes(t)&&!l.categories.includes(t)?-1:!r.categories.includes(t)&&l.categories.includes(t)?1:r.categories.includes(t)&&l.categories.includes(t)?r.categories.length-l.categories.length:0);let o=i.map(r=>({chip:r.categories.indexOf(t)>-1?"updated":"none",description:r.snippet,heading:r.title,itemId:r.id,thumbnail:r.thumbnailUrl}));return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards),this.cardsFetched.emit(o.length),o}async _getDeployedSolutions(){let e=this.authContextConsumer.value,t=this.userSessionContextConsumer.value;if(e&&t){let i=await E(e,t,this._cardsFetcher,this._cardsFetcherDeployed,I,"created");i&&(this._relatedSolutions=i.relatedSolutions,console.log(this._relatedSolutions))}}async _getUserPrivileges(){let e=[],t=this.authContextConsumer.value,i=this.userSessionContextConsumer.value;return i&&t&&(e=t.PortalUserPrivileges?await N(t,i,t?.PortalUserPrivileges):[]),e}_getSolutionsBriefcase(){return n`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${p`<path d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" fill=#ccc /><path d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":(t==="relevance"||t==="title"||t==="numviews")&&(t==="title"&&(this._sortOrder="asc"),this._sortField=t),this.sortType=t}_filterCards(e){if(e.industry){let t=this._getIndustryValue(e.industry);if(e.domain){let i=this._getDomainValue(e.domain);this._categories=[`/Categories/${t}/${i}`]}else this._categories=[`/Categories/${t}`];this._getSolutions()}}_getDomainValue(e){return y[e]}_getIndustryValue(e){return e==="AEC"?"AEC":w[e]}_clearFilterCategories(){this._categories=[]}};f("solutions-all-panel",g);return g},d)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as o}from"./ONPGGFF4.js";import{a as r}from"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import"./KN36CLI6.js";import{a as s}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as G}from"./YESDLOJA.js";import{a as L}from"./7Z27VXFW.js";import{b as j,f as P,m as K,n as _,o as U}from"./CR2HG4F6.js";import"./4ZZY4G5L.js";import"./3IP3UCC6.js";import"./XYVZEUU3.js";import"./GAEZB6HN.js";import"./QB54S7F4.js";import{a as S}from"./M6XME7OM.js";import"./TT63U5XZ.js";import"./PMETOHGA.js";import"./N74LH7NF.js";import{k as w}from"./YNVH5WET.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import{b as A}from"./XUJO4B4K.js";import{a as c,b as p}from"./FBEKXE53.js";import"./NUVLGW3I.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 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as x}from"./4ZZY4G5L.js";import{a as I}from"./3IP3UCC6.js";import{a as d}from"./XYVZEUU3.js";import{b as p,d as v,e as M}from"./GAEZB6HN.js";import{a as y}from"./M6XME7OM.js";import{a as k,e as R,f as A,g as E}from"./N74LH7NF.js";import{a as U}from"./JGA5STLE.js";import{a as c}from"./KN36CLI6.js";function h(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,l)=>{!o.hasOwnProperty(s)||o[s]==null?l===i?o[s]=r:o[s]={}:l===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=y(r):o[s]=Object.assign(o[s],y(r)):o[s]=r),o=o[s]})}function f(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),h(r,t,e,n)}var K=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var l=o/s,u=i/s;if(l>=0&&l<=1&&u>=0&&u<=1)return!0}return!1},V=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},J=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},$=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(K(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},S=function(e){return J(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},N=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},j=function(e,r){var n=$(e,r),a=V(e,r[0]);return!!(!n&&a)},Q=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var l=S(e[s].slice(0));if(!(l.length<4))if(D(l)){var u=[l.slice().reverse()];r.push(u)}else n.push(l.slice().reverse())}for(var g=[];n.length;){i=n.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||g.push(i)}for(;g.length;){i=g.pop();var P=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],$(o,i)){r[a].push(i),P=!0;break}P||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},Z=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},xe=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=Q(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?N(e.attributes):null,e.attributes))try{n.id=Z(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},T=function(e){var r=[],n=e.slice(0),a=S(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=S(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},Y=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=T(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=T(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=Y(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?N(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function Se(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function m(t){let e="enterprise";return t.includes("arcgis.com")&&(e="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(e="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(e="devext"),e}function Pe(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=M(t,e,n),[i,s]=o.split("?"),l=new URLSearchParams(s);l.delete("f"),a&&l.append("w",a+"");let u=l.toString(),g=`${i}/info/${t.thumbnail}`;return u?`${g}?${u}`:g}var L;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(L||(L={}));function z(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}var b={devext:"dev",qaext:"qa",production:""};var q=t=>R(t)?Object.assign(Object.assign({},k(t)),{type:"extent"}):void 0,We=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=q(r);if(a)return{type:z(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=E(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:A(o)?i:re(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var _e=(t,e,r)=>{let n=ee(t,e,r)||te(t,e,r),a=U(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":X(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},X=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ee=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},te=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var B;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(B||(B={}));var re=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},Ge=(t,e,r)=>{let n=ne(e);return n&&n.map(a=>({name:a.orName,url:ae(a,t,r),isDataSource:F(a,t)}))},ne=t=>{let e=[];return C(c(t,"metadata.distInfo")||[]).forEach(r=>{C(r.distTranOps||[]).forEach(n=>{C(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},C=t=>Array.isArray(t)?t:[t],F=(t,e)=>{let r=e.url&&x(e.url);return r&&t.linkage&&t.linkage.includes(r)},ae=(t,e,r)=>{let n=t.linkage,a=c(r,"authentication.token");if(a&&F(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var Ke=(t,e)=>{let r;switch(oe(t)){case"Dashboard":r=le(t,e);break;case"Insights Workbook":r=pe(t,e);break;case"Experience":r=se(t,e);break;case"Web AppBuilder":r=ce(t,e);break;case"Form":r=ue(t,e);break;case"StoryMap":r=ie(t,e);break;case"Urban Model":r=de(t,e);break;default:r=v(t.id,e)}return r},oe=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ie=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=p(e),a=m(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},se=(t,e)=>{let r=p(e),n=m(r);return`${`https://experience${b[n]}.arcgis.com`}/builder/?id=${t.id}`},le=(t,e)=>{let r=p(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},ce=(t,e)=>`${p(e)}/apps/webappbuilder/index.html?id=${t.id}`,ue=(t,e)=>{let r=p(e),n=m(r),a=`https://survey123${b[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=v(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},pe=(t,e)=>{let r=p(e),n=m(r),a=`https://insights${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/#/edit/${t.id}`},de=(t,e)=>{let r=p(e),n=m(r),a=`https://urban${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/?id=${t.id}`},H=t=>t.indexOf("arcgis.com")===-1;function Ve(t,e){return`${fe(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function fe(t){return I(t).replace(/\/api\/v3$/,"")}var Je=async(t,e)=>{let n=`${I(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};function W(t){let e=!1;return t&&(e=!(t.typeKeywords||[]).includes(d)),e}function Ze(t,e){let r=(t||[]).filter(n=>n!==d);return e||r.push(d),r}var _=class{constructor(e){this.mappings=e}storeToEntity(e,r){let n=me(e,r,this.mappings);if(c(e,"item")){let a=c(e,"item");f("canEdit",["admin","update"].includes(a.itemControl),n),f("canDelete",a.itemControl==="admin",n),f("canRecycle",a.canRecycle||!1,n),f("protected",a.protected,n)}return n}entityToStore(e,r){return ge(e,r,this.mappings)}};function ge(t,e,r){if(c(e,"item")){let n=c(e,"item");n.typeKeywords&&(n.typeKeywords=c(t,"isDiscussable")?n.typeKeywords.filter(a=>a!==d):[...n.typeKeywords,d],f("item.typeKeywords",n.typeKeywords,e))}return G(t,"entityKey",e,"storeKey",r)}function me(t,e,r){if(c(t,"item")){let n=c(t,"item");f("isDiscussable",W(n),e)}return G(t,"storeKey",e,"entityKey",r)}function G(t,e,r,n,a){let o=y(r);return a.forEach(i=>{let s=c(i,e),l=c(i,n),u=c(t,s);u!=null&&h(o,l,u,!0)}),o}export{f as a,Se as b,Pe as c,xe as d,We as e,_e as f,Ge as g,Ke as h,Ve as i,Je as j,W as k,Ze as l,_ as m,ge as n,me as o};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a,b}from"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- var p="::",r="|";function c(t){return t.indexOf(r)>-1&&(t=t.replace(r,p)),t}var u="~",R=256,o="slug";function _(t,e,n=0){return[o,e.toLowerCase(),t].join("|").substring(0,R-n).replace(/-+$/,"").replace(new RegExp(`^${o}\\|`),"")}function l(t){let e=`${o}|${t}|`;return R-e.length}var s=(t,e)=>`${t.split(r).pop()}${u}${e}`;export{c as a,o as b,_ as c,l as d,s as e};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{b as y,e as g,k as h}from"./CR2HG4F6.js";import{b as s,c as f}from"./DDWTO2EM.js";import{a as i}from"./M6XME7OM.js";import{b as c}from"./N74LH7NF.js";import{b as m,e as p,f as a,g as d,k as l}from"./YNVH5WET.js";function M(e,t){return f(y(e),t,4)}function U(e,t){let r=e.filter(o=>!o.startsWith(`${s}|`));return r.push([s,t].join("|")),r}async function b(e,t){if(!e.slug)return[];let o={filter:`typekeywords:"${e.slug.startsWith(`${s}|`)?e.slug:[s,e.slug].join("|")}"`};t.authentication?o.authentication=t.authentication:t.portal&&(o.portal=t.portal),e.exclude&&(o.q=`NOT id:${e.exclude}`);try{return(await l(o)).results}catch(n){throw n}}function w(e,t,r=0){let o=r?[e.slug,r].join("-"):e.slug;return b({slug:o,exclude:e.existingId},t).then(n=>n.length?w(e,t,r+1):o).catch(n=>{throw Error(`Error in getUniqueSlug ${n}`)})}function u(e){return e.params=Object.assign(Object.assign({},e.params),j(e.item)),e}function j(e){let t=JSON.parse(JSON.stringify(e));return t.data&&(typeof Blob<"u"&&e.data instanceof Blob||e.data.constructor.name==="ReadStream"?t.file=e.data:t.text=e.data,delete t.data),t}function x(...e){return p(u(e[0]))}function K(...e){return m(u(e[0]))}var S={location:"location.json"};function z(){let e=["access","created","culture","description","extent","id","itemControl","modified","owner","tags","categories","type","typeKeywords","thumbnail","url","orgId"],t=["display","geometry","view","associations","catalogs","assistant"],r=Object.keys(S),o=[];return e.forEach(n=>{o.push({entityKey:n,storeKey:`item.${n}`})}),t.forEach(n=>{o.push({entityKey:n,storeKey:`data.${n}`})}),r.forEach(n=>{o.push({entityKey:n,storeKey:`resources.${n}`})}),o.push({entityKey:"slug",storeKey:"item.properties.slug"}),o.push({entityKey:"summary",storeKey:"item.snippet"}),o.push({entityKey:"schemaVersion",storeKey:"item.properties.schemaVersion"}),o.push({entityKey:"orgUrlKey",storeKey:"item.properties.orgUrlKey"}),o.push({entityKey:"name",storeKey:"item.title"}),o.push({entityKey:"boundary",storeKey:"item.properties.boundary"}),o.push({entityKey:"discussionSettings",storeKey:"entitySettings.settings.discussions"}),o.push({entityKey:"entitySettingsId",storeKey:"entitySettings.id"}),o}function J(e,t){return t.createdDate=new Date(e.created),t.createdDateSource="item.created",t.updatedDate=new Date(e.modified),t.updatedDateSource="item.modified",t.location=t.location||g(e),t.isDiscussable=h(e),t}function I(e,t){return Promise.all([a(e,t),d(e,t)]).then(r=>({item:r[0],data:r[1]}))}async function O(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent));let o=await x(Object.assign({item:r},t));return I(o.id,t)}function Q(e,t){let r=i(e.item);r.data=i(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent)),E(r)&&(t.params=Object.assign(Object.assign({},t.params),{clearEmptyFields:!0}));let o=Object.assign({item:r},t);return K(o).then(()=>r.data?I(r.id,t):a(r.id,t).then(n=>({item:n})))}function E(e){return["description","snippet","tags","categories","licenseInfo"].some(t=>{var r;return e[t]===""||((r=e[t])===null||r===void 0?void 0:r.length)===0})}export{M as a,U as b,w as c,z as d,J as e,I as f,O as g,Q as h};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as S}from"./34F5RSDO.js";import{a as d}from"./3S7YVVVZ.js";import{a as j,d as U,e as x,f as L,g as C,h as N}from"./DL42SYVU.js";import{c as v,d as _,l as f,m as y}from"./CR2HG4F6.js";import"./4ZZY4G5L.js";import{g as M}from"./3IP3UCC6.js";import"./UWKDTPML.js";import"./DDWTO2EM.js";import"./XYVZEUU3.js";import"./GAEZB6HN.js";import"./QB54S7F4.js";import{a as O}from"./M6XME7OM.js";import"./TT63U5XZ.js";import"./N74LH7NF.js";import{h as I}from"./YNVH5WET.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import"./NUVLGW3I.js";var $="Discussion",P={name:"",tags:[],typeKeywords:["Hub Discussion"],permissions:[],catalogs:[],schemaVersion:1,isDiscussable:!0},K={item:{type:$,title:"",description:"",snippet:"",tags:[],typeKeywords:["Hub Discussion"],properties:{slug:"",schemaVersion:1}},data:{catalogs:[],prompt:""}};function h(t){return t.httpMethod="POST",d("/settings",t)}function A(t){return t.httpMethod="PATCH",d(`/settings/${t.id}`,t)}function V(t){return t.httpMethod="DELETE",d(`/settings/${t.id}`,t)}var F={discussions:{allowedChannelIds:null,allowedLocations:null}},w={discussion:{type:M.CONTENT,settings:Object.assign({},F)},site:null,project:null,initiative:null,initiativeTemplate:null,page:null,content:null,organization:null,org:null,group:null,template:null,survey:null,event:null,user:null,channel:null};function T(t){if(!w[t])throw new Error(`no default entity settings defined for ${t}`);return{type:w[t].type,settings:Object.assign({},w[t].settings)}}function E(){let t=U();return t.push({entityKey:"prompt",storeKey:"data.prompt"}),t.push({entityKey:"location",storeKey:"item.properties.location"}),t}function b(t,e,i){let o;return i.authentication&&(o=i.authentication.token),e=x(t.item,e),e.thumbnailUrl=v(t.item,i,o),e}async function dt(t,e){var i,o;let s=Object.assign(Object.assign({},P),t);s.slug||(s.slug=j(s.name,s.orgUrlKey)),await S(s,e),s.typeKeywords=f(s.typeKeywords,s.isDiscussable);let c=new y(E()),r=c.entityToStore(s,O(K));r=await C(r,e);let u=T("discussion"),a=Object.assign(Object.assign({},u.settings),{discussions:Object.assign(Object.assign({},u.settings.discussions),s.discussionSettings)});!((i=a.discussions.allowedChannelIds)===null||i===void 0)&&i.length||(a.discussions.allowedChannelIds=null),!((o=a.discussions.allowedLocations)===null||o===void 0)&&o.length||(a.discussions.allowedLocations=null),r.entitySettings=await h(Object.assign({data:{id:r.item.id,type:u.type,settings:a}},e));let n=c.storeToEntity(r,{});return n=b(r,n,e),n}async function gt(t,e){var i,o,s;await S(t,e),t.typeKeywords=f(t.typeKeywords,t.isDiscussable);let c=await L(t.id,e),r=new y(E()),u=r.entityToStore(t,c),a=await N(u,e),n=r.storeToEntity(a,t);n=b(c,n,e);let g;try{g=((i=n.location.geometries)===null||i===void 0?void 0:i.map(m=>_(m)))||null}catch(m){g=null,console.warn("Esri JSON conversion failed",m)}let p=T("discussion"),l=Object.assign(Object.assign({},p.settings),{discussions:Object.assign(Object.assign(Object.assign({},p.settings.discussions),n.discussionSettings),{allowedLocations:g})});!((o=l.discussions.allowedChannelIds)===null||o===void 0)&&o.length||(l.discussions.allowedChannelIds=null),!((s=l.discussions.allowedLocations)===null||s===void 0)&&s.length||(l.discussions.allowedLocations=null);let D=n.entitySettingsId?await A(Object.assign({id:n.entitySettingsId,data:{settings:l}},e)):await h(Object.assign({data:{id:n.id,type:p.type,settings:l}},e));return n.entitySettingsId=D.id,n.discussionSettings=D.settings.discussions,n}async function pt(t,e){let i=Object.assign(Object.assign({},e),{id:t});try{await V(Object.assign({id:t},e))}catch{}await I(i)}export{dt as createDiscussion,pt as deleteDiscussion,gt as updateDiscussion};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as m}from"./YNVH5WET.js";function p(r){if(typeof r=="string")return r.replace(/\/sharing\/rest\/?$/,"");if(typeof r=="object"){let t=r.portalSelf||r,{portalHostname:e,urlKey:s,customBaseUrl:n}=t;if(e||s&&n)return t.isPortal?`https://${t.portalHostname}`:`https://${t.urlKey}.${t.customBaseUrl}`}return p(m(r))}function U(r,o){return`${p(o)}/home/item.html?id=${r}`}function h(r,o){let t=p(o),e;/(devext|mapsdevext)\.arcgis\.com/.test(t)?e="https://hubdevcdn.arcgis.com/opendata-ui/assets":/(qaext|mapsqa)\.arcgis\.com/.test(t)?e="https://hubqacdn.arcgis.com/opendata-ui/assets":/(www|maps)\.arcgis\.com/.test(t)?e="https://hubcdn.arcgis.com/opendata-ui/assets":e=`${t}/apps/sites`;let s=r.startsWith("/")?"":"/";return[e,r].join(s)}function S(r){let{host:o,path:t,query:e}=r,s=o.endsWith("/")?o:`${o}/`,n=new URL(t,s);return n.search=l(e),n.toString()}function l(r={}){let o=Object.keys(r).filter(t=>r[t]!==void 0).reduce((t,e)=>(t[e]=r[e],t),{});return new URLSearchParams(o).toString()}function i(r){return`${p(r)}/sharing/rest`}var A=(r,o,t)=>{let{id:e,access:s}=r,n=`${i(o)}/content/items/${e}`,a=new URLSearchParams({f:"json"});return s!=="public"&&t&&a.append("token",t),`${n}?${a.toString()}`};var f=/\/(map|feature)server/i,E=r=>f.test(r);export{S as a,p as b,i as c,U as d,A as e,h as f,E as g};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a}from"./HPKI63DN.js";import{a as i}from"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import{a as l,b as r}from"./VPORF37W.js";import"./PMETOHGA.js";import"./N74LH7NF.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import{a as t}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var u=async(e,s,o)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.status.label`,scope:"/properties/status",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await l(s.location,o.hubRequestOptions),options:await r(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:a(o.currentUser.groups),disabled:!i("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]});export{u as buildUiSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{d as b,e as I,k as E,l as w,w as k}from"./TQ2X7VMW.js";import{e as P}from"./YNKDS73P.js";import{n as A}from"./C3JZDZSB.js";export default $arcgis.t(([])=>{function M(s,r){let e=[];return s.forEach(t=>{r.has(t.id)&&e.push(t)}),e}function u(s,r,e){if(r<1||s.length<r)return{cards:[],paging:{start:r,num:0,nextStart:-1,total:s.length}};let t=Math.min(r+e,s.length+1),a=t<s.length?t:-1;return{cards:s.slice(r-1,t-1),paging:{start:r,num:t-r,nextStart:a,total:s.length}}}function N(s,r){let e=L(s);return T(e,r)}function T(s,r){let e=[];return r.forEach(t=>{let a=x(t);a&&s.indexOf(a)>=0&&t.relatedSolutions&&(e=e.concat(t.relatedSolutions))}),new Set(e)}function x(s){let r="solutionid-",e=s.typeKeywords.filter(a=>a.startsWith(r)),t=null;return Array.isArray(e)&&e.length>0&&(t=e[0].substring(r.length)),t}function L(s){let r=[];return s.forEach(e=>{let t=x(e);t&&r.push(t)}),r=Array.from(new Set(r)),r}function y(s,r,e){let t,a=e==="asc"?1:-1;switch(r){case"created":t=(o,i)=>a*(o.createdMs<i.createdMs?-1:o.createdMs>i.createdMs?1:0);break;case"numviews":t=(o,i)=>a*(o.numViews<i.numViews?-1:o.numViews>i.numViews?1:0);break;case"title":t=(o,i)=>a*(o.title.toLowerCase()<i.title.toLowerCase()?-1:o.title.toLowerCase()>i.title.toLowerCase()?1:0);break;default:t=()=>0;break}return s.sort(t),s}function Y(s){return s?k(s,{}).then(r=>Promise.resolve(!!r)):Promise.resolve(!1)}function j(s){if(s){let r=s.trim();return r?"<div>"+r+"</div>":""}else return""}function K(s){let r="",e="?";return s.forEach(t=>{t.k&&t.v&&(r+=e+t.k+"="+t.v,e="&")}),r}function G(s,r,e,t){let a="";return r?a=t+"/sharing/rest/content/items/"+s+"/info/"+r+K([{k:"w",v:"400"}]):a=e,a}function V(s,r="en"){return new Intl.DateTimeFormat(r,{year:"numeric",month:"long",day:"numeric"}).format(s)}function D(s,r){let e="";return s.some(t=>t.startsWith(r)?(e=t.substring(r.length),!0):!1),e}var R=class{constructor(r,e,t){this.cMissingImageDataURI="https://static.arcgis.com/images/solution.png",this.cardCache=[],this.cardCacheParams={q:"",categoriesAsStr:"[]",sortField:"title",sortOrder:"asc"},this.locale=r,this.orgUrl=e,this.portalUrl=t,this.anonAgolSession=new P({}),this.agolPortalUrl="https://www.arcgis.com"}addToCache(r){this.cardCache.push(r)}getCache(){return this.cardCache}removeFromCache(r){this.cardCache=this.cardCache.filter(e=>e.id!==r)}requestAvailableSolutionCards(r,e,t,a,o,i){let l=o?.start?o.start:1,h=o?.num?o.num:24,g=this.portalUrl+"/sharing/rest",m=this.agolPortalUrl+"/sharing/rest",B=this.anonAgolSession,S=JSON.stringify(r.categories);if(this.cardCacheParams.q!==r.q||this.cardCacheParams.categoriesAsStr!==S||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:S,sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=y(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let c;if(i&&i.size>0){let n=M(this.cardCache,i);c=u(n,l,h)}else c=u(this.cardCache,l,h);return Promise.resolve(c)}let U={filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,categories:r?.categories?this.convertSearchCategories(r.categories):""},p=[];if(e){let c=a||new P({});p.push(w(e,r.q,c,U,g))}return t&&p.push(w(t,r.q,B,U,m)),Promise.allSettled(p).then(c=>{let n=[];c.forEach((d,J)=>{let O=!!e&&J===0;if(d.status==="fulfilled"){let F=d.value,f="",v=!1;O?f=this.portalUrl:(f=this.agolPortalUrl,v=!0),F.results.forEach(q=>{q.sourcePortalUrl=f,q.knownToBePublicSource=v}),n.push(F)}else if(d.status==="rejected")throw new Error(O?d.reason.message:"enterpriseCannotAccessAGO")}),n.length===0?this.cardCache=[]:n.length===1?this.cardCache=this.getCardsFromResponse(n[0]):this.cardCache=y(this.getCardsFromResponse(this.mergeResponses(n)),this.cardCacheParams.sortField,this.cardCacheParams.sortOrder);let C;if(i&&i.size>0){let d=M(this.cardCache,i);C=u(d,l,h)}else C=u(this.cardCache,l,h);return Promise.resolve(C)}).catch(c=>Promise.reject(new Error(c.message)))}requestDeployedSolutionCards(r,e){let t=this.portalUrl+"/sharing/rest";if(this.cardCacheParams.q!==r.q||r.sortField==="relevance"?(this.cardCache=[],this.cardCacheParams={q:r.q,categoriesAsStr:"[]",sortField:r.sortField,sortOrder:r.sortOrder}):(this.cardCacheParams.sortField!==r.sortField||this.cardCacheParams.sortOrder!==r.sortOrder)&&(this.cardCacheParams.sortField=r.sortField,this.cardCacheParams.sortOrder=r.sortOrder,this.cardCache=y(this.cardCache,this.cardCacheParams.sortField,this.cardCacheParams.sortOrder)),this.cardCache.length>0){let o=u(this.cardCache,1,this.cardCache.length);return Promise.resolve(o)}let a={q:r.q,filter:r.filter,sortField:r.sortField,sortOrder:r.sortOrder,authentication:e,portal:t,categories:r?.categories?JSON.stringify(r.categories):""};return E(a).then(o=>{this.cardCache=this.getCardsFromResponse(o);let i=u(this.cardCache,1,this.cardCache.length);return Promise.resolve(i)}).catch(o=>Promise.reject(new Error(o)))}convertSearchCategories(r){return r&&(Array.isArray(r)?r=r.map(e=>JSON.stringify(Array.isArray(e)?e:[e])):r=JSON.stringify([r])),r}getCardsFromResponse(r){return r.results.length>0?b(r.results).map(e=>{let t={id:e.id,title:e.title,snippet:e.snippet||"",description:e.description||"",url:e.url||"",itemUrl:this.orgUrl+"/home/item.html"+K([{k:"id",v:e.id}])||"",thumbnailFilename:e.thumbnail,thumbnailUrl:G(e.id,e.thumbnail,this.cMissingImageDataURI,e.sourcePortalUrl?e.sourcePortalUrl:this.portalUrl),tryitUrl:e.url||"",typeKeywords:e.typeKeywords,learnMoreUrl:e.properties?.learnMoreUrl||"",createdMs:e.created,created:V(e.created,this.locale),modified:V(e.modified,this.locale),numViews:e.numViews,tags:e.tags,categories:e.groupCategories&&e.groupCategories.length>0?e.groupCategories:e.categories||[],licenseInfo:j(e.licenseInfo),deployCommonId:D(e.typeKeywords||[],"solutionid-"),deployVersion:D(e.typeKeywords||[],"solutionversion-"),canDelete:e.created>16183314e5,canDeploy:(e.typeKeywords||[]).indexOf("Display Only")<0,preview:this.preparePreviewImageUrls(e.id,e.properties?.preview,e.sourcePortalUrl?e.sourcePortalUrl:this.portalUrl),sourcePortalUrl:e.sourcePortalUrl||"",knownToBePublicSource:e.knownToBePublicSource||!1,waitId:"",relatedSolutions:I(e,"properties.relatedSolutions")||[],owner:e.owner};return t.deployCommonId!==""&&t.deployVersion!==""?t:null}).filter(e=>e!=null):[]}mergeResponses(r){let e=0;r.forEach(a=>e+=a.total);let t=[];return r.forEach(a=>t=t.concat(a.results)),{query:r[0].query,start:1,num:e,nextStart:-1,total:e,results:t}}preparePreviewImageUrls(r,e,t){return e?e.map(a=>(a.format==="image"&&(a.name=t+"/sharing/rest/content/items/"+r+"/resources/"+a.name),a)):[]}};async function Z(s,r,e,t,a=A,o="created",i="desc",l=!1,h=[],g=[]){if(!s?.SignedIn)return;let m={q:a,filter:"type:Solution",sortField:o,sortOrder:i,delay:l,categories:h};return m.q+=z(s),await W(r,m,t,g)}function z(s){let r="",e=s.PortalUserOrg,t=s.PortalUserName;return e&&(r+=" orgid:"+e),t&&(r+=" owner:"+t),r}async function W(s,r,e,t){let a=await e.requestDeployedSolutionCards(r,s),o=N(a.cards,t);return{cards:a.cards,relatedSolutions:o}}return{a:Y,b:R,c:Z}},"intl")
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a,b}from"./HEPGER72.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";export{a as GroupEditorTypes,b as GroupSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as l}from"./ONPGGFF4.js";import"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import"./KN36CLI6.js";import{a as t}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var n=async(e,s,r)=>{let o=s;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a,b}from"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./NUVLGW3I.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as n}from"./HPKI63DN.js";import{a as p}from"./LROPDZCW.js";import"./KMPEI3WK.js";import{a}from"./GQGYZ5UC.js";import"./T62HZRZ4.js";import"./TT63U5XZ.js";import{a as r,b as i}from"./VPORF37W.js";import"./PMETOHGA.js";import"./N74LH7NF.js";import"./YNKDS73P.js";import"./JGA5STLE.js";import"./KN36CLI6.js";import{a as t}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var h=async(e,s,o)=>{var l;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.hero.helperText`},labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}}]}]},{type:"Section",labelKey:`${e}.sections.hero.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"image"}}},options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(s.location,o.hubRequestOptions),options:await i(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.fields.featuredImage.label`,options:{helperText:{labelKey:`${e}.fields.featuredImage.helperText`}},rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},elements:[{scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:a((l=s.view)===null||l===void 0?void 0:l.featuredImageUrl,o.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:n(o.currentUser.groups),disabled:!p("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]}};export{h as buildUiSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as M}from"./B2ZUA2SA.js";import"./WUF32TGT.js";import{c as $,j as L}from"./3I4OEU4B.js";import"./C3JZDZSB.js";import"./VHB6NDP6.js";import{a as h,b as r}from"./FNEE7DUR.js";import{b as v}from"./JI774UUM.js";import{a as w}from"./FCGJ2VZH.js";import{D as y,E as b,I,c as g,d as o,g as c,o as d,q as _}from"./XSPGKSFV.js";import"./NUVLGW3I.js";function W(l){return l?.indexOf("http://")!==-1}function m(l){return W(l)?l.replace(/^http:\/\//,"https://"):l}function S(l,e,i){return i&&i.forEach(t=>{l.allLayers.forEach(a=>{a&&a.url===t.sourceUrl&&(a.url=m(t.proxyUrl),a.portalItem&&a.portalItem.when(()=>{a.portalItem.url=m(t.proxyUrl)}),e.request?.interceptors?.push({urls:t.sourceUrl,before:s=>{s.url&&s.url===t.sourceUrl&&(s.url=m(t.proxyUrl))}}))})}),l}var x=g`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--calcite-label-margin-bottom: 0;--calcite-block-padding: 0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none!important}.visibility-hidden-1{visibility:hidden;height:1px}.hidden{visibility:hidden!important}.display-flex{display:flex}.display-none{display:none}.display-block{display:block}.absolute-right{position:absolute;right:0;left:unset}.esri-ui-inner-container.esri-ui-corner-container{direction:ltr}html[dir=rtl] .absolute-right{left:0;right:unset}.panel-header-override{--calcite-panel-header-content-space: 0px}@media only screen and (max-width: 1024px){.esri-zoom{display:none!important}}}`,f=class extends y{constructor(){super(),this.defaultWebmapId="",this.defaultLayerId="",this.enableHome=!1,this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableShare=!1,this.enableSingleExpand=!1,this.enableSearch=!1,this.enableBasemap=!1,this.featureSelectionMode="multiple",this.hide=!1,this.zoomToolsSize="m",this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-left",this.mobileMapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.stackTools=!1,this.mapToolsOrder=[],this.mobileToolsOrder=[],this.isMapLayout=!1,this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.selectedFeaturesIds=[],this.showOnlyUpdatableLayers=!1,this.isMobile=!1,this.enableSelectionTool=!1,this._translations=w({name:"map-card",blocking:!0}),this._toolInfos=[],this._filterActive=!1,this._enabledLayerIds=[],this._defaultWebmapHonored=!1,this._loadedId="",this._mapDiv=h(),this._mapPicker=h(),this._mapTools=h(),this._mobMapTools=h(),this._mapListExpanded=!1,this._definitionExpression="",this._mapLayerPicker=h(),this._toolbar=h(),this._selectedWebMapId="",this.mapChanged=d(),this.beforeMapChanged=d(),this.toggleFilter=d(),this.clearSelection=d(),this.editMultipleFeatures=d(),this.listenOn(window,"mapInfoChange",this.mapInfoChange),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.enableSingleExpand=!0,this.stackTools=!0,M(window)}static{this.properties={appLayout:1,appProxies:1,defaultWebmapId:1,defaultLayerId:1,enableHome:5,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableShare:5,enableSingleExpand:5,enableSearch:5,enableBasemap:5,featureSelectionMode:1,basemapConfig:0,hide:5,zoomToolsSize:1,mapInfos:0,mapWidgetsIndex:9,mapWidgetsPosition:1,mobileMapWidgetsPosition:1,mapWidgetsSize:1,mapView:0,stackTools:5,theme:1,mapToolsOrder:0,mobileToolsOrder:0,isMapLayout:5,shareIncludeEmbed:5,shareIncludeSocial:5,selectedFeaturesIds:0,selectedLayer:0,zoomToScale:9,showOnlyUpdatableLayers:5,isMobile:5,mapInfo:0,enableSelectionTool:5,_translations:16,_searchConfiguration:16,_webMapInfo:16,_toolInfos:16,_filterActive:16,_mapDivHeight:16,_mapDivWidth:16}}static{this.styles=x}static{this.shadowRootOptions=_}willUpdate(e){e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("selectedLayer")&&this.selectedLayerWatchHandler(),e.has("selectedFeaturesIds")&&this.selectedFeaturesIdsWatchHandler()}appLayoutWatchHandler(){this._updateShareUrl()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[]}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await this.selectedLayer?.when(async()=>{this._definitionExpression=this.selectedLayer?.definitionExpression||""})}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(e){this._filterActive=e,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.value&&this._mapLayerPicker.value.updateLayer()}async mapInfoChange(e){this._selectedWebMapId=e.detail.id,await this._loadMap(e.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout(()=>{this._initToolInfos()},50)}async load(){await this._initModules(),this._initToolInfos(),this._mapSizeObserver||(this._mapSizeObserver=new ResizeObserver(()=>{if(this._mapDivWidth&&this._mapDiv.value){let e=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value.offsetWidth-e}}))}render(){let e=this.hide?"visibility-hidden-1":"",i=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",t="height-full",a=this.isMapLayout?"":"display-none",s=this.isMobile?"":"hidden";return this._validateActiveActions(),o`<calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker()}${this._getHeaderActions()}<div slot=header-actions-end class="display-flex absolute-right">${this.enableShare&&this.isMapLayout?this._getShare("share"):void 0}</div><calcite-progress class=${b(a)} value=0></calcite-progress><div class=${`${e} ${t}`}><div class="height-full" ${r(this._mapDiv)}></div></div>${o`<map-tools .basemapConfig=${this.basemapConfig} class=${`box-shadow ${i}`} .defaultLayerId=${this.defaultLayerId} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableSearch=${this.enableSearch} .enableSingleExpand=${this.enableSingleExpand} .enableSelectionTool=${this.enableSelectionTool} .isMobile=${this.isMobile} .parentComponentHeight=${this._mapDivHeight} .parentComponentWidth=${this._mapDivWidth} .zoomToolsSize=${this.zoomToolsSize} layout=horizontal .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .position=${this.mapWidgetsPosition} .selectedLayer=${this.selectedLayer} .searchConfiguration=${this._searchConfiguration} .stackTools=${this.stackTools} .toolOrder=${this.mapToolsOrder} ${r(this._mapTools)}></map-tools><map-tools class=${`box-shadow ${i} ${s}`} .enableBasemap=${this.enableBasemap} .enabledLayerIds=${this._enabledLayerIds} enable-map-layer-picker enable-map-picker .isMobile=${this.isMobile} .zoomToolsSize=${this.zoomToolsSize} layout=vertical .mapInfos=${this.mapInfos} .mapView=${this.mapView} .mapWidgetsSize=${this.mapWidgetsSize} .parentComponentHeight=${this._mapDivHeight} .position=${this.mobileMapWidgetsPosition} .selectedLayer=${this.selectedLayer} .selectedWebMapId=${this._selectedWebMapId} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} .stackTools=${this.stackTools} .toolOrder=${this.mobileToolsOrder} ${r(this._mobMapTools)}></map-tools>`}</calcite-panel>`}updated(){this._mapDivHeight=this._mapDiv.value?.offsetHeight??0,document.onclick=e=>this._handleDocumentClick(e)}loaded(){this._mapDiv.value&&this._mapSizeObserver?.observe(this._mapDiv.value),this._updateShareUrl()}async _initModules(){let[e,i,t,a]=await v(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=e,this.MapView=i,this.Home=t,this.esriConfig=a}async _loadMap(e){let i=!this._defaultWebmapHonored&&this.defaultWebmapId,t=this.mapInfos?.filter(n=>n.id===this.defaultWebmapId),a=JSON.stringify(e)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&t?t[0]:!e?.id&&this.mapInfos.length>0?this.mapInfos[0]:e;let s=this._webMapInfo.id,p=i&&e?.id===this.defaultWebmapId;if(this._loadedId!==s&&!i||p){let n=this.WebMap&&new this.WebMap({portalItem:{id:s}});this.appProxies&&n&&this.esriConfig&&(await n.load(),await S(n,this.esriConfig,this.appProxies)),this.mapView=this.MapView&&new this.MapView({container:this._mapDiv.value,map:n,resizeAlign:"center"}),this._loadedId=s,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapView&&await this.mapView.when(()=>{if(this.mapView){let u=this.isMobile?160:110;this._mapDivWidth=this._mapDiv.value&&this._mapDiv.value.offsetWidth-u,this._mapTools.value&&this.mapView.ui.add(this._mapTools.value,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._mobMapTools.value&&this.mapView.ui.add(this._mobMapTools.value,{position:this.mobileMapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=p?!0:this._defaultWebmapHonored,this.mapChanged.emit({id:s,mapView:this.mapView})}})}else i?(this._defaultWebmapHonored=!0,this._mapPicker.value&&this._mapPicker.value.setMapByID(s)):a&&this.mapView&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:s,mapView:this.mapView}));this._updateShareUrl()}_getMapLayerPicker(){let e=this.isMapLayout?"header-actions-start":"",i=this.mapInfos?.length>1?"":"display-none",t=this.isMapLayout?"height-0":"width-full",a="display-flex",s=this.isMapLayout?"":"display-none";return o`${!this.isMobile&&o`<div slot=${e??c}><map-picker class=${`${i} ${t}`} id=map-picker .isMapLayout=${this.isMapLayout} .mapInfos=${this.mapInfos} .selectedWebMapId=${this._selectedWebMapId} ${r(this._mapPicker)}></map-picker></div>`||""}<div slot=header-actions-start class=${`mapView-header display-flex ${s}`} id=solutions-map-layer-picker-container><div class=${`border-end ${a}`}>${this.mapView&&o`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-single-layer-as-label show-tables show-tables-disabled type=dropdown ${r(this._mapLayerPicker)}></map-layer-picker>`||""}</div></div>`}_getHeaderActions(){return o`<div slot=header-content><calcite-action-bar class=${b("display-flex")} expand-disabled expanded id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMapLayout?this._getActions():void 0}</calcite-action-group></calcite-action-bar></div>`}_getShare(e){return o`<div class="share-action" id=${this._getId(e)??c}>${this.mapView&&o`<instant-apps-social-share class="instant-app-share" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${r(i=>{i&&(this._shareNode=i,this._updateShareUrl())})}></instant-apps-social-share>`||""}${this._getToolTip("bottom",e,this._translations?.share)}</div>`}_updateShareUrl(){let e=this._shareNode?.shareUrl;if(!e)return;let i=new URL(e);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),this.appLayout&&i.searchParams.set("applayout",this.appLayout),this._shareNode&&(this._shareNode.autoUpdateShareUrl=!1,this._shareNode.shareUrl=i.href)}_initToolInfos(){let e=this.selectedFeaturesIds?.length>0,i=this.featureSelectionMode==="multiple"&&this.selectedLayer?.capabilities?.operations.supportsUpdate,t=[];t.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1}),t.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),i&&t.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this.selectedFeaturesIds),disabled:!i}),t.push({active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer?.refresh(),disabled:!1}),t.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!e}),this._toolInfos=t}_validateActiveActions(){let e=["filter"];this._toolInfos?.forEach(i=>{i&&e.indexOf(i.icon)>-1&&i.icon==="filter"&&(i.indicator=this._filterActive)})}_validateEnabledActions(){let e=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1&&this.selectedLayer?.capabilities?.operations?.supportsUpdate,t=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach(a=>{a&&t.indexOf(a.icon)>-1&&(a.disabled=a.icon==="pencil"?!i:!e)})}_handleDocumentClick(e){e.target.tagName!=="MAP-PICKER"&&(this._mapListExpanded=!1,this._mapPicker.value&&this._mapPicker.value.close())}async _zoom(){if(this.selectedLayer&&this.mapView){let e=await $(this.mapView,this.selectedLayer.id);e&&await L(this.selectedFeaturesIds,e,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let e=[];return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===this.selectedLayer?.id)),e.length>0}_getActions(){return this._toolInfos?.reduce((e,i)=>(i&&e.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),e),[])}_getToolTip(e,i,t){return document.getElementById(i)?o`<calcite-tooltip .placement=${e} .referenceElement=${"map-"+i}><span>${t}</span></calcite-tooltip>`:void 0}_getAction(e,i,t,a,s,p,n){let u=this.selectedLayer===void 0?!0:p;return o`<calcite-action .active=${e} appearance=solid .disabled=${u} .icon=${i} .id=${"map-"+i} .indicator=${t} .label=${a} .loading=${n} @click=${s} .text=${a} text-enabled></calcite-action>`}_getId(e){return`solutions-action-${e}`}};I("map-card",f);export{f as MapCard};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as o}from"./ONPGGFF4.js";import{a as r}from"./LROPDZCW.js";import"./KMPEI3WK.js";import"./T62HZRZ4.js";import"./KN36CLI6.js";import{a as s}from"./NLIFCBCW.js";import"./U4TZ7FO3.js";import"./NL5KEH5L.js";import"./4ZGXBIVH.js";import"./7K5ZFURJ.js";import"./JDEXVRJ5.js";import"./GNVUXY6S.js";import"./SA6AJPBT.js";import"./HEPGER72.js";import"./SPASMJZ7.js";import"./B22SBUCC.js";import"./WSM3I5LT.js";import"./XUJO4B4K.js";import"./ZFYQGS6G.js";import"./FBEKXE53.js";import"./CTHU3ZDE.js";import"./5M4BUTK4.js";import"./2P5UHGEH.js";import"./5XNGEXET.js";import"./RJCEZOX5.js";import"./ZIZC3PWT.js";import"./7H5QHDT3.js";import"./DQBC22ZI.js";import"./NUVLGW3I.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createAssociation.any:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createAssociation.admins:translate}}`]}}]}]}]}),c=async(e,l,t)=>Object.assign({},o("hubAssociationsGroup",t));export{c as buildDefaults,p as buildUiSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250605 */
4
- import{a as c}from"./FCGJ2VZH.js";import{D as l,G as r,I as n,c as a,d as e,q as s}from"./XSPGKSFV.js";import"./NUVLGW3I.js";var d=a`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.error-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.panel-bg-white{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.spacer-top-bottom{padding-top:25px;padding-bottom:25px}}`,p="3857",o=class extends l{constructor(){super(...arguments),this.solutionItem=void 0,this.wkid=p,this._isFormValid=!0,this._showAlertFailed=!1,this._showAlertNameErrorDescription="",this._showAlertNameError=!1,this._translations=c({name:"solution-deploy-panel",blocking:!0})}static{this.properties={solutionItem:0,wkid:1,_isFormValid:16,_showAlertFailed:16,_showAlertNameErrorDescription:16,_showAlertNameError:16,_translations:16}}static{this.styles=d}static{this.shadowRootOptions=s}close(){let t=this._translations.title.replace("{{solution}}",this.solutionItem?.title??""),i=document.getElementById(t);i.open=!1}closeAlert(){this._showAlertFailed=!1}deploy(){alert("deploy something")}render(){return e`<calcite-dialog .heading=${this._translations.title.replace("{{solution}}",this.solutionItem?.title??"")} id=${this._translations.title.replace("{{solution}}",this.solutionItem?.title??"")??r} modal open outside-close-disabled><calcite-panel class="panel-bg-white">${this.renderUpdateSolutionName()}<div class="spacer-top-bottom"></div>${this.renderSpatialReferenceSelection()}<calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.cancel}</calcite-button>${this._isFormValid?e`<calcite-button kind=brand slot=footer-end>${this._translations.deploy}</calcite-button>`:e`<calcite-button kind=brand slot=footer-end disabled>${this._translations.deploy}</calcite-button>`}<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDeploy.replace("{{solution}}",this.solutionItem?.title??"")} .open=${this._showAlertFailed} slot=actions><div slot=title>${this._translations.failedToDeploy.replace("{{solution}}",this.solutionItem?.title??"")}</div><calcite-action icon=recurrence @click=${()=>{this.deploy()}} slot=actions-end .text=${this._translations.tryAgain} text-enabled></calcite-action><calcite-action icon=x @click=${this.closeAlert} slot=actions-end .text=${this._translations.close}></calcite-action></calcite-alert></calcite-panel></calcite-dialog>`}renderUpdateSolutionName(){return e`<div><calcite-label>${this._translations.solutionName}<calcite-input .label=${this._translations.solutionNameHint} @calciteInputInput=${t=>{this._isFormValid=this._validateName(t.target.value)}} .placeholder=${this._translations.solutionNameHint} required scale=m .value=${this.solutionItem?.title}></calcite-input></calcite-label>${this._showAlertNameError&&e`<calcite-label layout=inline><calcite-icon class="error-icon-color" icon=exclamation-mark-triangle scale=s></calcite-icon>${this._showAlertNameErrorDescription}</calcite-label>`||""}</div>`}renderSpatialReferenceSelection(){return e`<div><calcite-label>${this._translations.options}<calcite-accordion><calcite-accordion-item .description=${this.wkid} .heading=${this._translations.spatialReference}><calcite-button appearance=outline slot=actions-end>${this._translations.customize}</calcite-button><analysis-spatial-reference-selector @analysisSpatialReferenceValueChange=${t=>{t.detail?.latestWkid&&(this.wkid=t.detail.latestWkid.toString())}}></analysis-spatial-reference-selector></calcite-accordion-item></calcite-accordion></calcite-label></div>`}_validateName(t){if(t.length>256)return this._showAlertNameError=!0,this._showAlertNameErrorDescription=this._translations.solutionNameErrorLength,!1;let i=/[-()[\]$%#]/u.test(t),h=t.startsWith(" ");return i||h?(this._showAlertNameError=!0,this._showAlertNameErrorDescription=this._translations.solutionNameErrorSpecialCharacter,!1):(this._showAlertNameError=!1,this._showAlertNameErrorDescription=this._translations.solutionNameErrorUniqueName,this._showAlertNameError=!1,this._showAlertNameErrorDescription="",!0)}};n("solution-deploy-panel",o);export{o as SolutionDeployPanel};