@esri/solutions-components 5.1.0-next.158 → 5.1.0-next.159

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 (539) hide show
  1. package/dist/cdn/{O4YFJXGF.js → 22BJ76LD.js} +1 -1
  2. package/dist/cdn/24DOFCUH.js +2 -0
  3. package/dist/cdn/{OBD737XY.js → 26EKIZQ3.js} +1 -1
  4. package/dist/cdn/{DOXKOGC2.js → 26QXT6ZT.js} +1 -1
  5. package/dist/cdn/{A7PEHKA2.js → 2OCRSUSE.js} +1 -1
  6. package/dist/cdn/{NC34DM4N.js → 2UCURPVT.js} +1 -1
  7. package/dist/cdn/{DZB3263I.js → 2X3SHREV.js} +1 -1
  8. package/dist/cdn/{YXCHECNE.js → 3A5WS2II.js} +1 -1
  9. package/dist/cdn/{LQABMPPT.js → 3D5OFNW5.js} +1 -1
  10. package/dist/cdn/{IO5DIUTT.js → 3E7MYA66.js} +1 -1
  11. package/dist/cdn/{YWXDNRE2.js → 3IHDWRXV.js} +1 -1
  12. package/dist/cdn/3IO2JXVB.js +2 -0
  13. package/dist/cdn/{OOP3DI7Y.js → 3KRXI2TQ.js} +1 -1
  14. package/dist/cdn/{GDDMG3Q4.js → 3NKGACT7.js} +1 -1
  15. package/dist/cdn/{7Y32UJS4.js → 3QIWKYQY.js} +1 -1
  16. package/dist/cdn/3SDEIO24.js +2 -0
  17. package/dist/cdn/{N3ENJ6TJ.js → 3Z7EYDFO.js} +2 -2
  18. package/dist/cdn/{57DEUKTH.js → 4ALVWOG7.js} +1 -1
  19. package/dist/cdn/{QLOWHDGX.js → 4OKIVS32.js} +1 -1
  20. package/dist/cdn/{YKSW755L.js → 4PNNKMNH.js} +1 -1
  21. package/dist/cdn/{Y3Q6SFIV.js → 55QBAVPE.js} +1 -1
  22. package/dist/cdn/{7ZJQQBSR.js → 57SZHKM5.js} +1 -1
  23. package/dist/cdn/{MDNGEZ2V.js → 5BN62I7L.js} +1 -1
  24. package/dist/cdn/{LKVCSRAJ.js → 5EXKQXLZ.js} +1 -1
  25. package/dist/cdn/{JQANOMEB.js → 5F6KCXYP.js} +1 -1
  26. package/dist/cdn/{RYETW3AF.js → 5JBZ6L5Q.js} +1 -1
  27. package/dist/cdn/{ZQAD6SUE.js → 5K5GHKON.js} +1 -1
  28. package/dist/cdn/{KP3AJBAI.js → 5VIB2BPJ.js} +1 -1
  29. package/dist/cdn/{X26QOEYN.js → 62CPZJO5.js} +1 -1
  30. package/dist/cdn/{5XDPNTYE.js → 62QGEVBO.js} +1 -1
  31. package/dist/cdn/{VCL4OTSQ.js → 632J5NXN.js} +1 -1
  32. package/dist/cdn/{67UYAVGW.js → 6LHIJG7J.js} +1 -1
  33. package/dist/cdn/{SSZBIVTK.js → 6XWFCHCJ.js} +1 -1
  34. package/dist/cdn/73EY5SIB.js +2 -0
  35. package/dist/cdn/{HGONAEKC.js → 7FZDDT7D.js} +1 -1
  36. package/dist/cdn/{CSW2JRVE.js → 7MNSZGMB.js} +1 -1
  37. package/dist/cdn/{5GHZQ66V.js → 7NUJ4IS5.js} +1 -1
  38. package/dist/cdn/{WFHPQFNH.js → 7OHSJ5SV.js} +1 -1
  39. package/dist/cdn/{HEI6GMZN.js → 7VQB43WL.js} +1 -1
  40. package/dist/cdn/{GXIGM56I.js → 7YJMTZFC.js} +1 -1
  41. package/dist/cdn/{LI7Q44Z6.js → 7ZJBP3SS.js} +1 -1
  42. package/dist/cdn/{3SRDS4KQ.js → 7ZSO7MSX.js} +1 -1
  43. package/dist/cdn/{CA4YH6B3.js → A2VP46QZ.js} +1 -1
  44. package/dist/cdn/{MPSNK45A.js → A62EWI7L.js} +1 -1
  45. package/dist/cdn/{MSUQVQBX.js → ACTJS4TX.js} +3 -3
  46. package/dist/cdn/{LF3HQQMS.js → AEALFROI.js} +1 -1
  47. package/dist/cdn/{UNJV2PKC.js → AM6QSTRH.js} +1 -1
  48. package/dist/cdn/{MZXUUA7G.js → AS6VINEU.js} +1 -1
  49. package/dist/cdn/{KXT52OBS.js → AYJ5ZPU6.js} +1 -1
  50. package/dist/cdn/{2UIPY2ED.js → BATEZR3T.js} +1 -1
  51. package/dist/cdn/{C5PGLCTJ.js → BEKMMPB7.js} +1 -1
  52. package/dist/cdn/{AXFB53AQ.js → BQ7O62CG.js} +1 -1
  53. package/dist/cdn/{YELTRFZZ.js → BVG2SE55.js} +1 -1
  54. package/dist/cdn/{KZSBETIP.js → C5BQAX2M.js} +1 -1
  55. package/dist/cdn/{M7GWNGTJ.js → CARCFJRD.js} +1 -1
  56. package/dist/cdn/{DOHGEFCF.js → CAXDDYGL.js} +1 -1
  57. package/dist/cdn/{NVEAYDYI.js → CAYWD56D.js} +1 -1
  58. package/dist/cdn/{CRDJXHSQ.js → CFJ4FEY3.js} +1 -1
  59. package/dist/cdn/{KZFMPHCV.js → CLRLOHTR.js} +1 -1
  60. package/dist/cdn/{M5ZEJF3J.js → CPOZIWVH.js} +1 -1
  61. package/dist/cdn/{UVHM4PU5.js → CUG5CROK.js} +1 -1
  62. package/dist/cdn/{O7O4T4G4.js → CYEFGPUM.js} +3 -3
  63. package/dist/cdn/{XLB42ULH.js → CZVHNBQN.js} +1 -1
  64. package/dist/cdn/{F7FCYGIB.js → D2EVPZ5K.js} +1 -1
  65. package/dist/cdn/{JJV3TD42.js → D4TEADUS.js} +1 -1
  66. package/dist/cdn/{CZJPS7CF.js → D52QVYYU.js} +1 -1
  67. package/dist/cdn/{66VSNZFA.js → D5JF7XQN.js} +1 -1
  68. package/dist/cdn/{35HRMJUI.js → D6ZGMSQF.js} +1 -1
  69. package/dist/cdn/{MWFCDDBC.js → D7G4LZRG.js} +1 -1
  70. package/dist/cdn/{73O55ZBJ.js → DGQQF6WF.js} +1 -1
  71. package/dist/cdn/{JTENM3PQ.js → DJYT367X.js} +1 -1
  72. package/dist/cdn/{YAUQSIXM.js → DKQRECGR.js} +1 -1
  73. package/dist/cdn/{EPKRNLRL.js → DKXVDY6L.js} +1 -1
  74. package/dist/cdn/{RFSPNC4B.js → DLDR5V2P.js} +1 -1
  75. package/dist/cdn/{7KEONOFN.js → DMENKRSP.js} +1 -1
  76. package/dist/cdn/{DWAYOC2L.js → DWKKP34X.js} +1 -1
  77. package/dist/cdn/{JDCZUOU6.js → E25ZWVBK.js} +1 -1
  78. package/dist/cdn/{HYB5LBMY.js → E7CWZMS4.js} +1 -1
  79. package/dist/cdn/{AVBZ2B75.js → EF2TTWG5.js} +1 -1
  80. package/dist/cdn/{XDZPQACK.js → EG5KPZQ2.js} +1 -1
  81. package/dist/cdn/{6BIHAEOS.js → EHSIODIO.js} +1 -1
  82. package/dist/cdn/{SNJPMQCE.js → EKK5FR2V.js} +1 -1
  83. package/dist/cdn/{AOJP5RQ6.js → EMPMQDRQ.js} +1 -1
  84. package/dist/cdn/{XBFG3KX6.js → ENLFOYSI.js} +1 -1
  85. package/dist/cdn/{6Q52JBZW.js → ES63XK5X.js} +1 -1
  86. package/dist/cdn/EXBEKVP5.js +2 -0
  87. package/dist/cdn/{NM2PQIH6.js → EYJQEBDF.js} +1 -1
  88. package/dist/cdn/{EF4LWVLU.js → F3A22NPP.js} +1 -1
  89. package/dist/cdn/{Y6KZTCZD.js → F5SUVMAE.js} +1 -1
  90. package/dist/cdn/{CTREZRNZ.js → F6J3OLVZ.js} +1 -1
  91. package/dist/cdn/{RKWTJT6L.js → FA5CJT2S.js} +1 -1
  92. package/dist/cdn/{S6J35GRM.js → FBGCV6YJ.js} +1 -1
  93. package/dist/cdn/{XSOTJ56B.js → FBSKACM2.js} +1 -1
  94. package/dist/cdn/{V52O7WYV.js → FCJFAZ4S.js} +1 -1
  95. package/dist/cdn/{ANVT6ANQ.js → FE6JCIZY.js} +1 -1
  96. package/dist/cdn/{HJW2JW4G.js → FVR5S6DL.js} +1 -1
  97. package/dist/cdn/{YJBXJNUR.js → FZNRD2XJ.js} +1 -1
  98. package/dist/cdn/{TRXDA7G2.js → G2RMWJ7R.js} +1 -1
  99. package/dist/cdn/{6OJALTOU.js → G63OYQ7G.js} +1 -1
  100. package/dist/cdn/{RXOPHYUF.js → GABDTUB7.js} +1 -1
  101. package/dist/cdn/{BLR4MTOP.js → GLC7JVKG.js} +1 -1
  102. package/dist/cdn/{B3BR2NG5.js → GXZWJXHM.js} +1 -1
  103. package/dist/cdn/H3NPAQ3U.js +2 -0
  104. package/dist/cdn/{UUHDVB24.js → HB56DBBP.js} +1 -1
  105. package/dist/cdn/{LLDACDFC.js → HGOYPWOK.js} +1 -1
  106. package/dist/cdn/{K5ZIHTQC.js → HJZRCLYP.js} +1 -1
  107. package/dist/cdn/{SQ3AHKIW.js → I4EEOB6Y.js} +1 -1
  108. package/dist/cdn/{KCTWFRCW.js → I4VWG355.js} +1 -1
  109. package/dist/cdn/{MZ73EAAV.js → I5E3PM26.js} +1 -1
  110. package/dist/cdn/ICY4O6XV.js +2 -0
  111. package/dist/cdn/{U6M4Q7V3.js → IGQJLEEJ.js} +1 -1
  112. package/dist/cdn/{PIJDUFKZ.js → IOFIC3IG.js} +1 -1
  113. package/dist/cdn/{FJAJKPL6.js → IQVJCQTP.js} +1 -1
  114. package/dist/cdn/{BSBNPUTI.js → IXJFVKYN.js} +1 -1
  115. package/dist/cdn/{TK235QG4.js → J6OVONBB.js} +1 -1
  116. package/dist/cdn/{ORMBTE2Z.js → JEIP7CJK.js} +1 -1
  117. package/dist/cdn/{P6VUY7UX.js → JFLG3EKT.js} +1 -1
  118. package/dist/cdn/{POVGKQPO.js → JJDAJ7CL.js} +1 -1
  119. package/dist/cdn/{ZF724O2R.js → JUPIKTGO.js} +1 -1
  120. package/dist/cdn/{YKM2YRZP.js → KAGDNHPY.js} +1 -1
  121. package/dist/cdn/{JLQYLRUP.js → KDHI3OWQ.js} +1 -1
  122. package/dist/cdn/{7HJCFDJN.js → KIKSO3OQ.js} +1 -1
  123. package/dist/cdn/{PRM47E4O.js → KKEERGX7.js} +1 -1
  124. package/dist/cdn/{L5WLXC4P.js → KMKZEHDS.js} +1 -1
  125. package/dist/cdn/{EVZXWT6K.js → KMTYPOFM.js} +1 -1
  126. package/dist/cdn/{6RONZCGM.js → KTRKTBPS.js} +1 -1
  127. package/dist/cdn/{QLRGY4WQ.js → KU2LYW6K.js} +1 -1
  128. package/dist/cdn/{YZ3OYKNY.js → L4BYLII5.js} +1 -1
  129. package/dist/cdn/{W5M4XQVO.js → LHLLMC6K.js} +1 -1
  130. package/dist/cdn/{4SABCB6V.js → LM46YQCN.js} +1 -1
  131. package/dist/cdn/{BROZWKD5.js → LOWGHGDS.js} +1 -1
  132. package/dist/cdn/{PRXFYNIG.js → LPFG5XTA.js} +1 -1
  133. package/dist/cdn/{ZFK6UU3O.js → LSBUPU7F.js} +1 -1
  134. package/dist/cdn/{FDO2JBGW.js → LVK2J23W.js} +1 -1
  135. package/dist/cdn/{2C6OKRTL.js → LXGY2E55.js} +1 -1
  136. package/dist/cdn/{6RNSFI2J.js → LY3WRG7K.js} +1 -1
  137. package/dist/cdn/{XG3T3NF3.js → MBAQ324M.js} +1 -1
  138. package/dist/cdn/{7IXJB2CS.js → MBVY6OPY.js} +1 -1
  139. package/dist/cdn/{EW4MNCWO.js → MDKHW7NM.js} +1 -1
  140. package/dist/cdn/MISU75DC.js +2 -0
  141. package/dist/cdn/{QUG6GIG2.js → MJ6JD7WX.js} +1 -1
  142. package/dist/cdn/{XIUYW7RN.js → MKDVJPNY.js} +1 -1
  143. package/dist/cdn/{PKKPFNOP.js → MLNGJEKI.js} +1 -1
  144. package/dist/cdn/{KR7U7SH5.js → MTEVQC6W.js} +1 -1
  145. package/dist/cdn/{VTI5LEQY.js → MW3IJQRQ.js} +1 -1
  146. package/dist/cdn/{3OQ24P5P.js → N33J6JX2.js} +1 -1
  147. package/dist/cdn/{YUPT4BTA.js → NKEQVKHZ.js} +1 -1
  148. package/dist/cdn/{KDE2RXEH.js → NVIMZ7ZS.js} +1 -1
  149. package/dist/cdn/{X67LNBJP.js → O4VFFJLQ.js} +1 -1
  150. package/dist/cdn/{E4BPYNC5.js → O7VRD3Z3.js} +3 -3
  151. package/dist/cdn/{BIRAQCVT.js → OAEZN4D5.js} +1 -1
  152. package/dist/cdn/{AL7O7ZB2.js → OGH565H7.js} +1 -1
  153. package/dist/cdn/{MURYADCX.js → OJDW3XGU.js} +1 -1
  154. package/dist/cdn/{DIMSALHW.js → OMRM5EXN.js} +1 -1
  155. package/dist/cdn/{7ZKKR7QO.js → OZ7YBTKR.js} +1 -1
  156. package/dist/cdn/{U2ZKJCSY.js → P7LSYADG.js} +1 -1
  157. package/dist/cdn/{BRARQOMY.js → PEQUHMTU.js} +1 -1
  158. package/dist/cdn/{3OLSNMWN.js → PKOJQT4I.js} +1 -1
  159. package/dist/cdn/{R3C2X4CM.js → PSBOV4IR.js} +1 -1
  160. package/dist/cdn/{QF2IXVAT.js → PWER63DX.js} +1 -1
  161. package/dist/cdn/{IEAOGMAM.js → PYPVVSIX.js} +1 -1
  162. package/dist/cdn/{SNE4DYFB.js → Q2K6BUCN.js} +1 -1
  163. package/dist/cdn/{232XXYVJ.js → Q3WGKNJH.js} +1 -1
  164. package/dist/cdn/{KGU32CDZ.js → Q4X6GXRI.js} +1 -1
  165. package/dist/cdn/{K6P6WBLX.js → QBARJMJE.js} +1 -1
  166. package/dist/cdn/{IV7RVOFY.js → QH343537.js} +1 -1
  167. package/dist/cdn/{X3CDW2ME.js → QLX3XORL.js} +1 -1
  168. package/dist/cdn/{V73HMWMC.js → QPX33Y62.js} +1 -1
  169. package/dist/cdn/{UH4IH4MC.js → QQYN7RED.js} +1 -1
  170. package/dist/cdn/{BWRBYYGI.js → QTFTJ4DQ.js} +1 -1
  171. package/dist/cdn/{CPAUDT36.js → QWNRGCQS.js} +1 -1
  172. package/dist/cdn/{AUZDYI27.js → R2JOPHL5.js} +1 -1
  173. package/dist/cdn/{NO74CJDB.js → R4PQI4LJ.js} +1 -1
  174. package/dist/cdn/{TRIDH4TQ.js → RLYLBYMX.js} +1 -1
  175. package/dist/cdn/{P2NKBGLG.js → RQIGAX6O.js} +1 -1
  176. package/dist/cdn/{WRLN7DLT.js → S47SVZPE.js} +1 -1
  177. package/dist/cdn/{HNFDCPQY.js → S4ZMJ42A.js} +1 -1
  178. package/dist/cdn/{KFUO64SR.js → SC4UAHYZ.js} +1 -1
  179. package/dist/cdn/{DBHZRNFR.js → SDX7YG23.js} +1 -1
  180. package/dist/cdn/{HIGIIHUC.js → SGU3KCZB.js} +1 -1
  181. package/dist/cdn/{RLV5JHIU.js → SHI2ULEO.js} +1 -1
  182. package/dist/cdn/{V6VJJHYJ.js → SMN3CVM5.js} +1 -1
  183. package/dist/cdn/{EJQJPFFI.js → SNZRQPXI.js} +1 -1
  184. package/dist/cdn/SYISCXZY.js +4 -0
  185. package/dist/cdn/{PQEOFKJR.js → T6BYV326.js} +4 -4
  186. package/dist/cdn/{3T3GPK27.js → T6EKXYZA.js} +1 -1
  187. package/dist/cdn/T6FQ2A4O.js +2 -0
  188. package/dist/cdn/{JM4BUUFY.js → TLRBE2TZ.js} +1 -1
  189. package/dist/cdn/{RPBIUBGZ.js → TLY6ZEKN.js} +1 -1
  190. package/dist/cdn/{IUNUJ6GU.js → TTCTODAR.js} +1 -1
  191. package/dist/cdn/{B6IICRWD.js → U2LBV6VU.js} +1 -1
  192. package/dist/cdn/{HRH3YBW4.js → U6DXEFHP.js} +1 -1
  193. package/dist/cdn/{SRLQU37I.js → UA6XD7SQ.js} +1 -1
  194. package/dist/cdn/{A4RRYLNO.js → UBPCOTIY.js} +1 -1
  195. package/dist/cdn/{S4MPBLJP.js → UNBGBQPR.js} +1 -1
  196. package/dist/cdn/{KVYNN3MF.js → UUIKE2AH.js} +1 -1
  197. package/dist/cdn/{E5X2RW5Y.js → UUKV62PY.js} +1 -1
  198. package/dist/cdn/{XA2AVWSV.js → UXN2MYLX.js} +1 -1
  199. package/dist/cdn/{RCF3ARQ3.js → V74POSPP.js} +1 -1
  200. package/dist/cdn/{PCP5UFZR.js → V7WSQCQY.js} +1 -1
  201. package/dist/cdn/VHSGX4DC.js +2 -0
  202. package/dist/cdn/{6LDTUOZL.js → VHYS3SP3.js} +1 -1
  203. package/dist/cdn/{B7J5RZIJ.js → VJDUPEFF.js} +1 -1
  204. package/dist/cdn/{4V4CR63B.js → VNTPM6CQ.js} +1 -1
  205. package/dist/cdn/{HDRMSU3L.js → VPFXIGOI.js} +1 -1
  206. package/dist/cdn/{AZDHGEBN.js → VTAQ6NBB.js} +1 -1
  207. package/dist/cdn/{V3MSUKLX.js → VXGLGWIF.js} +1 -1
  208. package/dist/cdn/{JQ7K6OQ5.js → W7VD3QDN.js} +1 -1
  209. package/dist/cdn/{AHYKJXK2.js → WCD4U7UJ.js} +1 -1
  210. package/dist/cdn/{QX7YVGEN.js → WCXR46D4.js} +1 -1
  211. package/dist/cdn/{2TR3Y7HD.js → WFIMYIS3.js} +1 -1
  212. package/dist/cdn/WQHJMFGP.js +2 -0
  213. package/dist/cdn/{OUNL2UWX.js → WXM3KMEV.js} +1 -1
  214. package/dist/cdn/{CM5MBWMG.js → X52T6DJT.js} +1 -1
  215. package/dist/cdn/{NR5ZHMQJ.js → XA3SV62A.js} +1 -1
  216. package/dist/cdn/{EUPJV6QI.js → XH6MM3RE.js} +1 -1
  217. package/dist/cdn/{SHGAD5MK.js → XHFFDKEQ.js} +1 -1
  218. package/dist/cdn/{BFC6PQCO.js → XKEKXTL2.js} +1 -1
  219. package/dist/cdn/{VYFFJEA4.js → YCIKY6QN.js} +1 -1
  220. package/dist/cdn/{EDNQFSEX.js → YGWYD3LU.js} +1 -1
  221. package/dist/cdn/{2BTU374O.js → YUKIKHOU.js} +1 -1
  222. package/dist/cdn/{W2ZZLJGQ.js → ZBX2SDO5.js} +1 -1
  223. package/dist/cdn/{WKZOT33F.js → ZI7OWB5M.js} +1 -1
  224. package/dist/cdn/{LJIX7K76.js → ZNC2XEOJ.js} +1 -1
  225. package/dist/cdn/{QNRKGTZT.js → ZPEVEBJD.js} +1 -1
  226. package/dist/cdn/{5ZVSYUD7.js → ZSO2PDMV.js} +1 -1
  227. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
  228. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
  229. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
  230. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
  231. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
  232. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
  233. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
  234. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
  235. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
  236. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
  237. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
  238. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
  239. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
  240. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
  241. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
  242. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
  243. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
  244. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
  245. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
  246. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
  247. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
  248. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
  249. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
  250. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
  251. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
  252. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
  253. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
  254. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
  255. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
  256. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
  257. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
  258. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
  259. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
  260. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
  261. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
  262. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
  263. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
  264. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
  265. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
  266. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  267. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  268. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  269. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  270. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  271. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  272. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  273. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  274. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  275. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  276. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  277. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  278. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  279. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  280. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  281. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  282. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  283. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  284. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  285. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  286. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  287. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  288. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  289. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  290. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  291. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  292. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  293. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  294. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  295. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  296. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  297. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  298. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  299. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  300. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  301. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  302. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  303. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  304. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  305. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ar.json +1 -1
  306. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bg.json +1 -1
  307. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bs.json +1 -1
  308. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ca.json +1 -1
  309. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.cs.json +1 -1
  310. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.da.json +1 -1
  311. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.de.json +1 -1
  312. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.el.json +1 -1
  313. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.es.json +1 -1
  314. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.et.json +1 -1
  315. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fi.json +1 -1
  316. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fr.json +1 -1
  317. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.he.json +1 -1
  318. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hr.json +1 -1
  319. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hu.json +1 -1
  320. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.id.json +1 -1
  321. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.it.json +1 -1
  322. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ja.json +1 -1
  323. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ko.json +1 -1
  324. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lt.json +1 -1
  325. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lv.json +1 -1
  326. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.nl.json +1 -1
  327. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.no.json +1 -1
  328. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pl.json +1 -1
  329. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-BR.json +1 -1
  330. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-PT.json +1 -1
  331. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ro.json +1 -1
  332. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ru.json +1 -1
  333. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sk.json +1 -1
  334. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sl.json +1 -1
  335. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sr.json +1 -1
  336. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sv.json +1 -1
  337. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.th.json +1 -1
  338. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.tr.json +1 -1
  339. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.uk.json +1 -1
  340. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.vi.json +1 -1
  341. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-CN.json +1 -1
  342. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-HK.json +1 -1
  343. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-TW.json +1 -1
  344. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  345. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  346. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  347. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  348. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  349. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  350. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  351. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  352. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  353. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  354. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  355. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  356. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  357. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  358. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  359. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  360. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  361. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  362. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  363. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  364. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  365. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  366. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  367. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  368. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  369. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  370. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  371. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  372. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  373. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  374. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  375. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  376. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  377. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  378. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  379. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  380. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  381. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  382. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  383. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ar.json +1 -1
  384. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bg.json +1 -1
  385. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bs.json +1 -1
  386. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ca.json +1 -1
  387. package/dist/cdn/assets/solution-deployed-card/t9n/messages.cs.json +1 -1
  388. package/dist/cdn/assets/solution-deployed-card/t9n/messages.da.json +1 -1
  389. package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
  390. package/dist/cdn/assets/solution-deployed-card/t9n/messages.el.json +1 -1
  391. package/dist/cdn/assets/solution-deployed-card/t9n/messages.es.json +1 -1
  392. package/dist/cdn/assets/solution-deployed-card/t9n/messages.et.json +1 -1
  393. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fi.json +1 -1
  394. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fr.json +1 -1
  395. package/dist/cdn/assets/solution-deployed-card/t9n/messages.he.json +1 -1
  396. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hr.json +1 -1
  397. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hu.json +1 -1
  398. package/dist/cdn/assets/solution-deployed-card/t9n/messages.id.json +1 -1
  399. package/dist/cdn/assets/solution-deployed-card/t9n/messages.it.json +1 -1
  400. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ja.json +1 -1
  401. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ko.json +1 -1
  402. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lt.json +1 -1
  403. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lv.json +1 -1
  404. package/dist/cdn/assets/solution-deployed-card/t9n/messages.nl.json +1 -1
  405. package/dist/cdn/assets/solution-deployed-card/t9n/messages.no.json +1 -1
  406. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pl.json +1 -1
  407. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-BR.json +1 -1
  408. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-PT.json +1 -1
  409. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ro.json +1 -1
  410. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ru.json +1 -1
  411. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sk.json +1 -1
  412. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sl.json +1 -1
  413. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sr.json +1 -1
  414. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sv.json +1 -1
  415. package/dist/cdn/assets/solution-deployed-card/t9n/messages.th.json +1 -1
  416. package/dist/cdn/assets/solution-deployed-card/t9n/messages.tr.json +1 -1
  417. package/dist/cdn/assets/solution-deployed-card/t9n/messages.uk.json +1 -1
  418. package/dist/cdn/assets/solution-deployed-card/t9n/messages.vi.json +1 -1
  419. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-CN.json +1 -1
  420. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-HK.json +1 -1
  421. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-TW.json +1 -1
  422. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ar.json +1 -1
  423. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bg.json +1 -1
  424. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bs.json +1 -1
  425. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ca.json +1 -1
  426. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.cs.json +1 -1
  427. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.da.json +1 -1
  428. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.de.json +1 -1
  429. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.el.json +1 -1
  430. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.es.json +1 -1
  431. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.et.json +1 -1
  432. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fi.json +1 -1
  433. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fr.json +1 -1
  434. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.he.json +1 -1
  435. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hr.json +1 -1
  436. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hu.json +1 -1
  437. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.id.json +1 -1
  438. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.it.json +1 -1
  439. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ja.json +1 -1
  440. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ko.json +1 -1
  441. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lt.json +1 -1
  442. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lv.json +1 -1
  443. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.nl.json +1 -1
  444. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.no.json +1 -1
  445. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pl.json +1 -1
  446. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-BR.json +1 -1
  447. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-PT.json +1 -1
  448. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ro.json +1 -1
  449. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ru.json +1 -1
  450. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sk.json +1 -1
  451. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sl.json +1 -1
  452. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sr.json +1 -1
  453. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sv.json +1 -1
  454. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.th.json +1 -1
  455. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.tr.json +1 -1
  456. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.uk.json +1 -1
  457. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.vi.json +1 -1
  458. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-CN.json +1 -1
  459. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-HK.json +1 -1
  460. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-TW.json +1 -1
  461. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ar.json +1 -1
  462. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bg.json +1 -1
  463. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bs.json +1 -1
  464. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ca.json +1 -1
  465. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.cs.json +1 -1
  466. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.da.json +1 -1
  467. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.de.json +1 -1
  468. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.el.json +1 -1
  469. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.es.json +1 -1
  470. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.et.json +1 -1
  471. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fi.json +1 -1
  472. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fr.json +1 -1
  473. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.he.json +1 -1
  474. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hr.json +1 -1
  475. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hu.json +1 -1
  476. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.id.json +1 -1
  477. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.it.json +1 -1
  478. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ja.json +1 -1
  479. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ko.json +1 -1
  480. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lt.json +1 -1
  481. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lv.json +1 -1
  482. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.nl.json +1 -1
  483. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.no.json +1 -1
  484. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pl.json +1 -1
  485. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-BR.json +1 -1
  486. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-PT.json +1 -1
  487. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ro.json +1 -1
  488. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ru.json +1 -1
  489. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sk.json +1 -1
  490. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sl.json +1 -1
  491. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sr.json +1 -1
  492. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sv.json +1 -1
  493. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.th.json +1 -1
  494. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.tr.json +1 -1
  495. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.uk.json +1 -1
  496. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.vi.json +1 -1
  497. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-CN.json +1 -1
  498. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-HK.json +1 -1
  499. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-TW.json +1 -1
  500. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ar.json +1 -1
  501. package/dist/cdn/index.js +1 -1
  502. package/dist/chunks/solution-builder-assistant.js +3 -3
  503. package/dist/components/arcgis-solutions-assistant/customElement.js +3 -3
  504. package/dist/components/buffer-tools/customElement.d.ts +5 -1
  505. package/dist/components/card-manager/customElement.d.ts +3 -0
  506. package/dist/components/card-manager/customElement.js +60 -30
  507. package/dist/components/create-feature/customElement.d.ts +10 -0
  508. package/dist/components/create-feature/customElement.js +66 -60
  509. package/dist/components/crowdsource-manager/customElement.js +7 -4
  510. package/dist/components/layer-table/customElement.d.ts +6 -0
  511. package/dist/components/layer-table/customElement.js +38 -29
  512. package/dist/components/map-card/customElement.js +40 -34
  513. package/dist/components/map-tools/customElement.js +14 -15
  514. package/dist/components/map-tools/index.js +1 -0
  515. package/dist/components/solution-details-panel/customElement.js +5 -3
  516. package/dist/components/solutions-deploy-app/customElement.js +2 -2
  517. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  518. package/dist/docs/api.json +1 -1
  519. package/dist/docs/docs.json +1 -1
  520. package/dist/docs/vscode.html-custom-data.json +1 -1
  521. package/dist/docs/web-types.json +1 -1
  522. package/dist/solutions-components_commit.txt +7 -7
  523. package/dist/types/lumina.d.ts +5 -0
  524. package/dist/types/preact.d.ts +5 -0
  525. package/dist/types/react.d.ts +5 -0
  526. package/dist/types/stencil.d.ts +5 -0
  527. package/package.json +1 -1
  528. package/dist/cdn/2L7O5T7N.js +0 -2
  529. package/dist/cdn/BPOWO72Z.js +0 -2
  530. package/dist/cdn/CQQH3XK5.js +0 -2
  531. package/dist/cdn/DMX66TUK.js +0 -2
  532. package/dist/cdn/E4ZB3BPD.js +0 -2
  533. package/dist/cdn/HDTRW7I6.js +0 -4
  534. package/dist/cdn/HXAKVGDN.js +0 -2
  535. package/dist/cdn/MG4GXXGQ.js +0 -2
  536. package/dist/cdn/QPIMTXPL.js +0 -2
  537. package/dist/cdn/RFRP75GX.js +0 -2
  538. package/dist/cdn/XOEFU24R.js +0 -2
  539. package/dist/cdn/ZIDWIYAR.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{d as tr,e as On,f as Wo,g as Ho,h as Jo}from"./NQH7ZZWD.js";import{a as qo}from"./S37TPZAO.js";import{a as Ga,d as Is,e as xs,h as Ya}from"./RPBIUBGZ.js";import b from"./A4RRYLNO.js";import a from"./IEAOGMAM.js";import{b as ka,c as Sa}from"./2B4SGB3I.js";import{b as Eo}from"./I2NTSKBD.js";import"./MSUQVQBX.js";import{a as Oa}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{$ as Cn,Aa as Za,Ba as Pn,Ca as A,Da as Bo,Ea as Ko,I as Ra,J as ge,K as $a,L as us,M as $o,N as No,O as cs,Oa as z,P as H,Q as Lo,R as j,S as Do,T as Ge,U as ps,V as Na,W as La,X as jo,Y as ds,Z as Da,_ as ja,a as Xt,aa as ms,b as pe,ba as za,ca as Ua,da as Fa,ea as fs,fa as Ba,ga as ht,ha as zo,ia as hs,ja as M,ka as y,la as gt,ma as gs,na as Ka,oa as _s,pa as qa,qa as Wa,r as Ro,ra as ys,sa as Uo,ta as Qt,ua as Fo,va as Ha,vb as As,wa as Ja,wb as bs,xb as er,ya as ws,za as Va}from"./N3ENJ6TJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import{l as Ea,v as Mo}from"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as Pa}from"./2I5LGZNX.js";import{E as va,F as Ta,G as Ca,K as So,h as wa,i as Ze,k as Aa,l as Oo,q as ko,v as ba,w as Ia,x as xa}from"./FFF5HUPM.js";import{c as ya}from"./QPIMTXPL.js";export default $arcgis.t(([aa,Sc,ea,Lf,Iz,vz,lh,uh,{r:Ma},{r:Tn}])=>{var kn=class extends xa{constructor(e){if(super(e),this.it=Oo,e.type!==ba.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Oo||e==null)return this._t=void 0,this.it=e;if(e===Aa)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};kn.directiveName="unsafeHTML",kn.resultType=1;var Xa=Ia(kn);async function Qa(t,e,r){if(r===void 0)throw new Error(["Unable to dispatch a custom event without a parent run id.",'"dispatchCustomEvent" can only be called from within an existing run (e.g.,',"inside a tool or a RunnableLambda).",`
2
+ import{d as tr,e as On,f as Wo,g as Ho,h as Jo}from"./NQH7ZZWD.js";import{a as qo}from"./S37TPZAO.js";import{a as Ga,d as Is,e as xs,h as Ya}from"./TLY6ZEKN.js";import b from"./UBPCOTIY.js";import a from"./PYPVVSIX.js";import{b as ka,c as Sa}from"./2B4SGB3I.js";import{b as Eo}from"./I2NTSKBD.js";import"./ACTJS4TX.js";import{a as Oa}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{$ as Cn,Aa as Za,Ba as Pn,Ca as A,Da as Bo,Ea as Ko,I as Ra,J as ge,K as $a,L as us,M as $o,N as No,O as cs,Oa as z,P as H,Q as Lo,R as j,S as Do,T as Ge,U as ps,V as Na,W as La,X as jo,Y as ds,Z as Da,_ as ja,a as Xt,aa as ms,b as pe,ba as za,ca as Ua,da as Fa,ea as fs,fa as Ba,ga as ht,ha as zo,ia as hs,ja as M,ka as y,la as gt,ma as gs,na as Ka,oa as _s,pa as qa,qa as Wa,r as Ro,ra as ys,sa as Uo,ta as Qt,ua as Fo,va as Ha,vb as As,wa as Ja,wb as bs,xb as er,ya as ws,za as Va}from"./3Z7EYDFO.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import{l as Ea,v as Mo}from"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as Pa}from"./2I5LGZNX.js";import{E as va,F as Ta,G as Ca,K as So,h as wa,i as Ze,k as Aa,l as Oo,q as ko,v as ba,w as Ia,x as xa}from"./FFF5HUPM.js";import{c as ya}from"./EXBEKVP5.js";export default $arcgis.t(([aa,Sc,ea,Lf,Iz,vz,lh,uh,{r:Ma},{r:Tn}])=>{var kn=class extends xa{constructor(e){if(super(e),this.it=Oo,e.type!==ba.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Oo||e==null)return this._t=void 0,this.it=e;if(e===Aa)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};kn.directiveName="unsafeHTML",kn.resultType=1;var Xa=Ia(kn);async function Qa(t,e,r){if(r===void 0)throw new Error(["Unable to dispatch a custom event without a parent run id.",'"dispatchCustomEvent" can only be called from within an existing run (e.g.,',"inside a tool or a RunnableLambda).",`
3
3
 
4
4
  If you continue to see this error, please import from "@langchain/core/callbacks/dispatch/web"`,"and explicitly pass in a config parameter.",`
5
5
 
@@ -77,8 +77,8 @@ Description: {description}`,Cz=A.object({schemaVersion:A.literal(Bf),modified:A.
77
77
  `)}var as=(function(t){Zf(e,t);function e(r,n,s,o,i){var a=this.constructor,u=t.call(this,Bc(r,{name:n,index:s,operation:o,tree:i}))||this;return u.name=n,u.index=s,u.operation=o,u.tree=i,Object.setPrototypeOf(u,a.prototype),u.message=Bc(r,{name:n,index:s,operation:o,tree:i}),u}return e})(Error);var K=as,Yf=oe,xn={add:function(t,e,r){return t[e]=this.value,{newDocument:r}},remove:function(t,e,r){var n=t[e];return delete t[e],{newDocument:r,removed:n}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:function(t,e,r){var n=Ao(r,this.path);n&&(n=oe(n));var s=Zt(r,{op:"remove",path:this.from}).removed;return Zt(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=Ao(r,this.from);return Zt(r,{op:"add",path:this.path,value:oe(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:ls(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},Xf={add:function(t,e,r){return wo(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:r,index:e}},remove:function(t,e,r){var n=t.splice(e,1);return{newDocument:r,removed:n[0]}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:xn.move,copy:xn.copy,test:xn.test,_get:xn._get};function Ao(t,e){if(e=="")return t;var r={op:"_get",path:e};return Zt(t,r),r.value}function Zt(t,e,r,n,s,o){if(r===void 0&&(r=!1),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=0),r&&(typeof r=="function"?r(e,0,t,e.path):bo(e,0)),e.path===""){var i={newDocument:t};if(e.op==="add")return i.newDocument=e.value,i;if(e.op==="replace")return i.newDocument=e.value,i.removed=t,i;if(e.op==="move"||e.op==="copy")return i.newDocument=Ao(t,e.from),e.op==="move"&&(i.removed=t),i;if(e.op==="test"){if(i.test=ls(t,e.value),i.test===!1)throw new K("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return i.newDocument=t,i}else{if(e.op==="remove")return i.removed=t,i.newDocument=null,i;if(e.op==="_get")return e.value=t,i;if(r)throw new K("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,e,t);return i}}else{n||(t=oe(t));var a=e.path||"",u=a.split("/"),l=t,p=1,m=u.length,_=void 0,h=void 0,b=void 0;for(typeof r=="function"?b=r:b=bo;;){if(h=u[p],h&&h.indexOf("~")!=-1&&(h=is(h)),s&&(h=="__proto__"||h=="prototype"&&p>0&&u[p-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&_===void 0&&(l[h]===void 0?_=u.slice(0,p).join("/"):p==m-1&&(_=e.path),_!==void 0&&b(e,0,t,_)),p++,Array.isArray(l)){if(h==="-")h=l.length;else{if(r&&!wo(h))throw new K("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,e,t);wo(h)&&(h=~~h)}if(p>=m){if(r&&e.op==="add"&&h>l.length)throw new K("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,e,t);var i=Xf[e.op].call(e,l,h,t);if(i.test===!1)throw new K("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return i}}else if(p>=m){var i=xn[e.op].call(e,l,h,t);if(i.test===!1)throw new K("Test operation failed","TEST_OPERATION_FAILED",o,e,t);return i}if(l=l[h],r&&p<m&&(!l||typeof l!="object"))throw new K("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,e,t)}}}function vn(t,e,r,n,s){if(n===void 0&&(n=!0),s===void 0&&(s=!0),r&&!Array.isArray(e))throw new K("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=oe(t));for(var o=new Array(e.length),i=0,a=e.length;i<a;i++)o[i]=Zt(t,e[i],r,!0,s,i),t=o[i].newDocument;return o.newDocument=t,o}function Qf(t,e,r){var n=Zt(t,e);if(n.test===!1)throw new K("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}function bo(t,e,r,n){if(typeof t!="object"||t===null||Array.isArray(t))throw new K("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(xn[t.op]){if(typeof t.path!="string")throw new K("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new K('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new K("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new K("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&go(t.value))throw new K("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var s=t.path.split("/").length,o=n.split("/").length;if(s!==o+1&&s!==o)throw new K("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new K("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var i={op:"_get",path:t.from,value:void 0},a=Kc([i],r);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new K("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}else throw new K("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r)}function Kc(t,e,r){try{if(!Array.isArray(t))throw new K("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)vn(oe(e),oe(t),r||!0);else{r=r||bo;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(s){if(s instanceof K)return s;throw s}}function ls(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),n=Array.isArray(e),s,o,i;if(r&&n){if(o=t.length,o!=e.length)return!1;for(s=o;s--!==0;)if(!ls(t[s],e[s]))return!1;return!0}if(r!=n)return!1;var a=Object.keys(t);if(o=a.length,o!==Object.keys(e).length)return!1;for(s=o;s--!==0;)if(!e.hasOwnProperty(a[s]))return!1;for(s=o;s--!==0;)if(i=a[s],!ls(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}var ia={};ya(ia,{compare:()=>ah,generate:()=>na,observe:()=>ih,unobserve:()=>oh});var sa=new WeakMap,eh=(function(){function t(e){this.observers=new Map,this.obj=e}return t})(),th=(function(){function t(e,r){this.callback=e,this.observer=r}return t})();function rh(t){return sa.get(t)}function nh(t,e){return t.observers.get(e)}function sh(t,e){t.observers.delete(e.callback)}function oh(t,e){e.unobserve()}function ih(t,e){var r=[],n,s=rh(t);if(!s)s=new eh(t),sa.set(t,s);else{var o=nh(s,e);n=o&&o.observer}if(n)return n;if(n={},s.value=oe(t),e){n.callback=e,n.next=null;var i=function(){na(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=r,n.object=t,n.unobserve=function(){na(n),clearTimeout(n.next),sh(s,n),typeof window<"u"&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},s.observers.set(e,new th(e,n)),n}function na(t,e){e===void 0&&(e=!1);var r=sa.get(t.object);oa(r.value,t.object,t.patches,"",e),t.patches.length&&vn(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}function oa(t,e,r,n,s){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var o=yo(e),i=yo(t),a=!1,u=!1,l=i.length-1;l>=0;l--){var p=i[l],m=t[p];if(_o(e,p)&&!(e[p]===void 0&&m!==void 0&&Array.isArray(e)===!1)){var _=e[p];typeof m=="object"&&m!=null&&typeof _=="object"&&_!=null&&Array.isArray(m)===Array.isArray(_)?oa(m,_,r,n+"/"+$e(p),s):m!==_&&(a=!0,s&&r.push({op:"test",path:n+"/"+$e(p),value:oe(m)}),r.push({op:"replace",path:n+"/"+$e(p),value:oe(_)}))}else Array.isArray(t)===Array.isArray(e)?(s&&r.push({op:"test",path:n+"/"+$e(p),value:oe(m)}),r.push({op:"remove",path:n+"/"+$e(p)}),u=!0):(s&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}),a=!0)}if(!(!u&&o.length==i.length))for(var l=0;l<o.length;l++){var p=o[l];!_o(t,p)&&e[p]!==void 0&&r.push({op:"add",path:n+"/"+$e(p),value:oe(e[p])})}}}function ah(t,e,r){r===void 0&&(r=!1);var n=[];return oa(t,e,n,"",r),n}var Nz=Object.assign({},ra,ia,{JsonPatchError:as,deepClone:oe,escapePathComponent:$e,unescapePathComponent:is});var ch=wa`:host{display:block;height:100%}.margin-lg{margin:var(--calcite-spacing-lg)}.display-flex-row{display:flex;flex-direction:row}.assistant-split-container{display:flex;width:100%;height:calc(100vh - 78px);overflow:hidden;border-radius:10px}.assistant-panel{display:flex;flex-direction:column;height:100%;border:1px solid var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-2);overflow:hidden}.chat-panel{min-width:320px}.builder-panel{min-width:320px;max-width:100%;border-left:1px solid var(--calcite-color-surface-3)}.panel-actions{display:flex;gap:8px;padding:6px;align-items:center}.builder-header,.builder-footer{padding:10px;background:var(--calcite-color-surface-1);border-bottom:1px solid var(--calcite-color-surface-3)}.builder-content{flex:1;overflow:auto;padding:12px}.builder-content pre{white-space:pre-wrap;word-wrap:break-word;max-height:100%;overflow:auto}.builder-actions{display:flex;gap:6px;align-items:center}.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-surface-4);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-surface-1);border-radius:10px;padding:10px}.chat-panel{--calcite-color-focus: var(--calcite-color-brand);--calcite-panel-border-color: var(--calcite-color-border-2);--calcite-internal-panel-header-vertical-padding: 0px;--calcite-panel-header-content-space: 0px;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);height:100%}.header-content{display:flex;align-items:center;gap:var(--calcite-spacing-sm);height:65px;box-sizing:border-box;padding-inline-start:var(--calcite-space-2xl)}.header-title{font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.beta-chip{--calcite-chip-corner-radius: var(--calcite-corner-radius-half)}.chat-panel calcite-card,.chat-panel calcite-text-area,.chat-panel calcite-button,.chat-panel .chat-messages,.chat-panel .chat-input{--calcite-color-focus: var(--calcite-color-brand)}.assistant-followup-chip:focus{outline:2px solid var(--calcite-color-brand)}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-surface-1, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-color-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-text-inverse);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-surface-3);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4);color:var(--calcite-color-inverse);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-surface-4);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-surface-4);--calcite-card-border-color: var(--calcite-color-surface-4)}.message-content{padding:0;font-size:14px}.response-message.message-content>p:first-of-type{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.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}.padding-right-8{padding-right:8px}.padding-left-right-5{padding-right:5px;padding-left:5px}.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-surface-4)}.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-width:520px;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}.solution-card:focus{outline:2px solid var(--calcite-color-brand)}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.display-none{display:none}.chat-messages calcite-fab{position:absolute;bottom:16px;left:50%;transform:translate(-50%);z-index:999}.icon-color-background{--calcite-button-icon-color: var(--calcite-color-surface-1)}#closeAssistantButton{--calcite-action-text-color: var(--calcite-color-text-1)}.icon-color-background:focus{--calcite-color-focus: var(--calcite-color-surface-1)}@media(max-width:430px){.solution-card .solution-snippet{display:none}}.height-32-flex-auto{height:32px;flex:0 0 auto}.margin-top-0.message-content>p:first-of-type{margin-top:0}a:not(.solution-card){color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:not(.solution-card):hover{background-size:100% 1px,100% 1px}a:not(.solution-card):focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:not(.solution-card):active{color:var(--calcite-color-brand-press)}`;async function he(t,e){let r=Object.entries(t).find(([n])=>n.endsWith(`/${e}.md`));if(!r)throw new Error(`Prompt not found: ${e}
78
78
  Available prompts:
79
79
  ${Object.keys(t).join(`
80
- `)}`);return await r[1]()}function Co(t){return t?.configurable?.context?.translations}function Wc(t){if(typeof window>"u"||t.length<=1)return;let e=t.map(n=>n.solution.id),r=t.map(n=>n.solution.title);window.dispatchEvent(new CustomEvent("searchTermSet",{detail:{scope:"all-solutions",searchTerm:""}})),window.dispatchEvent(new CustomEvent("solutionMatchesFromAssistant",{detail:{solutionIds:e,solutionTitles:r},bubbles:!0,composed:!0})),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:{tabType:"all-solutions"}}))}function Hc(t){if(typeof window>"u"||!t)return;let e=new CustomEvent("solutionIDFromAssistant",{detail:t,bubbles:!0,composed:!0});window.dispatchEvent(e)}var ph=A.object({needsContext:A.boolean().describe("True when the explorer query requires added context from prior turns."),rewrittenQuery:A.string().min(1).describe("The final query to send to doc AI. Keep original query if no context is needed.")}),Jc=Object.assign({"./prompts/solutions_explorer_description.md":()=>import("./MZXUUA7G.js").then(t=>t.default),"./prompts/transformQuery.md":()=>import("./EJQJPFFI.js").then(t=>t.default)});function dh(t){return t.replace(/<sup>\[\[(\d+)\]\]\(([^)]+)\)<\/sup>/g,'<sup><a href="$2">&#91;$1&#93;</a></sup>')}function mh(t){return t.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,(e,r,n)=>`<img src="${n}" alt="${r}" style="width: 100%;">`)}function fh(t,e){let r=[];return(e?.configurable?.context?.configContext.allCards??[]).forEach(n=>{let s=n.title;if(!s)return;let o=new RegExp(`(?<![\\p{L}\\p{N}])${s}(?![\\p{L}\\p{N}])`,"giu"),i=!1;t=t.replace(o,(a,u,l)=>{let p=l.slice(0,u);return/<img[^>]*alt\s*=\s*["'][^"']*$/i.test(p)?a:(i=!0,`<a href="" target="solutionId:${n.deployCommonId}">${s}</a>`)}),i&&r.push({solution:{title:n.title,id:n.deployCommonId,snippet:n.snippet,description:n.description},score:100})}),{source:t,allMatches:r}}function hh(t){return t&&t.helperServices.aiAssistantServices?`${t.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat`:null}function Vc(t){return t&&t.helperServices.aiAssistantServices?`${t.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/api/pre-chat`:null}async function ua(t,e,r){let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",token:r},body:JSON.stringify(t)});if(!n.ok)throw new Error(`HTTP ${n.status} calling ${e}`);return n.json()}var gh=t=>new Promise(e=>setTimeout(e,t));async function _h(t,e){let r=t.agentExecutionContext.userRequest,n=e?.configurable?.context?.lastTurnAgent,s=t.agentExecutionContext.messages??[];if(!n||s.length<=1||n==="explorer")return r;try{let o=await he(Jc,"transformQuery"),i=await Ve({promptText:o,modelTier:"fast",temperature:0,schema:ph,messages:s.slice(-11),inputVariables:{query:r,lastTurnAgent:n}});if(i.needsContext&&i.rewrittenQuery.trim())return console.debug(`Rephrased query from "${r}" to "${i.rewrittenQuery.trim()}"`),i.rewrittenQuery.trim()}catch{}return r}var yh=z.Root({...ho(),solutionResponse:z({reducer:(t,e)=>e??null,default:()=>null}),documentSkillUrl:z({reducer:(t,e)=>e??null,default:()=>null}),conversationId:z({reducer:(t,e)=>e??t,default:()=>null})}),wh=()=>new er(yh).addNode("initializeAgent",bh).addNode("askSolutionsQuestions",Ah).addEdge(Xt,"initializeAgent").addEdge("initializeAgent","askSolutionsQuestions").addEdge("askSolutionsQuestions",pe),Zc=async(t,e,r,n)=>{if(!t)return;let s=Vc(t);if(!s)return;let o={context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions",persona:{persona:"apps-solutions"},pipeline:{translation:{allow:!0,language:r,use_llm:!1}}}}};n&&(o.conversationId=n),ua(o,s,e??"")},Ah=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e),n=t.documentSkillUrl,s=[],o=await _h(t,e);await Te({text:r.agentProgress.explorerAgentSearching},e);let i=await ua({message:o,conversationId:e?.configurable?.context?.convoId??void 0,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions",persona:{persona:"apps-solutions"},pipeline:{translation:{allow:!0,language:e?.configurable?.context?.configContext.locale??"en",use_llm:!1}}}}},n,e?.configurable?.context?.token??"");i.conversationId&&e?.configurable?.context?.setConversationId&&e.configurable.context.setConversationId(i.conversationId);let a={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},u="",l=async p=>{let m=p.context?.results?.[0]?.reply??"";if(m!==""){let h=dh(m),b=mh(h),I=fh(b,e);u=I.source,s=[...s,...I.allMatches.filter(R=>!s.some(g=>g.solution.id===R.solution.id))]}let _=p.context?.results?.[0]?.status?.currentStatusStep;if(_){let h="";_===1?h=r.agentProgress.explorerAgentReading:_===2?h=r.agentProgress.explorerAgentReviewing:_===3&&(h=r.agentProgress.explorerAgentPreparing),await Te({text:h},e)}};for(await l(i);a.hasMore;){if(e?.configurable?.abortSignal?.aborted)return{};await gh(500),i=await ua({conversationId:a.conversationId,ackSequenceNumber:a.ackSequenceNumber,inquiryId:a.inquiryId},n,e?.configurable?.context?.token??""),a={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},await l(i)}return Vc(e?.configurable?.context.portal)&&Zc(e?.configurable?.context.portal,e?.configurable?.context.token??"",e?.configurable?.context.configContext.locale??"en",a.conversationId),s.length&&(s.length===1?Hc(s[0].solution.id):Wc(s)),{outputMessage:u,summary:u,status:"success",solutionResponse:a,conversationId:a.conversationId}},bh=async(t,e)=>{let r=null;return t.documentSkillUrl===null&&e?.configurable?.context?.portal&&(r=hh(e.configurable.context.portal)),{documentSkillUrl:r}};await he(Jc,"solutions_explorer_description");var Gc=t=>{if(t&&Array.isArray(t.id)&&t.id.length>0)return t.id[t.id.length-1].replace("Message","").toLowerCase();if(t&&typeof t._getType=="function")try{return t._getType()}catch{return"human"}return"human"},Ih=t=>{let e=Gc(t);if(t&&t.kwargs)return{role:e,...t.kwargs};if(t&&typeof t=="object"){let r={role:e,content:typeof t.content=="string"?t.content:String(t.content||"")};return t.id&&(r.id=t.id),t.name&&(r.name=t.name),t.additional_kwargs&&(r.additional_kwargs=t.additional_kwargs),t.response_metadata&&(r.response_metadata=t.response_metadata),r}return{role:"human",content:String(t)}},xh=t=>Gc(t)==="human",vh=(t,e=3)=>t.filter(r=>xh(r)).slice(-e).map(Ih),Th=(t,e=" ")=>vh(t).map(r=>r.content).join(e).trim(),Ch={understandingRequest:"Understanding your request...",selectTemplatePrompt:"This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish.",searchingExistingSolutions:"Searching for existing solutions...",existingSolutionMatch:"I found one or more existing solutions that match your use case. These are ready-to-use solutions that may already meet your needs and can be deployed now. Do you want to continue building your own solution?",continueBuildingYes:"Yes, I want to build a new solution",continueBuildingNo:"No, I\u2019ll review existing solutions",continueBuildingDeclined:"Sounds good. We can focus on existing solutions. Let me know if I can help answer any questions or provide more details.",creatingDesign:"Generating solution design...",updatingDesign:"Updating solution design...",applyChangeFailed:"I wasn't able to apply that change. The design was not modified. Please try rephrasing your request.",createDesignFailed:"I wasn't able to create a solution design from that request. Please try rephrasing and try again.",discardMessage:"Are you sure you want to discard your solution?",discardForNewSolution:"I can help you build a new solution, but I will need to discard your current solution design. Do you want to continue?"},Ph={builderMessages:Ch},To=class{constructor(e,r,n=!0){this.isValid=!0,this.issues=[],this.fieldNameRegistry=null,this.response=e,this.template=r,this.newDesign=n,this.validate()}validate(){this.compareModels(),this.validateResponse()}compareModels(){this._compareStrings(),this._compareItems(),this._compareFeatureLayers()}validateResponse(){this._validateSolutionProps(),this._validateItems(),this._validateFeatureLayer()}_compareStrings(){let e=new Set(this.template.solution.strings.map(n=>n.key)),r=new Set(this.response.solution.strings.map(n=>n.key));e.size===r.size&&[...e].every(n=>r.has(n))||this._logIssue("String keys in llm response do not match the template.");for(let n of this.response.solution.strings)n.value||this._logIssue(`String key '${n.key}' has no value in the design. It must be populated.`)}_compareItems(){let e=new Set(this.template.items.map(n=>n.id)),r=new Set(this.response.items.map(n=>n.id));e.size===r.size&&[...e].every(n=>r.has(n))||this._logIssue("Item IDs in design do not match the template.")}_compareFeatureLayers(){let e=this.template.featureLayer,r=this.response.featureLayer;if(e.itemId!==r.itemId){this._logIssue(`Feature Layer itemId '${r.itemId}' does not match template '${e.itemId}'.`);return}if(!e.addLayers){let n=new Set(e.layers.map(o=>o.id)),s=new Set(r.layers.map(o=>o.id));if(!(n.size===s.size&&[...n].every(o=>s.has(o))))this._logIssue(`Feature Layer '${e.itemId}' had its layer ids altered.`);else for(let o of e.layers)if(o.type){let i=r.layers.find(a=>a.id===o.id);i&&i.type!==o.type&&this._logIssue(`Layer '${o.id}' type '${i.type}' does not match template type '${o.type}'. This layer type is immutable.`)}}}_validateSolutionProps(){let e=this.response.solution.title,r=this.response.solution.description,n=Is(e??"");if(n.isValid||this._logIssue(`Solution title is invalid (${n.errorType}).`),r){let s=xs(r,2048);s.isValid||this._logIssue(`Solution description is invalid (${s.errorType}).`)}}_validateItems(){let e=new Set(["Feature Layer (hosted)","Feature Layer (hosted, view)"]);for(let r of this.response.items){e.has(r.type)&&r.title.length>100&&this._logIssue(`Service name '${r.title}' exceeds 100 characters.`);let n=Is(r.title??"");if(n.isValid||this._logIssue(`Item '${r.id}' title is invalid (${n.errorType}).`),r.description){let s=xs(r.description,2048);s.isValid||this._logIssue(`Item '${r.id}' description is invalid (${s.errorType}).`)}}}_validateFeatureLayer(){let e=this.template.featureLayer.layers;this.response.featureLayer.layers.length||this._logIssue("Feature layer item must contain at least one layer.");let r=this.response.featureLayer.layers.map(n=>n.name.toLowerCase());r.length!==new Set(r).size&&this._logIssue(`Layer names must be unique (case-insensitive). Layer names in design: ${r}.`);for(let n of this.response.featureLayer.layers){this._validateLayer(n,this.response.featureLayer.addLayers);let s=e.find(o=>o.id===n.id);s&&this._validateRequiredFields(n,s)}}_validateRequiredFields(e,r){let n=new Set(e.requiredFields.map(s=>s.name));for(let s of r.requiredFields)n.has(s.name)||this._logIssue(`Layer '${e.name}' is missing required field '${s.name}'.`)}_validateLayer(e,r){!r&&e.typeMutable===!0&&e.type==="Table"&&this._logIssue(`Layer '${e.name}' cannot be a Table. It may be a Point, Line, or Polygon.`);let n=Is(e.name??"");if(n.isValid||this._logIssue(`Layer '${e.name}' name is invalid (${n.errorType}).`),e.description){let s=xs(e.description,2048);s.isValid||this._logIssue(`Layer '${e.name}' description is invalid (${s.errorType}).`)}this._validateLayerFields(e)}_validateLayerFields(e){let r=new Set(["objectid","globalid","created_date","created_user","last_edited_date","last_edited_user"]),n=e.customFields.map(l=>l.name),s=new Set(e.requiredFields.map(l=>l.name)),o=[...new Set(n.filter(l=>r.has(l)))];for(let l of o)this._logIssue(`Layer '${e.name}' field '${l}' collides with a reserved system field name.`);let i=[...new Set(n.filter(l=>s.has(l)))];for(let l of i)this._logIssue(`Layer '${e.name}' field '${l}' collides with a required field name.`);if(!o.length&&!i.length){let l=e.systemFields??[],p=[...e.customFields,...e.requiredFields,...l].map(m=>m.name);p.length!==new Set(p).size&&this._logIssue(`Layer '${e.name}' has duplicate fields: ${JSON.stringify(p)}.`)}let a=e.systemFields??[],u=[...e.customFields,...e.requiredFields,...a].map(l=>l.name.toLowerCase());this.fieldNameRegistry=new Set(u);for(let l of[...e.customFields,...e.requiredFields])this._validateField(l);this.fieldNameRegistry=null}_getUniqueTruncatedFieldName(e){let r=this.fieldNameRegistry;if(!r)return e.slice(0,31);let n=e.toLowerCase();r.delete(n);let s=e.slice(0,31),o=s,i=1;for(;r.has(o.toLowerCase());){let a=`_${i}`,u=Math.max(1,31-a.length);o=`${s.slice(0,u)}${a}`,i+=1}return r.add(o.toLowerCase()),o}_validateField(e){let r=/^\p{L}/u,n=/^.[\p{L}\p{M}\p{N}_]*$/u;if(e.alias||this._logIssue(`Field '${e.name}' has no display name (alias).`),r.test(e.name)||this._logIssue(`Field '${e.name}' does not start with a letter.`),n.test(e.name)||this._logIssue(`Field '${e.name}' contains invalid characters (only letters from any writing system, numbers, and underscores are allowed; emojis and punctuation are not allowed).`),e.name.length>31)if(this.newDesign){let s=e.name;e.name=this._getUniqueTruncatedFieldName(e.name),console.debug(`Field '${s}' exceeds 31 characters. Auto-fixing to '${e.name}'.`)}else this._logIssue(`Field '${e.name}' exceeds 31 characters.`);if(Ga.has(e.name.toLowerCase()))if(this.newDesign){let s=e.name;e.name=`${s}_`,console.debug(`Field '${s}' is a SQL reserved keyword. Auto-fixing to '${e.name}'.`)}else this._logIssue(`Field '${e.name}' is a SQL reserved keyword.`);if(e.type==="string"&&this._validateStringFieldLength(e),Array.isArray(e.choiceList)&&(e.type!=="string"&&this._logIssue(`Field '${e.name}' must be of type 'string' to have a domain.`),e.choiceList.length||this._logIssue(`Field '${e.name}' has an empty domain. At least one value is required.`),e.choiceList.some(s=>!s?.trim())&&this._logIssue(`A blank domain value was added to Field '${e.name}'.`),e.choiceList.length!==new Set(e.choiceList).size&&this._logIssue(`Field '${e.name}' has duplicate domain values.`),e.length!=null)){let s=Math.max(...e.choiceList.map(o=>o.length));s>e.length&&(this.newDesign?(console.debug(`The choice provided for field '${e.name}' is too long. It must fit within ${e.length} characters, but the choice requires ${s} characters. Auto-fixing to ${s}.`),e.length=s):this._logIssue(`The choice provided for field '${e.name}' is too long. It must fit within ${e.length} characters, but the choice requires ${s} characters.`))}}_validateStringFieldLength(e){if(this.newDesign&&e.length===255&&(e.length=256),typeof e.length!="number"||Number.isNaN(e.length)){this._handleInvalidStringFieldLength(e,256);return}let r=e.length;if(!Ya(r).isValid){let n=r>4e3?4e3:256;this._handleInvalidStringFieldLength(e,n)}}_handleInvalidStringFieldLength(e,r){this.newDesign?(console.debug(`Field '${e.name}' has an invalid length. Auto-fixing to ${r}.`),e.length=r):this._logIssue(`Field '${e.name}' length is invalid (must be a number between 1 and 4000).`)}_logIssue(e){console.debug(e),this.issues.push(e),this.isValid=!1}},Oh=v.object({key:v.string().describe("Stable key identifier for the string."),value:v.string().describe("Display value for the string."),description:v.string().describe("Explanation of where/how the string is used.")}),kh=v.object({id:v.string().describe("ArcGIS item id (32 hex characters)."),title:v.string().describe("Item title."),description:v.string().describe("Item description."),type:v.enum(["Feature Layer (hosted)","Feature Layer (hosted, view)","Web Map","Instant App","Dashboard","Web Experience","Form","Table (hosted)","Table (hosted, view)","Hub Site Application","Hub Page","CSV","Data Pipeline","Desktop Application Template","Group","Notebook","QuickCapture Project"]).describe("ArcGIS item type.")}),qc=v.object({name:v.string().describe("Field name."),type:v.enum(["string","integer","double","date","oid","guid","globalid"]).describe("Field data type."),alias:v.string().describe("Field alias for display."),description:v.string().describe("Field description."),choiceList:v.array(v.string()).nullable().describe("List of allowed values for string fields with a controlled vocabulary. Null if unrestricted or not applicable."),length:v.number().int().nullable().describe("Maximum string length for string fields. Null for non-string fields.")}),Sh=v.object({id:v.number().int().describe("Layer/table id within the feature service."),type:v.enum(["Point","Polyline","Polygon","Table"]).describe("Layer type."),typeMutable:v.boolean().describe("Indicates whether the layer type can be changed."),name:v.string().describe("Layer/table name."),description:v.string().describe("Layer/table description."),customFields:v.array(qc).describe("User/business fields specific to the solution."),requiredFields:v.array(qc).describe("Fields required for solution functionality (e.g., relationship keys).")}),Eh=v.object({itemId:v.string().describe("ArcGIS item id for the feature layer."),addLayers:v.boolean().describe("Indicates whether new layers can be added during solution design."),layers:v.array(Sh)}),pa=v.object({response:v.string().describe("Conversational response to the user's query."),solution:v.object({itemId:v.string().nullable().describe("ArcGIS item id of the source Solution template used for deployment. Preserve the existing value exactly when known; otherwise use null."),title:v.string().describe("Title of the solution."),description:v.string().describe("Description of the solution."),tags:v.array(v.string()).describe("Keywords/tags associated with the solution."),strings:v.array(Oh).describe("Localized strings/labels used by apps (dashboards, forms, etc.).")}),items:v.array(kh).describe("ArcGIS items that belong to the solution (apps, maps, layers, etc.)."),featureLayer:Eh.describe("Primary feature layer item and its schema/layers/tables details.")}),Mh=v.object({op:v.enum(["add","remove","replace","move","copy"]).describe("RFC 6902 operation type."),path:v.string().describe("RFC 6901 JSON Pointer to the target location."),value:v.string().nullable().describe(`JSON-encoded value to apply (required for add and replace). Must be null \u2014 not an empty string \u2014 for remove, move, and copy operations. Serialize as a JSON string, e.g. '\\"text\\"' for a string, '[\\"a\\",\\"b\\"]' for an array, or '{\\"name\\":\\"x\\"}' for an object.`),from:v.string().nullable().describe("RFC 6901 JSON Pointer to the source location (required for move and copy). Must be null \u2014 not an empty string \u2014 for all other operations.")}),Rh=v.object({response:v.string().describe("Conversational response describing the accepted design changes."),patches:v.array(Mh).describe("Minimal RFC 6902 patch operations needed to update the current design.")}),$h=v.object({response:v.string().describe("Short, user-friendly explanation of why the requested update was not applied.")}),Nh=v.object({assistantResponse:v.string().describe("Natural-language response for the user."),isValidUpdate:v.boolean().describe("True only when the request is in scope for supported design updates.")}),Lh=v.object({matchedTitles:v.array(v.string()).describe("Titles of solutions that match the user's request. Empty array if no strong match.")}),Dh=v.object({templateId:v.string().min(1).describe("Template id from the available template list."),confidence:v.number().min(0).max(1).describe("Confidence score from 0 to 1 for this template match."),templateDescription:v.string().min(1).describe("Short action\u2011oriented description of the template in the user's use case/workflow, starting with a verb.")}),jh=v.object({assistantResponse:v.string().nullable().describe("Natural-language response for the user."),isValidUseCase:v.boolean().describe("True only when the request is concrete, appropriate, and has at least one matching template."),matchedTemplates:v.array(Dh).describe("Ordered list of matching templates, best match first. Empty when no valid match exists.")}),zh=t=>t.length?t.map((e,r)=>`${r+1}. ${e}`).join(`
81
- `):"No validation errors were provided.",Uh=async t=>{let{query:e,validationIssues:r,recentMessages:n,fallbackMessage:s,promptModules:o}=t;try{return(await Ve({promptText:await he(o,"explainValidationFailure"),modelTier:"fast",temperature:0,schema:$h,messages:n,inputVariables:{query:e,validationIssueCount:String(r.length),validationIssues:zh(r)}})).response?.trim()||s}catch(i){return console.warn("Natural language response failed:",{error:i}),s}},da=t=>t in tr,Fh=5,Bh=.8,Kh=.15,qh="Web Mapping Application",Wh="Embeddings",Io=null,la=null,xo=null,vo=null,Hh="Build",Gt=Object.assign({"./prompts/assessBuildRequest.md":()=>import("./RFSPNC4B.js").then(t=>t.default),"./prompts/assessUpdateRequest.md":()=>import("./X3CDW2ME.js").then(t=>t.default),"./prompts/description.md":()=>import("./JDCZUOU6.js").then(t=>t.default),"./prompts/designSolution.md":()=>import("./V3MSUKLX.js").then(t=>t.default),"./prompts/explainValidationFailure.md":()=>import("./MZ73EAAV.js").then(t=>t.default),"./prompts/findExistingSolution.md":()=>import("./PRXFYNIG.js").then(t=>t.default),"./prompts/updateDesign.md":()=>import("./EW4MNCWO.js").then(t=>t.default)}),Jh=Ph.builderMessages,q=t=>t?.configurable?.abortSignal.aborted??!1,Q=(t,e,r)=>Co(e)?.builderMessages?.[t]??Jh[t],Yc=t=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("arcgis-solution-design-update",{detail:t}))},Vh=async(t,e,r)=>{if(!t)return null;let n=`type:"${qh}" AND typekeywords:${Wh} AND group:${t}`;return(await Mo({q:n,params:e?{token:e}:void 0,portal:r,num:1}))?.results?.[0]??null};async function Zh(t,e,r,n){try{let s=await Vh(t,e,r);if(!s||q(n))return null;let o=new uh({id:s.id});return await o.load(),q(n)?null:await o.fetchData("json")}catch{return null}}var Gh=async(t,e,r)=>{if(!t)return[];let n=`type:Solution AND typekeywords:${Hh} AND group:${t}`;return(await Mo({q:n,params:e?{token:e}:void 0,portal:r,num:100}))?.results??[]},Yh=async(t,e,r)=>{try{let n=await Ea(t,{params:e?{token:e}:void 0,portal:r}),s=n?.buildSolution;if(!s)return null;let o=n?.params,i=o&&typeof o=="object"&&!Array.isArray(o)?o:null;return{buildSolution:s,params:i}}catch{return null}},Yt=(t,e={})=>{let r=t;return"itemId"in e&&(r={...r,solution:{...r.solution,itemId:e.itemId??null}}),e.sourceBuildSolution!=null&&(r={...r,sourceBuildSolution:e.sourceBuildSolution}),"params"in e&&(r={...r,params:e.params??null}),"templateId"in e&&(r={...r,templateId:e.templateId??null}),r},Xc=(t,e)=>{if(t==null||e==null)return{ok:!1,error:"design or sourceBuildSolution is null/undefined"};try{let r=structuredClone(e);return new qo({buildSolution:r}).applyLlmTemplate(t),{ok:!0}}catch(r){return{ok:!1,error:r instanceof Error?r.stack??r.message:String(r)}}},ma=async t=>{if(la){Object.entries(la).forEach(([i,a])=>{tr[i]&&(tr[i].initialTemplate=a)});return}let e=t?.configurable?.context?.token,r=ep(t),n=tp(t);if(!r){console.warn("Solution Builder: missing primarySolutionsGroupId in appConfig; skipping live template hydration.");return}let s=await Gh(r,e,n),o={};q(t)||(await Promise.all(s.map(async i=>{let a=i.properties?.templateInfo;if(!a||typeof a!="object")return;let u=a.id;if(typeof u!="string"||o[u])return;let l=await Yh(i.id,e,n);if(!l||q(t))return;let{buildSolution:p,params:m}=l;if(typeof p=="object"&&p!==null&&"solution"in p){let h=p.solution;h.thumbnailUrl=i.thumbnail?`${n??"https://www.arcgis.com/sharing/rest"}/content/items/${i.id}/info/${i.thumbnail}`:void 0,h.item=i}let _={...a,buildSolution:p};o[u]=Yt(new qo(_).dumpToLlmTemplate(),{itemId:i.id,sourceBuildSolution:structuredClone(p),params:m?structuredClone(m):null}),tr[u]={...a,initialTemplate:o[u]}})),la=o)},Qc=t=>{let e=t?.configurable?.context?.token;return typeof e!="string"||!e.trim()?null:e},ep=t=>{let e=t?.configurable?.context?.configContext?.primarySolutionsGroupId;return typeof e!="string"||!e.trim()?null:e},tp=t=>{let e=t?.configurable?.context?.configContext?.portalURL;if(!(typeof e!="string"||!e.trim()))return`${e.replace(/\/+$/,"")}/sharing/rest`},Xh=async t=>{await Promise.all([np(t),ma(t)])},rp=async t=>{let e=Qc(t);(!xo||e&&e!==vo)&&(vo=e??vo,xo=Xh(t).catch(r=>{throw xo=null,vo=null,r})),await xo};async function np(t){if(Io)return Io;let e=ep(t);if(!e)return console.warn("Solution Builder: missing primarySolutionsGroupId in appConfig; skipping embeddings load."),null;let r=tp(t),n=t?.configurable?.context?.configContext?.portalURL;if(await new lh(n?{url:n}:void 0).load(),q(t))return null;let s=Qc(t)??void 0,o=await Zh(e,s,r,t);return q(t)?null:o?(Io=o.items,Io):null}var Qh=()=>Object.entries(tr).map(([t,e])=>`ID: ${t}
80
+ `)}`);return await r[1]()}function Co(t){return t?.configurable?.context?.translations}function Wc(t){if(typeof window>"u"||t.length<=1)return;let e=t.map(n=>n.solution.id),r=t.map(n=>n.solution.title);window.dispatchEvent(new CustomEvent("searchTermSet",{detail:{scope:"all-solutions",searchTerm:""}})),window.dispatchEvent(new CustomEvent("solutionMatchesFromAssistant",{detail:{solutionIds:e,solutionTitles:r},bubbles:!0,composed:!0})),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:{tabType:"all-solutions"}}))}function Hc(t){if(typeof window>"u"||!t)return;let e=new CustomEvent("solutionIDFromAssistant",{detail:t,bubbles:!0,composed:!0});window.dispatchEvent(e)}var ph=A.object({needsContext:A.boolean().describe("True when the explorer query requires added context from prior turns."),rewrittenQuery:A.string().min(1).describe("The final query to send to doc AI. Keep original query if no context is needed.")}),Jc=Object.assign({"./prompts/solutions_explorer_description.md":()=>import("./AS6VINEU.js").then(t=>t.default),"./prompts/transformQuery.md":()=>import("./SNZRQPXI.js").then(t=>t.default)});function dh(t){return t.replace(/<sup>\[\[(\d+)\]\]\(([^)]+)\)<\/sup>/g,'<sup><a href="$2">&#91;$1&#93;</a></sup>')}function mh(t){return t.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,(e,r,n)=>`<img src="${n}" alt="${r}" style="width: 100%;">`)}function fh(t,e){let r=[];return(e?.configurable?.context?.configContext.allCards??[]).forEach(n=>{let s=n.title;if(!s)return;let o=new RegExp(`(?<![\\p{L}\\p{N}])${s}(?![\\p{L}\\p{N}])`,"giu"),i=!1;t=t.replace(o,(a,u,l)=>{let p=l.slice(0,u);return/<img[^>]*alt\s*=\s*["'][^"']*$/i.test(p)?a:(i=!0,`<a href="" target="solutionId:${n.deployCommonId}">${s}</a>`)}),i&&r.push({solution:{title:n.title,id:n.deployCommonId,snippet:n.snippet,description:n.description},score:100})}),{source:t,allMatches:r}}function hh(t){return t&&t.helperServices.aiAssistantServices?`${t.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/chat`:null}function Vc(t){return t&&t.helperServices.aiAssistantServices?`${t.helperServices.aiAssistantServices.url}/skills/doc_ai_assistant/api/pre-chat`:null}async function ua(t,e,r){let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",token:r},body:JSON.stringify(t)});if(!n.ok)throw new Error(`HTTP ${n.status} calling ${e}`);return n.json()}var gh=t=>new Promise(e=>setTimeout(e,t));async function _h(t,e){let r=t.agentExecutionContext.userRequest,n=e?.configurable?.context?.lastTurnAgent,s=t.agentExecutionContext.messages??[];if(!n||s.length<=1||n==="explorer")return r;try{let o=await he(Jc,"transformQuery"),i=await Ve({promptText:o,modelTier:"fast",temperature:0,schema:ph,messages:s.slice(-11),inputVariables:{query:r,lastTurnAgent:n}});if(i.needsContext&&i.rewrittenQuery.trim())return console.debug(`Rephrased query from "${r}" to "${i.rewrittenQuery.trim()}"`),i.rewrittenQuery.trim()}catch{}return r}var yh=z.Root({...ho(),solutionResponse:z({reducer:(t,e)=>e??null,default:()=>null}),documentSkillUrl:z({reducer:(t,e)=>e??null,default:()=>null}),conversationId:z({reducer:(t,e)=>e??t,default:()=>null})}),wh=()=>new er(yh).addNode("initializeAgent",bh).addNode("askSolutionsQuestions",Ah).addEdge(Xt,"initializeAgent").addEdge("initializeAgent","askSolutionsQuestions").addEdge("askSolutionsQuestions",pe),Zc=async(t,e,r,n)=>{if(!t)return;let s=Vc(t);if(!s)return;let o={context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions",persona:{persona:"apps-solutions"},pipeline:{translation:{allow:!0,language:r,use_llm:!1}}}}};n&&(o.conversationId=n),ua(o,s,e??"")},Ah=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e),n=t.documentSkillUrl,s=[],o=await _h(t,e);await Te({text:r.agentProgress.explorerAgentSearching},e);let i=await ua({message:o,conversationId:e?.configurable?.context?.convoId??void 0,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions",persona:{persona:"apps-solutions"},pipeline:{translation:{allow:!0,language:e?.configurable?.context?.configContext.locale??"en",use_llm:!1}}}}},n,e?.configurable?.context?.token??"");i.conversationId&&e?.configurable?.context?.setConversationId&&e.configurable.context.setConversationId(i.conversationId);let a={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},u="",l=async p=>{let m=p.context?.results?.[0]?.reply??"";if(m!==""){let h=dh(m),b=mh(h),I=fh(b,e);u=I.source,s=[...s,...I.allMatches.filter(R=>!s.some(g=>g.solution.id===R.solution.id))]}let _=p.context?.results?.[0]?.status?.currentStatusStep;if(_){let h="";_===1?h=r.agentProgress.explorerAgentReading:_===2?h=r.agentProgress.explorerAgentReviewing:_===3&&(h=r.agentProgress.explorerAgentPreparing),await Te({text:h},e)}};for(await l(i);a.hasMore;){if(e?.configurable?.abortSignal?.aborted)return{};await gh(500),i=await ua({conversationId:a.conversationId,ackSequenceNumber:a.ackSequenceNumber,inquiryId:a.inquiryId},n,e?.configurable?.context?.token??""),a={message:i.message,conversationId:i.conversationId,hasMore:i.hasMore,ackSequenceNumber:i.sequenceNumber,inquiryId:i.inquiryId},await l(i)}return Vc(e?.configurable?.context.portal)&&Zc(e?.configurable?.context.portal,e?.configurable?.context.token??"",e?.configurable?.context.configContext.locale??"en",a.conversationId),s.length&&(s.length===1?Hc(s[0].solution.id):Wc(s)),{outputMessage:u,summary:u,status:"success",solutionResponse:a,conversationId:a.conversationId}},bh=async(t,e)=>{let r=null;return t.documentSkillUrl===null&&e?.configurable?.context?.portal&&(r=hh(e.configurable.context.portal)),{documentSkillUrl:r}};await he(Jc,"solutions_explorer_description");var Gc=t=>{if(t&&Array.isArray(t.id)&&t.id.length>0)return t.id[t.id.length-1].replace("Message","").toLowerCase();if(t&&typeof t._getType=="function")try{return t._getType()}catch{return"human"}return"human"},Ih=t=>{let e=Gc(t);if(t&&t.kwargs)return{role:e,...t.kwargs};if(t&&typeof t=="object"){let r={role:e,content:typeof t.content=="string"?t.content:String(t.content||"")};return t.id&&(r.id=t.id),t.name&&(r.name=t.name),t.additional_kwargs&&(r.additional_kwargs=t.additional_kwargs),t.response_metadata&&(r.response_metadata=t.response_metadata),r}return{role:"human",content:String(t)}},xh=t=>Gc(t)==="human",vh=(t,e=3)=>t.filter(r=>xh(r)).slice(-e).map(Ih),Th=(t,e=" ")=>vh(t).map(r=>r.content).join(e).trim(),Ch={understandingRequest:"Understanding your request...",selectTemplatePrompt:"This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish.",searchingExistingSolutions:"Searching for existing solutions...",existingSolutionMatch:"I found one or more existing solutions that match your use case. These are ready-to-use solutions that may already meet your needs and can be deployed now. Do you want to continue building your own solution?",continueBuildingYes:"Yes, I want to build a new solution",continueBuildingNo:"No, I\u2019ll review existing solutions",continueBuildingDeclined:"Sounds good. We can focus on existing solutions. Let me know if I can help answer any questions or provide more details.",creatingDesign:"Generating solution design...",updatingDesign:"Updating solution design...",applyChangeFailed:"I wasn't able to apply that change. The design was not modified. Please try rephrasing your request.",createDesignFailed:"I wasn't able to create a solution design from that request. Please try rephrasing and try again.",discardMessage:"Are you sure you want to discard your solution?",discardForNewSolution:"I can help you build a new solution, but I will need to discard your current solution design. Do you want to continue?"},Ph={builderMessages:Ch},To=class{constructor(e,r,n=!0){this.isValid=!0,this.issues=[],this.fieldNameRegistry=null,this.response=e,this.template=r,this.newDesign=n,this.validate()}validate(){this.compareModels(),this.validateResponse()}compareModels(){this._compareStrings(),this._compareItems(),this._compareFeatureLayers()}validateResponse(){this._validateSolutionProps(),this._validateItems(),this._validateFeatureLayer()}_compareStrings(){let e=new Set(this.template.solution.strings.map(n=>n.key)),r=new Set(this.response.solution.strings.map(n=>n.key));e.size===r.size&&[...e].every(n=>r.has(n))||this._logIssue("String keys in llm response do not match the template.");for(let n of this.response.solution.strings)n.value||this._logIssue(`String key '${n.key}' has no value in the design. It must be populated.`)}_compareItems(){let e=new Set(this.template.items.map(n=>n.id)),r=new Set(this.response.items.map(n=>n.id));e.size===r.size&&[...e].every(n=>r.has(n))||this._logIssue("Item IDs in design do not match the template.")}_compareFeatureLayers(){let e=this.template.featureLayer,r=this.response.featureLayer;if(e.itemId!==r.itemId){this._logIssue(`Feature Layer itemId '${r.itemId}' does not match template '${e.itemId}'.`);return}if(!e.addLayers){let n=new Set(e.layers.map(o=>o.id)),s=new Set(r.layers.map(o=>o.id));if(!(n.size===s.size&&[...n].every(o=>s.has(o))))this._logIssue(`Feature Layer '${e.itemId}' had its layer ids altered.`);else for(let o of e.layers)if(o.type){let i=r.layers.find(a=>a.id===o.id);i&&i.type!==o.type&&this._logIssue(`Layer '${o.id}' type '${i.type}' does not match template type '${o.type}'. This layer type is immutable.`)}}}_validateSolutionProps(){let e=this.response.solution.title,r=this.response.solution.description,n=Is(e??"");if(n.isValid||this._logIssue(`Solution title is invalid (${n.errorType}).`),r){let s=xs(r,2048,!0);s.isValid||this._logIssue(`Solution description is invalid (${s.errorType}).`)}}_validateItems(){let e=new Set(["Feature Layer (hosted)","Feature Layer (hosted, view)"]);for(let r of this.response.items){e.has(r.type)&&r.title.length>100&&this._logIssue(`Service name '${r.title}' exceeds 100 characters.`);let n=Is(r.title??"");if(n.isValid||this._logIssue(`Item '${r.id}' title is invalid (${n.errorType}).`),r.description){let s=xs(r.description,2048,!0);s.isValid||this._logIssue(`Item '${r.id}' description is invalid (${s.errorType}).`)}}}_validateFeatureLayer(){let e=this.template.featureLayer.layers;this.response.featureLayer.layers.length||this._logIssue("Feature layer item must contain at least one layer.");let r=this.response.featureLayer.layers.map(n=>n.name.toLowerCase());r.length!==new Set(r).size&&this._logIssue(`Layer names must be unique (case-insensitive). Layer names in design: ${r}.`);for(let n of this.response.featureLayer.layers){this._validateLayer(n,this.response.featureLayer.addLayers);let s=e.find(o=>o.id===n.id);s&&this._validateRequiredFields(n,s)}}_validateRequiredFields(e,r){let n=new Set(e.requiredFields.map(s=>s.name));for(let s of r.requiredFields)n.has(s.name)||this._logIssue(`Layer '${e.name}' is missing required field '${s.name}'.`)}_validateLayer(e,r){!r&&e.typeMutable===!0&&e.type==="Table"&&this._logIssue(`Layer '${e.name}' cannot be a Table. It may be a Point, Line, or Polygon.`);let n=Is(e.name??"");if(n.isValid||this._logIssue(`Layer '${e.name}' name is invalid (${n.errorType}).`),e.description){let s=xs(e.description,2048,!0);s.isValid||this._logIssue(`Layer '${e.name}' description is invalid (${s.errorType}).`)}this._validateLayerFields(e)}_validateLayerFields(e){let r=new Set(["objectid","globalid","created_date","created_user","last_edited_date","last_edited_user"]),n=e.customFields.map(l=>l.name),s=new Set(e.requiredFields.map(l=>l.name)),o=[...new Set(n.filter(l=>r.has(l)))];for(let l of o)this._logIssue(`Layer '${e.name}' field '${l}' collides with a reserved system field name.`);let i=[...new Set(n.filter(l=>s.has(l)))];for(let l of i)this._logIssue(`Layer '${e.name}' field '${l}' collides with a required field name.`);if(!o.length&&!i.length){let l=e.systemFields??[],p=[...e.customFields,...e.requiredFields,...l].map(m=>m.name);p.length!==new Set(p).size&&this._logIssue(`Layer '${e.name}' has duplicate fields: ${JSON.stringify(p)}.`)}let a=e.systemFields??[],u=[...e.customFields,...e.requiredFields,...a].map(l=>l.name.toLowerCase());this.fieldNameRegistry=new Set(u);for(let l of[...e.customFields,...e.requiredFields])this._validateField(l);this.fieldNameRegistry=null}_getUniqueTruncatedFieldName(e){let r=this.fieldNameRegistry;if(!r)return e.slice(0,31);let n=e.toLowerCase();r.delete(n);let s=e.slice(0,31),o=s,i=1;for(;r.has(o.toLowerCase());){let a=`_${i}`,u=Math.max(1,31-a.length);o=`${s.slice(0,u)}${a}`,i+=1}return r.add(o.toLowerCase()),o}_validateField(e){let r=/^\p{L}/u,n=/^.[\p{L}\p{M}\p{N}_]*$/u;if(e.alias||this._logIssue(`Field '${e.name}' has no display name (alias).`),r.test(e.name)||this._logIssue(`Field '${e.name}' does not start with a letter.`),n.test(e.name)||this._logIssue(`Field '${e.name}' contains invalid characters (only letters from any writing system, numbers, and underscores are allowed; emojis and punctuation are not allowed).`),e.name.length>31)if(this.newDesign){let s=e.name;e.name=this._getUniqueTruncatedFieldName(e.name),console.debug(`Field '${s}' exceeds 31 characters. Auto-fixing to '${e.name}'.`)}else this._logIssue(`Field '${e.name}' exceeds 31 characters.`);if(Ga.has(e.name.toLowerCase()))if(this.newDesign){let s=e.name;e.name=`${s}_`,console.debug(`Field '${s}' is a SQL reserved keyword. Auto-fixing to '${e.name}'.`)}else this._logIssue(`Field '${e.name}' is a SQL reserved keyword.`);if(e.type==="string"&&this._validateStringFieldLength(e),Array.isArray(e.choiceList)&&(e.type!=="string"&&this._logIssue(`Field '${e.name}' must be of type 'string' to have a domain.`),e.choiceList.length||this._logIssue(`Field '${e.name}' has an empty domain. At least one value is required.`),e.choiceList.some(s=>!s?.trim())&&this._logIssue(`A blank domain value was added to Field '${e.name}'.`),e.choiceList.length!==new Set(e.choiceList).size&&this._logIssue(`Field '${e.name}' has duplicate domain values.`),e.length!=null)){let s=Math.max(...e.choiceList.map(o=>o.length));s>e.length&&(this.newDesign?(console.debug(`The choice provided for field '${e.name}' is too long. It must fit within ${e.length} characters, but the choice requires ${s} characters. Auto-fixing to ${s}.`),e.length=s):this._logIssue(`The choice provided for field '${e.name}' is too long. It must fit within ${e.length} characters, but the choice requires ${s} characters.`))}}_validateStringFieldLength(e){if(this.newDesign&&e.length===255&&(e.length=256),typeof e.length!="number"||Number.isNaN(e.length)){this._handleInvalidStringFieldLength(e,256);return}let r=e.length;if(!Ya(r).isValid){let n=r>4e3?4e3:256;this._handleInvalidStringFieldLength(e,n)}}_handleInvalidStringFieldLength(e,r){this.newDesign?(console.debug(`Field '${e.name}' has an invalid length. Auto-fixing to ${r}.`),e.length=r):this._logIssue(`Field '${e.name}' length is invalid (must be a number between 1 and 4000).`)}_logIssue(e){console.debug(e),this.issues.push(e),this.isValid=!1}},Oh=v.object({key:v.string().describe("Stable key identifier for the string."),value:v.string().describe("Display value for the string."),description:v.string().describe("Explanation of where/how the string is used.")}),kh=v.object({id:v.string().describe("ArcGIS item id (32 hex characters)."),title:v.string().describe("Item title."),description:v.string().describe("Item description."),type:v.enum(["Feature Layer (hosted)","Feature Layer (hosted, view)","Web Map","Instant App","Dashboard","Web Experience","Form","Table (hosted)","Table (hosted, view)","Hub Site Application","Hub Page","CSV","Data Pipeline","Desktop Application Template","Group","Notebook","QuickCapture Project"]).describe("ArcGIS item type.")}),qc=v.object({name:v.string().describe("Field name."),type:v.enum(["string","integer","double","date","oid","guid","globalid"]).describe("Field data type."),alias:v.string().describe("Field alias for display."),description:v.string().describe("Field description."),choiceList:v.array(v.string()).nullable().describe("List of allowed values for string fields with a controlled vocabulary. Null if unrestricted or not applicable."),length:v.number().int().nullable().describe("Maximum string length for string fields. Null for non-string fields.")}),Sh=v.object({id:v.number().int().describe("Layer/table id within the feature service."),type:v.enum(["Point","Polyline","Polygon","Table"]).describe("Layer type."),typeMutable:v.boolean().describe("Indicates whether the layer type can be changed."),name:v.string().describe("Layer/table name."),description:v.string().describe("Layer/table description."),customFields:v.array(qc).describe("User/business fields specific to the solution."),requiredFields:v.array(qc).describe("Fields required for solution functionality (e.g., relationship keys).")}),Eh=v.object({itemId:v.string().describe("ArcGIS item id for the feature layer."),addLayers:v.boolean().describe("Indicates whether new layers can be added during solution design."),layers:v.array(Sh)}),pa=v.object({response:v.string().describe("Conversational response to the user's query."),solution:v.object({itemId:v.string().nullable().describe("ArcGIS item id of the source Solution template used for deployment. Preserve the existing value exactly when known; otherwise use null."),title:v.string().describe("Title of the solution."),description:v.string().describe("Description of the solution."),tags:v.array(v.string()).describe("Keywords/tags associated with the solution."),strings:v.array(Oh).describe("Localized strings/labels used by apps (dashboards, forms, etc.).")}),items:v.array(kh).describe("ArcGIS items that belong to the solution (apps, maps, layers, etc.)."),featureLayer:Eh.describe("Primary feature layer item and its schema/layers/tables details.")}),Mh=v.object({op:v.enum(["add","remove","replace","move","copy"]).describe("RFC 6902 operation type."),path:v.string().describe("RFC 6901 JSON Pointer to the target location."),value:v.string().nullable().describe(`JSON-encoded value to apply (required for add and replace). Must be null \u2014 not an empty string \u2014 for remove, move, and copy operations. Serialize as a JSON string, e.g. '\\"text\\"' for a string, '[\\"a\\",\\"b\\"]' for an array, or '{\\"name\\":\\"x\\"}' for an object.`),from:v.string().nullable().describe("RFC 6901 JSON Pointer to the source location (required for move and copy). Must be null \u2014 not an empty string \u2014 for all other operations.")}),Rh=v.object({response:v.string().describe("Conversational response describing the accepted design changes."),patches:v.array(Mh).describe("Minimal RFC 6902 patch operations needed to update the current design.")}),$h=v.object({response:v.string().describe("Short, user-friendly explanation of why the requested update was not applied.")}),Nh=v.object({assistantResponse:v.string().describe("Natural-language response for the user."),isValidUpdate:v.boolean().describe("True only when the request is in scope for supported design updates.")}),Lh=v.object({matchedTitles:v.array(v.string()).describe("Titles of solutions that match the user's request. Empty array if no strong match.")}),Dh=v.object({templateId:v.string().min(1).describe("Template id from the available template list."),confidence:v.number().min(0).max(1).describe("Confidence score from 0 to 1 for this template match."),templateDescription:v.string().min(1).describe("Short action\u2011oriented description of the template in the user's use case/workflow, starting with a verb.")}),jh=v.object({assistantResponse:v.string().nullable().describe("Natural-language response for the user."),isValidUseCase:v.boolean().describe("True only when the request is concrete, appropriate, and has at least one matching template."),matchedTemplates:v.array(Dh).describe("Ordered list of matching templates, best match first. Empty when no valid match exists.")}),zh=t=>t.length?t.map((e,r)=>`${r+1}. ${e}`).join(`
81
+ `):"No validation errors were provided.",Uh=async t=>{let{query:e,validationIssues:r,recentMessages:n,fallbackMessage:s,promptModules:o}=t;try{return(await Ve({promptText:await he(o,"explainValidationFailure"),modelTier:"fast",temperature:0,schema:$h,messages:n,inputVariables:{query:e,validationIssueCount:String(r.length),validationIssues:zh(r)}})).response?.trim()||s}catch(i){return console.warn("Natural language response failed:",{error:i}),s}},da=t=>t in tr,Fh=5,Bh=.8,Kh=.15,qh="Web Mapping Application",Wh="Embeddings",Io=null,la=null,xo=null,vo=null,Hh="Build",Gt=Object.assign({"./prompts/assessBuildRequest.md":()=>import("./DLDR5V2P.js").then(t=>t.default),"./prompts/assessUpdateRequest.md":()=>import("./QLX3XORL.js").then(t=>t.default),"./prompts/description.md":()=>import("./E25ZWVBK.js").then(t=>t.default),"./prompts/designSolution.md":()=>import("./VXGLGWIF.js").then(t=>t.default),"./prompts/explainValidationFailure.md":()=>import("./I5E3PM26.js").then(t=>t.default),"./prompts/findExistingSolution.md":()=>import("./LPFG5XTA.js").then(t=>t.default),"./prompts/updateDesign.md":()=>import("./MDKHW7NM.js").then(t=>t.default)}),Jh=Ph.builderMessages,q=t=>t?.configurable?.abortSignal.aborted??!1,Q=(t,e,r)=>Co(e)?.builderMessages?.[t]??Jh[t],Yc=t=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("arcgis-solution-design-update",{detail:t}))},Vh=async(t,e,r)=>{if(!t)return null;let n=`type:"${qh}" AND typekeywords:${Wh} AND group:${t}`;return(await Mo({q:n,params:e?{token:e}:void 0,portal:r,num:1}))?.results?.[0]??null};async function Zh(t,e,r,n){try{let s=await Vh(t,e,r);if(!s||q(n))return null;let o=new uh({id:s.id});return await o.load(),q(n)?null:await o.fetchData("json")}catch{return null}}var Gh=async(t,e,r)=>{if(!t)return[];let n=`type:Solution AND typekeywords:${Hh} AND group:${t}`;return(await Mo({q:n,params:e?{token:e}:void 0,portal:r,num:100}))?.results??[]},Yh=async(t,e,r)=>{try{let n=await Ea(t,{params:e?{token:e}:void 0,portal:r}),s=n?.buildSolution;if(!s)return null;let o=n?.params,i=o&&typeof o=="object"&&!Array.isArray(o)?o:null;return{buildSolution:s,params:i}}catch{return null}},Yt=(t,e={})=>{let r=t;return"itemId"in e&&(r={...r,solution:{...r.solution,itemId:e.itemId??null}}),e.sourceBuildSolution!=null&&(r={...r,sourceBuildSolution:e.sourceBuildSolution}),"params"in e&&(r={...r,params:e.params??null}),"templateId"in e&&(r={...r,templateId:e.templateId??null}),r},Xc=(t,e)=>{if(t==null||e==null)return{ok:!1,error:"design or sourceBuildSolution is null/undefined"};try{let r=structuredClone(e);return new qo({buildSolution:r}).applyLlmTemplate(t),{ok:!0}}catch(r){return{ok:!1,error:r instanceof Error?r.stack??r.message:String(r)}}},ma=async t=>{if(la){Object.entries(la).forEach(([i,a])=>{tr[i]&&(tr[i].initialTemplate=a)});return}let e=t?.configurable?.context?.token,r=ep(t),n=tp(t);if(!r){console.warn("Solution Builder: missing primarySolutionsGroupId in appConfig; skipping live template hydration.");return}let s=await Gh(r,e,n),o={};q(t)||(await Promise.all(s.map(async i=>{let a=i.properties?.templateInfo;if(!a||typeof a!="object")return;let u=a.id;if(typeof u!="string"||o[u])return;let l=await Yh(i.id,e,n);if(!l||q(t))return;let{buildSolution:p,params:m}=l;if(typeof p=="object"&&p!==null&&"solution"in p){let h=p.solution;h.thumbnailUrl=i.thumbnail?`${n??"https://www.arcgis.com/sharing/rest"}/content/items/${i.id}/info/${i.thumbnail}`:void 0,h.item=i}let _={...a,buildSolution:p};o[u]=Yt(new qo(_).dumpToLlmTemplate(),{itemId:i.id,sourceBuildSolution:structuredClone(p),params:m?structuredClone(m):null}),tr[u]={...a,initialTemplate:o[u]}})),la=o)},Qc=t=>{let e=t?.configurable?.context?.token;return typeof e!="string"||!e.trim()?null:e},ep=t=>{let e=t?.configurable?.context?.configContext?.primarySolutionsGroupId;return typeof e!="string"||!e.trim()?null:e},tp=t=>{let e=t?.configurable?.context?.configContext?.portalURL;if(!(typeof e!="string"||!e.trim()))return`${e.replace(/\/+$/,"")}/sharing/rest`},Xh=async t=>{await Promise.all([np(t),ma(t)])},rp=async t=>{let e=Qc(t);(!xo||e&&e!==vo)&&(vo=e??vo,xo=Xh(t).catch(r=>{throw xo=null,vo=null,r})),await xo};async function np(t){if(Io)return Io;let e=ep(t);if(!e)return console.warn("Solution Builder: missing primarySolutionsGroupId in appConfig; skipping embeddings load."),null;let r=tp(t),n=t?.configurable?.context?.configContext?.portalURL;if(await new lh(n?{url:n}:void 0).load(),q(t))return null;let s=Qc(t)??void 0,o=await Zh(e,s,r,t);return q(t)?null:o?(Io=o.items,Io):null}var Qh=()=>Object.entries(tr).map(([t,e])=>`ID: ${t}
82
82
  Label: ${e.label}
83
83
  Description: ${e.description}`).join(`
84
84
 
@@ -87,4 +87,4 @@ Snippet: ${p.snippet}
87
87
  Description: ${p.description}`).join(`
88
88
 
89
89
  `),l=t.agentExecutionContext.messages.slice(-11);return{existingMatches:(await Ve({promptText:await he(Gt,"findExistingSolution"),modelTier:"fast",temperature:0,schema:Lh,messages:l,inputVariables:{query:r,candidates:u}})).matchedTitles.map(p=>a.find(({solution:m})=>m.title===p)).filter(p=>p!==void 0)}},ug=(t,e)=>{if(q(e))return{};let{existingMatches:r}=t,{hitlResponse:n}=e.configurable,s=`confirmExistingSolution:${r[0].solution.id}`;if(n?.agentId!=="solutionBuilder"||n.id!==s){r.length===1?Hc(r[0].solution.id):Wc(r);let a=Q("existingSolutionMatch",e),u=[Q("continueBuildingYes",e),Q("continueBuildingNo",e)],l={agentId:"solutionBuilder",id:s,kind:"singleSelection",message:a,metadata:u};throw new Ro(l)}let o=String(n.payload??"").trim(),i=Q("continueBuildingNo",e);return{continueBuilding:o!==i}},cg=(t,e)=>{let r=Q("continueBuildingDeclined",e);return{outputMessage:r,summary:r,status:"success"}},sp=async(t,e)=>{if(q(e))return{};if(await rp(e),q(e))return{};let{currentDesign:r}=t,n=t.agentExecutionContext.userRequest;await Te({text:Q("creatingDesign",e)},e);let s=On(t.selectedTemplate);if(s?.initialTemplate||(await ma(e),s=On(t.selectedTemplate)),q(e))return{};if(!s?.initialTemplate)throw new Error("No hydrated templates are available for solution design.");let o=Yt(r??s.initialTemplate,{itemId:(r??s.initialTemplate)?.solution?.itemId??null,sourceBuildSolution:r?.sourceBuildSolution??s.initialTemplate.sourceBuildSolution,params:r?.params??s.initialTemplate.params??null}),i=t.agentExecutionContext.messages.slice(-11),a=await Ve({promptText:await he(Gt,"designSolution"),modelTier:"advanced",temperature:0,schema:pa,messages:i,inputVariables:{currentDesign:JSON.stringify(Wo(o)),templateInstructions:s.instructions,query:n}});if(await Te({text:" of design solution 1"},e),q(e))return{};let{response:u,featureLayer:l,...p}=a,m=Jo(l,o.featureLayer),_=Yt({...p,featureLayer:m},{itemId:o?.solution?.itemId,sourceBuildSolution:o.sourceBuildSolution,templateId:t.selectedTemplate??null,params:o.params??null}),h=new To(_,s.initialTemplate);if(!h.isValid)return console.warn("[SolutionBuilder] designSolution validation failed:",{issues:h.issues,llmResponse:a}),{outputMessage:Q("createDesignFailed",e)};let b=_.sourceBuildSolution,I=Xc(_,b);if(!I.ok){console.warn("[SolutionBuilder] designSolution Esri JSON conversion failed:",{error:I.error,llmResponse:a,design:_});let R=Q("createDesignFailed",e);return{outputMessage:R,summary:R,status:"success"}}return q(e)?{}:(Yc(_),{outputMessage:u,summary:u,status:"success",currentDesign:_})},pg=async(t,e)=>{if(q(e))return{};let{currentDesign:r}=t;if(!r)return sp(t,e);let n=t.agentExecutionContext.userRequest,s=t.agentExecutionContext.messages.slice(-11);await Te({text:Q("updatingDesign",e)},e);let o;try{o=await Ve({promptText:await he(Gt,"updateDesign"),modelTier:"advanced",temperature:0,schema:Rh,messages:s,inputVariables:{currentDesign:JSON.stringify(Ho(r)),query:n}})}catch(k){console.warn("[SolutionBuilder] updateDesign structured prompt failed:",k);let D=Q("applyChangeFailed",e);return{outputMessage:D,summary:D,status:"success"}}let{response:i,patches:a}=o;if(!a||a.length===0)return{outputMessage:i,summary:i,status:"success"};let u=k=>{try{return JSON.parse(k)}catch{let D=k.replace(/[\u0000-\u001F]/g,U=>{switch(U){case"\b":return"\\b";case"\f":return"\\f";case`
90
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return"\\u"+U.charCodeAt(0).toString(16).padStart(4,"0")}});try{return JSON.parse(D)}catch{return k}}},l=[...a.map(k=>({op:k.op,path:k.path.replace(/\/+$/,""),...k.value!=null&&k.value!==""?{value:u(k.value)}:{},...k.from!=null&&k.from!==""?{from:k.from}:{}}))].sort((k,D)=>k.op!=="remove"||D.op!=="remove"?0:D.path.localeCompare(k.path,void 0,{numeric:!0})),p=structuredClone(Wo(r));try{vn(p,l,!0)}catch(k){console.warn("[SolutionBuilder] updateDesign JSON patch failed:",{error:k,llmResponse:o,patches:l,patchTarget:p});let D=Q("applyChangeFailed",e);return{outputMessage:D,summary:D,status:"success"}}let m=Yt({response:"",...p},{itemId:r.solution?.itemId??null}),_=pa.safeParse(m);if(!_.success){console.warn("[SolutionBuilder] updateDesign schema validation failed:",{errors:_.error.issues,llmResponse:o,patchedDesign:m});let k=Q("applyChangeFailed",e);return{outputMessage:k,summary:k,status:"success"}}let{response:h,featureLayer:b,...I}=_.data,R=Jo(b,r.featureLayer),g=Yt({...I,featureLayer:R},{itemId:r.solution?.itemId,sourceBuildSolution:r.sourceBuildSolution,templateId:r.templateId??t.selectedTemplate??null,params:r.params??null}),w=On(t.selectedTemplate);if(w?.initialTemplate||(await ma(e),w=On(t.selectedTemplate)),q(e))return{};if(!w?.initialTemplate)throw new Error("No hydrated templates are available for solution design.");let O=new To(g,w.initialTemplate,!1);if(!O.isValid){console.warn("[SolutionBuilder] updateDesign validation failed:",{issues:O.issues,llmResponse:o,patchedDesign:g});let k=await Uh({query:n,validationIssues:O.issues,recentMessages:s,fallbackMessage:Q("applyChangeFailed",e),promptModules:Gt});return{outputMessage:k,summary:k,status:"success"}}let L=g.sourceBuildSolution,W=Xc(g,L);if(!W.ok){console.warn("[SolutionBuilder] updateDesign Esri JSON conversion failed:",{error:W.error,llmResponse:o,design:g});let k=Q("applyChangeFailed",e);return{outputMessage:k,summary:k,status:"success"}}return q(e)?{}:(Yc(g),{outputMessage:i,summary:i,status:"success",currentDesign:g})},dg=t=>t.currentDesign!==null?"assessUpdateRequest":"assessBuildRequest",mg=t=>!t.updateAssessment||!t.updateAssessment.isValidUpdate?"invalidUpdateExit":"updateDesign",fg=t=>!t.assessment||!t.assessment.isValidUseCase?"invalidBuildExit":!t.selectedTemplate&&t.assessment.matchedTemplates.length>1?"selectTemplateHIL":"findExistingSolutions",hg=t=>t.existingMatches.length>0?"confirmContinueBuildingHIL":"designSolution",gg=t=>t.continueBuilding===!1?"declineContinueBuildingExit":"designSolution",_g=()=>new er(tg).addNode("syncCurrentDesignFromContext",rg).addNode("assessBuildRequest",ng).addNode("assessUpdateRequest",og).addNode("invalidBuildExit",sg).addNode("invalidUpdateExit",ig).addNode("selectTemplateHIL",ag).addNode("findExistingSolutions",lg).addNode("confirmContinueBuildingHIL",ug).addNode("declineContinueBuildingExit",cg).addNode("designSolution",sp).addNode("updateDesign",pg).addEdge(Xt,"syncCurrentDesignFromContext").addConditionalEdges("syncCurrentDesignFromContext",dg,{assessUpdateRequest:"assessUpdateRequest",assessBuildRequest:"assessBuildRequest"}).addConditionalEdges("assessUpdateRequest",mg,{invalidUpdateExit:"invalidUpdateExit",updateDesign:"updateDesign"}).addConditionalEdges("assessBuildRequest",fg,{invalidBuildExit:"invalidBuildExit",selectTemplateHIL:"selectTemplateHIL",findExistingSolutions:"findExistingSolutions"}).addEdge("invalidBuildExit",pe).addEdge("invalidUpdateExit",pe).addEdge("selectTemplateHIL","findExistingSolutions").addConditionalEdges("findExistingSolutions",hg,{confirmContinueBuildingHIL:"confirmContinueBuildingHIL",designSolution:"designSolution"}).addConditionalEdges("confirmContinueBuildingHIL",gg,{declineContinueBuildingExit:"declineContinueBuildingExit",designSolution:"designSolution"}).addEdge("declineContinueBuildingExit",pe).addEdge("designSolution",pe).addEdge("updateDesign",pe);await he(Gt,"description");var yg=A.object({tool:A.enum(["explorer","builder","other"]).describe("The selected tool based on the user's query."),confidence:A.number().min(0).max(1).describe("A confidence score (0.00\u20131.00)."),rationale:A.string().min(1).describe("A brief rationale for the tool choice (\u2264140 characters)")}),fa=Object.assign({"./prompts/assistantResponse.md":()=>import("./VCL4OTSQ.js").then(t=>t.default),"./prompts/classifyIntent.md":()=>import("./LJIX7K76.js").then(t=>t.default),"./prompts/description.md":()=>import("./XBFG3KX6.js").then(t=>t.default)}),ha=(t,e)=>{let r=t?.configurable?.context?.setLastTurnAgent;typeof r=="function"&&r(e);let n=new CustomEvent("assistantProcessing",{detail:{finished:!0,agent:e}});window.dispatchEvent(n)},op=z.Root({...ho(),selectedTool:z({reducer:(t,e)=>e??null,default:()=>null}),intentRationale:z({reducer:(t,e)=>e??null,default:()=>null})}),wg=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e);await Te({text:r?.builderMessages.understandingRequest},e);let n=t.agentExecutionContext.userRequest,s=t.agentExecutionContext.messages.slice(-11),o=e?.configurable?.context?.solutionDesignJson,i=!1;if(typeof o=="string"&&o.trim())try{i=JSON.parse(o).solution!=null}catch{i=!1}let a=await he(fa,"classifyIntent"),u=await Ve({promptText:a,modelTier:"advanced",temperature:0,schema:yg,messages:s,inputVariables:{query:n,activeSolutionDesign:i}});return{selectedTool:u.tool,intentRationale:u.rationale}},Ag=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=await wh().compile().invoke(t,e);return ha(e,"explorer"),r},bg=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=await _g().compile().invoke(t,e);return ha(e,"builder"),r},Ig=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e),n=t.agentExecutionContext.userRequest,s=t.intentRationale??"No rationale available.";await Te({text:r?.executingSolutionsAssistantAgent},e);let o=await he(fa,"assistantResponse"),i=t.agentExecutionContext.messages.slice(-11),a=await Uc({promptText:o,modelTier:"advanced",temperature:0,messages:i,inputVariables:{query:n,rationale:s}});return ha(e,"assistant"),{outputMessage:a,summary:a,status:"success"}},xg=t=>t.selectedTool??"other",vg=()=>new er(op).addNode("classifyIntent",wg).addNode("routeToExplorer",Ag).addNode("routeToBuilder",bg).addNode("assistantResponse",Ig).addEdge(Xt,"classifyIntent").addConditionalEdges("classifyIntent",xg,{explorer:"routeToExplorer",builder:"routeToBuilder",other:"assistantResponse"}).addEdge("routeToExplorer",pe).addEdge("routeToBuilder",pe).addEdge("assistantResponse",pe),Tg=await he(fa,"description"),Cg={id:"solutionsAssistant",name:"Solutions Assistant Agent",description:Tg,createGraph:vg,workspace:op},Pg="https://links.esri.com/solutions/agol-organizational-account",Og="https://links.esri.com/solutions/configure-assistants",ca=class extends Ca{constructor(){super(),this.open=!1,this.userFirstName="",this.builderVisible=!1,this.hasActiveBuilderDesign=!1,this._conversationId=void 0,this._lastTurnAgent=void 0,this._orgSettings={aiAssistantsEnabled:!1,blockBetaApps:!0,colocateCompute:!1},this._suggestedPrompts=[],this._hasInteracted=!1,this._isMobile=window.innerWidth<=800,this._translations=Oa({name:"arcgis-solutions-assistant",blocking:!0}),this._builderWidth=48,this._solutionDesignJson='{ "solution": null }',this._isAssistantBusy=!1,this._isBuilderBusy=!1,this._preChatCheck=!1,this._showNewChatConfirm=!1,this._assistantRef=va(),this._configContextConsumer=Eo({context:ka,subscribe:!0,callback:e=>{e?.portalURL&&(aa.portalUrl=e.portalURL),e?.userSession&&!this.userFirstName&&this._loadUserFirstName(),e?.authentication?.PortalSubset?.orgSettings&&(this._orgSettings=e?.authentication?.PortalSubset?.orgSettings)}}),this._builderDesignContextConsumer=Eo({context:Sa,subscribe:!0,callback:e=>{e?.design&&(this._solutionDesignJson=JSON.stringify(e.design,null,2))}}),this._handleResize=()=>{this._isMobile=window.innerWidth<=800},this._chatStartTime=null,this._handleAssistantProcessingFinished=e=>{let r=e;if(r.detail?.finished&&this._chatStartTime!==null){let n=Ma(this._chatStartTime);this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"Chat",dimensions:[r.detail.agent],metrics:[n]}),this._chatStartTime=null,this.assistantProcessing.emit(!1)}},this.closeAssistant=ko(),this.assistantProcessing=ko(),this._handleAssistantLinkClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement);if(r?.href)if(e.preventDefault(),r.target.indexOf("solutionId:")>-1){let n=r.target.split("solutionId:")[1];this._emitItemIdFromAI(n)}else window.open(r.href,"_blank","noopener,noreferrer")},this._onSolutionDesignUpdate=e=>{let r=e.detail;this._solutionDesignJson=r?JSON.stringify(r,null,2):'{ "solution": null }'},this._handleSignIn=()=>{this._configContextConsumer.value?.authentication?.signIn("aiOpen")},this._checkURLOpenParameter=()=>{this.open=this._configContextConsumer.value?.authentication?.SignInParam==="aiOpen"||this.open},this.listenOn(window,"arcgisFeedback",e=>{let r=e.detail,{agentPicked:n,taskAssigned:s,userMessage:o}=this._parseAgentPickedAndTask(r);this._sendFeedback(r.content,o??s??"",r.feedback?.positive?"Good":r.feedback?.positive=="Bad"?"Bad":"N/A",n??"")}),this.listenOn(window,"clearAssistantConversation",()=>{this._clearConversation()})}static{this.properties={open:5,userFirstName:1,builderVisible:5,hasActiveBuilderDesign:5,_conversationId:16,_lastTurnAgent:16,_orgSettings:16,_suggestedPrompts:16,_hasInteracted:16,_isMobile:16,_translations:16,_builderWidth:16,_solutionDesignJson:16,_isAssistantBusy:16,_isBuilderBusy:16,_preChatCheck:16,_showNewChatConfirm:16}}static{this.styles=ch}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}connectedCallback(){super.connectedCallback(),window.addEventListener("arcgis-solution-design-update",this._onSolutionDesignUpdate),this.el.addEventListener("click",this._handleAssistantLinkClick),window.addEventListener("resize",this._handleResize),window.addEventListener("assistantProcessing",this._handleAssistantProcessingFinished),this._builderDesignContextConsumer}disconnectedCallback(){window.removeEventListener("arcgis-solution-design-update",this._onSolutionDesignUpdate),this.el.removeEventListener("click",this._handleAssistantLinkClick),window.removeEventListener("resize",this._handleResize),window.removeEventListener("assistantProcessing",this._handleAssistantProcessingFinished),super.disconnectedCallback()}loaded(){this._checkURLOpenParameter()}load(){aa.applicationName="Solutions",this._configContextConsumer.value?.portalURL&&(aa.portalUrl=this._configContextConsumer.value.portalURL)}firstUpdated(e){this._loadUserFirstName()}willUpdate(e){e.has("open")&&this.open&&window.dispatchEvent(new CustomEvent("openAssistant")),this._configContextConsumer.value?.authentication&&this._configContextConsumer.value?.userSession?.token&&(this._preChatCheck||(Zc(this._configContextConsumer.value?.authentication.Portal,this._configContextConsumer.value?.userSession?.token,this._configContextConsumer.value?.locale??"en"),this._preChatCheck=!0)),this._configContextConsumer.value?.userSession?.token&&this._configContextConsumer.value?.authentication?.CanUseAI}_renderNoSign(){return Ze`<calcite-notice class="margin-lg" open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage??So} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`}_renderNoPermission(){return Ze`<calcite-notice class="margin-lg" open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${Xa(this._translations.noPermissionMessage.replace("{{orgUrl}}",Pg).replace("{{configAI}}",Og))}</div></calcite-notice>`}render(){let e=this._suggestedPrompts.length>0?this._suggestedPrompts:this._hasInteracted?[]:Object.values(this._translations.defaultFollowUpQuestions);return this._suggestedPrompts.length>0?e=this._suggestedPrompts:this._hasInteracted||(e=[...Object.values(this._translations.defaultFollowUpQuestions)]),Ze`<calcite-panel class="chat-panel"><div class="header-content" slot=header-content><span class="header-title">${this._translations.solutionAssistantTitle}</span></div>${this._configContextConsumer.value?.userSession?.token?this._configContextConsumer.value?.authentication?.CanUseAI?Ze`${!this._isMobile&&Ze`<calcite-action id=solutionBuilderAction icon=pencil-square .text=${this._translations.tooltips.builder} text-enabled .indicator=${this.hasActiveBuilderDesign} .disabled=${!this.hasActiveBuilderDesign} .active=${this.builderVisible} selection-appearance=highlight @click=${()=>{this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"Toggle Builder Panel",dimensions:[this.builderVisible?"Close":"Open"]}),window.dispatchEvent(new CustomEvent("toggleSolutionBuilder"))}} scale=m slot=header-actions-end></calcite-action>`||""}${!this._isMobile&&Ze`<calcite-tooltip placement=bottom reference-element=solutionBuilderAction><span>${this._translations.tooltips.solutionBuilder}</span></calcite-tooltip>`||""}<arcgis-assistant reference-element copy-enabled feedback-enabled heading description entry-message=${this._translations.defaultStartUpMessage??So} .suggestedPrompts=${e} @arcgisSubmit=${r=>{console.log("arcgis submit: ",r.detail),this._suggestedPrompts=[],e=[],this._hasInteracted=!0,this._chatStartTime=Date.now(),this.assistantProcessing.emit(!0)}} @arcgisFeedback=${r=>{r.detail}} ${Ta(this._assistantRef)}><calcite-button appearance=transparent id=newChatButton icon-start=speech-bubble-plus kind=neutral .label=${this._translations.tooltips.newChat} @click=${()=>{this.hasActiveBuilderDesign?this._showNewChatConfirm=!0:(this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"New Chat",dimensions:["No Active Design"]}),this._clearConversation())}} round scale=m slot=entry-actions-start>${this._translations.tooltips.newChat}</calcite-button><arcgis-assistant-agent .agent=${Cg} .context=${{token:this._configContextConsumer.value?.userSession?.token,configContext:this._configContextConsumer.value,convoId:this._conversationId,portal:this._configContextConsumer.value?.authentication.Portal,assistantRef:this._assistantRef,translations:this._translations,solutionDesignJson:this._solutionDesignJson,lastTurnAgent:this._lastTurnAgent,setConversationId:r=>{this._conversationId=r},setLastTurnAgent:r=>{this._lastTurnAgent=r},clearSuggestedPrompts:()=>{this._suggestedPrompts=[]}}}></arcgis-assistant-agent></arcgis-assistant><div slot=footer class="disclaimer-div width-100"><calcite-chip class="beta-chip" appearance=solid kind=neutral .label=${this._translations.betaTag} scale=s>${this._translations.betaTag}</calcite-chip><span>${this._translations.disclaimerMessage} <a href=https://links.esri.com/solutions/security-concern rel="noopener noreferrer" target=_blank>${this._translations.reportConcern}</a></span></div>`:this._renderNoPermission():this._renderNoSign()}${this._showNewChatConfirm&&Ze`<calcite-dialog close-disabled escape-disabled .heading=${this._translations.newConversationConfirmTitle} modal open outside-close-disabled>${this._translations.builderMessages.discardMessage}<calcite-button appearance=outline @click=${()=>{this._showNewChatConfirm=!1}} slot=footer-end>${this._translations.cancel}</calcite-button><calcite-button appearance=solid kind=danger @click=${()=>{this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"New Chat",dimensions:["With Design Discard"]}),this._showNewChatConfirm=!1,window.dispatchEvent(new CustomEvent("requestBuilderDiscard"))}} slot=footer-end>${this._translations.discard}</calcite-button></calcite-dialog>`||""}<calcite-action icon=x id=closeAssistantButton .label=${this._translations.tooltips.close} @click=${()=>{this.closeAssistant.emit(!0)}} slot=header-actions-end .text=${this._translations.tooltips.close}></calcite-action><calcite-tooltip placement=bottom reference-element=closeAssistantButton><span>${this._translations.tooltips.close}</span></calcite-tooltip></calcite-panel>`}_clearConversation(){this._conversationId=void 0,this._lastTurnAgent=void 0,this._suggestedPrompts=[],this._hasInteracted=!1,this._assistantRef.value?.clearChatHistory()}_sendFeedback(e,r,n,s){let o=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(n)}&field:question=${encodeURIComponent(r)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({agent:s}))}&field:version=${encodeURIComponent("v2")}`;window.open(o,"_blank")}async _loadUserFirstName(){try{let e=await this._configContextConsumer.value?.userSession?.getUser();if(e?.fullName){let r=e.fullName.split(" ")[0];this.userFirstName=r}}catch{}}_parseAgentPickedAndTask(e){let r=Array.from(this._assistantRef.value?.messages||[]),n=e.log||[],s=[...r].sort((p,m)=>m.id-p.id).find(p=>p.role==="user"&&p.id<=e.id)?.content||null,o=n.find(p=>typeof p=="string"&&p.includes("Agent picked:"))??null;if(!o)return{agentPicked:null,taskAssigned:null,userMessage:s};let i=/Agent picked:\s*(.*?)\s*(?:\\n|\r?\n)\s*Task Assigned:\s*([\s\S]*)$/i,a=o.match(i);if(!a)return{agentPicked:null,taskAssigned:null,userMessage:s};let u=a[1].trim(),l=a[2].trim();return{agentPicked:u,taskAssigned:l,userMessage:s}}_emitItemIdFromAI(e){let r=new CustomEvent("solutionIDFromAssistant",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(r)}};Pa("arcgis-solutions-assistant",ca);return ca},"config","identity/IdentityManager","portal/Portal","core/reactiveUtils","layers/FeatureLayer","request","portal/Portal","portal/PortalItem",a,b)
90
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return"\\u"+U.charCodeAt(0).toString(16).padStart(4,"0")}});try{return JSON.parse(D)}catch{return k}}},l=[...a.map(k=>({op:k.op,path:k.path.replace(/\/+$/,""),...k.value!=null&&k.value!==""?{value:u(k.value)}:{},...k.from!=null&&k.from!==""?{from:k.from}:{}}))].sort((k,D)=>k.op!=="remove"||D.op!=="remove"?0:D.path.localeCompare(k.path,void 0,{numeric:!0})),p=structuredClone(Wo(r));try{vn(p,l,!0)}catch(k){console.warn("[SolutionBuilder] updateDesign JSON patch failed:",{error:k,llmResponse:o,patches:l,patchTarget:p});let D=Q("applyChangeFailed",e);return{outputMessage:D,summary:D,status:"success"}}let m=Yt({response:"",...p},{itemId:r.solution?.itemId??null}),_=pa.safeParse(m);if(!_.success){console.warn("[SolutionBuilder] updateDesign schema validation failed:",{errors:_.error.issues,llmResponse:o,patchedDesign:m});let k=Q("applyChangeFailed",e);return{outputMessage:k,summary:k,status:"success"}}let{response:h,featureLayer:b,...I}=_.data,R=Jo(b,r.featureLayer),g=Yt({...I,featureLayer:R},{itemId:r.solution?.itemId,sourceBuildSolution:r.sourceBuildSolution,templateId:r.templateId??t.selectedTemplate??null,params:r.params??null}),w=On(t.selectedTemplate);if(w?.initialTemplate||(await ma(e),w=On(t.selectedTemplate)),q(e))return{};if(!w?.initialTemplate)throw new Error("No hydrated templates are available for solution design.");let O=new To(g,w.initialTemplate,!1);if(!O.isValid){console.warn("[SolutionBuilder] updateDesign validation failed:",{issues:O.issues,llmResponse:o,patchedDesign:g});let k=await Uh({query:n,validationIssues:O.issues,recentMessages:s,fallbackMessage:Q("applyChangeFailed",e),promptModules:Gt});return{outputMessage:k,summary:k,status:"success"}}let L=g.sourceBuildSolution,W=Xc(g,L);if(!W.ok){console.warn("[SolutionBuilder] updateDesign Esri JSON conversion failed:",{error:W.error,llmResponse:o,design:g});let k=Q("applyChangeFailed",e);return{outputMessage:k,summary:k,status:"success"}}return q(e)?{}:(Yc(g),{outputMessage:i,summary:i,status:"success",currentDesign:g})},dg=t=>t.currentDesign!==null?"assessUpdateRequest":"assessBuildRequest",mg=t=>!t.updateAssessment||!t.updateAssessment.isValidUpdate?"invalidUpdateExit":"updateDesign",fg=t=>!t.assessment||!t.assessment.isValidUseCase?"invalidBuildExit":!t.selectedTemplate&&t.assessment.matchedTemplates.length>1?"selectTemplateHIL":"findExistingSolutions",hg=t=>t.existingMatches.length>0?"confirmContinueBuildingHIL":"designSolution",gg=t=>t.continueBuilding===!1?"declineContinueBuildingExit":"designSolution",_g=()=>new er(tg).addNode("syncCurrentDesignFromContext",rg).addNode("assessBuildRequest",ng).addNode("assessUpdateRequest",og).addNode("invalidBuildExit",sg).addNode("invalidUpdateExit",ig).addNode("selectTemplateHIL",ag).addNode("findExistingSolutions",lg).addNode("confirmContinueBuildingHIL",ug).addNode("declineContinueBuildingExit",cg).addNode("designSolution",sp).addNode("updateDesign",pg).addEdge(Xt,"syncCurrentDesignFromContext").addConditionalEdges("syncCurrentDesignFromContext",dg,{assessUpdateRequest:"assessUpdateRequest",assessBuildRequest:"assessBuildRequest"}).addConditionalEdges("assessUpdateRequest",mg,{invalidUpdateExit:"invalidUpdateExit",updateDesign:"updateDesign"}).addConditionalEdges("assessBuildRequest",fg,{invalidBuildExit:"invalidBuildExit",selectTemplateHIL:"selectTemplateHIL",findExistingSolutions:"findExistingSolutions"}).addEdge("invalidBuildExit",pe).addEdge("invalidUpdateExit",pe).addEdge("selectTemplateHIL","findExistingSolutions").addConditionalEdges("findExistingSolutions",hg,{confirmContinueBuildingHIL:"confirmContinueBuildingHIL",designSolution:"designSolution"}).addConditionalEdges("confirmContinueBuildingHIL",gg,{declineContinueBuildingExit:"declineContinueBuildingExit",designSolution:"designSolution"}).addEdge("declineContinueBuildingExit",pe).addEdge("designSolution",pe).addEdge("updateDesign",pe);await he(Gt,"description");var yg=A.object({tool:A.enum(["explorer","builder","other"]).describe("The selected tool based on the user's query."),confidence:A.number().min(0).max(1).describe("A confidence score (0.00\u20131.00)."),rationale:A.string().min(1).describe("A brief rationale for the tool choice (\u2264140 characters)")}),fa=Object.assign({"./prompts/assistantResponse.md":()=>import("./632J5NXN.js").then(t=>t.default),"./prompts/classifyIntent.md":()=>import("./ZNC2XEOJ.js").then(t=>t.default),"./prompts/description.md":()=>import("./ENLFOYSI.js").then(t=>t.default)}),ha=(t,e)=>{let r=t?.configurable?.context?.setLastTurnAgent;typeof r=="function"&&r(e);let n=new CustomEvent("assistantProcessing",{detail:{finished:!0,agent:e}});window.dispatchEvent(n)},op=z.Root({...ho(),selectedTool:z({reducer:(t,e)=>e??null,default:()=>null}),intentRationale:z({reducer:(t,e)=>e??null,default:()=>null})}),wg=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e);await Te({text:r?.builderMessages.understandingRequest},e);let n=t.agentExecutionContext.userRequest,s=t.agentExecutionContext.messages.slice(-11),o=e?.configurable?.context?.solutionDesignJson,i=!1;if(typeof o=="string"&&o.trim())try{i=JSON.parse(o).solution!=null}catch{i=!1}let a=await he(fa,"classifyIntent"),u=await Ve({promptText:a,modelTier:"advanced",temperature:0,schema:yg,messages:s,inputVariables:{query:n,activeSolutionDesign:i}});return{selectedTool:u.tool,intentRationale:u.rationale}},Ag=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=await wh().compile().invoke(t,e);return ha(e,"explorer"),r},bg=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=await _g().compile().invoke(t,e);return ha(e,"builder"),r},Ig=async(t,e)=>{if(e?.configurable?.abortSignal?.aborted)return{};let r=Co(e),n=t.agentExecutionContext.userRequest,s=t.intentRationale??"No rationale available.";await Te({text:r?.executingSolutionsAssistantAgent},e);let o=await he(fa,"assistantResponse"),i=t.agentExecutionContext.messages.slice(-11),a=await Uc({promptText:o,modelTier:"advanced",temperature:0,messages:i,inputVariables:{query:n,rationale:s}});return ha(e,"assistant"),{outputMessage:a,summary:a,status:"success"}},xg=t=>t.selectedTool??"other",vg=()=>new er(op).addNode("classifyIntent",wg).addNode("routeToExplorer",Ag).addNode("routeToBuilder",bg).addNode("assistantResponse",Ig).addEdge(Xt,"classifyIntent").addConditionalEdges("classifyIntent",xg,{explorer:"routeToExplorer",builder:"routeToBuilder",other:"assistantResponse"}).addEdge("routeToExplorer",pe).addEdge("routeToBuilder",pe).addEdge("assistantResponse",pe),Tg=await he(fa,"description"),Cg={id:"solutionsAssistant",name:"Solutions Assistant Agent",description:Tg,createGraph:vg,workspace:op},Pg="https://links.esri.com/solutions/agol-organizational-account",Og="https://links.esri.com/solutions/configure-assistants",ca=class extends Ca{constructor(){super(),this.open=!1,this.userFirstName="",this.builderVisible=!1,this.hasActiveBuilderDesign=!1,this._conversationId=void 0,this._lastTurnAgent=void 0,this._orgSettings={aiAssistantsEnabled:!1,blockBetaApps:!0,colocateCompute:!1},this._suggestedPrompts=[],this._hasInteracted=!1,this._isMobile=window.innerWidth<=800,this._translations=Oa({name:"arcgis-solutions-assistant",blocking:!0}),this._builderWidth=48,this._solutionDesignJson='{ "solution": null }',this._isAssistantBusy=!1,this._isBuilderBusy=!1,this._preChatCheck=!1,this._showNewChatConfirm=!1,this._assistantRef=va(),this._configContextConsumer=Eo({context:ka,subscribe:!0,callback:e=>{e?.portalURL&&(aa.portalUrl=e.portalURL),e?.userSession&&!this.userFirstName&&this._loadUserFirstName(),e?.authentication?.PortalSubset?.orgSettings&&(this._orgSettings=e?.authentication?.PortalSubset?.orgSettings)}}),this._builderDesignContextConsumer=Eo({context:Sa,subscribe:!0,callback:e=>{e?.design&&(this._solutionDesignJson=JSON.stringify(e.design,null,2))}}),this._handleResize=()=>{this._isMobile=window.innerWidth<=800},this._chatStartTime=null,this._handleAssistantProcessingFinished=e=>{let r=e;if(r.detail?.finished&&this._chatStartTime!==null){let n=Ma(this._chatStartTime);this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"Chat",dimensions:[r.detail.agent],metrics:[n]}),this._chatStartTime=null,this.assistantProcessing.emit(!1)}},this.closeAssistant=ko(),this.assistantProcessing=ko(),this._handleAssistantLinkClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement);if(r?.href)if(e.preventDefault(),r.target.indexOf("solutionId:")>-1){let n=r.target.split("solutionId:")[1];this._emitItemIdFromAI(n)}else window.open(r.href,"_blank","noopener,noreferrer")},this._onSolutionDesignUpdate=e=>{let r=e.detail;this._solutionDesignJson=r?JSON.stringify(r,null,2):'{ "solution": null }'},this._handleSignIn=()=>{this._configContextConsumer.value?.authentication?.signIn("aiOpen")},this._checkURLOpenParameter=()=>{this.open=this._configContextConsumer.value?.authentication?.SignInParam==="aiOpen"||this.open},this.listenOn(window,"arcgisFeedback",e=>{let r=e.detail,{agentPicked:n,taskAssigned:s,userMessage:o}=this._parseAgentPickedAndTask(r);this._sendFeedback(r.content,o??s??"",r.feedback?.positive?"Good":r.feedback?.positive=="Bad"?"Bad":"N/A",n??"")}),this.listenOn(window,"clearAssistantConversation",()=>{this._clearConversation()})}static{this.properties={open:5,userFirstName:1,builderVisible:5,hasActiveBuilderDesign:5,_conversationId:16,_lastTurnAgent:16,_orgSettings:16,_suggestedPrompts:16,_hasInteracted:16,_isMobile:16,_translations:16,_builderWidth:16,_solutionDesignJson:16,_isAssistantBusy:16,_isBuilderBusy:16,_preChatCheck:16,_showNewChatConfirm:16}}static{this.styles=ch}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}connectedCallback(){super.connectedCallback(),window.addEventListener("arcgis-solution-design-update",this._onSolutionDesignUpdate),this.el.addEventListener("click",this._handleAssistantLinkClick),window.addEventListener("resize",this._handleResize),window.addEventListener("assistantProcessing",this._handleAssistantProcessingFinished),this._builderDesignContextConsumer}disconnectedCallback(){window.removeEventListener("arcgis-solution-design-update",this._onSolutionDesignUpdate),this.el.removeEventListener("click",this._handleAssistantLinkClick),window.removeEventListener("resize",this._handleResize),window.removeEventListener("assistantProcessing",this._handleAssistantProcessingFinished),super.disconnectedCallback()}loaded(){this._checkURLOpenParameter()}load(){aa.applicationName="Solutions",this._configContextConsumer.value?.portalURL&&(aa.portalUrl=this._configContextConsumer.value.portalURL)}firstUpdated(e){this._loadUserFirstName()}willUpdate(e){e.has("open")&&this.open&&window.dispatchEvent(new CustomEvent("openAssistant")),this._configContextConsumer.value?.authentication&&this._configContextConsumer.value?.userSession?.token&&(this._preChatCheck||(Zc(this._configContextConsumer.value?.authentication.Portal,this._configContextConsumer.value?.userSession?.token,this._configContextConsumer.value?.locale??"en"),this._preChatCheck=!0)),this._configContextConsumer.value?.userSession?.token&&this._configContextConsumer.value?.authentication?.CanUseAI}_renderNoSign(){return Ze`<calcite-notice class="margin-lg" open scale=m icon=effects kind=info><div slot=message>${this._translations.signInMessage}</div><calcite-link @click=${this._handleSignIn} slot=link title=${this._translations.signInMessage??So} class="padding-top-10">${this._translations.signIn}</calcite-link></calcite-notice>`}_renderNoPermission(){return Ze`<calcite-notice class="margin-lg" open scale=m icon=effects kind=info><div slot=title>${this._translations.noPermissionTitle}</div><div slot=message class="padding-top-10">${Xa(this._translations.noPermissionMessage.replace("{{orgUrl}}",Pg).replace("{{configAI}}",Og))}</div></calcite-notice>`}render(){let e=this._suggestedPrompts.length>0?this._suggestedPrompts:this._hasInteracted?[]:Object.values(this._translations.defaultFollowUpQuestions);return this._suggestedPrompts.length>0?e=this._suggestedPrompts:this._hasInteracted||(e=[...Object.values(this._translations.defaultFollowUpQuestions)]),Ze`<calcite-panel class="chat-panel"><div class="header-content" slot=header-content><span class="header-title">${this._translations.solutionAssistantTitle}</span></div>${this._configContextConsumer.value?.userSession?.token?this._configContextConsumer.value?.authentication?.CanUseAI?Ze`${!this._isMobile&&Ze`<calcite-action id=solutionBuilderAction icon=pencil-square .text=${this._translations.tooltips.builder} text-enabled .indicator=${this.hasActiveBuilderDesign} .disabled=${!this.hasActiveBuilderDesign} .active=${this.builderVisible} selection-appearance=highlight @click=${()=>{this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"Toggle Builder Panel",dimensions:[this.builderVisible?"Close":"Open"]}),window.dispatchEvent(new CustomEvent("toggleSolutionBuilder"))}} scale=m slot=header-actions-end></calcite-action>`||""}${!this._isMobile&&Ze`<calcite-tooltip placement=bottom reference-element=solutionBuilderAction><span>${this._translations.tooltips.solutionBuilder}</span></calcite-tooltip>`||""}<arcgis-assistant reference-element copy-enabled feedback-enabled heading description entry-message=${this._translations.defaultStartUpMessage??So} .suggestedPrompts=${e} @arcgisSubmit=${r=>{console.log("arcgis submit: ",r.detail),this._suggestedPrompts=[],e=[],this._hasInteracted=!0,this._chatStartTime=Date.now(),this.assistantProcessing.emit(!0)}} @arcgisFeedback=${r=>{r.detail}} ${Ta(this._assistantRef)}><calcite-button appearance=transparent id=newChatButton icon-start=speech-bubble-plus kind=neutral .label=${this._translations.tooltips.newChat} @click=${()=>{this.hasActiveBuilderDesign?this._showNewChatConfirm=!0:(this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"New Chat",dimensions:["No Active Design"]}),this._clearConversation())}} round scale=m slot=entry-actions-start>${this._translations.tooltips.newChat}</calcite-button><arcgis-assistant-agent .agent=${Cg} .context=${{token:this._configContextConsumer.value?.userSession?.token,configContext:this._configContextConsumer.value,convoId:this._conversationId,portal:this._configContextConsumer.value?.authentication.Portal,assistantRef:this._assistantRef,translations:this._translations,solutionDesignJson:this._solutionDesignJson,lastTurnAgent:this._lastTurnAgent,setConversationId:r=>{this._conversationId=r},setLastTurnAgent:r=>{this._lastTurnAgent=r},clearSuggestedPrompts:()=>{this._suggestedPrompts=[]}}}></arcgis-assistant-agent></arcgis-assistant><div slot=footer class="disclaimer-div width-100"><calcite-chip class="beta-chip" appearance=solid kind=neutral .label=${this._translations.betaTag} scale=s>${this._translations.betaTag}</calcite-chip><span>${this._translations.disclaimerMessage} <a href=https://links.esri.com/solutions/security-concern rel="noopener noreferrer" target=_blank>${this._translations.reportConcern}</a></span></div>`:this._renderNoPermission():this._renderNoSign()}${this._showNewChatConfirm&&Ze`<calcite-dialog close-disabled escape-disabled .heading=${this._translations.newConversationConfirmTitle} modal open outside-close-disabled>${this._translations.builderMessages.discardMessage}<calcite-button appearance=outline @click=${()=>{this._showNewChatConfirm=!1}} slot=footer-end>${this._translations.cancel}</calcite-button><calcite-button appearance=solid kind=danger @click=${()=>{this._telemetry?.logEvent({category:Tn.ASSISTANT,action:"New Chat",dimensions:["With Design Discard"]}),this._showNewChatConfirm=!1,window.dispatchEvent(new CustomEvent("requestBuilderDiscard"))}} slot=footer-end>${this._translations.discard}</calcite-button></calcite-dialog>`||""}<calcite-action icon=x id=closeAssistantButton .label=${this._translations.tooltips.close} @click=${()=>{this.closeAssistant.emit(!0)}} slot=header-actions-end .text=${this._translations.tooltips.close}></calcite-action><calcite-tooltip placement=bottom reference-element=closeAssistantButton><span>${this._translations.tooltips.close}</span></calcite-tooltip></calcite-panel>`}_clearConversation(){this._conversationId=void 0,this._lastTurnAgent=void 0,this._suggestedPrompts=[],this._hasInteracted=!1,this._assistantRef.value?.clearChatHistory()}_sendFeedback(e,r,n,s){let o=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(n)}&field:question=${encodeURIComponent(r)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({agent:s}))}&field:version=${encodeURIComponent("v2")}`;window.open(o,"_blank")}async _loadUserFirstName(){try{let e=await this._configContextConsumer.value?.userSession?.getUser();if(e?.fullName){let r=e.fullName.split(" ")[0];this.userFirstName=r}}catch{}}_parseAgentPickedAndTask(e){let r=Array.from(this._assistantRef.value?.messages||[]),n=e.log||[],s=[...r].sort((p,m)=>m.id-p.id).find(p=>p.role==="user"&&p.id<=e.id)?.content||null,o=n.find(p=>typeof p=="string"&&p.includes("Agent picked:"))??null;if(!o)return{agentPicked:null,taskAssigned:null,userMessage:s};let i=/Agent picked:\s*(.*?)\s*(?:\\n|\r?\n)\s*Task Assigned:\s*([\s\S]*)$/i,a=o.match(i);if(!a)return{agentPicked:null,taskAssigned:null,userMessage:s};let u=a[1].trim(),l=a[2].trim();return{agentPicked:u,taskAssigned:l,userMessage:s}}_emitItemIdFromAI(e){let r=new CustomEvent("solutionIDFromAssistant",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(r)}};Pa("arcgis-solutions-assistant",ca);return ca},"config","identity/IdentityManager","portal/Portal","core/reactiveUtils","layers/FeatureLayer","request","portal/Portal","portal/PortalItem",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./QPIMTXPL.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
2
+ import"./EXBEKVP5.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import x from"./HGOYPWOK.js";import u from"./BVG2SE55.js";import"./DF7TCZUS.js";import"./X65HFYH4.js";import t from"./3D5OFNW5.js";import s from"./H3NPAQ3U.js";import q from"./UNBGBQPR.js";import n from"./V74POSPP.js";import m from"./3A5WS2II.js";import l from"./FA5CJT2S.js";import k from"./CZVHNBQN.js";import j from"./KIKSO3OQ.js";import i from"./LSBUPU7F.js";import h from"./CFJ4FEY3.js";import g from"./YGWYD3LU.js";import"./HYQVSB6C.js";import e from"./MJ6JD7WX.js";import"./A6VVARNG.js";import"./ONARC6AZ.js";import{a as L}from"./7VD3Y4IF.js";import"./NQH7ZZWD.js";import"./S37TPZAO.js";import"./TLY6ZEKN.js";import d from"./UBPCOTIY.js";import b from"./PYPVVSIX.js";import{a as S,b as D,c as A}from"./2B4SGB3I.js";import{a as p}from"./I2NTSKBD.js";import"./ACTJS4TX.js";import{a as C}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as w}from"./2I5LGZNX.js";import{E as o,F as a,G as f,I as _,K as T,h as v,i as r,q as c}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,{m:x},{c:I,j:O,n:F,o:$,r:h},{b:k},{a:M},,{g:P,h:B},,,,m,R,,,{a:y}])=>{var N=v`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--panel-edge-adjustment: 2vw;--assistant-panel-min-width: 420px;--assistant-panel-width: max(var(--assistant-panel-min-width), calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment) - 15px))}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,solutions-resources-shell,calcite-tab-nav,solution-deployed-card-panel,.resources-menu-container{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.resources-menu-container{background-color:var(--calcite-color-foreground-1)}.resources-menu-toolbar{height:65px;display:flex;align-items:center}.resources-menu-toolbar calcite-menu-item{transition:border-color .2s ease}.resources-menu-toolbar calcite-menu-item[active]{border-bottom-color:var(--calcite-color-brand)}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-inline-end:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open solutions-resources-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel,.assistant-open .resources-menu-container{margin-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));margin-inline-end:0;width:auto;max-width:1440px}.assistant-open solutions-searchsort-toolbar{overflow:hidden;scrollbar-gutter:stable}.builder-panel{position:fixed;top:65px;inset-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));inset-inline-end:var(--assistant-panel-width);bottom:0;z-index:400;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);pointer-events:auto}.builder-panel.display-none{display:flex!important;transform:translate(100%);pointer-events:none}.builder-panel:dir(rtl).display-none{transform:translate(-100%)}@supports (-webkit-touch-callout: none){.builder-panel.display-none{display:none!important;transform:none}.builder-panel:dir(rtl).display-none{transform:none}}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;inset-inline-end:0;bottom:0;width:var(--assistant-panel-width);min-width:var(--assistant-panel-min-width);z-index:400;display:flex;flex-direction:column}@media(max-width:800px){.builder-panel{display:none!important}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-inline-end:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);inset-inline-end:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}.assistant-fab-popover{--calcite-popover-max-size-x: 16rem}.assistant-fab-popover__content{display:block;padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md);font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word}`,V={solution:{title:"Bus Stop ADA Compliance Inspections",description:"Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",thumbnailUrl:M,tags:["Bus Stop","ADA Compliance","Inspection","Field","Monitor","ArcGIS Solutions"],strings:[{key:"inspectionsByMonth",value:"Inspections by Month",description:"Descriptive title of dashboard chart displaying the number of inspections completed by month."},{key:"inspectionsCompleted",value:"Inspections Completed",description:"Descriptive title of dashboard indicator displaying the total number of inspections completed."},{key:"assetInventory",value:"Bus Stop Inventory",description:"Descriptive title of dashboard indicator displaying the total number of bus stops."}]},items:[{id:"b21885d38b3c4924922ce36c90112737",title:"Bus Stop ADA Inspection Dashboard",description:"An ArcGIS Dashboards app used to monitor bus stop ADA compliance inspections.",type:"Dashboard"},{id:"54f69b6af00b4f06b1c1eef05e80dc93",title:"Bus Stop ADA Inspection Map",description:"A map used by the Bus Stop ADA Inspection Dashboard app to monitor inspections.",type:"Web Map"},{id:"2fc93fa4e07e42508669d02acb837a75",title:"Bus Stop ADA Inspection Field Map",description:"A map used in ArcGIS Field Maps to inspect bus stops in the field for ADA compliance.",type:"Web Map"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f323",title:"BusStops_field",description:"A hosted feature layer view used to inspect bus stops for ADA compliance.",type:"Feature Layer (hosted, view)"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f324",title:"BusStops_dashboard",description:"A hosted feature layer view used to monitor bus stop ADA inspections.",type:"Feature Layer (hosted, view)"},{id:"36d0bdce3a74436f8314c88c9667003e",title:"BusStops",description:"A hosted feature layer used to store bus stop and ADA inspection details.",type:"Feature Layer (hosted)"}],featureLayer:{itemId:"36d0bdce3a74436f8314c88c9667003e",addLayers:!0,layers:[{id:"0",type:"Point",typeMutable:!0,name:"BusStops",description:"Point layer containing bus stop locations and ADA compliance information.",customFields:[{name:"stop_id",type:"string",alias:"Stop ID",description:"Identifier for the bus stop.",choiceList:null,length:255},{name:"location_description",type:"string",alias:"Location Description",description:"Description of the bus stop location.",choiceList:null,length:255},{name:"shelter_present",type:"string",alias:"Shelter Present",description:"Indicates if a waiting shelter is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"bench_present",type:"string",alias:"Bench Present",description:"Indicates if a bench is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"ada_compliant",type:"string",alias:"ADA Compliant",description:"Indicates if the bus stop meets ADA compliance requirements.",choiceList:["Yes","No"],length:5},{name:"capacity",type:"integer",alias:"Seating Capacity",description:"Number of people that can be seated at the bus stop."},{name:"distance_from_curb",type:"double",alias:"Distance from Curb (ft)",description:"Distance in feet from the curb to the shelter."},{name:"last_inspection_date",type:"date",alias:"Last Inspection Date",description:"Date of the most recent inspection."},{name:"installation_date",type:"date",alias:"Installation Date",description:"Date when the bus stop was installed."}],requiredFields:[{name:"route_number",type:"string",alias:"Route Number",description:"Number of the bus route that uses this stop.",choiceList:null,length:50},{name:"average_daily_riders",type:"integer",alias:"Average Daily Riders",description:"Average number of riders using this stop per day."},{name:"inspection_priority",type:"string",alias:"Inspection Priority",description:"Priority level for scheduling inspections.",choiceList:["High","Medium","Low"],length:10}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"1",type:"Polyline",typeMutable:!1,name:"Routes",description:"Polyline layer containing bus route paths.",customFields:[{name:"route_name",type:"string",alias:"Route Name",description:"Name of the bus route.",choiceList:null,length:100},{name:"route_type",type:"string",alias:"Route Type",description:"Type of bus route service.",choiceList:["Express","Local","Rapid"],length:20},{name:"frequency_minutes",type:"integer",alias:"Frequency (minutes)",description:"How often buses run on this route in minutes."},{name:"route_length_miles",type:"double",alias:"Route Length (miles)",description:"Total length of the route in miles."}],requiredFields:[{name:"route_id",type:"string",alias:"Route ID",description:"Unique identifier for the route.",choiceList:null,length:50},{name:"active",type:"string",alias:"Active Status",description:"Whether the route is currently active.",choiceList:["Yes","No"],length:3}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"2",type:"Polygon",typeMutable:!1,name:"ServiceAreas",description:"Polygon layer defining bus service coverage areas.",customFields:[{name:"area_name",type:"string",alias:"Area Name",description:"Name of the service area.",choiceList:null,length:100},{name:"service_level",type:"string",alias:"Service Level",description:"Level of service provided in this area.",choiceList:["High Frequency","Standard","Limited"],length:20},{name:"population",type:"integer",alias:"Population",description:"Estimated population within the service area."},{name:"area_sq_miles",type:"double",alias:"Area (sq miles)",description:"Size of the service area in square miles."}],requiredFields:[{name:"district_id",type:"string",alias:"District ID",description:"Unique identifier for the service district.",choiceList:null,length:50}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"3",type:"Point",typeMutable:!1,name:"Tasks",description:"Point layer containing task assignments for bus stop inspections, related to BusStops layer.",customFields:[{name:"task_id",type:"string",alias:"Task ID",description:"Unique identifier for the task assignment.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop to be inspected (relates to BusStops layer).",choiceList:null,length:255},{name:"assigned_to",type:"string",alias:"Assigned To",description:"Name of the inspector assigned to this task.",choiceList:null,length:100},{name:"due_date",type:"date",alias:"Due Date",description:"Date by which the inspection should be completed."},{name:"priority",type:"string",alias:"Priority",description:"Priority level of the inspection task.",choiceList:["High","Medium","Low"],length:10},{name:"notes",type:"string",alias:"Task Notes",description:"Additional notes or instructions for the inspection task.",choiceList:null,length:500}],requiredFields:[{name:"status",type:"string",alias:"Task Status",description:"Current status of the task assignment.",choiceList:["Not Started","In Progress","Completed","Cancelled"],length:20},{name:"assignment_date",type:"date",alias:"Assignment Date",description:"Date when the task was created and assigned."}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"4",typeMutable:!1,type:"Table",name:"Inspections",description:"Table containing inspection records and findings.",customFields:[{name:"inspection_id",type:"string",alias:"Inspection ID",description:"Unique identifier for the inspection.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop that was inspected.",choiceList:null,length:255},{name:"inspector_name",type:"string",alias:"Inspector Name",description:"Name of the person who performed the inspection.",choiceList:null,length:100},{name:"inspection_date",type:"date",alias:"Inspection Date",description:"Date when the inspection was performed."},{name:"overall_condition",type:"string",alias:"Overall Condition",description:"Overall condition assessment of the bus stop.",choiceList:["Excellent","Good","Fair","Poor","Critical"],length:20},{name:"issues_found",type:"integer",alias:"Issues Found",description:"Number of issues identified during inspection."},{name:"notes",type:"string",alias:"Inspection Notes",description:"Additional notes or comments about the inspection.",choiceList:null,length:1e3}],requiredFields:[{name:"inspection_status",type:"string",alias:"Inspection Status",description:"Current status of the inspection.",choiceList:["Scheduled","In Progress","Completed","Cancelled"],length:20}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]}]}},g=class extends f{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.loadExampleBuilderData=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isViewportMobile=window.innerWidth<=800,this._isAssistantOpen=!1,this._builderVisible=!1,this._hasActiveBuilderDesign=!1,this._showFabTooltip=!0,this._fabTooltipDismissed=!1,this._activeTab="all-solutions",this._activeResourcesMenuItem="getStarted",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=C({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${$}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=p({context:D}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderPanel=o(),this._builderDesignContextProvider=p({context:A}),this._isMobileContextProvider=p({context:S}),this._handleWindowResize=()=>{let t=window.innerWidth<=800;this._isViewportMobile!==t&&(this._isViewportMobile=t,t&&(this._isAssistantOpen=!1,this._builderVisible=!1))},this._mainContentRef=o(),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._resourcesShell=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=c(),this.deployedCardFetchFailed=c(),this.detailsCardSelected=c(),this.deployedCardSelected=c(),this.metaTagStringsReady=c(),this.sessionRefreshed=c(),this.tabChanged=c(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1,this._builderVisible=!1}),this.listenOn(window,"toggleSolutionBuilder",()=>{this._builderVisible=!this._builderVisible}),this.listenOn(window,"hideSolutionBuilder",()=>{this._builderVisible=!1}),this.listenOn(window,"discardBuilder",t=>{this._hasActiveBuilderDesign=t.detail}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected),window.addEventListener("resize",this._handleWindowResize),this._builderDesignContextProvider.value={design:this.loadExampleBuilderData?V:null,updateDesign:t=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:t}},isBuilderVisible:!1,setBuilderVisible:t=>{this._builderVisible=t,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:t}}},this.loadExampleBuilderData&&(this._hasActiveBuilderDesign=!0)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,loadExampleBuilderData:5,authentication:16,_isLoaded:16,isMobile:16,_isViewportMobile:16,_isAssistantOpen:16,_builderVisible:16,_hasActiveBuilderDesign:16,_showFabTooltip:16,_fabTooltipDismissed:16,_activeTab:16,_activeResourcesMenuItem:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=N}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}get _readOnlyNotice(){return this._configContextProvider.value?.isEnterprise?this._translations.writableEnterprise||"":(this._translations.writableOnline||"").replace("{{url}}","https://status.arcgis.com/")}_openAssistant(){this._telemetry?.logEvent({category:h.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=P(this._allCards,t.tabTitleOrId);s=s||B(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._builderVisible=!1,this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=k)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return r`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&r`<div class="border"></div>`||""}${this._activeTab!=="resources"&&r`<solutions-searchsort-toolbar ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i,i.scope=this._activeTab)})}></solutions-searchsort-toolbar>`||""}${this._activeTab==="resources"&&r`<div class="border"></div><div class="resources-menu-container"><calcite-menu .label=${this._translations.resourcesNavigationMenuLabel} class="resources-menu-toolbar"><calcite-menu-item .active=${this._activeResourcesMenuItem==="getStarted"||void 0} .label=${this._translations.resourcesGetStarted} .text=${this._translations.resourcesGetStarted} @click=${()=>this._handleResourcesMenuClick("getStarted")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem==="documentation"||void 0} .label=${this._translations.resourcesDocumentation} .text=${this._translations.resourcesDocumentation} @click=${()=>this._handleResourcesMenuClick("documentation")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem==="support"||void 0} .label=${this._translations.resourcesSupport} .text=${this._translations.resourcesSupport} @click=${()=>this._handleResourcesMenuClick("support")}></calcite-menu-item></calcite-menu></div>`||""}<calcite-loader class=${_(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${_(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100" ${a(this._resourcesShell)}></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&r`<div class=${`builder-panel${this._builderVisible&&!this._isViewportMobile?"":" display-none"}`}><solution-builder-assistant class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen&&!this._isViewportMobile?"":" display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??T} class=${`assistant-fab${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} scale=l></calcite-fab>${!this._fabTooltipDismissed&&r`<calcite-popover closable class=${`assistant-fab-popover${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} .label=${this._translations.assistantFabTooltip} overlay-positioning=fixed @calcitePopoverClose=${()=>{this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} .open=${this._showFabTooltip&&!this._isAssistantOpen&&!this._isViewportMobile} placement=leading reference-element=assistant-fab-button><span class="assistant-fab-popover__content">${this._translations.assistantFabTooltip}</span></calcite-popover>`||""}`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleWindowResize),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}async _handleResourcesMenuClick(t){this._activeResourcesMenuItem=t,await this._resourcesShell.value?.scrollToSection(t)}_renderGlobalAlerts(){return L(this._globalAlerts,t=>t.id,t=>r`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&r`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new m(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new m(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}this._builderVisible=!1,e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=h.ALL_SOLUTIONS;break;case"deployments":i=h.DEPLOYMENTS;break;case"resources":i=h.RESOURCES;break;case"details":i=h.SOLUTION_DETAILS;break;case"deployed-card":i=h.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let n=e;s.push(n.title||""),s.push(n.deployCommonId||""),s.push(n.deployVersion||""),s.push(""),s.push(x(n.typeKeywords))}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._builderVisible=!0,this._hasActiveBuilderDesign=!0,this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderVisible=e,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=I(e);try{let l=await R(e,i,this._cardsFetcher,this._cardFetcherDeployed,F,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let n=l.message;n.indexOf("CONT_0001")>-1||n.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):n.indexOf("GWM_0003")>-1||n.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?O.AEC:t.industry,l=t.offerType,n=t.searchTerm,E="",d=t.sortField,u=t.owner,b=t.filter;d==="suggested"&&!this.authentication?.IsSignedIn&&(d=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),n&&(e=e?{...e,searchTerm:n}:{searchTerm:n}),e&&(e={...e,displayValue:E}),d&&(e=e?{...e,sortType:d}:{sortType:d}),l&&(d=l.toLowerCase(),e=e?{...e,sortType:d}:{sortType:d}),u&&(e=e?{...e,owner:u}:{owner:u}),b&&(e=e?{...e,filter:b}:{filter:b})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},s)}}};w("solutions-deploy-app",g);return g},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,d,e,g,h,i,j,k,l,m,n,q,s,t,u,x)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as r}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as n}from"./2I5LGZNX.js";import{G as o,h as l,i as a,q as i}from"./FFF5HUPM.js";import"./QPIMTXPL.js";var c=l`:host{display:block}`,s=class extends o{constructor(){super(...arguments),this.ids=[],this.open=!1,this._isDeleting=!1,this._translations=r({name:"delete-dialog",blocking:!0}),this.editsComplete=i(),this.deleteDialogClose=i()}static{this.properties={ids:0,layer:0,open:5,_isDeleting:16,_translations:16}}static{this.styles=c}render(){let e=this.layer?.title||"",t=this.ids.length===1?(this._translations.confirmSingle||"").replace("{{layer-name}}",e):(this._translations.confirmMultiple||"").replace("{{layer-name}}",e);return a`<calcite-dialog .heading=${this._translations.deleteFeature} kind=danger modal @calciteDialogClose=${()=>this._close()} .open=${this.open} width=s><div>${t}</div><calcite-button appearance=outline kind=danger @click=${()=>this._close()} slot=footer-end width=full>${this._translations.cancel}</calcite-button><calcite-button kind=danger .loading=${this._isDeleting} @click=${()=>{this._deleteFeatures()}} slot=footer-end width=full>${this._translations.delete}</calcite-button></calcite-dialog>`}async _deleteFeatures(){if(this.layer){this._isDeleting=!0;let e=this.ids.map(t=>({objectId:Number(t)}));await this.layer.applyEdits({deleteFeatures:e}),this._isDeleting=!1,this._close(),this.editsComplete.emit("delete")}}_close(){this.open=!1,this.deleteDialogClose.emit()}};n("delete-dialog",s);export{s as DeleteDialog};
2
+ import{a as r}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as n}from"./2I5LGZNX.js";import{G as o,h as l,i as a,q as i}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var c=l`:host{display:block}`,s=class extends o{constructor(){super(...arguments),this.ids=[],this.open=!1,this._isDeleting=!1,this._translations=r({name:"delete-dialog",blocking:!0}),this.editsComplete=i(),this.deleteDialogClose=i()}static{this.properties={ids:0,layer:0,open:5,_isDeleting:16,_translations:16}}static{this.styles=c}render(){let e=this.layer?.title||"",t=this.ids.length===1?(this._translations.confirmSingle||"").replace("{{layer-name}}",e):(this._translations.confirmMultiple||"").replace("{{layer-name}}",e);return a`<calcite-dialog .heading=${this._translations.deleteFeature} kind=danger modal @calciteDialogClose=${()=>this._close()} .open=${this.open} width=s><div>${t}</div><calcite-button appearance=outline kind=danger @click=${()=>this._close()} slot=footer-end width=full>${this._translations.cancel}</calcite-button><calcite-button kind=danger .loading=${this._isDeleting} @click=${()=>{this._deleteFeatures()}} slot=footer-end width=full>${this._translations.delete}</calcite-button></calcite-dialog>`}async _deleteFeatures(){if(this.layer){this._isDeleting=!0;let e=this.ids.map(t=>({objectId:Number(t)}));await this.layer.applyEdits({deleteFeatures:e}),this._isDeleting=!1,this._close(),this.editsComplete.emit("delete")}}_close(){this.open=!1,this.deleteDialogClose.emit()}};n("delete-dialog",s);export{s as DeleteDialog};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{ka as c,ob as p}from"./MSUQVQBX.js";import{u as d}from"./AYSQIO6L.js";var V=250,g=new Set(["add","all","alter","and","any","as","asc","backup","between","by","case","check","column","constraint","create","database","date","default","delete","desc","distinct","drop","exec","exists","foreign","from","full","group","having","in","index","inner","insert","into","is","join","key","left","like","limit","not","null","on","or","order","outer","primary","procedure","right","rownum","select","set","shape","subtype","table","top","truncate","union","unique","update","values","view","where"]),w=new Set(["objectid","globalid","created_date","created_user","last_edited_date","last_edited_user","fid","shape","shape_length","shape_area"]),x=/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F1E0}-\u{1F1FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F900}-\u{1F9FF}\u{1F018}-\u{1F270}\u{238C}-\u{2454}\u{20D0}-\u{20FF}\u{FE0F}]/u;function n(e){return!e||e.trim().length===0}function s(e){return e.length>V}function l(e,r){return x.test(e)?!0:r==="item"?/[><~`$^+=|\\]/u.test(e):/[/<>\\]/u.test(e)}async function b(e,r){let t=r,a=await t.getUsername(),y={q:new d().match(e).in("title").and().match(a).in("owner"),filter:"type:Solution",authentication:t},h=(await p(y)).results.map(i=>i.title),{folders:m}=await c(t),f=m.map(i=>i.title),u=[...h,...f].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),F=u.filter(i=>i===o),T=u.filter(i=>i.startsWith(o));return{conflictingNames:F,similiarNames:T}}async function L(e,r,t=!1){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:l(e,"folder")||l(e,"item")?{isValid:!1,errorType:"special-character"}:!t&&r&&(await b(e.trim(),r)).conflictingNames.length>0?{isValid:!1,errorType:"not-unique"}:{isValid:!0,errorType:null}}function C(e){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:l(e,"item")?{isValid:!1,errorType:"special-character"}:{isValid:!0,errorType:null}}function v(e,r,t=!1){if(e.length>r)return{isValid:!1,errorType:"exceed-length"};let a=[];return e.includes("<")&&a.push("<"),e.includes(">")&&a.push(">"),!t&&e.includes("/")&&a.push("/"),a.length>0?{isValid:!1,errorType:"special-character"}:{isValid:!0,errorType:null}}function S(e){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:{isValid:!0,errorType:null}}function k(e,r=[]){return n(e)?{isValid:!1,errorType:"empty"}:/^[\p{L}][\p{L}\p{N}\p{M}_]*$/u.test(e)?e.length>31?{isValid:!1,errorType:"exceed-length"}:g.has(e.toLowerCase())?{isValid:!1,errorType:"sql-keyword"}:w.has(e.toLowerCase())?{isValid:!1,errorType:"system-field"}:r.includes(e.toLowerCase())?{isValid:!1,errorType:"duplicate-field"}:{isValid:!0,errorType:null}:{isValid:!1,errorType:"invalid-format"}}function q(e){return e<1||e>4e3?{isValid:!1,errorType:"out-of-range"}:{isValid:!0,errorType:null}}function N(e,r,t=!1){return t?{isValid:!0,errorType:null}:e.trim().length===0?{isValid:!1,errorType:"empty"}:e.length>r?{isValid:!1,errorType:"exceed-length"}:{isValid:!0,errorType:null}}export{g as a,b,L as c,C as d,v as e,S as f,k as g,q as h,N as i};
2
+ import{ka as c,ob as p}from"./ACTJS4TX.js";import{u as d}from"./AYSQIO6L.js";var V=250,g=new Set(["add","all","alter","and","any","as","asc","backup","between","by","case","check","column","constraint","create","database","date","default","delete","desc","distinct","drop","exec","exists","foreign","from","full","group","having","in","index","inner","insert","into","is","join","key","left","like","limit","not","null","on","or","order","outer","primary","procedure","right","rownum","select","set","shape","subtype","table","top","truncate","union","unique","update","values","view","where"]),w=new Set(["objectid","globalid","created_date","created_user","last_edited_date","last_edited_user","fid","shape","shape_length","shape_area"]),x=/[\u{1F600}-\u{1F64F}\u{1F300}-\u{1F5FF}\u{1F680}-\u{1F6FF}\u{1F1E0}-\u{1F1FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F900}-\u{1F9FF}\u{1F018}-\u{1F270}\u{238C}-\u{2454}\u{20D0}-\u{20FF}\u{FE0F}]/u;function n(e){return!e||e.trim().length===0}function s(e){return e.length>V}function l(e,r){return x.test(e)?!0:r==="item"?/[><~`$^+=|\\]/u.test(e):/[/<>\\]/u.test(e)}async function b(e,r){let t=r,a=await t.getUsername(),y={q:new d().match(e).in("title").and().match(a).in("owner"),filter:"type:Solution",authentication:t},h=(await p(y)).results.map(i=>i.title),{folders:m}=await c(t),f=m.map(i=>i.title),u=[...h,...f].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),F=u.filter(i=>i===o),T=u.filter(i=>i.startsWith(o));return{conflictingNames:F,similiarNames:T}}async function L(e,r,t=!1){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:l(e,"folder")||l(e,"item")?{isValid:!1,errorType:"special-character"}:!t&&r&&(await b(e.trim(),r)).conflictingNames.length>0?{isValid:!1,errorType:"not-unique"}:{isValid:!0,errorType:null}}function C(e){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:l(e,"item")?{isValid:!1,errorType:"special-character"}:{isValid:!0,errorType:null}}function v(e,r,t=!1){if(e.length>r)return{isValid:!1,errorType:"exceed-length"};let a=[];return e.includes("<")&&a.push("<"),e.includes(">")&&a.push(">"),!t&&e.includes("/")&&a.push("/"),a.length>0?{isValid:!1,errorType:"special-character"}:{isValid:!0,errorType:null}}function S(e){return n(e)?{isValid:!1,errorType:"empty"}:s(e)?{isValid:!1,errorType:"exceed-length"}:{isValid:!0,errorType:null}}function k(e,r=[]){return n(e)?{isValid:!1,errorType:"empty"}:/^[\p{L}][\p{L}\p{N}\p{M}_]*$/u.test(e)?e.length>31?{isValid:!1,errorType:"exceed-length"}:g.has(e.toLowerCase())?{isValid:!1,errorType:"sql-keyword"}:w.has(e.toLowerCase())?{isValid:!1,errorType:"system-field"}:r.includes(e.toLowerCase())?{isValid:!1,errorType:"duplicate-field"}:{isValid:!0,errorType:null}:{isValid:!1,errorType:"invalid-format"}}function q(e){return e<1||e>4e3?{isValid:!1,errorType:"out-of-range"}:{isValid:!0,errorType:null}}function N(e,r,t=!1){return t?{isValid:!0,errorType:null}:e.trim().length===0?{isValid:!1,errorType:"empty"}:e.length>r?{isValid:!1,errorType:"exceed-length"}:{isValid:!0,errorType:null}}export{g as a,b,L as c,C as d,v as e,S as f,k as g,q as h,N as i};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as _}from"./BM4VSEDV.js";import{b as m}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{E as h,F as g,G as u,I as r,h as d,i as s}from"./FFF5HUPM.js";import"./QPIMTXPL.js";var o=class{constructor(){this.pages=[],this.headerText="",this.pages=[]}setPages(e){this.pages=e,this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=this.pages.length?this.pages[0].title:""}},f=d`:host{--instant-apps-app-guide-width: 300px;--instant-apps-app-guide-height: 400px;--instant-apps-app-guide-list-item-bubble-size: 22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:.5rem;padding-inline:.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-icon-color: var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item:before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}`,l={contentList:"instant-apps-app-guide__content-list",contentListItem:"instant-apps-app-guide__content-list--item",contentWrapper:"instant-apps-app-guide__content-wrapper"},c=class extends u{constructor(){super(...arguments),this._messages=_({name:"instant-apps-app-guide"}),this._viewModel=new o,this._carouselRef=h(),this.header=!0}static{this.properties={headerText:16,header:5,data:0}}static{this.styles=f}load(){this._setContent(this.data)}willUpdate(e){e.has("data")&&this._setContent(this.data),e.has("headerText")&&(this._viewModel.headerText=this.headerText)}_setContent(e){this._viewModel.setPages(e),this.headerText=this._viewModel.headerText}_updateHeaderText(){let{_viewModel:e,_carouselRef:{value:t},_messages:a}=this;if(!(e&&t))return;let i=Array.from(t.children).indexOf(t.selectedItem),n=e?.pages,p=n?.[i]??n[0];this.headerText=p?.title||a.headerText}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}render(){let e=this._renderAppGuidePages(this._viewModel.pages),t=this._renderAppGuideHeader();return s`<calcite-panel scale=s>${t}<calcite-carousel label="App Guide" @calciteCarouselChange=${()=>this._updateHeaderText()} .arrowType=${this._getArrowType()} ${g(this._carouselRef)}>${e}</calcite-carousel></calcite-panel>`}_renderAppGuideHeader(){let{_messages:e,header:t,headerText:a}=this,i=!!t&&e.headerText,n=a||e.headerText;return i?s`<span slot=header-content>${n} <calcite-icon icon=lightbulb scale=s></calcite-icon></span>`:null}_renderAppGuidePages(e){return e.map((t,a)=>{let{content:i,type:n,title:p}=t;return s`<calcite-carousel-item .label=${p}><div class=${r(l.contentWrapper)}>${this._renderContentItems(i,n)}</div></calcite-carousel-item>`})}_renderContentItems(e,t){return t==="list"?s`<ol class=${r(l.contentList)}>${e.map((a,i)=>s`<li class=${r(l.contentListItem)}>${a}</li>`)}</ol>`:e.map((a,i)=>s`<p>${a}</p>`)}};m("instant-apps-app-guide",c);export{c as InstantAppsAppGuide};
2
+ import{a as _}from"./BM4VSEDV.js";import{b as m}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{E as h,F as g,G as u,I as r,h as d,i as s}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var o=class{constructor(){this.pages=[],this.headerText="",this.pages=[]}setPages(e){this.pages=e,this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=this.pages.length?this.pages[0].title:""}},f=d`:host{--instant-apps-app-guide-width: 300px;--instant-apps-app-guide-height: 400px;--instant-apps-app-guide-list-item-bubble-size: 22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:.5rem;padding-inline:.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-icon-color: var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item:before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}`,l={contentList:"instant-apps-app-guide__content-list",contentListItem:"instant-apps-app-guide__content-list--item",contentWrapper:"instant-apps-app-guide__content-wrapper"},c=class extends u{constructor(){super(...arguments),this._messages=_({name:"instant-apps-app-guide"}),this._viewModel=new o,this._carouselRef=h(),this.header=!0}static{this.properties={headerText:16,header:5,data:0}}static{this.styles=f}load(){this._setContent(this.data)}willUpdate(e){e.has("data")&&this._setContent(this.data),e.has("headerText")&&(this._viewModel.headerText=this.headerText)}_setContent(e){this._viewModel.setPages(e),this.headerText=this._viewModel.headerText}_updateHeaderText(){let{_viewModel:e,_carouselRef:{value:t},_messages:a}=this;if(!(e&&t))return;let i=Array.from(t.children).indexOf(t.selectedItem),n=e?.pages,p=n?.[i]??n[0];this.headerText=p?.title||a.headerText}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}render(){let e=this._renderAppGuidePages(this._viewModel.pages),t=this._renderAppGuideHeader();return s`<calcite-panel scale=s>${t}<calcite-carousel label="App Guide" @calciteCarouselChange=${()=>this._updateHeaderText()} .arrowType=${this._getArrowType()} ${g(this._carouselRef)}>${e}</calcite-carousel></calcite-panel>`}_renderAppGuideHeader(){let{_messages:e,header:t,headerText:a}=this,i=!!t&&e.headerText,n=a||e.headerText;return i?s`<span slot=header-content>${n} <calcite-icon icon=lightbulb scale=s></calcite-icon></span>`:null}_renderAppGuidePages(e){return e.map((t,a)=>{let{content:i,type:n,title:p}=t;return s`<calcite-carousel-item .label=${p}><div class=${r(l.contentWrapper)}>${this._renderContentItems(i,n)}</div></calcite-carousel-item>`})}_renderContentItems(e,t){return t==="list"?s`<ol class=${r(l.contentList)}>${e.map((a,i)=>s`<li class=${r(l.contentListItem)}>${a}</li>`)}</ol>`:e.map((a,i)=>s`<p>${a}</p>`)}};m("instant-apps-app-guide",c);export{c as InstantAppsAppGuide};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as e}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import{a as t}from"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f as buildUiSchema};
2
+ import{a as e}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import{a as t}from"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./EXBEKVP5.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f as buildUiSchema};