@arcgis/portal-components 6.0.0-next.2 → 6.0.0-next.21

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 (308) hide show
  1. package/dist/cdn/{MKSFNVXL.js → 22TDAUX4.js} +1 -1
  2. package/dist/cdn/234TH32X.js +106 -0
  3. package/dist/cdn/2D3FQXJ4.js +2 -0
  4. package/dist/cdn/{BKD7JSV2.js → 2DXO6FVX.js} +1 -1
  5. package/dist/cdn/{TWCJJCPC.js → 2XJX2JUO.js} +1 -1
  6. package/dist/cdn/{SGDDFWCJ.js → 3EQGUCO4.js} +1 -1
  7. package/dist/cdn/{OR6T5SB3.js → 3J3ISO3E.js} +1 -1
  8. package/dist/cdn/3RTST3I6.js +2 -0
  9. package/dist/cdn/3XH3JHOI.js +2 -0
  10. package/dist/cdn/4ONCJSSP.js +2 -0
  11. package/dist/cdn/4QYVBXZT.js +2 -0
  12. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  13. package/dist/cdn/4WQA7UAJ.js +2 -0
  14. package/dist/cdn/5OWIWCEQ.js +2 -0
  15. package/dist/cdn/{7ZWYUHGK.js → 5R4JJWGB.js} +1 -1
  16. package/dist/cdn/63HYFDRU.js +2 -0
  17. package/dist/cdn/6MATPHXT.js +79 -0
  18. package/dist/cdn/7IP3RVPH.js +2 -0
  19. package/dist/cdn/7ISSDO2T.js +2 -0
  20. package/dist/cdn/AKTIIRJQ.js +2 -0
  21. package/dist/cdn/ASID6YW7.js +135 -0
  22. package/dist/cdn/B3HV5JVN.js +2 -0
  23. package/dist/cdn/B6666VUQ.js +2 -0
  24. package/dist/cdn/BOO7GG5L.js +2 -0
  25. package/dist/cdn/CZ4FC4GM.js +2 -0
  26. package/dist/cdn/D3LZFIHV.js +2 -0
  27. package/dist/cdn/{NWVLGU2C.js → D3Q72PPN.js} +1 -1
  28. package/dist/cdn/DABNV2OO.js +2 -0
  29. package/dist/cdn/DELNTRCT.js +2 -0
  30. package/dist/cdn/DOCNBKQZ.js +2 -0
  31. package/dist/cdn/EP7NWEC5.js +2 -0
  32. package/dist/cdn/EQRBP6H6.js +66 -0
  33. package/dist/cdn/{ABORO35R.js → ESKKH4DE.js} +1 -1
  34. package/dist/cdn/EUQQZIRW.js +2 -0
  35. package/dist/cdn/F2HT5PVQ.js +2 -0
  36. package/dist/cdn/FE3O23SE.js +2 -0
  37. package/dist/cdn/FGRMURKX.js +2 -0
  38. package/dist/cdn/FN2QMDEW.js +2 -0
  39. package/dist/cdn/{I6IRHXWR.js → FYVATGMR.js} +1 -1
  40. package/dist/cdn/{RHCRPJWS.js → G3WDR53S.js} +1 -1
  41. package/dist/cdn/GAU6DNV5.js +2 -0
  42. package/dist/cdn/GPAIXN52.js +2 -0
  43. package/dist/cdn/GRSBU4PD.js +2 -0
  44. package/dist/cdn/{JWBUJT43.js → H7FA5HFE.js} +1 -1
  45. package/dist/cdn/HHGKNVCH.js +4 -0
  46. package/dist/cdn/HJLWIQDI.js +2 -0
  47. package/dist/cdn/I3EWDYTU.js +2 -0
  48. package/dist/cdn/{24QSQLRY.js → IKPVMXXW.js} +1 -1
  49. package/dist/cdn/{5HZNBMW6.js → IOFXDIWC.js} +1 -1
  50. package/dist/cdn/IPHBVKMY.js +2 -0
  51. package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
  52. package/dist/cdn/{ZKZDKJ6D.js → IVDZGUNZ.js} +1 -1
  53. package/dist/cdn/J6SI4Z4F.js +2 -0
  54. package/dist/cdn/K3GAZFRI.js +63 -0
  55. package/dist/cdn/K7LYYLUF.js +2 -0
  56. package/dist/cdn/{74T6IXSN.js → KDORI7H4.js} +1 -1
  57. package/dist/cdn/KRORL7QC.js +2 -0
  58. package/dist/cdn/LGJWULAW.js +2 -0
  59. package/dist/cdn/LTMPXQTC.js +2 -0
  60. package/dist/cdn/M5STJJRX.js +2 -0
  61. package/dist/cdn/M7J7RAM4.js +2 -0
  62. package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
  63. package/dist/cdn/MSSJRDR7.js +2 -0
  64. package/dist/cdn/{L64UURQB.js → N4ZRMYZL.js} +1 -1
  65. package/dist/cdn/NBCYYUHP.js +2 -0
  66. package/dist/cdn/NHVPNSNH.js +2 -0
  67. package/dist/cdn/NQ2IAQKL.js +41 -0
  68. package/dist/cdn/NXGTEDK4.js +2 -0
  69. package/dist/cdn/{7LMZHJZG.js → NYOXMT6S.js} +1 -1
  70. package/dist/cdn/O3JP4FQ3.js +2 -0
  71. package/dist/cdn/O4YFPGD5.js +2 -0
  72. package/dist/cdn/{JIJO4CAS.js → ODSA6NNS.js} +1 -1
  73. package/dist/cdn/OHAQPQAP.js +2 -0
  74. package/dist/cdn/OOXTSCQT.js +2 -0
  75. package/dist/cdn/OQ2JULON.js +2 -0
  76. package/dist/cdn/OVH4YLTS.js +2 -0
  77. package/dist/cdn/QB5BGHLA.js +2 -0
  78. package/dist/cdn/QKCRNS75.js +2 -0
  79. package/dist/cdn/{2YZWRFCI.js → RKMW4FUN.js} +1 -1
  80. package/dist/cdn/RT26JZP5.js +2 -0
  81. package/dist/cdn/SKHFISBA.js +2 -0
  82. package/dist/cdn/SKIDJ4QI.js +2 -0
  83. package/dist/cdn/SRWFOV5W.js +2 -0
  84. package/dist/cdn/{IN4JPZTY.js → SSCKCDXD.js} +1 -1
  85. package/dist/cdn/T66G7GIR.js +2 -0
  86. package/dist/cdn/{RQYNPDN3.js → TIMYD2HM.js} +1 -1
  87. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  88. package/dist/cdn/TJWJ3LTU.js +2 -0
  89. package/dist/cdn/{DHMNNIXZ.js → TMR4BRFI.js} +1 -1
  90. package/dist/cdn/{JN23JH3T.js → TTQGRN2V.js} +1 -1
  91. package/dist/cdn/{MLYQGIJU.js → U2HTYOBB.js} +13 -13
  92. package/dist/cdn/{YZTBAUIO.js → UHOW7Q65.js} +1 -1
  93. package/dist/cdn/ULGME5RT.js +2 -0
  94. package/dist/cdn/{Z6R3C4AK.js → US3N5L73.js} +1 -1
  95. package/dist/cdn/W5POIPYP.js +2 -0
  96. package/dist/cdn/{TLM457Z5.js → WJWWYBZ7.js} +1 -1
  97. package/dist/cdn/WNEPEEPZ.js +2 -0
  98. package/dist/cdn/WPAZDJHU.js +2 -0
  99. package/dist/cdn/WT72SOAU.js +2 -0
  100. package/dist/cdn/XJGKRAN5.js +2 -0
  101. package/dist/cdn/{JPUUMGX5.js → XS5EOWBK.js} +1 -1
  102. package/dist/cdn/Y5VUMGKH.js +3 -0
  103. package/dist/cdn/{EQDYQOOT.js → YCIFVZ4J.js} +1 -1
  104. package/dist/cdn/{3NSHGKZA.js → YDXJHNDI.js} +1 -1
  105. package/dist/cdn/{32BWFMTC.js → YIOJIA4Y.js} +1 -1
  106. package/dist/cdn/{K2XSYDAP.js → YK6FCXWU.js} +1 -1
  107. package/dist/cdn/YPDHSE2J.js +2 -0
  108. package/dist/cdn/{M5PPX4ZX.js → YQLFXHFG.js} +1 -1
  109. package/dist/cdn/YSVPB3BO.js +2 -0
  110. package/dist/cdn/YUOVGTP5.js +2 -0
  111. package/dist/cdn/Z5CA4C6H.js +2 -0
  112. package/dist/cdn/{TXC7YBGL.js → ZD6XJVGV.js} +1 -1
  113. package/dist/cdn/ZHQXYCPA.js +2 -0
  114. package/dist/cdn/{DLI4XKJ3.js → ZOX4RLS4.js} +1 -1
  115. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  116. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  117. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  118. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  119. package/dist/cdn/index.js +1 -1
  120. package/dist/cdn/main.css +1 -1
  121. package/dist/chunks/fieldAddDelete.js +7 -7
  122. package/dist/chunks/functionalities.js +14 -9
  123. package/dist/chunks/groups.js +8 -61
  124. package/dist/chunks/groups2.js +23 -8
  125. package/dist/chunks/info.js +2 -2
  126. package/dist/chunks/item.js +58 -26
  127. package/dist/chunks/item2.js +34 -30
  128. package/dist/chunks/itemThumbnail.js +21 -21
  129. package/dist/chunks/loadClassificationData.js +26 -27
  130. package/dist/chunks/portal-delete-items-review.js +1 -1
  131. package/dist/chunks/portal-item-badge.js +1 -1
  132. package/dist/chunks/portal-related-items-list-item.js +1 -1
  133. package/dist/chunks/portal.js +6 -6
  134. package/dist/chunks/portal2.js +11 -11
  135. package/dist/chunks/portalEntitySelection.js +54 -0
  136. package/dist/chunks/query.js +13 -13
  137. package/dist/chunks/request.js +49 -41
  138. package/dist/chunks/requests.js +7 -7
  139. package/dist/chunks/selectedMentions.js +25 -0
  140. package/dist/chunks/services.js +1 -1
  141. package/dist/chunks/string.js +14 -10
  142. package/dist/chunks/ui.js +1 -0
  143. package/dist/chunks/url.js +2 -2
  144. package/dist/chunks/user.js +10 -10
  145. package/dist/chunks/utils.js +35 -22
  146. package/dist/chunks/utils2.js +4 -4
  147. package/dist/chunks/utils3.js +88 -657
  148. package/dist/chunks/utils4.js +664 -0
  149. package/dist/components/arcgis-portal-account-switcher/customElement.js +28 -26
  150. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
  151. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +8 -8
  152. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
  153. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +6 -6
  154. package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
  155. package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +3 -3
  156. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +6 -0
  157. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +153 -130
  158. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +25 -15
  159. package/dist/components/arcgis-portal-ai-assistant/customElement.js +574 -2409
  160. package/dist/components/arcgis-portal-ai-assistant/index.js +4 -0
  161. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  162. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +51 -0
  163. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +14 -0
  164. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
  165. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +63 -27
  166. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
  167. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  168. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  169. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  170. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  171. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  172. package/dist/components/arcgis-portal-delete-items/customElement.js +446 -330
  173. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  174. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  175. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +36 -0
  176. package/dist/components/arcgis-portal-entity-picker/customElement.js +202 -120
  177. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  178. package/dist/components/arcgis-portal-field-delete/customElement.js +33 -31
  179. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  180. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  181. package/dist/components/arcgis-portal-group-browser/customElement.js +93 -99
  182. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  183. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +2 -2
  184. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
  185. package/dist/components/arcgis-portal-group-card/customElement.js +18 -18
  186. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  187. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  188. package/dist/components/arcgis-portal-item-card/customElement.js +101 -91
  189. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  190. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  191. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +352 -0
  192. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  193. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  194. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  195. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  196. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  197. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  198. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  199. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  200. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  201. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  202. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  203. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  204. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  205. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  206. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  207. package/dist/components/arcgis-portal-navigation/customElement.js +7 -8
  208. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  209. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  210. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  211. package/dist/components/arcgis-portal-review-related-items/customElement.js +45 -18
  212. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  213. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  214. package/dist/components/arcgis-portal-user-popup/customElement.js +28 -28
  215. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  216. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  217. package/dist/components/portal-related-items-list-item/index.js +1 -1
  218. package/dist/docs/api.json +1 -1
  219. package/dist/docs/docs.json +1 -1
  220. package/dist/docs/vscode.html-custom-data.json +1 -1
  221. package/dist/docs/web-types.json +1 -1
  222. package/dist/index.d.ts +30 -0
  223. package/dist/index.js +155 -6
  224. package/dist/loader.js +15 -12
  225. package/dist/services/groups.d.ts +9 -0
  226. package/dist/services/item.d.ts +9 -0
  227. package/dist/types/item.d.ts +9 -9
  228. package/dist/types/lumina.d.ts +36 -17
  229. package/dist/types/preact.d.ts +39 -17
  230. package/dist/types/react.d.ts +42 -17
  231. package/dist/types/services.d.ts +27 -1
  232. package/dist/types/stencil.d.ts +36 -17
  233. package/dist/utils/generateEmbeddings.d.ts +7 -0
  234. package/dist/utils/semanticSearch.d.ts +60 -0
  235. package/dist/utils/types.d.ts +10 -0
  236. package/package.json +10 -10
  237. package/dist/cdn/23FS4XTG.js +0 -2
  238. package/dist/cdn/2MPQ5IWJ.js +0 -2
  239. package/dist/cdn/3CQKCUM5.js +0 -2
  240. package/dist/cdn/3EYB5GQX.js +0 -2
  241. package/dist/cdn/3LEQ37YT.js +0 -68
  242. package/dist/cdn/46BUEBWS.js +0 -2
  243. package/dist/cdn/4AI52H7C.js +0 -2
  244. package/dist/cdn/4MUB6TL6.js +0 -2
  245. package/dist/cdn/4PRXQFCV.js +0 -2
  246. package/dist/cdn/4QFTKB6T.js +0 -2
  247. package/dist/cdn/4TSXFX3M.js +0 -2
  248. package/dist/cdn/5C5GHX4D.js +0 -2
  249. package/dist/cdn/5PPZNVWG.js +0 -2
  250. package/dist/cdn/66XWNGQ2.js +0 -2
  251. package/dist/cdn/6F4SJDRR.js +0 -2
  252. package/dist/cdn/6RZEXOK3.js +0 -2
  253. package/dist/cdn/A2SQ4EMZ.js +0 -2
  254. package/dist/cdn/AICPYLWE.js +0 -4
  255. package/dist/cdn/AJQT7UXB.js +0 -2
  256. package/dist/cdn/APSYZEPP.js +0 -209
  257. package/dist/cdn/AZOJHVAO.js +0 -2
  258. package/dist/cdn/BSTA5KI5.js +0 -2
  259. package/dist/cdn/CD5UWSCP.js +0 -2
  260. package/dist/cdn/CXXV6WJT.js +0 -2
  261. package/dist/cdn/DDBXEXOV.js +0 -2
  262. package/dist/cdn/DYO5P3F2.js +0 -2
  263. package/dist/cdn/E66BDC6N.js +0 -2
  264. package/dist/cdn/EEAVX4PP.js +0 -2
  265. package/dist/cdn/EITRZQSC.js +0 -2
  266. package/dist/cdn/EMJQI4MA.js +0 -2
  267. package/dist/cdn/FIBQAMJ3.js +0 -2
  268. package/dist/cdn/FIQZPIIK.js +0 -2
  269. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  270. package/dist/cdn/FRE56NBG.js +0 -2
  271. package/dist/cdn/GSOBDGLK.js +0 -2
  272. package/dist/cdn/GUO7HKSP.js +0 -463
  273. package/dist/cdn/GX7U3727.js +0 -2
  274. package/dist/cdn/GXM3XY3J.js +0 -2
  275. package/dist/cdn/I273CANO.js +0 -2
  276. package/dist/cdn/I6NVKNZJ.js +0 -2
  277. package/dist/cdn/J5FKIZAM.js +0 -2
  278. package/dist/cdn/JL52W3Z4.js +0 -2
  279. package/dist/cdn/JOUR2FB2.js +0 -3
  280. package/dist/cdn/LISDTBEX.js +0 -2
  281. package/dist/cdn/LWFACY3F.js +0 -2
  282. package/dist/cdn/LYLQCBVX.js +0 -2
  283. package/dist/cdn/N4VOTJ25.js +0 -2
  284. package/dist/cdn/N5QLV56W.js +0 -2
  285. package/dist/cdn/NRMQDCM3.js +0 -2
  286. package/dist/cdn/OD5WXP7J.js +0 -2
  287. package/dist/cdn/OXPXXIWL.js +0 -2
  288. package/dist/cdn/PMRFXB4F.js +0 -2
  289. package/dist/cdn/PNIFJ5DQ.js +0 -2
  290. package/dist/cdn/PZDI5ZDC.js +0 -2
  291. package/dist/cdn/RVYSVTPQ.js +0 -2
  292. package/dist/cdn/SVROAT3Z.js +0 -2
  293. package/dist/cdn/TBZXKKGP.js +0 -2
  294. package/dist/cdn/TNUCSWBN.js +0 -2
  295. package/dist/cdn/TOICLGFK.js +0 -2
  296. package/dist/cdn/TOTWYGB3.js +0 -2
  297. package/dist/cdn/TUUUK3VX.js +0 -2
  298. package/dist/cdn/U3KMGSVH.js +0 -2
  299. package/dist/cdn/WC3FPLYQ.js +0 -2
  300. package/dist/cdn/XYMBRPC7.js +0 -2
  301. package/dist/cdn/YTODQCOG.js +0 -2
  302. package/dist/cdn/YYTEJVBL.js +0 -2
  303. package/dist/cdn/ZDDN7UKS.js +0 -2
  304. package/dist/chunks/functional.js +0 -9
  305. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  306. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  307. /package/dist/components/arcgis-portal-ai-assistant/{agents/types.d.ts → types/navigation.d.ts} +0 -0
  308. /package/dist/components/arcgis-portal-ai-assistant/{agents → types}/portalRouteKeys.d.ts +0 -0
