@esri/solutions-components 5.0.0 → 5.1.0-next.3

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 (525) hide show
  1. package/dist/cdn/24ADXKSX.js +2 -0
  2. package/dist/cdn/{D6VGQMIK.js → 25MTK2JD.js} +2 -2
  3. package/dist/cdn/{BKFF52SE.js → 26K4UTAF.js} +2 -2
  4. package/dist/cdn/{BDHWPAV7.js → 2B76QZR7.js} +1 -1
  5. package/dist/cdn/{7HNG37OT.js → 2BTU374O.js} +2 -2
  6. package/dist/cdn/{24S5LVU5.js → 2D6XDWYA.js} +1 -1
  7. package/dist/cdn/2L7O5T7N.js +2 -0
  8. package/dist/cdn/{4SZGXI37.js → 2MVCIEAD.js} +2 -2
  9. package/dist/cdn/{GPHDOTEY.js → 2QE2HTYW.js} +2 -2
  10. package/dist/cdn/{ZHXH4C3E.js → 2TR3Y7HD.js} +2 -2
  11. package/dist/cdn/{ALST4M6H.js → 35HRMJUI.js} +2 -2
  12. package/dist/cdn/{GPP5RTWG.js → 36HEIJAI.js} +2 -2
  13. package/dist/cdn/3AQ7U2PF.js +2 -0
  14. package/dist/cdn/{TKZAMPEI.js → 3FMOO3PJ.js} +2 -2
  15. package/dist/cdn/{7FMLZNDR.js → 3IHLJADI.js} +2 -2
  16. package/dist/cdn/3JF5JLS4.js +2 -0
  17. package/dist/cdn/{77NDVP55.js → 3KGOZXJN.js} +1 -1
  18. package/dist/cdn/{Z6G5PBUQ.js → 3KXMYZCU.js} +1 -1
  19. package/dist/cdn/3OQ24P5P.js +2 -0
  20. package/dist/cdn/3PT5ULE3.js +2 -0
  21. package/dist/cdn/3R5VOUDP.js +2 -0
  22. package/dist/cdn/3SRDS4KQ.js +2 -0
  23. package/dist/cdn/{IE2UXHBC.js → 3T3GPK27.js} +2 -2
  24. package/dist/cdn/{IXWRLPCY.js → 3XVYTVMS.js} +2 -2
  25. package/dist/cdn/43HJUBM4.js +2 -0
  26. package/dist/cdn/43LVFNMF.js +2 -0
  27. package/dist/cdn/{TYX345MZ.js → 45M33Q5G.js} +1 -1
  28. package/dist/cdn/4HFHJOS3.js +2 -0
  29. package/dist/cdn/4LVJK3V2.js +2 -0
  30. package/dist/cdn/{SFG2REQW.js → 4UBLWDFJ.js} +2 -2
  31. package/dist/cdn/{GRJZORJP.js → 4VFF7AI4.js} +2 -2
  32. package/dist/cdn/4X53QTF7.js +2 -0
  33. package/dist/cdn/{NPPIBUUP.js → 57JYZYF5.js} +2 -2
  34. package/dist/cdn/{HEH643UY.js → 5DGVZVGU.js} +2 -2
  35. package/dist/cdn/{VWYHHUNT.js → 5EBHORLK.js} +2 -2
  36. package/dist/cdn/{QNTMCZAS.js → 5EKT4E6L.js} +2 -2
  37. package/dist/cdn/{EAV7DUA3.js → 5KD4GK7Y.js} +2 -2
  38. package/dist/cdn/{EFSJWL7S.js → 5UQRM2YJ.js} +2 -2
  39. package/dist/cdn/5YSNBFO6.js +2 -0
  40. package/dist/cdn/{GUBQMCIJ.js → 5ZVSYUD7.js} +2 -2
  41. package/dist/cdn/{DOHELY4Q.js → 6734MJXK.js} +2 -2
  42. package/dist/cdn/{SSUMO4HY.js → 6AFP7DRB.js} +1 -1
  43. package/dist/cdn/6CHHUU33.js +2 -0
  44. package/dist/cdn/{YHW6JKYZ.js → 6TOLIJU5.js} +2 -2
  45. package/dist/cdn/{AXBVHGTQ.js → 6UJUVPK6.js} +2 -2
  46. package/dist/cdn/{ALLEVCNE.js → 6XELM7OM.js} +2 -2
  47. package/dist/cdn/{SJMKG2Y2.js → 727EUXF6.js} +2 -2
  48. package/dist/cdn/{2IHQU2FX.js → 73AX72WY.js} +2 -2
  49. package/dist/cdn/{R52W6IFP.js → 73MLGNDP.js} +2 -2
  50. package/dist/cdn/73O55ZBJ.js +2 -0
  51. package/dist/cdn/{2GLDLUFW.js → 743J5TBS.js} +2 -2
  52. package/dist/cdn/{F7KJCNKP.js → 7DVOR4SY.js} +2 -2
  53. package/dist/cdn/7EF56IQP.js +2 -0
  54. package/dist/cdn/{GJFGBIH7.js → 7EZXA5FN.js} +2 -2
  55. package/dist/cdn/{KUYFIQG5.js → 7GNQSKAB.js} +2 -2
  56. package/dist/cdn/{AW26PIUT.js → 7GPGKDLH.js} +2 -2
  57. package/dist/cdn/{M2WIDRQF.js → 7JEVFHRJ.js} +2 -2
  58. package/dist/cdn/{PMVR62GY.js → 7KEONOFN.js} +2 -2
  59. package/dist/cdn/7KSFAVG3.js +2 -0
  60. package/dist/cdn/{FG5PNP6V.js → 7Y32UJS4.js} +2 -2
  61. package/dist/cdn/{QMRCHKSO.js → 7YIQXDUF.js} +2 -2
  62. package/dist/cdn/{XRDO4BZF.js → A3BERGNY.js} +1 -1
  63. package/dist/cdn/{4T7P5RXF.js → AA7X6GKH.js} +2 -2
  64. package/dist/cdn/ABEE7A5Y.js +2 -0
  65. package/dist/cdn/ABL7HXUY.js +2 -0
  66. package/dist/cdn/{JOEGOIK3.js → AJJFHJJU.js} +2 -2
  67. package/dist/cdn/{EB2LK6CL.js → AJY7XD7A.js} +2 -2
  68. package/dist/cdn/{PRSBDD25.js → AKDP6MCB.js} +2 -2
  69. package/dist/cdn/{A2E5XWW7.js → AM5URNYD.js} +2 -2
  70. package/dist/cdn/{SBNXRFNA.js → ANX2J4ID.js} +2 -2
  71. package/dist/cdn/{YGHCNTQN.js → AQ3TQ7PO.js} +2 -2
  72. package/dist/cdn/{NSQLXA5C.js → AWE3IT6O.js} +2 -2
  73. package/dist/cdn/{LL5C4DHP.js → B3R52L7H.js} +2 -2
  74. package/dist/cdn/{CJ6YLPLY.js → B6IICRWD.js} +2 -2
  75. package/dist/cdn/B7J5RZIJ.js +2 -0
  76. package/dist/cdn/B7XPPNVY.js +2 -0
  77. package/dist/cdn/BB3L2KIS.js +2 -0
  78. package/dist/cdn/BDXIKPLU.js +2 -0
  79. package/dist/cdn/{SXOJTCOY.js → BEGKM3ZM.js} +2 -2
  80. package/dist/cdn/BG55H324.js +2 -0
  81. package/dist/cdn/{5LVXNG25.js → BIRAQCVT.js} +2 -2
  82. package/dist/cdn/{X5H73PHG.js → BJMJWUHS.js} +2 -2
  83. package/dist/cdn/BM666UZR.js +2 -0
  84. package/dist/cdn/{I5ELWFZQ.js → BPAYAR53.js} +2 -2
  85. package/dist/cdn/BPOWO72Z.js +2 -0
  86. package/dist/cdn/BUR53ZIF.js +2 -0
  87. package/dist/cdn/{KDIUYXBA.js → CEP54NLT.js} +2 -2
  88. package/dist/cdn/CEZMBNEQ.js +2 -0
  89. package/dist/cdn/CHWUORRX.js +2 -0
  90. package/dist/cdn/CN7QQ3JZ.js +2 -0
  91. package/dist/cdn/{HKW5AVF7.js → CPMMNWOL.js} +2 -2
  92. package/dist/cdn/CSQ77SHH.js +2 -0
  93. package/dist/cdn/{HX6GS6CN.js → CSW2JRVE.js} +2 -2
  94. package/dist/cdn/{ZN7TFL7A.js → CUTRQOEO.js} +2 -2
  95. package/dist/cdn/CZJPS7CF.js +2 -0
  96. package/dist/cdn/{BJQOXAOG.js → CZKXDUOH.js} +2 -2
  97. package/dist/cdn/{XYWNICC6.js → D3WYLHYH.js} +2 -2
  98. package/dist/cdn/D7AEFBST.js +2 -0
  99. package/dist/cdn/{PDNBP4EL.js → DADQNPO4.js} +2 -2
  100. package/dist/cdn/{MIVLE4LM.js → DBHZRNFR.js} +2 -2
  101. package/dist/cdn/{A4WA7OOO.js → DGMH4RW7.js} +2 -2
  102. package/dist/cdn/DHE3GFUJ.js +2 -0
  103. package/dist/cdn/{J27ONLZA.js → DIDOZ4J6.js} +2 -2
  104. package/dist/cdn/{36I27Q5R.js → DIKAKOU5.js} +2 -2
  105. package/dist/cdn/{3G4RHRXD.js → DKB6JTUF.js} +2 -2
  106. package/dist/cdn/{OEJAW72H.js → DKD2EGQP.js} +1 -1
  107. package/dist/cdn/{PZ4L77M5.js → DLBZRD4H.js} +2 -2
  108. package/dist/cdn/{AELONRA2.js → DQ4POWIJ.js} +2 -2
  109. package/dist/cdn/{L4UMQNXD.js → DQNQ7DLH.js} +2 -2
  110. package/dist/cdn/DSHJPE6S.js +2 -0
  111. package/dist/cdn/DWAYOC2L.js +2 -0
  112. package/dist/cdn/DZB3263I.js +2 -0
  113. package/dist/cdn/{6Z3UOQ5W.js → E7W2OZL3.js} +2 -2
  114. package/dist/cdn/EDWOTP4V.js +2 -0
  115. package/dist/cdn/{RSLHX62X.js → EITUC67W.js} +2 -2
  116. package/dist/cdn/ELD2UQO4.js +2 -0
  117. package/dist/cdn/{VKWQ2UOL.js → EOZUCQOO.js} +2 -2
  118. package/dist/cdn/EYBEUSBG.js +2 -0
  119. package/dist/cdn/EYJ255MM.js +2 -0
  120. package/dist/cdn/{NSWVC2JI.js → EYXOOK3V.js} +2 -2
  121. package/dist/cdn/{Q6BBU3QG.js → F372CSCW.js} +2 -2
  122. package/dist/cdn/F7OHPN7H.js +2 -0
  123. package/dist/cdn/F7R4EYDS.js +2 -0
  124. package/dist/cdn/FA44RLAZ.js +2 -0
  125. package/dist/cdn/{6ICBHPK3.js → FDO2JBGW.js} +2 -2
  126. package/dist/cdn/{5UWT66A7.js → FES7B3SJ.js} +1 -1
  127. package/dist/cdn/FIWSWJTZ.js +2 -0
  128. package/dist/cdn/FJAJKPL6.js +2 -0
  129. package/dist/cdn/{TUP3HPO4.js → FKCIW6NV.js} +1 -1
  130. package/dist/cdn/{TSKD22JZ.js → FTMEQQF5.js} +2 -2
  131. package/dist/cdn/FUEG35TG.js +21 -0
  132. package/dist/cdn/{XJPOVJV7.js → G2ME4BAQ.js} +2 -2
  133. package/dist/cdn/{JRDWWNST.js → GTDHYS64.js} +2 -2
  134. package/dist/cdn/GXICL6EL.js +2 -0
  135. package/dist/cdn/{EABNUBBA.js → H3LJVYII.js} +2 -2
  136. package/dist/cdn/HAWNWJLR.js +2 -0
  137. package/dist/cdn/{6MZ227J7.js → HBPD3T7H.js} +2 -2
  138. package/dist/cdn/HDRMSU3L.js +2 -0
  139. package/dist/cdn/{E3DW2M6B.js → HHTLWYIL.js} +2 -2
  140. package/dist/cdn/{G3RPEESM.js → HIMUNCZ6.js} +4 -4
  141. package/dist/cdn/{UVKZG44C.js → HJ4N3RZN.js} +2 -2
  142. package/dist/cdn/{BF6WA5U4.js → HKAZRCQE.js} +2 -2
  143. package/dist/cdn/{AZFB2VFZ.js → HVD4BQPK.js} +2 -2
  144. package/dist/cdn/{TOZPZ6OI.js → HYB5LBMY.js} +2 -2
  145. package/dist/cdn/HYJ7UXOV.js +2 -0
  146. package/dist/cdn/{OL43C4CR.js → I3D5WRYZ.js} +2 -2
  147. package/dist/cdn/{KVUHHQHL.js → IBNSJ46F.js} +2 -2
  148. package/dist/cdn/{ASS5QC73.js → IHP7FAGO.js} +2 -2
  149. package/dist/cdn/{JAWSHLB7.js → IO5DIUTT.js} +2 -2
  150. package/dist/cdn/{PMJSFZYX.js → IUG77ONZ.js} +2 -2
  151. package/dist/cdn/IXSZQTPL.js +2 -0
  152. package/dist/cdn/{IW3HH57K.js → J33ST6ZG.js} +2 -2
  153. package/dist/cdn/J3PKNUNP.js +2 -0
  154. package/dist/cdn/{5D2QCLOY.js → J3YWJVZZ.js} +2 -2
  155. package/dist/cdn/{C7UAPXZR.js → J5VTBFGR.js} +2 -2
  156. package/dist/cdn/J74DGHF3.js +2 -0
  157. package/dist/cdn/JALU4653.js +2 -0
  158. package/dist/cdn/{KO7S5YIH.js → JBAXZW3Z.js} +2 -2
  159. package/dist/cdn/{LNLMLBWQ.js → JBGQX4DF.js} +2 -2
  160. package/dist/cdn/{JUYO2EM6.js → JDVVMD4S.js} +2 -2
  161. package/dist/cdn/{V3SPTOG3.js → JK75TUSP.js} +2 -2
  162. package/dist/cdn/JLQYLRUP.js +2 -0
  163. package/dist/cdn/{Z5GWY442.js → JLYGSQEC.js} +2 -2
  164. package/dist/cdn/{ANDQB6ZP.js → JMU5KKZH.js} +2 -2
  165. package/dist/cdn/{CGLFPVBM.js → JUUVYK2H.js} +1 -1
  166. package/dist/cdn/JY62CMT7.js +2 -0
  167. package/dist/cdn/{V7JWKNPI.js → JYLXH6OM.js} +2 -2
  168. package/dist/cdn/{D6DFW6PG.js → K5ZIHTQC.js} +2 -2
  169. package/dist/cdn/{ZJZBIHZ5.js → KAEV4RME.js} +2 -2
  170. package/dist/cdn/{SR2ITR24.js → KDE2RXEH.js} +2 -2
  171. package/dist/cdn/{UOOIKGBP.js → KGALGAAM.js} +2 -2
  172. package/dist/cdn/{P5ERFKR2.js → KGUELU4O.js} +1 -1
  173. package/dist/cdn/KHHT54BU.js +2 -0
  174. package/dist/cdn/KNSFKF4Q.js +2 -0
  175. package/dist/cdn/{3HUY3T5F.js → KOIDWEP3.js} +1 -1
  176. package/dist/cdn/{JK6XUSIM.js → KU62OLRE.js} +2 -2
  177. package/dist/cdn/{LYMOZHWK.js → KWCJDOZU.js} +2 -2
  178. package/dist/cdn/KWNAM7AD.js +2 -0
  179. package/dist/cdn/{3JPTG46S.js → KXT52OBS.js} +2 -2
  180. package/dist/cdn/{CTGQWEIJ.js → KZFMPHCV.js} +2 -2
  181. package/dist/cdn/{VU3T4WSA.js → LDQDYCD2.js} +2 -2
  182. package/dist/cdn/LF3HQQMS.js +2 -0
  183. package/dist/cdn/LI4CAGAZ.js +2 -0
  184. package/dist/cdn/{6WJBGNHC.js → LI7Q44Z6.js} +2 -2
  185. package/dist/cdn/{47FTIK4Y.js → LNLCO244.js} +2 -2
  186. package/dist/cdn/LNZEGAPP.js +2 -0
  187. package/dist/cdn/{J3QMHA2M.js → LPBP7CBN.js} +2 -2
  188. package/dist/cdn/{CLYSXX7Q.js → LPJHRY3Y.js} +2 -2
  189. package/dist/cdn/{3QLYSIKK.js → LPNQJBCN.js} +2 -2
  190. package/dist/cdn/LW4KR4D5.js +2 -0
  191. package/dist/cdn/{IM46JKRI.js → M536RNIN.js} +1 -1
  192. package/dist/cdn/M7ERGA4I.js +2 -0
  193. package/dist/cdn/{M2MQGWLQ.js → M7GWNGTJ.js} +2 -2
  194. package/dist/cdn/{YM3BZKEU.js → MHD543E6.js} +2 -2
  195. package/dist/cdn/MI7UDIFR.js +2 -0
  196. package/dist/cdn/{T5HS6V2W.js → MPGXSCG5.js} +2 -2
  197. package/dist/cdn/{PTPT75U6.js → MSSLXF7R.js} +2 -2
  198. package/dist/cdn/MTDE4K26.js +2 -0
  199. package/dist/cdn/MUM5SE3F.js +2 -0
  200. package/dist/cdn/{FCH5GFNF.js → MWFCDDBC.js} +2 -2
  201. package/dist/cdn/{35D5FZVV.js → N72IW5CX.js} +1 -1
  202. package/dist/cdn/{ULPRAGHR.js → N7OY2PSZ.js} +2 -2
  203. package/dist/cdn/{NVE7K4AP.js → NC34DM4N.js} +2 -2
  204. package/dist/cdn/NDSUZD6T.js +2 -0
  205. package/dist/cdn/NDUAEC62.js +2 -0
  206. package/dist/cdn/{OCJK42MK.js → NEKIHEPY.js} +2 -2
  207. package/dist/cdn/NF3TLIP3.js +2 -0
  208. package/dist/cdn/{V3GUZ2LX.js → NFOSWP5Q.js} +1 -1
  209. package/dist/cdn/{JJV3O6VQ.js → NH5526ON.js} +2 -2
  210. package/dist/cdn/{RGCDDZZ7.js → NIUMAAOQ.js} +2 -2
  211. package/dist/cdn/{G6KHKVTN.js → NLTK53B2.js} +2 -2
  212. package/dist/cdn/{PW4CSQIB.js → NOIG2A4U.js} +2 -2
  213. package/dist/cdn/{KE5Q4DJK.js → NOIGF6Y3.js} +1 -1
  214. package/dist/cdn/{OCUMDT2M.js → NPZQAHW4.js} +2 -2
  215. package/dist/cdn/NXTK6OD5.js +2 -0
  216. package/dist/cdn/O44OLIT5.js +2 -0
  217. package/dist/cdn/{S664RN6P.js → OKDHN6B7.js} +2 -2
  218. package/dist/cdn/{24QTPVIY.js → OKJZS44H.js} +2 -2
  219. package/dist/cdn/{AC7TIBAL.js → ONLHK7DM.js} +1 -1
  220. package/dist/cdn/{P5YTFAF2.js → OQWMBY4L.js} +1 -1
  221. package/dist/cdn/{ONIWIJZN.js → OSPT7DNE.js} +2 -2
  222. package/dist/cdn/{EVYF4Q4A.js → OYQYXNHJ.js} +2 -2
  223. package/dist/cdn/{ZY5NKP3F.js → P2YLMWCT.js} +2 -2
  224. package/dist/cdn/P4FX4W2X.js +2 -0
  225. package/dist/cdn/{46DQNAMV.js → P4KZ6OZF.js} +1 -1
  226. package/dist/cdn/{6A5SBI3R.js → P5XWXDR2.js} +2 -2
  227. package/dist/cdn/{UIFRG5Z5.js → PALYMJLD.js} +2 -2
  228. package/dist/cdn/{PIUY4D7H.js → PGSLA765.js} +1 -1
  229. package/dist/cdn/{6C4EHCSR.js → PH36F6ZU.js} +2 -2
  230. package/dist/cdn/{6WWPIVBS.js → PJ5ORVU5.js} +2 -2
  231. package/dist/cdn/{EYFR4JQP.js → PJH3H7LZ.js} +2 -2
  232. package/dist/cdn/PYBOC3DB.js +2 -0
  233. package/dist/cdn/{AIYHCYB5.js → Q63OZOAM.js} +2 -2
  234. package/dist/cdn/{5SDYG5ZM.js → QHYG6C3L.js} +2 -2
  235. package/dist/cdn/{EJJFSS5C.js → QI5LXFA7.js} +2 -2
  236. package/dist/cdn/{OR4HXHSY.js → QPIMTXPL.js} +1 -1
  237. package/dist/cdn/{PX6N4BRK.js → QUVVORHW.js} +2 -2
  238. package/dist/cdn/{6SETGLTS.js → QW3T2SOQ.js} +2 -2
  239. package/dist/cdn/{NVYKJK26.js → QXFTJVUF.js} +2 -2
  240. package/dist/cdn/{QNT2CGG3.js → QXRWIAR3.js} +2 -2
  241. package/dist/cdn/{DBPLH4RV.js → QYIFZ7XJ.js} +2 -2
  242. package/dist/cdn/{FIGCRZGS.js → R3TKXDOE.js} +2 -2
  243. package/dist/cdn/R4OPQN6O.js +2 -0
  244. package/dist/cdn/R5PY2TMY.js +2 -0
  245. package/dist/cdn/{FJX7UVKI.js → R6SBVSPJ.js} +2 -2
  246. package/dist/cdn/{SXSTBM77.js → RA43PFSB.js} +2 -2
  247. package/dist/cdn/{HUTJQTEN.js → RJPRLDFE.js} +2 -2
  248. package/dist/cdn/{Z5H7S4UV.js → RKMY6VWP.js} +2 -2
  249. package/dist/cdn/{W4UTR6WU.js → RNAN4RW6.js} +1 -1
  250. package/dist/cdn/RSTX3J6D.js +2 -0
  251. package/dist/cdn/{7JX6B3W3.js → RTPXDRZ7.js} +2 -2
  252. package/dist/cdn/{CBVAXYAC.js → RXLJOKCX.js} +2 -2
  253. package/dist/cdn/S27I4OM5.js +2 -0
  254. package/dist/cdn/{GDPFKW75.js → S423P2GA.js} +2 -2
  255. package/dist/cdn/{JCBUATLL.js → SB3QR3SO.js} +2 -2
  256. package/dist/cdn/{CUJCDLHI.js → SBEC53RV.js} +2 -2
  257. package/dist/cdn/SBEXUIYT.js +2 -0
  258. package/dist/cdn/{ASTWNDH6.js → SC5EOUVT.js} +2 -2
  259. package/dist/cdn/SE7R7GJQ.js +2 -0
  260. package/dist/cdn/{5NB56NVE.js → SG6YSE6W.js} +2 -2
  261. package/dist/cdn/SGRKAUHN.js +2 -0
  262. package/dist/cdn/SJQW6ZDF.js +2 -0
  263. package/dist/cdn/{HQK5RHHT.js → SNXCUFG4.js} +1 -1
  264. package/dist/cdn/SOHNIGAO.js +2 -0
  265. package/dist/cdn/{PSNP4WYK.js → SRDPZ2TN.js} +2 -2
  266. package/dist/cdn/{56MHO3UY.js → SZRONHSX.js} +2 -2
  267. package/dist/cdn/{V7FXM6DJ.js → T2WSMUVL.js} +2 -2
  268. package/dist/cdn/{M3G2IY5Z.js → T3JHAFWW.js} +2 -2
  269. package/dist/cdn/{VWVSKAHO.js → T537IZUH.js} +2 -2
  270. package/dist/cdn/{LR227DHR.js → T745GPG3.js} +2 -2
  271. package/dist/cdn/TBQQ6OPX.js +2 -0
  272. package/dist/cdn/{AOBFPJ2R.js → TEHBW75B.js} +1 -1
  273. package/dist/cdn/{T6AL47LF.js → TEXGFAKJ.js} +2 -2
  274. package/dist/cdn/{5SJCOGIP.js → TG3TGRIK.js} +2 -2
  275. package/dist/cdn/{64IG3VBM.js → TJ2MW6I4.js} +2 -2
  276. package/dist/cdn/{UKRALD6X.js → TT5Y2WZP.js} +2 -2
  277. package/dist/cdn/{EQUAUHBX.js → TTODV2R4.js} +2 -2
  278. package/dist/cdn/{2D64QMHC.js → TUGKPWRB.js} +2 -2
  279. package/dist/cdn/{XUYE3J6Z.js → TVCG3ZCH.js} +2 -2
  280. package/dist/cdn/{KI33523C.js → TVNF2O66.js} +2 -2
  281. package/dist/cdn/{HYA473XA.js → TZL2746B.js} +2 -2
  282. package/dist/cdn/{6IHZQH4I.js → U6ALIHIC.js} +2 -2
  283. package/dist/cdn/{NSQPTNSB.js → UCUGZIOM.js} +2 -2
  284. package/dist/cdn/{WXXNQFVO.js → UDGR2GC5.js} +2 -2
  285. package/dist/cdn/{7XSKL7BM.js → UF67SSGX.js} +2 -2
  286. package/dist/cdn/{EFQUL4VM.js → UFFI5UIO.js} +2 -2
  287. package/dist/cdn/{PKLCCM5C.js → UFI4ZJNJ.js} +2 -2
  288. package/dist/cdn/{LFDALA2A.js → UH4IH4MC.js} +2 -2
  289. package/dist/cdn/{PBS3CYBZ.js → UK4O67GV.js} +2 -2
  290. package/dist/cdn/{MBISQ27L.js → UKXDAOCN.js} +2 -2
  291. package/dist/cdn/{GVGTMXTG.js → ULCILXSA.js} +2 -2
  292. package/dist/cdn/UOEDG3M3.js +4 -0
  293. package/dist/cdn/{MQF26HKA.js → US5FON7D.js} +1 -1
  294. package/dist/cdn/{WCQKSAUN.js → USRH3VII.js} +2 -2
  295. package/dist/cdn/{NF6YUHUT.js → UVHM4PU5.js} +2 -2
  296. package/dist/cdn/{6OSOUHQD.js → VDMAJ6AS.js} +2 -2
  297. package/dist/cdn/VFSI5MUK.js +2 -0
  298. package/dist/cdn/VGCXEINY.js +2 -0
  299. package/dist/cdn/{VUFOIXWZ.js → VIOCT3NG.js} +2 -2
  300. package/dist/cdn/{CKZTDRHJ.js → VIWNXKUP.js} +2 -2
  301. package/dist/cdn/{E4LHQX7P.js → VJEG4LOG.js} +2 -2
  302. package/dist/cdn/{7NSN2YE4.js → VKG5PJNA.js} +2 -2
  303. package/dist/cdn/VOM7CM3O.js +2 -0
  304. package/dist/cdn/VUQ25YDH.js +2 -0
  305. package/dist/cdn/{DJRQRVE7.js → VVNSX3BS.js} +2 -2
  306. package/dist/cdn/{G4VIPBRX.js → VVZAS55G.js} +1 -1
  307. package/dist/cdn/{TVQ63GRO.js → VXMIT5WR.js} +2 -2
  308. package/dist/cdn/{C4M2JGW3.js → VZPEYWYR.js} +2 -2
  309. package/dist/cdn/{BJQKJFRD.js → W2ZZLJGQ.js} +2 -2
  310. package/dist/cdn/{SE7GHLP3.js → W5V64SBG.js} +2 -2
  311. package/dist/cdn/{QJJXVRMV.js → WGO4EVOV.js} +1 -1
  312. package/dist/cdn/WVC3NULO.js +2 -0
  313. package/dist/cdn/WYV4MD77.js +2 -0
  314. package/dist/cdn/{KETBIWNV.js → X3LGQLCM.js} +2 -2
  315. package/dist/cdn/{ZBVNECHG.js → X4LKJTY5.js} +2 -2
  316. package/dist/cdn/X4Y4DHJ5.js +2 -0
  317. package/dist/cdn/XG3T3NF3.js +2 -0
  318. package/dist/cdn/{TAGYBODZ.js → XIUYW7RN.js} +2 -2
  319. package/dist/cdn/{WBU2DP34.js → XPIAEAK5.js} +2 -2
  320. package/dist/cdn/{Q36LSOV4.js → XVRRQMOP.js} +2 -2
  321. package/dist/cdn/{ENW2DF2D.js → XXBU3JMK.js} +2 -2
  322. package/dist/cdn/{A2UP6ODV.js → XXQKFENH.js} +2 -2
  323. package/dist/cdn/{J6Z7OGPT.js → XYFIAJPT.js} +2 -2
  324. package/dist/cdn/{JV3YKSCY.js → XZXTFYPU.js} +2 -2
  325. package/dist/cdn/{WKMAPRRW.js → YF26KIY5.js} +1 -1
  326. package/dist/cdn/YGZRQS2J.js +2 -0
  327. package/dist/cdn/{X4JADDMR.js → YUPT4BTA.js} +2 -2
  328. package/dist/cdn/{UUYUTETH.js → YVNP437O.js} +1 -1
  329. package/dist/cdn/{EUQ4JO3K.js → YWSV24KI.js} +2 -2
  330. package/dist/cdn/{LDNQ56OK.js → Z4F2NZOT.js} +1 -1
  331. package/dist/cdn/{UPHYUDLT.js → ZCU2WWVN.js} +1 -1
  332. package/dist/cdn/{ZQ37ZZNF.js → ZDGVCOLK.js} +2 -2
  333. package/dist/cdn/{SMB2UTWO.js → ZF724O2R.js} +2 -2
  334. package/dist/cdn/{CKD45FGQ.js → ZIVKAX4G.js} +1 -1
  335. package/dist/cdn/{XOW3ZZ6I.js → ZJ3KQ7WO.js} +2 -2
  336. package/dist/cdn/{57PXC3TO.js → ZSZUJ3FI.js} +2 -2
  337. package/dist/cdn/{63QNMEU5.js → ZYRNI524.js} +2 -2
  338. package/dist/cdn/index.js +2 -2
  339. package/dist/chunks/Auth.js +1 -1
  340. package/dist/chunks/cardFetchingUtils.js +1 -1
  341. package/dist/chunks/cardsHelpers.js +1 -1
  342. package/dist/chunks/downloadUtils.js +1 -1
  343. package/dist/chunks/getItemIcon.js +1 -1
  344. package/dist/chunks/getRelatedInfos.js +1 -1
  345. package/dist/chunks/interfaces.js +10 -11
  346. package/dist/chunks/mapViewUtils.js +1 -1
  347. package/dist/chunks/pciUtils.js +1 -1
  348. package/dist/chunks/popupUtils.js +1 -1
  349. package/dist/chunks/publicNotificationContext.js +1 -1
  350. package/dist/chunks/queryUtils.js +1 -1
  351. package/dist/chunks/runtime.js +3 -3
  352. package/dist/chunks/solution-deploy-dialog.js +1 -1
  353. package/dist/chunks/solutions-deploy-app-nav.js +1 -1
  354. package/dist/chunks/useT9n.js +1 -1
  355. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  356. package/dist/components/buffer-tools/customElement.js +1 -1
  357. package/dist/components/card-manager/customElement.js +1 -1
  358. package/dist/components/consent-manager/customElement.js +1 -1
  359. package/dist/components/create-feature/customElement.js +1 -1
  360. package/dist/components/create-related-feature/customElement.js +1 -1
  361. package/dist/components/crowdsource-manager/customElement.js +1 -1
  362. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  363. package/dist/components/deduct-calculator/customElement.js +1 -1
  364. package/dist/components/delete-button/customElement.js +1 -1
  365. package/dist/components/delete-dialog/customElement.js +1 -1
  366. package/dist/components/edit-card/customElement.js +1 -1
  367. package/dist/components/feature-details/customElement.js +1 -1
  368. package/dist/components/feature-list/customElement.js +1 -1
  369. package/dist/components/field-selection/customElement.js +1 -1
  370. package/dist/components/info-card/customElement.js +1 -1
  371. package/dist/components/layer-list/customElement.js +1 -1
  372. package/dist/components/layer-list-widget/customElement.js +1 -1
  373. package/dist/components/layer-table/customElement.js +1 -1
  374. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  375. package/dist/components/map-card/customElement.js +1 -1
  376. package/dist/components/map-draw-tools/customElement.js +1 -1
  377. package/dist/components/map-floor-filter/customElement.js +1 -1
  378. package/dist/components/map-fullscreen/customElement.js +1 -1
  379. package/dist/components/map-layer-picker/customElement.js +1 -1
  380. package/dist/components/map-legend/customElement.js +1 -1
  381. package/dist/components/map-picker/customElement.js +1 -1
  382. package/dist/components/map-search/customElement.js +1 -1
  383. package/dist/components/map-select-tools/customElement.js +1 -1
  384. package/dist/components/map-tools/customElement.js +1 -1
  385. package/dist/components/pci-calculator/customElement.js +1 -1
  386. package/dist/components/pdf-download/customElement.js +1 -1
  387. package/dist/components/public-notification/customElement.js +1 -1
  388. package/dist/components/refine-selection/customElement.js +1 -1
  389. package/dist/components/selection-tool/customElement.js +1 -1
  390. package/dist/components/solution-configure-titles/customElement.js +1 -1
  391. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  392. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  393. package/dist/components/solution-deployed-card/customElement.js +1 -1
  394. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  395. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  396. package/dist/components/solution-details-card/customElement.js +1 -1
  397. package/dist/components/solution-details-panel/customElement.js +1 -1
  398. package/dist/components/solution-item-accordion/customElement.js +1 -1
  399. package/dist/components/solution-item-diagram/customElement.js +1 -1
  400. package/dist/components/solution-item-icon/customElement.js +1 -1
  401. package/dist/components/solution-resource-card/customElement.js +1 -1
  402. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  403. package/dist/components/solution-social-share/customElement.js +1 -1
  404. package/dist/components/solution-user-avatar/customElement.js +1 -1
  405. package/dist/components/solutions-all-panel/customElement.js +1 -1
  406. package/dist/components/solutions-all-shell/customElement.js +1 -1
  407. package/dist/components/solutions-deploy-app/customElement.js +1 -1
  408. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  409. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  410. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  411. package/dist/components/solutions-filter-panel/customElement.d.ts +1 -4
  412. package/dist/components/solutions-filter-panel/customElement.js +20 -22
  413. package/dist/components/solutions-resources-section/customElement.js +1 -1
  414. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  415. package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +2 -2
  416. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  417. package/dist/docs/api.json +1 -1
  418. package/dist/docs/docs.json +1 -1
  419. package/dist/docs/vscode.html-custom-data.json +1 -1
  420. package/dist/docs/web-types.json +1 -1
  421. package/dist/index.js +1 -1
  422. package/dist/loader.js +1 -1
  423. package/dist/solutions-components_commit.txt +6 -6
  424. package/dist/types/lumina.d.ts +0 -1
  425. package/dist/types/preact.d.ts +0 -1
  426. package/dist/types/react.d.ts +0 -1
  427. package/dist/types/stencil.d.ts +0 -1
  428. package/dist/utils/interfaces.d.ts +0 -1
  429. package/package.json +1 -1
  430. package/dist/cdn/2CMRI2B3.js +0 -2
  431. package/dist/cdn/2KD4GOO2.js +0 -2
  432. package/dist/cdn/32MFUKXF.js +0 -2
  433. package/dist/cdn/36RS4TYI.js +0 -2
  434. package/dist/cdn/3ABQO2AZ.js +0 -2
  435. package/dist/cdn/3JKE3JHG.js +0 -2
  436. package/dist/cdn/3NGW3KDI.js +0 -2
  437. package/dist/cdn/4GUAHP55.js +0 -2
  438. package/dist/cdn/52QNBNIL.js +0 -2
  439. package/dist/cdn/5BJNTWVY.js +0 -2
  440. package/dist/cdn/5JJMGPOW.js +0 -2
  441. package/dist/cdn/5KV6KCRT.js +0 -2
  442. package/dist/cdn/5S7OJL7F.js +0 -2
  443. package/dist/cdn/74XBLQLQ.js +0 -2
  444. package/dist/cdn/7M6F64KQ.js +0 -2
  445. package/dist/cdn/7PXJRQHT.js +0 -2
  446. package/dist/cdn/AHXBPG3X.js +0 -2
  447. package/dist/cdn/AQKTTVWV.js +0 -2
  448. package/dist/cdn/AS3OMVJG.js +0 -2
  449. package/dist/cdn/ATL4ZT4D.js +0 -2
  450. package/dist/cdn/AZKJO6MZ.js +0 -2
  451. package/dist/cdn/BEXT4QVO.js +0 -2
  452. package/dist/cdn/BY2L5NGQ.js +0 -2
  453. package/dist/cdn/C5YQOXHX.js +0 -2
  454. package/dist/cdn/CJ3RCG23.js +0 -2
  455. package/dist/cdn/CKFJWPZN.js +0 -2
  456. package/dist/cdn/DTPCOAOD.js +0 -2
  457. package/dist/cdn/DUY4QVV5.js +0 -2
  458. package/dist/cdn/ETEJ4PIB.js +0 -2
  459. package/dist/cdn/EXKRUCSY.js +0 -2
  460. package/dist/cdn/F5JVSWT6.js +0 -2
  461. package/dist/cdn/FBTE4S2U.js +0 -2
  462. package/dist/cdn/FFP225M5.js +0 -2
  463. package/dist/cdn/FLZ7YBCU.js +0 -2
  464. package/dist/cdn/FOQDGMBU.js +0 -2
  465. package/dist/cdn/FT2RITIO.js +0 -2
  466. package/dist/cdn/FWFPID2C.js +0 -2
  467. package/dist/cdn/GCYLODHA.js +0 -2
  468. package/dist/cdn/GSRMKEUC.js +0 -2
  469. package/dist/cdn/H74UJR3L.js +0 -2
  470. package/dist/cdn/HA5W44KL.js +0 -2
  471. package/dist/cdn/HATDZAP6.js +0 -2
  472. package/dist/cdn/HHZZ77DA.js +0 -2
  473. package/dist/cdn/HK5YELY5.js +0 -2
  474. package/dist/cdn/IHZXAACO.js +0 -2
  475. package/dist/cdn/JG5BJDJK.js +0 -2
  476. package/dist/cdn/JJUJVV7A.js +0 -2
  477. package/dist/cdn/K3TXWVO2.js +0 -2
  478. package/dist/cdn/K6PYLL2U.js +0 -2
  479. package/dist/cdn/KCABC3XV.js +0 -2
  480. package/dist/cdn/KR3JPJKA.js +0 -2
  481. package/dist/cdn/KX6WPQ3G.js +0 -2
  482. package/dist/cdn/LCHT2SYR.js +0 -2
  483. package/dist/cdn/LHCWS2RN.js +0 -4
  484. package/dist/cdn/LLYTIOG4.js +0 -2
  485. package/dist/cdn/M27UHZEK.js +0 -2
  486. package/dist/cdn/M2KUCUL3.js +0 -2
  487. package/dist/cdn/M5DPXDBG.js +0 -2
  488. package/dist/cdn/M726IWD4.js +0 -2
  489. package/dist/cdn/MCGO7GQL.js +0 -2
  490. package/dist/cdn/MGOL3BOX.js +0 -2
  491. package/dist/cdn/MJDCNHGI.js +0 -2
  492. package/dist/cdn/NR37JYZZ.js +0 -2
  493. package/dist/cdn/OLYK2OEO.js +0 -2
  494. package/dist/cdn/PAEHHWIA.js +0 -2
  495. package/dist/cdn/PEHE5MUC.js +0 -2
  496. package/dist/cdn/PLHWBWIG.js +0 -2
  497. package/dist/cdn/Q4DIJ6T2.js +0 -2
  498. package/dist/cdn/QEZPZGBW.js +0 -2
  499. package/dist/cdn/QNSZUCGN.js +0 -2
  500. package/dist/cdn/QZMPOJBZ.js +0 -2
  501. package/dist/cdn/R6DDGHRE.js +0 -2
  502. package/dist/cdn/RAWUKGQG.js +0 -2
  503. package/dist/cdn/RKYWXTWC.js +0 -2
  504. package/dist/cdn/RLTX5S5V.js +0 -2
  505. package/dist/cdn/S6EMQP4I.js +0 -2
  506. package/dist/cdn/S6XTVW2E.js +0 -2
  507. package/dist/cdn/SOFUFWLC.js +0 -2
  508. package/dist/cdn/T5V6AS7W.js +0 -2
  509. package/dist/cdn/TENMD3MI.js +0 -2
  510. package/dist/cdn/U4QFXUX2.js +0 -33
  511. package/dist/cdn/UT4XKLC4.js +0 -2
  512. package/dist/cdn/V5CYGH43.js +0 -2
  513. package/dist/cdn/VN6ZA46R.js +0 -2
  514. package/dist/cdn/VWAPNMSS.js +0 -2
  515. package/dist/cdn/VXYVQILF.js +0 -2
  516. package/dist/cdn/WMVQZ4HU.js +0 -2
  517. package/dist/cdn/WN6TFOUO.js +0 -2
  518. package/dist/cdn/WNQD3BKN.js +0 -2
  519. package/dist/cdn/WPAMUSBR.js +0 -2
  520. package/dist/cdn/XUYQ4JOW.js +0 -2
  521. package/dist/cdn/YEY4KEHA.js +0 -2
  522. package/dist/cdn/YQELD2ZV.js +0 -2
  523. package/dist/cdn/ZBTAMROU.js +0 -2
  524. package/dist/cdn/ZEIK7CNV.js +0 -2
  525. package/dist/cdn/ZLJ3XH23.js +0 -2
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as i}from"./BKFF52SE.js";import{d as l}from"./TKZAMPEI.js";import"./5JJMGPOW.js";import{a as r}from"./TYX345MZ.js";import{a as s}from"./OCJK42MK.js";import"./MBISQ27L.js";import"./XYWNICC6.js";import"./T5HS6V2W.js";import"./UKRALD6X.js";import"./LNLMLBWQ.js";import"./P5YTFAF2.js";import"./YM3BZKEU.js";import"./35D5FZVV.js";import"./HQK5RHHT.js";import"./ZQ37ZZNF.js";import"./5UWT66A7.js";import"./SFG2REQW.js";import"./CUJCDLHI.js";import"./VU3T4WSA.js";import"./W4UTR6WU.js";import"./SE7GHLP3.js";import"./EQUAUHBX.js";import"./YEY4KEHA.js";import"./X5H73PHG.js";import"./OCUMDT2M.js";import"./TUP3HPO4.js";import"./WKMAPRRW.js";import"./OR4HXHSY.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
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as i}from"./26K4UTAF.js";import{d as l}from"./3FMOO3PJ.js";import"./4HFHJOS3.js";import{a as r}from"./45M33Q5G.js";import{a as s}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.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,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as h}from"./AQKTTVWV.js";import{F as o,G as a,H as m,J as n,h as d,i as c,u as l}from"./46DQNAMV.js";import"./OR4HXHSY.js";export default $arcgis.t(([v,p,g])=>{var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,u="instant-apps-measurement-tool",s={base:u,hide:`${u}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new v({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new p({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,new g({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);return r},"widgets/Measurement","widgets/CoordinateConversion","widgets/CoordinateConversion/support/Conversion")
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as h}from"./7EF56IQP.js";import{F as o,G as a,H as m,J as n,h as d,i as c,u as l}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([v,p,g])=>{var f=d`@layer{.esri-measurement,.esri-coordinate-conversion{width:300px}.instant-apps-measurement-tool__hide{display:none}}`,u="instant-apps-measurement-tool",s={base:u,hide:`${u}__hide`},r=class extends m{constructor(){super(...arguments),this._measureElement=o(),this._coordinateElement=o()}static{this.properties={view:0,measureConfiguration:0,activeTool:1}}static{this.styles=f}static{this.shadowRootOptions=l}willUpdate(e){e.has("activeTool")&&this._setActiveTool(this.activeTool)}loaded(){this._init()}disconnectedCallback(){super.disconnectedCallback(),this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _init(){await this._initMeasurementWidget(),await this._initCoordinateWidget()}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new v({view:this.view,container:this._measureElement.value,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget?.clear(),this._coordinateElement.value?.classList.add(s.hide),e==="distance"&&this._measureWidget?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"&&this._measureWidget?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement.value?.classList?.remove(s.hide);let i=this.el.getRootNode().querySelector(`calcite-action[data-value="${e}"]`);i&&i.setFocus()}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new p({view:this.view,storageEnabled:!1,container:this._coordinateElement.value}),t!=null)){let i=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,new g({format:i}))}e!=null&&this._setActiveTool(e)}render(){return c`<div class=${n(s.base)}><div ${a(this._measureElement)}></div><div class=${n(s.hide)} ${a(this._coordinateElement)}></div></div>`}};h("instant-apps-measurement-tool",r);return r},"widgets/Measurement","widgets/CoordinateConversion","widgets/CoordinateConversion/support/Conversion")
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as p,d as a,e as h,f as E}from"./CGLFPVBM.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function xr(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return z(t)}function Xr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function tt(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function Ft(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Ht(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Kt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function fo(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function wo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,z as i,Wr as j,ar as k,ir as l,mr as m,cr as n,Xr as o,Zr as p,M as q,tt as r,dr as s,hr as t,x as u,N as v,B as w,Ft as x,Ht as y,Jt as z,Kt as A,Ot as B,qt as C,oe as D,I as E,Le as F,ao as G,fo as H,wo as I,K as J,xr as K};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as p,d as a,e as h,f as E}from"./JUUVYK2H.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function xr(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return z(t)}function Xr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function tt(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function Ft(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Ht(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Kt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function fo(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function wo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,z as i,Wr as j,ar as k,ir as l,mr as m,cr as n,Xr as o,Zr as p,M as q,tt as r,dr as s,hr as t,x as u,N as v,B as w,Ft as x,Ht as y,Jt as z,Kt as A,Ot as B,qt as C,oe as D,I as E,Le as F,ao as G,fo as H,wo as I,K as J,xr as K};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as u}from"./AQKTTVWV.js";import{H as r,h as n,i as a}from"./46DQNAMV.js";import"./OR4HXHSY.js";var c=n`:host{display:block;margin-block-start:var(--padding)}[role=group],li{display:grid;grid-template-columns:1fr auto}[role=group]{align-items:end;gap:var(--padding);calcite-label{--calcite-label-margin-bottom: 0}calcite-button{height:32px}}ol,li{list-style:none;padding:0;margin:0}ol{border:var(--border-style);margin-block-start:var(--padding)}li{align-items:center;padding-inline-start:var(--padding);&:not(:last-child){border-bottom:var(--border-style)}span{color:inherit;font-size:inherit;font-weight:var(--calcite-font-weight-normal)}calcite-button{--calcite-icon-color: var(--calcite-color-text-3);width:var(--close-button-size);height:var(--close-button-size)}}`;function l(i){return a`<li class="buffer-distance-value"><span>${i.value}</span><calcite-button kind=neutral appearance=transparent scale=s @click=${i.onRemoveClick} .label=${i.removeValueLabel}><calcite-icon icon=x scale=s></calcite-icon></calcite-button></li>`}var s=class extends r{constructor(){super(...arguments),this.#e=3,this._uniqueDistanceValues=new Set}static{this.properties={_uniqueDistanceValues:16,distanceValuesSorted:32,bufferInputStep:11,bufferDistance:11,bufferMinDistance:11,bufferMaxDistance:11,inputNumberLabel:1,addButtonLabel:1,removeValueLabel:1}}static{this.styles=c}#e;#t;#i;#a;#s;get distanceValuesSorted(){return[...this._uniqueDistanceValues].sort((e,t)=>e-t)}get bufferInputStep(){return this.#s}set bufferInputStep(e){this._validateBufferNumber(e,"bufferInputStep"),this.#s=e}get bufferDistance(){return this.#t}set bufferDistance(e){if(this._validateBufferNumber(e,"bufferDistance"),e<this.bufferMinDistance)throw new Error("bufferDistance must be greater than bufferMinDistance");if(e>this.bufferMaxDistance)throw new Error("bufferDistance must be less than bufferMaxDistance");this.#t=e}get bufferMinDistance(){return this.#i}set bufferMinDistance(e){if(this._validateBufferNumber(e,"bufferMinDistance"),e>this.bufferMaxDistance)throw new Error("bufferMinDistance must be less than bufferMaxDistance");this.#i=e}get bufferMaxDistance(){return this.#a}set bufferMaxDistance(e){if(this._validateBufferNumber(e,"bufferMaxDistance"),e<this.bufferMinDistance)throw new Error("bufferMaxDistance must be greater than bufferMinDistance");this.#a=e}_validateBufferNumber(e,t){if(typeof e!="number"||Number.isNaN(e))throw new Error(`${t} must be a valid number`);if(e<=0)throw new Error(`${t} must be > 0`)}_maybeAddDistanceValue(){this._uniqueDistanceValues.size<this.#e&&(this._uniqueDistanceValues=new Set([...this._uniqueDistanceValues,this.bufferDistance]))}_removeDistanceValue(e){this._uniqueDistanceValues.size&&(this._uniqueDistanceValues.delete(e),this._uniqueDistanceValues=new Set(this._uniqueDistanceValues))}_getRemoveValueLabel(e){return this.removeValueLabel.replace("{number}",`${e}`)}_onBufferDistanceInputInput(e){let t=Number(e.target.value);t>=this.bufferMinDistance&&t<=this.bufferMaxDistance&&(this.bufferDistance=t)}_renderDistanceValuesList(){return this._uniqueDistanceValues.size?a`<ol role=list>${this.distanceValuesSorted.map(e=>l({value:e,removeValueLabel:this._getRemoveValueLabel(e),onRemoveClick:()=>this._removeDistanceValue(e)}))}</ol>`:null}render(){return a`<div><div role=group><calcite-label><span>${this.inputNumberLabel}</span><calcite-input-number .value=${`${this.bufferDistance}`} .step=${this.bufferInputStep} .min=${this.bufferMinDistance} .max=${this.bufferMaxDistance} @calciteInputNumberInput=${this._onBufferDistanceInputInput}></calcite-input-number></calcite-label><calcite-button icon-start=plus @click=${this._maybeAddDistanceValue} appearance=outline>${this.addButtonLabel}</calcite-button></div>${this._renderDistanceValuesList()}</div>`}};u("instant-apps-buffer-distance-manager",s);export{s as InstantAppsBufferDistanceManager};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as u}from"./7EF56IQP.js";import{H as r,h as n,i as a}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";var c=n`:host{display:block;margin-block-start:var(--padding)}[role=group],li{display:grid;grid-template-columns:1fr auto}[role=group]{align-items:end;gap:var(--padding);calcite-label{--calcite-label-margin-bottom: 0}calcite-button{height:32px}}ol,li{list-style:none;padding:0;margin:0}ol{border:var(--border-style);margin-block-start:var(--padding)}li{align-items:center;padding-inline-start:var(--padding);&:not(:last-child){border-bottom:var(--border-style)}span{color:inherit;font-size:inherit;font-weight:var(--calcite-font-weight-normal)}calcite-button{--calcite-icon-color: var(--calcite-color-text-3);width:var(--close-button-size);height:var(--close-button-size)}}`;function l(i){return a`<li class="buffer-distance-value"><span>${i.value}</span><calcite-button kind=neutral appearance=transparent scale=s @click=${i.onRemoveClick} .label=${i.removeValueLabel}><calcite-icon icon=x scale=s></calcite-icon></calcite-button></li>`}var s=class extends r{constructor(){super(...arguments),this.#e=3,this._uniqueDistanceValues=new Set}static{this.properties={_uniqueDistanceValues:16,distanceValuesSorted:32,bufferInputStep:11,bufferDistance:11,bufferMinDistance:11,bufferMaxDistance:11,inputNumberLabel:1,addButtonLabel:1,removeValueLabel:1}}static{this.styles=c}#e;#t;#i;#a;#s;get distanceValuesSorted(){return[...this._uniqueDistanceValues].sort((e,t)=>e-t)}get bufferInputStep(){return this.#s}set bufferInputStep(e){this._validateBufferNumber(e,"bufferInputStep"),this.#s=e}get bufferDistance(){return this.#t}set bufferDistance(e){if(this._validateBufferNumber(e,"bufferDistance"),e<this.bufferMinDistance)throw new Error("bufferDistance must be greater than bufferMinDistance");if(e>this.bufferMaxDistance)throw new Error("bufferDistance must be less than bufferMaxDistance");this.#t=e}get bufferMinDistance(){return this.#i}set bufferMinDistance(e){if(this._validateBufferNumber(e,"bufferMinDistance"),e>this.bufferMaxDistance)throw new Error("bufferMinDistance must be less than bufferMaxDistance");this.#i=e}get bufferMaxDistance(){return this.#a}set bufferMaxDistance(e){if(this._validateBufferNumber(e,"bufferMaxDistance"),e<this.bufferMinDistance)throw new Error("bufferMaxDistance must be greater than bufferMinDistance");this.#a=e}_validateBufferNumber(e,t){if(typeof e!="number"||Number.isNaN(e))throw new Error(`${t} must be a valid number`);if(e<=0)throw new Error(`${t} must be > 0`)}_maybeAddDistanceValue(){this._uniqueDistanceValues.size<this.#e&&(this._uniqueDistanceValues=new Set([...this._uniqueDistanceValues,this.bufferDistance]))}_removeDistanceValue(e){this._uniqueDistanceValues.size&&(this._uniqueDistanceValues.delete(e),this._uniqueDistanceValues=new Set(this._uniqueDistanceValues))}_getRemoveValueLabel(e){return this.removeValueLabel.replace("{number}",`${e}`)}_onBufferDistanceInputInput(e){let t=Number(e.target.value);t>=this.bufferMinDistance&&t<=this.bufferMaxDistance&&(this.bufferDistance=t)}_renderDistanceValuesList(){return this._uniqueDistanceValues.size?a`<ol role=list>${this.distanceValuesSorted.map(e=>l({value:e,removeValueLabel:this._getRemoveValueLabel(e),onRemoveClick:()=>this._removeDistanceValue(e)}))}</ol>`:null}render(){return a`<div><div role=group><calcite-label><span>${this.inputNumberLabel}</span><calcite-input-number .value=${`${this.bufferDistance}`} .step=${this.bufferInputStep} .min=${this.bufferMinDistance} .max=${this.bufferMaxDistance} @calciteInputNumberInput=${this._onBufferDistanceInputInput}></calcite-input-number></calcite-label><calcite-button icon-start=plus @click=${this._maybeAddDistanceValue} appearance=outline>${this.addButtonLabel}</calcite-button></div>${this._renderDistanceValuesList()}</div>`}};u("instant-apps-buffer-distance-manager",s);export{s as InstantAppsBufferDistanceManager};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a,b}from"./MPGXSCG5.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./OR4HXHSY.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",i="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",s="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",c="The service name contains one or more invalid characters.",m="Saving the temporary layer as a hosted feature layer did not complete.",h="The following privileges are required to run this tool: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>",u="Failed to get key properties.",y="Failed to load the layer.",p="Layer is not available.",f="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",g="${ dataPath } must not have fewer than ${ limit } items.",E="${ dataPath } must not be shorter than ${ limit } characters.",P="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",k="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",b="Failed to log in to portal.",F="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",w="The output name contains one or more invalid characters. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>",L="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",A="${ dataPath } must have at least one non-whitespace character.",q={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:i,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,insufficientPermissions:h,keyPropertiesError:u,layerLoadFailure:y,layerUnavailable:p,maxItems:f,mbFailedToSave:v,minItems:g,minLength:E,modelNotFound:P,networkError:k,noPermissionToAccessTool:S,portalLoadError:b,queryFeaturesError:F,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:w,temporaryLayerFieldsError:L,toolValidationError:I,whiteSpacePattern:A};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,i as creditEstimationError,q as default,s as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,h as insufficientPermissions,u as keyPropertiesError,y as layerLoadFailure,p as layerUnavailable,f as maxItems,v as mbFailedToSave,g as minItems,E as minLength,P as modelNotFound,k as networkError,S as noPermissionToAccessTool,b as portalLoadError,F as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,w as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,I as toolValidationError,A as whiteSpacePattern};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",i="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",s="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",c="The service name contains one or more invalid characters.",m="Saving the temporary layer as a hosted feature layer did not complete.",h="The following privileges are required to run this tool: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>",u="Failed to get key properties.",y="Failed to load the layer.",p="Layer is not available.",f="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",g="${ dataPath } must not have fewer than ${ limit } items.",E="${ dataPath } must not be shorter than ${ limit } characters.",P="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",k="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",b="Failed to log in to portal.",F="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",w="The output name contains one or more invalid characters. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>",L="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",A="${ dataPath } must have at least one non-whitespace character.",q={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:i,defaultError:s,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,insufficientPermissions:h,keyPropertiesError:u,layerLoadFailure:y,layerUnavailable:p,maxItems:f,mbFailedToSave:v,minItems:g,minLength:E,modelNotFound:P,networkError:k,noPermissionToAccessTool:S,portalLoadError:b,queryFeaturesError:F,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:w,temporaryLayerFieldsError:L,toolValidationError:I,whiteSpacePattern:A};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,i as creditEstimationError,q as default,s as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,h as insufficientPermissions,u as keyPropertiesError,y as layerLoadFailure,p as layerUnavailable,f as maxItems,v as mbFailedToSave,g as minItems,E as minLength,P as modelNotFound,k as networkError,S as noPermissionToAccessTool,b as portalLoadError,F as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,w as specialCharactersInServiceNameError,L as temporaryLayerFieldsError,I as toolValidationError,A as whiteSpacePattern};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{v as a}from"./2IHQU2FX.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{v as a}from"./73AX72WY.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{I as s}from"./P4KZ6OZF.js";var t=s({defaultAssetPath:"https://jsdev.arcgis.com/5.0.0-next/instant-apps-components/",hydratedAttribute:"hydrated"}),{customElement:n,getAssetPath:i,setAssetPath:d}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,n as b,i as c};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import i from"./EAV7DUA3.js";import h from"./S6EMQP4I.js";import e from"./P5ERFKR2.js";import c from"./GPP5RTWG.js";import{a as d}from"./4T7P5RXF.js";import{a as $}from"./FT2RITIO.js";import{b}from"./AQKTTVWV.js";import"./36I27Q5R.js";import"./GDPFKW75.js";import{H as f,J as p,L as x,h as u,i as a,r as g}from"./46DQNAMV.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,{a:r,b:h},{e:w,h:T,j:z,k:E,l:C,r:k,s:m,u:v}])=>{var A=u`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-color-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-color-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,y={ZoomTo:"magnifying-glass-plus",ShowAll:"list-check-all"},o={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},_=class extends f{constructor(){super(...arguments),this._messages=$({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=g(),this.showAllSelected=g()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=A}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>e.type==="relationship-ramp")).length>0&&h.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=w(this.layer),i=m(e,this.legendElement);C(e,this.legendvm.view,i)}}handleShowAll(){return()=>{let e=()=>{let t=E(n,this.legendElement.title);v({intLegendLayerData:t,layerId:this.layer.id})},i=()=>{let t=z(n);v({intLegendLayerData:t,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(m(n,this.legendElement)){e();return}i(),this.showAllSelected.emit()}}render(){let e=k(this.activeLayerInfo),i=T(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,t=h.get("compact"),s=t?` ${o.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText?a`<span class=${p(o.layerCaptionText)} title=${this.titleText??x}>${this.titleText}</span>`:null,c=this.isInteractive||i?this.renderLegendElementCaptionControls():"";return a`<div class=${`${o.layerCaption}${s}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${t?[l,c]:[c,l]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${o.layerCaptionBtnContainerNoText}`;return d("layer-caption-btn-container",a`<div class=${`${o.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return h.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="zoomToCompact",s=this.zoomTo&&[a`<calcite-action id=${t} class=${p(o.zoomTo)} @click=${this.handleZoomTo()} .icon=${y.ZoomTo} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",l=n?a`<button @click=${this.handleShowAll()} class=${p(o.showAll)}>${this._messages.showAll}</button>`:null;return[s,l]}renderButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="showAll",s="zoomTo",l=n&&[d("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${y.ShowAll} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",c=this.zoomTo&&[d("zoom-to-button",a`<calcite-button id=${s} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${y.ZoomTo} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${s} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[l,c]}};b("instant-apps-interactive-legend-legend-element-caption",_);return _},c,e,h,i)
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import i from"./5KD4GK7Y.js";import h from"./P4FX4W2X.js";import e from"./KGUELU4O.js";import c from"./36HEIJAI.js";import{a as d}from"./AA7X6GKH.js";import{a as $}from"./SOHNIGAO.js";import{b}from"./7EF56IQP.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import{H as f,J as p,L as x,h as u,i as a,r as g}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:r,b:h},{e:w,h:T,j:z,k:E,l:C,r:k,s:m,u:v}])=>{var A=u`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-color-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-color-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,y={ZoomTo:"magnifying-glass-plus",ShowAll:"list-check-all"},o={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},_=class extends f{constructor(){super(...arguments),this._messages=$({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=g(),this.showAllSelected=g()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=A}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>e.type==="relationship-ramp")).length>0&&h.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=w(this.layer),i=m(e,this.legendElement);C(e,this.legendvm.view,i)}}handleShowAll(){return()=>{let e=()=>{let t=E(n,this.legendElement.title);v({intLegendLayerData:t,layerId:this.layer.id})},i=()=>{let t=z(n);v({intLegendLayerData:t,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(m(n,this.legendElement)){e();return}i(),this.showAllSelected.emit()}}render(){let e=k(this.activeLayerInfo),i=T(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,t=h.get("compact"),s=t?` ${o.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText?a`<span class=${p(o.layerCaptionText)} title=${this.titleText??x}>${this.titleText}</span>`:null,c=this.isInteractive||i?this.renderLegendElementCaptionControls():"";return a`<div class=${`${o.layerCaption}${s}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${t?[l,c]:[c,l]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${o.layerCaptionBtnContainerNoText}`;return d("layer-caption-btn-container",a`<div class=${`${o.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return h.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="zoomToCompact",s=this.zoomTo&&[a`<calcite-action id=${t} class=${p(o.zoomTo)} @click=${this.handleZoomTo()} .icon=${y.ZoomTo} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",l=n?a`<button @click=${this.handleShowAll()} class=${p(o.showAll)}>${this._messages.showAll}</button>`:null;return[s,l]}renderButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="showAll",s="zoomTo",l=n&&[d("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${y.ShowAll} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",c=this.zoomTo&&[d("zoom-to-button",a`<calcite-button id=${s} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${y.ZoomTo} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${s} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[l,c]}};b("instant-apps-interactive-legend-legend-element-caption",_);return _},c,e,h,i)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import m from"./WNQD3BKN.js";import l from"./HATDZAP6.js";import k from"./4SZGXI37.js";import j from"./QNSZUCGN.js";import i from"./D6VGQMIK.js";import h from"./ONIWIJZN.js";import f from"./NVYKJK26.js";import e from"./ETEJ4PIB.js";import"./EVYF4Q4A.js";import d from"./L4UMQNXD.js";import c from"./U4QFXUX2.js";import b from"./PLHWBWIG.js";import"./4T7P5RXF.js";import"./6MZ227J7.js";import a from"./JJUJVV7A.js";import{a as u}from"./PZ4L77M5.js";import"./LHCWS2RN.js";import{a as S}from"./HA5W44KL.js";import"./36I27Q5R.js";import"./GDPFKW75.js";import"./AOBFPJ2R.js";import"./JK6XUSIM.js";import"./UPHYUDLT.js";import"./QJJXVRMV.js";import"./7FMLZNDR.js";import"./LL5C4DHP.js";import"./WPAMUSBR.js";import"./XJPOVJV7.js";import"./LDNQ56OK.js";import"./3HUY3T5F.js";import"./Z6G5PBUQ.js";import"./J3QMHA2M.js";import"./TKZAMPEI.js";import"./2IHQU2FX.js";import"./CGLFPVBM.js";import"./OEJAW72H.js";import"./5JJMGPOW.js";import"./TYX345MZ.js";import"./5UWT66A7.js";import{b as C}from"./2CMRI2B3.js";import{F as o,G as s,H as v,J as _,h as g,i as p,r as n}from"./46DQNAMV.js";import"./OR4HXHSY.js";export default $arcgis.t(([,,,{D:x,H:D,I:I,K:c,a:f,b:w,w:F},,{b:O},,,{g:k,h:A},,,,,{a:y,b:M},{a:T}])=>{var $=g`.back-color-override{background-color:var(--calcite-color-foreground-2);--calcite-tab-border-color: var(--calcite-color-foreground-3)}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-3);height:100%}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-resources-shell,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-3);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}`,m=class extends v{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._translations=S({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${I}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=u({context:w}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._isMobileContextProvider=u({context:f}),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new T,this.deployAppTabSelected=n(),this.deployedCardFetchFailed=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),this.metaTagStringsReady=n(),this.sessionRefreshed=n(),this.tabChanged=n(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,authentication:16,_isLoaded:16,isMobile:16,_activeTab:16,_showDeployedCardFetchFailed:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let a;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(a=l,this.deployedCardSelected.emit({card:a}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let a=k(this._allCards,t.tabTitleOrId);a=a||A(this._allCards,t.tabTitleOrId),a?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(a)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}updated(){this._fixTabpanelFocus()}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let a=i.shadowRoot.querySelector('[role="tabpanel"]');a&&(a.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=O)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return p`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${s(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&p`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar slot=header ${s(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${_(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${_(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${s(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${s(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${s(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${s(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${s(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${s(this._allTab)}><solutions-all-shell class="height-100" ${s(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${s(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${s(this._detailsTab)}><solution-details-panel class="height-100" ${s(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${s(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange),this._tabpanelObserver?.disconnect()}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=T.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new y(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new y(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let a=[];if((t==="details"||t==="deployed-card")&&e){let r=e;a.push(r.title||""),a.push(r.deployCommonId||""),a.push(r.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:a.length>0?a:void 0})}}_emitMetaTagStrings(t,e){let i="",a="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,a=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,a=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,a=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),a=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:a,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=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,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let a=F(e);try{let l=await M(e,i,this._cardsFetcher,this._cardFetcherDeployed,D,"created","desc",!1,[],[],this._abortControllerDeployed.signal,a?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let r=l.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,a=t.industry==="AEC"?x.AEC:t.industry,l=t.offerType,r=t.searchTerm,E="",d=t.sortField,h=t.owner,b=t.filter;e=i||a?{type:i?"domain":a?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),a&&(e=e?{...e,industry:a}:{industry:a}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:E}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),h&&(e=e?{...e,owner:h}:{owner:h}),b&&(e=e?{...e,filter:b}:{filter:b})}return e}_setScrollbarGutters(){let t=this._detailsTab.value?.shadowRoot?.firstElementChild;t?.style&&(t.style.scrollbarGutter="stable both-edges");let e=this._deployedCardTab.value?.shadowRoot?.firstElementChild;e?.style&&(e.style.scrollbarGutter="stable both-edges")}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),a=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},a)}}};C("solutions-deploy-app",m);return m},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b,c,d,e,f,h,i,j,k,l,m)
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import m from"./CSQ77SHH.js";import l from"./YGZRQS2J.js";import k from"./2MVCIEAD.js";import j from"./SGRKAUHN.js";import i from"./25MTK2JD.js";import h from"./OSPT7DNE.js";import f from"./QXFTJVUF.js";import e from"./MTDE4K26.js";import"./OYQYXNHJ.js";import d from"./DQNQ7DLH.js";import c from"./FUEG35TG.js";import b from"./D7AEFBST.js";import"./AA7X6GKH.js";import"./HBPD3T7H.js";import a from"./3R5VOUDP.js";import{a as u}from"./DLBZRD4H.js";import"./UOEDG3M3.js";import{a as S}from"./3AQ7U2PF.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as C}from"./NDUAEC62.js";import{F as o,G as s,H as v,J as _,h as g,i as p,r as n}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,{D:x,H:D,I:I,K:c,a:f,b:w,w:F},,{b:O},,,{g:k,h:A},,,,,{a:y,b:M},{a:T}])=>{var $=g`.back-color-override{background-color:var(--calcite-color-foreground-2);--calcite-tab-border-color: var(--calcite-color-foreground-3)}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-3);height:100%}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-resources-shell,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-3);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}`,m=class extends v{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._translations=S({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${I}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=u({context:w}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._isMobileContextProvider=u({context:f}),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new T,this.deployAppTabSelected=n(),this.deployedCardFetchFailed=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),this.metaTagStringsReady=n(),this.sessionRefreshed=n(),this.tabChanged=n(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,authentication:16,_isLoaded:16,isMobile:16,_activeTab:16,_showDeployedCardFetchFailed:16,_translations:16}}static{this.styles=$}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let a;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(a=l,this.deployedCardSelected.emit({card:a}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let a=k(this._allCards,t.tabTitleOrId);a=a||A(this._allCards,t.tabTitleOrId),a?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(a)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}updated(){this._fixTabpanelFocus()}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let a=i.shadowRoot.querySelector('[role="tabpanel"]');a&&(a.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=O)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return p`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${s(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&p`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar slot=header ${s(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${_(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${_(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${s(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${s(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${s(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${s(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${s(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${s(this._allTab)}><solutions-all-shell class="height-100" ${s(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${s(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${s(this._detailsTab)}><solution-details-panel class="height-100" ${s(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${s(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${s(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange),this._tabpanelObserver?.disconnect()}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=T.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new y(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new y(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=c.ALL_SOLUTIONS;break;case"deployments":i=c.DEPLOYMENTS;break;case"resources":i=c.RESOURCES;break;case"details":i=c.SOLUTION_DETAILS;break;case"deployed-card":i=c.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let a=[];if((t==="details"||t==="deployed-card")&&e){let r=e;a.push(r.title||""),a.push(r.deployCommonId||""),a.push(r.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:a.length>0?a:void 0})}}_emitMetaTagStrings(t,e){let i="",a="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,a=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,a=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,a=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),a=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:a,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=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,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let a=F(e);try{let l=await M(e,i,this._cardsFetcher,this._cardFetcherDeployed,D,"created","desc",!1,[],[],this._abortControllerDeployed.signal,a?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let r=l.message;r.indexOf("CONT_0001")>-1||r.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):r.indexOf("GWM_0003")>-1||r.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,a=t.industry==="AEC"?x.AEC:t.industry,l=t.offerType,r=t.searchTerm,E="",d=t.sortField,h=t.owner,b=t.filter;e=i||a?{type:i?"domain":a?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),a&&(e=e?{...e,industry:a}:{industry:a}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:E}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),h&&(e=e?{...e,owner:h}:{owner:h}),b&&(e=e?{...e,filter:b}:{filter:b})}return e}_setScrollbarGutters(){let t=this._detailsTab.value?.shadowRoot?.firstElementChild;t?.style&&(t.style.scrollbarGutter="stable both-edges");let e=this._deployedCardTab.value?.shadowRoot?.firstElementChild;e?.style&&(e.style.scrollbarGutter="stable both-edges")}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),a=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},a)}}};C("solutions-deploy-app",m);return m},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b,c,d,e,f,h,i,j,k,l,m)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as s}from"./TSKD22JZ.js";import"./XJPOVJV7.js";import"./LDNQ56OK.js";import"./3HUY3T5F.js";import"./Z6G5PBUQ.js";import{a as i,b as a}from"./BJQOXAOG.js";import"./ASTWNDH6.js";import"./J3QMHA2M.js";import"./TKZAMPEI.js";import{a as o}from"./3G4RHRXD.js";import{a as r}from"./F7KJCNKP.js";import"./2IHQU2FX.js";import"./CGLFPVBM.js";import"./OEJAW72H.js";import"./5JJMGPOW.js";import"./TYX345MZ.js";import"./OCJK42MK.js";import"./MBISQ27L.js";import"./XYWNICC6.js";import"./T5HS6V2W.js";import"./UKRALD6X.js";import"./LNLMLBWQ.js";import"./P5YTFAF2.js";import"./YM3BZKEU.js";import"./35D5FZVV.js";import"./HQK5RHHT.js";import"./ZQ37ZZNF.js";import"./5UWT66A7.js";import"./SFG2REQW.js";import"./CUJCDLHI.js";import"./VU3T4WSA.js";import"./W4UTR6WU.js";import"./SE7GHLP3.js";import"./EQUAUHBX.js";import"./YEY4KEHA.js";import"./X5H73PHG.js";import"./OCUMDT2M.js";import"./TUP3HPO4.js";import"./WKMAPRRW.js";import"./OR4HXHSY.js";var u=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.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:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"discussion",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await r(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await i(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),mapTools:["polygon","rectangle"],noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.details.label`,elements:[{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{control:"hub-field-input-input",type:"textarea",messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]}]});export{u as buildUiSchema};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as s}from"./FTMEQQF5.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import{a as i,b as a}from"./CZKXDUOH.js";import"./SC5EOUVT.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import{a as o}from"./DKB6JTUF.js";import{a as r}from"./7DVOR4SY.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";var u=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.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:"shared.fields.purpose.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"discussion",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await r(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await i(t.location,l.hubRequestOptions),options:await a(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),mapTools:["polygon","rectangle"],noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.details.label`,elements:[{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{control:"hub-field-input-input",type:"textarea",messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]}]});export{u as buildUiSchema};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{d as s}from"./TKZAMPEI.js";import"./5JJMGPOW.js";import"./TYX345MZ.js";import"./5UWT66A7.js";import"./OR4HXHSY.js";var a=async(e,r,l)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.groupAccess.label`,scope:"/properties/_associations/properties/groupAccess",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.groupAccess.helperText`},labels:[`{{${e}.fields.groupAccess.private.label:translate}}`,`{{${e}.fields.groupAccess.org.label:translate}}`,`{{${e}.fields.groupAccess.public.label:translate}}`],descriptions:[`{{${e}.fields.groupAccess.private.description:translate}}`,`{{${e}.fields.groupAccess.org.description:translate}}`,`{{${e}.fields.groupAccess.public.description:translate}}`],icons:["users","organization","globe"],styles:{"max-width":"45rem"}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/_associations/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org:translate}}`,`{{${e}.fields.membershipAccess.collab:translate}}`,`{{${e}.fields.membershipAccess.any:translate}}`],disabled:[!1,!s("platform:portal:user:addExternalMembersToGroup",l).access,!s("platform:portal:user:addExternalMembersToGroup",l).access]}}]}]});export{a as buildUiSchema};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{d as s}from"./3FMOO3PJ.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./QPIMTXPL.js";var a=async(e,r,l)=>({type:"Layout",elements:[{type:"Section",elements:[{labelKey:`${e}.fields.groupAccess.label`,scope:"/properties/_associations/properties/groupAccess",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.groupAccess.helperText`},labels:[`{{${e}.fields.groupAccess.private.label:translate}}`,`{{${e}.fields.groupAccess.org.label:translate}}`,`{{${e}.fields.groupAccess.public.label:translate}}`],descriptions:[`{{${e}.fields.groupAccess.private.description:translate}}`,`{{${e}.fields.groupAccess.org.description:translate}}`,`{{${e}.fields.groupAccess.public.description:translate}}`],icons:["users","organization","globe"],styles:{"max-width":"45rem"}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/_associations/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org:translate}}`,`{{${e}.fields.membershipAccess.collab:translate}}`,`{{${e}.fields.membershipAccess.any:translate}}`],disabled:[!1,!s("platform:portal:user:addExternalMembersToGroup",l).access,!s("platform:portal:user:addExternalMembersToGroup",l).access]}}]}]});export{a as buildUiSchema};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as e,b as i,c as l,d as s,e as t}from"./UVKZG44C.js";import{a as r}from"./OCJK42MK.js";import"./MBISQ27L.js";import"./XYWNICC6.js";import"./T5HS6V2W.js";import"./UKRALD6X.js";import"./LNLMLBWQ.js";import"./P5YTFAF2.js";import"./YM3BZKEU.js";import"./35D5FZVV.js";import"./HQK5RHHT.js";import"./ZQ37ZZNF.js";import"./5UWT66A7.js";import"./SFG2REQW.js";import"./CUJCDLHI.js";import"./VU3T4WSA.js";import"./W4UTR6WU.js";import"./SE7GHLP3.js";import"./EQUAUHBX.js";import"./YEY4KEHA.js";import"./X5H73PHG.js";import"./OCUMDT2M.js";import"./TUP3HPO4.js";import"./WKMAPRRW.js";import"./OR4HXHSY.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as e,b as i,c as l,d as s,e as t}from"./HJ4N3RZN.js";import{a as r}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./3R5VOUDP.js";import"./DLBZRD4H.js";import"./UOEDG3M3.js";import"./3AQ7U2PF.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./NDUAEC62.js";import"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([{B:o}])=>{return o},a)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import"./OR4HXHSY.js";var l=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{helperText:{labelKey:`${e}.fields.prompt.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]});export{l as buildUiSchema};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var l=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.prompt.label`,scope:"/properties/prompt",type:"Control",options:{helperText:{labelKey:`${e}.fields.prompt.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.prompt.maxLengthError`}]}}]});export{l as buildUiSchema};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{d as u}from"./CKD45FGQ.js";import{b as n}from"./2CMRI2B3.js";import{F as d,G as c,H as o,J as l,h as s,i as a}from"./46DQNAMV.js";import"./OR4HXHSY.js";var p=s`:host{display:block;--calcite-label-margin-bottom: 0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-none{display:none}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0}`,i=class extends o{constructor(){super(...arguments),this.showAddDeduct=!1,this._deductValuesElement=d()}static{this.properties={showAddDeduct:16}}static{this.styles=p}render(){let e=this.showAddDeduct?"display-none":"display-grid",t=this.showAddDeduct?"position-relative":"display-none";return a`<div class=${l(e)}><div class="label-display"><calcite-label class="label-display">\r\n Enter comma delimited deduct values${this._getDeductValuesInput()}</calcite-label></div><div>${this._getCalculateButton()}</div></div><div class=${l(t)}><div class="position-right"><calcite-action appearance=transparent class="float-end" icon=x @click=${()=>this._toggleShowAddDeduct()} scale=s text></calcite-action></div><deduct-calculator class="display-grid padding-top-1" @deductValueComplete=${this._addDeductValue}></deduct-calculator></div>`}_getDeductValuesInput(){return a`<div class="display-flex"><calcite-input class="main-input" ${c(this._deductValuesElement)}></calcite-input><calcite-action appearance=transparent icon=plus-circle @click=${()=>this._toggleShowAddDeduct()} scale=s text></calcite-action></div>`}_getCalculateButton(){return this._deductValuesElement.value?a`<calcite-button @click=${()=>this._calculatePCI(this._deductValuesElement?.value?.value||"")}>\r\n Calculate PCI</calcite-button>`:void 0}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(e){this._toggleShowAddDeduct(),this._deductValuesElement.value&&(this._deductValuesElement.value.value+=Math.abs(Number.parseFloat(this._deductValuesElement.value.value))>0?`,${e.detail}`:e.detail)}_calculatePCI(e){let t=u(e,!0),r=t<=10?"Failed":t<=25?"Serious":t<=40?"Very Poor":t<=55?"Poor":t<=70?"Fair":t<=85?"Satisfactory":"Good";console.log(`PCI: ${t}`),console.log(`Rating: ${r}`),alert("See debug console for results")}};n("pci-calculator",i);export{i as PciCalculator};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{d as u}from"./ZIVKAX4G.js";import{b as n}from"./NDUAEC62.js";import{F as d,G as c,H as o,J as l,h as s,i as a}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";var p=s`:host{display:block;--calcite-label-margin-bottom: 0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-none{display:none}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0}`,i=class extends o{constructor(){super(...arguments),this.showAddDeduct=!1,this._deductValuesElement=d()}static{this.properties={showAddDeduct:16}}static{this.styles=p}render(){let e=this.showAddDeduct?"display-none":"display-grid",t=this.showAddDeduct?"position-relative":"display-none";return a`<div class=${l(e)}><div class="label-display"><calcite-label class="label-display">\r\n Enter comma delimited deduct values${this._getDeductValuesInput()}</calcite-label></div><div>${this._getCalculateButton()}</div></div><div class=${l(t)}><div class="position-right"><calcite-action appearance=transparent class="float-end" icon=x @click=${()=>this._toggleShowAddDeduct()} scale=s text></calcite-action></div><deduct-calculator class="display-grid padding-top-1" @deductValueComplete=${this._addDeductValue}></deduct-calculator></div>`}_getDeductValuesInput(){return a`<div class="display-flex"><calcite-input class="main-input" ${c(this._deductValuesElement)}></calcite-input><calcite-action appearance=transparent icon=plus-circle @click=${()=>this._toggleShowAddDeduct()} scale=s text></calcite-action></div>`}_getCalculateButton(){return this._deductValuesElement.value?a`<calcite-button @click=${()=>this._calculatePCI(this._deductValuesElement?.value?.value||"")}>\r\n Calculate PCI</calcite-button>`:void 0}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(e){this._toggleShowAddDeduct(),this._deductValuesElement.value&&(this._deductValuesElement.value.value+=Math.abs(Number.parseFloat(this._deductValuesElement.value.value))>0?`,${e.detail}`:e.detail)}_calculatePCI(e){let t=u(e,!0),r=t<=10?"Failed":t<=25?"Serious":t<=40?"Very Poor":t<=55?"Poor":t<=70?"Fair":t<=85?"Satisfactory":"Good";console.log(`PCI: ${t}`),console.log(`Rating: ${r}`),alert("See debug console for results")}};n("pci-calculator",i);export{i as PciCalculator};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  function i(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)o.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(r[t[n]]=e[t[n]]);return r}export{i as a};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{B as o,l as r,x as s,y as i}from"./46DQNAMV.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{B as o,l as r,x as s,y as i}from"./P4KZ6OZF.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import c from"./2MVCIEAD.js";import b from"./SGRKAUHN.js";import"./HBPD3T7H.js";import a from"./3R5VOUDP.js";import"./DLBZRD4H.js";import"./UOEDG3M3.js";import"./3AQ7U2PF.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import"./TEHBW75B.js";import"./KU62OLRE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./B3R52L7H.js";import"./BDXIKPLU.js";import"./G2ME4BAQ.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./73AX72WY.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./NDUAEC62.js";import"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./QPIMTXPL.js";var e="Du har ikke nok credits til \xE5 utf\xF8re denne operasjonen. Kontakt ArcGIS-systemadministratoren for \xE5 f\xE5 hjelp.",r="Dette verkt\xF8yet ble publisert fra en notisbok. Tilgang til ArcGIS Notebooks er blokkert for din organisasjon. Kontakt administratoren din for \xE5 justere innstillingen.",t="${ dataPath } kan ikke ha ${ additionalProperty }.",a="${ dataPath } m\xE5 samsvare med skjemaet for \xE9n av f\xF8lgende: ${ schemaOptions }.",n="Pr\xF8v \xE5 lagre kartet p\xE5 nytt.",i="Creditestimering mislyktes. Rull nedover, korriger feilene, og estimer creditene p\xE5 nytt.",l="Det oppstod en feil under kj\xF8ring av analysen.",o="${ dataPath } m\xE5 v\xE6re lik \xE9n av f\xF8lgende tillatte verdier: ${ allowedValues }.",s="Kunne ikke lagre analysehistorikken",_="Historikklageret er fullt. Fjern noen elementer fra analysehistorikken og pr\xF8ve \xE5 lagre p\xE5 nytt.",d="Tjenestenavnet inneholder ett eller flere ugyldige tegn.",k="Lagringen av det midlertidige laget som et hostet geoobjektlag ble ikke fullf\xF8rt.",m="\xE5_The following privileges are required to run this tool: ${ privileges }. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________________\xF8",g="Kan ikke hente n\xF8kkelegenskaper.",u="Kan ikke laste inn laget.",c="Laget er ikke tilgjengelig.",f="${ limit } kan ikke inneholde flere enn ${ dataPath } elementer.",p="Det oppstod en feil under lagring av modellen. Pr\xF8v \xE5 lagre p\xE5 nytt.",v="${ dataPath } kan ikke inneholde f\xE6rre enn ${ limit } elementer.",y="${ dataPath } m\xE5 ikke v\xE6re kortere enn ${ limit } tegn.",h="Kan ikke laste inn modellelementet. S\xF8rg for at modellen eksisterer og at tilgangstillatelser er gitt.",P="Kan ikke fullf\xF8re foresp\xF8rselen.",E="Du har ikke tilgang til \xE5 kj\xF8re dette verkt\xF8yet. <calcite-link target='_blank' href='${ docLink }'>Mer informasjon</calcite-link>",b="Kan ikke logge inn p\xE5 portalen.",S="Kan ikke lese inndata.",$="${ dataPath } mangler en egenskap ved navn ${ missingProperty }.",T="Det finnes allerede et resultatlag med dette navnet. Navn p\xE5 resultatlag m\xE5 v\xE6re unike innenfor organisasjonen. Bruk en annen tittel.",j="\xE5_The output name contains one or more invalid characters. <calcite-link href='${docLink}' target='_blank'>Learn more</calcite-link>__________________________________________________________________\xF8",F="Publiseringen av det midlertidige laget som et hostet lag mislyktes p\xE5 grunn av ett eller flere ugyldige felter. Kj\xF8r verkt\xF8yet p\xE5 nytt for \xE5 opprette et lag med gyldige felter.",L="Jobbinnsendingen mislyktes. Rull nedover, korriger feilene, og kj\xF8r analysen p\xE5 nytt.",I="${ dataPath } m\xE5 inneholde minst ett tegn som ikke er mellomrom.",K={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:t,anyOfValues:a,cannotWriteToItemResource:n,creditEstimationError:i,defaultError:l,enumValues:o,failedToSaveHistory:s,fullSessionStorage:_,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:k,insufficientPermissions:m,keyPropertiesError:g,layerLoadFailure:u,layerUnavailable:c,maxItems:f,mbFailedToSave:p,minItems:v,minLength:y,modelNotFound:h,networkError:P,noPermissionToAccessTool:E,portalLoadError:b,queryFeaturesError:S,requiredProperty:$,serviceNameExistsError:T,specialCharactersInServiceNameError:j,temporaryLayerFieldsError:F,toolValidationError:L,whiteSpacePattern:I};export{e as InsufficientCreditsError,r as accessBlocked,t as additionalProperty,a as anyOfValues,n as cannotWriteToItemResource,i as creditEstimationError,K as default,l as defaultError,o as enumValues,s as failedToSaveHistory,_ as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,k as hostedFeatureServicePublishDidNotComplete,m as insufficientPermissions,g as keyPropertiesError,u as layerLoadFailure,c as layerUnavailable,f as maxItems,p as mbFailedToSave,v as minItems,y as minLength,h as modelNotFound,P as networkError,E as noPermissionToAccessTool,b as portalLoadError,S as queryFeaturesError,$ as requiredProperty,T as serviceNameExistsError,j as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,L as toolValidationError,I as whiteSpacePattern};
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as y}from"./4T7P5RXF.js";import{a as E}from"./24S5LVU5.js";import{a as $}from"./FT2RITIO.js";import{b as f}from"./AQKTTVWV.js";import"./36I27Q5R.js";import"./GDPFKW75.js";import{F as h,G as u,H as m,J as p,h as b,i as o,l as _,r as w}from"./46DQNAMV.js";import"./OR4HXHSY.js";export default $arcgis.t(([c,S,L])=>{var C=`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as y}from"./AA7X6GKH.js";import{a as E}from"./2D6XDWYA.js";import{a as $}from"./SOHNIGAO.js";import{b as f}from"./7EF56IQP.js";import"./DIKAKOU5.js";import"./S423P2GA.js";import{F as h,G as u,H as m,J as p,h as b,i as o,l as _,r as w}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([c,S,L])=>{var C=`
3
3
  @media print {
4
4
  @page {
5
5
  size: Portrait;
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as m}from"./77NDVP55.js";import{a as f}from"./XJPOVJV7.js";var i=class extends Error{constructor(t,e,s){super(t),this.status=s,this.url=e}};var c=class extends i{constructor(t,e,s,n){super(t,e,s),this.error=n}};function u(r){let{token:t,authentication:e}=r,s=()=>Promise.resolve(t);return e&&(s=e.getToken.bind(e,e.portal)),s()}function h(r,t,e,s){var n;let p=r,o=new Headers(t.headers);o.append("Content-Type","application/json"),s&&o.append("Authorization",`Bearer ${s}`);let d={headers:o,method:t.httpMethod||"GET",mode:t.mode,cache:t.cache,credentials:t.credentials},x=f({host:t.hubApiUrl||"https://hub.arcgis.com",path:`/api/discussions/${e}`});if(t.data)if(t.httpMethod==="GET"){let a=new URLSearchParams(t.data).toString();p+=`?${a}`}else d.body=JSON.stringify(t.data);let g=["/posts","/posts/search"].includes(r)&&(((n=t.data)===null||n===void 0?void 0:n.f)===m.CSV||o.get("Accept")==="text/csv"),l=[x.replace(/\/$/,""),p.replace(/^\//,"")].join("/");return fetch(l,d).then(a=>{if(a.ok)return g?a.text():a.json();{let{statusText:b,status:q}=a;return a.json().then(y=>{throw new c(b,l,q,JSON.stringify(y.message))})}})}function w(r,t){return u(t).then(e=>h(r,t,"v1",e))}function P(r,t){return u(t).then(e=>h(r,t,"v2",e))}export{w as a,P as b};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as m}from"./3KGOZXJN.js";import{a as f}from"./G2ME4BAQ.js";var i=class extends Error{constructor(t,e,s){super(t),this.status=s,this.url=e}};var c=class extends i{constructor(t,e,s,n){super(t,e,s),this.error=n}};function u(r){let{token:t,authentication:e}=r,s=()=>Promise.resolve(t);return e&&(s=e.getToken.bind(e,e.portal)),s()}function h(r,t,e,s){var n;let p=r,o=new Headers(t.headers);o.append("Content-Type","application/json"),s&&o.append("Authorization",`Bearer ${s}`);let d={headers:o,method:t.httpMethod||"GET",mode:t.mode,cache:t.cache,credentials:t.credentials},x=f({host:t.hubApiUrl||"https://hub.arcgis.com",path:`/api/discussions/${e}`});if(t.data)if(t.httpMethod==="GET"){let a=new URLSearchParams(t.data).toString();p+=`?${a}`}else d.body=JSON.stringify(t.data);let g=["/posts","/posts/search"].includes(r)&&(((n=t.data)===null||n===void 0?void 0:n.f)===m.CSV||o.get("Accept")==="text/csv"),l=[x.replace(/\/$/,""),p.replace(/^\//,"")].join("/");return fetch(l,d).then(a=>{if(a.ok)return g?a.text():a.json();{let{statusText:b,status:q}=a;return a.json().then(y=>{throw new c(b,l,q,JSON.stringify(y.message))})}})}function w(r,t){return u(t).then(e=>h(r,t,"v1",e))}function P(r,t){return u(t).then(e=>h(r,t,"v2",e))}export{w as a,P as b};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as m}from"./2CMRI2B3.js";import{F as h,G as n,H as d,h as s,i as o,r as i}from"./46DQNAMV.js";import"./OR4HXHSY.js";export default $arcgis.t(([f,l])=>{var c=s`:host{display:block}`,r=class extends d{constructor(){super(...arguments),this.enabled=!1,this._floorFilterElement=h(),this.facilityChanged=i(),this.levelChanged=i(),this.siteChanged=i()}static{this.properties={enabled:5,floorFilterWidget:0,mapView:0}}static{this.styles=c}willUpdate(t){t.has("mapView")&&this.mapViewWatchHandler(),t.has("enabled")&&this.enabledWatchHandler()}async mapViewWatchHandler(){this.mapView&&await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?this.mapView&&await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}render(){return o`<div ${n(this._floorFilterElement)}></div>`}async loaded(){this.mapView&&!this.floorFilterWidget&&await this._initFloorFilter(this.mapView)}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement.value&&this._floorFilterElement.value.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement&&(this._floorFilterElement.value=document.createElement("div"))}async _initFloorFilter(t){let a=t?.map;a&&await a.when(()=>{t&&this.enabled&&a?.floorInfo&&(this._initContainer(),this.floorFilterWidget=new f({container:this._floorFilterElement.value,view:t}),this._facilityHandle?.remove(),this._facilityHandle=l?.watch(()=>this.floorFilterWidget?.facility,e=>{e&&this.facilityChanged.emit(e)}),this._levelHandle?.remove(),this._levelHandle=l.watch(()=>this.floorFilterWidget?.level,e=>{e&&this.levelChanged.emit(e)}),this._siteHandle?.remove(),this._siteHandle=l.watch(()=>this.floorFilterWidget?.site,e=>{e&&this.siteChanged.emit(e)}))})}};m("map-floor-filter",r);return r},"widgets/FloorFilter","core/reactiveUtils")
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as m}from"./NDUAEC62.js";import{F as h,G as n,H as d,h as s,i as o,r as i}from"./P4KZ6OZF.js";import"./QPIMTXPL.js";export default $arcgis.t(([f,l])=>{var c=s`:host{display:block}`,r=class extends d{constructor(){super(...arguments),this.enabled=!1,this._floorFilterElement=h(),this.facilityChanged=i(),this.levelChanged=i(),this.siteChanged=i()}static{this.properties={enabled:5,floorFilterWidget:0,mapView:0}}static{this.styles=c}willUpdate(t){t.has("mapView")&&this.mapViewWatchHandler(),t.has("enabled")&&this.enabledWatchHandler()}async mapViewWatchHandler(){this.mapView&&await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?this.mapView&&await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}render(){return o`<div ${n(this._floorFilterElement)}></div>`}async loaded(){this.mapView&&!this.floorFilterWidget&&await this._initFloorFilter(this.mapView)}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement.value&&this._floorFilterElement.value.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement&&(this._floorFilterElement.value=document.createElement("div"))}async _initFloorFilter(t){let a=t?.map;a&&await a.when(()=>{t&&this.enabled&&a?.floorInfo&&(this._initContainer(),this.floorFilterWidget=new f({container:this._floorFilterElement.value,view:t}),this._facilityHandle?.remove(),this._facilityHandle=l?.watch(()=>this.floorFilterWidget?.facility,e=>{e&&this.facilityChanged.emit(e)}),this._levelHandle?.remove(),this._levelHandle=l.watch(()=>this.floorFilterWidget?.level,e=>{e&&this.levelChanged.emit(e)}),this._siteHandle?.remove(),this._siteHandle=l.watch(()=>this.floorFilterWidget?.site,e=>{e&&this.siteChanged.emit(e)}))})}};m("map-floor-filter",r);return r},"widgets/FloorFilter","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as l}from"./BKFF52SE.js";import"./TKZAMPEI.js";import"./5JJMGPOW.js";import"./TYX345MZ.js";import{a as t}from"./OCJK42MK.js";import"./MBISQ27L.js";import"./XYWNICC6.js";import"./T5HS6V2W.js";import"./UKRALD6X.js";import"./LNLMLBWQ.js";import"./P5YTFAF2.js";import"./YM3BZKEU.js";import"./35D5FZVV.js";import"./HQK5RHHT.js";import"./ZQ37ZZNF.js";import"./5UWT66A7.js";import"./SFG2REQW.js";import"./CUJCDLHI.js";import"./VU3T4WSA.js";import"./W4UTR6WU.js";import"./SE7GHLP3.js";import"./EQUAUHBX.js";import"./YEY4KEHA.js";import"./X5H73PHG.js";import"./OCUMDT2M.js";import"./TUP3HPO4.js";import"./WKMAPRRW.js";import"./OR4HXHSY.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
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as l}from"./26K4UTAF.js";import"./3FMOO3PJ.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import{a as t}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.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};