@arcgis/portal-components 5.2.0-next.124 → 5.2.0-next.126

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 (264) hide show
  1. package/dist/cdn/{XVXUI2NM.js → 2B2T3CO3.js} +1 -1
  2. package/dist/cdn/2EV6F7V6.js +2 -0
  3. package/dist/cdn/{PO7ZCHRK.js → 2U2SESKW.js} +69 -69
  4. package/dist/cdn/{ZRPU3E6I.js → 3TMF6URM.js} +1 -1
  5. package/dist/cdn/3YJUQ54F.js +2 -0
  6. package/dist/cdn/4IRL6DWY.js +2 -0
  7. package/dist/cdn/{X2YH4HME.js → 5B76NS25.js} +1 -1
  8. package/dist/cdn/5CQ3B6ZW.js +2 -0
  9. package/dist/cdn/5EFYJYWM.js +2 -0
  10. package/dist/cdn/5GLUIQ7R.js +2 -0
  11. package/dist/cdn/{P5T4PK6A.js → 5HP5TLLV.js} +1 -1
  12. package/dist/cdn/5ZSZI7KG.js +2 -0
  13. package/dist/cdn/{5SRRBZNT.js → 6JJUORUU.js} +1 -1
  14. package/dist/cdn/6PTPTTSS.js +2 -0
  15. package/dist/cdn/6XRVLKAZ.js +2 -0
  16. package/dist/cdn/{IE57HB42.js → 7QCQNOXB.js} +1 -1
  17. package/dist/cdn/{FXGAQXNR.js → 7UNUBFFC.js} +1 -1
  18. package/dist/cdn/{YA32NOJY.js → ABIXHCPF.js} +1 -1
  19. package/dist/cdn/{HKJ5QP62.js → AYOR6D2Z.js} +1 -1
  20. package/dist/cdn/{6Z2AEG54.js → BPQ6ZBLE.js} +1 -1
  21. package/dist/cdn/{5R5O2X3M.js → BQKUF5EQ.js} +1 -1
  22. package/dist/cdn/BYYQOYJS.js +2 -0
  23. package/dist/cdn/{TD6BN5LE.js → CVUMYWBS.js} +1 -1
  24. package/dist/cdn/{JADQNA27.js → D4MCG57T.js} +1 -1
  25. package/dist/cdn/DIOGMUOB.js +2 -0
  26. package/dist/cdn/{52EHJXE4.js → DZWCWV3A.js} +1 -1
  27. package/dist/cdn/{35MI6GEH.js → E3XDGNPB.js} +1 -1
  28. package/dist/cdn/E56YMOVE.js +2 -0
  29. package/dist/cdn/EPURPU4Q.js +2 -0
  30. package/dist/cdn/{JZID64Z6.js → EXPBHQ4I.js} +1 -1
  31. package/dist/cdn/{MTJN3KRM.js → FHXIGKK4.js} +1 -1
  32. package/dist/cdn/{X3WXFI25.js → FJ3PFFCN.js} +1 -1
  33. package/dist/cdn/{GXOORXRU.js → FKFSGSBA.js} +1 -1
  34. package/dist/cdn/FPKKNRZY.js +2 -0
  35. package/dist/cdn/{COXMHAJA.js → GCB5BYDM.js} +1 -1
  36. package/dist/cdn/{7EM25L56.js → GES5WKJA.js} +1 -1
  37. package/dist/cdn/{Z44L4BKR.js → GGG3IIFK.js} +1 -1
  38. package/dist/cdn/{QJCOQ6FY.js → GZU4XZUI.js} +1 -1
  39. package/dist/cdn/{JEOHKIHK.js → H3CCKTNL.js} +1 -1
  40. package/dist/cdn/{BZZQOEUP.js → H3PPP7A7.js} +1 -1
  41. package/dist/cdn/{BYV7M63H.js → HATTAFCL.js} +1 -1
  42. package/dist/cdn/{5HVUPXCG.js → HPDQHQVC.js} +1 -1
  43. package/dist/cdn/{L4YVQHX3.js → HWYJF6DJ.js} +1 -1
  44. package/dist/cdn/{OAVKM5RX.js → I5C4SV6N.js} +1 -1
  45. package/dist/cdn/{4RPD44KC.js → I64ZE3TR.js} +1 -1
  46. package/dist/cdn/{7EPXWK4L.js → ICUDZDC6.js} +1 -1
  47. package/dist/cdn/{625YOS7Q.js → IMIQY3MT.js} +1 -1
  48. package/dist/cdn/{GC7KNL7Y.js → IWARFJ4I.js} +1 -1
  49. package/dist/cdn/JB2P4KY4.js +2 -0
  50. package/dist/cdn/{YASUXORH.js → JGCCJ5PX.js} +1 -1
  51. package/dist/cdn/JIOUF6RV.js +2 -0
  52. package/dist/cdn/{6QTLQAJL.js → K25K7FCI.js} +1 -1
  53. package/dist/cdn/{37HLLREH.js → K4LXMVNH.js} +1 -1
  54. package/dist/cdn/{6H7CWMFE.js → K64QFEX2.js} +1 -1
  55. package/dist/cdn/{CFLKHGTI.js → KALKWPUR.js} +1 -1
  56. package/dist/cdn/KEM54FSC.js +2 -0
  57. package/dist/cdn/{RCL4QILW.js → KFGCJN3T.js} +1 -1
  58. package/dist/cdn/{3RGCV53N.js → L46EVYBC.js} +1 -1
  59. package/dist/cdn/{E3Y3LIHI.js → LFRTGSGI.js} +1 -1
  60. package/dist/cdn/MA7TVM56.js +2 -0
  61. package/dist/cdn/MBOTEUCN.js +2 -0
  62. package/dist/cdn/MC3V6J4M.js +2 -0
  63. package/dist/cdn/{JGH37RQB.js → MFKSJMJS.js} +1 -1
  64. package/dist/cdn/MG4AOOOZ.js +2 -0
  65. package/dist/cdn/{EZIZLWHA.js → MXVFCMBR.js} +1 -1
  66. package/dist/cdn/{5H6OROJK.js → N4UNPHFQ.js} +1 -1
  67. package/dist/cdn/{7ZCKR7TW.js → NBU2KMJP.js} +1 -1
  68. package/dist/cdn/NBX2RCQR.js +2 -0
  69. package/dist/cdn/NQMXSOYA.js +2 -0
  70. package/dist/cdn/{DKWAWI4G.js → NXJTHWZ6.js} +1 -1
  71. package/dist/cdn/{AUBBEYJL.js → OGAJ4WJ7.js} +1 -1
  72. package/dist/cdn/{M5VLXVNQ.js → OXKHPA3Q.js} +1 -1
  73. package/dist/cdn/{DWHJ45FR.js → PCFYL72V.js} +1 -1
  74. package/dist/cdn/{BKACWDST.js → PK7EJW27.js} +1 -1
  75. package/dist/cdn/{C5SWAPH7.js → PM3ZMOIJ.js} +1 -1
  76. package/dist/cdn/{H4TRF2G7.js → PWHUWOQ3.js} +1 -1
  77. package/dist/cdn/PZGMF6VO.js +2 -0
  78. package/dist/cdn/QMI55NF4.js +2 -0
  79. package/dist/cdn/QNWDRDCX.js +2 -0
  80. package/dist/cdn/{BQLZPSWJ.js → QPYGIJHQ.js} +1 -1
  81. package/dist/cdn/{NDHD5H3P.js → QQMRZ2WI.js} +1 -1
  82. package/dist/cdn/{BV5TOHYG.js → QSWSIFAH.js} +1 -1
  83. package/dist/cdn/{6XW2ZF24.js → RII2VGVJ.js} +1 -1
  84. package/dist/cdn/{FQCG2EFI.js → RX7UZ7F5.js} +1 -1
  85. package/dist/cdn/S772GWA3.js +2 -0
  86. package/dist/cdn/SGI3WLNF.js +2 -0
  87. package/dist/cdn/SXQ2TVKW.js +2 -0
  88. package/dist/cdn/SXSWBX5T.js +2 -0
  89. package/dist/cdn/TEYNP76W.js +2 -0
  90. package/dist/cdn/TH6XSIAF.js +2 -0
  91. package/dist/cdn/{TF3F2YJ6.js → THNBXEBO.js} +1 -1
  92. package/dist/cdn/U6MJCS5P.js +2 -0
  93. package/dist/cdn/{6F74ZAGM.js → UI3WY3TF.js} +1 -1
  94. package/dist/cdn/{7NZ3RJFV.js → UXAGLEJM.js} +1 -1
  95. package/dist/cdn/{64NRJZKN.js → V2WAYK5G.js} +1 -1
  96. package/dist/cdn/{BLCWXWUR.js → V5BCQN5U.js} +1 -1
  97. package/dist/cdn/{CGX6YKBP.js → V75YULVA.js} +1 -1
  98. package/dist/cdn/{5UU2W2M6.js → VKS44KV4.js} +1 -1
  99. package/dist/cdn/{SHWP2FT2.js → VUBYPGZG.js} +1 -1
  100. package/dist/cdn/VYGJEX36.js +2 -0
  101. package/dist/cdn/{VU5VTC5L.js → WKQGRP5P.js} +1 -1
  102. package/dist/cdn/{FWRSYP3I.js → X4GCKBT2.js} +1 -1
  103. package/dist/cdn/{7T744GFJ.js → XATZUXUP.js} +1 -1
  104. package/dist/cdn/XDKRJYZ2.js +2 -0
  105. package/dist/cdn/YDA23ZS6.js +2 -0
  106. package/dist/cdn/{5IEUHTZ7.js → YFU47LWN.js} +1 -1
  107. package/dist/cdn/YO44QZPK.js +2 -0
  108. package/dist/cdn/{GMLGEIYS.js → YXWMVZUC.js} +1 -1
  109. package/dist/cdn/YYHDUC6G.js +2 -0
  110. package/dist/cdn/{6L5QFCR6.js → ZY5BJB25.js} +1 -1
  111. package/dist/cdn/{NF5AJJQU.js → ZZBKWWAW.js} +1 -1
  112. package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -1
  113. package/dist/cdn/assets/portal-delete-items/t9n/messages.ar.json +1 -0
  114. package/dist/cdn/assets/portal-delete-items/t9n/messages.bg.json +1 -0
  115. package/dist/cdn/assets/portal-delete-items/t9n/messages.ca.json +1 -0
  116. package/dist/cdn/assets/portal-delete-items/t9n/messages.cs.json +1 -0
  117. package/dist/cdn/assets/portal-delete-items/t9n/messages.da.json +1 -0
  118. package/dist/cdn/assets/portal-delete-items/t9n/messages.de.json +1 -0
  119. package/dist/cdn/assets/portal-delete-items/t9n/messages.el.json +1 -0
  120. package/dist/cdn/assets/portal-delete-items/t9n/messages.en.json +1 -0
  121. package/dist/cdn/assets/portal-delete-items/t9n/messages.es.json +1 -0
  122. package/dist/cdn/assets/portal-delete-items/t9n/messages.et.json +1 -0
  123. package/dist/cdn/assets/portal-delete-items/t9n/messages.fi.json +1 -0
  124. package/dist/cdn/assets/portal-delete-items/t9n/messages.fr.json +1 -0
  125. package/dist/cdn/assets/portal-delete-items/t9n/messages.he.json +1 -0
  126. package/dist/cdn/assets/portal-delete-items/t9n/messages.hr.json +1 -0
  127. package/dist/cdn/assets/portal-delete-items/t9n/messages.hu.json +1 -0
  128. package/dist/cdn/assets/portal-delete-items/t9n/messages.id.json +1 -0
  129. package/dist/cdn/assets/portal-delete-items/t9n/messages.it.json +1 -0
  130. package/dist/cdn/assets/portal-delete-items/t9n/messages.ja.json +1 -0
  131. package/dist/cdn/assets/portal-delete-items/t9n/messages.ko.json +1 -0
  132. package/dist/cdn/assets/portal-delete-items/t9n/messages.lt.json +1 -0
  133. package/dist/cdn/assets/portal-delete-items/t9n/messages.lv.json +1 -0
  134. package/dist/cdn/assets/portal-delete-items/t9n/messages.nl.json +1 -0
  135. package/dist/cdn/assets/portal-delete-items/t9n/messages.no.json +1 -0
  136. package/dist/cdn/assets/portal-delete-items/t9n/messages.pl.json +1 -0
  137. package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-BR.json +1 -0
  138. package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-PT.json +1 -0
  139. package/dist/cdn/assets/portal-delete-items/t9n/messages.ro.json +1 -0
  140. package/dist/cdn/assets/portal-delete-items/t9n/messages.ru.json +1 -0
  141. package/dist/cdn/assets/portal-delete-items/t9n/messages.sk.json +1 -0
  142. package/dist/cdn/assets/portal-delete-items/t9n/messages.sl.json +1 -0
  143. package/dist/cdn/assets/portal-delete-items/t9n/messages.sr.json +1 -0
  144. package/dist/cdn/assets/portal-delete-items/t9n/messages.sv.json +1 -0
  145. package/dist/cdn/assets/portal-delete-items/t9n/messages.th.json +1 -0
  146. package/dist/cdn/assets/portal-delete-items/t9n/messages.tr.json +1 -0
  147. package/dist/cdn/assets/portal-delete-items/t9n/messages.uk.json +1 -0
  148. package/dist/cdn/assets/portal-delete-items/t9n/messages.vi.json +1 -0
  149. package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-CN.json +1 -0
  150. package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-TW.json +1 -0
  151. package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -1
  152. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ar.json +1 -0
  153. package/dist/cdn/assets/portal-review-related-items/t9n/messages.bg.json +1 -0
  154. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ca.json +1 -0
  155. package/dist/cdn/assets/portal-review-related-items/t9n/messages.cs.json +1 -0
  156. package/dist/cdn/assets/portal-review-related-items/t9n/messages.da.json +1 -0
  157. package/dist/cdn/assets/portal-review-related-items/t9n/messages.de.json +1 -0
  158. package/dist/cdn/assets/portal-review-related-items/t9n/messages.el.json +1 -0
  159. package/dist/cdn/assets/portal-review-related-items/t9n/messages.en.json +1 -0
  160. package/dist/cdn/assets/portal-review-related-items/t9n/messages.es.json +1 -0
  161. package/dist/cdn/assets/portal-review-related-items/t9n/messages.et.json +1 -0
  162. package/dist/cdn/assets/portal-review-related-items/t9n/messages.fi.json +1 -0
  163. package/dist/cdn/assets/portal-review-related-items/t9n/messages.fr.json +1 -0
  164. package/dist/cdn/assets/portal-review-related-items/t9n/messages.he.json +1 -0
  165. package/dist/cdn/assets/portal-review-related-items/t9n/messages.hr.json +1 -0
  166. package/dist/cdn/assets/portal-review-related-items/t9n/messages.hu.json +1 -0
  167. package/dist/cdn/assets/portal-review-related-items/t9n/messages.id.json +1 -0
  168. package/dist/cdn/assets/portal-review-related-items/t9n/messages.it.json +1 -0
  169. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ja.json +1 -0
  170. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ko.json +1 -0
  171. package/dist/cdn/assets/portal-review-related-items/t9n/messages.lt.json +1 -0
  172. package/dist/cdn/assets/portal-review-related-items/t9n/messages.lv.json +1 -0
  173. package/dist/cdn/assets/portal-review-related-items/t9n/messages.nl.json +1 -0
  174. package/dist/cdn/assets/portal-review-related-items/t9n/messages.no.json +1 -0
  175. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pl.json +1 -0
  176. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-BR.json +1 -0
  177. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-PT.json +1 -0
  178. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ro.json +1 -0
  179. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ru.json +1 -0
  180. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sk.json +1 -0
  181. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sl.json +1 -0
  182. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sr.json +1 -0
  183. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sv.json +1 -0
  184. package/dist/cdn/assets/portal-review-related-items/t9n/messages.th.json +1 -0
  185. package/dist/cdn/assets/portal-review-related-items/t9n/messages.tr.json +1 -0
  186. package/dist/cdn/assets/portal-review-related-items/t9n/messages.uk.json +1 -0
  187. package/dist/cdn/assets/portal-review-related-items/t9n/messages.vi.json +1 -0
  188. package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-CN.json +1 -0
  189. package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-TW.json +1 -0
  190. package/dist/cdn/index.js +1 -1
  191. package/dist/cdn/main.css +1 -1
  192. package/dist/chunks/functional.js +9 -0
  193. package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +1 -2
  194. package/dist/components/arcgis-portal-account-switcher/customElement.js +107 -98
  195. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +0 -2
  196. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +0 -2
  197. package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +0 -2
  198. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +128 -0
  199. package/dist/components/arcgis-portal-delete-items/customElement.js +452 -0
  200. package/dist/components/arcgis-portal-delete-items/index.d.ts +1 -0
  201. package/dist/components/arcgis-portal-delete-items/index.js +13 -0
  202. package/dist/components/arcgis-portal-delete-items/services.d.ts +7 -0
  203. package/dist/components/arcgis-portal-extent-picker/customElement.js +285 -243
  204. package/dist/components/arcgis-portal-extent-picker/index.js +3 -0
  205. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +8 -8
  206. package/dist/components/arcgis-portal-field-delete/customElement.js +206 -120
  207. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +4 -0
  208. package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +4 -0
  209. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
  210. package/dist/components/arcgis-portal-navigation/customElement.js +35 -37
  211. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  212. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +27 -0
  213. package/dist/components/arcgis-portal-review-related-items/customElement.js +42 -0
  214. package/dist/components/arcgis-portal-review-related-items/index.d.ts +1 -0
  215. package/dist/components/arcgis-portal-review-related-items/index.js +5 -0
  216. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  217. package/dist/docs/api.json +1 -1
  218. package/dist/docs/docs.json +1 -1
  219. package/dist/docs/vscode.html-custom-data.json +1 -1
  220. package/dist/docs/web-types.json +1 -1
  221. package/dist/index.d.ts +14 -0
  222. package/dist/loader.js +3 -1
  223. package/dist/types/lumina.d.ts +14 -1
  224. package/dist/types/preact.d.ts +16 -1
  225. package/dist/types/react.d.ts +18 -1
  226. package/dist/types/services.d.ts +9 -0
  227. package/dist/types/stencil.d.ts +14 -1
  228. package/package.json +7 -6
  229. package/dist/cdn/2HI6C3VG.js +0 -2
  230. package/dist/cdn/3R4I7T7Y.js +0 -2
  231. package/dist/cdn/465E43FF.js +0 -2
  232. package/dist/cdn/6PRXL6A7.js +0 -2
  233. package/dist/cdn/7LIVNXCJ.js +0 -2
  234. package/dist/cdn/A2OPVUV2.js +0 -2
  235. package/dist/cdn/AO7QKC5R.js +0 -2
  236. package/dist/cdn/BTGSJRJK.js +0 -2
  237. package/dist/cdn/C7FIYNJZ.js +0 -2
  238. package/dist/cdn/CK2D7FWY.js +0 -2
  239. package/dist/cdn/CQYLVRUF.js +0 -2
  240. package/dist/cdn/GXQMTKYF.js +0 -2
  241. package/dist/cdn/H2BBKRIY.js +0 -2
  242. package/dist/cdn/HGKH2F4Y.js +0 -2
  243. package/dist/cdn/KXSBIXYI.js +0 -2
  244. package/dist/cdn/L3UUTA7H.js +0 -2
  245. package/dist/cdn/LD2SO7MK.js +0 -2
  246. package/dist/cdn/LDY4QCZH.js +0 -2
  247. package/dist/cdn/LR6IOINV.js +0 -2
  248. package/dist/cdn/M3PJPM3Q.js +0 -2
  249. package/dist/cdn/ML2ETZQ5.js +0 -2
  250. package/dist/cdn/NMMQRFHX.js +0 -2
  251. package/dist/cdn/OO2IP4WZ.js +0 -2
  252. package/dist/cdn/PBWAZUZ4.js +0 -2
  253. package/dist/cdn/QTDRRCS2.js +0 -2
  254. package/dist/cdn/SXE3WUK6.js +0 -2
  255. package/dist/cdn/UFEBKEX7.js +0 -2
  256. package/dist/cdn/VLLPYVQB.js +0 -2
  257. package/dist/cdn/W47ZH7KA.js +0 -2
  258. package/dist/cdn/WFTFIAEX.js +0 -2
  259. package/dist/cdn/WIU3MYUE.js +0 -2
  260. package/dist/cdn/WKFQOWXJ.js +0 -2
  261. package/dist/cdn/XCFRL5XT.js +0 -2
  262. package/dist/cdn/ZHJMS2LV.js +0 -2
  263. /package/dist/cdn/{DG6DAKQ2.js → ASDS73QU.js} +0 -0
  264. /package/dist/cdn/{N5KMTTYL.js → OTMC7MVD.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as c}from"./S2BGAMSA.js";import{a as e}from"./FWRSYP3I.js";import{Ic as n}from"./DG6DAKQ2.js";export default $arcgis.t(([m])=>{async function r(t,a,o){let i={target:new m({longitude:t.longitude,latitude:t.latitude,spatialReference:{wkid:4326}})};return o?.zoom!==void 0&&(i.zoom=o.zoom),o?.scale!==void 0&&(i.scale=o.scale),await a.goTo(i),{text:`Successfully navigated to: ${[`(${t.latitude}\xB0, ${t.longitude}\xB0)`,o?.zoom!==void 0?`zoom ${o.zoom}`:"",o?.scale!==void 0?`scale 1:${o.scale}`:""].filter(Boolean).join(", ")}`}}async function s({center:t,zoom:a,scale:o},i){let{mapView:l}=c(i,["mapView"]);return await r(t,l,{zoom:a,scale:o})}var d=e.object({center:e.object({longitude:e.number().describe("The longitude (x-coordinate) of the point to navigate to."),latitude:e.number().describe("The latitude (y-coordinate) of the point to navigate to.")}),zoom:e.number().optional().describe("The zoom level. Higher values = more zoomed in."),scale:e.number().optional().describe("The map scale. Alternative to zoom. Smaller numbers = more zoomed in.")}),g=n(s,{name:"goToViewpoint",description:"Go to the specified viewpoint. This can contain a combination of scale, center, zoom, etc.",schema:d});return g},"geometry/Point")