@@ -1,18 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import d from "@arcgis/core/core/Accessor.js";
3
3
  import { property as n, subclass as p } from "@arcgis/core/core/accessorSupport/decorators.js";
4
- import { c as m, v as u } from "./requests.js";
5
- import { Deferred as h } from "@arcgis/toolkit/promise";
6
- import { makeAccessorController as C } from "@arcgis/lumina-toolkit/useAccessor";
7
- import { Task as v } from "@lit/task";
8
- var w = Object.defineProperty, g = Object.getOwnPropertyDescriptor, e = (i, t, s, a) => {
9
- for (var r = a > 1 ? void 0 : a ? g(t, s) : t, l = i.length - 1, c; l >= 0; l--)
10
- (c = i[l]) && (r = (a ? c(t, s, r) : c(r)) || r);
11
- return a && r && w(t, s, r), r;
4
+ import { a as m, v as u } from "./requests.js";
5
+ import { makeAccessorController as h } from "@arcgis/lumina-toolkit/useAccessor";
6
+ import { Task as C } from "@lit/task";
7
+ var v = Object.defineProperty, w = Object.getOwnPropertyDescriptor, e = (i, a, s, t) => {
8
+ for (var r = t > 1 ? void 0 : t ? w(a, s) : a, l = i.length - 1, c; l >= 0; l--)
9
+ (c = i[l]) && (r = (t ? c(a, s, r) : c(r)) || r);
10
+ return t && r && v(a, s, r), r;
12
11
  };
13
12
  let o = class extends d {
14
13
  constructor() {
15
- super(...arguments), this.fetching = !1, this.status = "idle", this.error = void 0, this.portalUrl = void 0, this._itemClassificationValidationErrors = /* @__PURE__ */ new Map(), this.fetchingPromise = new h();
14
+ super(...arguments), this.fetching = !1, this.status = "idle", this.error = void 0, this.portalUrl = void 0, this._itemClassificationValidationErrors = /* @__PURE__ */ new Map(), this.fetchingPromise = Promise.withResolvers();
16
15
  }
17
16
  // #endregion
18
17
  // #region Accessors
@@ -29,9 +28,9 @@ let o = class extends d {
29
28
  */
30
29
  setPortalClassificationData({
31
30
  portalUrl: i,
32
- schema: t
31
+ schema: a
33
32
  }) {
34
- this.portalUrl = i, this.portalClassificationSchema = t, this.status = "loaded", this.fetchingPromise.resolve(!0);
33
+ this.portalUrl = i, this.portalClassificationSchema = a, this.status = "loaded", this.fetchingPromise.resolve(!0);
35
34
  }
36
35
  /**
37
36
  * Sets the fetching state.
@@ -42,23 +41,23 @@ let o = class extends d {
42
41
  /**
43
42
  * Loads and sets the classification schema from the portal.
44
43
  */
45
- async loadPortalClassificationData(i, { signal: t }) {
44
+ async loadPortalClassificationData(i, { signal: a }) {
46
45
  this.status = "loading";
47
- const { result: s, error: a } = await m(i, t);
48
- if (a) {
49
- a.name === "AbortError" ? console.log("Request aborted.") : (this.error = a, this.status = "error", this.fetchingPromise.reject(a));
46
+ const { result: s, error: t } = await m(i, a);
47
+ if (t) {
48
+ t.name === "AbortError" ? console.log("Request aborted.") : (this.error = t, this.status = "error", this.fetchingPromise.reject(t));
50
49
  return;
51
50
  } else
52
51
  this.setPortalClassificationData({ schema: s, portalUrl: i });
53
52
  }
54
- async validateClassification(i, t, s, a) {
55
- if (!t)
53
+ async validateClassification(i, a, s, t) {
54
+ if (!a)
56
55
  return "";
57
56
  const r = i ? this._itemClassificationValidationErrors.get(i) : void 0;
58
57
  if (r)
59
58
  return await r;
60
59
  const l = (async () => {
61
- const { error: c } = await u(s, t, a ?? {});
60
+ const { error: c } = await u(s, a, t ?? {});
62
61
  return c ? c?.details.raw.messages.join(", ") : "";
63
62
  })();
64
63
  return i && this._itemClassificationValidationErrors.set(i, l), i ? await this._itemClassificationValidationErrors.get(i) : await l;
@@ -87,27 +86,27 @@ o = e([
87
86
  p("custom.ClassificationModel")
88
87
  ], o);
89
88
  let f;
90
- function P(i) {
89
+ function g(i) {
91
90
  return f ??= new o(i), f;
92
91
  }
93
- const A = C(P), S = (i) => new v(i, {
94
- task: async ([t], { signal: s }) => {
95
- if (!t)
92
+ const b = h(g), U = (i) => new C(i, {
93
+ task: async ([a], { signal: s }) => {
94
+ if (!a)
96
95
  throw new Error("Portal item is required to load classification data");
97
- if (t.loaded || await t.load({ signal: s }), i.itemClassification = t.classification, i.classificationModel.status === "loading" && await i.classificationModel.fetchingPromise.promise, !i.portalItem?.portal.hasClassificationSchema) {
96
+ if (a.loaded || await a.load({ signal: s }), i.itemClassification = a.classification, i.classificationModel.status === "loading" && await i.classificationModel.fetchingPromise.promise, !i.portalItem?.portal.hasClassificationSchema) {
98
97
  i.classificationModel.setPortalClassificationData({
99
- portalUrl: t.portal.restUrl,
98
+ portalUrl: a.portal.restUrl,
100
99
  schema: void 0
101
100
  });
102
101
  return;
103
102
  }
104
103
  // Only fetch if the data has not been fetched
105
104
  (i.classificationModel.status === "idle" || // or if the portal url changes
106
- i.classificationModel.status === "loaded" && i.classificationModel.portalUrl !== t.portal.restUrl) && await i.classificationModel.loadPortalClassificationData(t.portal.restUrl, { signal: s });
105
+ i.classificationModel.status === "loaded" && i.classificationModel.portalUrl !== a.portal.restUrl) && await i.classificationModel.loadPortalClassificationData(a.portal.restUrl, { signal: s });
107
106
  },
108
107
  args: () => [i.portalItem]
109
108
  });
110
109
  export {
111
- S as c,
112
- A as u
110
+ U as c,
111
+ b as u
113
112
  };
@@ -5,7 +5,7 @@ import { LitElement as h } from "@arcgis/lumina";
5
5
  import { u as p } from "./useT9n.js";
6
6
  import { s as u } from "./portal-related-items-list-item.js";
7
7
  import { RelatedItemsListItem as g } from "../components/portal-related-items-list-item/customElement.js";
8
- import { b as f } from "./url.js";
8
+ import { g as f } from "./url.js";
9
9
  import { substitute as d } from "@arcgis/core/intl.js";
10
10
  const w = c`:host{display:block}calcite-notice{margin-top:.75rem}calcite-list{margin-block:.75rem}`;
11
11
  function k(n, s, t, e) {
@@ -9,7 +9,7 @@ import { a as x, b as u, i as $, c as E, d as f, g as b, e as K, f as L, h as O
9
9
  import { i as _ } from "./users.js";
10
10
  import { g as U } from "./user2.js";
11
11
  import { f as H } from "./verified.js";
12
- import { a as w, i as m } from "./info.js";
12
+ import { i as w, a as m } from "./info.js";
13
13
  const q = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`, G = [
14
14
  "Operations Dashboard Add In",
15
15
  "Operations Dashboard Extension",
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { css as e } from "lit";
3
- const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__access{display:flex;align-items:center;color:var(--calcite-color-text-2);font-size:.75rem}.item__access-icon{margin-inline-end:.375rem}`;
3
+ const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__status-icon{color:var(--calcite-color-text-2)}.item__access{display:flex;align-items:center;gap:var(--calcite-spacing-unit);color:var(--calcite-color-text-2);padding:7px;border:1px solid var(--calcite-color-border-1);border-radius:1rem}`;
4
4
  export {
5
5
  i as s
6
6
  };
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { i } from "./functionalities.js";
3
- import { a, g as c } from "./url.js";
3
+ import { a, b as c } from "./url.js";
4
4
  function y(e) {
5
5
  return a(e.restUrl);
6
6
  }
@@ -86,13 +86,13 @@ function k(e) {
86
86
  return e?.isPortal ? t.supportsHostedNotebooks : !(i(["Trial Developer", "Trial", "Trial Press"], t.subscriptionInfo?.type) || t.subscriptionInfo?.options?.includes("Developer"));
87
87
  }
88
88
  export {
89
- y as a,
90
- m as b,
89
+ P as a,
90
+ S as b,
91
91
  s as c,
92
92
  H as d,
93
- P as e,
94
- u as f,
95
- S as g,
93
+ u as e,
94
+ m as f,
95
+ y as g,
96
96
  w as h,
97
97
  T as i,
98
98
  k as n
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import o from "@arcgis/core/request.js";
3
3
  import { f as n, r as i } from "./request.js";
4
- import { a } from "./portal.js";
5
- import { a as r } from "./requests.js";
4
+ import { g as a } from "./portal.js";
5
+ import { c as r } from "./requests.js";
6
6
  async function p(e) {
7
7
  const s = `${e.restUrl}/portals/${e.id}/approvedApps`;
8
8
  return await r(s, { query: { returnAllApps: !1 } });
@@ -26,14 +26,14 @@ async function u(e) {
26
26
  async function w(e) {
27
27
  return e?.user ? (await u(e))?.blockedApps || [] : [];
28
28
  }
29
- async function S(e) {
29
+ async function $(e) {
30
30
  return (await n({
31
31
  requester: async () => await o(`${a(e)}portals/self/userDefaultSettings`, { query: { f: "json" } }),
32
32
  key: "memberDefaults",
33
33
  id: e.id
34
34
  })).data;
35
35
  }
36
- async function $(e) {
36
+ async function S(e) {
37
37
  try {
38
38
  return { result: await n({
39
39
  requester: async () => await i({
@@ -49,11 +49,11 @@ async function $(e) {
49
49
  }
50
50
  export {
51
51
  $ as a,
52
- S as b,
53
- p as c,
54
- m as d,
55
- u as e,
56
- d as f,
57
- w as g,
58
- y as h
52
+ p as b,
53
+ m as c,
54
+ u as d,
55
+ d as e,
56
+ y as f,
57
+ S as g,
58
+ w as h
59
59
  };
@@ -0,0 +1,54 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import t from "zod";
3
+ const l = ["item", "group", "user"], u = t.object({
4
+ entityType: t.enum(l),
5
+ searchTerm: t.string().trim().min(1).optional().describe("Suggested search text from the unresolved name or title. Omit when no search text is known.")
6
+ }), m = u.extend({
7
+ kind: t.literal("portal-entity-selection"),
8
+ portalContext: t.object({
9
+ portalUrl: t.string().min(1),
10
+ username: t.string().min(1)
11
+ }).optional()
12
+ }), s = t.string().trim().min(1), a = t.string().trim().min(1), c = t.discriminatedUnion("entityType", [
13
+ t.object({ entityType: t.literal("item"), id: a, label: s }),
14
+ t.object({ entityType: t.literal("group"), id: a, label: s }),
15
+ t.object({
16
+ entityType: t.literal("user"),
17
+ id: a.optional(),
18
+ label: s,
19
+ username: t.string().trim().min(1)
20
+ })
21
+ ]);
22
+ function d(n) {
23
+ return l.filter((e) => n?.[e] !== !1);
24
+ }
25
+ function p(n) {
26
+ const e = m.safeParse(n);
27
+ return e.success ? e.data : void 0;
28
+ }
29
+ function f(n) {
30
+ const { entity: e, entityType: i } = n, r = i === "user" ? {
31
+ entityType: i,
32
+ id: e.id || void 0,
33
+ label: e.fullName || e.username,
34
+ username: e.username
35
+ } : { entityType: i, id: e.id, label: e.title || e.id }, o = c.safeParse(r);
36
+ return o.success ? o.data : void 0;
37
+ }
38
+ function b(n, e) {
39
+ if (typeof n == "string")
40
+ try {
41
+ const i = JSON.parse(n), r = c.safeParse(i);
42
+ return r.success && r.data.entityType === e ? r.data : void 0;
43
+ } catch {
44
+ return;
45
+ }
46
+ }
47
+ export {
48
+ d as a,
49
+ c as b,
50
+ p as g,
51
+ u as p,
52
+ b as r,
53
+ f as t
54
+ };
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { a as p } from "./functionalities.js";
3
- import { g as y } from "./groups2.js";
4
- import { g as l } from "./url.js";
5
- import { a as O, b as g } from "./portal2.js";
3
+ import { e as y } from "./groups.js";
4
+ import { b as l } from "./url.js";
5
+ import { g as O, a as g } from "./portal2.js";
6
6
  import { c as R, h as d, d as m } from "./portal.js";
7
7
  const f = '-typekeywords:("MapAreaPackage") -type:("Map Area" OR "Indoors Map Configuration" OR "Code Attachment")';
8
8
  async function b(e) {
@@ -30,7 +30,7 @@ async function b(e) {
30
30
  r = n(c, r);
31
31
  });
32
32
  } else u && s.push(u);
33
- s.forEach((a) => {
33
+ if (s.forEach((a) => {
34
34
  r = n(a, r);
35
35
  }), e.featuredGroups?.forEach((a) => {
36
36
  if ("id" in a && a.id) {
@@ -40,15 +40,15 @@ async function b(e) {
40
40
  const i = `(${Object.entries(a).map((c) => `${c[0]}:"${c[1]}"`).join(" ")})`;
41
41
  r = n(i, r, !0);
42
42
  }
43
- });
44
- try {
45
- (await g(e))?.groups?.forEach((o) => {
46
- const i = `id:${o}`;
47
- r = n(i, r);
48
- });
49
- } catch (a) {
50
- console.warn("Error fetching member defaults:", a);
51
- }
43
+ }), e.user)
44
+ try {
45
+ (await g(e))?.groups?.forEach((o) => {
46
+ const i = `id:${o}`;
47
+ r = n(i, r);
48
+ });
49
+ } catch (a) {
50
+ console.warn("Error fetching member defaults:", a);
51
+ }
52
52
  return r.length > 0 ? `(${r.join(" OR ")})` : "";
53
53
  }
54
54
  function n(e, t, r) {
@@ -1,65 +1,71 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import P from "@arcgis/core/identity/IdentityManager.js";
2
+ import q from "@arcgis/core/identity/IdentityManager.js";
3
3
  import w from "@arcgis/core/request.js";
4
- import { i as E, g as R, a as g } from "./portal.js";
5
- const c = {}, u = {}, f = {};
6
- async function A({ requester: t, key: e, id: n, cacheOption: i }) {
7
- const s = f[e]?.[n]?.expireAt, a = !!s && (/* @__PURE__ */ new Date()).getTime() > s;
8
- if (c[e]?.[n] && !a)
9
- return c[e][n];
10
- u[e] || (u[e] = {}), (!u[e][n] || a) && (u[e][n] = t());
11
- const o = await u[e][n];
12
- if (c[e] || (c[e] = {}), f[e] || (f[e] = {}), c[e][n] = o, i) {
13
- const { expireAfter: d, getExpireAfterFromResult: r } = i, p = r || d ? (/* @__PURE__ */ new Date()).getTime() + (r?.(o) ?? d ?? 0) : null;
14
- f[e][n] = { ...f[e][n], expireAt: p };
4
+ import { i as R, b, g } from "./portal.js";
5
+ const o = {}, a = {}, s = {};
6
+ async function A({ requester: t, key: e, id: n, cacheOption: r }) {
7
+ const i = s[e]?.[n]?.expireAt, c = !!i && (/* @__PURE__ */ new Date()).getTime() > i;
8
+ if (o[e]?.[n] && !c)
9
+ return o[e][n];
10
+ a[e] || (a[e] = {}), (!a[e][n] || c) && (a[e][n] = t());
11
+ const u = await a[e][n];
12
+ if (o[e] || (o[e] = {}), s[e] || (s[e] = {}), o[e][n] = u, r) {
13
+ const { expireAfter: d, getExpireAfterFromResult: f } = r, h = f || d ? (/* @__PURE__ */ new Date()).getTime() + (f?.(u) ?? d ?? 0) : null;
14
+ s[e][n] = { ...s[e][n], expireAt: h };
15
15
  }
16
- return o;
16
+ return u;
17
17
  }
18
- async function X({
18
+ function W(t, e) {
19
+ return o[t]?.[e];
20
+ }
21
+ function X(t, e) {
22
+ e ? (delete o[t]?.[e], delete a[t]?.[e], delete s[t]?.[e]) : (Reflect.deleteProperty(o, t), Reflect.deleteProperty(a, t), Reflect.deleteProperty(s, t));
23
+ }
24
+ async function j({
19
25
  url: t,
20
26
  portal: e,
21
27
  params: n = {},
22
- options: i = {},
23
- method: s,
24
- abortControllerId: a,
25
- excludeJson: o
28
+ options: r = {},
29
+ method: i,
30
+ abortControllerId: c,
31
+ excludeJson: u
26
32
  }) {
27
- const d = b(a)?.signal, { customToken: r, addTokenManually: p, addSSL: x, useProxy: S } = i, m = { ...n };
28
- if (!t.includes("f=") && !o && (m.f = "json"), r)
29
- m.token = r;
30
- else if (p !== !1) {
31
- const h = await M(e);
32
- h && (m.token = h);
33
+ const d = E(c)?.signal, { customToken: f, addTokenManually: h, addSSL: x, useProxy: C } = r, p = { ...n };
34
+ if (!t.includes("f=") && !u && (p.f = "json"), f)
35
+ p.token = f;
36
+ else if (h !== !1) {
37
+ const m = await M(e);
38
+ m && (p.token = m);
33
39
  }
34
- const T = x ? U(t, e) : t, q = {
35
- query: m,
36
- method: s || "auto",
37
- ...i,
38
- timeout: i.timeout || 0,
39
- useProxy: S,
40
- ...i?.disableIdentityLookup ? { authMode: "anonymous" } : {}
41
- }, C = await w(T, { signal: d, ...q });
42
- return a && (l[a] = void 0), C.data;
40
+ const P = x ? U(t, e) : t, S = {
41
+ query: p,
42
+ method: i || "auto",
43
+ ...r,
44
+ timeout: r.timeout || 0,
45
+ useProxy: C,
46
+ ...r?.disableIdentityLookup ? { authMode: "anonymous" } : {}
47
+ }, T = await w(P, { signal: d, ...S });
48
+ return c && (l[c] = void 0), T.data;
43
49
  }
44
50
  const l = {};
45
- function b(t) {
51
+ function E(t) {
46
52
  if (t)
47
53
  return l[t] && l[t].abort(), l[t] = new AbortController(), l[t];
48
54
  }
49
55
  async function M(t) {
50
- const e = E(t);
56
+ const e = R(t);
51
57
  if (!t?.isPortal || !e)
52
- return R(t);
58
+ return b(t);
53
59
  const n = t?.user;
54
60
  if (!n && e)
55
61
  return;
56
- const { token: i } = await A({
62
+ const { token: r } = await A({
57
63
  requester: async () => await L(t),
58
64
  key: "platformSelf",
59
65
  id: n?.id ?? t.id ?? "<unknown>",
60
- cacheOption: { getExpireAfterFromResult: (s) => s.expires_in }
66
+ cacheOption: { getExpireAfterFromResult: (i) => i.expires_in }
61
67
  });
62
- return i;
68
+ return r;
63
69
  }
64
70
  const L = async (t) => {
65
71
  const n = {
@@ -73,7 +79,7 @@ const L = async (t) => {
73
79
  method: "post"
74
80
  })).data;
75
81
  }, v = async (t) => (await A({
76
- requester: async () => await P.getCredential(g(t), { oAuthPopupConfirmation: !1 }),
82
+ requester: async () => await q.getCredential(g(t), { oAuthPopupConfirmation: !1 }),
77
83
  key: "credential",
78
84
  id: t.user?.id ?? "<unknown>"
79
85
  })).oAuthState?.appId ?? "arcgisonline";
@@ -81,7 +87,9 @@ function U(t, e) {
81
87
  return window.location.protocol === "https:" || e.allSSL ? t.replace("http:", "https:") : t;
82
88
  }
83
89
  export {
90
+ X as c,
84
91
  A as f,
85
92
  M as g,
86
- X as r
93
+ W as i,
94
+ j as r
87
95
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import o from "@arcgis/core/request.js";
3
3
  import { once as h } from "@arcgis/core/core/reactiveUtils.js";
4
- async function g(r, s) {
4
+ async function j(r, s) {
5
5
  const t = `${r}/portals/self/classification/classificationSchema`, c = {};
6
6
  try {
7
7
  const e = (await o(t, { query: { f: "json" }, signal: s })).data;
@@ -14,7 +14,7 @@ async function g(r, s) {
14
14
  }
15
15
  return c;
16
16
  }
17
- async function j(r, s, t) {
17
+ async function R(r, s, t) {
18
18
  const c = `${r}/portals/self/classification/validateClassification`, a = { classificationValue: JSON.stringify(s), f: "json" }, e = {};
19
19
  try {
20
20
  const n = await o(c, { query: a, method: "post", signal: t.signal });
@@ -107,11 +107,11 @@ async function U(r, s, t = "results", c = !1) {
107
107
  }), e;
108
108
  }
109
109
  export {
110
- y as a,
111
- x as b,
112
- g as c,
110
+ j as a,
111
+ C as b,
112
+ y as c,
113
113
  U as f,
114
- C as r,
114
+ x as r,
115
115
  $ as u,
116
- j as v
116
+ R as v
117
117
  };
@@ -0,0 +1,25 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ const c = /* @__PURE__ */ new WeakMap();
3
+ function r(t, e) {
4
+ c.set(t, [...c.get(t) ?? [], e]);
5
+ }
6
+ function a(t, e) {
7
+ const o = c.get(t) ?? [];
8
+ return o.filter(({ text: n }) => {
9
+ const s = e.indexOf(n), i = s + n.length;
10
+ return (
11
+ // The selected text must still appear exactly once in the submitted message.
12
+ s !== -1 && !e.includes(n, s + 1) && // Different selections with the same text cannot be resolved to a single ID.
13
+ o.filter((d) => d.text === n).length === 1 && // Require a whole mention, not a substring inside another token.
14
+ (s === 0 || /\s/u.test(e[s - 1])) && (i === e.length || /\s/u.test(e[i]))
15
+ );
16
+ }).map(({ part: n }) => n);
17
+ }
18
+ function g(t) {
19
+ c.delete(t);
20
+ }
21
+ export {
22
+ r as a,
23
+ g as c,
24
+ a as g
25
+ };
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { g as a, a as i } from "./portal.js";
2
+ import { b as a, g as i } from "./portal.js";
3
3
  const o = (t) => t.thumbnailUrl !== void 0;
4
4
  function u(t, r, n = !1) {
5
5
  if (o(t))
@@ -1,10 +1,10 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { s as a } from "./dom.js";
3
- function c(e) {
3
+ function i(e) {
4
4
  const r = /(https?:\/\/[^\s]+)/gu;
5
5
  return e?.replace(r, (t) => `<a href="${t}" target="_blank">${t}</a>`);
6
6
  }
7
- function i(e) {
7
+ function c(e) {
8
8
  return e?.replace(/(?:\r)/gu, "&#10;").replace(/(?:\n)/gu, "&#13;");
9
9
  }
10
10
  function s(e) {
@@ -22,21 +22,25 @@ function u(e = "") {
22
22
  const r = a(e);
23
23
  return ["id:", "title:", "type:", "typekeywords:", "owner:"].some((n) => e.includes(n)) ? r.replace(/[<>\/\\?]/gu, "\\$&").trim() : r.replace(/[\[\]\{\}\(\)\-+:<>\/\\?]/gu, "\\$&").trim();
24
24
  }
25
- function g(e) {
25
+ function m(e) {
26
26
  const r = u(e.replace(/\s+/gu, " "));
27
27
  if (r)
28
28
  return `title:"${r.replace(/"/gu, '\\"')}"`;
29
29
  }
30
- function m(e) {
31
- return o(i(c(s(e))));
30
+ function g(...e) {
31
+ return e.map((r) => r?.trim()).filter((r) => !!r).map((r) => `(${r})`).join(" AND ");
32
32
  }
33
33
  function f(e) {
34
+ return o(c(i(s(e))));
35
+ }
36
+ function T(e) {
34
37
  return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
35
38
  }
36
39
  export {
37
- u as a,
38
- d as b,
39
- g as c,
40
- m as g,
41
- f as r
40
+ g as a,
41
+ u as b,
42
+ m as c,
43
+ T as d,
44
+ f as g,
45
+ d as r
42
46
  };
package/dist/chunks/ui.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  const s = {
3
+ xxs: 320,
3
4
  sm: 640,
4
5
  md: 768,
5
6
  lg: 1024
@@ -12,6 +12,6 @@ function i({ portal: o }) {
12
12
  }
13
13
  export {
14
14
  l as a,
15
- i as b,
16
- c as g
15
+ c as b,
16
+ i as g
17
17
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { f, r as a } from "./request.js";
3
- import { a as u, g as y } from "./portal.js";
4
- import { f as c, r as l, a as d } from "./requests.js";
3
+ import { g as u, b as y } from "./portal.js";
4
+ import { f as c, b as l, c as d } from "./requests.js";
5
5
  async function U(s, r, e) {
6
6
  const t = `${e ? "https://www.arcgis.com/sharing/rest/" : u(r)}community/users/${s}`, o = t?.includes("www.arcgis.com") && r.isPortal, m = t?.includes(".arcgis.com") && !r.isPortal && !r.user, p = o || m ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
7
7
  return await f({
@@ -51,7 +51,7 @@ async function q(s, r) {
51
51
  "provisionedListings"
52
52
  );
53
53
  }
54
- async function L(s, r) {
54
+ async function b(s, r) {
55
55
  const e = `${i(s, r)}/linkedUsers`;
56
56
  try {
57
57
  return await c(e, { num: 10 }, "linkedUsers");
@@ -59,7 +59,7 @@ async function L(s, r) {
59
59
  return console.error("Error fetching linked accounts:", n), [];
60
60
  }
61
61
  }
62
- async function v(s, r, e) {
62
+ async function L(s, r, e) {
63
63
  try {
64
64
  return await c(
65
65
  `https://${s.portalHostname}/sharing/rest/community/users/${r}/linkedUsers`,
@@ -70,7 +70,7 @@ async function v(s, r, e) {
70
70
  return console.error(n), [];
71
71
  }
72
72
  }
73
- async function O({
73
+ async function v({
74
74
  portal: s,
75
75
  user: r,
76
76
  targetUser: e,
@@ -82,7 +82,7 @@ async function O({
82
82
  });
83
83
  return o.error && console.error(o.error), o;
84
84
  }
85
- async function R({
85
+ async function O({
86
86
  portal: s,
87
87
  user: r,
88
88
  linkedUsername: e
@@ -91,13 +91,13 @@ async function R({
91
91
  return t.error && console.error(t.error), t;
92
92
  }
93
93
  export {
94
- L as a,
94
+ b as a,
95
95
  $ as b,
96
96
  P as c,
97
97
  q as d,
98
98
  A as e,
99
99
  U as f,
100
- v as g,
101
- O as l,
102
- R as u
100
+ L as g,
101
+ v as l,
102
+ O as u
103
103
  };