@esri/solutions-components 1.2.0-next.14 → 1.2.0-next.16

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 (540) hide show
  1. package/dist/cdn/{KVC6QETL.js → 24WM5BYO.js} +2 -2
  2. package/dist/cdn/{X5XLKUPY.js → 2CJ5PXL4.js} +2 -2
  3. package/dist/cdn/{F6HR2OXE.js → 2CNPC7JI.js} +2 -2
  4. package/dist/cdn/{POIPE7OT.js → 2HITWCFR.js} +2 -2
  5. package/dist/cdn/{ZMWV3XIS.js → 2J76IXAQ.js} +2 -2
  6. package/dist/cdn/{QBACNHT4.js → 2KQOSCAG.js} +2 -2
  7. package/dist/cdn/{BNGZYVGD.js → 2WNSA4HV.js} +2 -2
  8. package/dist/cdn/{L3Q3HM35.js → 33SUDNLJ.js} +1 -1
  9. package/dist/cdn/{WNWEV3AC.js → 33UX3ORX.js} +2 -2
  10. package/dist/cdn/{QESHG4WZ.js → 34W4ROJB.js} +2 -2
  11. package/dist/cdn/{4XVIRWML.js → 3K6T5N6M.js} +2 -2
  12. package/dist/cdn/{DGAAG2WP.js → 3SQYZSFK.js} +2 -2
  13. package/dist/cdn/{5AGT5STX.js → 3WACVNJA.js} +2 -2
  14. package/dist/cdn/{O7XMERIK.js → 3ZAF7BHV.js} +2 -2
  15. package/dist/cdn/{7HCS7QDO.js → 445VP5V5.js} +2 -2
  16. package/dist/cdn/{CJQCUJAM.js → 463BGXGZ.js} +2 -2
  17. package/dist/cdn/{V5TIHCQF.js → 47TJEFIE.js} +2 -2
  18. package/dist/cdn/{LGVRRCS5.js → 47U3M3WM.js} +2 -2
  19. package/dist/cdn/{DDORSIZO.js → 4FW2NSUM.js} +2 -2
  20. package/dist/cdn/{275D3YQA.js → 4GMTW4GE.js} +2 -2
  21. package/dist/cdn/{XUJUH4UK.js → 4I6Q6O7Q.js} +2 -2
  22. package/dist/cdn/{SLDGR2DM.js → 4LIZAOSQ.js} +2 -2
  23. package/dist/cdn/{N3V7I4KP.js → 4LTQAJ7Q.js} +1 -1
  24. package/dist/cdn/{DG3J22ET.js → 4PFGFYB7.js} +2 -2
  25. package/dist/cdn/{RKI47VQ2.js → 4PQQRVYV.js} +2 -2
  26. package/dist/cdn/{YK7CSNSO.js → 4QMBH3EN.js} +2 -2
  27. package/dist/cdn/{4VTYPOLQ.js → 4QWHJISX.js} +1 -1
  28. package/dist/cdn/{DGALIRFU.js → 4QWU62YY.js} +2 -2
  29. package/dist/cdn/{6MQTHJAJ.js → 4S7GJLXK.js} +2 -2
  30. package/dist/cdn/{LR4UN32O.js → 4STQ6HY6.js} +2 -2
  31. package/dist/cdn/{NCQJQIGP.js → 4SUYESMM.js} +2 -2
  32. package/dist/cdn/{CAOSAERX.js → 4ZTJFATS.js} +2 -2
  33. package/dist/cdn/54US2Z6M.js +18 -0
  34. package/dist/cdn/{SFSJYGXN.js → 5BELOZCM.js} +1 -1
  35. package/dist/cdn/{C44APEWJ.js → 5I53UUNF.js} +2 -2
  36. package/dist/cdn/{5VS5R36W.js → 5KJRUSMT.js} +2 -2
  37. package/dist/cdn/{FB7AKBYZ.js → 5MOL5QM7.js} +2 -2
  38. package/dist/cdn/{PAWE5LYT.js → 5NGJJHY7.js} +2 -2
  39. package/dist/cdn/{ERPKGUIG.js → 5NPHA45T.js} +2 -2
  40. package/dist/cdn/{XUFAW7KH.js → 5PL5BX7B.js} +2 -2
  41. package/dist/cdn/{3QPYBQCK.js → 5QCHMT6O.js} +2 -2
  42. package/dist/cdn/{JOSXFLJM.js → 5QGDLNDG.js} +2 -2
  43. package/dist/cdn/{VKLLQNEW.js → 5QIH33SB.js} +2 -2
  44. package/dist/cdn/{5BLRWVVT.js → 5ROFL3RL.js} +2 -2
  45. package/dist/cdn/{HKHRMYR3.js → 64BACTQY.js} +2 -2
  46. package/dist/cdn/{WR2MBTUF.js → 64Q6BQ3T.js} +2 -2
  47. package/dist/cdn/{PNSRB675.js → 6HMY55NE.js} +2 -2
  48. package/dist/cdn/{32CJQFYT.js → 6KHLLWW2.js} +1 -1
  49. package/dist/cdn/{ZPJLLGVT.js → 6LQTNDBM.js} +2 -2
  50. package/dist/cdn/{OENFSWWX.js → 6X3COWPL.js} +2 -2
  51. package/dist/cdn/{IJCGATIB.js → 6XA66MT6.js} +2 -2
  52. package/dist/cdn/{VJWAIQPC.js → 734PV7FU.js} +2 -2
  53. package/dist/cdn/{CKNLHB2K.js → 75QVLAGK.js} +2 -2
  54. package/dist/cdn/{GPTEAVC5.js → 76ZCQD7O.js} +2 -2
  55. package/dist/cdn/{6UQXA4EH.js → 7AM6FTIY.js} +2 -2
  56. package/dist/cdn/7C3OLASZ.js +18 -0
  57. package/dist/cdn/{JODMPBQI.js → 7C7V3TXJ.js} +2 -2
  58. package/dist/cdn/{55SZWBDG.js → 7F7DT3AI.js} +2 -2
  59. package/dist/cdn/{JAY4QLVZ.js → 7GX4DJGT.js} +2 -2
  60. package/dist/cdn/{4X6WXZQL.js → 7ILSE3KA.js} +2 -2
  61. package/dist/cdn/{LQZ5FBXA.js → 7ITUUMFZ.js} +2 -2
  62. package/dist/cdn/{3XM3G7I5.js → 7IXKEJ6E.js} +1 -1
  63. package/dist/cdn/{BPZYGUMF.js → 7IYU7N4H.js} +2 -2
  64. package/dist/cdn/{WOF27X3U.js → 7K22NQSD.js} +1 -1
  65. package/dist/cdn/{HCGGITXI.js → 7MXST5RQ.js} +2 -2
  66. package/dist/cdn/{Y7LGH6KN.js → 7N5QKFNB.js} +1 -1
  67. package/dist/cdn/{PNZWOZIO.js → 7PUOSBZG.js} +1 -1
  68. package/dist/cdn/{UPJWS62Y.js → 7UDEXBGV.js} +2 -2
  69. package/dist/cdn/{ATHCVVJJ.js → 7VUSH2YE.js} +1 -1
  70. package/dist/cdn/{OA5BDZZH.js → A25HLWUP.js} +2 -2
  71. package/dist/cdn/{ZBPVWS4U.js → A76EPYVI.js} +2 -2
  72. package/dist/cdn/{UCPFFUQC.js → AABIQ6OI.js} +2 -2
  73. package/dist/cdn/{DA6O63VU.js → AC5ZYR6U.js} +2 -2
  74. package/dist/cdn/{FJLQNJZC.js → ADWQSEII.js} +2 -2
  75. package/dist/cdn/{EW33PWBK.js → AGPZ3ZW3.js} +1 -1
  76. package/dist/cdn/{LRR4ZR5H.js → AIIP4SWB.js} +2 -2
  77. package/dist/cdn/{QOSVCQEN.js → AJQDBHCZ.js} +2 -2
  78. package/dist/cdn/{GFHDLACH.js → AQNHCJUJ.js} +2 -2
  79. package/dist/cdn/{HAXUZW3B.js → ASYSKXRU.js} +2 -2
  80. package/dist/cdn/{L2KEAIFF.js → AXFQLPZQ.js} +2 -2
  81. package/dist/cdn/{4DG5M3F4.js → AZDCP65Y.js} +2 -2
  82. package/dist/cdn/{SQKB5YHF.js → B46CQCIJ.js} +1 -1
  83. package/dist/cdn/{KLJWOWTJ.js → BA2JZZPZ.js} +2 -2
  84. package/dist/cdn/{L3254555.js → BAJD2MAY.js} +2 -2
  85. package/dist/cdn/{ED5F2TPC.js → BFBKMPXC.js} +1 -1
  86. package/dist/cdn/{4MS4GKD3.js → BGIC54NM.js} +2 -2
  87. package/dist/cdn/{GRL5XFU3.js → BHT4KXCJ.js} +2 -2
  88. package/dist/cdn/{GKDBDC5Q.js → BIFWKQ4A.js} +2 -2
  89. package/dist/cdn/{RSERAAVS.js → BKKW36VD.js} +2 -2
  90. package/dist/cdn/{VD6EFCRJ.js → BL65R7NF.js} +2 -2
  91. package/dist/cdn/{HHCUJ2TU.js → BOM2RSTG.js} +2 -2
  92. package/dist/cdn/{OGINZV2L.js → BOMBADXF.js} +1 -1
  93. package/dist/cdn/{OVEIHKZZ.js → BSDT7WHN.js} +2 -2
  94. package/dist/cdn/{CVHMFFUJ.js → BTVG2AUT.js} +2 -2
  95. package/dist/cdn/{LK5HDTLK.js → BWZE7DXC.js} +2 -2
  96. package/dist/cdn/{RKGMIWAB.js → BXW5OPJA.js} +1 -1
  97. package/dist/cdn/BYGI6ZG4.js +4 -0
  98. package/dist/cdn/{6KMU4IZC.js → CG7LU7SQ.js} +2 -2
  99. package/dist/cdn/{2AN7ELSH.js → CIPEOZGL.js} +2 -2
  100. package/dist/cdn/{LOXYPSQZ.js → CKEIWQPE.js} +2 -2
  101. package/dist/cdn/CLEGGOAG.js +18 -0
  102. package/dist/cdn/{PDBMILPZ.js → CLNJC6L6.js} +1 -1
  103. package/dist/cdn/{RGEOJKWT.js → COE7UBMY.js} +1 -1
  104. package/dist/cdn/{WYUUHAX5.js → CQLWNONE.js} +1 -1
  105. package/dist/cdn/{7INSFWLF.js → CRM5UVP3.js} +2 -2
  106. package/dist/cdn/{WC7D5CTI.js → CSI5GAPY.js} +2 -2
  107. package/dist/cdn/{TZG6SUZL.js → CWMZQMNZ.js} +2 -2
  108. package/dist/cdn/{N5SMXPJM.js → CWSJDBQ4.js} +2 -2
  109. package/dist/cdn/{M3PIEBE5.js → CX7EB6FR.js} +2 -2
  110. package/dist/cdn/{4FALCKMG.js → D24MF5EE.js} +2 -2
  111. package/dist/cdn/D35IRVYQ.js +4 -0
  112. package/dist/cdn/{BZGPGXVO.js → D3FKVFUM.js} +2 -2
  113. package/dist/cdn/{Y3LT4KUT.js → D3H64MRR.js} +1 -1
  114. package/dist/cdn/{G6MDAFDN.js → DAMKXRGU.js} +2 -2
  115. package/dist/cdn/{XU5Y7VU2.js → DFNL2TA5.js} +2 -2
  116. package/dist/cdn/DGOXBH7E.js +4 -0
  117. package/dist/cdn/{ZERWOJO6.js → DUFCXSJZ.js} +2 -2
  118. package/dist/cdn/{AU5GOE2S.js → E2I2FH4I.js} +1 -1
  119. package/dist/cdn/{Z27EOVYK.js → E3MM5XBG.js} +2 -2
  120. package/dist/cdn/{ACRHJFIK.js → E3MRIPN4.js} +2 -2
  121. package/dist/cdn/{WTU66RJH.js → E3O3ATEP.js} +2 -2
  122. package/dist/cdn/{7BLXQDEK.js → EBFHYLAT.js} +2 -2
  123. package/dist/cdn/ECHGKTAQ.js +18 -0
  124. package/dist/cdn/{ZPI3URP2.js → EHEYAZL3.js} +2 -2
  125. package/dist/cdn/{2UWPI3SL.js → EKU2FTBE.js} +1 -1
  126. package/dist/cdn/{AADW5ILT.js → ET6LIIRW.js} +2 -2
  127. package/dist/cdn/{A437YTBB.js → EU6EDFI6.js} +2 -2
  128. package/dist/cdn/EW3R6IN2.js +4 -0
  129. package/dist/cdn/{6KL3NJRR.js → F4JC7HOE.js} +1 -1
  130. package/dist/cdn/{GESWKJMD.js → F7XUO6AF.js} +2 -2
  131. package/dist/cdn/{PZGSUW4E.js → FE7BOUXR.js} +2 -2
  132. package/dist/cdn/{XJV42NPL.js → FJRODNHS.js} +2 -2
  133. package/dist/cdn/{MDNDODSS.js → FL74QEC5.js} +2 -2
  134. package/dist/cdn/{AFVKHRR2.js → FLWQFTL6.js} +2 -2
  135. package/dist/cdn/{QTDYELK6.js → FOS4FALQ.js} +1 -1
  136. package/dist/cdn/{64IH7HAU.js → FPQW2SHJ.js} +2 -2
  137. package/dist/cdn/{5M3POXXX.js → FRMOXCIW.js} +2 -2
  138. package/dist/cdn/{WDUEH22A.js → FT3JQVXW.js} +2 -2
  139. package/dist/cdn/{GCFYG2IP.js → G32WYZWI.js} +2 -2
  140. package/dist/cdn/{NWFXWOAO.js → G6BHRJBM.js} +2 -2
  141. package/dist/cdn/{55PIVHXI.js → GCYZFLHS.js} +2 -2
  142. package/dist/cdn/{FRA2DQWF.js → GF6FVCOF.js} +2 -2
  143. package/dist/cdn/{2KKY4D26.js → GGBR6YO3.js} +2 -2
  144. package/dist/cdn/{XGMVUDCR.js → GHMZLDRQ.js} +2 -2
  145. package/dist/cdn/{XW6UDQOC.js → GJFOY4MZ.js} +2 -2
  146. package/dist/cdn/{CUJAQZ7Q.js → GK6BZ5CA.js} +2 -2
  147. package/dist/cdn/{VNHY7WVH.js → GKUGVMPR.js} +2 -2
  148. package/dist/cdn/{2PQ2DS43.js → GSWFBSAI.js} +2 -2
  149. package/dist/cdn/GTWKDTTV.js +18 -0
  150. package/dist/cdn/{T6TRDLLW.js → GXE4VLPB.js} +2 -2
  151. package/dist/cdn/{GG5322XB.js → GXVG6TBE.js} +2 -2
  152. package/dist/cdn/{35FQADFO.js → H6UWK3YK.js} +2 -2
  153. package/dist/cdn/{RFLPQTHR.js → HHQ6EAEC.js} +1 -1
  154. package/dist/cdn/{OWNE3NKH.js → HMZDUHVH.js} +4 -4
  155. package/dist/cdn/{ULJ5HIFK.js → HOYCR6CW.js} +2 -2
  156. package/dist/cdn/{6NTONBY4.js → HPB7LMZB.js} +2 -2
  157. package/dist/cdn/{FLMHLO43.js → HRRYHXJV.js} +2 -2
  158. package/dist/cdn/{DM2QASNK.js → HZWJW4N4.js} +2 -2
  159. package/dist/cdn/{VG77G3L3.js → IBECKWAF.js} +2 -2
  160. package/dist/cdn/{G3LGAMBQ.js → ID5T7DGW.js} +2 -2
  161. package/dist/cdn/{T66ZKGRR.js → IKW7KKVU.js} +1 -1
  162. package/dist/cdn/{AROFWN7J.js → IRIIUZ4P.js} +2 -2
  163. package/dist/cdn/{LBTMKK7G.js → IUORSNIC.js} +2 -2
  164. package/dist/cdn/{G57QOE4P.js → IWEORJKW.js} +2 -2
  165. package/dist/cdn/{BT3PZ755.js → JA42BMTT.js} +1 -1
  166. package/dist/cdn/{TLXOAJK5.js → JLPMEQ4C.js} +2 -2
  167. package/dist/cdn/{FFZOA5VY.js → JRAWXTC2.js} +2 -2
  168. package/dist/cdn/{47HZO7HH.js → JS3S6ATX.js} +2 -2
  169. package/dist/cdn/{LLKMGYSP.js → JXBYVSDN.js} +2 -2
  170. package/dist/cdn/{GZ4MUQVE.js → JXZF4HP3.js} +2 -2
  171. package/dist/cdn/{S5HZ3ZDX.js → JYVKD3AY.js} +2 -2
  172. package/dist/cdn/{3JLPYT3H.js → KBECYN7X.js} +2 -2
  173. package/dist/cdn/{RDKSB4BZ.js → KEH7PCJF.js} +2 -2
  174. package/dist/cdn/{J4PD5ZQ7.js → KJJQAQBD.js} +1 -1
  175. package/dist/cdn/{EDFQHWSA.js → KKWP4MFI.js} +2 -2
  176. package/dist/cdn/{REM4XQLE.js → KQCOJSEM.js} +2 -2
  177. package/dist/cdn/{UYXUVFKE.js → KRUFNCWC.js} +2 -2
  178. package/dist/cdn/{VYCVM7AQ.js → KUMDM2TP.js} +1 -1
  179. package/dist/cdn/{GICZBA3H.js → KW3H64Z3.js} +2 -2
  180. package/dist/cdn/{TFX7FLLB.js → L2M6XD4J.js} +2 -2
  181. package/dist/cdn/{SCHYFVMA.js → L2YFBS6Q.js} +1 -1
  182. package/dist/cdn/L5CLDC55.js +18 -0
  183. package/dist/cdn/{FCF6DXVK.js → LEKPGQ27.js} +2 -2
  184. package/dist/cdn/{OZXJ2M5O.js → LF3V5ZAK.js} +2 -2
  185. package/dist/cdn/{QU2RIV42.js → LI3HHQ6A.js} +2 -2
  186. package/dist/cdn/{OHAUP2TS.js → LRDXMMOD.js} +2 -2
  187. package/dist/cdn/{CS2LIBSE.js → LTEMSWE5.js} +2 -2
  188. package/dist/cdn/{57VUM2OX.js → M2HCD4O7.js} +2 -2
  189. package/dist/cdn/{AUHY5KDY.js → M37XXGZU.js} +2 -2
  190. package/dist/cdn/{NY4VVXOI.js → M3DGWEUL.js} +2 -2
  191. package/dist/cdn/{DUSKO4ZL.js → M4C4FAYK.js} +2 -2
  192. package/dist/cdn/{DJIPWE3W.js → M4Q775XV.js} +2 -2
  193. package/dist/cdn/{ZQ53XSXJ.js → MASIZZCI.js} +2 -2
  194. package/dist/cdn/{3TZNTRGM.js → MB4QMMLX.js} +2 -2
  195. package/dist/cdn/{CRJF3MOM.js → MBVBYMPA.js} +2 -2
  196. package/dist/cdn/{7C563I5Y.js → MDGONFN6.js} +2 -2
  197. package/dist/cdn/{VN2Z7U4S.js → MEZGELTC.js} +2 -2
  198. package/dist/cdn/{3JGSO6KR.js → MHQB5WNU.js} +2 -2
  199. package/dist/cdn/{E7X4JPJZ.js → MKH2DA7O.js} +2 -2
  200. package/dist/cdn/{LMAODDCB.js → MOEDT57I.js} +2 -2
  201. package/dist/cdn/{7FDUBCB6.js → MOTBFN4G.js} +2 -2
  202. package/dist/cdn/{MSOGJSYT.js → MOZ76AMD.js} +2 -2
  203. package/dist/cdn/{AVGRHD4G.js → MUZW3RGH.js} +2 -2
  204. package/dist/cdn/{2DGB5L7S.js → MVZGGYJE.js} +1 -1
  205. package/dist/cdn/{F4ML5DAH.js → MWSOZQDY.js} +2 -2
  206. package/dist/cdn/{3R72A4LX.js → MZFDKMPX.js} +2 -2
  207. package/dist/cdn/{HU23U4PP.js → N2W6QSZD.js} +2 -2
  208. package/dist/cdn/{3I7S3ZV4.js → N5STZ7GZ.js} +2 -2
  209. package/dist/cdn/{CDKJFB3T.js → N67QCQ7V.js} +2 -2
  210. package/dist/cdn/{XEIR3HD2.js → NCCMANMO.js} +2 -2
  211. package/dist/cdn/NEHYX5WH.js +20 -0
  212. package/dist/cdn/{F6NAYPRN.js → NHWSJLLO.js} +2 -2
  213. package/dist/cdn/{TYSGRYCE.js → NLXHAQLL.js} +2 -2
  214. package/dist/cdn/{JH3DG6QD.js → NUCUGNUX.js} +2 -2
  215. package/dist/cdn/{MJ3U6PJY.js → O3IDDO6J.js} +2 -2
  216. package/dist/cdn/{VQCSCWLK.js → O3VFVJOS.js} +2 -2
  217. package/dist/cdn/{27LWIDZP.js → O6NVE7E5.js} +2 -2
  218. package/dist/cdn/{KKXIEFPA.js → OENBSLHM.js} +2 -2
  219. package/dist/cdn/OI7P2J4Y.js +18 -0
  220. package/dist/cdn/OJJHKR7F.js +4 -0
  221. package/dist/cdn/{OVVYNB4P.js → ONHJPLZM.js} +2 -2
  222. package/dist/cdn/{SE7AJBLC.js → OQF3PZAV.js} +3 -3
  223. package/dist/cdn/{GAYYLVCV.js → OTXXGUOE.js} +2 -2
  224. package/dist/cdn/{2NEXO4CL.js → PD3YZ7ZC.js} +2 -2
  225. package/dist/cdn/{OWPOIGI3.js → PD5P6RHL.js} +2 -2
  226. package/dist/cdn/{KW7MDDY3.js → PEOJQHTO.js} +1 -1
  227. package/dist/cdn/{YYS3KCN2.js → PGJVADNQ.js} +2 -2
  228. package/dist/cdn/{JE6G7YCF.js → PIUQ5LMJ.js} +2 -2
  229. package/dist/cdn/{U3YMG7NH.js → PP2BY544.js} +2 -2
  230. package/dist/cdn/{3SZTNCCQ.js → PSDCQKCH.js} +2 -2
  231. package/dist/cdn/{VYETQ5OQ.js → PTLTCZI4.js} +2 -2
  232. package/dist/cdn/{6BYQHGKG.js → PWLKYE5P.js} +2 -2
  233. package/dist/cdn/{27I2DU2C.js → PZ7RGXSK.js} +2 -2
  234. package/dist/cdn/{OWNKZH3J.js → PZIFPW3P.js} +2 -2
  235. package/dist/cdn/{RKIYQIND.js → PZLHAJTW.js} +2 -2
  236. package/dist/cdn/{Q25NUDBB.js → Q2QCS4J2.js} +2 -2
  237. package/dist/cdn/{4DHQUG3W.js → Q2RUM7UN.js} +2 -2
  238. package/dist/cdn/{PHDYMI4U.js → Q5J5XNAP.js} +2 -2
  239. package/dist/cdn/{BZ2BCVFJ.js → QAXTCQ2U.js} +2 -2
  240. package/dist/cdn/{OZP2AS5I.js → QCJZFBZQ.js} +2 -2
  241. package/dist/cdn/{IXHQQUJE.js → QF64CVJ5.js} +2 -2
  242. package/dist/cdn/{KTWF7YEW.js → QG6QJLC4.js} +2 -2
  243. package/dist/cdn/{NSBCSLHQ.js → QGJJKXZ7.js} +2 -2
  244. package/dist/cdn/{4Z3GVHCU.js → QM3ILXY3.js} +2 -2
  245. package/dist/cdn/{BMZSYER5.js → QNRYJM3B.js} +1 -1
  246. package/dist/cdn/{67YBSQOW.js → QPXISNSE.js} +2 -2
  247. package/dist/cdn/{BH44LJSG.js → QXFNX2NB.js} +2 -2
  248. package/dist/cdn/{H3D27G4Z.js → RAP3WBHW.js} +2 -2
  249. package/dist/cdn/{TYRLD7J2.js → REIHKE4M.js} +2 -2
  250. package/dist/cdn/{LDLY6XKA.js → RRUGRUVI.js} +2 -2
  251. package/dist/cdn/{TDYZLGUB.js → RTOP6BXN.js} +2 -2
  252. package/dist/cdn/{EYYXEXIY.js → RYZD436N.js} +2 -2
  253. package/dist/cdn/{M7P2ZTLV.js → S2DMLXK2.js} +2 -2
  254. package/dist/cdn/S4PLZNT3.js +18 -0
  255. package/dist/cdn/{EMDJVLHN.js → SFMJHS2P.js} +2 -2
  256. package/dist/cdn/{B6MXVUM7.js → SFUF6JRQ.js} +2 -2
  257. package/dist/cdn/SGSJNZRS.js +4 -0
  258. package/dist/cdn/{Y2HBFVM4.js → SIY7FRU2.js} +2 -2
  259. package/dist/cdn/{Q253POJJ.js → SLK6RJZ6.js} +1 -1
  260. package/dist/cdn/SLMOR34E.js +18 -0
  261. package/dist/cdn/{YK3CVDW7.js → SMC7MDBC.js} +2 -2
  262. package/dist/cdn/{7SYXERJO.js → SMDGUFAX.js} +1 -1
  263. package/dist/cdn/{5D6QFA7E.js → SML6VAVH.js} +2 -2
  264. package/dist/cdn/{7XLXELEX.js → SO57WMZT.js} +2 -2
  265. package/dist/cdn/{INIUEMX5.js → SQGDT3MI.js} +2 -2
  266. package/dist/cdn/{WTGX35K4.js → SVGQ6RRF.js} +2 -2
  267. package/dist/cdn/{ZDRTTMHR.js → SVKVDVSA.js} +2 -2
  268. package/dist/cdn/{WAOQ3JCJ.js → SWYEHTYD.js} +2 -2
  269. package/dist/cdn/{OVB6WWYJ.js → SYLD7AOJ.js} +2 -2
  270. package/dist/cdn/{N6FSCHMI.js → T24OWJ2D.js} +2 -2
  271. package/dist/cdn/{K743ADKQ.js → T6URJ7UY.js} +2 -2
  272. package/dist/cdn/{H7LI4JLZ.js → T7ZYB7QK.js} +1 -1
  273. package/dist/cdn/{G5TP26AI.js → THGYUWHS.js} +2 -2
  274. package/dist/cdn/{CNYLCR6J.js → TJYDXN5N.js} +2 -2
  275. package/dist/cdn/{TX7XEQOI.js → TKJ3SF4I.js} +1 -1
  276. package/dist/cdn/{PUCYFTMU.js → TLK5UCOJ.js} +2 -2
  277. package/dist/cdn/{OYR5JAG3.js → TMXC3CNK.js} +3 -3
  278. package/dist/cdn/{DEHAUXXO.js → TNHDJIYU.js} +2 -2
  279. package/dist/cdn/{SDATDAKA.js → TP6TK5QG.js} +2 -2
  280. package/dist/cdn/{FC7SCLY3.js → U2MFSKGL.js} +2 -2
  281. package/dist/cdn/{IEGO27TP.js → UCZH23H5.js} +2 -2
  282. package/dist/cdn/{Z6DZIVF7.js → UH35QWCX.js} +2 -2
  283. package/dist/cdn/{77F3Y4SZ.js → UHI3J3HW.js} +2 -2
  284. package/dist/cdn/{OVDOY2TB.js → UIOO7RGA.js} +2 -2
  285. package/dist/cdn/{27JI2VQ2.js → UIQXA63E.js} +2 -2
  286. package/dist/cdn/{64KLEAWB.js → UL7RSTG3.js} +2 -2
  287. package/dist/cdn/{6PK752UJ.js → UPA6H3UK.js} +2 -2
  288. package/dist/cdn/{E5356ZMA.js → UQY7HMMM.js} +2 -2
  289. package/dist/cdn/US2R7MQA.js +63 -0
  290. package/dist/cdn/{VHJXFNTB.js → UWJAFW32.js} +2 -2
  291. package/dist/cdn/{YYLWNW2V.js → V24FB5XD.js} +2 -2
  292. package/dist/cdn/{CFSE4FBZ.js → V4XH652F.js} +2 -2
  293. package/dist/cdn/{X7S4K6O4.js → V5H4AUIH.js} +2 -2
  294. package/dist/cdn/{7RXY54AE.js → VBUG7NUZ.js} +2 -2
  295. package/dist/cdn/{ZASSV5QG.js → VEFMWNVR.js} +2 -2
  296. package/dist/cdn/{RHH5VDPN.js → VGW3E33G.js} +2 -2
  297. package/dist/cdn/{U62Y6WZO.js → VHMETX5C.js} +2 -2
  298. package/dist/cdn/{R4LWV66S.js → VNJMC7H7.js} +2 -2
  299. package/dist/cdn/{6HZDA6VL.js → VOI26VZU.js} +2 -2
  300. package/dist/cdn/{KUPVTR4P.js → VSGIKV5X.js} +2 -2
  301. package/dist/cdn/{F4YER46Y.js → VTAI23DN.js} +2 -2
  302. package/dist/cdn/{S3UOX3S5.js → VU7CLW5T.js} +2 -2
  303. package/dist/cdn/{KQIP55UX.js → VUA6EP7Q.js} +2 -2
  304. package/dist/cdn/{NAEHM6JI.js → VZO4BIVY.js} +2 -2
  305. package/dist/cdn/{IIDHHI6H.js → W2YFZYV5.js} +2 -2
  306. package/dist/cdn/{K74PB5FR.js → WC3Z4EDF.js} +1 -1
  307. package/dist/cdn/{FRWCYHC7.js → WGCXCMFS.js} +2 -2
  308. package/dist/cdn/{MDIV2FIJ.js → WMMQCH4Z.js} +2 -2
  309. package/dist/cdn/WR37QCTD.js +4 -0
  310. package/dist/cdn/{L5VACHLZ.js → WR3I7AM2.js} +2 -2
  311. package/dist/cdn/{XQYMKMCD.js → WVRENFYB.js} +2 -2
  312. package/dist/cdn/{2AXIORVV.js → X3W3VZ6Q.js} +1 -1
  313. package/dist/cdn/{MOSTA2DP.js → X7MBI4XC.js} +1 -1
  314. package/dist/cdn/{5EVX3HTC.js → XCXTGRF4.js} +2 -2
  315. package/dist/cdn/{W5LN2VYT.js → XFF62RTG.js} +2 -2
  316. package/dist/cdn/{KISPGYCP.js → XFLIYFY3.js} +2 -2
  317. package/dist/cdn/{QBVRFM7C.js → XK6TMGUD.js} +2 -2
  318. package/dist/cdn/{WTZ5V3MZ.js → XLBG2RJT.js} +2 -2
  319. package/dist/cdn/XNA6WRSK.js +4 -0
  320. package/dist/cdn/{MPNGG3EB.js → XRRTWRCI.js} +2 -2
  321. package/dist/cdn/{JKJ2E3QC.js → XSELGOTY.js} +2 -2
  322. package/dist/cdn/{Y3TZCUDN.js → XWM3XGZT.js} +2 -2
  323. package/dist/cdn/{AOB5K76I.js → XYYHWXEE.js} +2 -2
  324. package/dist/cdn/{JLFUNC3I.js → Y3GNKHWX.js} +2 -2
  325. package/dist/cdn/Y755NJQD.js +18 -0
  326. package/dist/cdn/{32KLJCZ5.js → YCZQXPZS.js} +2 -2
  327. package/dist/cdn/{DMLSWP4B.js → YEUCZM52.js} +2 -2
  328. package/dist/cdn/{PCJDMYM4.js → YG53B4I2.js} +2 -2
  329. package/dist/cdn/YLCN5LJA.js +6 -0
  330. package/dist/cdn/{XTSZRRWZ.js → YN5RGMUY.js} +2 -2
  331. package/dist/cdn/YNJMZX3I.js +18 -0
  332. package/dist/cdn/{PB5W7EYR.js → YVVDUMNS.js} +2 -2
  333. package/dist/cdn/{IVMQMFER.js → YWNRR2PJ.js} +2 -2
  334. package/dist/cdn/{KQWVAVJY.js → Z2FCSBUU.js} +2 -2
  335. package/dist/cdn/Z2SGK7LL.js +4 -0
  336. package/dist/cdn/{4WWV5LXT.js → Z3WPTT5X.js} +2 -2
  337. package/dist/cdn/{M35BYI7Y.js → Z4ZF2BDG.js} +2 -2
  338. package/dist/cdn/{R45VY7IL.js → ZCSEKMUG.js} +2 -2
  339. package/dist/cdn/{MR4CUJA5.js → ZDD7KPSE.js} +2 -2
  340. package/dist/cdn/{VC3WICDQ.js → ZGZ2DUJK.js} +2 -2
  341. package/dist/cdn/{LZ5XRNJU.js → ZQJ3I7NF.js} +2 -2
  342. package/dist/cdn/{XUTQASNK.js → ZTH6BNEM.js} +2 -2
  343. package/dist/cdn/ZUGHV55K.js +18 -0
  344. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -0
  345. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -0
  346. package/dist/cdn/index.js +2 -2
  347. package/dist/cdn/main.css +1 -1
  348. package/dist/chunks/Auth.js +1 -1
  349. package/dist/chunks/CardsFetcher.js +1 -1
  350. package/dist/chunks/appConfig.js +1 -1
  351. package/dist/chunks/cardFetchingUtils.js +1 -1
  352. package/dist/chunks/cardsHelpers.js +1 -1
  353. package/dist/chunks/common.js +1 -1
  354. package/dist/chunks/deployAppContexts.js +1 -1
  355. package/dist/chunks/downloadUtils.js +1 -1
  356. package/dist/chunks/getItemIcon.js +1 -1
  357. package/dist/chunks/helpers.js +1 -1
  358. package/dist/chunks/interfaces.js +3 -3
  359. package/dist/chunks/loadModules.js +1 -1
  360. package/dist/chunks/mapViewUtils.js +1 -1
  361. package/dist/chunks/pciUtils.js +1 -1
  362. package/dist/chunks/popupUtils.js +1 -1
  363. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  364. package/dist/chunks/privilegeUtils.js +1 -1
  365. package/dist/chunks/publicNotificationContext.js +1 -1
  366. package/dist/chunks/queryUtils.js +1 -1
  367. package/dist/chunks/runtime.js +1 -1
  368. package/dist/chunks/solution-store.js +1 -1
  369. package/dist/chunks/templates.js +1 -1
  370. package/dist/chunks/useT9n.js +1 -1
  371. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +7 -5
  372. package/dist/components/arcgis-solutions-assistant/customElement.js +1225 -137
  373. package/dist/components/arcgis-solutions-assistant/index.d.ts +1 -1
  374. package/dist/components/arcgis-solutions-assistant/index.js +1 -1
  375. package/dist/components/basemap-gallery/customElement.js +1 -1
  376. package/dist/components/buffer-tools/customElement.js +1 -1
  377. package/dist/components/card-manager/customElement.js +1 -1
  378. package/dist/components/consent-manager/customElement.js +1 -1
  379. package/dist/components/create-feature/customElement.js +1 -1
  380. package/dist/components/create-related-feature/customElement.js +1 -1
  381. package/dist/components/crowdsource-manager/customElement.js +1 -1
  382. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  383. package/dist/components/deduct-calculator/customElement.js +1 -1
  384. package/dist/components/delete-button/customElement.js +1 -1
  385. package/dist/components/delete-dialog/customElement.js +1 -1
  386. package/dist/components/edit-card/customElement.js +1 -1
  387. package/dist/components/feature-details/customElement.js +1 -1
  388. package/dist/components/feature-list/customElement.js +1 -1
  389. package/dist/components/field-selection/customElement.js +1 -1
  390. package/dist/components/floor-filter/customElement.js +1 -1
  391. package/dist/components/info-card/customElement.js +1 -1
  392. package/dist/components/json-editor/customElement.js +1 -1
  393. package/dist/components/layer-list/customElement.js +1 -1
  394. package/dist/components/layer-table/customElement.js +1 -1
  395. package/dist/components/map-card/customElement.js +1 -1
  396. package/dist/components/map-draw-tools/customElement.js +1 -1
  397. package/dist/components/map-fullscreen/customElement.js +1 -1
  398. package/dist/components/map-layer-picker/customElement.js +1 -1
  399. package/dist/components/map-legend/customElement.js +1 -1
  400. package/dist/components/map-picker/customElement.js +1 -1
  401. package/dist/components/map-search/customElement.js +1 -1
  402. package/dist/components/map-select-tools/customElement.js +1 -1
  403. package/dist/components/map-tools/customElement.js +1 -1
  404. package/dist/components/pci-calculator/customElement.js +1 -1
  405. package/dist/components/pdf-download/customElement.js +1 -1
  406. package/dist/components/public-notification/customElement.js +1 -1
  407. package/dist/components/refine-selection/customElement.js +1 -1
  408. package/dist/components/selection-tool/customElement.js +1 -1
  409. package/dist/components/solution-configuration/customElement.js +1 -1
  410. package/dist/components/solution-configure-titles/customElement.js +1 -1
  411. package/dist/components/solution-contents/customElement.js +1 -1
  412. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  413. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  414. package/dist/components/solution-deployed-card/customElement.d.ts +4 -5
  415. package/dist/components/solution-deployed-card/customElement.js +35 -34
  416. package/dist/components/solution-deployed-card/index.d.ts +0 -1
  417. package/dist/components/solution-deployed-card/index.js +0 -1
  418. package/dist/components/{solution-configure-dialog → solution-deployed-card-panel}/customElement.d.ts +13 -3
  419. package/dist/components/solution-deployed-card-panel/customElement.js +101 -0
  420. package/dist/components/solution-deployed-card-panel/index.d.ts +15 -0
  421. package/dist/components/solution-deployed-card-panel/index.js +15 -0
  422. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  423. package/dist/components/solution-details-card/customElement.js +1 -1
  424. package/dist/components/solution-details-panel/customElement.js +22 -19
  425. package/dist/components/solution-item/customElement.js +1 -1
  426. package/dist/components/solution-item-accordion/customElement.js +1 -1
  427. package/dist/components/solution-item-details/customElement.js +1 -1
  428. package/dist/components/solution-item-diagram/customElement.js +1 -1
  429. package/dist/components/solution-item-icon/customElement.js +1 -1
  430. package/dist/components/solution-item-sharing/customElement.js +1 -1
  431. package/dist/components/solution-organization-variables/customElement.js +1 -1
  432. package/dist/components/solution-resource-card/customElement.js +1 -1
  433. package/dist/components/solution-resource-item/customElement.js +1 -1
  434. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  435. package/dist/components/solution-social-share/customElement.js +1 -1
  436. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  437. package/dist/components/solution-template-data/customElement.js +1 -1
  438. package/dist/components/solution-variables/customElement.js +1 -1
  439. package/dist/components/solutions-all-panel/customElement.js +10 -10
  440. package/dist/components/solutions-all-panel/index.d.ts +1 -1
  441. package/dist/components/solutions-all-panel/index.js +1 -1
  442. package/dist/components/solutions-all-shell/customElement.js +2 -2
  443. package/dist/components/solutions-deploy-app/customElement.d.ts +2 -1
  444. package/dist/components/solutions-deploy-app/customElement.js +41 -34
  445. package/dist/components/solutions-deploy-app/index.d.ts +1 -0
  446. package/dist/components/solutions-deploy-app/index.js +1 -0
  447. package/dist/components/solutions-deploy-app-nav/customElement.d.ts +2 -2
  448. package/dist/components/solutions-deploy-app-nav/customElement.js +3 -3
  449. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  450. package/dist/components/solutions-deployed-panel/customElement.js +34 -35
  451. package/dist/components/solutions-deployed-shell/customElement.js +8 -8
  452. package/dist/components/solutions-filter-panel/customElement.js +28 -28
  453. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  454. package/dist/components/solutions-resources/customElement.js +18 -32
  455. package/dist/components/solutions-resources-shell/customElement.js +11 -11
  456. package/dist/components/solutions-searchsort-toolbar/customElement.js +7 -5
  457. package/dist/components/spatial-ref/customElement.js +1 -1
  458. package/dist/components/store-manager/customElement.js +1 -1
  459. package/dist/docs/api.json +433 -377
  460. package/dist/docs/docs.json +306 -237
  461. package/dist/docs/vscode.html-custom-data.json +29 -24
  462. package/dist/docs/web-types.json +134 -86
  463. package/dist/index.d.ts +36 -19
  464. package/dist/index.js +1 -1
  465. package/dist/loader.js +3 -3
  466. package/dist/types/lumina.d.ts +11 -7
  467. package/dist/types/preact.d.ts +12 -8
  468. package/dist/types/preact10.d.ts +13 -9
  469. package/dist/types/react.d.ts +13 -9
  470. package/dist/types/stencil.d.ts +11 -7
  471. package/dist/utils/interfaces.d.ts +26 -22
  472. package/package.json +2 -2
  473. package/dist/cdn/2JNJ6NTC.js +0 -18
  474. package/dist/cdn/4GUQBFYH.js +0 -18
  475. package/dist/cdn/5BPJLXIU.js +0 -4
  476. package/dist/cdn/5LY5OONV.js +0 -18
  477. package/dist/cdn/5OZ5KLPF.js +0 -18
  478. package/dist/cdn/6CH6MP7M.js +0 -18
  479. package/dist/cdn/6OXM73V7.js +0 -4
  480. package/dist/cdn/7WEJILVE.js +0 -4
  481. package/dist/cdn/AKYVL4SJ.js +0 -18
  482. package/dist/cdn/CWUQXXM2.js +0 -4
  483. package/dist/cdn/FQUI4DDD.js +0 -4
  484. package/dist/cdn/IJBIJEFV.js +0 -18
  485. package/dist/cdn/IRZ5Q6P6.js +0 -20
  486. package/dist/cdn/JQONUFIG.js +0 -18
  487. package/dist/cdn/MR7TKHWW.js +0 -18
  488. package/dist/cdn/NZLIU3NZ.js +0 -18
  489. package/dist/cdn/QWXBFNTX.js +0 -4
  490. package/dist/cdn/RXTPHD3N.js +0 -4
  491. package/dist/cdn/SIV3TXNM.js +0 -18
  492. package/dist/cdn/VDCKQGGM.js +0 -4
  493. package/dist/cdn/VNZX5NLF.js +0 -4
  494. package/dist/cdn/X73PGIQR.js +0 -18
  495. package/dist/cdn/Y4NZE64P.js +0 -4
  496. package/dist/cdn/Y4RGBYW4.js +0 -6
  497. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +0 -1
  498. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +0 -1
  499. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +0 -1
  500. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +0 -1
  501. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +0 -1
  502. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +0 -1
  503. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +0 -1
  504. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +0 -1
  505. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +0 -1
  506. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +0 -1
  507. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +0 -1
  508. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +0 -1
  509. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +0 -1
  510. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +0 -1
  511. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +0 -1
  512. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +0 -1
  513. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +0 -1
  514. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +0 -1
  515. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +0 -1
  516. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +0 -1
  517. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +0 -1
  518. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +0 -1
  519. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +0 -1
  520. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +0 -1
  521. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +0 -1
  522. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +0 -1
  523. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +0 -1
  524. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +0 -1
  525. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +0 -1
  526. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +0 -1
  527. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +0 -1
  528. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +0 -1
  529. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +0 -1
  530. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +0 -1
  531. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +0 -1
  532. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +0 -1
  533. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +0 -1
  534. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +0 -1
  535. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +0 -1
  536. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +0 -1
  537. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +0 -1
  538. package/dist/components/solution-configure-dialog/customElement.js +0 -131
  539. package/dist/components/solution-configure-dialog/index.d.ts +0 -13
  540. package/dist/components/solution-configure-dialog/index.js +0 -13
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{c as m}from"./PNZWOZIO.js";import{b as g}from"./A437YTBB.js";import{a as u}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as p}from"./JKJ2E3QC.js";import{C as s,E as h,h as c,i as t,o as d}from"./BT3PZ755.js";import"./Q253POJJ.js";var b=c`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.minor-card{width:16%}.center{justify-content:center;align-items:center}.align-self-center{align-self:center}.font-weight-semibold{font-weight:var(--calcite-font-weight-semibold)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.font-weight-normal{font-weight:var(--calcite-font-weight-normal)}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.no-space{--calcite-label-margin-bottom: 0px}.font-color{color:red}.padding-end-1-2{padding-inline-end:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.edit-button-position{position:absolute;right:1rem}html[dir=rtl] .edit-button-position{position:absolute;left:1rem}.max-width-35{max-width:35vw}.large-card{width:49%}.btn-center{width:100%;display:grid;place-items:center}.width-full{width:100%}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.width-400{width:400px}.width-450{width:450px}.padding-3-4{padding:.75rem}.margin-0{margin:0}.calcite-internal-dialog-content-padding-override{--calcite-internal-dialog-content-padding: 0px}.background-color-2{background-color:var(--calcite-color-foreground-2)}.card-group-padding,.solution-content-padding{padding:1rem}@media(max-width:1240px){.large-card{width:48%}}.error-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.button-flex{display:flex;flex-wrap:wrap}.label-override{--calcite-label-margin-bottom: 0px}.icon-size-override{height:48px;width:48px}`,l=165,o=class extends h{constructor(){super(...arguments),this.open=!1,this.showSuccessAlert=!1,this.templateInfos=[],this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._displayClass="",this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._translations=u({name:"solution-configure-dialog",blocking:!0}),this._authContextConsumer=g({context:m,subscribe:!0}),this._editSummaryPopoverRef=s(),this._editNamePopoverRef=s(),this._solutionSnippetUpdated=!1,this._solutionTitleUpdated=!1,this.solutionConfigureDialogClose=d()}static{this.properties={card:0,cardRef:1,open:5,showSuccessAlert:5,templateInfos:0,_configureTitlesOpen:16,_deleteDialogOpen:16,_displayClass:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,_translations:16}}static{this.styles=b}updated(e){if(e.has("open")){let i=e.get("open");this.open&&!i&&this.cardRef.getTemplates().then(a=>{this.templateInfos=a})}}render(){return t`<div>${this.templateInfos.length>0&&t`<calcite-dialog class=${`${this._displayClass} calcite-internal-dialog-content-padding-override`} .heading=${this.card?.title} modal @calciteDialogClose=${()=>{this.open=!1,this.solutionConfigureDialogClose.emit(this._solutionSnippetUpdated||this._solutionTitleUpdated),this._cleanupPanel(),this.card=void 0,this.templateInfos=[],this.showSuccessAlert=!1}} .open=${this.open} outside-close-disabled width=l><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row card-group-padding background-color-2"><calcite-card-group .label=${this._translations.reviewAndConfigureSolution}>${this._getStartHereCard()}${this._getDiagramCard()}${this._getSolutionCard()}${this._getSolutionVersionCard()}</calcite-card-group></div>${this._getSolutionContents()}</div><div slot=footer-start></div><calcite-button appearance=outline @click=${this._close} slot=footer-end>${this._translations.closeTheDialog}</calcite-button><div slot=alerts>${this._getSuccessAlert()}${this._getFailedAlert()}</div></calcite-dialog>`||""}${this.templateInfos.length>0&&this._getConfigureTitlesDialog()||""}${this.templateInfos.length>0&&this._getDeleteDialog()||""}</div>`}_getConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._displayClass="",this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this.cardRef.getTemplates()}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_getFailedAlert(){let e=this._failedType==="snippet"?this._translations.failedToUpdateSnippet:this._failedType==="title"?this._translations.failedToUpdateTitle:this._failedType==="titles"?this._translations.failedToUpdateTitles:void 0;return this._showFailedAlert&&e?t`<calcite-alert auto-close icon=exclamation-mark-triangle kind=danger .label=${e} @calciteAlertClose=${()=>{this._showFailedAlert=!1}} .open=${this._showFailedAlert}><div slot=message>${e}</div></calcite-alert>`:""}_getSuccessAlert(){return this.showSuccessAlert?t`<calcite-alert auto-close icon=check-circle kind=success .label=${this.card?.title||""} @calciteAlertClose=${()=>{this.showSuccessAlert=!1}} .open=${this.showSuccessAlert}><div slot=message>${this._translations.deploySuccessAlert.replace("{{solutionTitle}}",this.card?.title||"")}</div></calcite-alert>`:""}_getDiagramCard(){return this._getBasicCard(this._translations.diagramOfTheSolution,this._translations.diagramSubText,"model",this._translations.viewTheDiagram,"outline",this._openDiagram,void 0)}async _openDiagram(e){this._displayClass="display-none";let i=await this.cardRef.renderDiagramDialog(e);i&&this.listenOn(i,"calciteDialogBeforeClose",()=>{this._displayClass=""})}_getStartHereCard(){return this._getBasicCard(this._translations.solutionDocumentation,this._translations.docSubText,"file-text",this._translations.openInNewTab,"solid",this._learnMore)}_learnMore(){window.open(this.card.learnMoreUrl,"_blank")}_getSolutionVersionCard(){return this._getBasicCard(this._translations.solutionVersion,"","check-shield",void 0,void 0,void 0,this.card?.deployVersion??"")}_getBasicCard(e,i,a,n,f,_,r){return t`<calcite-card class="minor-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${e}</calcite-label><div class="display-flex center"><div class="display-flex flex-direction-column center"><calcite-icon class="icon-color icon-size-override" .icon=${a} scale=l></calcite-icon>${r?t`<span class="font-weight-medium">${r}</span>`:""}<p class="font-weight-medium">${i}</p></div></div>${n?t`<div class="btn-center" slot=footer-start><calcite-button .appearance=${f} kind=brand @click=${_}>${n}</calcite-button></div>`:""}</calcite-card>`}_getSolutionCard(){let e="configure-show-full-summary",i=this.card?.snippet,a="";return this.card?.snippet&&this.card?.snippet.length>l&&(i=this.card?.snippet.substring(0,l)+"... ",a=t`<calcite-link id=${e}>${this._translations.showMoreSummary}</calcite-link>`),t`<calcite-card class="large-card font-size-override"><calcite-label class="font-weight-medium label-override" layout=inline scale=l slot=heading>${this._translations.aboutYourSolution}</calcite-label><div class="display-flex flex-direction-column"><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionName}</calcite-label><span class="font-weight-medium width-full align-self-start">${this.card?.title}</span></div><div class="display-flex align-items-start padding-bottom-1-2"><calcite-label class="font-weight-medium no-space padding-end-1-2" layout=inline>${this._translations.aboutYourSolutionSummary}</calcite-label><span class="font-weight-medium width-full align-self-center">${i}${a}</span></div><div class="display-flex"><calcite-label class="font-weight-medium no-space padding-end-1" layout=inline>${this._translations.aboutYourSolutionOwner}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.card?.owner}</calcite-link></calcite-label><div class="display-flex"><calcite-label class="no-space icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this.card?.created}</calcite-label></div></div></div><div slot=footer-start class="button-flex"><calcite-button appearance=outline class="padding-end-1" icon-end=launch kind=brand @click=${this._showItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline icon-start=trash kind=brand @click=${this._deleteSolution} slot=footer-end>${this._translations.deleteSolution}</calcite-button></div>${this.card?.snippet&&this.card?.snippet.length>l&&this._getSummaryPopover(e)||""}</calcite-card>`}_getSolutionContents(){return t`<div class="solution-content-padding"><calcite-label class="font-weight-medium" layout=inline scale=l>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}<calcite-button appearance=transparent icon-start=edit-attributes kind=brand @click=${()=>{this._configureTitlesOpen=!0,this._displayClass="display-none"}}>${this._translations.updateTitles}</calcite-button></calcite-label><solution-item-accordion list-selection-mode=single .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div>`}_getDeleteDialog(){return this._deleteDialogOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleted=${this._close} @solutionDeleteDialogBeforeClose=${()=>{this._displayClass="",this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen}></solution-delete-dialog>`:""}async _deleteSolution(){this._displayClass="display-none",this._deleteDialogOpen=!0}_showItemDetails(){window.open(this.card.itemUrl,"_blank")}_openUserProfile(e){e.stopPropagation();let i=this._authContextConsumer.value?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html`,"_blank")}_getSummaryPopover(e){return t`<calcite-popover closable heading label overlay-positioning=fixed .referenceElement=${e}><div class="padding-3-4 margin-0 width-400">${this.card?.snippet}</div></calcite-popover>`}_close(){this.open=!1}_cleanupPanel(){this._editSummaryPopoverRef.value?.open&&(this._editSummaryPopoverRef.value.open=!1),this._editNamePopoverRef.value?.open&&(this._editNamePopoverRef.value.open=!1)}};p("solution-configure-dialog",o);export{o as SolutionConfigureDialog};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import k from"./5M3POXXX.js";import j from"./4FALCKMG.js";import e from"./OVEIHKZZ.js";import{b as w}from"./LLKMGYSP.js";import{a as y,c as f,d as C}from"./PNZWOZIO.js";import b from"./HHCUJ2TU.js";import{b as i}from"./A437YTBB.js";import"./Y4RGBYW4.js";import"./YYLWNW2V.js";import"./EW33PWBK.js";import"./E7X4JPJZ.js";import"./6MQTHJAJ.js";import"./FB7AKBYZ.js";import"./2AXIORVV.js";import"./SCHYFVMA.js";import"./2PQ2DS43.js";import"./RFLPQTHR.js";import"./J4PD5ZQ7.js";import"./6KL3NJRR.js";import"./HCGGITXI.js";import"./ACRHJFIK.js";import"./GZ4MUQVE.js";import"./3XM3G7I5.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import"./MOSTA2DP.js";import{m as g,o}from"./32CJQFYT.js";import{a as m}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as u}from"./JKJ2E3QC.js";import{D as p,E as _,G as r,h,i as s,j as c,l as d,o as a}from"./BT3PZ755.js";import"./Q253POJJ.js";export default $arcgis.t(([,,n,x])=>{var S=h`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-foreground-2)}.card-group{overflow:hidden;padding-inline-start:var(--calcite-spacing-base);padding-top:var(--calcite-spacing-base)}.solutions-briefcase{margin:auto;padding-top:var(--calcite-spacing-xxxl)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}h1{font-weight:unset;margin:0;padding:0}`,v=5,l=class extends _{constructor(){super(),this.sortType="created",this._cards=[],this._cardsFetching=!1,this._modifiedCheckTry=0,this._newId="",this._refs={},this._showDeleteCompleteAlert=!1,this._translations=m({name:"solutions-deployed-panel",blocking:!0}),this._agoTerms=o,this._allCards=[],this._authContextConsumer=i({context:f,subscribe:!0}),this._baseAgoTerms=o,this._categories=[],this._configContextConsumer=i({context:C,subscribe:!0,callback:async e=>{e&&(this._initCardsFetchers(),this._isOrgAdmin=w(this._authContextConsumer.value),await this._getDeployedSolutions())}}),this._delay=!1,this._isOrgAdmin=!1,this._owner=g.OWNER,this._sortField="created",this._sortOrder="desc",this._userSessionContextConsumer=i({context:y,subscribe:!0}),this.deployedCardsFetched=a(),this.searchTermSet=a(),this.listenOn(window,"solutionDeleted",e=>{this._modifiedCheckTry=v,this.reload(e.detail.showAlert,e.detail.refreshSolutionsTimeout)}),this.listenOn(window,"solutionConfigureDialogClose",e=>{e.detail&&this.reload(!1,!1)}),this.listenOn(window,"deployProgressEnd",e=>{this._modifiedCheckTry=v,this._refresh(e)}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="deployments"&&(this.sortType=e.detail.sortType,this.searchSolutions(e.detail))}),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="deployments"&&this.searchSolutions(e.detail.option)})}static{this.properties={sortType:1,_cards:16,_cardsFetching:16,_modifiedCheckTry:16,_newId:16,_refs:16,_showDeleteCompleteAlert:16,_translations:16}}static{this.styles=S}async reload(e=!0,t=!0){this._initCardsFetchers(),e&&(this._showDeleteCompleteAlert=!0),t?setTimeout(()=>{(async()=>{try{await this._getDeployedSolutions()}catch(T){console.error("Error getting deployed solutions:",T)}})()},500):await this._getDeployedSolutions()}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):e.type==="owner"&&(this._owner=e.value):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),await this._getDeployedSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"deployments"})),"sortType"in e&&this._sortCards(e))}render(){let e=this._cardsFetching?"":"display-none",t=this._cardsFetching?"display-none":"";return s`<h1><calcite-loader class=${r(e)} .label=${this._translations.fetchingDeployedSolutions}></calcite-loader><calcite-panel class=${r(t)}><calcite-card-group class="card-group" .label=${this._translations.allDeployed}>${this._renderCards()}</calcite-card-group><calcite-alert auto-close auto-close-duration=fast icon=check-circle kind=success .label=${this._translations.deleteComplete} .open=${this._showDeleteCompleteAlert} @calciteAlertClose=${()=>{this._showDeleteCompleteAlert=!1}}><div slot=title>${this._translations.deleteComplete}</div></calcite-alert></calcite-panel></h1>`}updated(e){e.has("_refs")&&this._newId&&Object.keys(this._refs).indexOf(this._newId)>-1&&(this._refs[this._newId].renderConfigureDialog(!0),this._newId="")}_initCardsFetchers(){if(this._configContextConsumer.value){let e=this._configContextConsumer.value;this._cardsFetcher=new n(e.locale,e.orgUrl,e.portalUrl),this._cardsFetcherDeployed=new n(e.locale,e.orgUrl,e.portalUrl)}}_renderCards(){return this._cards.length?(this._refs={},this._cards.map(e=>s`<solution-deployed-card .allowDelete=${this._isOrgAdmin||e.owner===this._userSessionContextConsumer.value.username||this.checkDeletePermissions()} .card=${e} .deployedDate=${e.created} .description=${e.snippet} .diagramKey=${this._configContextConsumer.value?.diagramKey} .heading=${e.title} id=${e.id??d} .itemId=${e.id} .owner=${e.owner} .thumbnail=${e.thumbnailUrl} ${p(this._handleRefs)}></solution-deployed-card>`)):s`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1 display-flex flex-direction-column"><span>${this._translations.noSolutionsYet}</span><span>${this._translations.noSolutionsInstruction}</span></div></div>`}_handleRefs(e){e&&(this._refs[e.id]=e)}async _getDeployedSolutions(){let e=this._authContextConsumer.value||this._configContextConsumer.value?.authentication;if(e.IsSignedIn){this._cardsFetching=!0;let t=await x(e,this._userSessionContextConsumer.value||this._configContextConsumer.value?.userSession,this._cardsFetcher,this._cardsFetcherDeployed,this._agoTerms,this._sortField,this._sortOrder,this._delay,this._categories,this._allCards,this._owner);this._modifiedCheckTry>0&&(this._cards.length===t?.cards.length?(this._modifiedCheckTry--,this._getDeployedSolutions()):this._modifiedCheckTry=0),this._cards=t?.cards??[],this.deployedCardsFetched.emit(this._cards.length),this._cardsFetching=!1}}_getSolutionsBriefcase(){return s`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${c`<path d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" fill=#ccc /><path d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):(t==="updated"||t==="created")&&(this._sortOrder="desc",this._sortField=t),this.sortType=t}_clearFilterCategories(){this._categories=[]}checkDeletePermissions(){let e=this._authContextConsumer.value;return e?.PortalUserPrivileges&&e.PortalUserPrivileges.length>0?e.PortalUserPrivileges.some(t=>t==="portal:admin:deleteItems"):!1}async _refresh(e){let t=e.detail;t&&(this._newId=t,await this._getDeployedSolutions())}};u("solutions-deployed-panel",l);return l},b,e,j,k)
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a,b}from"./UYXUVFKE.js";import"./7INSFWLF.js";import"./HAXUZW3B.js";import"./2DGB5L7S.js";import"./N3V7I4KP.js";import"./SFSJYGXN.js";import"./Q253POJJ.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a as $}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as w}from"./JKJ2E3QC.js";import{D as h,E as _,G as y,I as d,h as g,i as a,k as m,l as u,o as v,t as f,u as b,v as x}from"./BT3PZ755.js";import"./Q253POJJ.js";var c=class extends x{constructor(e){if(super(e),this.it=u,e.type!==f.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===u||e==null)return this._t=void 0,this.it=e;if(e===m)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};c.directiveName="unsafeHTML",c.resultType=1;var S=b(c);var I=g`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:12px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}`;var k="https://www.arcgis.com/sharing/rest/content/items/";async function T(r){return await q(r)}async function q(r){let e=k+r+"?f=json";try{let t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return await t.json()}catch(t){return{error:t.message}}}var p=class extends _{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com/",this.solutionAIurl=`${this.serverRoot}skills/solution_deployment/chat`,this.docAIurl=`${this.serverRoot}skills/doc_ai_assistant/chat`,this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._isLoading=!1,this._isLoadingText="",this.messages=[],this._translations=$({name:"arcgis-solutions-assistant",blocking:!0}),this.closeAssistant=v(),this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setMessageContainerRef=e=>{this._chatContainer=e},this._setInputRef=e=>{this._inputRef=e,this._inputRef.addEventListener("keydown",t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),this.handleSendMessage())}),setTimeout(()=>{this._inputRef?.focus()},100)},this._submitQuestion=e=>{this._inputRef&&(this._inputRef.value=e,this.handleSendMessage())},this.listenOn(window,"submitQuestion",e=>{this._submitQuestion(e.detail)})}static{this.properties={serverRoot:1,solutionAIurl:1,docAIurl:1,token:1,open:5,conversationStore:16,_isLoading:16,_isLoadingText:16,messages:16,_translations:16}}static{this.styles=I}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let t={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(t.conversationId=this.conversationStore.conversationId,this.token){let i={author:"human",inquiryId:this.conversationStore.inquiryId?this.conversationStore.inquiryId:"",message:e,render:this._renderSimpleTextMessage(e,"human")};this.messages=[...this.messages,i];let s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.loopRequest(s,this.token,this.solutionAIurl)}}else if(this.token){let i={author:"human",inquiryId:"",message:e,render:this._renderSimpleTextMessage(e,"human")};this.messages=[...this.messages,i];let s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token,this.solutionAIurl)}}async loopRequest(e,t,i){let s=e;for(this._isLoading=!0;s.hasMore;){let o={conversationId:s.conversationId,ackSequenceNumber:s.sequenceNumber,inquiryId:s.inquiryId};if(s=await this.requestAIServer(o,t,i),s.context)if(this.conversationStore.context=s.context,s.context.intent)switch(s.context.intent){case"Solution question":this.messages.push({message:s.message??"",author:"ai",inquiryId:s.inquiryId});let n={message:s.message,conversationId:o.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};s=await this.requestAIServer(n,t,this.docAIurl);break;case"Recommend solution":if(s.context.results&&s.context.results?.length>0){let l={message:s.message??"",author:"ai",inquiryId:s.inquiryId,render:this._renderSuggestedSolutions(s.message??"",s.context.results)};this.messages.push(l)}break;default:this.messages.push({author:"ai",inquiryId:s.inquiryId,message:s.message??"",render:this._renderSimpleTextMessage(s.message??"","ai")});break}else if(s.context.results)for(let n of s.context.results)n.reply!==""&&(this._isLoadingText="",this.messages.push({message:n.reply,author:"ai",inquiryId:s.inquiryId,render:this._renderDocAssistantResults(n.reply,n.ref,n.followupQuestions)}));else{this.messages.push({author:"ai",inquiryId:s.inquiryId,message:s.message??"",render:this._renderSimpleTextMessage(s.message??"","ai")});break}}this._isLoading=!1}async requestAIServer(e,t,i){try{let s=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",token:t},body:JSON.stringify(e)})).json();if(s)return s;throw new Error("No data returned")}catch(s){throw new Error(`Request failed: ${s}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.inquiryId!=="-1"){this._resetConversation();let t={author:"system",inquiryId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","speech-bubble-plus")};this.messages=[...this.messages,t],this._inputRef&&(this._inputRef.value="")}}willUpdate(e){this.messages.length===0&&this._translations.defaultStartUpMessage&&(this.messages=[{author:"ai",inquiryId:"",message:this._translations.defaultStartUpMessage,render:this._renderSimpleTextMessage(this._translations.defaultStartUpMessage,"ai")}])}updated(e){(e.size||this._isLoading)&&this._scrollToBottom()}_renderSolutionQuestionReferences(e){return e.map(t=>a`<div class="message-content-pad"><a href=${t.url??d} target=_blank>${t.title}</a></div>`)}_renderSolutionQuestionFollowup(e){return e.map(t=>a`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${t} @click=${()=>{this._submitFollowupQuestion(t)}}>${t}</calcite-chip>`)}_renderSolutionsQuestionTable(e,t,i){let s=this._renderSolutionQuestionReferences(t),o=this._renderSolutionQuestionFollowup(i);return a`<div><div slot=description class="message-content">${S(this._markdownToHTML(e))}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${n=>{let l=n.currentTarget.parentElement?.nextElementSibling;l.classList.toggle("collapsed"),n.currentTarget.setAttribute("icon-end",l.classList.contains("collapsed")?"chevron-down":"chevron-up")}}>${`${t.length} ${t.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${s}</div></div><div class="padding-top-10">${o}</div></div>`}_renderSolutionCard(e,t){return a`<a class="solution-card" id=${t??d} @click=${()=>{this._emitItemIdFromAI(t)}}>${a`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail??d} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`}_renderExistingSolutionsTable(e,t){let i=t.map(s=>{let o=s.thumbnail.match(/\/items\/([a-f0-9]+)\//);return o?this._renderSolutionCard(s,o[1]):null}).filter(s=>s!==null);return a`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${i}</div></div>`}_renderSimpleTextMessage(e,t,i){return t==="system"?a`<div class="message-content message-content-alignment">${i&&a`<calcite-icon .icon=${i}></calcite-icon>`||""}${e}</div>`:a`<calcite-card class=${y(t==="human"?"user-message":"system-message")}><div class="message-content">${e}</div></calcite-card>`}_renderDocAssistantResults(e,t,i){return a`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e,t,i)}</div></calcite-card>`}_renderSuggestedSolutions(e,t){return a`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e,t)}</div></calcite-card>`}render(){return a`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}><span class="chat-panel-heading" slot=header-content>${this._translations.solutionAssistantTitle}<calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length>1?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>`:""}<div class="chat-messages" ${h(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&a`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&a`<div class="padding-left-10">${this._isLoadingText}</div>`||""}</div></calcite-card>`||""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=2 .placeholder=${this._translations.sendMessage} value ${h(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`}_scrollToBottom(){this._chatContainer&&setTimeout(()=>{this._chatContainer&&(this._chatContainer.scrollTop=this._chatContainer.scrollHeight)},100)}_markdownToHTML(e){return e=e.replace(/###### (.*)/gu,"<h6>$1</h6>"),e=e.replace(/##### (.*)/gu,"<h5>$1</h5>"),e=e.replace(/#### (.*)/gu,"<h4>$1</h4>"),e=e.replace(/### (.*)/gu,"<h3>$1</h3>"),e=e.replace(/## (.*)/gu,"<h2>$1</h2>"),e=e.replace(/# (.*)/gu,"<h1>$1</h1>"),e=e.replace(/\*\*(.*?)\*\*/gu,"<strong>$1</strong>"),e=e.replace(/\*(.*?)\*/gu,"<em>$1</em>"),e=e.replace(/^\s*\*\s+(.*)/gmu,"<li>$1</li>"),e=e.replace(/(<li>.*<\/li>)/gu,"<ul>$1</ul>"),e=e.replace(/\[\[(\d+)\]\]\((.*?)\)/gu,'<a href="$2" target="_blank" rel="noopener noreferrer">[$1]</a>'),e=e.replace(/\n\n+/gu,"</p><p>"),e=e.replace(/^(?!<h|<ul|<li|<p>)(.*)$/gmu,"<p>$1</p>"),e}_emitItemIdFromAI(e){this._querySolutions(e).then(t=>{let i=t.typeKeywords.filter(o=>o.includes("solutionid")),s=new CustomEvent("solutionIDFromAssistant",{detail:i.length>0?i[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(s)})}_submitFollowupQuestion(e){let t=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(t)}async _querySolutions(e){let t=await T(e);if("error"in t)throw new Error(t.error);return t}};w("arcgis-solutions-assistant",p);export{p as ArcgisSolutionsAssistant};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a as F}from"./PNZWOZIO.js";import{b}from"./A437YTBB.js";import{a as h}from"./XUTQASNK.js";import{k as m}from"./32CJQFYT.js";import{a as I}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as A}from"./JKJ2E3QC.js";import{E as S,h as E,i as r,o as y}from"./BT3PZ755.js";import"./Q253POJJ.js";var N=E`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{border-color:var(--calcite-color-border-3);border-style:solid;border-width:var(--calcite-border-width-sm)}.width-full{width:100%}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1);--calcite-panel-footer-space: .5rem}.border-color{--calcite-block-border-color: transparent}`;var R={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},_=Object.keys(m).reduce((p,s)=>{let e=s;return p[e]=R[e]??[],p},{}),g=class extends S{constructor(){super(),this.hideIndustryFilter=!1,this.isAIsettingEnabled=!1,this.isAIDialogOpen=!1,this.showReset=!1,this._activeFilterSettings={categories:[]},this._translations=I({name:"solutions-filter-panel",blocking:!0}),this._userSessionContextConsumer=b({context:F,subscribe:!0}),this.applyFilter=y(),this._handleFilterRemoved=s=>{let e=s.detail;Array.isArray(e)&&(this._activeFilterSettings={...this._activeFilterSettings,categories:[...e]})},this._industryMatchName=s=>{let e=Object.keys(this._translations.industries).find(c=>c.toUpperCase()===s.replaceAll(" ","").toUpperCase());return e&&e in this._translations.industries?this._translations.industries[e]:s},this.listenOn(window,"filterRemoved",this._handleFilterRemoved),this.listenOn(window,"closeAssistant",()=>{this.isAIDialogOpen=!1})}static{this.properties={hideIndustryFilter:5,isAIsettingEnabled:5,isAIDialogOpen:5,showReset:5,_activeFilterSettings:16,_translations:16}}static{this.styles=N}changeIndustryFilter(s,e,c,d){if(s!==""||e!==""){let a=[];if(e!==""){let t=m[s];a=[{displayValue:this._industryMatchName(t),type:"industry",value:s,industry:s,domain:""},{displayValue:c,type:"domain",value:e,industry:s,domain:e}]}else a=[{displayValue:c,type:e!==""?"domain":"industry",value:e!==""?e:s,industry:s,domain:e}];this._activeFilterSettings={...this._activeFilterSettings,categories:[...a]},d&&this.applyFilter.emit(a)}else{let a={displayValue:c,type:"industry",value:s,industry:s,domain:e};this._activeFilterSettings={...this._activeFilterSettings,categories:[a]},d&&this.applyFilter.emit(a)}}clearFilters(){this.changeIndustryFilter("","",""),this.applyFilter.emit(null)}render(){return r`<calcite-panel description .heading=${this._translations.filterSolutionsBy}>${this.showReset&&r`<calcite-action icon=reset @click=${()=>{this.clearFilters()}} slot=header-actions-end .text=${this._translations.resetFilters} text-enabled></calcite-action>`||""}<calcite-block-group .label=${this._translations.filters}>${!this.hideIndustryFilter&&this.renderIndustryBlock()||""}</calcite-block-group>${this.isAIsettingEnabled&&r`<calcite-button icon-start=speech-bubbles label="Solutions Assistant" @click=${()=>{this.isAIDialogOpen=!0}} round scale=l slot=footer-start></calcite-button>`||""}${this._userSessionContextConsumer.value&&r`<arcgis-solutions-assistant .open=${this.isAIDialogOpen} .token=${this._userSessionContextConsumer.value.token}></arcgis-solutions-assistant>`||""}</calcite-panel>`}renderIndustryBlock(){let s=(t,n)=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(i=>i.industry===t&&(i.domain??"")===n),e=t=>!this._activeFilterSettings||!this._activeFilterSettings.categories?!1:this._activeFilterSettings.categories.some(n=>n.industry===t&&(n.domain??"")===""),c=(t,n)=>n.length>0&&(e(t)||this._activeFilterSettings.categories?.some(i=>i.industry===t&&!!i.domain&&n.includes(i.domain))===!0),d=(t,n)=>n.map(i=>{let l=Object.keys(this._translations.industriesDomain).find(u=>u.toUpperCase()===i.toUpperCase()),o=l&&l in this._translations.industriesDomain?this._translations.industriesDomain[l]:i;return s(t,i)?h(i,r`<calcite-tree-item .label=${o} @click=${()=>this.changeIndustryFilter(t,i,o,!0)} selected>${o}</calcite-tree-item>`):h(i,r`<calcite-tree-item .label=${o} @click=${()=>this.changeIndustryFilter(t,i,o,!0)}>${o}</calcite-tree-item>`)}),a=Object.entries(_).map(([t,n])=>{let i=this._industryMatchName(t),l=n,o=e(t),u=c(t,l);return o?h(t,r`<calcite-tree-item .label=${i} @click=${()=>this.changeIndustryFilter(t,"",i,!0)} selected .expanded=${u?!0:void 0}>${i}${l.length>0&&r`<calcite-tree slot=children selection-mode=multiple>${d(t,l)}</calcite-tree>`||""}</calcite-tree-item>`):h(t,r`<calcite-tree-item .label=${i} @click=${()=>this.changeIndustryFilter(t,"",i,!0)} .expanded=${u?!0:void 0}>${i}${l.length>0&&r`<calcite-tree slot=children selection-mode=multiple>${d(t,l)}</calcite-tree>`||""}</calcite-tree-item>`)});return r`<calcite-block description expanded class="border-color" .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-tree selection-mode=single-persist>${a}</calcite-tree></calcite-block>`}};A("solutions-filter-panel",g);export{g as SolutionsFilterPanel};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a,b}from"./TFX7FLLB.js";import"./7INSFWLF.js";import"./HAXUZW3B.js";import"./2DGB5L7S.js";import"./N3V7I4KP.js";import"./SFSJYGXN.js";import"./Q253POJJ.js";export{a as ProjectEditorTypes,b as ProjectSchema};
@@ -1,4 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a,b}from"./7HCS7QDO.js";import"./N3V7I4KP.js";import"./Q253POJJ.js";export{a as GroupEditorTypes,b as GroupSchema};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a as v,b as y}from"./PNZWOZIO.js";import{b as n}from"./A437YTBB.js";import{a as _}from"./XU5Y7VU2.js";import{k as b,l as m}from"./32CJQFYT.js";import{a as g}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as f}from"./JKJ2E3QC.js";import{C as o,D as a,E as p,H as r,I as u,h,i as t,o as d}from"./BT3PZ755.js";import"./Q253POJJ.js";var S=h`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.display-flex{display:flex}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: 0px;--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: 0px;padding-inline-start:var(--calcite-spacing-md)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-1{z-index:1}.z-index-2{z-index:2}h1{font-weight:unset;margin:0;padding:0}@media(max-width:800px){.filter{display:none}.filter-button{display:block;position:absolute;top:var(--calcite-spacing-sm);left:var(--calcite-spacing-sm);z-index:999}}@media(min-width:800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.background-override{--calcite-shell-panel-background-color: var(--calcite-color-foreground-3);--calcite-panel-background-color: var(--calcite-color-foreground-3)}.position-relative{position:relative}.height-100{height:100%}.border-none{border:none}.height-50{height:50px}`,c=class extends p{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this._filters={categories:[],searchTerm:""},this.isMobile=!1,this._translations=g({name:"solutions-all-shell",blocking:!0}),this._allSolutionsPanelRef=o(),this._solutionsFilterPanelRef=o(),this._isMobileContextConsumer=n({context:y,subscribe:!0,callback:e=>this.isMobile=e}),this._userSessionContextConsumer=n({context:v,subscribe:!0}),this.filterRemoved=d(),this.listenOn(window,"searchChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&this._filterApplied(e.detail.option)})}static{this.properties={solutionsCount:9,filterOpen:16,_filters:16,isMobile:16,_translations:16}}static{this.styles=S}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){if(this._allSolutionsPanelRef.value.setSearchOptions(e),"industry"in e||"domain"in e){e.displayValue=e.domain||e.industry;let i=e.industry?Object.entries(b).find(([,l])=>l===e.industry)?.[0]:void 0,s=e.domain?Object.entries(m).find(([,l])=>l===e.domain)?.[0]:void 0;e.industry=i||"",e.domain=s||"",e.value=s||i,this._solutionsFilterPanelRef.value.changeIndustryFilter(e.industry,e.domain,e.displayValue,!0)}else("searchTerm"in e||"sortType"in e)&&("searchTerm"in e&&(this._filters.searchTerm=e.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(e))}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}render(){let e=this.filterOpen?"chevron-left":"chevron-right",i=this.isMobile?"justify-content-end":"";return t`<calcite-shell class="position-relative">${this.isMobile?"":this._getFilterPanel()}<calcite-button appearance=outline-fill class="filter-button mock-fab z-index-2" icon-start=${e??u} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><h1 class="height-100"><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center height-50 ${i}`} slot=header-content><calcite-label class="label-override">${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label>${this._renderChips()}${this._filters.categories&&this._filters.categories?.length>0&&t`<calcite-button appearance=transparent icon-start=reset kind=neutral @click=${()=>{this._filters={...this._filters,categories:[]},this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this.filterRemoved.emit([])}} .label=${this._translations.clearIndustryFilter}>${this._translations.clearIndustryFilter}</calcite-button>`||""}</div>${this.isMobile&&this._getFilterPanel()||""}${this._getSolutionsAllPanel()}</calcite-panel></h1></calcite-shell>`}_getFilterPanel(){let e=this.filterOpen?{display:"flex"}:"";return this.isMobile?t`<calcite-panel class=${`border-none ${this.filterOpen?"background-override":"filter background-override"}`} id=solutions-all-shell-panel-start style=${r(e)}><solutions-filter-panel class="height-100" @applyFilter=${i=>{this._filterApplied(i.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel>`:t`<calcite-shell-panel class="filter background-override filter-width-350" id=solutions-all-shell-panel-start position=start slot=panel-start style=${r(e)}><calcite-panel class="border-none"><solutions-filter-panel class="height-100" .isAIsettingEnabled=${!!this._userSessionContextConsumer.value?.token} @applyFilter=${i=>{this._filterApplied(i.detail)}} ${a(this._solutionsFilterPanelRef)}></solutions-filter-panel></calcite-panel></calcite-shell-panel>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return t`<solutions-all-panel @cardsFetched=${this._updateSolutionCount} style=${r(e)} ${a(this._allSolutionsPanelRef)}></solutions-all-panel>`}_renderChips(){if(!this._filters.categories)return;let e=this._filters.categories.filter(i=>i.type==="industry"||i.type==="domain");return e.length>0?_(e,i=>`${i.type}:${i.value}`,i=>t`<calcite-chip appearance=outline-fill class="padding-start" closable kind=neutral .label=${i.displayValue} @calciteChipClose=${()=>this._chipClosed(i.displayValue,i.type)} .value=${i.displayValue}>${i.displayValue}</calcite-chip>`):void 0}_updateSolutionCount(e){this.solutionsCount=e.detail}_chipClosed(e,i){if(this._filters.categories){if(i==="industry")this._filters.categories=[];else{let s=this._filters.categories.filter(l=>l.displayValue!==e&&l.type!==i);this._filters.categories=s}this._filters.categories.length>0?this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories):this._filters.searchTerm!==""?(this._allSolutionsPanelRef.value?.searchSolutions(this._filters.categories),this._allSolutionsPanelRef.value?.searchSolutions({searchTerm:this._filters.searchTerm})):this._allSolutionsPanelRef.value?.searchSolutions(),this.filterRemoved.emit(this._filters.categories)}}_toggleFilter(){this.filterOpen=!this.filterOpen}_filterApplied(e){if(this._filters.categories)if(e){let i=e;"displayValue"in e?this._filters.categories.push(e):Array.isArray(e)&&e.length>0&&(e.length>=2&&(i=[e[e.length-1]]),this._filters.categories=e),"searchTerm"in i&&(this._filters.searchTerm=i.searchTerm),this._allSolutionsPanelRef.value?.searchSolutions(i)}else this._filters.categories=[],this._allSolutionsPanelRef.value?.searchSolutions()}};f("solutions-all-shell",c);export{c as SolutionsAllShell};
@@ -1,20 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{$ as bt,$a as rr,$b as Vr,A as It,Aa as vo,Ab as wr,B as pe,Ba as Fo,C,Ca as Nt,Cb as xr,D as gt,Da as Lt,Db as Sr,E as Ke,Ea as ue,Eb as Er,F as xe,Fa as Oo,Fb as br,G as x,Ga as $t,Gb as re,H as xo,Ha as Vt,Hb as Tr,I as ht,Ia as Bt,Ib as vr,J as f,Ja as zt,Jb as Fr,K as yt,Ka as Gt,Kb as Or,La as jt,Lb as _r,M as Se,Ma as Kt,Mb as Rr,N as E,Na as Ht,Nb as kr,O as Ee,Oa as qt,Ob as Ar,P as Pt,Pa as Jt,Pb as Cr,Q as So,Qa as Dt,Qb as Mr,R as Eo,Ra as Zt,Rb as Ur,S as He,Sa as Qt,Sb as Wr,T as H,Ta as Yt,Tb as Nr,U as wt,Ua as _o,Ub as Lr,V as xt,Va as Qe,Vb as $r,W as St,Wa as Xt,Wb as Ao,X as B,Xa as er,Xb as Xe,Y as Et,Ya as or,Yb as Co,Z as G,Za as te,Zb as Te,_ as qe,_a as tr,_b as eo,a as Ue,aa as bo,ab as nr,ac as Br,ba as oe,bb as sr,c as N,ca as w,cb as ir,cc as zr,d as X,da as T,db as mr,dc as Gr,e as ct,ea as Z,eb as ar,ec as jr,f as ie,fa as Je,fb as cr,ga as Tt,gb as dr,gc as Kr,h as u,ha as vt,hb as pr,i as Po,ia as To,ib as be,j as me,ja as Ft,jb as _,jc as Hr,k as $e,ka as Ot,kb as Ye,kc as ve,l as ce,la as _t,lc as oo,m as Ve,ma as Rt,mc as to,n as Be,na as kt,nb as fr,nc as qr,o as wo,oa as At,ob as ur,oc as ro,p as pt,pa as A,pb as z,pc as Jr,q as ze,qa as fe,qb as lr,r as ft,ra as q,rb as le,s as Ge,sb as J,t as je,ta as De,tb as Ir,u as ee,ua as Ze,ub as Ro,va as Ct,vb as gr,w as de,wb as ko,x as ut,xa as Mt,xb as hr,y as g,ya as Ut,yb as yr,z as lt,za as Wt,zb as Pr}from"./Y4RGBYW4.js";import{a as ae,g as we}from"./E7X4JPJZ.js";import{a as L}from"./2AXIORVV.js";import{a as K,b as We,c as Ne,d as Le}from"./J4PD5ZQ7.js";import{e as j,f as mt,j as Ae,l as Ce,o as at,s as Me}from"./GZ4MUQVE.js";import{a as it}from"./3XM3G7I5.js";import{a as dt}from"./RSERAAVS.js";import{a as V}from"./SQKB5YHF.js";import{c as W}from"./Q253POJJ.js";function Ie(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function Dr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var no={};W(no,{_mostRecentlyEditedLayer:()=>Mo,convertItemToTemplate:()=>Rs,createItemFromTemplate:()=>ks,postProcess:()=>As});function Rs(e,o,r,t){return new Promise((n,s)=>{let i=G(e);dr(e.groupDesignations)?Bt(i,r).then(a=>n(a),a=>s(x(a))):(i.estimatedDeploymentCostFactor=10,q(i.item.id,r).then(a=>{i.data=a,mr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Mo(i.properties.layers),Mo(i.properties.tables)),nr(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Nt(c,d,!1,t))},d=>s(x(d)))},c=>s(x(c)))}))})}function ks(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=w(s,o),delete s.item.thumbnail,Ke(s,"properties.service.size");let i=Lt(s.data);or(s,r,o).then(m=>{m.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=Oo(s,o,m),jt(s,o,i,r).then(()=>{s=Oo(s,o,m),le({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,f(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||_o(s)})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function As(e,o,r,t,n,s,i){return new Promise((m,a)=>{J(e,s,i).then(c=>{_o(t)?(t=w(t,s),Qe(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Mo(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};W(l,{convertItemToTemplate:()=>Cs,createItemFromTemplate:()=>Ms});function Cs(e,o,r){return new Promise(t=>{let n=G(e);n.item.id=T(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{fe(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Vr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=eo(n.itemId,c.blob.name,1,c.blob.name===c.filename?Te.data:Te.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Ms(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=w(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,u.Cancelled,0),_(i.id,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}var Zo={};W(Zo,{_getFormDataFilename:()=>Mn,_replaceFeatureServiceURLs:()=>Fn,_replaceItemIds:()=>On,_replacePortalBaseUrls:()=>_n,_replaceWorkflowManagerBaseUrls:()=>Rn,_updateZipObjectTextContent:()=>kn,convertItemToTemplate:()=>gi,createItemFromTemplate:()=>hi,postProcess:()=>Cn,postProcessFormItems:()=>Pi,swizzleFormObject:()=>Jo,templatizeFormData:()=>Do});function Yr(e,o){return Us(e,o)}function Us(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=f(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=T(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&Ws(s,e,o)})}),e}function Ws(e,o,r){e.datasets.forEach(t=>{if(f(t,"dataSource.type")!=="arcadeDataSource"){let s=f(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=f(t,"dataSource.layerId");ue(i?.toString(),s,"",r),t.dataSource.itemId=T(s,s,".itemId")}}})}function Xr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=f(e,t);Ns(n,o)}),r.forEach(t=>{Ls(e,t,o)}),e}function Ns(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=So(f(t,"dataSource.itemId"));if(n){let s=Eo(f(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Qr(i,r.id),!0):!1)}else{let s=f(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Qr(m,r.id),!0):!1)}}})})}function Ls(e,o,r){let t=f(e,o);t&&E(e,o,$s(t,r))}function $s(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Zr(m,o);if(a){let c=f(a,"fields"),d=f(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let I=p;return I.targetName=Z(I.targetName,c,d),I}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Zr(n,o);if(i){let m=f(i,"fields"),a=f(i,"basePath");Array.isArray(m)&&a&&(t=Z(t,m,a),s=Z(s,m,a))}}return s})),t}):e}function Zr(e,o){let r,t=f(e,"dataSource.id")||f(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=So(f(e,"dataSource.itemId")),s=Eo(f(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Qr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var ge={};W(ge,{convertItemToTemplate:()=>Ds,convertNotebookToTemplate:()=>jo,createItemFromTemplate:()=>Zs,deleteProps:()=>pn,fineTuneCreatedItem:()=>Go,postProcess:()=>Ys,postProcessNotebookTemplates:()=>Qs});function tn(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=B(H)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=zs(e),E(e,"data.folderId","{{folderId}}"),Ks(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),nn(e,"data.appItemId",e.itemId),Bo(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],B(H)),E(e,"data.geometryService",B(wt)),Vs(e,r,i,t).then(()=>{on(e,r,i,"data.widgetPool.widgets").then(m=>{on(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Bs(a,r,i,"data.values").then(c=>{n(c)},c=>s(x(c)))},a=>s(x(a)))},m=>s(x(m)))},m=>s(x(m)))})}function Vs(e,o,r,t){return new Promise((n,s)=>{let i=f(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",B(H));let d=f(c,"itemId");if(f(c,"url")){if(d){let I=c.url.substr(c.url.lastIndexOf("/")+1);ue(I.toString(),d,c.url,t),c.itemId=T(d,d,".layer"+I+".itemId")}let p=Vo(c.url,r,[],[],o);m.push(new Promise((I,h)=>{$o(p.serviceRequests,p.requestUrls,p.testString).then(P=>{c.url=P,I()},P=>h(x(P)))}))}else d&&(c.itemId=T(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(x(a)))}else n(e)})}function on(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=f(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&f(d,"icon")&&Bo(d,["icon"],B(H));let p=d.config;if(p){let I=JSON.stringify(p),h=Vo(I,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);$o(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(x(p)))}else s(e)})}function Bs(e,o,r,t){return new Promise((n,s)=>{let i=f(e,t),m=[],a=[];if(i){f(i,"icon")&&Bo(i,["icon"],B(H));let c=JSON.stringify(i),d=Vo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);$o(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(x(d)))}else n(e)})}function $o(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(f(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=so(r,o[s],a,!0)}s++}),t(r)},i=>n(x(i)))}else t(r)})}function Vo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=so(e,m,B(St)):m.indexOf("GeocodeServer")>-1?e=so(e,m,B(xt)):o&&m.indexOf(o)>-1?e=so(e,o,B(H)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(N(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function so(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function Bo(e,o,r){o.forEach(t=>{let n=f(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function rn(e,o,r,t){return new Promise(n=>{if(Ee(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=z(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:je(w(B(H),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function zs(e){let o=Gs;return Ee(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=js),o(e)}function Gs(e){return yt(e,["data.values.webmap","data.values.group"])}function js(e){let o=[],r=f(e,"data.map.itemId");r&&o.push(r);let t=f(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function Ks(e,o){o.forEach(r=>{let t=f(e,r);nn(e,r,t)})}function nn(e,o,r){E(e,o,T(r,r,".itemId"))}function sn(e,o){let r=f(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=No(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=f(e,s);i&&E(e,s,Hs(i,o))});let n=f(e,"data.values");return n&&E(e,"data.values",No(n,o)),e}function No(e,o,r=!1){return e=Js(e,o,r),qs(e,o).forEach(n=>{e=Z(e,n.fields,n.basePath,r)}),e}function Hs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=No(t.config,o,n)}return t})}function qs(e,o){let r=JSON.stringify(e);return o.filter(n=>Wo(n,r)<4).sort((n,s)=>Wo(n,r)-Wo(s,r))}function Wo(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Js(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Lo(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=io(e,s,i,r)})}),e}function Lo(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Lo(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Lo(e[m],o,r):(i&&i.test(e[m])&&(e=Z(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function io(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>io(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(io(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=Z(e[i],o.fields,o.basePath,t)),n[i]=io(e[i],o,r,t)):(s.test(e[i])&&(e=Z(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function mn(e,o,r,t){return Yt(e,r,t)}function an(e,o,r){return Qe(e,o,"",r)}function D(e,o,r,t,n){return new Promise((s,i)=>{function m(){n&&n.signal.aborted&&i(new Error("Operation was cancelled"))}if(m(),!t(e.itemId,u.Started,0))t(e.itemId,u.Ignored,0),s(g(e.type));else{let a=C(e);a=w(a,o);let c;e.type==="Web Mapping Application"&&e.data?a=JSON.parse(w(JSON.stringify(a),o)):e.type==="QuickCapture Project"&&e.data&&(c=JSON.stringify(a.data.application),delete a.data),e.item.thumbnail&&(a.item.thumbnail=e.item.thumbnail),te(a.item,a.data,r,o.folderId).then(d=>{if(m(),!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,d.id))t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type)));else{o[e.itemId]={itemId:d.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+d.id},a.itemId=d.id,a.type==="Web Mapping Application"&&e.data&&E(a,"data.appItemId",d.id);let p=oe(a.data),I=a.item.url;a=w(a,o),m();let h=Promise.resolve([]);if(a.relatedItems){let S=w(Je(a.relatedItems),o);h=Xt(a.itemId,S,r)}m();let P;if(e.type==="Web Mapping Application"&&e.data&&Ee(e,["WAB2D","WAB3D","Web AppBuilder"]))P=rn(e,a,o,r);else if(e.type==="Workforce Project")P=an(a,r,o);else if(e.type==="QuickCapture Project"){if(c){let S=pe(w(JSON.parse(c),o),"qc.project.json");P=Hr(S,a.itemId,"",S.name,r)}}else e.type==="Notebook"?P=Go(e,a,o,r):I!==a.item.url?(m(),P=new Promise((S,y)=>{Ir(d.id,a.item.url,r).then(()=>S(),y)})):P=Promise.resolve(null);m(),Promise.all([h,P]).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,d.id)?s({item:a,id:d.id,type:a.type,postProcess:p}):(t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type))))},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}})}function Ds(e,o,r,t){return Q(e,o,r,t)}function Zs(e,o,r,t){return D(e,o,r,t)}function jo(e){return new Promise(o=>{pn(e.data),o(e)})}function Qs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function pn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];xe(e,o),(e.cells||[]).forEach(r=>{xe(r,o)})}}function Go(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:pe(o.data,o.itemId+".ipynb")};z(i,t).then(()=>n(null),s)})}function Ys(e,o,r,t,n,s,i){return J(e,s,i)}function un(e,o,r){return new Promise((t,n)=>{Xs(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=fn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=fn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(x(s)))})}function Xs(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),ei(s,n,o).then(i=>{r(i)},i=>t(x(i)))}else r({dependencies:n,urlHash:{}})})}function ei(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),I=Array.isArray(p)&&p.length>0?p[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=N(d,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,I)=>{if(f(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I]]=h}}),t({dependencies:o,urlHash:s})},d=>n(x(d))):t({dependencies:o,urlHash:s})})}function fn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=T(t,t,".layer"+n+".url")}r=Je(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Fe={};W(Fe,{_templatizeAdminEmail:()=>gn,_templatizeApplication:()=>In,_templatizeId:()=>Ko,_templatizeUrl:()=>yn,_updateDependencies:()=>hn,convertItemToTemplate:()=>ti,convertQuickCaptureToTemplate:()=>Ho,createItemFromTemplate:()=>ri});function ti(e,o,r,t){return Q(e,o,r,t)}function Ho(e){return E(e,"data.application",In(e.data.application,e)),e}function In(e,o){Ko(e,"itemId"),gn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(hn(n,o),yn(t,"featureServiceItemId","url"),Ko(t,"featureServiceItemId"))}),e}function gn(e){f(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function hn(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function yn(e,o,r){let t=f(e,o),n=f(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,T(t,t,".layer"+s+".url"))}}function Ko(e,o){let r=f(e,o);r&&E(e,o,T(r,r,".itemId"))}function ri(e,o,r,t){return D(e,o,r,t)}var ni="home/webmap/viewer.html?webmap=";function Pn(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?je(B(H))+ni+e.item.id:e.item.url),si(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&qo(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&qo(e.data.operationalLayers,i.urlHash,t),qo(e.data.tables,i.urlHash,t),ii(e.data)),n(e)},i=>s(x(i)))})}function si(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);mi(a,n,o).then(c=>{r(c)},c=>t(x(c)))}else r({dependencies:n,urlHash:{}})})}function ii(e){Ke(e,"initialState")}function mi(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),I=Array.isArray(p)&&p.length>0?p[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=N(d.url,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,I)=>{if(c[I].layerType==="VectorTileLayer"){let h=f(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[I].templatizeId=!0;let P=c[I].styleUrl.indexOf(p.id)+p.id.length;c[I].styleUrl=T(c[I].styleUrl.replace(c[I].styleUrl.substring(0,P),p.id),p.id,".itemUrl")}}else if(f(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(x(d))):t({dependencies:o,urlHash:s})})}function qo(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=T(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(ue(n,s,t.url,r),t.url=T(s,s,".layer"+n+".url"),t.itemId=T(s,s,".layer"+n+".itemId"))}})}function wn(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ai(e,o,t)),e}function ai(e,o,r){let t=f(e,r);t&&E(e,r,ci(t,o))}function ci(e,o){return e.forEach(r=>{let t=di(r,o);if(t){let n=t.fields.map(i=>i.name);qt(r,t,t.basePath,t.itemId,n),Dt(r,t.basePath,n),r.layerDefinition&&(Qt(r.layerDefinition,t.basePath,n),Zt(r.layerDefinition,t.basePath,n));let s=f(r,"field.name");s&&E(r,"field.name",Jt(s,r,t.itemId,t.basePath))}}),e}function di(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Q(e,o,r,t){return new Promise((n,s)=>{let i=G(e);i.item.id=T(i.item.id,i.item.id,".itemId");let m=De(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{q(i.itemId,r).then(p=>d(p))});break;case"Form":a=fe(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Ze(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,I,h]=d;Jr(i,t),i.data=ro(p,e.type,t);let P=I;i.dependencies=[],i.relatedItems=[],P.forEach(y=>{y.relationshipType!=="WMA2Code"&&(i.relatedItems.push(y),y.relatedItemIds.forEach(v=>{i.dependencies.indexOf(v)<0&&i.dependencies.push(v)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(pi(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":Yr(i,t);break;case"Notebook":S=jo(i);break;case"Oriented Imagery Catalog":S=un(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async y=>{let v=null,b=-1;h&&(h.some((ne,ke)=>{let U=ne.name==="qc.project.json";return U&&(v=ne,b=ke),U}),b>=0&&h.splice(b,1)),v&&(i.data={application:{...await Ge(v)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let M=Ho(i);y(M)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=Pn(i,o,r,t);break;case"Web Mapping Application":p&&(S=tn(i,o,r,t));break;case"Workforce Project":S=mn(i,o,r,t);break}S.then(n,y=>s(x(y)))})})}function pi(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=f(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var R={};W(R,{convertItemToTemplate:()=>fi,createItemFromTemplate:()=>ui,postProcess:()=>Ii,postProcessFieldReferences:()=>li});function fi(e,o,r,t){return Q(e,o,r,t)}function ui(e,o,r,t,n){return n?D(e,o,r,t,n):D(e,o,r,t)}function li(e,o,r){switch(r){case"Web Mapping Application":sn(e,o);break;case"Dashboard":Xr(e,o);break;case"Web Map":wn(e,o);break}return e}async function Ii(e,o,r,t,n,s,i){if(o==="Web Map"&&t.resources.some(m=>m.indexOf(ie)>-1)){let m=zr(`${s.portalBaseUrl}/sharing/rest`,t.itemId,ie),a={httpMethod:"GET",authentication:i,params:{f:"json"},headers:{Accept:"application/json",Authorization:`Bearer ${i.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${i.token}`}};await N(m,a).then(async c=>{let d=JSON.stringify(c),p=w(d,s);if(d!==p){let I=JSON.parse(p),h={id:e,resource:pe(I,ie),name:ie,authentication:i,params:{}};await ct(h)}})}return J(e,s,i)}function gi(e,o,r,t){return R.convertItemToTemplate(e,o,r,t)}function mo(e){return!!f(e,"properties.services")}function En(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:it({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var bn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function Tn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:I}=r.toCredential();return Mt(d,p,r).then(h=>{let P="Survey-",S=Pt(`${P}${t}`,o,"user.folders").replace(P,"");if(m.questions){let v=b=>(b.maps&&(b.maps=b.maps.map(M=>({...M,itemId:h.id}))),b);m.questions=m.questions.map(b=>b.questions?{...b,questions:b.questions.map(v)}:v(b))}let y=bn(m);return{description:n,form:y,portalUrl:c,tags:s,title:S,token:I,typeKeywords:i,username:a}})}function vn(e,o,r,t){let n=w(e,o),{survey123Url:s}=o;return Tn(n,o,r).then(i=>En(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=le({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,u.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,u.Failed,0),i})}function hi(e,o,r,t){return mo(e)?vn(e,o,r,t):R.createItemFromTemplate(e,o,r,t)}async function Jo(e,o){let r=await ko(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=kn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Do(e,o){return(await ko(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=On(n,o,s),n=Fn(n,o,s),n=_n(n,o),n=Rn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Fn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function On(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function _n(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Rn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function kn(e,o){let r=lt(),t=e.content;return t=w(e.content,o),de(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function An(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=w(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],I=P=>z(P,i),h=p.map(I);return Promise.all(h).then(()=>{let P=[e,a],S=v=>j({itemId:v,folderId:s.folderId,authentication:i}),y=P.map(S);return Promise.all(y)}).then(()=>pr(d.ownerFolder,i)).then(()=>{let P=G(d);return n.push(P),t.dependencies.push(d.id),!0})})}async function Cn(e,o,r,t,n,s,i){let m=await fe(e,"Form",i);if(m){let a=await Ro(m),c=await Jo(a,s);Xe(c,e,i)}else return await ut(5e3),Cn(e,o,r,t,n,s,i);return mo(t)?An(e,o,r,t,n,s,i):J(e,s,i)}async function Pi(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Ro(t);n=await Do(n,o),r.item.name=Mn(r.item.name,t.name,`${r.itemId}.zip`);let s=await hr(n,r.item.name),i=eo(r.itemId,r.item.name,1,Te.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function Mn(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var Qo={};W(Qo,{_initializeNewGroup:()=>Un,convertItemToTemplate:()=>wi,createItemFromTemplate:()=>xi,postProcess:()=>Si});function wi(e,o,r){return new Promise(t=>{let n=Et(e);n.item.id=T(n.item.id,n.item.id,".itemId"),At(e.id,r).then(s=>{n.type="Group",kt(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ht(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function xi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=w(s,o),s.item.thumbnail=e.item.thumbnail;let i=Un(s.item);rr(i.title,i,o,r,Fo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),be(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=w(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),be(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(Fo(s)){let a=o.locationTracking.owner;fr(m.group.id,a,r).then(c=>{c.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?ur(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,u.Cancelled,0),be(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),be(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,u.Failed,0),n(g(e.type))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function Si(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=w(c,s),m=lr(c,i)),!0}}),m}function Un(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var Oe={};W(Oe,{convertItemToTemplate:()=>Ei,createItemFromTemplate:()=>bi,isAPage:()=>vi,postProcess:()=>Ti});function Wn(e,o,r,t){return e=ce(e,r,{}),Fr(e,{...t,allowList:[]}).then(()=>!0)}function ao(e){let o=K(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=me(o.item,n,s),o.data=me(o.data,n,s),e.properties&&(o.properties=me(o.properties,n,s))}),o}function co(e,o,r){let t=L(j,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return V(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function Ei(e,o,r=null){let t=0,n=0;return Promise.all([we(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,_r(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=We(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],V(s,"properties")||(s.properties={}),s=ao(s),s))}function bi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,Rr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return Or(d,p,m)}).then(c=>(i=c,co(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return L(vr,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function Ti(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,we(e,{authentication:i}))).then(a=>Wn(a,r,s,m))}function vi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var _e={};W(_e,{convertItemToTemplate:()=>Fi,createItemFromTemplate:()=>Oi,isASite:()=>Ri,postProcess:()=>_i});function Nn(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>we(n,r))).then(n=>Lr(e,n,r))}function Ln(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Nr(e,s,t)),i=i.concat(Nn(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Mr(e,r,{}),i.push(kr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Fi(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,wo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Wr(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=We(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],f(a,"properties")||(a.properties={}),a.dependencies=de(a.dependencies),a=ao(a),a))}function Oi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,Ur(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Cr(c,d,m)}).then(c=>(i=c,co(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return L(Ar,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function _i(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,wo(e,m))).then(a=>Ln(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ri(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var fo={};W(fo,{convertItemToTemplate:()=>Ci,createItemFromTemplate:()=>Mi,isAStoryMap:()=>Ui});function $n(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(V(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Vn(e){let o=V(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(V(o,`${t}.type`)==="webmap"&&r.push(V(o,`${t}.data.itemId`)),r),[])}function zn(e){let o=qe(e.item.id,e.item.type);o.key=`${$e(e.item.title)}_${Ne("i")}`;let r=K(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Be(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",$n(o.data.resources).forEach(m=>{o.data.resources[m.updated]=K(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=me(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Bn)!==-1&&(o.item.typeKeywords=[ki].concat(o.item.typeKeywords.filter(m=>m!==Bn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Ai),o.dependencies=Vn(e),Promise.resolve(o)}var Bn="smstatusunpublishedchanges",ki="smstatuspublished",Ai={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
5
- <oembed>
6
- <version>1.0</version>
7
- <type>rich</type>
8
- <title>Example StoryMap</title>
9
- <url>{{storyMapTemplateUrl}}</url>
10
- <author_name>undefined</author_name>
11
- <provider_name>ArcGIS StoryMaps</provider_name>
12
- <provider_url>{{storyMapBaseUrl}}</provider_url>
13
- <width>800</width>
14
- <height>600</height>
15
- <thumbnail_url>{{storyMapThumbnailUrl}}</thumbnail_url>
16
- <thumbnail_height>100.5</thumbnail_height>
17
- <thumbnail_width>400</thumbnail_width>
18
- <html><iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen="true"></iframe></html>
19
- <cache_age>86400</cache_age>
20
- </oembed>`};function Gn(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r="portal";return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="qaext":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="devext":o.match(/(www|\.maps)\.arcgis.com/)&&(r="www"),r}function po(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r;return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="storymapsqa":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="storymapsdev":o.match(/(www|\.maps)\.arcgis.com/)&&(r="storymaps"),r}function jn(e){let o="",r=po(e);return r?o=`https://${r}.arcgis.com`:o=`${e.portal.replace("/sharing/rest","")}/apps/storymaps`,o}function Kn(e,o,r,t){let n=new Date().getTime();o.agoenv=Gn(t),o.smBase=po(t),o.timestamp=new Date().getTime(),o.storyMapBaseUrl=jn(t),o.storyMapTemplateUrl=`${o.storyMapBaseUrl}/stories/{{appid}}`,o.storyMapThumnailUrl=`${t.portal}/content/items/{{appid}}/info/thumbnail/thumbnail.jpg/?w=400&d=${n}`;let s=ce(e,o,r);return Promise.resolve(s)}function Hn(e,o,r,t){let n=[];e.data=JSON.parse(JSON.stringify(e.data).replace(/portalUrl=https:\/\//g,"portalUrl=https%3A%2F%2F"));let s={item:ae(e),authentication:t};return e.item.thumbnail&&(s.params={thumbnail:e.item.thumbnail},delete s.item.thumbnail),Ae(s).then(i=>{e.item.id=i.id,e=Ve(e);let m=Ie(JSON.stringify(e.data));return n.push({name:e.properties.draftFileName,file:m}),n.push({name:"oembed.json",file:Ie(JSON.stringify(e.properties.oembed))}),n.push({name:"oembed.xml",file:Ie(e.properties.oembedXML)}),n.push({name:"published_data.json",file:m}),delete e.properties,Promise.all([X({item:ae(e),authentication:t}),t.getUsername()])}).then(i=>{let m=i[1],a=L(Ue,{success:!0}),c=n.map(d=>a({id:e.item.id,owner:m,resource:d.file,name:d.name,authentication:t}));return Promise.all(c)}).then(()=>j({itemId:e.item.id,folderId:o,authentication:t})).then(()=>e)}function Ci(e,o,r){let t={item:e,data:{}};return Ce(e.id,{authentication:r}).then(n=>(t.data=n,zn(t))).then(n=>n)}function Mi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));o.solution||(o.solution={}),o.solution.title=o.title;let s={},i;return Kn(e,o,s,r).then(m=>{let a={assets:m.assets||[]};return Hn(m,o.folderId,a,r)}).then(m=>{if(i=m,o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let c={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!1};return c.item.itemId=i.item.id,c}else return L(Me,{success:!0})({id:i.item.id,authentication:r}).then(()=>Promise.resolve(g(e.type)))}).catch(m=>{throw t(e.itemId,u.Failed,0),m})}function Ui(e){let o=!1;return e==="StoryMap"&&(o=!0),o}var he={};W(he,{convertItemToTemplate:()=>Yi,createItemFromTemplate:()=>Xi,postProcess:()=>em});function qn(e){Yo(e,"data.sources",Li),Yo(e,"data.feeds",Ni),Yo(e,"data.feed",Jn)}function Yo(e,o,r){let t=f(e,o);t&&E(e,o,r(t))}function Ni(e){return e.map(o=>(o.label=o.label&&o.id?`{{${o.id}.label}}`:o.label,o.id=o.id?`{{${o.id}.itemId}}`:o.id,o))}function Jn(e){let o=f(e,"properties.feature-layer.portalItemId");if(e.properties&&(e.properties["feature-layer.portalItemId"]&&(o=e.properties["feature-layer.portalItemId"],e.properties["feature-layer.portalItemId"]=`{{${o}.itemId}}`),o&&e.properties.hasOwnProperty("feature-layer.layerId"))){let r=e.properties["feature-layer.layerId"];e.properties["feature-layer.layerId"]=`{{${o}.layer${r}.layerId}}`}return e}function Li(e){return e.map(o=>Jn(o))}function Dn(e,o){let r=[];return[f(e,"data.feeds")?e.data.feeds:[],f(e,"data.feed")?[e.data.feed]:[]].forEach(t=>Vi(t,r)),[f(e,"data.sources")?e.data.sources:[],f(e,"data.source")?[e.data.source]:[],f(e,"data.outputs")?e.data.outputs:[],f(e,"data.output")?[e.data.output]:[]].forEach(t=>Zn(t,r)),$i(r,o)}function $i(e,o){let r=e.map(t=>A(t,o));return Promise.all(r).then(t=>Promise.resolve(t.reduce((n,s)=>(s.typeKeywords.indexOf("IoTFeatureLayer")<0&&n.push(s.id),n),[])))}function Vi(e,o){e.reduce((r,t)=>{let n=t.id||void 0;return n&&r.indexOf(n)<0&&r.push(n),r},o),Zn(e,o)}function Zn(e,o){e.reduce((r,t)=>((f(t,"name")?[t.name]:oo).forEach(s=>{to.forEach(i=>{if(i.indexOf("mapServicePortalItemID")<0&&i.indexOf("streamServicePortalItemID")<0){let m=t.properties?t.properties[s+i]:void 0;m&&r.indexOf(m)<0&&r.push(m)}})}),r),o)}function Re(e,o,r,t="",n=!1,s="",i=""){return qr(e,o).then(m=>{if(m){let a=r==="Real Time Analytic"?"analytics/realtime":r==="Big Data Analytic"?"analytics/bigdata":r.toLowerCase(),c=i?`/${i}`:"",d=s?`/${s}`:"";return Promise.resolve(n?`${m}/iot/${a}${d}${c}`:t?`${m}/iot/${a}${d}/${t}${c}/?f=json&token=${e.token}`:`${m}/iot/${a}${d}${c}/?f=json&token=${e.token}`)}else return Promise.resolve(m)})}function Qn(e,o,r,t,n=!1){return Re(e,t,o.type,void 0,!0).then(s=>s?Bi(e,r.label,s).then(i=>{let m=i.titles;r.label=i.label,r.id="";let a=w(r,t),c=(r.outputs?r.outputs:r.output?[r.output]:[]).map(p=>({id:p.id,name:p.properties[`${p.name}.name`]})),d=(a.feeds?a.feeds:a.feed?[a.feed]:[]).map(p=>({id:p.id?p.id:p.properties[`${p.name}.portalItemId`]||"",name:p.label?p.label:r.label}));return Yn(e,t,o.type,a,m,c,d).then(p=>uo(e,s,"POST",p).then(I=>{o.item.url=`${s}/${I.id}`,o.item.title=r.label,t[o.itemId].url=o.item.url,t[o.itemId].label=r.label,t[o.itemId].itemId=I.id;let h={item:w(o.item,t),id:I.id,type:o.type,postProcess:!1};return n?Ki(e,t,o,I.id).then(()=>Promise.resolve(h)):Promise.resolve(h)}))}):Promise.reject(x("Velocity NOT Supported by Organization")))}function Bi(e,o,r){return uo(e,`${r}StatusList?view=admin`,"GET").then(t=>{let n=t&&Array.isArray(t)?t.map(s=>({title:s.label})):[];return Promise.resolve({label:es(o,{titles:n},"titles"),titles:n.map(s=>s.title)})})}function Yn(e,o,r,t,n,s=[],i=[]){return s.length>0||i.length>0?os(e,o,r,"",t).then(m=>{let a=zi(m);return a.length>0?(s.length>0&&ji(s,t,a),i.length>0&&Gi(i,t,a.concat(n)),Yn(e,o,r,t,n,s,i)):Promise.resolve(t)}):Promise.resolve(t)}function zi(e){let o=f(e,"validation.messages"),r=f(e,"nodes");r&&Array.isArray(r)&&r.forEach(n=>{o=o.concat(f(n,"validation.messages")||[])});let t=[];return o&&Array.isArray(o)&&o.forEach(n=>{["VALIDATION_ANALYTICS__MULTIPLE_CREATE_FEATURE_LAYER_OUTPUTS_REFERENCE_SAME_LAYER_NAME","VALIDATION_ANALYTICS__MULTIPLE_CREATE_STREAM_LAYER_OUTPUTS_REFERENCE_SAME_LAYER_NAME","ITEM_MANAGER__CREATE_ANALYTIC_FAILED_DUPLICATE_OUTPUT_NAMES_IN_ORGANIZATION_NOT_ALLOWED","ITEM_MANAGER__CREATE_BIG_DATA_ANALYTIC_FAILED_DUPLICATE_NAMES_NOT_ALLOWED","ITEM_MANAGER__CREATE_REAL_TIME_ANALYTIC_FAILED_DUPLICATE_NAMES_NOT_ALLOWED","ITEM_MANAGER__CREATE_FEED_FAILED_DUPLICATE_NAME"].indexOf(n.key)>-1&&(t=t.concat(n.args))}),t}function Gi(e,o,r){e.forEach(t=>{let n=Xn(r,t);n&&(o.label=n.label,t.name=n.label)})}function ji(e,o,r){e.forEach(t=>{let n=Xn(r,t);if(n){let s=(o.outputs?o.outputs:o.output?[o.output]:[]).map(i=>{if(i.id===n.id&&i.properties){let m=`${i.name}.name`;Object.keys(i.properties).indexOf(m)>-1&&(i.properties[m]=n.label)}return i});o.outputs&&(o.outputs=s),o.output&&(o.output=s[0])}})}function Xn(e,o){let r=e.map(n=>({title:n})),t=es(o.name,{titles:r},"titles");return t!==o.name?{label:t,id:o.id}:void 0}function es(e,o,r){e=e?e.trim():"_";let n=(f(o,r)||[]).map(m=>m.title),s=e,i=0;for(;n.indexOf(s)>-1||n.indexOf(s.replace(/ /g,"_"))>-1;)i++,s=e+" "+i;return s}function Ki(e,o,r,t){return os(e,o,r.type,t).then(n=>n.executable?Hi(e,o,r.type,t):Promise.resolve(n))}function os(e,o,r,t,n){return Re(e,o,r,t,!1,"validate","").then(s=>uo(e,s,"POST",n).then(i=>Promise.resolve(i)))}function Hi(e,o,r,t){return Re(e,o,r,t,!1,"","start").then(n=>uo(e,n,"GET").then(s=>Promise.resolve(s)))}function qi(e,o){return{headers:{Accept:"application/json","Content-Type":"application/json",Authorization:"token="+e.token},method:o}}function uo(e,o,r,t){let n=qi(e,r);return t&&(n.body=JSON.stringify(t)),fetch(o,n).then(s=>Promise.resolve(s.json()))}function ts(e,o){let r=e.dependencies;[f(e,"data.sources")?e.data.sources:[],f(e,"data.source")?[e.data.source]:[],f(e,"data.feeds")?e.data.feeds:[],f(e,"data.feed")?[e.data.feed]:[]].forEach(t=>Ji(t,r,o)),[f(e,"data.outputs")?e.data.outputs:[],f(e,"data.output")?[e.data.output]:[]].forEach(t=>Di(t,r))}function Ji(e,o,r){e.forEach(t=>{let n="feature-layer.portalItemId",s="feature-layer.layerId";if(t.properties){if(t.properties[n]){let a=t.properties[n];a&&o.indexOf(a)<0&&(delete t.properties[n],delete t.properties[s])}let i="simulator.url",m=t.properties[i];m&&m.indexOf(r)>-1&&delete t.properties[i]}})}function Di(e,o){e.forEach(r=>{r.properties&&((f(r,"name")?[r.name]:oo).forEach(n=>{to.forEach(s=>Zi(r.properties,n+s,o))}),Qi(r.properties))})}function Zi(e,o,r){let t=e[o];t&&r.indexOf(t)<0&&delete e[o]}function Qi(e){["feat-lyr-new.name","stream-lyr-new.name","feat-lyr-existing.name"].forEach(o=>{let r=e[o];r&&r.indexOf("{{solutionItemId}}")<0&&(e[o]=`${r}_{{solutionItemId}}`)})}function Yi(e,o,r,t){let n=G(e);return Re(r,t,e.type,e.id).then(s=>s?fetch(s).then(i=>i.json()).then(i=>(n.item.title=i.label,n.data=i,Dn(n,r).then(m=>(n.dependencies=m,ts(n,t.velocityUrl),qn(n),n.item=ro(n.item,n.type,t),Promise.resolve(n))))):Promise.reject("Velocity NOT Supported by Organization"),s=>Promise.reject(x(s)))}function Xi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));let s=e.itemId;return Qn(r,e,e.data,o).then(i=>{if(t(s,u.Finished,e.estimatedDeploymentCostFactor||2,i.id)){let a={item:{...e,...i},id:i.item.id,type:e.type,postProcess:!0};return a.item.itemId=i.item.id,a}else return _(i.id,r).then(()=>Promise.resolve(g(e.type)),()=>Promise.resolve(g(e.type)))})}function em(e,o,r,t,n,s,i){let a=r.filter(c=>c.id===e)[0].item.item;return delete a.url,delete a.origUrl,z(a,i).then(()=>j({owner:i.username,itemId:e,folderId:s.folderId,authentication:i}))}var lo={};W(lo,{convertItemToTemplate:()=>tm,createItemFromTemplate:()=>rm,postProcess:()=>nm});function rs(e){let o=e.portal||"https://www.arcgis.com/sharing/rest",r;return o.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="experienceqa":o.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="experiencedev":o.match(/(www|\.maps)\.arcgis.com/)&&(r="experience"),r}function ns(e){let o="",r=rs(e);return r?o=`https://${r}.arcgis.com/experience/{{appid}}`:o=`${e.portal.replace("/sharing/rest","")}/apps/experiencebuilder/?id={{appid}}`,o}function ss(e,o,r,t){o.experienceUrlTemplate=ns(t);let n=ce(e,o,r);return n.item.url=o.experienceUrlTemplate,e.item.thumbnail&&(n.item.thumbnail=e.item.thumbnail),Promise.resolve(n)}function is(e,o,r,t){let n=[],s={item:ae(e),authentication:t};return e.item.thumbnail&&(s.params={thumbnail:e.item.thumbnail},delete s.item.thumbnail),Ae(s).then(i=>{e.item.id=i.id;let m=e.item.thumbnail;e=Ve(e),e.item.thumbnail=m;let a=K(e.data);n.push({name:"config.json",prefix:"config",file:Dr(a)});let c=K(e.properties.imageResourcesList);c&&n.push({name:"image-resources-list.json",prefix:"images",file:Ie(JSON.stringify(c))}),delete e.properties;let d={item:ae(e),authentication:t};return e.item.thumbnail&&(d.params={thumbnail:e.item.thumbnail},delete d.item.thumbnail),Promise.all([X(d),t.getUsername()])}).then(i=>{let m=i[1],a=L(Ue,{success:!0}),c=n.map(d=>a({id:e.item.id,owner:m,resource:d.file,name:d.name,prefix:d.prefix,authentication:t}));return Promise.all(c)}).then(()=>j({itemId:e.item.id,folderId:o,authentication:t})).then(()=>e)}function ms(e){let o=V(e,"data.dataSources")||{};return Object.keys(o).reduce((r,t)=>Le(V(o,`${t}.itemId`),r),[])}function cs(e){let o=qe(e.item.id,e.item.type);o.key=`${$e(e.item.title)}_${Ne("i")}`;let r=K(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Be(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{experienceUrlTemplate}}",o.item.typeKeywords.indexOf(as)!==-1&&(o.item.typeKeywords=[om].concat(o.item.typeKeywords.filter(i=>i!==as))),o.dependencies=ms(e),Promise.resolve(o)}var om="status: Published",as="status: Changed";function tm(e,o,r){let t={item:e,data:{}};return Ce(e.id,{authentication:r}).then(n=>(t.data=n,cs(t)))}function rm(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));let s;return ss(e,o,{},r).then(i=>(s=i,is(i,o.folderId,{},r))).then(i=>{if(s.item.id=i.item.id,s.item.url=i.item.url,o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let a={item:{...e,...ee(s)},id:s.item.id,type:e.type,postProcess:!1};return a.item.itemId=s.item.id,a}else return L(Me,{success:!0})({id:s.item.id,authentication:r}).then(()=>Promise.resolve(g(e.type)))})}function nm(e,o,r,t,n,s,i){return J(e,s,i)}var Io={};W(Io,{convertItemToTemplate:()=>sm,createItemFromTemplate:()=>im,createWebTool:()=>ds,getNotebookEnterpriseServerRootURL:()=>fs,getNotebookServerCreateServiceURL:()=>ps,moveToFolder:()=>us});function sm(e,o,r,t){return R.convertItemToTemplate(e,o,r,t)}function im(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0))t(e.itemId,u.Ignored,0),n(g(e.type));else{let s=C(e);s=w(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),ds(s,o,r).then(i=>{t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,i.itemId)?(o[e.itemId]={itemId:i.itemId,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+i.itemId},s.itemId=i.itemId,s.item.id=i.itemId,s.data={},delete s.item.thumbnail,us(s.itemId,o,r).then(()=>{Ze(i.itemId,r).then(m=>{let a=Promise.resolve();m.some(c=>{if(c.name==="webtoolService.json")return a=Ge(c),!0}),a.then(c=>{o[e.itemId].url=c?.serviceUrl,s=w(s,o),le({...s.item},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,i.itemId)?A(s.itemId,r).then(d=>{s.item=d,n({item:s,id:i.itemId,type:s.type,postProcess:!1})},()=>{t(e.itemId,u.Failed,0),_(i.itemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),_(i.itemId,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),_(i.itemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})})})},()=>{t(e.itemId,u.Failed,0),_(i.itemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})):(t(e.itemId,u.Cancelled,0),_(i.itemId,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})}})}function ds(e,o,r){return new Promise((t,n)=>{ps(o.portalBaseUrl,r,o).then(s=>{if(s){let i={serviceProperties:{description:e.item.description,provider:"notebooks",type:"GPServer",jsonProperties:{timeoutInMinutes:e.data.timeoutInMinutes,title:e.item.title,notebookId:e.data.notebookId,tasks:[{type:"notebook",name:e.data.name}]}}},m={httpMethod:"POST",authentication:r,params:i,headers:{Accept:"application/json",Authorization:`Bearer ${r.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${r.token}`}};N(s,m).then(a=>{t(a)},a=>{n(a)})}else n()},s=>{n(s)})})}async function ps(e,o,r){let t=r.isPortal?await fs(e,o):r.portalUrls?.notebooks.https.length>0?r.portalUrls.notebooks.https[0]:"";return t&&r.isPortal?`${t}/admin/services/createService?f=json&request.preventCache=${Date.now()}`:t?`https://${t}/admin/services/createService?f=json&request.preventCache=${Date.now()}`:""}async function fs(e,o){let t=(await _t(`${e}/sharing/rest`,o)).find(n=>n.serverFunction.indexOf("NotebookServer")>-1);return t?t.url:""}async function us(e,o,r){return o.isPortal&&!(await sr(e,o.folderId,r)).success?Promise.reject("Failed to move webTool item"):Promise.resolve()}var rt={};W(rt,{_cacheLayerDetails:()=>Xo,addWorkflowItem:()=>et,convertItemToTemplate:()=>cm,createItemFromTemplate:()=>dm,fetchAuxiliaryItems:()=>ot,postProcessFormItems:()=>mm,updateTempDictWorkflowId:()=>go,updateTemplateDictionaryForWorkflow:()=>tt});async function et(e,o,r){let t=`${o}/admin/createWorkflowItem?name=${e.item.title}`,n={authentication:r,headers:{Accept:"application/json",Authorization:`Bearer ${r.token}`,"Content-Type":"application/json","X-Esri-Authorization":`Bearer ${r.token}`},params:{name:`${e.item.title}`}},s=await N(t,n);return Promise.resolve(s.itemId)}async function ot(e,o){let r=`workflow_${e}`,t=`WorkflowLocations_${e}`,n=`workflow_views_${e}`,s=await Ye({q:`title:${r} OR title:${t} OR title:${n}`,authentication:o});return Promise.resolve(s.results.map(i=>i.id))}function mm(e){for(let o of e)if(o.type==="Workflow"){let r=It(JSON.stringify(o.properties.configuration));o.dependencies=de([...o.dependencies,...r])}return e}async function tt(e,o,r,t){let n=await q(o,t),s=f(r,`workflows.${e}`);s&&(await go(r,"viewSchema",s,n,t),await go(r,"workflowLocations",s,n,t),await go(r,"workflowSchema",s,n,t))}async function go(e,o,r,t,n){let s=r[o],i=f(t,`${o}.itemId`);e[s].itemId=i;let m=await br(i,n),a=f(m,"base.url");e[s].url=a,e[s].name=f(m,"base.name");let c=f(m,"featureServiceProperties.layers");Xo(c,e,a,s,i);let d=f(m,"featureServiceProperties.tables");Xo(d,e,a,s,i)}function Xo(e,o,r,t,n){e&&t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&e.forEach(s=>{let i=s.fields.reduce((c,d)=>(c[d.name.toLowerCase()]={alias:d.alias,name:d.name,type:d.type},c),{}),m=s.id,a=`${r}/${m}`;o[t][`layer${m}`]={fields:i,itemId:n,layerId:m,url:a}})}async function cm(e,o,r,t){let n=G(e);n.estimatedDeploymentCostFactor=20,n.item.id=T(n.item.id,n.item.id,".itemId");let s=De(n.itemId,"forward",r),i=ar(e.id,t.workflowBaseUrl,r),m=q(e.id,r),[a,c,d]=await Promise.all([s,i,m]);return n.data=d,n.dependencies=[],n.relatedItems=[],Er(n),a.forEach(p=>{p.relationshipType!=="WMA2Code"&&(n.relatedItems.push(p),p.relatedItemIds.forEach(I=>{n.dependencies.indexOf(I)<0&&n.dependencies.push(I)}))}),n.properties.configuration=await Pr(c),Promise.resolve(n)}async function dm(e,o,r,t){if(!t(e.itemId,u.Started,0))return t(e.itemId,u.Ignored,0),Promise.resolve(g(e.type));e.data={};let n=C(e);n=w(n,o),e.item.thumbnail&&(n.item.thumbnail=e.item.thumbnail);try{let s=await et(n,o.workflowBaseUrl,r);if(!s)throw new Error("Failed to create workflow item");if(!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,s))return t(e.itemId,u.Cancelled,0),_(s,r),Promise.resolve(g(e.type));n.itemId=n.item.id=s,o[e.itemId]={itemId:s},await tt(e.itemId,s,o,r),n.properties.configuration=w(n.properties.configuration,o);let i=await yr(n.properties.configuration);await cr(s,i,o.workflowBaseUrl,r);let m=await ot(s,r);if(m.push(s),(await ir(m,o.folderId,r)).some(d=>!d.success))throw new Error("Failed to move all workflow items");return t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,s),Promise.resolve({item:n,id:s,type:n.type,postProcess:!1})}catch{return t(e.itemId,u.Failed,0),Promise.resolve(g(e.type))}}var ho=null,yo={Group:Qo,"Big Data Analytic":he,"Feature Collection":R,"Feature Service":no,Feed:he,"Geocoding Service":void 0,"Geodata Service":void 0,"Geometry Service":void 0,"Geoprocessing Service":Io,"Globe Service":void 0,"Image Service":void 0,KML:void 0,"Map Service":no,"Network Analysis Service":void 0,"Real Time Analytic":he,"Relational Database Connection":void 0,"Scene Service":void 0,"Stream Service":void 0,Tool:void 0,"Vector Tile Service":R,WFS:void 0,WMS:void 0,WMTS:void 0,"Workflow Manager Service":void 0,"3D Web Scene":void 0,"Web Map":R,"Web Scene":R,Application:void 0,Dashboard:R,"Data Pipeline":R,"Data Store":void 0,"Desktop Application":void 0,"Excalibur Imagery Project":void 0,Form:Zo,"Hub Initiative":ho,"Hub Page":Oe,"Hub Site Application":_e,"Insights Model":R,"Insights Page":void 0,"Insights Theme":void 0,"Insights Workbook":void 0,Mission:void 0,"Mobile Application":void 0,Notebook:ge,"Oriented Imagery Catalog":R,"Ortho Mapping Project":void 0,"QuickCapture Project":Fe,"Site Application":_e,"Site Page":Oe,Solution:ho,StoryMap:fo,"Urban Model":void 0,"Web Experience Template":void 0,"Web Experience":lo,"Web Mapping Application":R,"Workforce Project":R,"360 VR Experience":l,"AppBuilder Extension":l,"AppBuilder Widget Package":l,"Application Configuration":l,"ArcGIS Pro Add In":l,"ArcGIS Pro Configuration":l,"ArcPad Package":l,"Basemap Package":l,"CAD Drawing":l,"CityEngine Web Scene":l,"Code Attachment":ho,"Code Sample":l,"Color Set":l,"Compact Tile Package":l,"CSV Collection":l,CSV:l,"Deep Learning Package":l,"Desktop Add In":l,"Desktop Application Template":l,"Desktop Style":l,"Document Link":l,"Explorer Add In":l,"Explorer Layer":l,"Explorer Map":l,"Feature Collection Template":l,"File Geodatabase":l,GeoJson:l,GeoPackage:l,"Geoprocessing Package":l,"Geoprocessing Sample":l,"Globe Document":l,"Image Collection":l,Image:l,"iWork Keynote":l,"iWork Numbers":l,"iWork Pages":l,"KML Collection":l,"Layer Package":l,"Layer Template":l,Layer:l,Layout:l,"Locator Package":l,"Map Document":l,"Map Package":l,"Map Template":l,"Microsoft Excel":l,"Microsoft Powerpoint":l,"Microsoft Word":l,"Mobile Basemap Package":l,"Mobile Map Package":l,"Mobile Scene Package":l,"Native Application":l,"Native Application Installer":l,"Native Application Template":l,netCDF:l,"Operation View":l,"Operations Dashboard Add In":l,"Operations Dashboard Extension":l,PDF:l,"Pro Layer Package":l,"Pro Layer":l,"Pro Map Package":l,"Pro Map":l,"Pro Report":l,"Project Package":l,"Project Template":l,"Published Map":l,"Raster function template":l,"Report Template":l,"Rule Package":l,"Scene Document":l,"Scene Package":l,"Service Definition":l,Shapefile:l,"Statistical Data Collection":l,Style:R,"Survey123 Add In":l,"Symbol Set":l,"Task File":l,"Tile Package":l,"Toolbox Package":l,"Vector Tile Package":l,"Viewer Configuration":l,"Visio Document":l,"Window Mobile Package":l,"Windows Mobile Package":l,"Windows Viewer Add In":l,"Windows Viewer Configuration":l,Workflow:rt,"Workflow Manager Package":l,"Administrative Report":void 0,"Apache Parquet":void 0,"API Key":void 0,"datastore catalog service":void 0,"Deep Learning Studio Project":void 0,"Earth Configuration":void 0,"Elevation Layer":void 0,"Esri Classifier Definition":void 0,"Export Package":void 0,"GeoBIM Application":void 0,"GeoBIM Project":void 0,"Geoenrichment Service":void 0,GML:void 0,"Hub Event":void 0,"Hub Initiative Template":void 0,"Hub Project":void 0,"Insights Data Engineering Model":void 0,"Insights Data Engineering Workbook":void 0,"Insights Workbook Package":void 0,"Knowledge Graph":void 0,"Knowledge Studio Project":void 0,"Link Chart":void 0,"Map Image Layer":void 0,Markup:void 0,OGCFeatureServer:void 0,"Pro Project":void 0,"Pro Report Template":void 0,"Route Layer":void 0,"Scene Layer Package":void 0,"Site Initiative":void 0,"StoryMap Theme":void 0,Table:void 0,"Video Service":void 0,Undefined:void 0,Unsupported:ho};var nt=null;function gs(e,o,r,t,n,s,i,m){return new Promise((a,c)=>{function d(){m&&m.abortController&&m.abortController.signal.aborted&&Ao(s,S,r,n,i,{consoleProgress:!0}).then(()=>c(xo(P)))}let p=Em(r)+1,I=10,h=(99-I)/p,P=[],S=[],y=!0;d();let v=(U,$,O,se)=>{if(I+=h*O,m.progressCallback)if($===u.Finished){let ye={event:Po[$],data:U};m.progressCallback(Math.round(I),m.jobId,ye)}else m.progressCallback(Math.round(I),m.jobId);return m.consoleProgress&&console.log(Date.now(),U,m.jobId??"",Po[$],I.toFixed(0)+"%",O,se?"==> "+se:""),$===u.Created?S.push(se):$===u.Failed&&(P.push(U),console.error("Item "+U+" has failed"),y=!1),y};f(n,"organization.isPortal")&&(r=um(r));let{buildOrder:b,itemsToBePatched:M}=Tr(r),ne=[];d(),hm(r,m.enableItemReuse??!1,n,i).then(()=>{d(),ym(r,f(n,"params.useExisting"),n,i).then(()=>{d(),r=Vt(r),b.forEach($=>{let O=bo(r,$);O.type==="Form"?M[$]=[]:O.type==="QuickCapture Project"?O.resources=O.resources.filter(se=>!se.endsWith("qc.project.json")):O.type==="Web Map"&&pm(M,O),ne.push(Sm(O,jr(e,o,O.resources,m.storageVersion),t,n,i,v,m.abortController))}),Promise.all(ne).then($=>{d(),P.length===0?(fm(M,n,$),a($)):Ao(s,S,r,n,i,{consoleProgress:!0}).then(()=>c(xo(P)))})})},U=>{console.error(U),c(x(U))})})}function pm(e,o){o.resources.some(r=>r.indexOf(ie)>-1)&&(e[o.itemId]=[])}function fm(e,o,r){let t=Object.keys(e);t.length>0&&(t=t.map(n=>o[n].itemId),r.forEach(n=>{t.includes(n.id)&&(n.postProcess=!0)}))}function um(e){let o=gm(e);lm(e,o);let r=Im(o),t=[],n=[];return Object.keys(r).forEach(s=>{r[s].forEach(m=>{let a=bo(e,m),c=f(a,"properties.syncViews");n.indexOf(a.itemId)>-1&&(t=t.concat(c)),c&&c.length>0&&E(a,"properties.syncViews",C(t)),t.indexOf(m)<0&&t.push(m),n.indexOf(a.itemId)<0&&n.push(a.itemId)}),t=[]}),e}function lm(e,o){return o.forEach(r=>{r.dependencies.forEach(t=>{e=e.map(n=>(f(n,"properties.service.isView")&&n.dependencies.indexOf(t)>-1&&n.itemId!==r.id&&(Array.isArray(n.properties.syncViews)||(n.properties.syncViews=[]),n.properties.syncViews.indexOf(r.id)<0&&n.properties.syncViews.push(r.id)),n))})}),e}function Im(e){let o={};return e.forEach(r=>{r.dependencies.forEach(t=>{Object.keys(o).indexOf(t)<0?o[t]=[r.id]:o[t].indexOf(r.id)<0&&o[t].push(r.id)})}),o}function gm(e){return e.reduce((o,r)=>(f(r,"properties.service.isView")&&o.push({id:r.itemId,dependencies:r.dependencies}),o),[])}function hm(e,o,r,t){return new Promise((n,s)=>{if(o){let i=xm(e,r,t),m=i.existingItemsDefs,a=i.existingItemInfos;Promise.all(m).then(c=>{let d=Is(c,a,r,t,!0),p=d.existingItemsDefs,I=d.existingItemInfos;Promise.all(p).then(h=>{Is(h,I,r,t,!1),hs(e,r,t).then(n)},h=>s(x(h)))},c=>s(x(c)))}else n(null)})}function ym(e,o,r,t){return new Promise(n=>{if(o){let s=[],i={},m=[];Object.keys(r.params).forEach(a=>{let c=r.params[a];c.itemId&&/[0-9A-F]{32}/i.test(a)&&(ys(r,a,c.itemId,c),s.push(A(c.itemId,t)),i[c.itemId]=a,m.indexOf(a)<0&&m.push(a))}),Pm(s,i,t).then(()=>{hs(m.map(a=>He(e,a)),r,t).then(n)})}else n(null)})}function Pm(e,o,r){return new Promise(t=>{e.length>0?Promise.all(e).then(n=>{let s=[];n.forEach(i=>{let m=o[i.id];if(i&&m&&i.typeKeywords){let a=`source-${m}`,c=i.typeKeywords;if(c.indexOf(a)<0){c.push(a);let d={id:i.id,typeKeywords:c};s.push(z(d,r))}}}),s.length>0?Promise.all(s).then(t,()=>t(void 0)):t(void 0)},()=>t(void 0)):t(void 0)})}function hs(e,o,r){return new Promise(t=>{let n=[],s=[],i=[],m=[];e.forEach(a=>{let c=o[a.itemId];if(c&&c.url&&c.itemId){if(a.item.type==="Feature Service"){let d=f(o,`params.${a.itemId}.enterpriseIDMapping`);Object.assign(o[a.itemId],$t(zt(a),c.url,c.itemId,d)),f(a,"properties.service.hasViews")&&Kt(a,o,!1)}s.indexOf(c.url)<0&&(n.push(a.item.type==="Feature Service"?N(c.url,{authentication:r}):A(c.itemId,r)),s.push(c.url),i.push(a.item.type),m.push(c.itemId))}}),n.length>0?Promise.all(n.map(a=>a.catch(c=>c))).then(a=>{if(Array.isArray(a)&&a.length>0){let c=[];a.forEach((d,p)=>{d.serviceItemId&&i[p]==="Feature Service"?Object.keys(o).forEach(I=>{let h=o[I];if(h.itemId&&h.itemId===d.serviceItemId){Ht(o,I,d.spatialReference),Se(o,`${I}.defaultExtent`,d.fullExtent||d.initialExtent);let P=(d.layers||[]).map(y=>y.id),S=(d.tables||[]).map(y=>y.id);c.push(Gt(s[p],P.concat(S),r))}}):(i[p]==="Feature Service"||f(d,"response.error"))&&(o=wm(o,m[p]))}),c.length>0?Promise.all(c).then(d=>{d.forEach(p=>{p.forEach(I=>{Object.keys(o).forEach(h=>{if(o[h].itemId===I.serviceItemId){let P="";Object.keys(o).some(y=>{if(o[y].itemId===I.serviceItemId)return P=y,!0});let S=f(o,`params.${P}.enterpriseIDMapping`);S?Object.keys(S).forEach(y=>{S[y].toString()===I.id.toString()&&ls(o,h,y,I.fields)}):ls(o,h,I.id,I.fields)}})})}),t(null)}):t(null)}else t(null)}):t(null)})}function ls(e,o,r,t){let n=f(e,`${o}.layer${r}`);n&&t&&(n.fields=t)}function wm(e,o){if(o){let r="";Object.keys(e).some(t=>{if(e[t].itemId===o)return r=t,!0}),r!==""&&delete e[r]}return e}function Is(e,o,r,t,n){let s=[Promise.resolve(null)],i=[void 0];return e&&Array.isArray(e)&&e.forEach((m,a)=>{if(Array.isArray(m?.results)){let c,d=m.results;if(d.length===1)c=d[0];else if(d.length>1)c=d.reduce((p,I)=>p.created>I.created?p:I);else if(n&&o[a]){let p=o[a],I=`tags:source-${p.itemId} type:${p.type} owner:${r.user.username}`;s.push(Ps(I,t)),i.push(o[a])}if(c){let p=o[a].itemId;p&&ys(r,p,c.id,c)}}}),{existingItemsDefs:s,existingItemInfos:i}}function ys(e,o,r,t){e[o]=Object.assign(e[o]||{},{def:Promise.resolve(g(t.type,r)),itemId:r,name:t.name,title:t.title,url:t.url,label:t.title})}function xm(e,o,r){let t=[],n=[];return e.forEach(s=>{if(s.item.type==="Group"){let i=o.user?.groups;Array.isArray(i)&&t.push(Promise.resolve({results:i.filter(m=>m.tags.indexOf(`source-${s.itemId}`)>-1||m.typeKeywords.indexOf(`source-${s.itemId}`)>-1).map(m=>(m.type="Group",m)),sourceId:s.itemId}))}else t.push(Ps(`typekeywords:source-${s.itemId} type:${s.item.type} owner:${o.user.username}`,r));n.push({itemId:s.itemId,type:s.item.type})}),{existingItemsDefs:t,existingItemInfos:n}}function Ps(e,o){return Ye({q:e,authentication:o,pagingParam:{start:1,num:100}})}function Sm(e,o,r,t,n,s,i){function m(){if(i&&i.signal.aborted)throw new Error("Operation was cancelled")}let a=e.itemId;if(e.dependencies=e.dependencies||[],!t.hasOwnProperty(e.itemId)||!f(t[e.itemId],"def")){m();let c,d=u.Unknown,p;t[e.itemId]=t[e.itemId]||{},t[e.itemId].def=new Promise(I=>{let h=e.dependencies.reduce((y,v)=>{let b=f(t,`${v}.def`);return b&&y.push(b),y},[]),P=f(e,"properties.syncViews"),S=P&&P.length>0?P.reduce((y,v)=>{let b=f(t,`${v}.def`);return b&&y.push(b),y},h):h;Promise.all(S).then(()=>{m();let y=e.type;if(p=yo[y],e.type==="Geoprocessing Service"&&(p=e.item.typeKeywords.indexOf("Web Tool")>-1?p:nt),!p||p===nt)throw p===nt?(d=u.Ignored,new Error):(d=u.Failed,new Error);return Kr(r,o)}).then(y=>(m(),e.item.thumbnail=y,p.createItemFromTemplate(e,t,n,s))).then(async y=>{if(m(),y.id==="")throw d=u.Failed,new Error("handled");if(c=y,c.item.item.url&&Se(t,a+".url",c.item.item.url),o.length>0){let v=c.id;if(e.type==="Form"){let b;if(o=o.filter(M=>M.filename.endsWith(".zip")?(b=M,!1):!0),b){m();let M=await gr(b.url,r);await Xe(M,v,n)}}return m(),Br(r,o,a,t.folderId,v,n,c.item,t)}else return Promise.resolve(null)}).then(()=>{I(c)}).catch(y=>{(!y||y.message!=="handled")&&s(a,d===u.Unknown?u.Failed:d,0),I(g(e.type))})})}return t[a].def}function Em(e){return e.reduce((o,r)=>o+(r.estimatedDeploymentCostFactor||1),0)}function ws(e,o,r){let t=e.filter(n=>n.groups&&n.groups.length>0);return Promise.all(t.map(n=>{let s=n.groups.reduce((i,m)=>Le(f(o,`${m}.itemId`),i),[]);if(vo(n)&&!f(o,"locationTracking.userIsOwner")){let i=f(n,"item.properties.trackViewGroup"),m=f(o,"locationTracking.owner");if(i&&m){let a=s.filter(c=>c===w(i,o));if(a.length!==s.length){let c=s.filter(d=>d!==i);return Promise.all([ve(a,n.itemId,r,m),ve(c,n.itemId,r)])}else return ve(s,n.itemId,r,m)}}else return ve(s,n.itemId,r)}))}function xs(e,o,r,t,n){let s=[];e&&(s=r.filter(c=>c.type!=="Group").map(c=>mt({originItemId:e,destinationItemId:c.id,relationshipType:"Solution2Item",authentication:t})));let i=ws(o,n,t),a=r.filter(c=>c.postProcess).reduce((c,d)=>{let p=yo[d.type];return p&&p.postProcess&&c.push(p.postProcess(d.id,d.type,r,He(o,d.id),o,n,t)),c},[]);return Promise.all([i].concat(a,s))}function Ss(e,o){e.sort((r,t)=>o.indexOf(r.itemId)-o.indexOf(t.itemId))}async function Ts(e,o,r,t,n){function s(){if(n&&n.abortController&&n.abortController.signal.aborted)throw new Error("Operation was cancelled")}s(),n.storageVersion=bt(r);let i=n.storageAuthentication?n.storageAuthentication:t,m=n.templateDictionary??{},a=xr(r.templates,m);r.templates=a.deployTemplates,Fm(n,o,m,t),n.additionalTypeKeywords&&(o.typeKeywords=[].concat(o.typeKeywords,n.additionalTypeKeywords));let c="thumbnail",d=Promise.resolve(null);if(!n.thumbnail&&n.thumbnailurl){c=Rt(n.thumbnailurl)||c;let k=ft(n.thumbnailurl,"w=400");delete n.thumbnailurl,d=Ot(k,c,i,[400])}Om(r,m);let p=await Promise.all([Tt("",t),vt(t),To(t),Ft(t),d]),[I,h,P,S,y]=p;!n.thumbnail&&y&&(n.thumbnail=y),r.templates=vm(r.templates),m.isPortal=I.isPortal,m.organization=Object.assign(m.organization||{},I),m.portalUrls=h.urls,m.portalBaseUrl=_m(I,t),m.user=P,m.user.folders=S.folders,m.user.groups=S.groups.filter(k=>k.owner===m.user.username),s();let v=await To(t);m.workflowBaseUrl=await wr(t,I,v.orgId),Ut(I,P,m,r.templates);let b=Wt(m,t),M=tr(o.title,m,t),ne=I.defaultExtent,ke=er(ne,void 0,{wkid:4326},I.helperServices.geometry.url,t);s();let U=await Promise.all([M,ke,b]),[$,O,se]=U,ye=$.folder.id;m.folderId=ye,m.solutionItemExtent=O.xmin+","+O.ymin+","+O.xmax+","+O.ymax,m.organization.defaultExtentBBox=[[O.xmin,O.ymin],[O.xmax,O.ymax]],m.locationTrackingEnabled&&Se(m,"locationTracking.userIsOwner",se);let Y;if(!n.dontCreateSolutionItem){o.categories=[];let k={...ze(o),type:"Solution",typeKeywords:["Solution"]};n.additionalTypeKeywords&&(k.typeKeywords=["Solution"].concat(n.additionalTypeKeywords)),s(),k.thumbnail=n.thumbnail,Y=(await te(k,{},t,ye)).id,s(),await at({id:Y,authentication:t}),m.solutionItemId=Y,o.id=Y,o.tryitUrl=bs(o.tryitUrl,e,Y),o.url=bs(o.url,e,Y)}s();let st=await gs(i.portal,e,r.templates,i,m,Y,t,n);if(r.templates=r.templates.map(k=>(s(),k.itemId=f(m,`${k.itemId}.itemId`),k.dependencies=k.dependencies.map(Pe=>dt(m,`${Pe}.itemId`,Pe)),k)),Ss(r.templates,st.map(k=>k.id)),s(),await xs(Y,r.templates,st,t,m),!n.dontCreateSolutionItem){o.typeKeywords=[].concat(o.typeKeywords,["Deployed"]);let k=o.typeKeywords.indexOf("Template");k>=0&&o.typeKeywords.splice(k,1),r.templates=r.templates.map(Pe=>vs(Pe)),Tm(a,r),r.templates=Rm(r.templates,m),r.templates=Sr(r.templates,m),o.data=w(r,m),m.params&&(o.data.params=m.params),s(),await z(o,t,ye)}return o.id}function Tm(e,o){e.workflowManagedTemplates.forEach(r=>{o.templates.push(vs(r))})}function vm(e){return e.map(o=>{if(o.item){let r=o.item.typeKeywords||[];r.push("source-"+o.itemId),o.item.typeKeywords=r}return o})}function Fm(e,o,r,t){return["title","snippet","description","tags"].forEach(n=>{e[n]=e[n]??o[n],e[n]&&(o[n]=e[n],r[n]=e[n])}),!e.thumbnailurl&&o.thumbnail&&(e.thumbnailurl=Gr(t.portal,o.id,o.thumbnail),delete o.thumbnail),e}function Om(e,o){e.templates=e.templates.map(r=>{if(r.type==="Feature Service"){let t="params.";r=Es(r,"item.spatialReference.wkid",t,o),r=Es(r,"properties.service.spatialReference.wkid",t,o)}return r})}function Es(e,o,r,t){let n=f(e,o);return n&&typeof n=="string"&&n.indexOf(r)>-1&&E(e,o,w(n,t)),e}function bs(e,o,r){let t;if(e&&e.indexOf(o)>-1){let n=new RegExp(o,"g");t=e.replace(n,r)}else t=e;return t}function _m(e,o){let r="https",t=f(e,"urlKey"),n=f(e,"customBaseUrl"),s=f(e,"portalHostname");return t&&n?`${r}://${t}.${n}`:s?`${r}://${s}`:o.portal.replace("/sharing/rest","")}function Rm(e,o){let r=e.reduce((t,n)=>(n.type==="Group"&&t.push(n.itemId),t),[]);return Object.keys(o).forEach(t=>{let n=o[t].itemId;r.indexOf(n)>-1&&e.forEach(s=>{s.groups=s.groups.map(i=>i===t?n:i)})}),e}function vs(e){let o=["itemId","type","dependencies","groups"],r=Object.keys(e).filter(t=>o.indexOf(t)<0);return xe(e,r),e}function Fs(e,o){return typeof e=="string"?Promise.all([A(e,o),q(e,o)]).then(([r,t])=>Co({item:r,data:t})):km(e)?Co(e):Promise.reject(x("getSolutionTemplateItem must be passed an item id or a model object"))}function Os(e,o,r){return e.jobId=e.jobId??o.id,e.title=e.title??o.title,e.snippet=e.snippet??o.snippet,e.description=e.description??o.description,e.tags=e.tags??o.tags,e.thumbnailurl=o.thumbnail?Ct(o.id,o.thumbnail,!1,r):null,e}function km(e){let o=!1,r=t=>t!=null&&typeof t!="string"&&!Array.isArray(t)&&typeof t=="object";return r(e)&&(o=["item","data"].reduce((t,n)=>(t&&(t=r(e[n])),t),!0)),o}function _s(e){let o=e.typeKeywords,r=!1;return e.type==="Solution"&&o.indexOf("Solution")>-1&&(o.indexOf("Template")>-1||o.indexOf("solutionTemplate")>-1)&&(r=!0),e.type==="Web Mapping Application"&&o.indexOf("hubSolutionTemplate")>-1&&(r=!0),r}async function Ld(e,o,r){if(!e)return Promise.reject(x("The Solution Template id is missing"));function t(){if(r&&r.abortController&&r.abortController.signal.aborted)throw new Error("Operation was cancelled")}let n=r||{};n.progressCallback&&n.progressCallback(1,n.jobId);let s=n.storageAuthentication?n.storageAuthentication:o;return t(),Fs(e,s).then(i=>(t(),_s(i.item)?Promise.all([Promise.resolve(i.item),Promise.resolve(i.data)]):Promise.reject(x(`${i.item.id} is not a Solution Template`)))).then(i=>{let[m,a]=i,c=new pt,d=ze(m,c),p=a,I=d.id;return n=Os(n,d,s),gt(d),t(),Ts(I,d,p,o,n)}).then(i=>(n.progressCallback&&n.progressCallback(100,n.jobId),i),i=>(n.progressCallback&&n.progressCallback(1,n.jobId),Promise.reject(i))).catch(i=>{throw typeof i=="string"&&Am(i,o),i})}function Am(e,o){let r={consoleProgress:!0,sendToRecycling:!1};$r(e.trim(),o,r)}export{Ps as a,Ld as b};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{b}from"./PNZWOZIO.js";import{b as u}from"./A437YTBB.js";import{a as h}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as p}from"./JKJ2E3QC.js";import{C as o,D as s,E as r,H as c,I as d,h as n,i,o as l}from"./BT3PZ755.js";import"./Q253POJJ.js";var f=n`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-foreground-2)}.panel-override{--calcite-panel-background-color: var(--calcite-color-foreground-2);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-base)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}@media(max-width:800px){.filter{display:none}.filter-button{display:block;position:absolute;top:var(--calcite-spacing-sm);left:var(--calcite-spacing-sm);z-index:999}}@media(min-width:800px){.filter-button{display:none}}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative}.height-100{height:100%}`,a=class extends r{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.filters=[],this.isMobile=!1,this._translations=h({name:"solutions-deployed-shell",blocking:!0}),this._isMobileContextConsumer=u({context:b,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedFilterPanel=o(),this._solutionsDeployedPanelRef=o(),this.filterRemoved=l(),this.tokenRefreshed=l()}static{this.properties={solutionsCount:9,filterOpen:16,filters:16,isMobile:16,_translations:16}}static{this.styles=f}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){if(this._solutionsDeployedPanelRef.value?.setSearchOptions(e),"owner"in e){let t=e.owner==="organization";this._solutionsDeployedFilterPanel.value.changeOwnerFilter(!t,!0)}else("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}render(){let e=this.filterOpen?"chevron-left":"chevron-right",t=this.isMobile?"justify-content-end":"";return i`<calcite-shell class="position-relative"><calcite-button appearance=outline-fill class="filter-button mock-fab z-index-2" icon-start=${e??d} kind=neutral @click=${this._toggleFilter} scale=m></calcite-button><calcite-panel class="border-override header-override panel-override z-index-1"><div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-label class="label-override flex-shrink-0" layout=inline>${this._translations.numberOfSolutions.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsAllPanel()}</calcite-panel></calcite-shell>`}_getSolutionsAllPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} @searchTermSet=${t=>this._solutionsDeployedFilterPanel.value.changeSearchFilter(t.detail.searchTerm,!1)} style=${c(e)} ${s(this._solutionsDeployedPanelRef)}></solutions-deployed-panel>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_toggleFilter(){this.filterOpen=!this.filterOpen}};p("solutions-deployed-shell",a);export{a as SolutionsDeployedShell};
@@ -1,18 +0,0 @@
1
- /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
- See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.14 */
4
- import{a as P,c as C}from"./LLKMGYSP.js";import{a as E}from"./IRZ5Q6P6.js";import e from"./7C563I5Y.js";import{a as L,c as A}from"./PNZWOZIO.js";import a from"./HHCUJ2TU.js";import{b as v}from"./A437YTBB.js";import{J as m,L as _,M as k,ra as M}from"./Y4RGBYW4.js";import"./YYLWNW2V.js";import"./EW33PWBK.js";import"./E7X4JPJZ.js";import"./6MQTHJAJ.js";import"./FB7AKBYZ.js";import"./2AXIORVV.js";import"./SCHYFVMA.js";import"./2PQ2DS43.js";import"./RFLPQTHR.js";import"./J4PD5ZQ7.js";import"./6KL3NJRR.js";import"./HCGGITXI.js";import"./ACRHJFIK.js";import{k as R}from"./GZ4MUQVE.js";import"./3XM3G7I5.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import"./MOSTA2DP.js";import"./32CJQFYT.js";import{a as $}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as x}from"./JKJ2E3QC.js";import{C as c,D as d,E as y,G as h,H as w,I as u,h as b,i as s,o as g}from"./BT3PZ755.js";import"./Q253POJJ.js";export default $arcgis.t(([,{b:S,c:I}])=>{var D=b`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.cursor-default{cursor:default}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:1px;border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:0px;margin-block-end:0px}calcite-label{--calcite-label-margin-bottom: 0px}.padding-1{padding:1rem}.padding-1-5{padding:1.5rem}.padding-2px{padding:2px}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-5{padding-bottom:1.5rem}.padding-top-1{padding-top:1rem}.padding-top-1-5{padding-top:1.5rem}.padding-top-1-2{padding-top:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-end-2{padding-inline-end:2rem}.padding-start-1{padding-inline-start:1rem}.margin-bottom-1{margin-bottom:1rem}.margin-bottom-1-5{margin-bottom:1.5rem}.margin-end-1{margin-inline-end:1rem}.margin-top-0{margin-top:0}.margin-top-1{margin-top:1rem}.margin-sides-0-5{margin-left:.5rem;margin-right:.5rem}.margin-block-start-end-0{margin-block-start:0px;margin-block-end:0px}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.button-width{width:auto}}.image-width{width:395px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}.width-full{width:100%}.card-group{overflow:hidden}calcite-card{width:450px}@media(max-width:1496px){calcite-card{width:calc(100% / 3 - .5rem)}}@media(max-width:1100px){calcite-card{width:calc(50% - .5rem)}}@media(max-width:550px){calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(50%);filter:brightness(50%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:2px solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer;padding:2px}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:1.2rem}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-foreground-2)}.back-color-override-1{background-color:var(--calcite-color-foreground-1)}.title-font{font-size:2rem;line-height:1.1;color:var(--calcite-color-text-1)}.line-height-1-5{line-height:1.5}.font-1rem{font-size:1rem}.font-color-1{color:var(--calcite-color-text-1)}h1{font-weight:unset;margin:0;padding:0}.item-padding{--calcite-internal-accordion-item-padding: 1.5rem}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-foreground-1)}`,f=class extends y{constructor(){super(),this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._templates=[],this._translations=$({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._authContextConsumer=v({context:A,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=c(),this._deployingDialogRef=c(),this._overviewAccordionItemElement=c(),this._privilegePopoverRef=c(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=c(),this._relatedResourcesAccordionItemElement=c(),this._screenshotsAccordionItemElement=c(),this._screenshotsDialogRef=c(),this._screenshotsElement=c(),this._termsOfUseAccordionItemElement=c(),this._userOptions=[],this._userSessionContextConsumer=v({context:L,subscribe:!0}),this._youMayAlsoLikeAccordionItemElement=c(),this._youMayAlsoLikeElement=c(),this.templatesFetched=g(),this.itemPropertiesFetched=g(),this.sortTypeChanged=g(),this.tokenRefreshed=g(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={card:0,_showScreenshotsShowMore:16,_showYouMayAlsoLikeShowMore:16,_isScreenshotsRowExpanded:16,_isYouMayAlsoLikeRowExpanded:16,_itemProperties:16,_missingPrivilegeMessages:16,_screenshotsRowBaseHeight:16,_templates:16,_translations:16,_youMayAlsoLikeBaseHeight:16}}static{this.styles=D}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel),this.listenOn(window,"detailsCardSelected",this._cleanupPanel)}loaded(){this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return s`<h1><calcite-panel class="back-color-override padding-top-1"><div class=${`${e} padding-1-5 back-color-override-1 margin-bottom-1-5`} id=solution-details-row>${this._getSolutionRow()}</div><div class=${h(e)}>${this._getScreenshotsRow()}</div><div class=${h(e)}>${this._getOverviewRow()}</div><div class=${h(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?s`<div class=${h(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?s`<div class=${h(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${h(e)}>${this._getTermsOfUseRow()}</div><solution-deploy-dialog .card=${this.card} @deployFailed=${this._closeDialogs} @deployProgressEnd=${this._closeDialogs} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${d(this._deployDialogRef)}></solution-deploy-dialog><solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${d(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} ${d(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></h1>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let a=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),o=a?.offsetHeight?a.offsetHeight+40:0;o>t&&(t=o)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight},100)}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,a=this._missingPrivilegeMessages?.bulletedMessages||[],o=a.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],r=l.length>0;return s`<div class="display-flex flex-direction-row"><div class="padding-end-2 image-width"><img alt=${this.card?.title??u} src=${e??u}></div><div class="display-flex flex-direction-row">${this._getTextSection(i,o,r,t,a,l)}${this._getButtons(i||o||r||!this._authContextConsumer.value?.IsSignedIn,this._authContextConsumer.value?.IsEnterprisePortal)}</div></div>`}_getTextSection(e,t,i,a,o,l){return s`<div class="display-flex flex-direction-column padding-end-1"><div class="display-flex flex-direction-row align-items-baseline"><h2 class="padding-top-1 title-font margin-top-0 margin-bottom-1-5">${this.card?.title}</h2>${this.card?.categories?.some(r=>r.includes("New Release"))&&s`<calcite-chip class="margin-top-1 margin-bottom-1-5 margin-sides-0-5" kind=brand .label=${this._translations.new} scale=m icon=mega-phone>${this._translations.new}</calcite-chip>`||""}</div><calcite-label scale=l class="font-1rem padding-end-1">${this.card?.snippet}</calcite-label>${e||t||i?s`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(a,o,l)}</div>`:""}</div>`}_getButtons(e,t){let i=this._itemProperties?.demoURL||"",a=i?"":"display-none";return s`<div class="display-flex flex-direction-column button-width"><calcite-button class="padding-bottom-1" .disabled=${e} icon-end=arrow-bold-right icon-flip-rtl=end @click=${()=>this._openDeploy()} scale=l>${this._translations.deploy}</calcite-button><calcite-button appearance=outline-fill kind=neutral class=${`padding-bottom-1 ${a}`} @click=${()=>this._openUrl(i)} scale=l>${this._translations.watchDemo}</calcite-button><calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1" @click=${()=>this._openUrl(this.card?.learnMoreUrl||"")} scale=l>${this._translations.learnMore}</calcite-button>${!t&&s`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=l></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let a="solutions-missing-privileges-notice",o=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges;return s`<div><calcite-notice class="margin-inline-unset" kind=warning open><div slot=message>${`${o}`}</div><calcite-action icon=information id=${a} slot=actions-end .text=${o}></calcite-action></calcite-notice><calcite-popover closable .label=${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading} overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${d(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column"><span class="padding-bottom-1">${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getSpanMessages(e,"padding-bottom-1")}${this._getBulletedMessages(t)}${this._getSpanMessages(i,"padding-top-1")}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>s`<span class=${h(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?s`<ul>${e.map(t=>s`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._screenshotsAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>${this._translations.screenshots}</h3><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${d(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview||[];return s`<calcite-card-group class="card-group" .label=${this._translations.screenshots}>${e.map(t=>this.card?.id?s`<calcite-card class="cursor-pointer" .label=${t.alt} @click=${()=>this._openScreenshotGallery(t)}><div class="card-image-wrap" slot=thumbnail><img alt=${t.alt??u} class="thumbnail card-image" slot=thumbnail src=${I(this.card.id||"",t.name,this._authContextConsumer.value)??u}><div class="hover-text">${this._translations.openInGallery}</div></div></calcite-card>`:"")}</calcite-card-group>`}_openScreenshotGallery(e){let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}_getOverviewRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._overviewAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>${this._translations.solutionOverview}</h3>${this._getDescriptionRow()}${this._getRequirementsRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return s`<div class="display-flex flex-direction-column"><p class="font-color-1 font-1rem margin-top-0 line-height-1-5" .innerHTML=${this.card?.description??""}></p></div>`}_getRequirementsRow(){let e=this._getRequirements();return s`<div class="display-flex flex-direction-column font-1rem font-color-1"><p>${this.card?.title?this._translations.requirementsSubText.replace("{{solutionTitle}}",this.card.title):""}</p>${e.map(t=>s`<ul class="display-flex flex-direction-row padding-top-1-2 font-1rem font-color-1"><li>${t}</li></ul>`)}</div>`}_getRequirements(){return this._itemProperties?.requirements||[]}_getInformationProductsRow(){return s`<div class="display-flex flex-direction-column padding-top-1-5 font-1rem line-height-1-5 font-color-1"><span>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.item}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>s`<calcite-table-row><calcite-table-cell><p class="display-flex flex-direction-row font-1rem font-color-1">${e.item}</p></calcite-table-cell><calcite-table-cell><p class="display-flex flex-direction-row font-1rem font-color-1">${e.description}</p></calcite-table-cell><calcite-table-cell><p class="display-flex flex-direction-row font-1rem font-color-1">${e.userType}</p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._releaseNotesAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>${this._translations.releaseNotes}</h3><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>s`<calcite-table-row><calcite-table-cell><p class="display-flex flex-direction-row font-1rem font-color-1">${e.version}</p></calcite-table-cell><calcite-table-cell alignment=start>${e.description.map(t=>s`<ul class="display-flex flex-direction-row font-1rem font-color-1"><li>${t.note}</li></ul>`)}</calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._relatedResourcesAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>${this._translations.relatedResources}</h3><div class="display-flex flex-direction-row">${e.map(t=>{console.log(t),s`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,a=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",o=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._youMayAlsoLikeAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>${this._translations.youMayAlsoLike}</h3><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${w(o)} ${d(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,r)=>s`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${l} class="padding-2px"></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${a} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._termsOfUseAccordionItemElement)}><h3 class="margin-block-start-end-0" slot=content-start>Terms of Use</h3><div class="display-flex flex-direction-column"><p class="font-color-1 font-1rem margin-top-0 line-height-1-5" .innerHTML=${this._translations.copyrightHeading??""}></p><p class="font-color-1 font-1rem margin-top-0 line-height-1-5" .innerHTML=${this._translations.apacheLicense??""}></p><calcite-link class="margin-top-0 line-height-1-5" .href=${this._translations.apacheLicenseUrl}>${this._translations.apacheLicenseUrl}</calcite-link><p class="font-color-1 font-1rem margin-top-1 line-height-1-5" .innerHTML=${this._translations.asIsBasis??""}></p></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._authContextConsumer.value.IsSignedIn){let e=this._deployDialogRef.value;e&&(e.userOptions=this._userOptions,e.open=!0)}else this._authContextConsumer.value.signIn()}_openUrl(e){window.open(e,"_blank")}async _detailsCardSelected(e){this.card=e.detail,this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){let e=this._userSessionContextConsumer.value,t=await M(this.card.id,e),i=await R(this.card.id,e);this._itemProperties=i.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=P(t,this.card.typeKeywords,this._authContextConsumer.value);this._privileges=e.username?a:[],this._userPrivileges=this._authContextConsumer.value?this._authContextConsumer.value.PortalUserPrivileges:[];let o=this._privileges.filter(l=>!this._userPrivileges.includes(l));this._missingPrivilegeMessages=C(this._translations,o),(t.params?this.formatParams(t.params):Promise.resolve([])).then(l=>{this._userOptions=l}),this._templates=t.templates,this.templatesFetched.emit(t.templates)}formatParams(e){let t=this._userSessionContextConsumer.value,i=[],a=e?Object.keys(e):[],o={id:"",props:[],accordionDisplay:!1};if(a.length>0){let l=[];return a.forEach(r=>{let p=e[r];p.valueType&&p.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(r,"Feature Service",t.username||""))}),Promise.all(l).then(r=>{let p={};return r.forEach(n=>{if(n.query&&n.results&&n.results.length>0){let T=n.query.split(" ")[0].replace("typekeywords:source-","");p[T]={resultId:n.results[0].id,response:n.results[0]}}}),a.forEach(n=>{if(n==="serviceLearnMore"){this._configureLearnMore=e[n],alert(this._configureLearnMore),delete e[n];return}e[n].enterpriseIDMapping&&(this._customDeploymentMappings[n]=e[n].enterpriseIDMapping),o.id=n,p[n]&&(e[n].existingItemId=p[n].resultId,this.updateUserProp(e[n],p[n].response)),this.updateOption(e[n],o,n)}),i.push(o),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let a=this._userSessionContextConsumer.value;return E(`typekeywords:source-${e} type:${t} owner:${i}`,a)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",a=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),o=_(t,i?"url":"type","")||"",l=o!==""&&a.test(o);return e.responseValue=l?o:"",e.name=l&&m(t,"name")||"",e.title=l&&m(t,"title")||"",e.itemType=l?m(t,"type"):e.itemType,e.validId=l,e.itemUrl=S(t.id,this._authContextConsumer.value),l}updateOption(e,t,i){let a=e.default||"",o=typeof a,l=a.toString();this._setFeatureServiceProps(e);let r=this.getValidation(e,l);t.props.push({id:i,outType:o,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...r,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&k(e,"attributes.required","true")}getValidation(e,t){let i="",a=m(e,"validation.message")||"",o=!0;return m(e,"attributes.required")==="true"&&(i=_(e,"validation.expression","\\S{1,}"),o=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,a=this._translations.configure.invalidID),{valid:o,validation:{expression:i,message:a}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.shadowRoot?.getElementById("solution-details-row")?.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._expandAccordions()}_deployProgressStart(e){this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(){this._deployingDialogRef.value.close(),this._deployDialogRef.value.open=!1,this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}};x("solution-details-panel",f);return f},a,e)