2
+ import{a as c}from"./S2BGAMSA.js";import{a as e}from"./X4GCKBT2.js";import{Ic as n}from"./ASDS73QU.js";export default $arcgis.t(([m])=>{async function r(t,a,o){let i={target:new m({longitude:t.longitude,latitude:t.latitude,spatialReference:{wkid:4326}})};return o?.zoom!==void 0&&(i.zoom=o.zoom),o?.scale!==void 0&&(i.scale=o.scale),await a.goTo(i),{text:`Successfully navigated to: ${[`(${t.latitude}\xB0, ${t.longitude}\xB0)`,o?.zoom!==void 0?`zoom ${o.zoom}`:"",o?.scale!==void 0?`scale 1:${o.scale}`:""].filter(Boolean).join(", ")}`}}async function s({center:t,zoom:a,scale:o},i){let{mapView:l}=c(i,["mapView"]);return await r(t,l,{zoom:a,scale:o})}var d=e.object({center:e.object({longitude:e.number().describe("The longitude (x-coordinate) of the point to navigate to."),latitude:e.number().describe("The latitude (y-coordinate) of the point to navigate to.")}),zoom:e.number().optional().describe("The zoom level. Higher values = more zoomed in."),scale:e.number().optional().describe("The map scale. Alternative to zoom. Smaller numbers = more zoomed in.")}),g=n(s,{name:"goToViewpoint",description:"Go to the specified viewpoint. This can contain a combination of scale, center, zoom, etc.",schema:d});return g},"geometry/Point")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k,b as D,c as _}from"./6TO2BYXU.js";import l from"./CVOWIH4J.js";import{a as A}from"./CFBSBZSS.js";import{a as C,c as U}from"./5H6OROJK.js";import"./ILDTKRON.js";import j from"./TJYPEMON.js";import{a as w}from"./NF5AJJQU.js";import i from"./RBGARTND.js";import e from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{f as b}from"./VMQIDO4Z.js";import{b as f}from"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as v}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{K as d,L as I,M as u,Q as R,T as g,h as p,j as c,w as h}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([P,,,{a:$},{q:T},{f:y}])=>{var H=p`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,B=5e3,m=class extends u{constructor(){super(...arguments),this.replacementId=null,this.itemOwnerName="",this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.replacementItemSupportsOpenActions=!1,this.thumbnailUrl=null,this.timer=void 0,this.messages=v({blocking:!0}),this.primaryActionRef=d(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:i})=>{let s=f({portal:e,usePortalHostname:!this.user});return s?`${`${s}/home`}/item.html?id=${t}${i?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.supportsReplacement?"_self":"_blank")},this.canRedirect=!1,this.item=null,this.replacementItem=null,this.redirectAction=null,this.supportsReplacement=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=B/1e3,this.arcgisPortalReplacementItemFetch=h()}static{this.properties={item:16,replacementItem:16,redirectAction:16,supportsReplacement:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=H}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=B/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return k(e)||D(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:i}=this,s=new P({id:e,portal:t});this.item=await s?.load();let n=await T(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),r=n.data?.relatedItems?.[0];this.replacementItemInRecycleBin=r?.inRecycleBin;let l=r?.id,a=!this.replacementItemInRecycleBin&&l?new P({id:l,portal:t}):null;await a?.load(),this.replacementItem=a,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!a&&n.data?.aggregations?.total?.count>0&&n.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:a||null}),this.replacementItem=a;let o=this.replacementItem?.owner??(s?.owner||null);this.itemOwnerName=o?A(await $(o,t),this.messages?._t9nLocale||"en"):"",this.replacementItemSupportsOpenActions=_(a),this.thumbnailUrl=U(t,a??this.item),this.supportsReplacement=!!a&&this.isItemRetired(s);let O=b(this.replacementItem,await y(this.portal),this.portal?.isPortal??!1);this.canRedirect=this.supportsReplacement&&this.replacementItemSupportsOpenActions&&!O,this.replacementId=a?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>i()}),this.open=!0}getReplacementHeading(){let{messages:e,hasInaccessibleReplacementItem:t,canRedirect:i}=this;return t?e.replacementUnavailable:i?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.replacementUnavailable:e.replacementAvailable}getReplacementMessage(){let{messages:e,hasInaccessibleReplacementItem:t,supportsReplacement:i}=this;return t?e.retiredReplacementUnavailable:i?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{messages:e,canRedirect:t,redirectTimeRemaining:i,redirectCancelled:s}=this;return s?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${i}`):e.moreDetails}renderCard(e){let{canRedirect:t,messages:i}=this;return c`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??R} @error=${async()=>this.thumbnailUrl=C(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${i.ownedBy?.replace("${owner}",this.itemOwnerName)}</span>${t&&c`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${i.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,messages:t,item:i,replacementItem:s,supportsReplacement:n,canRedirect:r,redirectCancelled:l}=this;if(!(!i||!this.isItemRetired(i)))return c`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${w(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(n?s:i)}</div>${r&&!l&&c`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),r?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${r?void 0:"launch"} ${I(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};g("arcgis-portal-replacement-item-redirect",m);return m},"portal/PortalItem",a,e,i,j,l)
2
+ import{a as k,b as D,c as _}from"./6TO2BYXU.js";import l from"./CVOWIH4J.js";import{a as C,c as U}from"./N4UNPHFQ.js";import"./ILDTKRON.js";import j from"./TJYPEMON.js";import{a as T}from"./CFBSBZSS.js";import{a as w}from"./ZZBKWWAW.js";import i from"./RBGARTND.js";import e from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{f as b}from"./VMQIDO4Z.js";import{b as f}from"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as v}from"./QQMRZ2WI.js";import"./YFU47LWN.js";import"./UXAGLEJM.js";import{K as d,L as I,M as u,Q as R,T as g,h as p,j as c,w as h}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([P,,,{a:$},{q:A},{f:y}])=>{var H=p`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,B=5e3,m=class extends u{constructor(){super(...arguments),this.replacementId=null,this.itemOwnerName="",this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.replacementItemSupportsOpenActions=!1,this.thumbnailUrl=null,this.timer=void 0,this.messages=v({blocking:!0}),this.primaryActionRef=d(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:i})=>{let s=f({portal:e,usePortalHostname:!this.user});return s?`${`${s}/home`}/item.html?id=${t}${i?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.supportsReplacement?"_self":"_blank")},this.canRedirect=!1,this.item=null,this.replacementItem=null,this.redirectAction=null,this.supportsReplacement=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=B/1e3,this.arcgisPortalReplacementItemFetch=h()}static{this.properties={item:16,replacementItem:16,redirectAction:16,supportsReplacement:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=H}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=B/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return k(e)||D(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:i}=this,s=new P({id:e,portal:t});this.item=await s?.load();let n=await A(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),r=n.data?.relatedItems?.[0];this.replacementItemInRecycleBin=r?.inRecycleBin;let l=r?.id,a=!this.replacementItemInRecycleBin&&l?new P({id:l,portal:t}):null;await a?.load(),this.replacementItem=a,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!a&&n.data?.aggregations?.total?.count>0&&n.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:a||null}),this.replacementItem=a;let o=this.replacementItem?.owner??(s?.owner||null);this.itemOwnerName=o?T(await $(o,t),this.messages?._t9nLocale||"en"):"",this.replacementItemSupportsOpenActions=_(a),this.thumbnailUrl=U(t,a??this.item),this.supportsReplacement=!!a&&this.isItemRetired(s);let O=b(this.replacementItem,await y(this.portal),this.portal?.isPortal??!1);this.canRedirect=this.supportsReplacement&&this.replacementItemSupportsOpenActions&&!O,this.replacementId=a?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>i()}),this.open=!0}getReplacementHeading(){let{messages:e,hasInaccessibleReplacementItem:t,canRedirect:i}=this;return t?e.replacementUnavailable:i?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.replacementUnavailable:e.replacementAvailable}getReplacementMessage(){let{messages:e,hasInaccessibleReplacementItem:t,supportsReplacement:i}=this;return t?e.retiredReplacementUnavailable:i?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{messages:e,canRedirect:t,redirectTimeRemaining:i,redirectCancelled:s}=this;return s?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${i}`):e.moreDetails}renderCard(e){let{canRedirect:t,messages:i}=this;return c`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??R} @error=${async()=>this.thumbnailUrl=C(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${i.ownedBy?.replace("${owner}",this.itemOwnerName)}</span>${t&&c`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${i.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,messages:t,item:i,replacementItem:s,supportsReplacement:n,canRedirect:r,redirectCancelled:l}=this;if(!(!i||!this.isItemRetired(i)))return c`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${w(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(n?s:i)}</div>${r&&!l&&c`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),r?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${r?void 0:"launch"} ${I(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};g("arcgis-portal-replacement-item-redirect",m);return m},"portal/PortalItem",a,e,i,j,l)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a}from"./D4MCG57T.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export{a as resetMapTool};
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./4RPNBHB5.js";import{a as x,b as O}from"./PQ75545K.js";import a from"./37HLLREH.js";import{a as L}from"./S2BGAMSA.js";import{a as e}from"./FWRSYP3I.js";import{Ic as T}from"./DG6DAKQ2.js";export default $arcgis.t(([{a:p,b:g,c:b,d:v,e:R,f:j},{c:N}])=>{var w=25,k=i=>i.flatMap(r=>r.split(",")).map(r=>r.trim()).map(r=>r.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(r=>!!r),E=async(i,r,t,l)=>{let s=r.map?.allLayers.find(u=>u.id===i.layerId),d=await r.whenLayerView(s),f=s.title??i.layerId,h;if(t){let u=await v(t,r);if("error"in u){let o={error:u.error};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"Geometry lookup failed",details:o}}if(!u.geometry){let o={};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.error=`No features found matching: ${t.where}`,o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.error="Failed to create point geometry",o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"No features found for geometry filter",details:o}}h=u.geometry}else l&&(h=r.extent.clone());let C=[...new Set([...i.outFields,...k(i.orderByFields)])],F=x(d,C,l??!1),I=s.objectIdField,a=s.createQuery();a.where=O(s.definitionExpression,i.where||"1=1"),a.outFields=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,I])],a.orderByFields=i.orderByFields,h&&(a.geometry=h,a.spatialRelationship="intersects"),t?.distance&&(a.distance=t.distance),t?.units&&(a.units=t.units),a.outSpatialReference=r.spatialReference;let n,y;try{n=F?await d.queryFeatureCount(a):await s.queryFeatureCount(a),n>0&&n<=w&&(y=F?await d.queryFeatures(a):await s.queryFeatures(a))}catch(u){console.warn("Client-side query failed, falling back to server:",u),n=await s.queryFeatureCount(a),n>0&&n<=w&&(y=await s.queryFeatures(a))}let{objectIds:q,attributes:S}=y?N(s,y,r.timeZone):{objectIds:void 0,attributes:void 0};return{tool:"queryFeatures",layerName:f,summary:`${n} features found`,details:{totalCount:n,where:i.where,orderByFields:i.orderByFields,outFields:i.outFields,...q&&{objectIds:q,objectIdField:I},...S&&{attributes:S},...n>w&&{note:`${n} features found.`}}}};async function W({targetLayer:i,geometryFilter:r,useCurrentExtent:t},l){let{mapView:s}=L(l,["mapView"]),d=j(r,l.state?.agentExecutionContext?.sharedResources),f=await E(i,s,d,t);return JSON.stringify(f,null,2)}var B=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:p.optional().describe("The units for the distance buffer.")}),U=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:p.optional().describe("The units for the distance buffer.")}),D=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("SQL-92 where clause. IMPORTANT: When using geometryFilter.point or geometryFilter.sharedResourceId for point-in-polygon queries, set this to '1=1' to return all features that intersect the point. Only add attribute filters if the user specifically requests them in addition to the spatial query."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([B,U,R]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at', OR when the user refers back to features previously identified using the current extent (e.g. 'these', 'those', 'them', 'the same ones'). Default is false (queries entire layer).")}),H=T(W,{name:"queryFeatures",description:`Queries features from a layer. Returns the total count of matching features, plus individual feature attributes if \u226425 features match.
2
+ import b from"./4RPNBHB5.js";import{a as x,b as O}from"./PQ75545K.js";import a from"./K4LXMVNH.js";import{a as L}from"./S2BGAMSA.js";import{a as e}from"./X4GCKBT2.js";import{Ic as T}from"./ASDS73QU.js";export default $arcgis.t(([{a:p,b:g,c:b,d:v,e:R,f:j},{c:N}])=>{var w=25,k=i=>i.flatMap(r=>r.split(",")).map(r=>r.trim()).map(r=>r.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(r=>!!r),E=async(i,r,t,l)=>{let s=r.map?.allLayers.find(u=>u.id===i.layerId),d=await r.whenLayerView(s),f=s.title??i.layerId,h;if(t){let u=await v(t,r);if("error"in u){let o={error:u.error};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"Geometry lookup failed",details:o}}if(!u.geometry){let o={};if(b(t)){let c=r.map?.allLayers.find(m=>m.id===t.layerId);o.error=`No features found matching: ${t.where}`,o.geometryLayerName=c?.title??c?.id,o.geometryLayerId=t.layerId,o.geometryWhere=t.where}else g(t)&&(o.error="Failed to create point geometry",o.point=t.point);return{tool:"queryFeatures",layerName:f,summary:"No features found for geometry filter",details:o}}h=u.geometry}else l&&(h=r.extent.clone());let C=[...new Set([...i.outFields,...k(i.orderByFields)])],F=x(d,C,l??!1),I=s.objectIdField,a=s.createQuery();a.where=O(s.definitionExpression,i.where||"1=1"),a.outFields=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,I])],a.orderByFields=i.orderByFields,h&&(a.geometry=h,a.spatialRelationship="intersects"),t?.distance&&(a.distance=t.distance),t?.units&&(a.units=t.units),a.outSpatialReference=r.spatialReference;let n,y;try{n=F?await d.queryFeatureCount(a):await s.queryFeatureCount(a),n>0&&n<=w&&(y=F?await d.queryFeatures(a):await s.queryFeatures(a))}catch(u){console.warn("Client-side query failed, falling back to server:",u),n=await s.queryFeatureCount(a),n>0&&n<=w&&(y=await s.queryFeatures(a))}let{objectIds:q,attributes:S}=y?N(s,y,r.timeZone):{objectIds:void 0,attributes:void 0};return{tool:"queryFeatures",layerName:f,summary:`${n} features found`,details:{totalCount:n,where:i.where,orderByFields:i.orderByFields,outFields:i.outFields,...q&&{objectIds:q,objectIdField:I},...S&&{attributes:S},...n>w&&{note:`${n} features found.`}}}};async function W({targetLayer:i,geometryFilter:r,useCurrentExtent:t},l){let{mapView:s}=L(l,["mapView"]),d=j(r,l.state?.agentExecutionContext?.sharedResources),f=await E(i,s,d,t);return JSON.stringify(f,null,2)}var B=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:p.optional().describe("The units for the distance buffer.")}),U=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:p.optional().describe("The units for the distance buffer.")}),D=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("SQL-92 where clause. IMPORTANT: When using geometryFilter.point or geometryFilter.sharedResourceId for point-in-polygon queries, set this to '1=1' to return all features that intersect the point. Only add attribute filters if the user specifically requests them in addition to the spatial query."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([B,U,R]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at', OR when the user refers back to features previously identified using the current extent (e.g. 'these', 'those', 'them', 'the same ones'). Default is false (queries entire layer).")}),H=T(W,{name:"queryFeatures",description:`Queries features from a layer. Returns the total count of matching features, plus individual feature attributes if \u226425 features match.
3
3
 
4
4
  USE THIS TOOL FOR:
5
5
  - "Show / display / list features where..." \u2014 finding and listing features
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./625YOS7Q.js";import a from"./7EPXWK4L.js";import"./7NZ3RJFV.js";import{M as o,T as s,j as e,w as r}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([,{c:n}])=>{var c=960,i=class extends o{constructor(){super(...arguments),this.options=[],this.view="",this.viewText="View",this.store=n(),this.arcgisBrowserViewChange=r()}static{this.properties={options:0,view:1,viewText:1,store:0}}renderOption(t){return e`<calcite-dropdown-item .selected=${t.value===this.view} @calciteDropdownItemSelect=${()=>{this.arcgisBrowserViewChange.emit(t.value)}} .iconStart=${t.value} icon-flip-rtl=start>${t.title}</calcite-dropdown-item>`}renderButton(){let t=this.options.find(a=>a.value===this.view),l=this.store.width||window.innerWidth;return e`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral .iconStart=${t?.value} icon-flip-rtl=start .label=${`${this.viewText}: ${t?.title||""}`}>${l>c?t?.title:null}</calcite-button>`}render(){return e`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=s>${this.renderButton()}<calcite-dropdown-group selection-mode=single>${this.options.map(t=>this.renderOption(t))}</calcite-dropdown-group></calcite-dropdown>`}};s("arcgis-portal-browser-view",i);return i},a,b)
2
+ import b from"./IMIQY3MT.js";import a from"./ICUDZDC6.js";import"./UXAGLEJM.js";import{M as o,T as s,j as e,w as r}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([,{c:n}])=>{var c=960,i=class extends o{constructor(){super(...arguments),this.options=[],this.view="",this.viewText="View",this.store=n(),this.arcgisBrowserViewChange=r()}static{this.properties={options:0,view:1,viewText:1,store:0}}renderOption(t){return e`<calcite-dropdown-item .selected=${t.value===this.view} @calciteDropdownItemSelect=${()=>{this.arcgisBrowserViewChange.emit(t.value)}} .iconStart=${t.value} icon-flip-rtl=start>${t.title}</calcite-dropdown-item>`}renderButton(){let t=this.options.find(a=>a.value===this.view),l=this.store.width||window.innerWidth;return e`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral .iconStart=${t?.value} icon-flip-rtl=start .label=${`${this.viewText}: ${t?.title||""}`}>${l>c?t?.title:null}</calcite-button>`}render(){return e`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=s>${this.renderButton()}<calcite-dropdown-group selection-mode=single>${this.options.map(t=>this.renderOption(t))}</calcite-dropdown-group></calcite-dropdown>`}};s("arcgis-portal-browser-view",i);return i},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as g}from"./JZID64Z6.js";import{a as f}from"./KYNL256E.js";import{a as m}from"./H4TRF2G7.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as d}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{M as h,T as p,j as n,w as a}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([{substitute:o}])=>{var l=class extends h{constructor(){super(...arguments),this.messages=d({blocking:!0,name:"portal-account-switcher"}),this.tipReference=null,this.tooltipText="",this.linkedAccounts=[],this.interactive=!1,this.signedInUsers=[],this.accountAccess={},this.actions=[],this.arcgisAccountSwitch=a(),this.arcgisAccountUnlink=a()}static{this.properties={tipReference:16,tooltipText:16,portal:0,linkedAccounts:0,interactive:5,signedInUsers:0,accountAccess:0,actions:0}}static{this.styles=m}connectedCallback(){super.connectedCallback(),this.interactive&&this.actions.length===0?this.actions=["switch","unlink"]:this.interactive||(this.actions=[])}formatProvider(i){if(i.startsWith("oidc_"))return"OpenID";switch(i){case"arcgis":return"ArcGIS";case"enterprise":return"SAML";case"apple":return"Apple";case"facebook":return"Facebook";case"github":return"GitHub";case"google":return"Google";default:return"Unknown"}}formatProviderLabel(i){let{messages:e}=this;if(i.startsWith("oidc_"))return e.oidcProvider;switch(i){case"arcgis":return e.arcgisProvider;case"enterprise":return e.samlProvider;case"apple":return e.appleProvider;case"facebook":return e.facebookProvider;case"github":return e.githubProvider;case"google":return e.googleProvider;default:return"Account provider"}}formatSwitchToLabel(i,e,c=!0){let{messages:s}=this;return i.disabled?s.userDisabled:e[i.username]?.allowed??!0?c?i.orgName?o(s.switchToOrgUser,i):o(s.switchToPublicUser,i):s.switchTo:s.userNotAllowed}render(){let{linkedAccounts:i,messages:e,accountAccess:c,interactive:s,portal:$,actions:u}=this;return n`${g(i,t=>t.id??t.username,t=>n`<calcite-block .label=${t.orgName?`${t.username}, ${t.orgName}`:t.username} heading-level=4 .heading=${t.username} .description=${t.orgName?`${t.fullname}, ${t.orgName}`:t.fullname} class="linked-account"><calcite-avatar slot=content-start inert .fullName=${t.fullname} .username=${t.username} .userId=${t.id} .thumbnail=${f({fullName:t.fullname,...t},$)??void 0}></calcite-avatar><calcite-chip slot=content-end kind=neutral scale=s .label=${this.formatProviderLabel(t.provider)} class="provider-chip" @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatProviderLabel(t.provider)}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}}>${this.formatProvider(t.provider)}</calcite-chip>${s&&n`${u.includes("unlink")&&n`<calcite-button appearance=transparent slot=actions-end kind=danger icon-start=unlink .label=${o(t.orgName?e.unlinkOrgUser:e.unlinkPublicUser,t)} .id=${`unlink-${t.username}`} @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=e.unlinkAccount}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}} @focusin=${r=>{this.tipReference=r.currentTarget,this.tooltipText=e.unlinkAccount}} @focusout=${()=>{this.tipReference=null,this.tooltipText=""}} @click=${r=>{r.preventDefault(),this.arcgisAccountUnlink.emit({account:t})}}></calcite-button>`||""}${u.includes("switch")&&n`<calcite-button appearance=transparent slot=actions-end kind=neutral icon-start=sign-in .label=${this.formatSwitchToLabel(t,c)} .disabled=${t.disabled||!(c[t.username]?.allowed??!0)} .id=${`switch-${t.username}`} @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatSwitchToLabel(t,c,!1)}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}} @focusin=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatSwitchToLabel(t,c,!1)}} @focusout=${()=>{this.tipReference=null,this.tooltipText=""}} @click=${r=>{r.preventDefault(),this.arcgisAccountSwitch.emit({account:t})}}></calcite-button>`||""}`||""}</calcite-block>`)}<calcite-tooltip .open=${!!this.tipReference} .referenceElement=${this.tipReference}>${this.tooltipText}</calcite-tooltip>`}};p("arcgis-portal-account-switcher-list",l);return l},"intl")
2
+ import{a as g}from"./EXPBHQ4I.js";import{a as f}from"./KYNL256E.js";import{a as m}from"./PWHUWOQ3.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as d}from"./QQMRZ2WI.js";import"./YFU47LWN.js";import"./UXAGLEJM.js";import{M as h,T as p,j as n,w as a}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([{substitute:o}])=>{var l=class extends h{constructor(){super(...arguments),this.messages=d({blocking:!0,name:"portal-account-switcher"}),this.tipReference=null,this.tooltipText="",this.linkedAccounts=[],this.interactive=!1,this.signedInUsers=[],this.accountAccess={},this.actions=[],this.arcgisAccountSwitch=a(),this.arcgisAccountUnlink=a()}static{this.properties={tipReference:16,tooltipText:16,portal:0,linkedAccounts:0,interactive:5,signedInUsers:0,accountAccess:0,actions:0}}static{this.styles=m}connectedCallback(){super.connectedCallback(),this.interactive&&this.actions.length===0?this.actions=["switch","unlink"]:this.interactive||(this.actions=[])}formatProvider(i){if(i.startsWith("oidc_"))return"OpenID";switch(i){case"arcgis":return"ArcGIS";case"enterprise":return"SAML";case"apple":return"Apple";case"facebook":return"Facebook";case"github":return"GitHub";case"google":return"Google";default:return"Unknown"}}formatProviderLabel(i){let{messages:e}=this;if(i.startsWith("oidc_"))return e.oidcProvider;switch(i){case"arcgis":return e.arcgisProvider;case"enterprise":return e.samlProvider;case"apple":return e.appleProvider;case"facebook":return e.facebookProvider;case"github":return e.githubProvider;case"google":return e.googleProvider;default:return"Account provider"}}formatSwitchToLabel(i,e,c=!0){let{messages:s}=this;return i.disabled?s.userDisabled:e[i.username]?.allowed??!0?c?i.orgName?o(s.switchToOrgUser,i):o(s.switchToPublicUser,i):s.switchTo:s.userNotAllowed}render(){let{linkedAccounts:i,messages:e,accountAccess:c,interactive:s,portal:$,actions:u}=this;return n`${g(i,t=>t.id??t.username,t=>n`<calcite-block .label=${t.orgName?`${t.username}, ${t.orgName}`:t.username} heading-level=4 .heading=${t.username} .description=${t.orgName?`${t.fullname}, ${t.orgName}`:t.fullname} class="linked-account"><calcite-avatar slot=content-start inert .fullName=${t.fullname} .username=${t.username} .userId=${t.id} .thumbnail=${f({fullName:t.fullname,...t},$)??void 0}></calcite-avatar><calcite-chip slot=content-end kind=neutral scale=s .label=${this.formatProviderLabel(t.provider)} class="provider-chip" @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatProviderLabel(t.provider)}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}}>${this.formatProvider(t.provider)}</calcite-chip>${s&&n`${u.includes("unlink")&&n`<calcite-button appearance=transparent slot=actions-end kind=danger icon-start=unlink .label=${o(t.orgName?e.unlinkOrgUser:e.unlinkPublicUser,t)} .id=${`unlink-${t.username}`} @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=e.unlinkAccount}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}} @focusin=${r=>{this.tipReference=r.currentTarget,this.tooltipText=e.unlinkAccount}} @focusout=${()=>{this.tipReference=null,this.tooltipText=""}} @click=${r=>{r.preventDefault(),this.arcgisAccountUnlink.emit({account:t})}}></calcite-button>`||""}${u.includes("switch")&&n`<calcite-button appearance=transparent slot=actions-end kind=neutral icon-start=sign-in .label=${this.formatSwitchToLabel(t,c)} .disabled=${t.disabled||!(c[t.username]?.allowed??!0)} .id=${`switch-${t.username}`} @mouseenter=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatSwitchToLabel(t,c,!1)}} @mouseleave=${()=>{this.tipReference=null,this.tooltipText=""}} @focusin=${r=>{this.tipReference=r.currentTarget,this.tooltipText=this.formatSwitchToLabel(t,c,!1)}} @focusout=${()=>{this.tipReference=null,this.tooltipText=""}} @click=${r=>{r.preventDefault(),this.arcgisAccountSwitch.emit({account:t})}}></calcite-button>`||""}`||""}</calcite-block>`)}<calcite-tooltip .open=${!!this.tipReference} .referenceElement=${this.tipReference}>${this.tooltipText}</calcite-tooltip>`}};p("arcgis-portal-account-switcher-list",l);return l},"intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./XVXUI2NM.js";import"./5R5O2X3M.js";import b from"./7EPXWK4L.js";import a from"./F3ODJVJC.js";import{a as f}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{M as n,P as c,T as l,h as e,j as s,q as o}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([,,{a:d,b:h}])=>{var p=e`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`,r=class extends n{constructor(){super(...arguments),this.classificationModel=d(this),this.messages=f(),this._classificationDataTask=h(this),this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.status=this.classificationModel.status,this.missingExistingClassification=!1,this.variant="full",this.autoDestroyDisabled=!1,this.validationErrors=""}static{this.properties={portalClassificationSchema:16,status:16,itemClassification:16,portalItem:0,missingExistingClassification:5,variant:1,autoDestroyDisabled:5,validationErrors:1}}static{this.styles=p}async destroy(){await this.manager.destroy()}willUpdate(a){if(a.has("portalItem")){let{portalItem:i}=this;i?.load().then(()=>{i?.id&&i?.loaded&&i?.classification&&!this.missingExistingClassification?this.classificationModel.validateClassification(this.variant==="preview"?null:i.id,i.classification,i?.portal.restUrl).catch(o(this)).then(t=>{this.validationErrors=t??""}):this.validationErrors=""}).catch(o(this))}}getStyle(){let a={};if(this.variant==="preview"&&(a.fontSize="var(--calcite-font-size-sm)",a.padding="var(--calcite-spacing-xs)"),this.itemClassification&&this.portalClassificationSchema){let i=this.itemClassification.classification,t=this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({value:m})=>m===i);t?.backgroundColor&&(a.backgroundColor=t.backgroundColor),t?.textColor&&(a.color=t.textColor)}return a}render(){return this._classificationDataTask.render({pending:void 0,error:void 0,complete:()=>this.portalClassificationSchema&&this.portalItem?.portal.authMode!=="anonymous"?this.validationErrors&&this.variant==="full"?s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>`:s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner??this.messages.notyetclassified??"Not yet classified"}</div>`:""})}};l("arcgis-portal-classification-banner",r);return r},a,b,d)
2
+ import d from"./2B2T3CO3.js";import"./BQKUF5EQ.js";import b from"./ICUDZDC6.js";import a from"./F3ODJVJC.js";import{a as f}from"./QQMRZ2WI.js";import"./YFU47LWN.js";import"./UXAGLEJM.js";import{M as n,P as c,T as l,h as e,j as s,q as o}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([,,{a:d,b:h}])=>{var p=e`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`,r=class extends n{constructor(){super(...arguments),this.classificationModel=d(this),this.messages=f(),this._classificationDataTask=h(this),this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.status=this.classificationModel.status,this.missingExistingClassification=!1,this.variant="full",this.autoDestroyDisabled=!1,this.validationErrors=""}static{this.properties={portalClassificationSchema:16,status:16,itemClassification:16,portalItem:0,missingExistingClassification:5,variant:1,autoDestroyDisabled:5,validationErrors:1}}static{this.styles=p}async destroy(){await this.manager.destroy()}willUpdate(a){if(a.has("portalItem")){let{portalItem:i}=this;i?.load().then(()=>{i?.id&&i?.loaded&&i?.classification&&!this.missingExistingClassification?this.classificationModel.validateClassification(this.variant==="preview"?null:i.id,i.classification,i?.portal.restUrl).catch(o(this)).then(t=>{this.validationErrors=t??""}):this.validationErrors=""}).catch(o(this))}}getStyle(){let a={};if(this.variant==="preview"&&(a.fontSize="var(--calcite-font-size-sm)",a.padding="var(--calcite-spacing-xs)"),this.itemClassification&&this.portalClassificationSchema){let i=this.itemClassification.classification,t=this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({value:m})=>m===i);t?.backgroundColor&&(a.backgroundColor=t.backgroundColor),t?.textColor&&(a.color=t.textColor)}return a}render(){return this._classificationDataTask.render({pending:void 0,error:void 0,complete:()=>this.portalClassificationSchema&&this.portalItem?.portal.authMode!=="anonymous"?this.validationErrors&&this.variant==="full"?s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>`:s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner??this.messages.notyetclassified??"Not yet classified"}</div>`:""})}};l("arcgis-portal-classification-banner",r);return r},a,b,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./OEMNHYK6.js";import{c as B,d as L}from"./4QA4AYHJ.js";import{a as C}from"./CFBSBZSS.js";import{a as N}from"./NF5AJJQU.js";import{a as y}from"./OBBYT2AV.js";import"./DFTUMKSN.js";import d from"./RBGARTND.js";import c from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{a as w}from"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as A}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{K as g,L as b,M as O,O as $,P,T as R,h as x,j as n,w as v}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([{a:_,b:k},,{a:d},z])=>{var S=x`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`,q=a=>a?.sourceJSON?.contentStatus==="public_authoritative";async function G(a,t,o,r){if(q(a)){let e=a.owner||"",i=await z(a,o,t,r);if(!i)return await d(e,t,r);let{description:s,name:l,thumbnail:u,url:p}=i;return{description:s?y(s):"",fullName:l,username:e,thumbnail:u,id:a.portal.id,url:p}}return await d(a.owner||"",t,r)}async function H(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>await k({url:`${r}community/groups`,portal:t,params:{q:`(owner:"${a}")`,num:100},options:e}),key:"userGroups",id:a})}async function J(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>(await k({url:`${r}search`,portal:t,params:{q:`(owner:"${a}") -typekeywords:"recyclebin"`,num:1},options:e})).total,key:"userItemsTotal",id:a})}function M({baseUrl:a,user:t,type:o}){let r=L(a),e=encodeURIComponent(t.username||"");return e?`${r}/${o}.html?user=${e}`:`${r}/${o}.html`}var U=class extends O{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.buttonRef=g(),this.popoverRef=g(),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=v(),this.arcgisUserPopupClose=v()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=S}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.init()}updated(t){t.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||`${this.portal.url}/home`}async init(){let{item:t,username:o,portal:r,fullName:e,messages:i}=this;if(!(!i._lang||!r)){if(t){this.itemUserInfo=await G(t,r,i._lang,this.checkOnline);return}if(o){let s=await d(o,r,this.checkOnline);!s.fullName&&e&&(s.fullName=e),this.itemUserInfo=s}}}async fetchItemsAndGroups(){let{user:t,itemUserInfo:o,item:r,portal:e,username:i,checkOnline:s}=this,l=i||t?.username||r?.owner||o?.username;if(!(!l||!e)){if(!this.groups){let u=await H(l,e,s);this.groups=u}this.total=await J(l,e,s)}}setPopoverOpen(t){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=t)})}openLink(t,o){t.preventDefault(),window.open(o,"_blank")}renderOrgButtons(t){let{messages:o}=this,r=(t.url||this.resolvedBaseUrl).replace(/\/$/u,"");return n`<calcite-button appearance=outline-fill kind=neutral .href=${r} target=_blank @click=${e=>this.openLink(e,r)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${r}/gallery.html`} target=_blank @click=${e=>this.openLink(e,`${r}/gallery.html`)}>${o.gallery}</calcite-button>`}renderUserButtons(t){let{total:o,groups:r,messages:e}=this,i=t.username||"";if(typeof o!="number"||!r)return n`<calcite-loader .label=${e.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let s=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"groups"}),l=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"content"}),u=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(i)}`;return n`${!!r.total&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${s} target=_blank @click=${p=>{this.openLink(p,s),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${e.groups.replace("${number}",new Intl.NumberFormat(e._lang).format(r.total))}</calcite-button>`||""}${!!o&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${p=>{this.openLink(p,l),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${e.items.replace("${number}",new Intl.NumberFormat(e._lang).format(o))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${u} target=_blank @click=${p=>{this.openLink(p,u),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${e.profile}</calcite-button>`}render(){let{user:t,itemUserInfo:o,portal:r,item:e,appearance:i,scale:s,isPopoverOpen:l,showName:u,showUsername:p,messages:f}=this,c=t||o;if(!f._lang||!c)return n`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let I=q(e),m=c.username||"",h=B(c.description||"")||"",T=C(c,f._lang),E=I?f.itemManagedBy.replace("${username}",m):m;return n`<button class=${$({button:!0,"button--outline":i==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${b(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${s} .portal=${r} .showName=${u} .description=${p?m:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${l&&this.buttonRef.value&&c&&n`<calcite-popover class="popover" .label=${T} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${m}-popover`} auto-close style=${P({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${F=>{F.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${b(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${r} show-name .description=${E} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h&&n`<p class="popover__description">${N(y(h))}</p>`||""}${!!h&&n`<div class="popover__fade"></div>`||""}<div class=${$({popover__buttons:!0,"popover__buttons--no-description":!h})}>${I?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};R("arcgis-portal-user-popup",U);return U},a,c,d,e)
2
+ import e from"./OEMNHYK6.js";import{c as L,d as C}from"./4QA4AYHJ.js";import{a as B}from"./CFBSBZSS.js";import{a as N}from"./ZZBKWWAW.js";import{a as y}from"./OBBYT2AV.js";import"./DFTUMKSN.js";import d from"./RBGARTND.js";import c from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import{a as w}from"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as A}from"./QQMRZ2WI.js";import"./YFU47LWN.js";import"./UXAGLEJM.js";import{K as g,L as b,M as O,O as $,P,T as R,h as x,j as n,w as v}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([{a:_,b:k},,{a:d},z])=>{var S=x`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`,q=a=>a?.sourceJSON?.contentStatus==="public_authoritative";async function G(a,t,o,r){if(q(a)){let e=a.owner||"",i=await z(a,o,t,r);if(!i)return await d(e,t,r);let{description:s,name:l,thumbnail:u,url:p}=i;return{description:s?y(s):"",fullName:l,username:e,thumbnail:u,id:a.portal.id,url:p}}return await d(a.owner||"",t,r)}async function H(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>await k({url:`${r}community/groups`,portal:t,params:{q:`(owner:"${a}")`,num:100},options:e}),key:"userGroups",id:a})}async function J(a,t,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(t),e=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await _({requester:async()=>(await k({url:`${r}search`,portal:t,params:{q:`(owner:"${a}") -typekeywords:"recyclebin"`,num:1},options:e})).total,key:"userItemsTotal",id:a})}function M({baseUrl:a,user:t,type:o}){let r=C(a),e=encodeURIComponent(t.username||"");return e?`${r}/${o}.html?user=${e}`:`${r}/${o}.html`}var U=class extends O{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.buttonRef=g(),this.popoverRef=g(),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=v(),this.arcgisUserPopupClose=v()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=S}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.init()}updated(t){t.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||`${this.portal.url}/home`}async init(){let{item:t,username:o,portal:r,fullName:e,messages:i}=this;if(!(!i._lang||!r)){if(t){this.itemUserInfo=await G(t,r,i._lang,this.checkOnline);return}if(o){let s=await d(o,r,this.checkOnline);!s.fullName&&e&&(s.fullName=e),this.itemUserInfo=s}}}async fetchItemsAndGroups(){let{user:t,itemUserInfo:o,item:r,portal:e,username:i,checkOnline:s}=this,l=i||t?.username||r?.owner||o?.username;if(!(!l||!e)){if(!this.groups){let u=await H(l,e,s);this.groups=u}this.total=await J(l,e,s)}}setPopoverOpen(t){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=t)})}openLink(t,o){t.preventDefault(),window.open(o,"_blank")}renderOrgButtons(t){let{messages:o}=this,r=(t.url||this.resolvedBaseUrl).replace(/\/$/u,"");return n`<calcite-button appearance=outline-fill kind=neutral .href=${r} target=_blank @click=${e=>this.openLink(e,r)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${r}/gallery.html`} target=_blank @click=${e=>this.openLink(e,`${r}/gallery.html`)}>${o.gallery}</calcite-button>`}renderUserButtons(t){let{total:o,groups:r,messages:e}=this,i=t.username||"";if(typeof o!="number"||!r)return n`<calcite-loader .label=${e.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let s=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"groups"}),l=M({baseUrl:this.resolvedBaseUrl,user:{username:i},type:"content"}),u=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(i)}`;return n`${!!r.total&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${s} target=_blank @click=${p=>{this.openLink(p,s),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${e.groups.replace("${number}",new Intl.NumberFormat(e._lang).format(r.total))}</calcite-button>`||""}${!!o&&n`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${p=>{this.openLink(p,l),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${e.items.replace("${number}",new Intl.NumberFormat(e._lang).format(o))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${u} target=_blank @click=${p=>{this.openLink(p,u),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${e.profile}</calcite-button>`}render(){let{user:t,itemUserInfo:o,portal:r,item:e,appearance:i,scale:s,isPopoverOpen:l,showName:u,showUsername:p,messages:f}=this,c=t||o;if(!f._lang||!c)return n`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let I=q(e),m=c.username||"",h=L(c.description||"")||"",T=B(c,f._lang),E=I?f.itemManagedBy.replace("${username}",m):m;return n`<button class=${$({button:!0,"button--outline":i==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${b(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${s} .portal=${r} .showName=${u} .description=${p?m:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${l&&this.buttonRef.value&&c&&n`<calcite-popover class="popover" .label=${T} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${m}-popover`} auto-close style=${P({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${F=>{F.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${b(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${r} show-name .description=${E} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h&&n`<p class="popover__description">${N(y(h))}</p>`||""}${!!h&&n`<div class="popover__fade"></div>`||""}<div class=${$({popover__buttons:!0,"popover__buttons--no-description":!h})}>${I?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};R("arcgis-portal-user-popup",U);return U},a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as f}from"./5H6OROJK.js";import{a as g}from"./ILDTKRON.js";import{b as _}from"./QS3GXAIH.js";import{K as d,L as n,M as w,O as p,Q as o,T as u,h as v,j as r,w as l}from"./N5KMTTYL.js";export default $arcgis.t(([{formatDate:y}])=>{var $=v`:host{display:block;min-width:0;container-type:inline-size}.preview-card{position:relative;display:flex;width:100%;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-3);transition:background-color .15s ease-in-out,opacity .15s ease-in-out}.preview-card--loaded{opacity:1}.preview-card--hoverable{cursor:pointer}.preview-card--hoverable .preview-card__upper:hover{background-color:var(--calcite-color-background)}.preview-card__upper{display:flex;align-items:stretch;min-width:0;flex:1 1 auto;padding:.75rem;background-color:var(--calcite-color-foreground-1)}.preview-card__upper--link{color:var(--calcite-color-text-1);text-decoration:none}.preview-card__top{display:flex;align-self:stretch;flex:0 0 auto}.preview-card__thumbnail{box-sizing:border-box;display:grid;place-items:center;width:4rem;height:100%;margin:0;margin-inline-start:.75rem;border-radius:2px;overflow:hidden;background-color:var(--calcite-color-foreground-2)}.preview-card__thumbnail-image{width:100%;height:100%;object-fit:cover}.preview-card__thumbnail--fallback{color:var(--calcite-color-text-3)}.preview-card__content{min-width:0;flex:1 1 auto}.preview-card__body{display:grid;min-width:0;gap:.25rem}.preview-card__title{margin:0;height:2rem;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.preview-card__title--padded{margin-bottom:.125rem}.preview-card__title-span{position:relative}.preview-card__summary{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);line-height:1.35;margin:0;overflow:hidden;text-overflow:ellipsis}.preview-card__details{align-items:center;display:flex;flex-wrap:wrap;gap:.25rem}.preview-card__detail,.preview-card__meta{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2);margin:0}.preview-card__meta{color:var(--calcite-color-text-2)}.preview-card__status{--calcite-chip-background-color: var(--calcite-color-foreground-2);text-transform:capitalize}.preview-card__divider{align-items:center;display:flex;flex:0 0 auto}.preview-card__divider:before{content:"";height:1rem;width:1px;margin-inline-end:.5rem;background-color:var(--calcite-color-border-2)}.preview-card__details :first-child.preview-card__divider:before{display:none}.preview-card__footer{align-items:center;border-top:1px solid var(--calcite-color-border-2);display:flex;margin-top:auto;min-height:2.25rem;padding:.375rem .75rem}.preview-card__footer-start{align-items:center;display:flex;flex:1 1 auto;min-width:0}.preview-card__owner{min-width:0}@container (max-width: 480px){.preview-card__upper{padding:.625rem}.preview-card__thumbnail{width:3.5rem;margin-inline-start:.5rem}.preview-card__footer{padding:.25rem .625rem}}`,h=class extends w{constructor(){super(...arguments),this.sectionEl=d(),this.linkEl=d(),this.cachedOwner="",this.cachedStatus="",this.cachedTitle="-",this.cachedType="-",this.cachedSummary="",this.cachedUpdatedText="",this.cachedThumbnailUri=null,this.handleCardClick=()=>{let{link:e,item:t}=this;e||this.arcgisGroupBrowserPreviewCardSelect.emit(t)},this.isLoaded=!1,this.imageError=!1,this.newTab=!1,this.hideThumbnail=!1,this.hideOwner=!1,this.hideItemType=!1,this.showDateUpdated=!1,this.showSummary=!1,this.showBadges=!1,this.showOwnerPopup=!1,this.interactive=!1,this.arcgisGroupBrowserInternalUIAction=l(),this.arcgisGroupBrowserPreviewCardSelect=l()}static{this.properties={isLoaded:16,imageError:16,item:0,portal:0,user:0,baseUrl:1,link:1,newTab:5,hideThumbnail:5,hideOwner:5,hideItemType:5,showDateUpdated:5,showSummary:5,showBadges:5,showOwnerPopup:5,interactive:5}}static{this.styles=$}async restoreFocus(){if(this.link&&this.linkEl.value){this.linkEl.value.focus();return}this.sectionEl.value?.focus()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isLoaded=!0})}willUpdate(e){(e.has("item")||e.has("portal")||e.has("showSummary")||e.has("showDateUpdated"))&&(this.imageError=!1,this.updateCachedItemData())}get resolvedBaseUrl(){if(!this.portal)return"";let e=_({portal:this.portal});return this.baseUrl||`${e}/home`}getItemThumbnailUri(e){return e.thumbnailUrl?e.thumbnailUrl:this.portal?f(this.portal,e):null}updateCachedItemData(){let{item:e,showSummary:t,showDateUpdated:s}=this,i=g(e),a=i.snippet?.trim()||"";this.cachedOwner=i.owner||"",this.cachedStatus=i.contentStatus||"",this.cachedTitle=i.title?.trim()||e.title?.trim()||"-",this.cachedType=i.type?.trim()||"-",this.cachedSummary=t?a.length>250?`${a.slice(0,250)}...`:a:"",this.cachedUpdatedText=s?y(i.modified??e.modified,{dateStyle:"medium"}):"",this.cachedThumbnailUri=this.getItemThumbnailUri(e)}renderStatusBadge(){let e=this.cachedStatus;return!this.showBadges||!e?null:r`<calcite-chip class="preview-card__status" scale=s .value=${e} .label=${e}>${e}</calcite-chip>`}renderThumbnail(){if(this.hideThumbnail)return null;let e=this.cachedThumbnailUri;return e&&!this.imageError?r`<figure class="preview-card__thumbnail"><img class="preview-card__thumbnail-image" src=${e??o} alt @error=${()=>{this.imageError=!0}}></figure>`:r`<figure class="preview-card__thumbnail preview-card__thumbnail--fallback" aria-hidden=true><calcite-icon icon=file scale=m></calcite-icon></figure>`}renderOwner(){let e=this.cachedOwner;return this.hideOwner||!e||!this.portal?null:this.showOwnerPopup?r`<arcgis-portal-user-popup underline .username=${e} .portal=${this.portal} .baseUrl=${this.resolvedBaseUrl} class="preview-card__owner" scale=s @arcgisUserPopupInternalUIAction=${t=>{t.stopPropagation(),this.arcgisGroupBrowserInternalUIAction.emit(t.detail)}}></arcgis-portal-user-popup>`:r`<arcgis-portal-user-avatar scale=s show-name hide-avatar .username=${e} .portal=${this.portal} class="preview-card__owner"></arcgis-portal-user-avatar>`}renderBody(e){let{showSummary:t,showDateUpdated:s}=this,i=!this.hideItemType,a=this.cachedTitle,b=this.cachedType,c=this.cachedSummary,m=this.cachedUpdatedText;return r`<div class="preview-card__body"><h3 class=${p({"preview-card__title":!0,"preview-card__title--padded":i||t&&!!c})}><span class="preview-card__title-span">${a}</span></h3>${t&&c?r`<p class="preview-card__summary">${c}</p>`:null}${i?r`<arcgis-portal-item-type scale=s .item=${e} .portal=${this.portal} .user=${this.user}></arcgis-portal-item-type>`:null}<div class="preview-card__details">${s&&m?r`<span class="preview-card__detail preview-card__divider">${m}</span>`:null}${this.renderStatusBadge()}${i?null:r`<p class="preview-card__meta">${b}</p>`}</div></div>`}render(){let{item:e,interactive:t,link:s,newTab:i}=this;return r`<section class=${p({"preview-card":!0,"preview-card--hoverable":t,"preview-card--loaded":this.isLoaded})} .part=${"card"} tabindex=${(t?0:void 0)??o} @click=${s?void 0:this.handleCardClick} ${n(this.sectionEl)}><slot name=content-top></slot>${s?r`<a class="preview-card__upper preview-card__upper--link" href=${s??o} target=${(i?"_blank":void 0)??o} rel=${(i?"noopener noreferrer":void 0)??o} ${n(this.linkEl)}>${r`<div class="preview-card__content">${this.renderBody(e)}</div><div class="preview-card__top">${this.renderThumbnail()}</div>`}</a>`:r`<div class="preview-card__upper"><div class="preview-card__content">${this.renderBody(e)}</div><div class="preview-card__top">${this.renderThumbnail()}</div></div>`}<div class="preview-card__footer" @click=${a=>{a.stopPropagation()}} @keydown=${a=>{(a.key==="Enter"||a.key===" ")&&a.stopPropagation()}}><div class="preview-card__footer-start">${this.renderOwner()}</div><slot name=actions-end></slot></div></section>`}};u("arcgis-portal-group-browser-preview-card",h);return h},"intl")
2
+ import{c as f}from"./N4UNPHFQ.js";import{a as g}from"./ILDTKRON.js";import{b as _}from"./QS3GXAIH.js";import{K as d,L as n,M as w,O as p,Q as o,T as u,h as v,j as r,w as l}from"./OTMC7MVD.js";export default $arcgis.t(([{formatDate:y}])=>{var $=v`:host{display:block;min-width:0;container-type:inline-size}.preview-card{position:relative;display:flex;width:100%;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-3);transition:background-color .15s ease-in-out,opacity .15s ease-in-out}.preview-card--loaded{opacity:1}.preview-card--hoverable{cursor:pointer}.preview-card--hoverable .preview-card__upper:hover{background-color:var(--calcite-color-background)}.preview-card__upper{display:flex;align-items:stretch;min-width:0;flex:1 1 auto;padding:.75rem;background-color:var(--calcite-color-foreground-1)}.preview-card__upper--link{color:var(--calcite-color-text-1);text-decoration:none}.preview-card__top{display:flex;align-self:stretch;flex:0 0 auto}.preview-card__thumbnail{box-sizing:border-box;display:grid;place-items:center;width:4rem;height:100%;margin:0;margin-inline-start:.75rem;border-radius:2px;overflow:hidden;background-color:var(--calcite-color-foreground-2)}.preview-card__thumbnail-image{width:100%;height:100%;object-fit:cover}.preview-card__thumbnail--fallback{color:var(--calcite-color-text-3)}.preview-card__content{min-width:0;flex:1 1 auto}.preview-card__body{display:grid;min-width:0;gap:.25rem}.preview-card__title{margin:0;height:2rem;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium);line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.preview-card__title--padded{margin-bottom:.125rem}.preview-card__title-span{position:relative}.preview-card__summary{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2);line-height:1.35;margin:0;overflow:hidden;text-overflow:ellipsis}.preview-card__details{align-items:center;display:flex;flex-wrap:wrap;gap:.25rem}.preview-card__detail,.preview-card__meta{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--2);margin:0}.preview-card__meta{color:var(--calcite-color-text-2)}.preview-card__status{--calcite-chip-background-color: var(--calcite-color-foreground-2);text-transform:capitalize}.preview-card__divider{align-items:center;display:flex;flex:0 0 auto}.preview-card__divider:before{content:"";height:1rem;width:1px;margin-inline-end:.5rem;background-color:var(--calcite-color-border-2)}.preview-card__details :first-child.preview-card__divider:before{display:none}.preview-card__footer{align-items:center;border-top:1px solid var(--calcite-color-border-2);display:flex;margin-top:auto;min-height:2.25rem;padding:.375rem .75rem}.preview-card__footer-start{align-items:center;display:flex;flex:1 1 auto;min-width:0}.preview-card__owner{min-width:0}@container (max-width: 480px){.preview-card__upper{padding:.625rem}.preview-card__thumbnail{width:3.5rem;margin-inline-start:.5rem}.preview-card__footer{padding:.25rem .625rem}}`,h=class extends w{constructor(){super(...arguments),this.sectionEl=d(),this.linkEl=d(),this.cachedOwner="",this.cachedStatus="",this.cachedTitle="-",this.cachedType="-",this.cachedSummary="",this.cachedUpdatedText="",this.cachedThumbnailUri=null,this.handleCardClick=()=>{let{link:e,item:t}=this;e||this.arcgisGroupBrowserPreviewCardSelect.emit(t)},this.isLoaded=!1,this.imageError=!1,this.newTab=!1,this.hideThumbnail=!1,this.hideOwner=!1,this.hideItemType=!1,this.showDateUpdated=!1,this.showSummary=!1,this.showBadges=!1,this.showOwnerPopup=!1,this.interactive=!1,this.arcgisGroupBrowserInternalUIAction=l(),this.arcgisGroupBrowserPreviewCardSelect=l()}static{this.properties={isLoaded:16,imageError:16,item:0,portal:0,user:0,baseUrl:1,link:1,newTab:5,hideThumbnail:5,hideOwner:5,hideItemType:5,showDateUpdated:5,showSummary:5,showBadges:5,showOwnerPopup:5,interactive:5}}static{this.styles=$}async restoreFocus(){if(this.link&&this.linkEl.value){this.linkEl.value.focus();return}this.sectionEl.value?.focus()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isLoaded=!0})}willUpdate(e){(e.has("item")||e.has("portal")||e.has("showSummary")||e.has("showDateUpdated"))&&(this.imageError=!1,this.updateCachedItemData())}get resolvedBaseUrl(){if(!this.portal)return"";let e=_({portal:this.portal});return this.baseUrl||`${e}/home`}getItemThumbnailUri(e){return e.thumbnailUrl?e.thumbnailUrl:this.portal?f(this.portal,e):null}updateCachedItemData(){let{item:e,showSummary:t,showDateUpdated:s}=this,i=g(e),a=i.snippet?.trim()||"";this.cachedOwner=i.owner||"",this.cachedStatus=i.contentStatus||"",this.cachedTitle=i.title?.trim()||e.title?.trim()||"-",this.cachedType=i.type?.trim()||"-",this.cachedSummary=t?a.length>250?`${a.slice(0,250)}...`:a:"",this.cachedUpdatedText=s?y(i.modified??e.modified,{dateStyle:"medium"}):"",this.cachedThumbnailUri=this.getItemThumbnailUri(e)}renderStatusBadge(){let e=this.cachedStatus;return!this.showBadges||!e?null:r`<calcite-chip class="preview-card__status" scale=s .value=${e} .label=${e}>${e}</calcite-chip>`}renderThumbnail(){if(this.hideThumbnail)return null;let e=this.cachedThumbnailUri;return e&&!this.imageError?r`<figure class="preview-card__thumbnail"><img class="preview-card__thumbnail-image" src=${e??o} alt @error=${()=>{this.imageError=!0}}></figure>`:r`<figure class="preview-card__thumbnail preview-card__thumbnail--fallback" aria-hidden=true><calcite-icon icon=file scale=m></calcite-icon></figure>`}renderOwner(){let e=this.cachedOwner;return this.hideOwner||!e||!this.portal?null:this.showOwnerPopup?r`<arcgis-portal-user-popup underline .username=${e} .portal=${this.portal} .baseUrl=${this.resolvedBaseUrl} class="preview-card__owner" scale=s @arcgisUserPopupInternalUIAction=${t=>{t.stopPropagation(),this.arcgisGroupBrowserInternalUIAction.emit(t.detail)}}></arcgis-portal-user-popup>`:r`<arcgis-portal-user-avatar scale=s show-name hide-avatar .username=${e} .portal=${this.portal} class="preview-card__owner"></arcgis-portal-user-avatar>`}renderBody(e){let{showSummary:t,showDateUpdated:s}=this,i=!this.hideItemType,a=this.cachedTitle,b=this.cachedType,c=this.cachedSummary,m=this.cachedUpdatedText;return r`<div class="preview-card__body"><h3 class=${p({"preview-card__title":!0,"preview-card__title--padded":i||t&&!!c})}><span class="preview-card__title-span">${a}</span></h3>${t&&c?r`<p class="preview-card__summary">${c}</p>`:null}${i?r`<arcgis-portal-item-type scale=s .item=${e} .portal=${this.portal} .user=${this.user}></arcgis-portal-item-type>`:null}<div class="preview-card__details">${s&&m?r`<span class="preview-card__detail preview-card__divider">${m}</span>`:null}${this.renderStatusBadge()}${i?null:r`<p class="preview-card__meta">${b}</p>`}</div></div>`}render(){let{item:e,interactive:t,link:s,newTab:i}=this;return r`<section class=${p({"preview-card":!0,"preview-card--hoverable":t,"preview-card--loaded":this.isLoaded})} .part=${"card"} tabindex=${(t?0:void 0)??o} @click=${s?void 0:this.handleCardClick} ${n(this.sectionEl)}><slot name=content-top></slot>${s?r`<a class="preview-card__upper preview-card__upper--link" href=${s??o} target=${(i?"_blank":void 0)??o} rel=${(i?"noopener noreferrer":void 0)??o} ${n(this.linkEl)}>${r`<div class="preview-card__content">${this.renderBody(e)}</div><div class="preview-card__top">${this.renderThumbnail()}</div>`}</a>`:r`<div class="preview-card__upper"><div class="preview-card__content">${this.renderBody(e)}</div><div class="preview-card__top">${this.renderThumbnail()}</div></div>`}<div class="preview-card__footer" @click=${a=>{a.stopPropagation()}} @keydown=${a=>{(a.key==="Enter"||a.key===" ")&&a.stopPropagation()}}><div class="preview-card__footer-start">${this.renderOwner()}</div><slot name=actions-end></slot></div></section>`}};u("arcgis-portal-group-browser-preview-card",h);return h},"intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./4RPNBHB5.js";import{a as B,b as S}from"./PQ75545K.js";import a from"./37HLLREH.js";import{a as g}from"./S2BGAMSA.js";import{a as e}from"./FWRSYP3I.js";import{Ic as h}from"./DG6DAKQ2.js";export default $arcgis.t(([k,j,{a:m,d:b,e:w,f:F},{c:T}])=>{var q=i=>i.flatMap(t=>t.split(",")).map(t=>t.trim()).map(t=>t.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(t=>!!t),R=async(i,t,n,a,d)=>{let s=n.map?.allLayers.find(o=>o.id===i.layerId),c=await n.whenLayerView(s),u=s.title??i.layerId,l;if(a){let o=await b(a,n);if("error"in o)return{tool:"getTopFeatures",layerName:u,summary:"Geometry lookup failed",details:{error:o.error}};if(!o.geometry)return{tool:"getTopFeatures",layerName:u,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in a?a.where:"unknown criteria"}`}};l=o.geometry}else d&&(l=n.extent.clone());let y=t.groupByFields&&t.groupByFields.length>0,f=s.objectIdField,p=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,f])];try{let o;if(y){let r=new k({where:i.where||"1=1",outFields:p,orderByFields:i.orderByFields,geometry:l,spatialRelationship:l?"intersects":void 0,distance:a?.distance,units:a?.units,topFilter:new j({topCount:t.topCount,groupByFields:t.groupByFields,orderByFields:t.orderByFields})});o=await s.queryTopFeatures(r)}else{let r=s.createQuery();r.where=S(s.definitionExpression,i.where||"1=1"),r.outFields=p.length?p:["*"],r.orderByFields=t.orderByFields,r.returnGeometry=!1,r.num=t.topCount,l&&(r.geometry=l,r.spatialRelationship="intersects"),a?.distance&&(r.distance=a.distance),a?.units&&(r.units=a.units),r.outSpatialReference=n.spatialReference;let v=[...new Set([...i.outFields,...q(t.orderByFields)])],N=B(c,v,d??!1);try{o=N?await c.queryFeatures(r):await s.queryFeatures(r)}catch(x){console.warn("Client-side query failed, falling back to server:",x),o=await s.queryFeatures(r)}}let C=o.features.map(r=>r.attributes[f]),{attributes:I}=T(s,o,n.timeZone);return{tool:"getTopFeatures",layerName:u,summary:`Top ${t.topCount} features extracted`,details:{topCount:t.topCount,attributes:I,objectIds:C,objectIdField:f,where:i.where,orderByFields:t.orderByFields,...y&&{groupByFields:t.groupByFields}}}}catch(o){return{tool:"getTopFeatures",layerName:u,summary:"Query failed",details:{error:o instanceof Error?o.message:String(o)}}}},D=async({targetLayer:i,topFilter:t,geometryFilter:n,useCurrentExtent:a},d)=>{let{mapView:s}=g(d,["mapView"]),c=F(n,d.state?.agentExecutionContext?.sharedResources),u=await R(i,t,s,c,a);return JSON.stringify(u,null,2)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:m.optional().describe("The units for the distance buffer.")}),L=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:m.optional().describe("The units for the distance buffer.")}),U=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([E,L,w]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),topFilter:e.object({topCount:e.number().describe("Number of top features to return per group."),orderByFields:e.array(e.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:e.array(e.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),Y=h(D,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:U});return Y},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
2
+ import b from"./4RPNBHB5.js";import{a as B,b as S}from"./PQ75545K.js";import a from"./K4LXMVNH.js";import{a as g}from"./S2BGAMSA.js";import{a as e}from"./X4GCKBT2.js";import{Ic as h}from"./ASDS73QU.js";export default $arcgis.t(([k,j,{a:m,d:b,e:w,f:F},{c:T}])=>{var q=i=>i.flatMap(t=>t.split(",")).map(t=>t.trim()).map(t=>t.split(/\s+/u)[0]?.replace(/^"|"$/gu,"")).filter(t=>!!t),R=async(i,t,n,a,d)=>{let s=n.map?.allLayers.find(o=>o.id===i.layerId),c=await n.whenLayerView(s),u=s.title??i.layerId,l;if(a){let o=await b(a,n);if("error"in o)return{tool:"getTopFeatures",layerName:u,summary:"Geometry lookup failed",details:{error:o.error}};if(!o.geometry)return{tool:"getTopFeatures",layerName:u,summary:"No features found for geometry filter",details:{error:`No features found matching: ${"where"in a?a.where:"unknown criteria"}`}};l=o.geometry}else d&&(l=n.extent.clone());let y=t.groupByFields&&t.groupByFields.length>0,f=s.objectIdField,p=i.outFields.includes("*")?["*"]:[...new Set([...i.outFields,f])];try{let o;if(y){let r=new k({where:i.where||"1=1",outFields:p,orderByFields:i.orderByFields,geometry:l,spatialRelationship:l?"intersects":void 0,distance:a?.distance,units:a?.units,topFilter:new j({topCount:t.topCount,groupByFields:t.groupByFields,orderByFields:t.orderByFields})});o=await s.queryTopFeatures(r)}else{let r=s.createQuery();r.where=S(s.definitionExpression,i.where||"1=1"),r.outFields=p.length?p:["*"],r.orderByFields=t.orderByFields,r.returnGeometry=!1,r.num=t.topCount,l&&(r.geometry=l,r.spatialRelationship="intersects"),a?.distance&&(r.distance=a.distance),a?.units&&(r.units=a.units),r.outSpatialReference=n.spatialReference;let v=[...new Set([...i.outFields,...q(t.orderByFields)])],N=B(c,v,d??!1);try{o=N?await c.queryFeatures(r):await s.queryFeatures(r)}catch(x){console.warn("Client-side query failed, falling back to server:",x),o=await s.queryFeatures(r)}}let C=o.features.map(r=>r.attributes[f]),{attributes:I}=T(s,o,n.timeZone);return{tool:"getTopFeatures",layerName:u,summary:`Top ${t.topCount} features extracted`,details:{topCount:t.topCount,attributes:I,objectIds:C,objectIdField:f,where:i.where,orderByFields:t.orderByFields,...y&&{groupByFields:t.groupByFields}}}}catch(o){return{tool:"getTopFeatures",layerName:u,summary:"Query failed",details:{error:o instanceof Error?o.message:String(o)}}}},D=async({targetLayer:i,topFilter:t,geometryFilter:n,useCurrentExtent:a},d)=>{let{mapView:s}=g(d,["mapView"]),c=F(n,d.state?.agentExecutionContext?.sharedResources),u=await R(i,t,s,c,a);return JSON.stringify(u,null,2)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:m.optional().describe("The units for the distance buffer.")}),L=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:m.optional().describe("The units for the distance buffer.")}),U=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer containing the field from which to get a value."),where:e.string().describe("The SQL-92 where clause representing the feature from which to get an attribute value."),orderByFields:e.array(e.string().describe("The field(s) and order for which to sort the resulting features.")),outFields:e.array(e.string().describe('The fields to include in the output that will be presented to the user. This should include identifying information about the resulting features, like a name or id, along with the values desired in the output. If unsure, choose all fields ("*").').default("*"))}),geometryFilter:e.union([E,L,w]).optional().describe("Geometry filter for spatial queries. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location. Use 'point' for inline coordinates or 'layerId/where' for features from another layer."),topFilter:e.object({topCount:e.number().describe("Number of top features to return per group."),orderByFields:e.array(e.string().describe("Field(s) to rank by with ASC/DESC. Must be existing field names, not aggregate functions.")),groupByFields:e.array(e.string().describe("Field(s) to group results by. Returns top N per group."))}).required(),useCurrentExtent:e.boolean().optional().describe("Set to true ONLY when user explicitly asks about features 'in my view', 'on my map', 'I am looking at'. Default is false (queries entire layer).")}),Y=h(D,{name:"getTopFeatures",description:'Returns top N features ranked by an existing field value. Use for "highest", "lowest", "top N" questions where ranking is based on a field that already exists in the data (e.g., population, value, date, depth). orderByFields must be actual field names with ASC/DESC. Do NOT use aggregate functions like COUNT(), SUM(), AVG() - those require getStatistics.',schema:U});return Y},"rest/support/TopFeaturesQuery","rest/support/TopFilter",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as O}from"./XEK22IDA.js";import f from"./55FL7WQV.js";import e from"./AMBLICID.js";import c from"./RBGARTND.js";import{a as E}from"./6H7CWMFE.js";import b from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{c as L}from"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{K as M,L as g,M as S,O as v,T as k,h as A,j as d,w as u}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([{a:x},,{b:P},{a:D},{a:R}])=>{var y=["@","#","$"],F=400;function q(n,t){let a=null;for(let l of t){let r=l.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),s=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),e=n.match(s);if(e){let c=e[0],o=n.length-c.length,h=e[1]??"";(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}let i=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=n.match(i);if(m){let c=m[0],o=n.length-c.length,h=c.slice(l.length);(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}}return a}var U=n=>y.includes(n)?n:"@",N=L(n=>{let t=[],a=async s=>await x({requester:async()=>await D(n.portal,s,{num:3}),key:"items",id:s}),l=async s=>await x({requester:async()=>await R(n.portal,{query:`title:${s}`,num:3}),key:"groups",id:s}),r=O(async(s,e)=>{n.isFetchingEntities=!0;let i=s.toLowerCase();switch(U(e)){case"@":let m=10;n.filteredItemsInfo={type:"user",items:t.filter(h=>h.username?.toLowerCase().includes(i)||h.fullName?.toLowerCase().includes(i)).slice(0,m)};break;case"#":let{result:c}=await a(i);n.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:o}=await l(i);n.filteredItemsInfo={type:"group",items:o};break}(n.filteredItemsInfo?.items?.length??0)===0&&await n.closePopover(),n.isFetchingEntities=!1},F);return{fetchUsers:async()=>{try{let{users:s}=await P(n.portal);t=s??[]}catch(s){t=[],console.error("error fetching org users:",s)}},filterItems:r,getItemText:(s,e)=>{let i="";switch(U(e)){case"@":i=s.username;break;case"#":i=s.title??"";break;case"$":i=s.title??"";break}return i.trim()}}}),$=({id:n,label:t,selected:a,description:l,contentStart:r,onSelect:s})=>E(n,d`<calcite-list-item class=${v({selected:a})} .label=${t} .description=${l} .selected=${a} @pointerdown=${async e=>{e.preventDefault(),e.stopPropagation(),await s()}} ${g(e=>{a&&e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),K=A`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends S{constructor(){super(...arguments),this.calciteTextAreaRef=M(),this.mentionableEntityController=N(this),this.handleInput=t=>{let{bubbleNewValueChange:a,checkForMention:l}=this,r=t.target.value;this._value=r,a(this._value);let s=this.nativeTextAreaRef?.selectionStart??0;l(r,s)},this.handleKeyDown=t=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(t),this.arcgisMentionableTextAreaKeyDown.emit(t);return}switch(t.key){case"ArrowDown":t.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":t.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":t.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":t.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=t=>{this.arcgisUserMentionableTextAreaChange.emit(t),this.arcgisMentionableTextAreaChange.emit(t)},this.checkForMention=(t,a)=>{let l=t.substring(0,a),r=q(l,this.starters??y);if(r){let{starter:s}=r;this.currentStarter=s,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=t=>{let{mentionText:a,query:l,starter:r,startIndex:s}=t;this.currentMentionQuery=a,this.mentionStartPosition=s;let e=l.toLowerCase();this.mentionableEntityController.filterItems(e,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:t,selectedItemIndex:a,portal:l}=this;if(!t)return null;let{items:r,type:s}=t;switch(s){case"user":return r.map((e,i)=>$({id:e.id,label:`@${e.username}`,description:e.fullName,selected:i===a,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${e} .portal=${l} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(e)}));case"item":return r.map((e,i)=>$({id:e.id??`item-${i}`,label:`#${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((e,i)=>$({id:e.id??`group-${i}`,label:`${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=K}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(t){let{currentStarter:a,_value:l,mentionStartPosition:r,currentMentionQuery:s,handleClosePopover:e,calciteTextAreaRef:i,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!t||!a)return;let o=this.mentionableEntityController.getItemText(t,a).replaceAll('"',"").trim(),h=/\s/u.test(o)?`${a}"${o}"`:`${a}${o}`,f=(l??"").substring(0,r),p=(l??"").substring(r+s.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;e(),await this.updateComplete,i.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(t){t.has("value")&&(this._value=this.value??""),t.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let t=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");t&&(this.nativeTextAreaRef=t)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:t,scale:a,_value:l,maxLength:r,rows:s,placeholder:e,readOnly:i,popoverOpen:m,closePopover:c,handleInput:o,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:C}=this,T=this.calciteTextAreaRef.value,_=I?.items??[];return d`<calcite-text-area .placeholder=${e} .value=${l} .maxLength=${r} .rows=${s} .scale=${a} .readOnly=${i} .disabled=${f} @blur=${c} @calciteTextAreaInput=${o} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${T&&d`<calcite-popover .open=${m} .placement=${t} class="mention-popover" .label=${C} .referenceElement=${T} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${_.length>0&&d`<calcite-list .label=${C}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};k("arcgis-portal-mentionable-text-area",w);return w},a,b,c,e,f)
2
+ import{a as O}from"./XEK22IDA.js";import f from"./55FL7WQV.js";import e from"./AMBLICID.js";import c from"./RBGARTND.js";import{a as E}from"./K64QFEX2.js";import b from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{c as L}from"./YFU47LWN.js";import"./UXAGLEJM.js";import{K as M,L as g,M as S,O as v,T as k,h as A,j as d,w as u}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([{a:x},,{b:P},{a:D},{a:R}])=>{var y=["@","#","$"],F=400;function q(n,t){let a=null;for(let l of t){let r=l.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),s=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),e=n.match(s);if(e){let c=e[0],o=n.length-c.length,h=e[1]??"";(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}let i=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=n.match(i);if(m){let c=m[0],o=n.length-c.length,h=c.slice(l.length);(!a||o>a.startIndex)&&(a={starter:l,mentionText:c,query:h,startIndex:o})}}return a}var U=n=>y.includes(n)?n:"@",N=L(n=>{let t=[],a=async s=>await x({requester:async()=>await D(n.portal,s,{num:3}),key:"items",id:s}),l=async s=>await x({requester:async()=>await R(n.portal,{query:`title:${s}`,num:3}),key:"groups",id:s}),r=O(async(s,e)=>{n.isFetchingEntities=!0;let i=s.toLowerCase();switch(U(e)){case"@":let m=10;n.filteredItemsInfo={type:"user",items:t.filter(h=>h.username?.toLowerCase().includes(i)||h.fullName?.toLowerCase().includes(i)).slice(0,m)};break;case"#":let{result:c}=await a(i);n.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:o}=await l(i);n.filteredItemsInfo={type:"group",items:o};break}(n.filteredItemsInfo?.items?.length??0)===0&&await n.closePopover(),n.isFetchingEntities=!1},F);return{fetchUsers:async()=>{try{let{users:s}=await P(n.portal);t=s??[]}catch(s){t=[],console.error("error fetching org users:",s)}},filterItems:r,getItemText:(s,e)=>{let i="";switch(U(e)){case"@":i=s.username;break;case"#":i=s.title??"";break;case"$":i=s.title??"";break}return i.trim()}}}),$=({id:n,label:t,selected:a,description:l,contentStart:r,onSelect:s})=>E(n,d`<calcite-list-item class=${v({selected:a})} .label=${t} .description=${l} .selected=${a} @pointerdown=${async e=>{e.preventDefault(),e.stopPropagation(),await s()}} ${g(e=>{a&&e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),K=A`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends S{constructor(){super(...arguments),this.calciteTextAreaRef=M(),this.mentionableEntityController=N(this),this.handleInput=t=>{let{bubbleNewValueChange:a,checkForMention:l}=this,r=t.target.value;this._value=r,a(this._value);let s=this.nativeTextAreaRef?.selectionStart??0;l(r,s)},this.handleKeyDown=t=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(t),this.arcgisMentionableTextAreaKeyDown.emit(t);return}switch(t.key){case"ArrowDown":t.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":t.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":t.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":t.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=t=>{this.arcgisUserMentionableTextAreaChange.emit(t),this.arcgisMentionableTextAreaChange.emit(t)},this.checkForMention=(t,a)=>{let l=t.substring(0,a),r=q(l,this.starters??y);if(r){let{starter:s}=r;this.currentStarter=s,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=t=>{let{mentionText:a,query:l,starter:r,startIndex:s}=t;this.currentMentionQuery=a,this.mentionStartPosition=s;let e=l.toLowerCase();this.mentionableEntityController.filterItems(e,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:t,selectedItemIndex:a,portal:l}=this;if(!t)return null;let{items:r,type:s}=t;switch(s){case"user":return r.map((e,i)=>$({id:e.id,label:`@${e.username}`,description:e.fullName,selected:i===a,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${e} .portal=${l} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(e)}));case"item":return r.map((e,i)=>$({id:e.id??`item-${i}`,label:`#${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((e,i)=>$({id:e.id??`group-${i}`,label:`${e.title}`,description:e.id??void 0,selected:i===a,onSelect:async()=>await this.selectItem(e),contentStart:d`<calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=K}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(t){let{currentStarter:a,_value:l,mentionStartPosition:r,currentMentionQuery:s,handleClosePopover:e,calciteTextAreaRef:i,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!t||!a)return;let o=this.mentionableEntityController.getItemText(t,a).replaceAll('"',"").trim(),h=/\s/u.test(o)?`${a}"${o}"`:`${a}${o}`,f=(l??"").substring(0,r),p=(l??"").substring(r+s.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;e(),await this.updateComplete,i.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(t){t.has("value")&&(this._value=this.value??""),t.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let t=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");t&&(this.nativeTextAreaRef=t)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:t,scale:a,_value:l,maxLength:r,rows:s,placeholder:e,readOnly:i,popoverOpen:m,closePopover:c,handleInput:o,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:C}=this,T=this.calciteTextAreaRef.value,_=I?.items??[];return d`<calcite-text-area .placeholder=${e} .value=${l} .maxLength=${r} .rows=${s} .scale=${a} .readOnly=${i} .disabled=${f} @blur=${c} @calciteTextAreaInput=${o} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${T&&d`<calcite-popover .open=${m} .placement=${t} class="mention-popover" .label=${C} .referenceElement=${T} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${_.length>0&&d`<calcite-list .label=${C}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};k("arcgis-portal-mentionable-text-area",w);return w},a,b,c,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as r}from"./H4TRF2G7.js";import{a as n}from"./NDHD5H3P.js";import"./5IEUHTZ7.js";import"./7NZ3RJFV.js";import{K as s,L as c,M as o,T as l,j as a,w as e}from"./N5KMTTYL.js";import"./UZLQALHY.js";export default $arcgis.t(([{substitute:p}])=>{var i=class extends o{constructor(){super(...arguments),this.messages=n({blocking:!0,name:"portal-account-switcher"}),this.dialogRef=s(),this.accounts=[],this.arcgisLinkAll=e(),this.arcgisCloseDialog=e()}static{this.properties={portal:0,targetUser:1,accounts:0}}static{this.styles=r}render(){let{messages:t,portal:g,accounts:u,targetUser:m}=this;return a`<calcite-dialog open modal width=s .heading=${t.linkTitle} heading-level=2 outside-close-disabled @calciteDialogClose=${()=>this.arcgisCloseDialog.emit()} ${c(this.dialogRef)}><calcite-block .heading=${p(t.linkWarning,{targetUser:m})} expanded class="linked-accounts-block"><arcgis-portal-account-switcher-list .portal=${g} .linkedAccounts=${u}></arcgis-portal-account-switcher-list></calcite-block><calcite-button slot=footer-end appearance=outline @click=${()=>{this.dialogRef.value.open=!1}}>${t.cancel}</calcite-button><calcite-button slot=footer-end kind=brand @click=${()=>{this.arcgisLinkAll.emit(),this.dialogRef.value.open=!1}}>${t.linkAll}</calcite-button></calcite-dialog>`}};l("arcgis-portal-account-switcher-accounts",i);return i},"intl")
2
+ import{a as r}from"./PWHUWOQ3.js";import{a as n}from"./QQMRZ2WI.js";import"./YFU47LWN.js";import"./UXAGLEJM.js";import{K as s,L as c,M as o,T as l,j as a,w as e}from"./OTMC7MVD.js";import"./UZLQALHY.js";export default $arcgis.t(([{substitute:p}])=>{var i=class extends o{constructor(){super(...arguments),this.messages=n({blocking:!0,name:"portal-account-switcher"}),this.dialogRef=s(),this.accounts=[],this.arcgisLinkAll=e(),this.arcgisCloseDialog=e()}static{this.properties={portal:0,targetUser:1,accounts:0}}static{this.styles=r}render(){let{messages:t,portal:g,accounts:u,targetUser:m}=this;return a`<calcite-dialog open modal width=s .heading=${t.linkTitle} heading-level=2 outside-close-disabled @calciteDialogClose=${()=>this.arcgisCloseDialog.emit()} ${c(this.dialogRef)}><calcite-block .heading=${p(t.linkWarning,{targetUser:m})} expanded class="linked-accounts-block"><arcgis-portal-account-switcher-list .portal=${g} .linkedAccounts=${u}></arcgis-portal-account-switcher-list></calcite-block><calcite-button slot=footer-end appearance=outline @click=${()=>{this.dialogRef.value.open=!1}}>${t.cancel}</calcite-button><calcite-button slot=footer-end kind=brand @click=${()=>{this.arcgisLinkAll.emit(),this.dialogRef.value.open=!1}}>${t.linkAll}</calcite-button></calcite-dialog>`}};l("arcgis-portal-account-switcher-accounts",i);return i},"intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i}from"./S2BGAMSA.js";import{Fc as r,Ic as n}from"./DG6DAKQ2.js";async function s(a,t){await t.when();let e=t.map?.allLayers.find(l=>l.id===a);if(!e)return console.warn(`[goToLayer] No matching FeatureLayer found for: ${a}`),{text:`Could not find layer for: ${a}`};let o;return(e.type==="link-chart"||e.type==="knowledge-graph-sublayer")&&t.map?.activeLinkChartLayer?o=t.map.diagramNodesExtent:o=e.fullExtent,o?(await t.goTo(o),e.visible=!0,{text:`Successfully zoomed to: ${e.title??""}`}):{text:"Layer has no defined extent. Cannot zoom to layer."}}async function m({layerId:a},t){let{mapView:e}=i(t,["mapView"]);return await s(a,e)}var c=r.object({layerId:r.string().describe("The id of the layer to navigate to")}),p=n(m,{name:"goToLayer",description:"Zooms the map view to the full extent of the top matching layer.",schema:c});export{p as a};
2
+ import{a as i}from"./S2BGAMSA.js";import{Fc as r,Ic as n}from"./ASDS73QU.js";async function s(a,t){await t.when();let e=t.map?.allLayers.find(l=>l.id===a);if(!e)return console.warn(`[goToLayer] No matching FeatureLayer found for: ${a}`),{text:`Could not find layer for: ${a}`};let o;return(e.type==="link-chart"||e.type==="knowledge-graph-sublayer")&&t.map?.activeLinkChartLayer?o=t.map.diagramNodesExtent:o=e.fullExtent,o?(await t.goTo(o),e.visible=!0,{text:`Successfully zoomed to: ${e.title??""}`}):{text:"Layer has no defined extent. Cannot zoom to layer."}}async function m({layerId:a},t){let{mapView:e}=i(t,["mapView"]);return await s(a,e)}var c=r.object({layerId:r.string().describe("The id of the layer to navigate to")}),p=n(m,{name:"goToLayer",description:"Zooms the map view to the full extent of the top matching layer.",schema:c});export{p as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./37HLLREH.js";import{a as h}from"./S2BGAMSA.js";import{a as e}from"./FWRSYP3I.js";import{Ic as p}from"./DG6DAKQ2.js";export default $arcgis.t(([w,I,{a:u,d:m,e:b,f:y}])=>{var x=async(t,o,f,n,r,c)=>{let a=t.map?.allLayers.find(s=>s.id===o);if(!a)return{success:!1,error:`Layer '${o}' not found.`};let i=a.createQuery();i.where=f??"1=1",n&&(i.geometry=n,i.spatialRelationship="intersects",r&&(i.distance=r),c&&(i.units=c));try{let{extent:s,count:l}=await a.queryExtent(i);return!s||l===0?{success:!1,error:`No features found for filter (where: ${i.where}${n?", spatial filter used":""})`}:(await t.goTo(s),{success:!0})}catch(s){return{success:!1,error:s instanceof Error?s.message:String(s)}}},v=async(t,o,f,n,r,c)=>{let a=o.map?.allLayers.find(d=>d.id===t.layerId);if(!a)return`Could not find target layer with ID: ${t.layerId}`;let i;if(r){let d=await m(r,o);if("error"in d)return d.error;i=d.geometry}if(a.featureEffect=null,a.featureEffect=new w({filter:new I({...t.objectIds?.length?{objectIds:t.objectIds}:{where:t.where},geometry:i,spatialRelationship:"intersects",distance:r?.distance,units:r?.units}),includedEffect:f,excludedEffect:n}),a.visible=!0,c)return`Applied feature effects to "${a.title??t.layerId}" within current map extent.`;let s=t.objectIds?.length?`${a.objectIdField} IN (${t.objectIds.join(",")})`:t.where,l=await x(o,t.layerId,s,i,r?.distance,r?.units),g=a.title??t.layerId;return l.success?`Applied feature effects to target layer "${a.title??t.layerId}"${r&&"layerId"in r?` using geometry from layer "${r.layerId}"`:""}.`:`Applied filter to "${g}" but no features matched. ${l.error}`},j=async({targetLayer:t,geometryFilter:o,useCurrentExtent:f,includedEffect:n="drop-shadow(2px, 2px, 2px, gray)",excludedEffect:r="grayscale(100%) opacity(60%) blur(2px)"},c)=>{let{mapView:a}=h(c,["mapView"]),i=y(o,c.state?.agentExecutionContext?.sharedResources);return await v(t,a,n,r,i,f)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:u.optional().describe("The units for the distance buffer.")}),T=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:u.optional().describe("The units for the distance buffer.")}),$=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer on which to set a feature effect."),where:e.string().describe("The SQL-92 where clause representing the features to emphasize."),objectIds:e.array(e.number()).optional().describe("Array of objectIds from a previous query result. Use this instead of a where clause when the query returned objectIds (e.g. top N results). If provided, takes precedence over where clause.")}),geometryFilter:e.union([E,T,b]).optional().describe("Optional spatial filter. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location."),useCurrentExtent:e.boolean().optional().describe("Set to true when the previous query used the current map extent as a spatial filter. This ensures the feature effect applies only to features visible in the current view. Default is false."),includedEffect:e.string().default("drop-shadow(2px, 2px, 2px, gray)").describe("The effect applied to features that meet the filter requirements. Valid effects include: bloom, blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, and sepia. Prefer default unless specified."),excludedEffect:e.string().default("grayscale(100%) opacity(60%) blur(2px)").describe("The effect applied to features that do not meet the filter requirements. Valid effects include: bloom, blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, and sepia. Prefer default unless specified.")}),A=p(j,{name:"setFeatureEffect",description:"Sets a feature effect on a given layer with given filter parameters and feature effects to emphasize certain features that meet a filter requirement. If no feature effect information is provided, then use the default effect provided.",schema:$});return A},"layers/support/FeatureEffect","layers/support/FeatureFilter",a)
2
+ import a from"./K4LXMVNH.js";import{a as h}from"./S2BGAMSA.js";import{a as e}from"./X4GCKBT2.js";import{Ic as p}from"./ASDS73QU.js";export default $arcgis.t(([w,I,{a:u,d:m,e:b,f:y}])=>{var x=async(t,o,f,n,r,c)=>{let a=t.map?.allLayers.find(s=>s.id===o);if(!a)return{success:!1,error:`Layer '${o}' not found.`};let i=a.createQuery();i.where=f??"1=1",n&&(i.geometry=n,i.spatialRelationship="intersects",r&&(i.distance=r),c&&(i.units=c));try{let{extent:s,count:l}=await a.queryExtent(i);return!s||l===0?{success:!1,error:`No features found for filter (where: ${i.where}${n?", spatial filter used":""})`}:(await t.goTo(s),{success:!0})}catch(s){return{success:!1,error:s instanceof Error?s.message:String(s)}}},v=async(t,o,f,n,r,c)=>{let a=o.map?.allLayers.find(d=>d.id===t.layerId);if(!a)return`Could not find target layer with ID: ${t.layerId}`;let i;if(r){let d=await m(r,o);if("error"in d)return d.error;i=d.geometry}if(a.featureEffect=null,a.featureEffect=new w({filter:new I({...t.objectIds?.length?{objectIds:t.objectIds}:{where:t.where},geometry:i,spatialRelationship:"intersects",distance:r?.distance,units:r?.units}),includedEffect:f,excludedEffect:n}),a.visible=!0,c)return`Applied feature effects to "${a.title??t.layerId}" within current map extent.`;let s=t.objectIds?.length?`${a.objectIdField} IN (${t.objectIds.join(",")})`:t.where,l=await x(o,t.layerId,s,i,r?.distance,r?.units),g=a.title??t.layerId;return l.success?`Applied feature effects to target layer "${a.title??t.layerId}"${r&&"layerId"in r?` using geometry from layer "${r.layerId}"`:""}.`:`Applied filter to "${g}" but no features matched. ${l.error}`},j=async({targetLayer:t,geometryFilter:o,useCurrentExtent:f,includedEffect:n="drop-shadow(2px, 2px, 2px, gray)",excludedEffect:r="grayscale(100%) opacity(60%) blur(2px)"},c)=>{let{mapView:a}=h(c,["mapView"]),i=y(o,c.state?.agentExecutionContext?.sharedResources);return await v(t,a,n,r,i,f)},E=e.object({layerId:e.string().describe("The layerId of the layer containing the geometry by which to filter."),where:e.string().describe("The SQL-92 where clause representing the features from which to filter."),distance:e.number().optional().describe("The buffer distance around the geometry."),units:u.optional().describe("The units for the distance buffer.")}),T=e.object({point:e.object({x:e.number().describe("X coordinate (longitude) from navigation result"),y:e.number().describe("Y coordinate (latitude) from navigation result"),spatialReference:e.object({wkid:e.number().describe("Spatial reference WKID (e.g., 4326 for WGS84)")}).optional().describe("Spatial reference. Defaults to map's spatial reference if not provided.")}).describe("Point coordinates from a previous navigation/geocoding result"),distance:e.number().optional().describe("Optional buffer distance around the point."),units:u.optional().describe("The units for the distance buffer.")}),$=e.object({targetLayer:e.object({layerId:e.string().describe("The layerId of the layer on which to set a feature effect."),where:e.string().describe("The SQL-92 where clause representing the features to emphasize."),objectIds:e.array(e.number()).optional().describe("Array of objectIds from a previous query result. Use this instead of a where clause when the query returned objectIds (e.g. top N results). If provided, takes precedence over where clause.")}),geometryFilter:e.union([E,T,b]).optional().describe("Optional spatial filter. Use 'sharedResourceId' with an ID from listSharedResources for a previously geocoded location."),useCurrentExtent:e.boolean().optional().describe("Set to true when the previous query used the current map extent as a spatial filter. This ensures the feature effect applies only to features visible in the current view. Default is false."),includedEffect:e.string().default("drop-shadow(2px, 2px, 2px, gray)").describe("The effect applied to features that meet the filter requirements. Valid effects include: bloom, blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, and sepia. Prefer default unless specified."),excludedEffect:e.string().default("grayscale(100%) opacity(60%) blur(2px)").describe("The effect applied to features that do not meet the filter requirements. Valid effects include: bloom, blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, and sepia. Prefer default unless specified.")}),A=p(j,{name:"setFeatureEffect",description:"Sets a feature effect on a given layer with given filter parameters and feature effects to emphasize certain features that meet a filter requirement. If no feature effect information is provided, then use the default effect provided.",schema:$});return A},"layers/support/FeatureEffect","layers/support/FeatureFilter",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as v}from"./7NZ3RJFV.js";import{t as y,u as m,y as h}from"./N5KMTTYL.js";export default $arcgis.t(([{on:B,watch:E},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var Y=(r,e)=>n=>P(n,r),u=class extends h{constructor(e,n){super(e),this.Y=new Map,this.A=void 0,this.#o=x();let t=this;t.#e=n,t.Z(),t.setProvisionalExports(k(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),y(e,s=>{if(s){let c=E(()=>e[s],o=>{if(o===t.instance)return;let i=t.instance;t.exports=o,t.instance=o,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},P=v(u),k=(r,e,n,t,s)=>new Proxy(t,{get:(c,o)=>{let i=c[o];if(typeof o=="symbol"||s.has(o))return i;let a=r.M[n];return a.A=o,m(r,l=>{if(a.A=void 0,l!==void 0){let p=l.key;s.set(o,p);let d=r.constructor.getPropertyOptions(p),f=o!==p&&p.toLowerCase().includes("disable");A(e,d,o,p,f),d.i===void 0&&O(d,n,o,f)}},i)}}),A=(r,e,n,t,s,c)=>c=E(()=>{let o=r.deref();return o===void 0||o.component.manager.destroyed?c=c.remove():o.exports[n]},(o,i)=>{if(!c)return;r.deref().component?.requestUpdate(t,s?!i:i),e.c=!1},{sync:!0}),O=(r,e,n,t)=>{r.d.get=function(){let s=this.M[e]?.exports[n];return t?!s:s},r.d.set=function(s){let c=this.M[e];c.A!==n&&(c.exports[n]=t?!s:s)}};var T=r=>{let e=class extends g{},n=typeof r=="function"?r():r,t=Object.getOwnPropertyDescriptors(n);for(let[c,o]of Object.entries(t))Object.defineProperty(e.prototype,c,o),C()(e.prototype,c);let s=b()(e);return new s};return{a:Y,b:T}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
2
+ import{a as v}from"./UXAGLEJM.js";import{t as y,u as m,y as h}from"./OTMC7MVD.js";export default $arcgis.t(([{on:B,watch:E},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var Y=(r,e)=>n=>P(n,r),u=class extends h{constructor(e,n){super(e),this.Y=new Map,this.A=void 0,this.#o=x();let t=this;t.#e=n,t.Z(),t.setProvisionalExports(k(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),y(e,s=>{if(s){let c=E(()=>e[s],o=>{if(o===t.instance)return;let i=t.instance;t.exports=o,t.instance=o,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},P=v(u),k=(r,e,n,t,s)=>new Proxy(t,{get:(c,o)=>{let i=c[o];if(typeof o=="symbol"||s.has(o))return i;let a=r.M[n];return a.A=o,m(r,l=>{if(a.A=void 0,l!==void 0){let p=l.key;s.set(o,p);let d=r.constructor.getPropertyOptions(p),f=o!==p&&p.toLowerCase().includes("disable");A(e,d,o,p,f),d.i===void 0&&O(d,n,o,f)}},i)}}),A=(r,e,n,t,s,c)=>c=E(()=>{let o=r.deref();return o===void 0||o.component.manager.destroyed?c=c.remove():o.exports[n]},(o,i)=>{if(!c)return;r.deref().component?.requestUpdate(t,s?!i:i),e.c=!1},{sync:!0}),O=(r,e,n,t)=>{r.d.get=function(){let s=this.M[e]?.exports[n];return t?!s:s},r.d.set=function(s){let c=this.M[e];c.A!==n&&(c.exports[n]=t?!s:s)}};var T=r=>{let e=class extends g{},n=typeof r=="function"?r():r,t=Object.getOwnPropertyDescriptors(n);for(let[c,o]of Object.entries(t))Object.defineProperty(e.prototype,c,o),C()(e.prototype,c);let s=b()(e);return new s};return{a:Y,b:T}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./7EPXWK4L.js";export default $arcgis.t(([{watch:s},{b:r}])=>{var t=r;var f=["folder","group","contentType"],l=e=>e.type==="item-browser",o={filters:{},hiddenFilters:[],preview:null},w=(e=o)=>t({...o,...e});function y(e,a){let c=s(()=>e.preview,a);return()=>c.remove()}return{a:f,b:l,c:w,d:y}},"core/reactiveUtils",a)
2
+ import a from"./ICUDZDC6.js";export default $arcgis.t(([{watch:s},{b:r}])=>{var t=r;var f=["folder","group","contentType"],l=e=>e.type==="item-browser",o={filters:{},hiddenFilters:[],preview:null},w=(e=o)=>t({...o,...e});function y(e,a){let c=s(()=>e.preview,a);return()=>c.remove()}return{a:f,b:l,c:w,d:y}},"core/reactiveUtils",a)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{$a as he,A as Cs,Aa as de,Ab as Kl,Ac as ku,B as Hc,Ba as yl,Bb as zl,Bc as Cu,C as Gc,Ca as bl,Cb as Ms,Cc as Eu,D as Es,Da as vl,Db as Ns,Dc as _a,E as Wc,Ea as wl,Eb as ql,F as Kc,Fa as kr,Fb as Xt,Fc as tr,G as zc,Ga as Sl,Gb as Er,Gc as Tu,H as qc,Ha as kl,Hb as Jl,Hc as xu,I as Jc,Ia as Cl,Ib as Yl,J as Yc,Ja as xs,Jb as Xl,K as re,Ka as El,Kb as Zl,L as Xc,La as qt,Lb as Ql,M as Zc,Ma as Tl,Mb as eu,N as Qc,Na as xl,Nb as tu,O as el,Oa as Gr,Ob as be,P as tl,Pa as Il,Pb as Tr,Q as Tn,Qa as Al,Qb as Ps,R as rl,Ra as Ol,Rb as Zt,S as ee,Sa as Ml,Sb as ru,T as It,Ta as Nl,Tb as nu,U as nl,Ua as Le,Ub as Rs,V as sl,Va as da,Vb as su,W as Ge,Wa as oe,Wb as iu,X as xn,Xa as Pl,Xb as au,Y as il,Ya as Is,Z as Ts,Za as De,Zb as Qt,_ as al,_a as At,_b as ou,a as A,aa as wr,ab as Rl,ac as cu,b as Oc,ba as Kt,bb as Ll,bc as ve,c as Cn,ca as ol,cb as Dl,cc as lu,d as En,da as cl,db as Pn,dc as ga,e as Mc,ea as q,eb as Ot,ec as uu,f as fa,fa as Hr,fc as H,g as Nc,ga as In,gb as Fl,gc as er,h as Pc,ha as me,hb as Jt,hc as hu,i as Rc,ia as zt,ib as jl,ic as pu,j as Lc,ja as An,jb as $l,jc as et,k as Dc,ka as ll,kb as Wr,kc as Ls,l as Fc,la as ul,lb as As,lc as Fe,m as Xe,ma as On,mb as Cr,mc as fu,n as jc,na as Mn,nb as Bl,nc as mu,oa as hl,ob as Vl,oc as we,p as Wt,pa as pl,pb as Ul,pc as Ds,q as $c,qa as xe,qb as Kr,qc as du,r as Bc,ra as Nn,rc as gu,s as Vc,sa as fl,sc as _u,t as Ur,ta as ml,tc as yu,ua as Ze,uc as bu,va as Qe,vb as Hl,vc as vu,w as ma,wa as Sr,wb as Os,wc as wu,xa as dl,xb as Gl,xc as Su,y as Uc,ya as gl,yb as Yt,z as ks,za as _l,zb as Wl,zc as Fs}from"./DG6DAKQ2.js";function Iu(e,t){if(e!=null){if(typeof e!="number"||Number.isNaN(e)||e<=0)throw new Error(`${t} must be greater than 0`);return e}}function rr(e){if(e==null)return;let t=typeof e=="number"?{runTimeout:e}:e,r=t.refreshOn??"auto";if(r!=="auto"&&r!=="heartbeat")throw new Error('refreshOn must be "auto" or "heartbeat"');let n=Iu(t.runTimeout,"runTimeout"),s=Iu(t.idleTimeout,"idleTimeout");if(!(n===void 0&&s===void 0))return{runTimeout:n,idleTimeout:s,refreshOn:r}}var Z="__start__",Q="__end__",dt="__input__";var nr="__error__",Ln="__error_source_node__",js="__pregel_ns_writes";function Au(){let e=typeof process<"u"?process.env?.LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT:void 0;if(e!==void 0&&e!==""){let t=Number.parseInt(e,10);if(Number.isFinite(t)&&t>0)return t}return 5e3}var Se="__pregel_send",gt="__pregel_call",Ie="__pregel_read",We="__pregel_checkpointer",Ir="__pregel_resuming",zr="__pregel_task_id",Dn="__pregel_stream",Qm="__pregel_resume_value",Ar="__pregel_resume_map",Ae="__pregel_scratchpad",sr="__pregel_previous",ed="__pregel_durability",ir="checkpoint_id",Ue="checkpoint_ns",Ou="__pregel_node_finished",Fn="__pregel_node_error",ke="checkpoint_map",$s="__pregel_replay_state",Mu="__pregel_abort_signals",Y="__interrupt__",Oe="__resume__",jn="__no_writes__",ar="__return__",or="__previous__",se="langsmith:hidden";var ba="__self__",_t="__pregel_tasks",Me="__pregel_push",Bs="__pregel_pull",Ne="00000000-0000-0000-0000-000000000000",Nu=[se,dt,Y,Oe,nr,Ln,jn,Se,Ie,We,ed,Dn,Ir,zr,gt,Qm,Ae,sr,ke,Ue,ir,$s],ya=Symbol.for("langgraph.command"),Pu=class{[ya];constructor(e){this[ya]=e}};function Vs(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var xr=class{lg_name="Send";node;args;timeout;constructor(e,t,r){this.node=e,this.args=Rn(t),this.timeout=rr(r?.timeout)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args,timeout:this.timeout}}};function ce(e){return e instanceof xr}var mt="__overwrite__",td=class{lg_name="Overwrite";[mt];constructor(e){this[mt]=e}get value(){return this[mt]}toJSON(){return{[mt]:this[mt]}}static isInstance(e){return!e||typeof e!="object"?!1:"__overwrite__"in e||"lg_name"in e&&e.lg_name==="Overwrite"}};function tt(e){if(typeof e=="object"&&e!==null){if("__overwrite__"in e)return[!0,e[mt]];let t=e;if(t.type==="__overwrite__"&&"value"in t)return[!0,t.value]}return[!1,void 0]}function Or(e){return tt(e)[0]}function Mr(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Y])}var je=class extends Pu{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Rn(e.goto):[Rn(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:ce(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function pe(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function rd(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Rn(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let r;if(Array.isArray(e))r=[],t.set(e,r),e.forEach((n,s)=>{r[s]=Rn(n,t)});else if(e instanceof je||e instanceof xr||!rd(e))r=e,t.set(e,r);else if(pe(e))r=new je(e),t.set(e,r);else if(Vs(e))r=new xr(e.node,e.args,e.timeout!==void 0?{timeout:e.timeout}:void 0),t.set(e,r);else if("lc_serializable"in e&&e.lc_serializable)r=e,t.set(e,r);else{r={},t.set(e,r);for(let[n,s]of Object.entries(e))r[n]=Rn(s,t)}return r}return e}var Ke=class extends Error{lc_error_code;constructor(e,t){let r=e??"";t?.lc_error_code&&(r=`${r}
2
+ import{$a as he,A as Cs,Aa as de,Ab as Kl,Ac as ku,B as Hc,Ba as yl,Bb as zl,Bc as Cu,C as Gc,Ca as bl,Cb as Ms,Cc as Eu,D as Es,Da as vl,Db as Ns,Dc as _a,E as Wc,Ea as wl,Eb as ql,F as Kc,Fa as kr,Fb as Xt,Fc as tr,G as zc,Ga as Sl,Gb as Er,Gc as Tu,H as qc,Ha as kl,Hb as Jl,Hc as xu,I as Jc,Ia as Cl,Ib as Yl,J as Yc,Ja as xs,Jb as Xl,K as re,Ka as El,Kb as Zl,L as Xc,La as qt,Lb as Ql,M as Zc,Ma as Tl,Mb as eu,N as Qc,Na as xl,Nb as tu,O as el,Oa as Gr,Ob as be,P as tl,Pa as Il,Pb as Tr,Q as Tn,Qa as Al,Qb as Ps,R as rl,Ra as Ol,Rb as Zt,S as ee,Sa as Ml,Sb as ru,T as It,Ta as Nl,Tb as nu,U as nl,Ua as Le,Ub as Rs,V as sl,Va as da,Vb as su,W as Ge,Wa as oe,Wb as iu,X as xn,Xa as Pl,Xb as au,Y as il,Ya as Is,Z as Ts,Za as De,Zb as Qt,_ as al,_a as At,_b as ou,a as A,aa as wr,ab as Rl,ac as cu,b as Oc,ba as Kt,bb as Ll,bc as ve,c as Cn,ca as ol,cb as Dl,cc as lu,d as En,da as cl,db as Pn,dc as ga,e as Mc,ea as q,eb as Ot,ec as uu,f as fa,fa as Hr,fc as H,g as Nc,ga as In,gb as Fl,gc as er,h as Pc,ha as me,hb as Jt,hc as hu,i as Rc,ia as zt,ib as jl,ic as pu,j as Lc,ja as An,jb as $l,jc as et,k as Dc,ka as ll,kb as Wr,kc as Ls,l as Fc,la as ul,lb as As,lc as Fe,m as Xe,ma as On,mb as Cr,mc as fu,n as jc,na as Mn,nb as Bl,nc as mu,oa as hl,ob as Vl,oc as we,p as Wt,pa as pl,pb as Ul,pc as Ds,q as $c,qa as xe,qb as Kr,qc as du,r as Bc,ra as Nn,rc as gu,s as Vc,sa as fl,sc as _u,t as Ur,ta as ml,tc as yu,ua as Ze,uc as bu,va as Qe,vb as Hl,vc as vu,w as ma,wa as Sr,wb as Os,wc as wu,xa as dl,xb as Gl,xc as Su,y as Uc,ya as gl,yb as Yt,z as ks,za as _l,zb as Wl,zc as Fs}from"./ASDS73QU.js";function Iu(e,t){if(e!=null){if(typeof e!="number"||Number.isNaN(e)||e<=0)throw new Error(`${t} must be greater than 0`);return e}}function rr(e){if(e==null)return;let t=typeof e=="number"?{runTimeout:e}:e,r=t.refreshOn??"auto";if(r!=="auto"&&r!=="heartbeat")throw new Error('refreshOn must be "auto" or "heartbeat"');let n=Iu(t.runTimeout,"runTimeout"),s=Iu(t.idleTimeout,"idleTimeout");if(!(n===void 0&&s===void 0))return{runTimeout:n,idleTimeout:s,refreshOn:r}}var Z="__start__",Q="__end__",dt="__input__";var nr="__error__",Ln="__error_source_node__",js="__pregel_ns_writes";function Au(){let e=typeof process<"u"?process.env?.LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT:void 0;if(e!==void 0&&e!==""){let t=Number.parseInt(e,10);if(Number.isFinite(t)&&t>0)return t}return 5e3}var Se="__pregel_send",gt="__pregel_call",Ie="__pregel_read",We="__pregel_checkpointer",Ir="__pregel_resuming",zr="__pregel_task_id",Dn="__pregel_stream",Qm="__pregel_resume_value",Ar="__pregel_resume_map",Ae="__pregel_scratchpad",sr="__pregel_previous",ed="__pregel_durability",ir="checkpoint_id",Ue="checkpoint_ns",Ou="__pregel_node_finished",Fn="__pregel_node_error",ke="checkpoint_map",$s="__pregel_replay_state",Mu="__pregel_abort_signals",Y="__interrupt__",Oe="__resume__",jn="__no_writes__",ar="__return__",or="__previous__",se="langsmith:hidden";var ba="__self__",_t="__pregel_tasks",Me="__pregel_push",Bs="__pregel_pull",Ne="00000000-0000-0000-0000-000000000000",Nu=[se,dt,Y,Oe,nr,Ln,jn,Se,Ie,We,ed,Dn,Ir,zr,gt,Qm,Ae,sr,ke,Ue,ir,$s],ya=Symbol.for("langgraph.command"),Pu=class{[ya];constructor(e){this[ya]=e}};function Vs(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var xr=class{lg_name="Send";node;args;timeout;constructor(e,t,r){this.node=e,this.args=Rn(t),this.timeout=rr(r?.timeout)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args,timeout:this.timeout}}};function ce(e){return e instanceof xr}var mt="__overwrite__",td=class{lg_name="Overwrite";[mt];constructor(e){this[mt]=e}get value(){return this[mt]}toJSON(){return{[mt]:this[mt]}}static isInstance(e){return!e||typeof e!="object"?!1:"__overwrite__"in e||"lg_name"in e&&e.lg_name==="Overwrite"}};function tt(e){if(typeof e=="object"&&e!==null){if("__overwrite__"in e)return[!0,e[mt]];let t=e;if(t.type==="__overwrite__"&&"value"in t)return[!0,t.value]}return[!1,void 0]}function Or(e){return tt(e)[0]}function Mr(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[Y])}var je=class extends Pu{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?Rn(e.goto):[Rn(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:ce(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function pe(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function rd(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Rn(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let r;if(Array.isArray(e))r=[],t.set(e,r),e.forEach((n,s)=>{r[s]=Rn(n,t)});else if(e instanceof je||e instanceof xr||!rd(e))r=e,t.set(e,r);else if(pe(e))r=new je(e),t.set(e,r);else if(Vs(e))r=new xr(e.node,e.args,e.timeout!==void 0?{timeout:e.timeout}:void 0),t.set(e,r);else if("lc_serializable"in e&&e.lc_serializable)r=e,t.set(e,r);else{r={},t.set(e,r);for(let[n,s]of Object.entries(e))r[n]=Rn(s,t)}return r}return e}var Ke=class extends Error{lc_error_code;constructor(e,t){let r=e??"";t?.lc_error_code&&(r=`${r}
3
3
 
4
4
  Troubleshooting URL: https://docs.langchain.com/oss/javascript/langgraph/${t.lc_error_code}/
5
5
  `),super(r),this.lc_error_code=t?.lc_error_code}},Us=class extends Ke{get is_bubble_up(){return!0}},va=class extends Ke{constructor(e,t){super(e,t),this.name="GraphRecursionError"}static get unminifiable_name(){return"GraphRecursionError"}},Nr=class extends Ke{constructor(e,t){super(e,t),this.name="GraphValueError"}static get unminifiable_name(){return"GraphValueError"}},Hs=class extends Us{reason;constructor(e="shutdown",t){super(`Graph drained: ${e}`,t),this.name="GraphDrained",this.reason=e}static get unminifiable_name(){return"GraphDrained"}};function Gs(e){return e!==void 0&&e.name===Hs.unminifiable_name}var Mt=class extends Us{interrupts;constructor(e,t){super(JSON.stringify(e,null,2),t),this.name="GraphInterrupt",this.interrupts=e??[]}static get unminifiable_name(){return"GraphInterrupt"}},Ws=class extends Mt{constructor(e,t){super([{value:e}],t),this.name="NodeInterrupt"}static get unminifiable_name(){return"NodeInterrupt"}},Ks=class{node;error;constructor(e,t){this.node=e,this.error=t}static get unminifiable_name(){return"NodeError"}};function nd(e){return e!=null&&typeof e=="object"&&e.constructor!=null&&e.constructor.unminifiable_name===Ks.unminifiable_name}var zs=class extends Us{command;constructor(e){super(),this.name="ParentCommand",this.command=e}static get unminifiable_name(){return"ParentCommand"}};function wa(e){return e!==void 0&&e.name===zs.unminifiable_name}function cr(e){return e!==void 0&&e.is_bubble_up===!0}function Nt(e){return e!==void 0&&[Mt.unminifiable_name,Ws.unminifiable_name].includes(e.name)}var qs=class extends Ke{node;kind;timeout;elapsed;runTimeout;idleTimeout;constructor(e,t){let{node:r,elapsed:n,kind:s,runTimeout:i,idleTimeout:a}=e,o,c;if(s==="idle"){if(a===void 0)throw new Error("idleTimeout is required when kind='idle'");c=a,o=`Node "${r}" exceeded its idle timeout of ${a}ms without making progress (elapsed: ${n}ms).`}else{if(i===void 0)throw new Error("runTimeout is required when kind='run'");c=i,o=`Node "${r}" exceeded its run timeout of ${i}ms (elapsed: ${n}ms).`}super(o,t),this.name="NodeTimeoutError",this.node=r,this.kind=s,this.timeout=c,this.elapsed=n,this.runTimeout=i,this.idleTimeout=a}static get unminifiable_name(){return"NodeTimeoutError"}};function sd(e){return e!==void 0&&e.name===qs.unminifiable_name}var Js=class extends Ke{constructor(e,t){super(e,t),this.name="EmptyInputError"}static get unminifiable_name(){return"EmptyInputError"}},W=class extends Ke{constructor(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0,super(e,t),Error.stackTraceLimit=r,this.name="EmptyChannelError"}static get unminifiable_name(){return"EmptyChannelError"}},$=class extends Ke{constructor(e,t){super(e,t),this.name="InvalidUpdateError"}static get unminifiable_name(){return"InvalidUpdateError"}},id=class extends Ke{constructor(e,t){super(e,t),this.name="MultipleSubgraphError"}static get unminifiable_name(){return"MultipleSubgraphError"}},Sa=class extends Ke{constructor(e,t){super(e,t),this.name="UnreachableNodeError"}static get unminifiable_name(){return"UnreachableNodeError"}},ad=class extends Ke{constructor(e,t){super(e,t),this.name="RemoteException"}static get unminifiable_name(){return"RemoteException"}},$n=class extends Ke{constructor(e,t){super(e,t),this.name="StateGraphInputError",this.message="Invalid StateGraph input. Make sure to pass a valid StateDefinition, Annotation.Root, or Zod schema."}static get unminifiable_name(){return"StateGraphInputError"}},od=()=>(globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]===void 0&&(globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]=new Set),globalThis[Symbol.for("LG_CHECKPOINT_SEEN_NS_SET")]);var ka=0,Bn=0;function Vn(e){let t=Date.now();return t<=ka?(Bn+=1,Bn>=1e4&&(Bn=0,t=ka+1)):Bn=0,ka=t,Mc({clockseq:e,msecs:t,nsecs:Bn})}function yt(e,t){let r=t.replace(/-/g,"").match(/.{2}/g).map(n=>parseInt(n,16));return En(e,new Uint8Array(r))}var Un="__pregel_tasks",Ca="__error__",Pr="__scheduled__",Ea="__interrupt__",Ta="__resume__",qr=class{lg_name="DeltaSnapshot";value;constructor(e){this.value=e}};function xa(e){return e!=null&&typeof e=="object"&&e.lg_name==="DeltaSnapshot"}var Ru="[...]",cd="[Circular]",Ys=[],Jr=[];function ld(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Lu(e,t,r,n){typeof n>"u"&&(n=ld()),Aa(e,"",0,[],void 0,0,n);var s;try{Jr.length===0?s=JSON.stringify(e,t,r):s=JSON.stringify(e,ud(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ys.length!==0;){var i=Ys.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function Ia(e,t,r,n){var s=Object.getOwnPropertyDescriptor(n,r);s.get!==void 0?s.configurable?(Object.defineProperty(n,r,{value:e}),Ys.push([n,r,t,s])):Jr.push([t,r,e]):(n[r]=e,Ys.push([n,r,t]))}function Aa(e,t,r,n,s,i,a){i+=1;var o;if(typeof e=="object"&&e!==null){for(o=0;o<n.length;o++)if(n[o]===e){Ia(cd,e,t,s);return}if(typeof a.depthLimit<"u"&&i>a.depthLimit){Ia(Ru,e,t,s);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Ia(Ru,e,t,s);return}if(n.push(e),Array.isArray(e))for(o=0;o<e.length;o++)Aa(e[o],o,o,n,e,i,a);else{var c=Object.keys(e);for(o=0;o<c.length;o++){var l=c[o];Aa(e[l],l,o,n,e,i,a)}}n.pop()}}function ud(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Jr.length>0)for(var n=0;n<Jr.length;n++){var s=Jr[n];if(s[1]===t&&s[0]===r){r=s[2],Jr.splice(n,1);break}}return e.call(this,t,r)}}var Du=[];var Fu=A({});var ju=A({});var Xs=(e,t)=>{let r=[...new Set(t?.map(s=>{if(typeof s=="string")return s;let i=new s({});if(!("getType"in i)||typeof i.getType!="function")throw new Error("Invalid type provided.");return i.getType()}))],n=e.getType();return r.some(s=>s===n)};function Hu(e,t){return Array.isArray(e)?$u(e,t):Fe.from(r=>$u(r,e))}function $u(e,t={}){let{includeNames:r,excludeNames:n,includeTypes:s,excludeTypes:i,includeIds:a,excludeIds:o}=t,c=[];for(let l of e)if(!(n&&l.name&&n.includes(l.name))){{if(i&&Xs(l,i))continue;if(o&&l.id&&o.includes(l.id))continue}s||a||r?(r&&l.name&&r.some(u=>u===l.name)||s&&Xs(l,s)||a&&l.id&&a.some(u=>u===l.id))&&c.push(l):c.push(l)}return c}function Gu(e){return Array.isArray(e)?Bu(e):Fe.from(Bu)}function Bu(e){if(!e.length)return[];let t=[];for(let r of e){let n=r,s=t.pop();if(!s)t.push(n);else if(n.getType()==="tool"||n.getType()!==s.getType())t.push(s,n);else{let i=kr(s),a=kr(n),o=i.concat(a);typeof i.content=="string"&&typeof a.content=="string"&&(o.content=`${i.content}
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import c from"./GCB5BYDM.js";import b from"./4RPNBHB5.js";import"./PQ75545K.js";import a from"./K4LXMVNH.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./625YOS7Q.js";import{c as d}from"./2GBRZSEC.js";import{a as p}from"./NDHD5H3P.js";import{K as a,L as l,M as o,O as n,T as c,h as i,j as t,w as s}from"./N5KMTTYL.js";export default $arcgis.t(([{a:h,c:b}])=>{var f=i`:host{position:relative;display:block;background-color:var(--arcgis-browser-top-bar-background, var(--calcite-color-foreground-1));container-type:inline-size;container-name:browser-top-bar}.wrapper{display:flex;margin-inline:auto;max-width:var(--arcgis-browser-max-width)}.bucket{display:flex}.search-and-sort{display:flex;flex:1;align-items:center;padding-inline-end:1.5rem;min-height:3rem}.search{flex:1}.filter{margin-block:.25rem;padding-inline:.5rem;display:flex;justify-content:center;align-items:center}.bucket--mobile{display:none;text-align:center;border-bottom:1px solid var(--calcite-color-border-3)}.rel{position:relative}.bucket--desktop{display:flex}.indicator{width:.5rem;height:.5rem;position:absolute;border-radius:999px;top:0;pointer-events:none;z-index:20;background-color:var(--calcite-color-brand);inset-inline-start:0}.filter-status--with-toggle{display:none}@container browser-top-bar (min-width: 769px){.filter{display:none}.filter-status--with-toggle{display:inline-flex}}@container browser-top-bar (max-width: 640px){.bucket--mobile{display:block}.bucket--desktop{display:none}.search-and-sort{padding-inline-end:0}}`,r=class extends o{constructor(){super(...arguments),this.searchWrapper=a(),this.resizeObserver=null,this._messages=p({name:"portal-browser",blocking:!0}),this.width=0,this.store=b(),this.filtersDisabled=!1,this.arcgisBrowserFilterClear=s(),this.arcgisBrowserFilterRemove=s()}static{this.properties={width:16,store:0,filtersDisabled:5}}static{this.styles=f}firstUpdated(){this.updateWidth(),!(typeof ResizeObserver>"u"||!this.searchWrapper.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updateWidth()),this.resizeObserver.observe(this.searchWrapper.value))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updateWidth(){requestAnimationFrame(()=>{this.width=this.searchWrapper.value?.offsetWidth||0})}hasActiveFilter(){return Object.values(this.store.filters).some(e=>!!e.value&&!d(h,e.id))}handleClick(){this.store.preview=null,this.store.filtersExpanded=!this.store.filtersExpanded}render(){let e=(!this.store.filtersEmpty||!this.store.sortEmpty&&this.store.panel)&&!this.filtersDisabled,m=this._messages.topBar.filter;return t`<div><div class="bucket bucket--mobile"><slot name=bucket></slot></div><slot name=primary-filter></slot><div class="wrapper"><slot name=content-start></slot><div class="bucket bucket--desktop"><slot name=bucket></slot></div><div class="search-and-sort" ${l(this.searchWrapper)}><div class="search"><slot name=search></slot></div>${!this.filtersDisabled&&t`<arcgis-portal-browser-filter-status .componentWidth=${this.width} .browserWidth=${this.width} class=${n({"filter-status":!0,"filter-status--with-toggle":e})} .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters||[]} @arcgisBrowserFilterClear=${()=>{this.arcgisBrowserFilterClear.emit(null)}} @arcgisBrowserFilterRemove=${u=>{this.arcgisBrowserFilterRemove.emit(u.detail)}}></arcgis-portal-browser-filter-status>`||""}</div>${e&&t`<div class="filter"><div class="rel">${this.hasActiveFilter()&&t`<span class="indicator"></span>`||""}<calcite-button class="filter-toggle" scale=s appearance=transparent kind=neutral icon-start=sliders .label=${m} @click=${()=>this.handleClick()} aria-expanded=${this.store.filtersExpanded?"true":"false"}></calcite-button></div></div>`||""}<slot name=content-end></slot></div></div>`}};c("arcgis-portal-browser-top-bar",r);return r},b)
2
+ import b from"./IMIQY3MT.js";import{c as d}from"./2GBRZSEC.js";import{a as p}from"./QQMRZ2WI.js";import{K as a,L as l,M as o,O as n,T as c,h as i,j as t,w as s}from"./OTMC7MVD.js";export default $arcgis.t(([{a:h,c:b}])=>{var f=i`:host{position:relative;display:block;background-color:var(--arcgis-browser-top-bar-background, var(--calcite-color-foreground-1));container-type:inline-size;container-name:browser-top-bar}.wrapper{display:flex;margin-inline:auto;max-width:var(--arcgis-browser-max-width)}.bucket{display:flex}.search-and-sort{display:flex;flex:1;align-items:center;padding-inline-end:1.5rem;min-height:3rem}.search{flex:1}.filter{margin-block:.25rem;padding-inline:.5rem;display:flex;justify-content:center;align-items:center}.bucket--mobile{display:none;text-align:center;border-bottom:1px solid var(--calcite-color-border-3)}.rel{position:relative}.bucket--desktop{display:flex}.indicator{width:.5rem;height:.5rem;position:absolute;border-radius:999px;top:0;pointer-events:none;z-index:20;background-color:var(--calcite-color-brand);inset-inline-start:0}.filter-status--with-toggle{display:none}@container browser-top-bar (min-width: 769px){.filter{display:none}.filter-status--with-toggle{display:inline-flex}}@container browser-top-bar (max-width: 640px){.bucket--mobile{display:block}.bucket--desktop{display:none}.search-and-sort{padding-inline-end:0}}`,r=class extends o{constructor(){super(...arguments),this.searchWrapper=a(),this.resizeObserver=null,this._messages=p({name:"portal-browser",blocking:!0}),this.width=0,this.store=b(),this.filtersDisabled=!1,this.arcgisBrowserFilterClear=s(),this.arcgisBrowserFilterRemove=s()}static{this.properties={width:16,store:0,filtersDisabled:5}}static{this.styles=f}firstUpdated(){this.updateWidth(),!(typeof ResizeObserver>"u"||!this.searchWrapper.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updateWidth()),this.resizeObserver.observe(this.searchWrapper.value))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updateWidth(){requestAnimationFrame(()=>{this.width=this.searchWrapper.value?.offsetWidth||0})}hasActiveFilter(){return Object.values(this.store.filters).some(e=>!!e.value&&!d(h,e.id))}handleClick(){this.store.preview=null,this.store.filtersExpanded=!this.store.filtersExpanded}render(){let e=(!this.store.filtersEmpty||!this.store.sortEmpty&&this.store.panel)&&!this.filtersDisabled,m=this._messages.topBar.filter;return t`<div><div class="bucket bucket--mobile"><slot name=bucket></slot></div><slot name=primary-filter></slot><div class="wrapper"><slot name=content-start></slot><div class="bucket bucket--desktop"><slot name=bucket></slot></div><div class="search-and-sort" ${l(this.searchWrapper)}><div class="search"><slot name=search></slot></div>${!this.filtersDisabled&&t`<arcgis-portal-browser-filter-status .componentWidth=${this.width} .browserWidth=${this.width} class=${n({"filter-status":!0,"filter-status--with-toggle":e})} .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters||[]} @arcgisBrowserFilterClear=${()=>{this.arcgisBrowserFilterClear.emit(null)}} @arcgisBrowserFilterRemove=${u=>{this.arcgisBrowserFilterRemove.emit(u.detail)}}></arcgis-portal-browser-filter-status>`||""}</div>${e&&t`<div class="filter"><div class="rel">${this.hasActiveFilter()&&t`<span class="indicator"></span>`||""}<calcite-button class="filter-toggle" scale=s appearance=transparent kind=neutral icon-start=sliders .label=${m} @click=${()=>this.handleClick()} aria-expanded=${this.store.filtersExpanded?"true":"false"}></calcite-button></div></div>`||""}<slot name=content-end></slot></div></div>`}};c("arcgis-portal-browser-top-bar",r);return r},b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./7UNUBFFC.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{e as f}from"./OBBYT2AV.js";import{a as m}from"./6H7CWMFE.js";import{a as b}from"./NDHD5H3P.js";import{M as p,T as u,h,j as i,w as r}from"./N5KMTTYL.js";var g={sm:640,md:768,lg:1024};var w=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,o=class extends p{constructor(){super(...arguments),this._messages=b({name:"portal-browser",blocking:!0}),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=r(),this.arcgisBrowserFilterRemove=r()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,componentWidth:9,browserWidth:9}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),s=this.componentWidth??0;if((this.browserWidth??s??window.innerWidth)<g.sm){this.inBounds=t,this.outOfBounds=[];return}let a=Math.max(s-460,0),e=0,n=[],c=[];t.forEach(l=>{let d=f({text:l.label});!s||e+d<=a?(n.push(l),e+=d):c.push(l)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return m(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this._messages.filterStatus,s=this.outOfBounds.length>0,a=this.inBounds.length+this.outOfBounds.length;return a?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${t.filters} scale=s>${this.inBounds.map(e=>this.renderChip(e))}${s&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${s&&i`<calcite-popover .label=${t.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${t.additional} scale=s>${this.outOfBounds.map(e=>this.renderChip(e))}</calcite-chip-group></div></calcite-popover>`||""}${a>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${t.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",o);export{g as a,o as b};
2
+ import{e as f}from"./OBBYT2AV.js";import{a as m}from"./K64QFEX2.js";import{a as b}from"./QQMRZ2WI.js";import{M as p,T as u,h,j as i,w as r}from"./OTMC7MVD.js";var g={sm:640,md:768,lg:1024};var w=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,o=class extends p{constructor(){super(...arguments),this._messages=b({name:"portal-browser",blocking:!0}),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=r(),this.arcgisBrowserFilterRemove=r()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,componentWidth:9,browserWidth:9}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),s=this.componentWidth??0;if((this.browserWidth??s??window.innerWidth)<g.sm){this.inBounds=t,this.outOfBounds=[];return}let a=Math.max(s-460,0),e=0,n=[],c=[];t.forEach(l=>{let d=f({text:l.label});!s||e+d<=a?(n.push(l),e+=d):c.push(l)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return m(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this._messages.filterStatus,s=this.outOfBounds.length>0,a=this.inBounds.length+this.outOfBounds.length;return a?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${t.filters} scale=s>${this.inBounds.map(e=>this.renderChip(e))}${s&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${s&&i`<calcite-popover .label=${t.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${t.additional} scale=s>${this.outOfBounds.map(e=>this.renderChip(e))}</calcite-chip-group></div></calcite-popover>`||""}${a>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${t.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",o);export{g as a,o as b};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as r}from"./FWRSYP3I.js";export default $arcgis.t(([y,m,g,f])=>{var p=["feet","kilometers","meters","miles","nautical-miles","us-nautical-miles"],d=r.enum(p);var u=750;function h(e){return"point"in e&&e.point!==void 0}function b(e){return"layerId"in e&&e.layerId!==void 0}function w(e){return"polygon"in e&&e.polygon!==void 0}function R(e){return"polyline"in e&&e.polyline!==void 0}var F=async(e,i)=>{if(h(e)){let{point:t}=e;return{geometry:new y({x:t.x,y:t.y,spatialReference:t.spatialReference?{wkid:t.spatialReference.wkid}:i.spatialReference})}}if(w(e))return{geometry:new m({rings:e.polygon.rings,spatialReference:e.polygon.spatialReference})};if(R(e))return{geometry:new g({paths:e.polyline.paths,spatialReference:e.polyline.spatialReference})};if(b(e)){let t=i.map?.allLayers.find(n=>n.id===e.layerId);if(!t)return{error:`Could not find geometry layer with ID: ${e.layerId}`};let o=t.title??t.id,a=e.where?.trim()||"1=1";try{let n=await t.queryFeatures({where:a,returnGeometry:!0,outSpatialReference:i.spatialReference,num:u+1});if(!n.features.length)return{error:`No features found in geometry layer "${o}" with the specified where clause: ${a}`};if(n.features.length>u)return{error:`Geometry filter for layer "${o}" matched too many features (${n.features.length}+). Please narrow the geometry layer filter.`};let s=n.features.map(c=>c.geometry).filter(c=>!!c);if(!s.length)return{error:"No valid geometries found for the matched geometry layer features."};let l=s.length===1?s[0]:f.executeMany(s);return l?(l.spatialReference||(l.spatialReference=i.spatialReference),{geometry:l}):{error:"Failed to combine geometries from geometry layer."}}catch(n){return{error:`Failed to query geometry: ${String(n)}`}}}return{error:"Invalid geometry configuration provided"}},I=r.object({id:r.string()}),j=r.discriminatedUnion("kind",[r.object({id:r.string(),kind:r.literal("point"),payload:r.object({x:r.number(),y:r.number(),spatialReference:r.object({wkid:r.number()}).optional()})}),r.object({id:r.string(),kind:r.literal("polyline"),payload:r.object({paths:r.array(r.array(r.array(r.number()))),spatialReference:r.object({wkid:r.number()}).optional()})}),r.object({id:r.string(),kind:r.literal("polygon"),payload:r.object({rings:r.array(r.array(r.array(r.number()))),spatialReference:r.object({wkid:r.number()}).optional()})})]),U=r.object({sharedResourceId:r.string().describe("ID of a point, polyline, or polygon returned by listSharedResources."),distance:r.number().optional().describe("Optional buffer distance around the geometry."),units:d.optional().describe("The units for the distance buffer.")}),q=(e,i)=>{if(!e||!("sharedResourceId"in e))return e;if(!i)throw new Error("Shared resources are unavailable in the tool runtime state.");let t=i.find(a=>{let n=I.safeParse(a);return n.success&&n.data.id===e.sharedResourceId});if(!t)throw new Error(`Shared resource not found: ${e.sharedResourceId}`);let o=j.safeParse(t);if(!o.success)throw new Error(`Shared resource ${e.sharedResourceId} does not contain valid point, polyline, or polygon geometry.`);switch(o.data.kind){case"point":return{point:o.data.payload,distance:e.distance,units:e.units};case"polyline":return{polyline:o.data.payload,distance:e.distance,units:e.units};case"polygon":return{polygon:o.data.payload,distance:e.distance,units:e.units}}};return{a:d,b:h,c:b,d:F,e:U,f:q}},"geometry/Point","geometry/Polygon","geometry/Polyline","geometry/operators/unionOperator")
2
+ import{a as r}from"./X4GCKBT2.js";export default $arcgis.t(([y,m,g,f])=>{var p=["feet","kilometers","meters","miles","nautical-miles","us-nautical-miles"],d=r.enum(p);var u=750;function h(e){return"point"in e&&e.point!==void 0}function b(e){return"layerId"in e&&e.layerId!==void 0}function w(e){return"polygon"in e&&e.polygon!==void 0}function R(e){return"polyline"in e&&e.polyline!==void 0}var F=async(e,i)=>{if(h(e)){let{point:t}=e;return{geometry:new y({x:t.x,y:t.y,spatialReference:t.spatialReference?{wkid:t.spatialReference.wkid}:i.spatialReference})}}if(w(e))return{geometry:new m({rings:e.polygon.rings,spatialReference:e.polygon.spatialReference})};if(R(e))return{geometry:new g({paths:e.polyline.paths,spatialReference:e.polyline.spatialReference})};if(b(e)){let t=i.map?.allLayers.find(n=>n.id===e.layerId);if(!t)return{error:`Could not find geometry layer with ID: ${e.layerId}`};let o=t.title??t.id,a=e.where?.trim()||"1=1";try{let n=await t.queryFeatures({where:a,returnGeometry:!0,outSpatialReference:i.spatialReference,num:u+1});if(!n.features.length)return{error:`No features found in geometry layer "${o}" with the specified where clause: ${a}`};if(n.features.length>u)return{error:`Geometry filter for layer "${o}" matched too many features (${n.features.length}+). Please narrow the geometry layer filter.`};let s=n.features.map(c=>c.geometry).filter(c=>!!c);if(!s.length)return{error:"No valid geometries found for the matched geometry layer features."};let l=s.length===1?s[0]:f.executeMany(s);return l?(l.spatialReference||(l.spatialReference=i.spatialReference),{geometry:l}):{error:"Failed to combine geometries from geometry layer."}}catch(n){return{error:`Failed to query geometry: ${String(n)}`}}}return{error:"Invalid geometry configuration provided"}},I=r.object({id:r.string()}),j=r.discriminatedUnion("kind",[r.object({id:r.string(),kind:r.literal("point"),payload:r.object({x:r.number(),y:r.number(),spatialReference:r.object({wkid:r.number()}).optional()})}),r.object({id:r.string(),kind:r.literal("polyline"),payload:r.object({paths:r.array(r.array(r.array(r.number()))),spatialReference:r.object({wkid:r.number()}).optional()})}),r.object({id:r.string(),kind:r.literal("polygon"),payload:r.object({rings:r.array(r.array(r.array(r.number()))),spatialReference:r.object({wkid:r.number()}).optional()})})]),U=r.object({sharedResourceId:r.string().describe("ID of a point, polyline, or polygon returned by listSharedResources."),distance:r.number().optional().describe("Optional buffer distance around the geometry."),units:d.optional().describe("The units for the distance buffer.")}),q=(e,i)=>{if(!e||!("sharedResourceId"in e))return e;if(!i)throw new Error("Shared resources are unavailable in the tool runtime state.");let t=i.find(a=>{let n=I.safeParse(a);return n.success&&n.data.id===e.sharedResourceId});if(!t)throw new Error(`Shared resource not found: ${e.sharedResourceId}`);let o=j.safeParse(t);if(!o.success)throw new Error(`Shared resource ${e.sharedResourceId} does not contain valid point, polyline, or polygon geometry.`);switch(o.data.kind){case"point":return{point:o.data.payload,distance:e.distance,units:e.units};case"polyline":return{polyline:o.data.payload,distance:e.distance,units:e.units};case"polygon":return{polygon:o.data.payload,distance:e.distance,units:e.units}}};return{a:d,b:h,c:b,d:F,e:U,f:q}},"geometry/Point","geometry/Polygon","geometry/Polyline","geometry/operators/unionOperator")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{C as s,D as i,G as o,m as r}from"./N5KMTTYL.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
2
+ import{C as s,D as i,G as o,m as r}from"./OTMC7MVD.js";var u=s(class extends i{constructor(){super(...arguments),this.key=r}render(t,e){return this.key=t,e}update(t,[e,m]){return e!==this.key&&(o(t),this.key=e),m}});export{u as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as c}from"./S2BGAMSA.js";import{a as t}from"./FWRSYP3I.js";import{Ic as a}from"./DG6DAKQ2.js";async function i(o,e){return await e.goTo({scale:o}),{text:`Successfully zoomed to: ${o}`}}async function r({scale:o},e){let{mapView:s}=c(e,["mapView"]);return await i(o,s)}var m=t.object({scale:t.number().describe("The map scale of the view to go to.")}),p=a(r,{name:"goToScale",description:"Go to the specified view scale.",schema:m});export{p as a};
2
+ import{a as c}from"./S2BGAMSA.js";import{a as t}from"./X4GCKBT2.js";import{Ic as a}from"./ASDS73QU.js";async function i(o,e){return await e.goTo({scale:o}),{text:`Successfully zoomed to: ${o}`}}async function r({scale:o},e){let{mapView:s}=c(e,["mapView"]);return await i(o,s)}var m=t.object({scale:t.number().describe("The map scale of the view to go to.")}),p=a(r,{name:"goToScale",description:"Go to the specified view scale.",schema:m});export{p as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a}from"./VUBYPGZG.js";import"./S2BGAMSA.js";import"./X4GCKBT2.js";import"./ASDS73QU.js";import"./UZLQALHY.js";export{a as goToZoomTool};