@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,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as L } from "../../chunks/runtime.js";
3
- import { keyed as _ } from "lit/directives/keyed.js";
4
- import { LitElement as C, createEvent as k, safeClassMap as v, nothing as x } from "@arcgis/lumina";
5
- import { html as d, svg as T } from "lit";
6
- import { s as M } from "../../chunks/portal-account-switcher.js";
7
- import { g as K, a as N, l as E, u as H } from "../../chunks/user.js";
2
+ import { c as C } from "../../chunks/runtime.js";
3
+ import { keyed as v } from "lit/directives/keyed.js";
4
+ import { LitElement as x, createEvent as A, safeClassMap as T, nothing as M } from "@arcgis/lumina";
5
+ import { html as d, svg as K } from "lit";
6
+ import { s as N } from "../../chunks/portal-account-switcher.js";
7
+ import { g as E, a as H, l as P, u as W } from "../../chunks/user.js";
8
8
  import f from "@arcgis/core/identity/IdentityManager.js";
9
- import { t as P } from "../../chunks/functionalities.js";
10
- import { u as W } from "../../chunks/useT9n.js";
11
- import { m as B } from "../../chunks/icons.js";
12
- import { substitute as m } from "@arcgis/core/intl.js";
13
- import { g as R } from "../../chunks/services.js";
14
- const U = 1260 * 1e3, J = 2500;
15
- function I(r, e = "_blank", s = 582, t = 670) {
16
- const n = window.screenLeft ?? 0, i = window.screenTop ?? 0, a = window.innerWidth || document.documentElement.clientWidth || window.screen.width, o = window.innerHeight || document.documentElement.clientHeight || window.screen.height, c = a / 2 - s / 2 + n, u = o / 2 - t / 2 + i, l = window.open(r, e, `scrollbars=no, width=${s}, height=${t}, top=${u}, left=${c}`);
17
- return l?.focus(), l;
9
+ import { t as B } from "../../chunks/functionalities.js";
10
+ import { u as R } from "../../chunks/useT9n.js";
11
+ import { m as J } from "../../chunks/icons.js";
12
+ import { substitute as k } from "@arcgis/core/intl.js";
13
+ import { g as D } from "../../chunks/services.js";
14
+ const S = 1260 * 1e3, j = 2500;
15
+ function _(r, e = "_blank", s = 582, t = 670) {
16
+ const n = window.screenLeft ?? 0, i = window.screenTop ?? 0, a = window.innerWidth || document.documentElement.clientWidth || window.screen.width, o = window.innerHeight || document.documentElement.clientHeight || window.screen.height, c = a / 2 - s / 2 + n, l = o / 2 - t / 2 + i, u = window.open(r, e, `scrollbars=no, width=${s}, height=${t}, top=${l}, left=${c}`);
17
+ return u?.focus(), u;
18
18
  }
19
- function D(r) {
20
- const e = f.findOAuthInfo(r.url), { locale: s = "en", expiration: t = U } = e ?? {}, n = new URLSearchParams({
19
+ function q(r) {
20
+ const e = f.findOAuthInfo(r.url), { locale: s = "en", expiration: t = S } = e ?? {}, n = new URLSearchParams({
21
21
  locale: s,
22
22
  // Linking accounts ALWAYS uses the "arcgisonline" client id
23
23
  client_id: "arcgisonline",
@@ -31,9 +31,9 @@ function D(r) {
31
31
  redirect_uri: `https://${r.portalHostname}/home/link_account_callback.html`,
32
32
  state: JSON.stringify({ useMessage: !0 })
33
33
  }), i = `https://${r.portalHostname}/sharing/oauth2/authorize?${n.toString()}`;
34
- I(i);
34
+ _(i);
35
35
  }
36
- function A(r) {
36
+ function $(r) {
37
37
  const {
38
38
  config: e,
39
39
  token: s,
@@ -45,7 +45,7 @@ function A(r) {
45
45
  client_id: t,
46
46
  ...s && { token: s },
47
47
  parent: window.location.origin,
48
- redirect_uri: `${e.baseUrl}signout_callback.html`,
48
+ redirect_uri: `${e.baseUrl}/check_sign_in_status.html`,
49
49
  state: JSON.stringify({
50
50
  signout: !0,
51
51
  origin: window.location.origin,
@@ -55,8 +55,8 @@ function A(r) {
55
55
  }), o = `${e.restBaseUrl}oauth2/signout?${a.toString()}`, c = document.createElement("iframe");
56
56
  c.src = o, c.style.display = "none", document.body.appendChild(c);
57
57
  }
58
- function j(r, e, s) {
59
- const t = g(r.orgUrlKey, e), n = f.findOAuthInfo(t), { appId: i, locale: a = "en", expiration: o = U } = n ?? {}, c = S(r.provider), u = new URLSearchParams({
58
+ function z(r, e, s) {
59
+ const t = h(r.orgUrlKey, e), n = f.findOAuthInfo(t), { appId: i, locale: a = "en", expiration: o = S } = n ?? {}, c = y(r.provider), l = new URLSearchParams({
60
60
  locale: a,
61
61
  client_id: s ?? i ?? "arcgisonline",
62
62
  response_type: "token",
@@ -72,10 +72,10 @@ function j(r, e, s) {
72
72
  portalUrl: t,
73
73
  origin: window.location.origin
74
74
  })
75
- }), l = `${y(r, e)}?${u.toString()}`;
76
- I(l);
75
+ }), u = `${b(r, e)}?${l.toString()}`;
76
+ _(u);
77
77
  }
78
- function q({
78
+ function F({
79
79
  accounts: r,
80
80
  clientId: e = "arcgisonline",
81
81
  usersToFilter: s = [],
@@ -90,32 +90,33 @@ function q({
90
90
  return i[a.username] = o, (s.includes(a.username) || s.includes(a.username.toLowerCase()) || t === "org" && a.orgUrlKey || e === "esriapps" && a.userType !== "both") && (o.allowed = !1), i;
91
91
  }, n), n;
92
92
  }
93
- function z({
93
+ function G({
94
94
  account: r,
95
95
  credential: e,
96
- client_id: s,
97
- portal: t
96
+ clientId: s,
97
+ portal: t,
98
+ redirectUri: n
98
99
  }) {
99
- const n = S(r.provider), i = y(r, t), a = O(r, t), o = new URLSearchParams({
100
+ const i = y(r.provider), a = b(r, t), o = n || L(r, t), c = new URLSearchParams({
100
101
  client_id: s,
101
- redirect_uri: a,
102
+ redirect_uri: o,
102
103
  parent: window.location.origin,
103
104
  response_type: "token",
104
105
  force_login: "false",
105
106
  ...e.userId && { prepopulatedusername: e.userId },
106
- ...n === "social" && { socialLoginProviderName: r.provider },
107
- expiration: `${(e?.expires ?? Date.now() + U) - Date.now()}`
107
+ ...i === "social" && { socialLoginProviderName: r.provider },
108
+ expiration: `${(e?.expires ?? Date.now() + S) - Date.now()}`
108
109
  });
109
- return `${i}?${o.toString()}`;
110
+ return `${a}?${c.toString()}`;
110
111
  }
111
- function S(r) {
112
- return F(r) ? "social" : r === "enterprise" ? "enterprise" : r.includes("oidc") ? "oidc" : "default";
112
+ function y(r) {
113
+ return Q(r) ? "social" : r === "enterprise" ? "enterprise" : r.includes("oidc") ? "oidc" : "default";
113
114
  }
114
- function F(r) {
115
+ function Q(r) {
115
116
  return ["apple", "facebook", "github", "google"].includes(r);
116
117
  }
117
- function y(r, e) {
118
- const s = g(r.orgUrlKey, e).toLowerCase(), t = S(r.provider);
118
+ function b(r, e) {
119
+ const s = h(r.orgUrlKey, e).toLowerCase(), t = y(r.provider);
119
120
  let n = "";
120
121
  switch (t) {
121
122
  case "social":
@@ -130,43 +131,43 @@ function y(r, e) {
130
131
  }
131
132
  return `${s}/sharing/rest/oauth2/${n}authorize`;
132
133
  }
133
- function g(r, e) {
134
+ function h(r, e) {
134
135
  return r?.startsWith("https://") ? r : r && e.customBaseUrl ? `https://${r}.${e.customBaseUrl}` : `https://${e.portalHostname}`;
135
136
  }
136
- function O(r, e) {
137
- return `${g(r.orgUrlKey, e)}/home/accountswitcher-callback.html`;
137
+ function L(r, e) {
138
+ return `${h(r.orgUrlKey, e)}/home/accountswitcher-callback.html`;
138
139
  }
139
- function G(r, e) {
140
- return f.findCredential(g(r.orgUrlKey, e), r.username);
140
+ function V(r, e) {
141
+ return f.findCredential(h(r.orgUrlKey, e), r.username);
141
142
  }
142
- function Q(r, e) {
143
- const s = G(r, e);
143
+ function X(r, e) {
144
+ const s = V(r, e);
144
145
  if (s)
145
146
  return s;
146
- const t = g(r.orgUrlKey, e), n = `${t}/home/check_sign_in_status.html#state=${JSON.stringify({
147
+ const t = h(r.orgUrlKey, e), n = `${t}/home/check_sign_in_status.html#state=${JSON.stringify({
147
148
  origin: window.location.origin,
148
149
  server: t,
149
150
  orgKey: t
150
151
  })}`;
151
- V(n, `iframe__for-${t}`);
152
+ Y(n, `iframe__for-${t}`);
152
153
  }
153
- function V(r, e) {
154
+ function Y(r, e) {
154
155
  const s = document.createElement("iframe");
155
156
  s.src = r, s.id = e, s.style.display = "none", document.body.appendChild(s);
156
157
  }
157
- const $ = 100;
158
- class X extends C {
158
+ const U = 100;
159
+ class Z extends x {
159
160
  constructor() {
160
- super(), this.messages = W({ blocking: !0 }), this.targetUser = "", this.targetToken = "", this.accountAccess = {}, this.remainingSignouts = 0, this.signoutHandle = 0, this.linkedAccounts = [], this.loading = !1, this.signedInStatus = {}, this.showAssociatedAccountsWarning = !1, this.signedInAccounts = [], this.clientId = "arcgisonline", this.signout = !1, this.signoutOptions = {
161
+ super(), this.messages = R({ blocking: !0 }), this.targetUser = "", this.targetToken = "", this.accountAccess = {}, this.remainingSignouts = 0, this.signoutHandle = 0, this.linkedAccounts = [], this.loading = !1, this.signedInStatus = {}, this.showAssociatedAccountsWarning = !1, this.signedInAccounts = [], this.clientId = "arcgisonline", this.signout = !1, this.signoutOptions = {
161
162
  redirectToClientUri: !1,
162
163
  displaySignoutComplete: !1
163
- }, this.arcgisAccountSwitch = k(), this.arcgisClose = k(), this.arcgisSignoutComplete = k(), this.listenOn(window, "message", this.handleMessageEvent);
164
+ }, this.arcgisAccountSwitch = A(), this.arcgisClose = A(), this.arcgisSignoutComplete = A(), this.listenOn(window, "message", this.handleMessageEvent);
164
165
  }
165
166
  static {
166
- this.properties = { linkedAccounts: 16, userAccounts: 16, user: 16, credential: 16, alertOptions: 16, loading: 16, signedInStatus: 16, showAssociatedAccountsWarning: 16, signedInAccounts: 16, portal: 0, clientId: 1, signout: 5, signoutOptions: 0 };
167
+ this.properties = { linkedAccounts: 16, userAccounts: 16, user: 16, credential: 16, alertOptions: 16, loading: 16, signedInStatus: 16, showAssociatedAccountsWarning: 16, signedInAccounts: 16, portal: 0, clientId: 1, redirectUri: 1, signout: 5, signoutOptions: 0 };
167
168
  }
168
169
  static {
169
- this.styles = M;
170
+ this.styles = N;
170
171
  }
171
172
  willUpdate(e) {
172
173
  if (e.has("portal") && (this.user = this.portal?.user), (e.has("portal") || e.has("user")) && this.portal && this.user) {
@@ -175,13 +176,21 @@ class X extends C {
175
176
  }
176
177
  if (e.has("linkedAccounts") || e.has("signedInStatus")) {
177
178
  if (this.signout) {
178
- const { signedInStatus: s, linkedAccounts: t, portal: n, signoutOptions: i, clientId: a } = this, o = Object.keys(s).filter((p) => s[p] !== null).map((p) => t.find((w) => w.username === p));
179
- this.remainingSignouts = o.length + 1;
180
- const c = g(n.urlKey ?? "", n), u = `${c}/sharing/rest`;
181
- let { displaySignoutComplete: l = !0, redirectToClientUri: h = !0 } = i;
182
- o.length > 0 && (l = !1, h = !1), this.loading = !0, A({ displaySignoutComplete: l, redirectToClientUri: h, clientId: a, config: { baseUrl: c, restBaseUrl: u } }), this.signoutHandle = window.setTimeout(() => {
183
- this.remainingSignouts -= 1, this.finishSignout({ accountOrigin: c, redirectToClientUri: h, displaySignoutComplete: l });
184
- }, J);
179
+ const { signedInStatus: s, linkedAccounts: t, portal: n, signoutOptions: i, clientId: a, user: o } = this, c = Object.keys(s).filter((m) => s[m] !== null).map((m) => t.find((I) => I.username === m));
180
+ this.remainingSignouts = c.length + 1;
181
+ const l = h(n.urlKey ?? "", n), u = `${l}/sharing/rest`;
182
+ let { displaySignoutComplete: g = !0, redirectToClientUri: p = !0 } = i;
183
+ c.length > 0 && (g = !1, p = !1), this.loading = !0;
184
+ const w = f.findCredential(l, o?.id || o?.username);
185
+ $({
186
+ displaySignoutComplete: g,
187
+ redirectToClientUri: p,
188
+ clientId: a,
189
+ config: { baseUrl: l, restBaseUrl: u },
190
+ token: w?.token
191
+ }), this.signoutHandle = window.setTimeout(() => {
192
+ this.remainingSignouts -= 1, this.finishSignout({ accountOrigin: l, redirectToClientUri: p, displaySignoutComplete: g });
193
+ }, j);
185
194
  }
186
195
  return;
187
196
  }
@@ -229,24 +238,24 @@ class X extends C {
229
238
  return;
230
239
  }
231
240
  if (i === "success") {
232
- const { portal: u, user: l } = this, h = this.linkedAccounts.find((b) => b.username === a.user);
233
- h?.orgUrlKey === this.portal.urlKey && f.findCredential(`https://${u.portalHostname}`, l?.username)?.destroy();
234
- const p = {
241
+ const { portal: l, user: u, redirectUri: g } = this, p = this.linkedAccounts.find((O) => O.username === a.user);
242
+ p?.orgUrlKey === this.portal.urlKey && f.findCredential(`https://${l.portalHostname}`, u?.username)?.destroy();
243
+ const w = {
235
244
  server: a.portalUrl,
236
245
  userId: a.user,
237
246
  token: o,
238
247
  expires: Number(e.data.expires_in) + Date.now(),
239
248
  ssl: c === void 0 || c !== "false"
240
249
  };
241
- f.registerToken(p);
242
- const w = z({
243
- account: h,
244
- credential: p,
245
- // eslint-disable-next-line @typescript-eslint/naming-convention
246
- client_id: t,
247
- portal: u
250
+ f.registerToken(w);
251
+ const m = G({
252
+ account: p,
253
+ credential: w,
254
+ clientId: t,
255
+ portal: l,
256
+ redirectUri: g
248
257
  });
249
- window.self !== window.top ? window.top?.postMessage({ type: "navigate", url: w }) : window.location.href = w;
258
+ window.self !== window.top ? window.top?.postMessage({ type: "navigate", url: m }) : window.location.href = m;
250
259
  }
251
260
  }
252
261
  handleCheckSignInStatusMessage(e) {
@@ -265,13 +274,13 @@ class X extends C {
265
274
  this.showAlert("danger", c.errors.selfLink);
266
275
  return;
267
276
  }
268
- if (o.find((l) => l.username === t)) {
269
- this.showAlert("danger", m(c.errors.alreadyLinked, { username: t }));
277
+ if (o.find((u) => u.username === t)) {
278
+ this.showAlert("danger", k(c.errors.alreadyLinked, { username: t }));
270
279
  return;
271
280
  }
272
- const u = await K(i, t, n);
273
- if (u?.length) {
274
- this.userAccounts = u, this.targetUser = t ?? "", this.targetToken = n ?? "", this.showAssociatedAccountsWarning = !0;
281
+ const l = await E(i, t, n);
282
+ if (l?.length) {
283
+ this.userAccounts = l, this.targetUser = t ?? "", this.targetToken = n ?? "", this.showAssociatedAccountsWarning = !0;
275
284
  return;
276
285
  }
277
286
  this.linkAccount(t, n);
@@ -285,16 +294,16 @@ class X extends C {
285
294
  const { portal: t, linkedAccounts: n, targetUser: i, clientId: a } = this, o = n.find((p) => p.username === i);
286
295
  if (!o)
287
296
  return;
288
- const c = O(o, t), u = g(o.orgUrlKey, t), l = new URLSearchParams({
297
+ const c = L(o, t), l = h(o.orgUrlKey, t), u = new URLSearchParams({
289
298
  // eslint-disable-next-line @typescript-eslint/naming-convention
290
299
  response_type: "token",
291
300
  // eslint-disable-next-line @typescript-eslint/naming-convention
292
301
  client_id: a,
293
302
  // eslint-disable-next-line @typescript-eslint/naming-convention
294
303
  redirect_uri: c,
295
- state: JSON.stringify({ user: o.username, portalUrl: u })
296
- }), h = `${y(o, t)}?${l.toString()}`;
297
- window.opener ? (window.opener.location.href = h, window.close()) : window.location.href = h;
304
+ state: JSON.stringify({ user: o.username, portalUrl: l })
305
+ }), g = `${b(o, t)}?${u.toString()}`;
306
+ window.opener ? (window.opener.location.href = g, window.close()) : window.location.href = g;
298
307
  }
299
308
  }
300
309
  }
@@ -306,41 +315,41 @@ class X extends C {
306
315
  this.linkedAccounts = [], this.loading = !1;
307
316
  return;
308
317
  }
309
- this.linkedAccounts = await N(this.portal, this.user), this.linkedAccounts.length && (this.signedInStatus = this.linkedAccounts.filter((e) => e.orgUrlKey !== this.portal.urlKey).reduce((e, s) => (e[s.username] = Q(s, this.portal) ?? null, e), {}), this.accountAccess = q({ accounts: this.linkedAccounts, clientId: this.clientId })), this.loading = !1;
318
+ this.linkedAccounts = await H(this.portal, this.user), this.linkedAccounts.length && (this.signedInStatus = this.linkedAccounts.filter((e) => e.orgUrlKey !== this.portal.urlKey).reduce((e, s) => (e[s.username] = X(s, this.portal) ?? null, e), {}), this.accountAccess = F({ accounts: this.linkedAccounts, clientId: this.clientId })), this.loading = !1;
310
319
  }
311
320
  async linkAccount(e, s) {
312
321
  const { portal: t, user: n } = this;
313
322
  if (!t || !n)
314
323
  return;
315
- const i = await E({ portal: t, user: n, targetUser: e, targetToken: s }), { messages: a } = this;
324
+ const i = await P({ portal: t, user: n, targetUser: e, targetToken: s }), { messages: a } = this;
316
325
  if (i.error) {
317
- this.showAlert("danger", m(a.errors.linkAccount, { username: e })), this.targetUser = "", this.userAccounts = [];
326
+ this.showAlert("danger", k(a.errors.linkAccount, { username: e })), this.targetUser = "", this.userAccounts = [];
318
327
  return;
319
328
  }
320
329
  const o = this.userAccounts?.length ? a.success.linkAccountMultiple : a.success.linkAccount;
321
- this.showAlert("success", m(o, { username: e })), this.targetUser = "", this.userAccounts = [], await P(350), this.findLinkedUsers();
330
+ this.showAlert("success", k(o, { username: e })), this.targetUser = "", this.userAccounts = [], await B(350), this.findLinkedUsers();
322
331
  }
323
332
  async unlinkAccount(e) {
324
333
  if (!this.portal || !this.user)
325
334
  return;
326
- const { messages: s, portal: t, user: n } = this, { success: i } = await H({ portal: t, user: n, linkedUsername: e.username });
327
- i ? this.showAlert("success", m(s.success.unlinkAccount, { username: e.username })) : this.showAlert("danger", m(s.errors.unlinkAccount, { username: e.username })), await this.findLinkedUsers();
335
+ const { messages: s, portal: t, user: n } = this, { success: i } = await W({ portal: t, user: n, linkedUsername: e.username });
336
+ i ? this.showAlert("success", k(s.success.unlinkAccount, { username: e.username })) : this.showAlert("danger", k(s.errors.unlinkAccount, { username: e.username })), await this.findLinkedUsers();
328
337
  }
329
338
  startAccountLink() {
330
- D(this.portal);
339
+ q(this.portal);
331
340
  }
332
341
  switchAccount(e) {
333
342
  const { portal: s, user: t, clientId: n } = this;
334
343
  if (!s || !t || !e)
335
344
  return;
336
- const i = g(t.sourceJSON.orgUrlKey ?? "", s), a = f.findCredential(i, t.id || t.username);
337
- a && A({ config: { baseUrl: i, restBaseUrl: `${i}/sharing/rest` }, token: a?.token, clientId: n }), j(e, s, n);
345
+ const i = h(t.sourceJSON.orgUrlKey ?? "", s), a = f.findCredential(i, t.id || t.username);
346
+ a && $({ config: { baseUrl: i, restBaseUrl: `${i}/sharing/rest` }, token: a?.token, clientId: n }), z(e, s, n);
338
347
  }
339
348
  signoutAll(e) {
340
349
  const { portal: s, signedInStatus: t, clientId: n } = this;
341
350
  e.forEach((i) => {
342
- const a = g(i.orgUrlKey, s), o = `${a}/sharing/rest`, c = t[i.username];
343
- A({ config: { baseUrl: a, restBaseUrl: o }, token: c?.token, clientId: n });
351
+ const a = h(i.orgUrlKey, s), o = `${a}/sharing/rest`, c = t[i.username];
352
+ $({ config: { baseUrl: a, restBaseUrl: o }, token: c?.token, clientId: n });
344
353
  });
345
354
  }
346
355
  showAlert(e, s, t) {
@@ -355,7 +364,7 @@ class X extends C {
355
364
  this.alertOptions = {
356
365
  kind: "danger",
357
366
  icon: "exclamation-mark-triangle-f",
358
- title: s.unlinkTitle,
367
+ title: s.unlinkAccount,
359
368
  message: s.unlinkWarning,
360
369
  actions: [
361
370
  {
@@ -382,20 +391,20 @@ class X extends C {
382
391
  }
383
392
  return d`<calcite-dialog .heading=${i.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${() => {
384
393
  this.arcgisClose.emit();
385
- }}><calcite-block .heading=${i.currentAccount} heading-level=3 .description=${i.signedInAs} expanded class="current-account-block" tabindex=-1>${_(t.id ?? t.username, d`<calcite-block class="current-account" .label=${n.urlKey ? `${t.username}, ${n.name}` : t.username} heading-level=4 .heading=${t.username} .description=${n.urlKey ? `${t.fullName ?? t.username}, ${n.name}` : t.fullName ?? t.username}><calcite-avatar slot=content-start inert .fullName=${t.fullName ?? void 0} .username=${t.username} .userId=${t.id} .thumbnail=${R(t, n) ?? void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${e.length > 0 ? d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 .description=${i.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= $}>${i.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${n} .linkedAccounts=${e} .accountAccess=${s} .signedInUsers=${Object.keys(this.signedInStatus).filter((o) => this.signedInStatus[o] !== null)} interactive @arcgisAccountSwitch=${(o) => {
394
+ }}><calcite-block .heading=${i.currentAccount} heading-level=3 .description=${i.signedInAs} expanded class="current-account-block" tabindex=-1>${v(t.id ?? t.username, d`<calcite-block class="current-account" .label=${n.urlKey ? `${t.username}, ${n.name}` : t.username} heading-level=4 .heading=${t.username} .description=${n.urlKey ? `${t.fullName ?? t.username}, ${n.name}` : t.fullName ?? t.username}><calcite-avatar slot=content-start inert .fullName=${t.fullName ?? void 0} .username=${t.username} .userId=${t.id} .thumbnail=${D(t, n) ?? void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${e.length > 0 ? d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 .description=${i.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= U}>${i.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${n} .linkedAccounts=${e} .accountAccess=${s} .signedInUsers=${Object.keys(this.signedInStatus).filter((o) => this.signedInStatus[o] !== null)} interactive @arcgisAccountSwitch=${(o) => {
386
395
  this.switchAccount(o.detail.account);
387
396
  }} @arcgisAccountUnlink=${(o) => {
388
397
  this.showUnlinkConfirmation(o.detail.account);
389
- }}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${T`<path d=${B.couple ?? x} fill=currentColor />`}</svg><h4>${i.emptyListTitle}</h4><p>${i.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= $}>${i.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length >= $}><div slot=message>${i.maxAccounts}</div></calcite-notice><calcite-alert .label=${i.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind !== "danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${() => {
398
+ }}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${K`<path d=${J.couple ?? M} fill=currentColor />`}</svg><h4>${i.emptyListTitle}</h4><p>${i.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= U}>${i.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length >= U}><div slot=message>${i.maxAccounts}</div></calcite-notice><calcite-alert .label=${i.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind !== "danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${() => {
390
399
  this.alertOptions = void 0;
391
- }}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${v({ "alert-message": !0, "short-message": !!this.alertOptions?.actions?.length })}>${this.alertOptions.message}</p>` || ""}${this.alertOptions?.actions?.map((o) => d`<calcite-button slot=actions-end .kind=${o.kind} .appearance=${o.appearance} @click=${o.clickHandler}>${o.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning && d`<arcgis-portal-account-switcher-accounts .portal=${n} .targetUser=${this.targetUser} .accounts=${this.userAccounts ?? []} @arcgisLinkAll=${() => {
400
+ }}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${T({ "alert-message": !0, "short-message": !!this.alertOptions?.actions?.length })}>${this.alertOptions.message}</p>` || ""}${this.alertOptions?.actions?.map((o) => d`<calcite-button slot=actions-end .kind=${o.kind} .appearance=${o.appearance} @click=${o.clickHandler}>${o.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning && d`<arcgis-portal-account-switcher-accounts .portal=${n} .targetUser=${this.targetUser} .accounts=${this.userAccounts ?? []} @arcgisLinkAll=${() => {
392
401
  this.linkAccount(this.targetUser, this.targetToken);
393
402
  }} @arcgisCloseDialog=${() => {
394
403
  this.showAssociatedAccountsWarning = !1;
395
404
  }}></arcgis-portal-account-switcher-accounts>` || ""}`;
396
405
  }
397
406
  }
398
- L("arcgis-portal-account-switcher", X);
407
+ C("arcgis-portal-account-switcher", Z);
399
408
  export {
400
- X as ArcgisPortalAccountSwitcher
409
+ Z as ArcgisPortalAccountSwitcher
401
410
  };
@@ -39,7 +39,6 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
39
39
  userDisabled: string;
40
40
  userNotAllowed: string;
41
41
  unlink: string;
42
- unlinkTitle: string;
43
42
  unlinkWarning: string;
44
43
  linkTitle: string;
45
44
  linkWarning: string;
@@ -101,7 +100,6 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
101
100
  userDisabled: string;
102
101
  userNotAllowed: string;
103
102
  unlink: string;
104
- unlinkTitle: string;
105
103
  unlinkWarning: string;
106
104
  linkTitle: string;
107
105
  linkWarning: string;
@@ -44,7 +44,6 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
44
44
  userDisabled: string;
45
45
  userNotAllowed: string;
46
46
  unlink: string;
47
- unlinkTitle: string;
48
47
  unlinkWarning: string;
49
48
  linkTitle: string;
50
49
  linkWarning: string;
@@ -106,7 +105,6 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
106
105
  userDisabled: string;
107
106
  userNotAllowed: string;
108
107
  unlink: string;
109
- unlinkTitle: string;
110
108
  unlinkWarning: string;
111
109
  linkTitle: string;
112
110
  linkWarning: string;
@@ -38,7 +38,6 @@ export abstract class ArcgisPortalAccountSwitcherSignout extends LitElement {
38
38
  userDisabled: string;
39
39
  userNotAllowed: string;
40
40
  unlink: string;
41
- unlinkTitle: string;
42
41
  unlinkWarning: string;
43
42
  linkTitle: string;
44
43
  linkWarning: string;
@@ -100,7 +99,6 @@ export abstract class ArcgisPortalAccountSwitcherSignout extends LitElement {
100
99
  userDisabled: string;
101
100
  userNotAllowed: string;
102
101
  unlink: string;
103
- unlinkTitle: string;
104
102
  unlinkWarning: string;
105
103
  linkTitle: string;
106
104
  linkWarning: string;
@@ -0,0 +1,128 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type PortalItem from "@arcgis/core/portal/PortalItem.js";
3
+ import type Portal from "@arcgis/core/portal/Portal.js";
4
+ import type PortalUser from "@arcgis/core/portal/PortalUser.js";
5
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
+ import type { DeleteItemResponse } from "./services.js";
7
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
8
+
9
+ /**
10
+ * Displays a confirmation dialog for deleting portal items.
11
+ *
12
+ * @internal
13
+ */
14
+ export abstract class ArcgisPortalDeleteItems extends LitElement {
15
+ /**
16
+ * Whether or not the delete items modal is open.
17
+ *
18
+ * @default true
19
+ */
20
+ accessor active: boolean;
21
+ /**
22
+ * If true, the selected items do not contain links to item details.
23
+ * Generally used when already on item details, or if it's already known
24
+ * that an item does not exist.
25
+ *
26
+ * @default false
27
+ */
28
+ accessor disableLinks: boolean;
29
+ /** The portal items to delete. */
30
+ accessor items: PortalItem[];
31
+ /** @internal */
32
+ protected messages: {
33
+ deleteItem: string;
34
+ deleteItems: string;
35
+ delete: string;
36
+ cancel: string;
37
+ moreInfo: string;
38
+ bucketItems: string;
39
+ directlyUsedBy: string;
40
+ usedByOtherItems: {
41
+ single: string;
42
+ multiple: string;
43
+ unknown: string;
44
+ };
45
+ usedByPopover: string;
46
+ deleteDiscouraged: string;
47
+ learnMoreAboutDeletingSourceItems: string;
48
+ reviewRelatedItems: {
49
+ single: string;
50
+ multiple: string;
51
+ };
52
+ reviewItems: string;
53
+ reviewImpactedItems: string;
54
+ summary: {
55
+ willBeRecycled: string;
56
+ cannotDelete: string;
57
+ permanentlyDelete: string;
58
+ canBeRecovered: { single: string; };
59
+ permanentDelete: { notSupported: { single: string; }; };
60
+ protectedGroup: {
61
+ deleteProtectedDescription: string;
62
+ hasDependentItemsDescription: { singleOneDependentItem: string; };
63
+ };
64
+ };
65
+ areYouSure: { multiple: string; };
66
+ } & T9nMeta<{
67
+ deleteItem: string;
68
+ deleteItems: string;
69
+ delete: string;
70
+ cancel: string;
71
+ moreInfo: string;
72
+ bucketItems: string;
73
+ directlyUsedBy: string;
74
+ usedByOtherItems: {
75
+ single: string;
76
+ multiple: string;
77
+ unknown: string;
78
+ };
79
+ usedByPopover: string;
80
+ deleteDiscouraged: string;
81
+ learnMoreAboutDeletingSourceItems: string;
82
+ reviewRelatedItems: {
83
+ single: string;
84
+ multiple: string;
85
+ };
86
+ reviewItems: string;
87
+ reviewImpactedItems: string;
88
+ summary: {
89
+ willBeRecycled: string;
90
+ cannotDelete: string;
91
+ permanentlyDelete: string;
92
+ canBeRecovered: { single: string; };
93
+ permanentDelete: { notSupported: { single: string; }; };
94
+ protectedGroup: {
95
+ deleteProtectedDescription: string;
96
+ hasDependentItemsDescription: { singleOneDependentItem: string; };
97
+ };
98
+ };
99
+ areYouSure: { multiple: string; };
100
+ }>;
101
+ /** The portal instance. */
102
+ accessor portal: Portal;
103
+ /** The user performing deletion. */
104
+ accessor user: PortalUser | null | undefined;
105
+ /** Emitted when the user cancels the deletion. */
106
+ readonly arcgisCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
107
+ /** Emitted when the user confirms the deletion. */
108
+ readonly arcgisConfirm: import("@arcgis/lumina").TargetedEvent<this, DeleteItemsPayload>;
109
+ /** Emitted when an error occurs during deletion. */
110
+ readonly arcgisError: import("@arcgis/lumina").TargetedEvent<this, DeleteItemsPayload>;
111
+ readonly "@eventTypes": {
112
+ arcgisCancel: ArcgisPortalDeleteItems["arcgisCancel"]["detail"];
113
+ arcgisConfirm: ArcgisPortalDeleteItems["arcgisConfirm"]["detail"];
114
+ arcgisError: ArcgisPortalDeleteItems["arcgisError"]["detail"];
115
+ };
116
+ }
117
+
118
+ /** @internal */
119
+ export interface DeleteItemsPayload {
120
+ deletedItems: DeleteItemResponse[] | null;
121
+ permanentlyDeletedItems: DeleteItemResponse[] | null;
122
+ /**
123
+ * Optional overrides for the number of items deleted.
124
+ * Needed if composite items are included for delete, because they are not part of the `/deleteItems` response
125
+ */
126
+ deletedItemsCount?: number;
127
+ permanentlyDeletedItemsCount?: number;
128
+ }