@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.40

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 (409) hide show
  1. package/dist/cdn/2574FNAZ.js +2 -0
  2. package/dist/cdn/3DOZPC3W.js +2 -0
  3. package/dist/cdn/3HZI6MKD.js +2 -0
  4. package/dist/cdn/3KGSWW6B.js +2 -0
  5. package/dist/cdn/3OL7A2UC.js +2 -0
  6. package/dist/cdn/3Q7UJKKN.js +2 -0
  7. package/dist/cdn/43A74S72.js +2 -0
  8. package/dist/cdn/46HNNQAD.js +2 -0
  9. package/dist/cdn/46MYBPSS.js +2 -0
  10. package/dist/cdn/{2TDHJSMP.js → 47DKAGRV.js} +1 -1
  11. package/dist/cdn/4CBRO7JP.js +2 -0
  12. package/dist/cdn/4QYVBXZT.js +2 -0
  13. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  14. package/dist/cdn/5M25PCH2.js +2 -0
  15. package/dist/cdn/5MLBK66O.js +2 -0
  16. package/dist/cdn/5RBH3LGK.js +2 -0
  17. package/dist/cdn/5ZHNRQOW.js +2 -0
  18. package/dist/cdn/62TL6V4N.js +2 -0
  19. package/dist/cdn/66VV7NHO.js +2 -0
  20. package/dist/cdn/6AHPTR2E.js +2 -0
  21. package/dist/cdn/6APPSZ7E.js +2 -0
  22. package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
  23. package/dist/cdn/6QI7DAS2.js +2 -0
  24. package/dist/cdn/6ZJNZZPC.js +2 -0
  25. package/dist/cdn/75CT6IMW.js +2 -0
  26. package/dist/cdn/7J22VLBO.js +2 -0
  27. package/dist/cdn/7VPB6Q55.js +63 -0
  28. package/dist/cdn/7ZU43BL6.js +2 -0
  29. package/dist/cdn/A5QLPZ57.js +2 -0
  30. package/dist/cdn/AZTAWZI5.js +2 -0
  31. package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
  32. package/dist/cdn/BUYOYUA2.js +2 -0
  33. package/dist/cdn/BX7Q3V2Y.js +43 -0
  34. package/dist/cdn/BXPNB7VJ.js +2 -0
  35. package/dist/cdn/BZEKNJUA.js +2 -0
  36. package/dist/cdn/C6RUWLEJ.js +2 -0
  37. package/dist/cdn/C7SNE6YG.js +2 -0
  38. package/dist/cdn/DENQY4OE.js +2 -0
  39. package/dist/cdn/DT4HGMLS.js +2 -0
  40. package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
  41. package/dist/cdn/DU2R3VC4.js +2 -0
  42. package/dist/cdn/E5HCHRAI.js +2 -0
  43. package/dist/cdn/EBL7YSRM.js +2 -0
  44. package/dist/cdn/EDGE3T36.js +2 -0
  45. package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
  46. package/dist/cdn/FFL2L4X5.js +2 -0
  47. package/dist/cdn/{ZKZDKJ6D.js → FIAEPK5L.js} +1 -1
  48. package/dist/cdn/FN2QMDEW.js +2 -0
  49. package/dist/cdn/FTKSVLDI.js +2 -0
  50. package/dist/cdn/G272JPUS.js +2 -0
  51. package/dist/cdn/GFUKRB6D.js +2 -0
  52. package/dist/cdn/{SGDDFWCJ.js → GG6U75ZA.js} +1 -1
  53. package/dist/cdn/{FRE56NBG.js → GZ4ONSFV.js} +1 -1
  54. package/dist/cdn/HOIZXTOD.js +2 -0
  55. package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
  56. package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
  57. package/dist/cdn/IAWL475A.js +2 -0
  58. package/dist/cdn/IGLODZPX.js +2 -0
  59. package/dist/cdn/IOF72CDU.js +2 -0
  60. package/dist/cdn/ITRJGXFV.js +93 -0
  61. package/dist/cdn/ITWLFQI4.js +2 -0
  62. package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
  63. package/dist/cdn/JFGXTJY4.js +2 -0
  64. package/dist/cdn/JIU6MBGB.js +2 -0
  65. package/dist/cdn/JLT5GCLY.js +2 -0
  66. package/dist/cdn/JTA223NH.js +2 -0
  67. package/dist/cdn/KA2MXQTR.js +2 -0
  68. package/dist/cdn/KAK6CNI7.js +2 -0
  69. package/dist/cdn/KPZGBBDG.js +2 -0
  70. package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
  71. package/dist/cdn/KRORL7QC.js +2 -0
  72. package/dist/cdn/KWL2D56D.js +3 -0
  73. package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
  74. package/dist/cdn/L3YOPSRB.js +135 -0
  75. package/dist/cdn/LEESUFWE.js +2 -0
  76. package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
  77. package/dist/cdn/LTD5KLLE.js +2 -0
  78. package/dist/cdn/{GAF4YT5N.js → LUJGCYQY.js} +1 -1
  79. package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
  80. package/dist/cdn/MSL36HAR.js +2 -0
  81. package/dist/cdn/MSSJRDR7.js +2 -0
  82. package/dist/cdn/N3WRMPM6.js +2 -0
  83. package/dist/cdn/N47MW5HI.js +9 -0
  84. package/dist/cdn/N7XYFVOI.js +2 -0
  85. package/dist/cdn/NHVPNSNH.js +2 -0
  86. package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
  87. package/dist/cdn/O2GPTWGF.js +3 -0
  88. package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
  89. package/dist/cdn/OPI4P6VO.js +2 -0
  90. package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
  91. package/dist/cdn/OQ2JULON.js +2 -0
  92. package/dist/cdn/OXF2WDSW.js +2 -0
  93. package/dist/cdn/P3FFM322.js +2 -0
  94. package/dist/cdn/QAXFE5DD.js +2 -0
  95. package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
  96. package/dist/cdn/R26RBXQW.js +2 -0
  97. package/dist/cdn/R6KJVAX3.js +99 -0
  98. package/dist/cdn/RA2NMLMP.js +2 -0
  99. package/dist/cdn/RJXIU4GH.js +2 -0
  100. package/dist/cdn/RKHNP3KL.js +2 -0
  101. package/dist/cdn/RR56BOTV.js +2 -0
  102. package/dist/cdn/RT26JZP5.js +2 -0
  103. package/dist/cdn/RTZ2TKM5.js +2 -0
  104. package/dist/cdn/RX64JXHI.js +170 -0
  105. package/dist/cdn/RXMM6CFK.js +2 -0
  106. package/dist/cdn/S4N5QMSN.js +2 -0
  107. package/dist/cdn/SCLYGIHM.js +2 -0
  108. package/dist/cdn/{JIJO4CAS.js → SLK7PV62.js} +1 -1
  109. package/dist/cdn/SRWFOV5W.js +2 -0
  110. package/dist/cdn/SUN4MBT3.js +2 -0
  111. package/dist/cdn/SYXCSFIA.js +2 -0
  112. package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
  113. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  114. package/dist/cdn/TP7V25GT.js +2 -0
  115. package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
  116. package/dist/cdn/UIK6LPA7.js +2 -0
  117. package/dist/cdn/ULGME5RT.js +2 -0
  118. package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
  119. package/dist/cdn/VWOBCSD6.js +4 -0
  120. package/dist/cdn/{JE2376SE.js → W3JJBZYX.js} +1 -1
  121. package/dist/cdn/W6WVMRGQ.js +2 -0
  122. package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
  123. package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
  124. package/dist/cdn/WTKLB3R6.js +2 -0
  125. package/dist/cdn/X7W4VJO7.js +2 -0
  126. package/dist/cdn/XCOP6QHA.js +2 -0
  127. package/dist/cdn/XE3DCC5D.js +2 -0
  128. package/dist/cdn/XVV75AX3.js +2 -0
  129. package/dist/cdn/XYHIVGUK.js +2 -0
  130. package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
  131. package/dist/cdn/Y7ZCEONL.js +73 -0
  132. package/dist/cdn/YELHAJB3.js +2 -0
  133. package/dist/cdn/YH2OFXPU.js +2 -0
  134. package/dist/cdn/YYVLFAFT.js +2 -0
  135. package/dist/cdn/{74T6IXSN.js → ZDH4KVAV.js} +1 -1
  136. package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
  137. package/dist/cdn/ZG7OW456.js +2 -0
  138. package/dist/cdn/{NWVLGU2C.js → ZLNBCJE4.js} +1 -1
  139. package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
  140. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  141. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  142. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  143. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  145. package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
  146. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  147. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  148. package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
  149. package/dist/cdn/index.js +1 -1
  150. package/dist/cdn/main.css +1 -1
  151. package/dist/chunks/FieldIcons.js +24 -0
  152. package/dist/chunks/constants.js +7 -0
  153. package/dist/chunks/contextUsage.js +208 -0
  154. package/dist/chunks/createPortalTool.js +18 -0
  155. package/dist/chunks/fieldAddDelete.js +6 -6
  156. package/dist/chunks/functionalities.js +14 -9
  157. package/dist/chunks/groups.js +8 -61
  158. package/dist/chunks/groups2.js +23 -8
  159. package/dist/chunks/help.js +22 -0
  160. package/dist/chunks/info.js +2 -2
  161. package/dist/chunks/item.js +135 -33
  162. package/dist/chunks/item2.js +96 -122
  163. package/dist/chunks/itemThumbnail.js +21 -21
  164. package/dist/chunks/items.js +11 -11
  165. package/dist/chunks/layers.js +196 -0
  166. package/dist/chunks/loadClassificationData.js +26 -27
  167. package/dist/chunks/portal-browser.js +49 -46
  168. package/dist/chunks/portal-delete-items-review.js +1 -1
  169. package/dist/chunks/portal-item-badge.js +1 -1
  170. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  171. package/dist/chunks/portal-item-status-card.js +81 -0
  172. package/dist/chunks/portal-related-items-list-item.js +1 -1
  173. package/dist/chunks/portal.js +5 -5
  174. package/dist/chunks/portal2.js +22 -22
  175. package/dist/chunks/portalEntitySelection.js +61 -0
  176. package/dist/chunks/previewSessionController.js +33 -0
  177. package/dist/chunks/query.js +13 -13
  178. package/dist/chunks/request.js +49 -41
  179. package/dist/chunks/requests.js +7 -7
  180. package/dist/chunks/selectedMentions.js +25 -0
  181. package/dist/chunks/services.js +5 -5
  182. package/dist/chunks/string.js +19 -11
  183. package/dist/chunks/ui.js +1 -0
  184. package/dist/chunks/url.js +2 -2
  185. package/dist/chunks/user.js +67 -53
  186. package/dist/chunks/user2.js +10 -10
  187. package/dist/chunks/utils.js +35 -22
  188. package/dist/chunks/utils3.js +88 -657
  189. package/dist/chunks/utils4.js +663 -0
  190. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  191. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  192. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  193. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
  194. package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
  195. package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
  196. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  197. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  198. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  199. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
  200. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  201. package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
  202. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
  203. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
  204. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
  205. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
  206. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
  207. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
  208. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
  209. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  210. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  211. package/dist/components/arcgis-portal-browser/index.js +1 -0
  212. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  213. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  214. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  215. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  216. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  217. package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
  218. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  219. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  220. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  221. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  222. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  223. package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
  224. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  225. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  226. package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
  227. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  228. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
  229. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  230. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  231. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  232. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  233. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  234. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  235. package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
  236. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  237. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  238. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
  239. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  240. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  241. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  242. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  243. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  244. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  245. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  246. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  247. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  248. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  249. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  250. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  251. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  252. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  253. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  254. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  255. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  256. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  257. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  258. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  259. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  260. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  261. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  262. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  263. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  264. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  265. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  266. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  267. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  268. package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
  269. package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
  270. package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
  271. package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
  272. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  273. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  274. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  275. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  276. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  277. package/dist/components/arcgis-portal-navigation/customElement.d.ts +6 -4
  278. package/dist/components/arcgis-portal-navigation/customElement.js +371 -374
  279. package/dist/components/arcgis-portal-navigation/index.js +1 -2
  280. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  281. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  282. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  283. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  284. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  285. package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
  286. package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
  287. package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
  288. package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
  289. package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
  290. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  291. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  292. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  293. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  294. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  295. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  296. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
  297. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
  298. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  299. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  300. package/dist/components/portal-related-items-list-item/index.js +1 -1
  301. package/dist/docs/api.json +1 -1
  302. package/dist/docs/docs.json +1 -1
  303. package/dist/docs/vscode.css-custom-data.json +1 -1
  304. package/dist/docs/vscode.html-custom-data.json +1 -1
  305. package/dist/docs/web-types.json +1 -1
  306. package/dist/index.d.ts +87 -0
  307. package/dist/index.js +305 -6
  308. package/dist/loader.js +22 -11
  309. package/dist/services/group.d.ts +17 -0
  310. package/dist/services/groups.d.ts +9 -0
  311. package/dist/services/item.d.ts +9 -0
  312. package/dist/types/item.d.ts +19 -11
  313. package/dist/types/layer.d.ts +27 -0
  314. package/dist/types/lumina.d.ts +82 -12
  315. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  316. package/dist/types/portalEntityPicker.d.ts +3 -0
  317. package/dist/types/preact.d.ts +93 -12
  318. package/dist/types/react.d.ts +104 -12
  319. package/dist/types/services.d.ts +28 -1
  320. package/dist/types/stencil.d.ts +82 -12
  321. package/dist/types/user.d.ts +14 -10
  322. package/dist/utils/generateEmbeddings.d.ts +7 -0
  323. package/dist/utils/semanticSearch.d.ts +60 -0
  324. package/dist/utils/types.d.ts +10 -0
  325. package/package.json +14 -13
  326. package/dist/cdn/23NXHNPU.js +0 -2
  327. package/dist/cdn/24QSQLRY.js +0 -2
  328. package/dist/cdn/2CN754CY.js +0 -2
  329. package/dist/cdn/2FQKDFEE.js +0 -2
  330. package/dist/cdn/2MPQ5IWJ.js +0 -2
  331. package/dist/cdn/3CQKCUM5.js +0 -2
  332. package/dist/cdn/3EYB5GQX.js +0 -2
  333. package/dist/cdn/3FSPL34I.js +0 -170
  334. package/dist/cdn/3LEQ37YT.js +0 -68
  335. package/dist/cdn/4KTRAA2J.js +0 -2
  336. package/dist/cdn/4MUB6TL6.js +0 -2
  337. package/dist/cdn/4PRXQFCV.js +0 -2
  338. package/dist/cdn/4QFTKB6T.js +0 -2
  339. package/dist/cdn/4TSXFX3M.js +0 -2
  340. package/dist/cdn/5C5GHX4D.js +0 -2
  341. package/dist/cdn/7LMZHJZG.js +0 -2
  342. package/dist/cdn/A2SQ4EMZ.js +0 -2
  343. package/dist/cdn/AICPYLWE.js +0 -4
  344. package/dist/cdn/AXOBMX3S.js +0 -2
  345. package/dist/cdn/AZOJHVAO.js +0 -2
  346. package/dist/cdn/BYHX3UWV.js +0 -2
  347. package/dist/cdn/CD5UWSCP.js +0 -2
  348. package/dist/cdn/D2YQWKME.js +0 -135
  349. package/dist/cdn/DDBXEXOV.js +0 -2
  350. package/dist/cdn/DHMNNIXZ.js +0 -2
  351. package/dist/cdn/DLI4XKJ3.js +0 -2
  352. package/dist/cdn/DYO5P3F2.js +0 -2
  353. package/dist/cdn/E66BDC6N.js +0 -2
  354. package/dist/cdn/EEAVX4PP.js +0 -2
  355. package/dist/cdn/EMJQI4MA.js +0 -2
  356. package/dist/cdn/EY5S6ICQ.js +0 -2
  357. package/dist/cdn/FIBQAMJ3.js +0 -2
  358. package/dist/cdn/FIQZPIIK.js +0 -2
  359. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  360. package/dist/cdn/GGDOGNH4.js +0 -150
  361. package/dist/cdn/GSOBDGLK.js +0 -2
  362. package/dist/cdn/GXM3XY3J.js +0 -2
  363. package/dist/cdn/HCNTXLUT.js +0 -2
  364. package/dist/cdn/I273CANO.js +0 -2
  365. package/dist/cdn/I6NVKNZJ.js +0 -2
  366. package/dist/cdn/J5FKIZAM.js +0 -2
  367. package/dist/cdn/J5NPDIZM.js +0 -2
  368. package/dist/cdn/JOUR2FB2.js +0 -3
  369. package/dist/cdn/JWBUJT43.js +0 -2
  370. package/dist/cdn/LISDTBEX.js +0 -2
  371. package/dist/cdn/LYLQCBVX.js +0 -2
  372. package/dist/cdn/MQK63FV7.js +0 -2
  373. package/dist/cdn/N4VOTJ25.js +0 -2
  374. package/dist/cdn/N5QLV56W.js +0 -2
  375. package/dist/cdn/OD5WXP7J.js +0 -2
  376. package/dist/cdn/OXPXXIWL.js +0 -2
  377. package/dist/cdn/PKA745KL.js +0 -2
  378. package/dist/cdn/PMRFXB4F.js +0 -2
  379. package/dist/cdn/PNIFJ5DQ.js +0 -2
  380. package/dist/cdn/PZDI5ZDC.js +0 -2
  381. package/dist/cdn/QROXYP6V.js +0 -2
  382. package/dist/cdn/QUOLQGKP.js +0 -2
  383. package/dist/cdn/QWHGLE3O.js +0 -2
  384. package/dist/cdn/R3PK7XOP.js +0 -2
  385. package/dist/cdn/REM3KCX6.js +0 -2
  386. package/dist/cdn/RNWICLRH.js +0 -2
  387. package/dist/cdn/RQYNPDN3.js +0 -2
  388. package/dist/cdn/S6F7U36E.js +0 -400
  389. package/dist/cdn/SMX2LEJB.js +0 -2
  390. package/dist/cdn/SVROAT3Z.js +0 -2
  391. package/dist/cdn/TBZXKKGP.js +0 -2
  392. package/dist/cdn/TNUCSWBN.js +0 -2
  393. package/dist/cdn/TOICLGFK.js +0 -2
  394. package/dist/cdn/TOTWYGB3.js +0 -2
  395. package/dist/cdn/TUUUK3VX.js +0 -2
  396. package/dist/cdn/U3KMGSVH.js +0 -2
  397. package/dist/cdn/UEP2NYJK.js +0 -2
  398. package/dist/cdn/UZP4YMTE.js +0 -2
  399. package/dist/cdn/VNU4QX7M.js +0 -41
  400. package/dist/cdn/XYMBRPC7.js +0 -2
  401. package/dist/cdn/YB3DR4VO.js +0 -2
  402. package/dist/cdn/YYTEJVBL.js +0 -2
  403. package/dist/cdn/Z3HGPBOR.js +0 -2
  404. package/dist/cdn/ZDDN7UKS.js +0 -2
  405. package/dist/cdn/ZXNF77OB.js +0 -2
  406. package/dist/chunks/functional.js +0 -9
  407. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  408. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  409. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
@@ -1,39 +1,38 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { g as ne, c as $t } from "../../chunks/runtime.js";
3
- import { safeStyleMap as Ie, safeClassMap as re, LitElement as At, createEvent as q } from "@arcgis/lumina";
4
- import { u as kt } from "../../chunks/useT9n.js";
5
- import { nothing as M, html as c, svg as xt, css as St } from "lit";
6
- import { formatDate as It, substitute as X, getLocale as Pt } from "@arcgis/core/intl.js";
7
- import { g as ce, b as Pe } from "../../chunks/url.js";
8
- import { a as B } from "../../chunks/requests.js";
2
+ import { g as ne, c as wt } from "../../chunks/runtime.js";
3
+ import { safeStyleMap as Ie, safeClassMap as re, LitElement as yt, createEvent as q } from "@arcgis/lumina";
4
+ import { u as $t } from "../../chunks/useT9n.js";
5
+ import { nothing as M, html as c, svg as kt, css as At } from "lit";
6
+ import { formatDate as xt, substitute as X, getLocale as St } from "@arcgis/core/intl.js";
7
+ import { b as ce, g as It } from "../../chunks/url.js";
8
+ import { c as B } from "../../chunks/requests.js";
9
9
  import { repeat as U } from "lit/directives/repeat.js";
10
- import { m as Nt } from "../../chunks/icons.js";
11
- import { i as T, c as ge, a as Tt } from "../../chunks/user2.js";
12
- import { c as Ct, d as Mt, e as Ot, f as Lt, h as Et } from "../../chunks/portal2.js";
13
- import { c as jt, d as Dt, e as zt } from "../../chunks/user.js";
14
- import { i as Ne, a as Gt } from "../../chunks/utils3.js";
15
- import { e as Ut } from "../../chunks/functional.js";
10
+ import { m as Pt } from "../../chunks/icons.js";
11
+ import { i as C, c as ge, a as Nt } from "../../chunks/user2.js";
12
+ import { b as Tt, c as Ct, d as Mt, e as Ot, f as Lt } from "../../chunks/portal2.js";
13
+ import { c as Et, d as jt, e as Dt } from "../../chunks/user.js";
14
+ import { i as zt, a as Gt } from "../../chunks/utils4.js";
15
+ import { e as Ut, g as Pe } from "../../chunks/item2.js";
16
16
  import { g as Bt } from "../../chunks/request.js";
17
- import { g as Te } from "../../chunks/item.js";
18
17
  import { keyed as le } from "lit/directives/keyed.js";
19
- import { e as ue, n as Rt, a as de, f as J, g as Ft } from "../../chunks/portal.js";
20
- import { ref as W, createRef as F } from "lit/directives/ref.js";
18
+ import { g as ue, n as Ft, a as de, e as J, b as Rt } from "../../chunks/portal.js";
19
+ import { ref as W, createRef as R } from "lit/directives/ref.js";
21
20
  import { c as Wt, g as Vt } from "../../chunks/dom.js";
22
21
  import { debounce as be } from "@arcgis/toolkit/function";
23
22
  import Ht from "@arcgis/core/identity/IdentityManager.js";
24
23
  import { t as qt } from "../../chunks/functionalities.js";
25
- import { a as Jt } from "../../chunks/string.js";
24
+ import { b as Jt } from "../../chunks/string.js";
26
25
  function ve({ portal: e, productInfo: t }) {
27
26
  const { name: i, glyph: n } = t || {};
28
27
  return c`<img alt class="logo__glyph" src=${n ?? M}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
29
28
  }
30
29
  function Kt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
31
30
  const d = a && i === "Online" && !s || i !== "Online" && l && window.innerWidth < 960;
32
- return !i || !t || !o || d || t?.portalProperties?.topNav?.brandVisibilityEnabled === !1 && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(m) => {
33
- e({ event: m, href: r });
31
+ return !i || !t || !o || d || ["Online", "Enterprise"].includes(i) && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(h) => {
32
+ e({ event: h, href: r });
34
33
  }} class="logo logo--link">${ve({ portal: t, productInfo: n })}</a>` : c`<div class="logo ">${ve({ portal: t, productInfo: n })}</div>`;
35
34
  }
36
- const te = {}, C = {
35
+ const te = {}, T = {
37
36
  Month: 2628e3,
38
37
  Week: 604800,
39
38
  Day: 86400,
@@ -41,36 +40,36 @@ const te = {}, C = {
41
40
  Minute: 60,
42
41
  Second: 1
43
42
  };
44
- function Ce(e) {
43
+ function Ne(e) {
45
44
  if (!e)
46
45
  return null;
47
- const t = Math.floor(e / 1e3), i = Math.abs(t), n = C.Day * 365;
46
+ const t = Math.floor(e / 1e3), i = Math.abs(t), n = T.Day * 365;
48
47
  switch (!0) {
49
- case i < C.Minute:
50
- return [Math.floor(t / C.Second), "second"];
51
- case i < C.Hour:
52
- return [Math.floor(t / C.Minute), "minute"];
53
- case i < C.Day:
54
- return [Math.floor(t / C.Hour), "hour"];
55
- case i < C.Week:
56
- return [Math.floor(t / C.Day), "day"];
57
- case i < C.Month:
58
- return [Math.floor(t / C.Week), "week"];
48
+ case i < T.Minute:
49
+ return [Math.floor(t / T.Second), "second"];
50
+ case i < T.Hour:
51
+ return [Math.floor(t / T.Minute), "minute"];
52
+ case i < T.Day:
53
+ return [Math.floor(t / T.Hour), "hour"];
54
+ case i < T.Week:
55
+ return [Math.floor(t / T.Day), "day"];
56
+ case i < T.Month:
57
+ return [Math.floor(t / T.Week), "week"];
59
58
  case i < n:
60
- return [Math.floor(t / C.Month), "month"];
59
+ return [Math.floor(t / T.Month), "month"];
61
60
  default:
62
61
  return [Math.floor(t / n), "year"];
63
62
  }
64
63
  }
65
- function Me(e) {
64
+ function Te(e) {
66
65
  return (typeof e == "number" ? e : e.getTime?.()) - (/* @__PURE__ */ new Date()).getTime();
67
66
  }
68
- function Oe({ locale: e, time: t, t9n: i }) {
67
+ function Ce({ locale: e, time: t, t9n: i }) {
69
68
  if (!e || !t)
70
69
  return "";
71
- const n = Me(t);
70
+ const n = Te(t);
72
71
  te[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
73
- const r = Ce(n);
72
+ const r = Ne(n);
74
73
  return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${te[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : te[e].format(r[0], r[1]) : "";
75
74
  }
76
75
  const Qt = {
@@ -85,7 +84,7 @@ function Yt({ locale: e, time: t }, i) {
85
84
  if (!e || !t)
86
85
  return "";
87
86
  const n = new Date(t);
88
- return It(n, i ? Qt : Xt);
87
+ return xt(n, i ? Qt : Xt);
89
88
  }
90
89
  async function Zt({ portal: e }) {
91
90
  if (!e?.user)
@@ -96,17 +95,17 @@ async function Zt({ portal: e }) {
96
95
  async function ei(e, t) {
97
96
  if (!e?.user)
98
97
  return { success: !0 };
99
- const i = t.map((o) => ({ portal: e, id: o })).map(Le);
98
+ const i = t.map((o) => ({ portal: e, id: o })).map(Me);
100
99
  return { success: !((await Promise.allSettled(i))?.filter((o) => o.status === "rejected" || !o.value?.success)).length };
101
100
  }
102
- async function Le({
101
+ async function Me({
103
102
  portal: e,
104
103
  id: t
105
104
  }) {
106
105
  const i = `${e.restUrl}/community/users/${e.user?.id}/notifications/${t}/delete`, { result: n } = await B(i, { method: "post" });
107
106
  return n?.success ? { success: !0, id: t } : { success: !1, id: t };
108
107
  }
109
- const Ee = "notifications-menu";
108
+ const Oe = "notifications-menu";
110
109
  function ti(e) {
111
110
  try {
112
111
  const t = decodeURIComponent(e);
@@ -178,7 +177,7 @@ function ni({
178
177
  }) {
179
178
  if (e?.received && e.id) {
180
179
  const r = {
181
- date: Oe({ locale: i, time: e.received, t9n: n }),
180
+ date: Ce({ locale: i, time: e.received, t9n: n }),
182
181
  id: e.id,
183
182
  text: "",
184
183
  icon: ii(e.type)
@@ -205,21 +204,21 @@ async function _e({
205
204
  return r && console.error(r), n?.length ? n.map((a) => ni({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
206
205
  }
207
206
  function ri({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
208
- return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Ee} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
207
+ return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Oe} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
209
208
  }
210
209
  function K({ icon: e, title: t, description: i }) {
211
- return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${xt`<path d=${Nt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
210
+ return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${kt`<path d=${Pt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
212
211
  }
213
212
  function oi({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
214
- return i ? c`<calcite-popover .referenceElement=${Ee} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
215
- const m = d.target, g = m.href;
216
- if (m.nodeName === "CALCITE-LINK" && g) {
213
+ return i ? c`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
214
+ const h = d.target, f = h.href;
215
+ if (h.nodeName === "CALCITE-LINK" && f) {
217
216
  const p = `${ce({ portal: r, usePortalHostname: !!r.user })}/home/`;
218
- n({ event: d, href: g, relativePath: g.replace(p, "") });
217
+ n({ event: d, href: f, relativePath: f.replace(p, "") });
219
218
  }
220
219
  }}></div><div class="notification__date">${l.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async (l) => {
221
220
  const d = l.currentTarget?.parentElement;
222
- await t(e?.map(({ id: m }) => m)), d.open = !1;
221
+ await t(e?.map(({ id: h }) => h)), d.open = !1;
223
222
  }}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${K({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
224
223
  }
225
224
  function ai(e, t, i, n) {
@@ -282,7 +281,7 @@ async function mi(e) {
282
281
  if (!n)
283
282
  return t;
284
283
  const r = n.id;
285
- return (await Te(e, r)).result;
284
+ return (await Pe(e, r)).result;
286
285
  }
287
286
  async function fi(e, t, i) {
288
287
  if (!t || !e?.length)
@@ -303,7 +302,7 @@ async function gi(e) {
303
302
  sortOrder: "asc",
304
303
  q: 'owner:"esri" AND title:"BlockedApps Config" AND type: "Application Configuration"'
305
304
  }, { result: n } = await B(t, { query: i }), r = n?.results?.[0]?.id;
306
- return r ? (await Te(e, r))?.result?.blockedApps || [] : [];
305
+ return r ? (await Pe(e, r))?.result?.blockedApps || [] : [];
307
306
  }
308
307
  function bi(e, t) {
309
308
  const i = e?.toLowerCase() || "", n = `${t.title || ""} ${t.label || ""}`;
@@ -323,15 +322,6 @@ function vi() {
323
322
  }
324
323
  ), !1;
325
324
  }
326
- function _i(e, t) {
327
- const { landingPage: i } = t || {};
328
- return {
329
- image: "arcgis-online.png",
330
- label: "ArcGIS Online",
331
- title: "ArcGIS Online",
332
- url: `${Pe({ portal: e })}/${i?.url ? i.url : Ne(e.user) ? "organization.html" : "index.html"}`
333
- };
334
- }
335
325
  function we(e) {
336
326
  const i = [
337
327
  "api-for-python",
@@ -418,7 +408,7 @@ function we(e) {
418
408
  ].find((n) => e?.includes(n) && V(`${n}.png`) === e);
419
409
  return i ? V(`${i}.avif`) : e;
420
410
  }
421
- function wi(e, t) {
411
+ function _i(e, t) {
422
412
  const i = e?.blockedApps || [], n = [];
423
413
  return !i.length && !e.blockBetaApps || !t?.length ? [] : (e.blockBetaApps && t.forEach((r) => {
424
414
  r.isBeta && !i.includes(r.clientid) && i.push(r.clientid);
@@ -427,103 +417,104 @@ function wi(e, t) {
427
417
  o && n.push(o);
428
418
  }), n);
429
419
  }
430
- function S(e, t) {
420
+ function I(e, t) {
431
421
  return t && t[e.toLowerCase()]?.valid || !1;
432
422
  }
433
- function yi(e, t) {
434
- return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : S("HubforArcGIS", t);
423
+ function wi(e, t) {
424
+ return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : I("HubforArcGIS", t);
435
425
  }
436
- function $i(e, t) {
426
+ function yi(e, t) {
437
427
  if (!e)
438
428
  return !1;
439
429
  const i = [
440
430
  "portal:publisher:publishFeeds",
441
431
  "portal:publisher:publishRealTimeAnalytics",
442
432
  "portal:publisher:publishBigDataAnalytics"
443
- ], r = (e?.privileges || []).some((a) => i.includes(a)), o = S("velocity", t);
433
+ ], r = (e?.privileges || []).some((a) => i.includes(a)), o = I("velocity", t);
444
434
  return r && o;
445
435
  }
446
- function Ai(e) {
447
- return S("HubforArcGIS", e);
436
+ function $i(e) {
437
+ return I("HubforArcGIS", e);
448
438
  }
449
439
  function ki(e, t) {
450
- return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && S("arcgisWebApps", t);
440
+ return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && I("arcgisWebApps", t);
451
441
  }
452
- function xi(e) {
442
+ function Ai(e) {
453
443
  return !!e.helperServices?.rasterAnalytics && !!e.helperServices.orthoMapping;
454
444
  }
455
- function Si(e, t, i) {
445
+ function xi(e, t, i) {
456
446
  const n = i && (!e.isPortal || !!e.sourceJSON?.supportsHostedNotebooks), r = !!t?.privileges?.length && t.privileges.some((o) => o === "premium:publisher:createNotebooks");
457
447
  return n && r;
458
448
  }
459
- function Ii(e, t) {
449
+ function Si(e, t) {
460
450
  return !!e.helperServices?.locationTracking && t;
461
451
  }
462
- function Pi(e, t, i, n) {
452
+ function Ii(e, t, i, n) {
463
453
  const r = e?.user;
464
454
  return {
465
455
  "Open Data": {
466
- hasAccess: () => yi(e, n)
456
+ hasAccess: () => wi(e, n)
467
457
  },
468
458
  AppStudio: {
469
- hasAccess: () => S("arcgisWebApps", n)
459
+ hasAccess: () => I("arcgisWebApps", n)
470
460
  },
471
461
  "ArcGIS Velocity": {
472
- hasAccess: () => e.isPortal || $i(r, n)
462
+ hasAccess: () => e.isPortal || yi(r, n)
473
463
  },
474
464
  "ArcGIS Hub": {
475
- hasAccess: () => S("HubforArcGIS", n)
465
+ hasAccess: () => I("HubforArcGIS", n)
476
466
  },
477
467
  "ArcGIS Enterprise Sites": {
478
- hasAccess: () => Ai(n)
468
+ hasAccess: () => $i(n)
479
469
  },
480
470
  "ArcGIS QuickCapture Web Designer": {
481
- hasAccess: () => S("arcgisWebApps", n)
471
+ hasAccess: () => I("arcgisWebApps", n)
482
472
  },
483
473
  "ArcGIS Dashboards": {
484
- hasAccess: () => S("dashboards", n)
474
+ hasAccess: () => I("dashboards", n)
485
475
  },
486
476
  "Map Viewer": {
487
477
  hasAccess: () => ki(e, n)
488
478
  },
489
479
  "Map Viewer Classic": {
490
- hasAccess: () => S("arcgisWebApps", n)
480
+ hasAccess: () => I("arcgisWebApps", n)
491
481
  },
492
482
  "Operations Dashboard for ArcGIS": {
493
- hasAccess: () => S("opsdashboard", n)
483
+ hasAccess: () => I("opsdashboard", n)
494
484
  },
495
485
  "ArcGIS Dashboards Classic": {
496
- hasAccess: () => S("opsdashboard", n)
486
+ hasAccess: () => I("opsdashboard", n)
497
487
  },
498
488
  "Ortho Maker": {
499
- hasAccess: () => xi(e)
489
+ hasAccess: () => Ai(e)
500
490
  },
501
491
  Notebook: {
502
- hasAccess: () => Si(e, r, t)
492
+ hasAccess: () => xi(e, r, t)
503
493
  },
504
494
  "Scene Viewer": {
505
- hasAccess: () => S("arcgisWebApps", n)
495
+ hasAccess: () => I("arcgisWebApps", n)
506
496
  },
507
497
  "Story Maps": {
508
- hasAccess: () => S("arcgisWebApps", n)
498
+ hasAccess: () => I("arcgisWebApps", n)
509
499
  },
510
500
  Survey123: {
511
- hasAccess: () => S("survey123", n)
501
+ hasAccess: () => I("survey123", n)
512
502
  },
513
503
  "Track Viewer": {
514
- hasAccess: () => Ii(e, i)
504
+ hasAccess: () => Si(e, i)
515
505
  },
516
506
  "Instant Apps": {
517
507
  // For Portal
518
- hasAccess: () => S("arcgisWebApps", n)
508
+ hasAccess: () => I("arcgisWebApps", n)
519
509
  },
520
510
  "ArcGIS Maps for Adobe Creative Cloud": {
521
- hasAccess: () => S("arcgisWebApps", n) && !e.isPortal
511
+ hasAccess: () => I("arcgisWebApps", n) && !e.isPortal
522
512
  }
523
513
  };
524
514
  }
525
- function Ni(e) {
515
+ function Pi(e) {
526
516
  let t = {
517
+ arcgisonline: 1,
527
518
  opsdashboard: 1,
528
519
  arcgisWebApps: 1,
529
520
  Workforce: 1,
@@ -552,7 +543,7 @@ function oe(e) {
552
543
  function V(e) {
553
544
  return ne(`assets/portal-navigation/apps/${e || ""}`);
554
545
  }
555
- function je(e, t, i) {
546
+ function Le(e, t, i) {
556
547
  return e.icon ? `${t.restUrl}/portals/self/resources/${e.icon}?token=${i}` : `${t.restUrl}/content/items/${e.itemId}/resources/${e.image || e.properties?.appSwitcher?.image}?token=${i}`;
557
548
  }
558
549
  function G(e, t, i) {
@@ -562,31 +553,31 @@ function G(e, t, i) {
562
553
  }
563
554
  return e.title === "ArcGIS GeoBIM" && (e.label = "ArcGIS GeoBIM"), delete e.isLicensed, delete e.privileges, e.itemId = t, e;
564
555
  }
565
- function De() {
556
+ function Ee() {
566
557
  return `${V()}svg-app-circle.svg`;
567
558
  }
568
- function Ti(e, t, i) {
559
+ function Ni(e, t, i) {
569
560
  const n = e.properties?.appSwitcher?.image || e.icon;
570
561
  return {
571
562
  abbr: e.properties?.appSwitcher?.abbr || e.abbreviation,
572
563
  itemId: e.itemId,
573
564
  canAccess: !0,
574
565
  webMappingApp: !0,
575
- image: n ? je(e, t, i) : void 0,
566
+ image: n ? Le(e, t, i) : void 0,
576
567
  label: e.title || e.label,
577
568
  url: e.url,
578
- placeHolderIcon: e.placeHolderIcon || De()
569
+ placeHolderIcon: e.placeHolderIcon || Ee()
579
570
  };
580
571
  }
581
- function Ci(e, t, i) {
582
- return e.appSwitcher?.image || e.icon ? e.image = je(e, t, i) : e.placeHolderIcon = De(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
572
+ function Ti(e, t, i) {
573
+ return e.appSwitcher?.image || e.icon ? e.image = Le(e, t, i) : e.placeHolderIcon = Ee(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
583
574
  }
584
575
  function ye(e, t) {
585
576
  e.forEach((i) => {
586
577
  i.uid === "Map Viewer Beta" && (i.uid = "Map Viewer"), t.isPortal && (i.uid === "Operations Dashboard for ArcGIS" ? i.uid = "ArcGIS Dashboards Classic" : i.uid === "Workforce for ArcGIS" && (i.uid = "ArcGIS Workforce"));
587
578
  });
588
579
  }
589
- async function Mi({
580
+ async function Ci({
590
581
  userApps: e,
591
582
  servers: t,
592
583
  portal: i,
@@ -597,75 +588,75 @@ async function Mi({
597
588
  trackViewerEnabled: s,
598
589
  notebookServerEnabled: l,
599
590
  willQueryForItems: d,
600
- approvedApps: m
591
+ approvedApps: h
601
592
  }) {
602
- const g = {}, p = {}, _ = Pi(i, l, s, n), A = Ni(i), w = [], I = e.length;
603
- for (let h = 0; h < I; h++) {
604
- const u = e[h], v = u.itemId || u.title;
605
- let P = !0;
606
- const y = !u.serverFunction || t?.some(($) => ($.serverFunction?.split(",") || []).includes(u.serverFunction)), x = r?.some(
607
- ($) => u.itemId && u.itemId === $.itemid || u.title && u.title === $.title
593
+ const f = {}, p = {}, w = Ii(i, l, s, n), A = Pi(i), y = [], _ = e.length;
594
+ for (let m = 0; m < _; m++) {
595
+ const u = e[m], g = u.itemId || u.title;
596
+ let N = !0;
597
+ const $ = !u.serverFunction || t?.some((k) => (k.serverFunction?.split(",") || []).includes(u.serverFunction)), S = r?.some(
598
+ (k) => u.itemId && u.itemId === k.itemid || u.title && u.title === k.title
608
599
  );
609
- if (g[v] = 1, p[v] = u, x || oe(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
600
+ if (f[g] = 1, p[g] = u, S || oe(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
610
601
  continue;
611
- const b = u.title;
612
- if (_[b] && !_[b]?.hasAccess())
602
+ const v = u.title;
603
+ if (w[v] && !w[v]?.hasAccess())
613
604
  continue;
614
605
  const j = i.sourceJSON?.subscriptionInfo;
615
606
  if (u.subscriptionType) {
616
- j?.type === u.subscriptionType && (p[v].canAccess = !0, w.push(G(u, v, i)));
607
+ j?.type === u.subscriptionType && (p[g].canAccess = !0, y.push(G(u, g, i)));
617
608
  continue;
618
609
  }
619
610
  if (u.orgCapabilities) {
620
- a?.length && a.some((E) => u.orgCapabilities?.includes(E.id)) && (p[v].canAccess = !0, w.push(G(u, v, i)));
611
+ a?.length && a.some((E) => u.orgCapabilities?.includes(E.id)) && (p[g].canAccess = !0, y.push(G(u, g, i)));
621
612
  continue;
622
613
  }
623
- if (!u.privileges?.length && !u.isLicensed && y && (u.label !== "ArcGIS Location Platform" || oe(i))) {
624
- p[v].canAccess = !0, w.push(G(u, v, i));
614
+ if (!u.privileges?.length && !u.isLicensed && $ && (u.label !== "ArcGIS Location Platform" || oe(i))) {
615
+ p[g].canAccess = !0, y.push(G(u, g, i));
625
616
  continue;
626
617
  }
627
618
  if (i.user?.sourceJSON?.userLicenseTypeId?.toLowerCase() === "storytellerut" && u.label?.toLowerCase() === "storymaps") {
628
- p[v].canAccess = !0, w.push(G(u, v, i));
619
+ p[g].canAccess = !0, y.push(G(u, g, i));
629
620
  continue;
630
621
  }
631
622
  if (u.privileges?.length && i.user?.privileges) {
632
- for (let $ = 0; $ < u.privileges.length; $++)
633
- if (!i.user.privileges.includes(u.privileges[$])) {
634
- P = !1;
623
+ for (let k = 0; k < u.privileges.length; k++)
624
+ if (!i.user.privileges.includes(u.privileges[k])) {
625
+ N = !1;
635
626
  break;
636
627
  }
637
- if (!u.isLicensed && P && y) {
638
- p[v].canAccess = !0, w.push(G(u, v, i));
628
+ if (!u.isLicensed && N && $) {
629
+ p[g].canAccess = !0, y.push(G(u, g, i));
639
630
  continue;
640
631
  }
641
632
  }
642
- if (u.isLicensed && P && y) {
643
- for (let $ = 0; $ < o.length; $++)
644
- if (v === o[$].itemId || v === o[$].title) {
645
- p[v].canAccess = !0, w.push(G(u, v, i));
633
+ if (u.isLicensed && N && $) {
634
+ for (let k = 0; k < o.length; k++)
635
+ if (g === o[k].itemId || g === o[k].title) {
636
+ p[g].canAccess = !0, y.push(G(u, g, i));
646
637
  break;
647
638
  }
648
639
  }
649
640
  }
650
- const N = await Bt(i);
651
- return o.forEach((h) => {
652
- if (h.type === "Web Mapping Application" && !A[h.clientId] && !g[h.itemId] && h.url && h.title && !g[h.title] && !h.typeKeywords.includes("hideFromAppSwitcher")) {
653
- const u = Ti(h, i, N);
654
- p[h.itemId] = u, w.push(u);
641
+ const P = await Bt(i);
642
+ return o.forEach((m) => {
643
+ if (m.type === "Web Mapping Application" && !A[m.clientId] && !f[m.itemId] && m.url && m.title && !f[m.title] && !m.typeKeywords.includes("hideFromAppSwitcher")) {
644
+ const u = Ni(m, i, P);
645
+ p[m.itemId] = u, y.push(u);
655
646
  }
656
647
  }), {
657
648
  apps: [
658
- ...m.map((h) => {
649
+ ...h.map((m) => {
659
650
  const u = {
660
- ...h.appProperties,
661
- itemId: h.itemId,
651
+ ...m.appProperties,
652
+ itemId: m.itemId,
662
653
  webMappingApp: !0,
663
654
  approvedApp: !0,
664
655
  canAccess: !d
665
656
  };
666
- return p[h.itemId] = u, Ci(u, i, N);
657
+ return p[m.itemId] = u, Ti(u, i, P);
667
658
  }),
668
- ...w
659
+ ...y
669
660
  ],
670
661
  appDictionary: p
671
662
  };
@@ -673,7 +664,7 @@ async function Mi({
673
664
  function ie(e, t) {
674
665
  return e.filter((i) => !t?.some(
675
666
  (r) => i.itemId && i.itemId === r.itemid || i.title && i.title === r.title
676
- ));
667
+ ) && i.itemId !== "ArcGIS Online");
677
668
  }
678
669
  function $e({
679
670
  apps: e,
@@ -683,92 +674,92 @@ function $e({
683
674
  portal: r
684
675
  }) {
685
676
  let a = Object.keys(i).map((s) => i[s]).filter((s) => s.itemId === t.uid || s.title === t.uid).shift();
686
- return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) && Ne(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (a = t, a.canAccess = !1, a.itemId = t.uid, i[t.uid] = a), i[t.uid].hasBeenPopulated = !0, e.push(a)), e;
677
+ return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) && zt(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (a = t, a.canAccess = !1, a.itemId = t.uid, i[t.uid] = a), i[t.uid].hasBeenPopulated = !0, e.push(a)), e;
687
678
  }
688
- async function Oi({
679
+ async function Mi({
689
680
  portal: e,
690
681
  trackViewerEnabled: t,
691
682
  notebookServerEnabled: i
692
683
  }) {
693
684
  if (!e?.id || !e.user)
694
685
  return { apps: [], hiddenApps: {} };
695
- const n = vi(), [r, o, a, s, l, d, m] = await Promise.all([
686
+ const n = vi(), [r, o, a, s, l, d, h] = await Promise.all([
696
687
  mi(e),
688
+ jt(e),
697
689
  Dt(e),
698
- zt(e),
690
+ Tt(e),
699
691
  Ct(e),
700
692
  Mt(e),
701
- Ot(e),
702
693
  gi(e)
703
- ]), g = e.isPortal ? await Lt(e) : null, p = a?.result?.properties;
704
- let _ = r?.appSwitcher?.apps || [];
705
- e.isPortal || (_ = _.filter(
706
- (y) => y.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
707
- ), _.unshift(_i(e, p)));
708
- const A = s?.result?.approvedApps?.filter((y) => !y.hideForNonPrivilegedMember) || [], w = {};
709
- o?.forEach((y) => {
710
- const x = y.clientId?.toLowerCase();
711
- x && (w[x] = {
694
+ ]), f = e.isPortal ? await Ot(e) : null, p = a?.result?.properties;
695
+ let w = r?.appSwitcher?.apps || [];
696
+ e.isPortal || (w = w.filter(
697
+ ($) => $.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
698
+ ));
699
+ const A = s?.result?.approvedApps?.filter(($) => !$.hideForNonPrivilegedMember) || [], y = {};
700
+ o?.forEach(($) => {
701
+ const S = $.clientId?.toLowerCase();
702
+ S && (y[S] = {
712
703
  valid: !0,
713
- itemId: y.itemId,
714
- clientId: y.clientId
704
+ itemId: $.itemId,
705
+ clientId: $.clientId
715
706
  });
716
- }), l?.forEach((y) => {
717
- const x = y.id?.toLowerCase();
718
- x && (w[x] = {
707
+ }), l?.forEach(($) => {
708
+ const S = $.id?.toLowerCase();
709
+ S && (y[S] = {
719
710
  valid: !0,
720
- clientId: y.id
711
+ clientId: $.id
721
712
  });
722
713
  });
723
- const I = wi(d, m), { apps: N, appDictionary: f } = await Mi({
724
- userApps: _,
725
- servers: g,
714
+ const _ = _i(d, h), { apps: P, appDictionary: b } = await Ci({
715
+ userApps: w,
716
+ servers: f,
726
717
  portal: e,
727
- blockedApps: I,
718
+ blockedApps: _,
728
719
  provisionedListings: o,
729
720
  orgCapabilities: l,
730
- licenses: w,
721
+ licenses: y,
731
722
  trackViewerEnabled: t,
732
723
  notebookServerEnabled: i,
733
724
  willQueryForItems: n,
734
725
  approvedApps: A
735
726
  });
736
727
  p?.appLauncher && (p?.appLauncher.primary && ye(p?.appLauncher.primary, e), p?.appLauncher.secondary && ye(p?.appLauncher.secondary, e));
737
- let h = [], u = [];
728
+ let m = [], u = [];
738
729
  if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
739
- h = N.slice().sort((y, x) => (y.label || "") < (x.label || "") ? -1 : 1), h = ie(h, I), u = [];
730
+ m = P.slice().sort(($, S) => ($.label || "") < (S.label || "") ? -1 : 1), m = ie(m, _), u = [];
740
731
  else {
741
- const { result: y } = await fi(A, n, e);
742
- y?.results?.length && y.results.forEach((k) => {
743
- const b = f[k.id];
744
- b.canAccess = !0, b.hasChanged = b.url !== k.url ? !!k.url : !1;
732
+ const { result: $ } = await fi(A, n, e);
733
+ $?.results?.length && $.results.forEach((x) => {
734
+ const v = b[x.id];
735
+ v.canAccess = !0, v.hasChanged = v.url !== x.url ? !!x.url : !1;
745
736
  });
746
- const x = { ...f };
747
- p?.appLauncher?.primary?.forEach((k) => {
748
- k.label === "Map Viewer" && (k.uid = "Map Viewer");
749
- }), h = p?.appLauncher.primary.reduce(
750
- (k, b) => $e({ apps: k, app: b, appDictionary: f, newAppDictionary: x, portal: e }),
737
+ const S = { ...b };
738
+ p?.appLauncher?.primary?.forEach((x) => {
739
+ x.label === "Map Viewer" && (x.uid = "Map Viewer");
740
+ }), m = p?.appLauncher.primary.reduce(
741
+ (x, v) => $e({ apps: x, app: v, appDictionary: b, newAppDictionary: S, portal: e }),
751
742
  []
752
743
  ) || [], u = p?.appLauncher.secondary.reduce(
753
- (k, b) => $e({ apps: k, app: b, appDictionary: f, newAppDictionary: x, portal: e }),
744
+ (x, v) => $e({ apps: x, app: v, appDictionary: b, newAppDictionary: S, portal: e }),
754
745
  []
755
- ) || [], h = ie(h, I), u = ie(u, I), oe(e) && (h = h.filter((k) => k.canAccess), u = u.filter((k) => k.canAccess));
756
- for (const k of Object.keys(x))
757
- x[k].canAccess && (x[k].isNew = !0, f[k] = x[k], h.push(x[k]));
746
+ ) || [], m = ie(m, _), u = ie(u, _), oe(e) && (m = m.filter((x) => x.canAccess), u = u.filter((x) => x.canAccess));
747
+ for (const x of Object.keys(S))
748
+ S[x].canAccess && (S[x].isNew = !0, b[x] = S[x], m.push(S[x]));
758
749
  }
759
- const v = [...h, ...u], P = u.reduce((y, x) => (x.itemId && (y[x.itemId] = !0), y), {});
750
+ const g = [...m, ...u], N = u.reduce(($, S) => (S.itemId && ($[S.itemId] = !0), $), {});
760
751
  return {
761
- apps: v,
762
- hiddenApps: P,
752
+ apps: g,
753
+ hiddenApps: N,
763
754
  signInSettings: d,
764
- licenses: w,
755
+ licenses: y,
765
756
  userProperties: p
766
757
  };
767
758
  }
768
- function Li(e, t) {
759
+ function Oi(e, t) {
769
760
  return !e?.itemId || !t ? !1 : t[e.itemId];
770
761
  }
771
- async function Ei({
762
+ async function Li({
772
763
  apps: e,
773
764
  hiddenApps: t,
774
765
  userProperties: i,
@@ -784,9 +775,9 @@ async function Ei({
784
775
  },
785
776
  { primary: [], secondary: [] }
786
777
  ), o = { ...i || {}, appLauncher: r };
787
- return await jt(o, n);
778
+ return await Et(o, n);
788
779
  }
789
- function ze({ app: e }) {
780
+ function je({ app: e }) {
790
781
  if (!e)
791
782
  return null;
792
783
  if (!e.canAccess)
@@ -794,36 +785,36 @@ function ze({ app: e }) {
794
785
  const t = !e.image && e.abbr;
795
786
  return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${we(e.placeHolderIcon) ?? M} class="list-item__logo-bg" alt>` || ""}<span style=${Ie({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${we(e.image) ?? M} class="list-item__logo" alt>` || ""}`;
796
787
  }
797
- function ji({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
788
+ function Ei({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
798
789
  if (!e || !i)
799
790
  return null;
800
- const o = Li(e, t), { title: a, itemId: s, label: l } = e;
801
- return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${ze({ app: e })}</span>${e.canAccess ? c`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => s && r(s)}></calcite-action>`}</calcite-list-item>`;
791
+ const o = Oi(e, t), { title: a, itemId: s, label: l } = e;
792
+ return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${je({ app: e })}</span>${e.canAccess ? c`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => s && r(s)}></calcite-action>`}</calcite-list-item>`;
802
793
  }
803
- function Di({ app: e, messages: t }) {
794
+ function ji({ app: e, messages: t }) {
804
795
  if (!e || !t)
805
796
  return null;
806
797
  const { title: i, itemId: n, label: r, url: o, isNew: a } = e, s = t?.descriptions?.[i] || t?.descriptions?.[r];
807
- return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${ze({ app: e })}<span class="list-item__title">${r || i}</span>${a && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${s && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${s}</calcite-tooltip>` || ""}</li>`;
798
+ return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${a && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${s && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${s}</calcite-tooltip>` || ""}</li>`;
808
799
  }
809
- function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel: m, handleAppEdit: g, editingApplications: p, portal: _ }) {
800
+ function Di({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel: h, handleAppEdit: f, editingApplications: p }) {
810
801
  if (!e || !r)
811
802
  return null;
812
- const A = i?.length > 0, w = (e || []).filter((f) => f.itemId && (!n?.[f.itemId] || A) && bi(i, f)), I = A ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable, N = A ? T(_) ? r.noAppsDescriptionPublic : r.noAppResultsDescriptionOrg : r.noAppsAvailable;
803
+ const w = i?.length > 0, A = (e || []).filter((_) => _.itemId && (!n?.[_.itemId] || w) && bi(i, _)), y = w ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable;
813
804
  return p ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
814
- m();
805
+ h();
815
806
  }}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
816
807
  s();
817
- }}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(f) => {
818
- const { newIndex: h, oldIndex: u } = f.detail;
819
- a({ newIndex: h, oldIndex: u });
820
- }} .loading=${t}>${U(e, (f) => f.itemId, (f) => ji({ app: f, hiddenApps: n, messages: r, toggleAppVisibility: (h, u) => {
821
- l({ app: h, hidden: u });
822
- }, handleAppDelete: d }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(f) => {
823
- o(f.currentTarget.value);
824
- }}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => g()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${w?.length > 0 ? c`<ul class="list">${U(w, (f) => f.itemId, (f) => Di({ app: f, messages: r }))}</ul>` : K({ title: I, description: N, icon: i ? "search" : "apps" })}`;
825
- }
826
- const Ae = "portalAppClientId", pe = {
808
+ }}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(_) => {
809
+ const { newIndex: P, oldIndex: b } = _.detail;
810
+ a({ newIndex: P, oldIndex: b });
811
+ }} .loading=${t}>${U(e, (_) => _.itemId, (_) => Ei({ app: _, hiddenApps: n, messages: r, toggleAppVisibility: (P, b) => {
812
+ l({ app: P, hidden: b });
813
+ }, handleAppDelete: d }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(_) => {
814
+ o(_.currentTarget.value);
815
+ }}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => f()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${A?.length > 0 ? c`<ul class="list">${U(A, (_) => _.itemId, (_) => ji({ app: _, messages: r }))}</ul>` : K({ title: y, icon: i ? "search" : "apps" })}`;
816
+ }
817
+ const ke = "portalAppClientId", pe = {
827
818
  GeoanalyticsEngine: "geoanalyticsengine",
828
819
  GeoanalyticsFabric: "geoanalyticsfabric",
829
820
  IndoorsOnline: "indoorsonline"
@@ -834,13 +825,13 @@ function he(e) {
834
825
  function me(e) {
835
826
  return pe.GeoanalyticsFabric === e;
836
827
  }
837
- function Ge(e) {
828
+ function De(e) {
838
829
  return pe.IndoorsOnline === e;
839
830
  }
840
831
  function Q(e) {
841
832
  return ["Location Platform", "GeoAnalytics Fabric", "GeoAnalytics Engine", "Online", "Enterprise"].includes(e);
842
833
  }
843
- function Gi({
834
+ function zi({
844
835
  portal: e,
845
836
  messages: t,
846
837
  licenses: i,
@@ -849,28 +840,28 @@ function Gi({
849
840
  }) {
850
841
  if (!t || !e)
851
842
  return [];
852
- const o = e.sourceJSON?.subscriptionInfo, a = Wi({ messages: t, portal: e });
843
+ const o = e.sourceJSON?.subscriptionInfo, a = Ri({ messages: t, portal: e });
853
844
  if (!e.user)
854
845
  return a;
855
- if (!e || !a || e?.user && !i && !T(e))
846
+ if (!e || !a || e?.user && !i && !C(e))
856
847
  return [];
857
- const s = Hi({
848
+ const s = Vi({
858
849
  portal: e,
859
850
  licenses: i,
860
851
  subscriptionInfo: o
861
- }), l = Vi({
852
+ }), l = Wi({
862
853
  messages: t,
863
854
  portal: e,
864
855
  clientId: n,
865
856
  signInSettings: r,
866
857
  navLinkDictionary: s
867
858
  });
868
- return Ui({ links: l, portal: e });
859
+ return Gi({ links: l, portal: e });
869
860
  }
870
- function ke(e, t) {
861
+ function Ae(e, t) {
871
862
  return t ? e.configName ? t.indexOf(e.configName) : t.length : 0;
872
863
  }
873
- function Ui({
864
+ function Gi({
874
865
  links: e,
875
866
  portal: t
876
867
  }) {
@@ -878,59 +869,65 @@ function Ui({
878
869
  if (!i)
879
870
  return e;
880
871
  const n = i.customPage;
881
- return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({ label: n.name, href: n.url, configName: "customPage", icon: "link" }), i.order ? e.sort((r, o) => ke(r, i.order) - ke(o, i.order)) : e;
882
- }
883
- function Bi(e) {
872
+ return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({
873
+ label: n.name,
874
+ href: n.url,
875
+ configName: "customPage",
876
+ icon: n.iconName ?? "link",
877
+ newTab: !0
878
+ }), i.order ? e.sort((r, o) => Ae(r, i.order) - Ae(o, i.order)) : e;
879
+ }
880
+ function Ui(e) {
884
881
  const { id: t, access: i, isPortal: n } = e;
885
882
  return !t && !i && !n;
886
883
  }
887
- function Ri(e, t, i) {
884
+ function Bi(e, t, i) {
888
885
  if (i === "customPage")
889
886
  return !1;
890
887
  const n = new URL(e), r = t || window.location.pathname;
891
888
  return n.pathname === r;
892
889
  }
893
- function Ue({
890
+ function ze({
894
891
  portal: e,
895
892
  clientId: t,
896
893
  signInSettings: i
897
894
  }) {
898
- const n = e.user, r = Ge(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), a = e.portalProperties, {
895
+ const n = e.user, r = De(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), a = e.portalProperties, {
899
896
  gallery: s = "all",
900
897
  groups: l = "all",
901
898
  map: d = "all",
902
- notebook: m = "notebookCreators",
903
- scene: g = "all"
899
+ notebook: h = "notebookCreators",
900
+ scene: f = "all"
904
901
  } = a?.topNav || {};
905
902
  let p = ["home"];
906
903
  if (!n) {
907
904
  if (!a?.topNav) {
908
- const A = ["gallery", "map", "scene", "groups"], w = e.isPortal ? ["help"] : [];
909
- return [...p, ...A, ...w];
905
+ const A = ["gallery", "map", "scene", "groups"], y = e.isPortal ? ["help"] : [];
906
+ return [...p, ...A, ...y];
910
907
  }
911
908
  return [
912
909
  ...p,
913
910
  ...s === "all" ? ["gallery"] : [],
914
911
  ...d === "all" ? ["map"] : [],
915
- ...g === "all" ? ["scene"] : [],
912
+ ...f === "all" ? ["scene"] : [],
916
913
  ...l === "all" ? ["groups"] : [],
917
914
  ...e.isPortal ? ["help"] : []
918
915
  ];
919
916
  }
920
- const _ = n.orgId === e.id;
921
- return !a?.topNav && T(e) ? p = ["ArcGIS", "overview", "pricing", "map", "scene", "groups", "myContent"] : p = [
917
+ const w = n.orgId === e.id;
918
+ return !a?.topNav && C(e) ? p = ["ArcGIS", "overview", "pricing", "map", "scene", "groups", "myContent"] : p = [
922
919
  ...p,
923
- ...(s === "all" || s === "members" && _) && !r ? ["gallery"] : [],
924
- ...(d === "all" || d === "members" && _ || d === "mapCreators" && ge(n)) && !r ? ["map"] : [],
925
- ...(g === "all" || g === "members" && _ || g === "sceneCreators" && ge(n)) && !r ? ["scene"] : [],
920
+ ...(s === "all" || s === "members" && w) && !r ? ["gallery"] : [],
921
+ ...(d === "all" || d === "members" && w || d === "mapCreators" && ge(n)) && !r ? ["map"] : [],
922
+ ...(f === "all" || f === "members" && w || f === "sceneCreators" && ge(n)) && !r ? ["scene"] : [],
926
923
  ...!o && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
927
- (!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (m === "members" && _ || m === "notebookCreators" && Tt(n)) && !r ? ["notebook"] : [],
928
- ...(l === "all" || l === "members" && _) && !r ? ["groups"] : [],
929
- ..._ && !r ? ["myContent", "organization"] : []
924
+ (!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (h === "members" && w || h === "notebookCreators" && Nt(n)) && !r ? ["notebook"] : [],
925
+ ...(l === "all" || l === "members" && w) && !r ? ["groups"] : [],
926
+ ...w && !r ? ["myContent", "organization"] : []
930
927
  ], p;
931
928
  }
932
929
  function O(e) {
933
- return `${Pe({ portal: e })}/`;
930
+ return `${It({ portal: e })}/`;
934
931
  }
935
932
  function Fi({
936
933
  keys: e,
@@ -941,19 +938,19 @@ function Fi({
941
938
  return e.forEach((r) => {
942
939
  const o = t[r];
943
940
  if (o && (!("show" in o) || o.show)) {
944
- const { href: a, newTab: s, icon: l, relativePath: d, configName: m } = o;
941
+ const { href: a, newTab: s, icon: l, relativePath: d, configName: h } = o;
945
942
  n.push({
946
943
  label: i[r],
947
944
  href: a,
948
945
  newTab: s,
949
946
  relativePath: d,
950
- configName: m,
947
+ configName: h,
951
948
  icon: l
952
949
  });
953
950
  }
954
951
  }), n;
955
952
  }
956
- function Wi({
953
+ function Ri({
957
954
  messages: e,
958
955
  portal: t
959
956
  }) {
@@ -987,16 +984,16 @@ function Wi({
987
984
  configName: "groups"
988
985
  }
989
986
  };
990
- return (Bi(t) ? ["overview", "pricing", "map", "scene", "help"] : Ue({ portal: t })).map((o) => n[o]);
987
+ return (Ui(t) ? ["overview", "pricing", "map", "scene", "help"] : ze({ portal: t })).map((o) => n[o]);
991
988
  }
992
- function Vi({
989
+ function Wi({
993
990
  messages: e,
994
991
  portal: t,
995
992
  clientId: i,
996
993
  signInSettings: n,
997
994
  navLinkDictionary: r
998
995
  }) {
999
- const o = he(i), a = Ue({ portal: t, clientId: i, signInSettings: n }), s = `${O(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
996
+ const o = he(i), a = ze({ portal: t, clientId: i, signInSettings: n }), s = `${O(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
1000
997
  return o || me(i) ? [
1001
998
  {
1002
999
  // TODO: active calculations in the component need to account for hash for these options
@@ -1019,18 +1016,18 @@ function Vi({
1019
1016
  }
1020
1017
  ] : Fi({ keys: a, messages: e, navLinkDictionary: r });
1021
1018
  }
1022
- function Hi({
1019
+ function Vi({
1023
1020
  portal: e,
1024
1021
  licenses: t,
1025
1022
  subscriptionInfo: i
1026
1023
  }) {
1027
- const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a = S("arcgiswebapps", t) || o && S("locationplatformwebapps", t) || T(e);
1024
+ const n = e.user, r = O(e), o = i?.options?.includes("Developer"), a = I("arcgiswebapps", t) || o && I("locationplatformwebapps", t) || C(e);
1028
1025
  return {
1029
1026
  pricing: { href: `${r}../features/plans/pricing.html` },
1030
1027
  overview: { href: `${r}../features/features.html` },
1031
1028
  ArcGIS: {
1032
- href: `${r}${T(e) ? "index.html" : "../features/features.html"}`,
1033
- show: T(e) || !n
1029
+ href: `${r}${C(e) ? "index.html" : "../features/features.html"}`,
1030
+ show: C(e) || !n
1034
1031
  },
1035
1032
  groups: {
1036
1033
  href: `${r}groups.html`,
@@ -1062,7 +1059,7 @@ function Hi({
1062
1059
  configName: "gallery"
1063
1060
  },
1064
1061
  home: {
1065
- show: !T(e) && !o,
1062
+ show: !C(e) && !o,
1066
1063
  href: `${r}index.html`,
1067
1064
  relativePath: "index.html",
1068
1065
  icon: "home",
@@ -1075,45 +1072,45 @@ function Hi({
1075
1072
  configName: "scene"
1076
1073
  },
1077
1074
  notebook: {
1078
- show: Rt(e),
1075
+ show: Ft(e),
1079
1076
  href: `${r}notebook/notebookhome.html`,
1080
1077
  relativePath: "notebook/notebookhome.html",
1081
1078
  icon: "notebook",
1082
1079
  configName: "notebook"
1083
1080
  },
1084
1081
  organization: {
1085
- show: !T(e),
1082
+ show: !C(e),
1086
1083
  href: `${r}organization.html`,
1087
1084
  relativePath: "organization.html",
1088
1085
  icon: "organization",
1089
1086
  configName: "organization"
1090
1087
  },
1091
1088
  features: {
1092
- show: T(e) && !e.isPortal,
1089
+ show: C(e) && !e.isPortal,
1093
1090
  href: `${r}../features/features.html`,
1094
1091
  icon: "information"
1095
1092
  }
1096
1093
  };
1097
1094
  }
1098
- function qi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
1095
+ function Hi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
1099
1096
  if (!t || !i || !t.modified)
1100
1097
  return null;
1101
- const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ce(Me(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Yt({ locale: r, time: o }, s?.[1] === "year") : Oe({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, m = `${O(e)}${d}}`;
1102
- return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${m ?? M} @click=${(g) => {
1103
- n({ event: g, href: m, relativePath: d });
1098
+ const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ne(Te(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Yt({ locale: r, time: o }, s?.[1] === "year") : Ce({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, h = `${O(e)}${d}}`;
1099
+ return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${h ?? M} @click=${(f) => {
1100
+ n({ event: f, href: h, relativePath: d });
1104
1101
  }}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${X(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
1105
1102
  }
1106
- function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: A, handleAppEdit: w, handleItemSearch: I, handlePlatformTabUpdate: N, platformTab: f, editingApplications: h, recentContent: u, recentContentLoading: v, recentContentSearchTerm: P, product: y, platformInfo: x, links: k, messages: b }) {
1107
- if (!y || !i || !b)
1103
+ function qi({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: h, handleAppSave: f, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, handleItemSearch: _, handlePlatformTabUpdate: P, platformTab: b, editingApplications: m, recentContent: u, recentContentLoading: g, recentContentSearchTerm: N, product: $, platformInfo: S, links: x, messages: v }) {
1104
+ if (!$ || !i || !v)
1108
1105
  return null;
1109
- const { name: j, icon: L } = x || {};
1110
- return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${L ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__container"><div class="platform__tiles">${k.filter(({ icon: $ }) => $).map(({ label: $, href: E, icon: Y, relativePath: H }) => c`<calcite-tile .icon=${Y} .description=${$} .href=${E} alignment=center scale=s @keydown=${(D) => {
1106
+ const { name: j, icon: L } = S || {};
1107
+ return c`<calcite-sheet class="platform" .label=${v.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${L ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__tiles">${x.filter(({ icon: k }) => k).map(({ label: k, href: E, icon: Y, relativePath: H }) => c`<calcite-tile .icon=${Y} .description=${k} .href=${E} alignment=center scale=s @keydown=${(D) => {
1111
1108
  (D.key === "Enter" || D.key === " ") && t({ event: D, href: E, relativePath: H });
1112
1109
  }} @click=${(D) => {
1113
1110
  t({ event: D, href: E, relativePath: H });
1114
- }}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center class="platform__tabs"><calcite-tab-nav slot=title-group @calciteTabChange=${($) => {
1115
- N($.target.selectedTitle?.dataset.id);
1116
- }}>${!T(i) && c`<calcite-tab-title .selected=${f === "apps"}>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title .selected=${f === "content"}>${b.recentContent}</calcite-tab-title></calcite-tab-nav>${!T(i) && c`<calcite-tab .selected=${f === "apps"} class="platform__tab" data-id=apps>${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${zi({ apps: r, appsLoading: o, appsSearchTerm: s, hiddenApps: a, messages: b, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: A, handleAppEdit: w, editingApplications: h, portal: i })}</calcite-tab>` || ""}<calcite-tab class="platform__tab" .selected=${f === "content"} data-id=content><div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${P} scale=m class="list__search" @calciteInputInput=${($) => I($.target.value)}></calcite-input></div>${v && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}<div class="list__container">${u?.length > 0 || v ? c`<ul class="list">${U(u, ($) => $.id, ($) => qi({ portal: i, messages: b, navigate: t, item: $, locale: e }))}</ul>` : P?.length ? K({ title: X(b.noAppResults, { term: P }), description: b.recentContentNoResultsDescription, icon: "search" }) : K({ title: b.noContent, description: b.noContentDescription, icon: "clock" })}</div></calcite-tab></calcite-tabs>` || ""}</div></calcite-panel></calcite-sheet>`;
1111
+ }}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center><calcite-tab-nav slot=title-group @calciteTabChange=${(k) => {
1112
+ P(k.target.selectedTitle?.dataset.id);
1113
+ }}>${!C(i) && c`<calcite-tab-title data-id=apps .selected=${b === "apps"}>${v.myApps}</calcite-tab-title>` || ""}<calcite-tab-title data-id=content .selected=${b === "content"}>${v.recentContent}</calcite-tab-title></calcite-tab-nav></calcite-tabs>` || ""}${!C(i) && b === "apps" && c`${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${Di({ apps: r, appsLoading: o, appsSearchTerm: s, hiddenApps: a, messages: v, handleAppsSearch: d, handleAppReorder: h, handleAppSave: f, handleAppDelete: p, handleAppHide: w, handleAppCancel: A, handleAppEdit: y, editingApplications: m })}` || ""}${b === "content" && c`<div class="list__header"><calcite-input type=search icon .placeholder=${v.searchRecentContent} .value=${N} scale=m class="list__search" .loading=${g} @calciteInputInput=${(k) => _(k.target.value)}></calcite-input></div><div class="list__container">${g && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}${u?.length > 0 || g ? c`<ul class="list">${U(u, (k) => k.id, (k) => Hi({ portal: i, messages: v, navigate: t, item: k, locale: e }))}</ul>` : N?.length ? K({ title: X(v.noAppResults, { term: N }), icon: "search" }) : K({ title: v.noContent, icon: "clock" })}</div>` || ""}</calcite-panel></calcite-sheet>`;
1117
1114
  }
1118
1115
  const ae = [
1119
1116
  "new",
@@ -1126,19 +1123,19 @@ const ae = [
1126
1123
  "embed",
1127
1124
  "details"
1128
1125
  ];
1129
- async function Ki(e) {
1126
+ async function Ji(e) {
1130
1127
  return await Promise.resolve({ status: "success" });
1131
1128
  }
1132
1129
  function se(e) {
1133
1130
  return ae.includes(e.id);
1134
1131
  }
1135
- function Qi(e) {
1132
+ function Ki(e) {
1136
1133
  return (e || [])?.toSorted((t, i) => {
1137
1134
  const n = se(t), r = se(i);
1138
1135
  return n && !r ? -1 : r && !n ? 1 : r && n ? ae.indexOf(t.id) - ae.indexOf(i.id) : -1;
1139
1136
  });
1140
1137
  }
1141
- function Xi(e, t) {
1138
+ function Qi(e, t) {
1142
1139
  const i = {
1143
1140
  new: [],
1144
1141
  save: [],
@@ -1158,47 +1155,47 @@ function Xi(e, t) {
1158
1155
  copyLink: { text: t.copyLink, group: "share" },
1159
1156
  embed: { text: t.embed, group: "share" },
1160
1157
  details: { text: t.itemDetails, group: "details", external: !0 }
1161
- }, r = Qi(e), o = [];
1158
+ }, r = Ki(e), o = [];
1162
1159
  return r.forEach((a) => {
1163
1160
  if (!se(a)) {
1164
1161
  o.push(a);
1165
1162
  return;
1166
1163
  }
1167
- const { text: l, external: d, group: m } = n[a.id];
1168
- i[m].push({ text: l, external: d, ...a });
1164
+ const { text: l, external: d, group: h } = n[a.id];
1165
+ i[h].push({ text: l, external: d, ...a });
1169
1166
  }), o.forEach((a) => {
1170
1167
  const s = a.group || "custom";
1171
1168
  i[s].push(a);
1172
1169
  }), i;
1173
1170
  }
1174
- function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a }) {
1171
+ function Xi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a }) {
1175
1172
  if (!t || !n || !i || i.id === "details" && !r)
1176
1173
  return null;
1177
- const { external: s, id: l, text: d } = i, m = `${O(t)}item.html?id=${r?.id}`;
1178
- return le(`${l}${d}`, c`<calcite-dropdown-item .iconEnd=${s ? "launch" : void 0} .href=${l === "details" ? m : i.href} .target=${s ? "_blank" : void 0} @calciteDropdownItemSelect=${(g) => {
1174
+ const { external: s, id: l, text: d } = i, h = `${O(t)}item.html?id=${r?.id}`;
1175
+ return le(`${l}${d}`, c`<calcite-dropdown-item .iconEnd=${s ? "launch" : void 0} .href=${l === "details" ? h : i.href} .target=${s ? "_blank" : void 0} @calciteDropdownItemSelect=${(f) => {
1179
1176
  if (l === "rename") {
1180
1177
  o?.();
1181
1178
  return;
1182
1179
  }
1183
- l === "details" && e({ event: g, href: m }), a?.({ type: l });
1180
+ l === "details" && e({ event: f, href: h }), a?.({ type: l });
1184
1181
  }}>${d}${l === "save" && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
1185
1182
  }
1186
- function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving: m, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: _, projectMenuClick: A, projectMenuOptions: w, projectTitleInputRef: I, projectButtonRef: N, messages: f }) {
1187
- if (!t || !f || !w?.length && !i)
1183
+ function Yi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving: h, projectTitleErrorMessage: f, projectMenuIcon: p, projectMenuSaveIndicator: w, projectMenuClick: A, projectMenuOptions: y, projectTitleInputRef: _, projectButtonRef: P, messages: b }) {
1184
+ if (!t || !b || !y?.length && !i)
1188
1185
  return null;
1189
- if (!w?.length)
1190
- return c`<div class="project__title">${p && c`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${_ && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
1191
- const h = Xi(w, f), u = !!g;
1192
- return d ? c`<form class="rename" @submit=${async (v) => {
1193
- v.preventDefault(), await r?.(n);
1194
- }} @keydown=${(v) => {
1195
- v.key === "Escape" && a?.();
1196
- }}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${f.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(v) => o?.(v.target.value)} ${W(I)}></calcite-input>${u && c`<calcite-popover open .label=${f.error} .referenceElement=${I?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${g}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${m} icon=check scale=l .text=${f?.saveRename} active class="rename__action" type=submit .loading=${m}></calcite-action><calcite-action .disabled=${m} icon=x scale=l .text=${f?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(N)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${_ && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(h).filter(([v, P]) => P.length), ([v, P]) => v, ([v, P]) => c`<calcite-dropdown-group selection-mode=none>${P.map((y) => Yi({ menuItem: y, navigate: e, portal: t, messages: f, portalItem: l, openProjectTitleEdit: s, projectMenuClick: A }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
1197
- }
1198
- function en(e) {
1186
+ if (!y?.length)
1187
+ return c`<div class="project__title">${p && c`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
1188
+ const m = Qi(y, b), u = !!f;
1189
+ return d ? c`<form class="rename" @submit=${async (g) => {
1190
+ g.preventDefault(), await r?.(n);
1191
+ }} @keydown=${(g) => {
1192
+ g.key === "Escape" && a?.();
1193
+ }}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${b.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(g) => o?.(g.target.value)} ${W(_)}></calcite-input>${u && c`<calcite-popover open .label=${b.error} .referenceElement=${_?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${f}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${h} icon=check scale=l .text=${b?.saveRename} active class="rename__action" type=submit .loading=${h}></calcite-action><calcite-action .disabled=${h} icon=x scale=l .text=${b?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(P)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${w && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(m).filter(([g, N]) => N.length), ([g, N]) => g, ([g, N]) => c`<calcite-dropdown-group selection-mode=none>${N.map(($) => Xi({ menuItem: $, navigate: e, portal: t, messages: b, portalItem: l, openProjectTitleEdit: s, projectMenuClick: A }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
1194
+ }
1195
+ function Zi(e) {
1199
1196
  return ["Location Platform", "Online", "Enterprise"].includes(e);
1200
1197
  }
1201
- function Be({
1198
+ function Ge({
1202
1199
  portal: e,
1203
1200
  searchType: t,
1204
1201
  searchTerm: i
@@ -1206,7 +1203,7 @@ function Be({
1206
1203
  const r = e?.sourceJSON?.vectorSearchEnabled ? `&mode=${t}` : "";
1207
1204
  return `search.html?q=${i}${r}`;
1208
1205
  }
1209
- function tn({ portal: e, item: t, messages: i, navigate: n }) {
1206
+ function en({ portal: e, item: t, messages: i, navigate: n }) {
1210
1207
  if (!t || !i)
1211
1208
  return null;
1212
1209
  const r = X(i.by, {
@@ -1215,52 +1212,52 @@ function tn({ portal: e, item: t, messages: i, navigate: n }) {
1215
1212
  }), o = `item.html?id=${t.id}`, a = `${O(e)}${o}`;
1216
1213
  return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${a ?? M} @click=${(s) => n({ event: s, href: a, relativePath: o })}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular list-item__title--large">${t.title}</span><span class="list-item__subtitle list-item__subtitle--large">${r}</span></span></span>`}</a></li>`);
1217
1214
  }
1218
- function nn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
1215
+ function tn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
1219
1216
  if (!i || !e || !o)
1220
1217
  return null;
1221
1218
  if (!t)
1222
1219
  return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
1223
- const a = Be({ portal: e, searchType: r, searchTerm: o }), s = `/${a}`, l = `${O(e)}${a}`;
1224
- return c`<ul class="list">${t.map((d) => tn({ messages: i, portal: e, item: d, navigate: n }))}</ul><div class="suggestions__footer"><calcite-button icon-end=arrow-right scale=l appearance=outline class="suggestions__footer__button" kind=neutral round .href=${l} @click=${(d) => {
1220
+ const a = Ge({ portal: e, searchType: r, searchTerm: o }), s = `/${a}`, l = `${O(e)}${a}`;
1221
+ return c`<ul class="list">${t.map((d) => en({ messages: i, portal: e, item: d, navigate: n }))}</ul><div class="suggestions__footer"><calcite-button icon-end=arrow-right scale=l appearance=outline class="suggestions__footer__button" kind=neutral round .href=${l} @click=${(d) => {
1225
1222
  n({ href: l, event: d, relativePath: s });
1226
1223
  }}>${i.viewAll}</calcite-button></div>`;
1227
1224
  }
1228
- function rn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
1225
+ function nn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
1229
1226
  if (!t || !e?.sourceJSON?.vectorSearchEnabled)
1230
1227
  return null;
1231
1228
  const r = i === "keyword", o = t.searchType;
1232
1229
  return c`<calcite-chip .label=${o.label} .icon=${r ? "text" : "effects"} id=search-type-toggle appearance=solid kind=neutral><span>${r ? o.keywordTitle : o.semanticTitle}</span><calcite-icon icon=chevron-down scale=s class="suggestions__search-type__icon" aria-hidden=true></calcite-icon></calcite-chip><calcite-popover pointer-disabled .label=${t.searchType.label} reference-element=search-type-toggle placement=bottom-end class="suggestions__search-type"><div class="esri-header-search-type-popover-contents"><calcite-list .label=${t.searchType.label} interaction-mode=interactive display-mode=flat scale=m selection-mode=none><calcite-list-item @calciteListItemSelect=${() => n("keyword")} icon-start=text value=keyword .label=${o.keywordTitle} .description=${o.keywordDescription}></calcite-list-item><calcite-list-item @calciteListItemSelect=${() => n("vector")} icon-start=effects value=semantic .label=${o.semanticTitle} .description=${o.semanticDescription}></calcite-list-item></calcite-list></div></calcite-popover>`;
1233
1230
  }
1234
- function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef: m, searchPopoverRef: g, handleSearch: p, handleToggleSearch: _, handleSearchTypeChange: A }) {
1235
- if (!en(i) || !r || !n || e?.includes("search.html"))
1231
+ function rn({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef: h, searchPopoverRef: f, handleSearch: p, handleToggleSearch: w, handleSearchTypeChange: A }) {
1232
+ if (!Zi(i) || !r || !n || e?.includes("search.html"))
1236
1233
  return null;
1237
- const w = Be({ portal: n, searchType: a, searchTerm: s }), I = `/${w}`, N = `${O(n)}${w}`;
1238
- return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(f) => p(f.target.value)} @keydown=${(f) => {
1239
- f.key === "Enter" && (t({ href: N, event: f, relativePath: I }), f.defaultPrevented || (window.location.href = N)), f.key === "Escape" && _(!1);
1240
- }} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => _(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(g)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${rn({ portal: n, messages: r, searchType: a, handleSearchTypeChange: A })}</div><div class="suggestions__results">${nn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: a, searchTerm: s })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => _(!0)} ${W(m)}></calcite-action>`;
1234
+ const y = Ge({ portal: n, searchType: a, searchTerm: s }), _ = `/${y}`, P = `${O(n)}${y}`;
1235
+ return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(b) => p(b.target.value)} @keydown=${(b) => {
1236
+ b.key === "Enter" && (t({ href: P, event: b, relativePath: _ }), b.defaultPrevented || (window.location.href = P)), b.key === "Escape" && w(!1);
1237
+ }} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => w(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(f)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${nn({ portal: n, messages: r, searchType: a, handleSearchTypeChange: A })}</div><div class="suggestions__results">${tn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: a, searchTerm: s })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => w(!0)} ${W(h)}></calcite-action>`;
1241
1238
  }
1242
- function an({ signIn: e, messages: t }) {
1239
+ function on({ signIn: e, messages: t }) {
1243
1240
  return c`<div class="border-start fade-in"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral @click=${() => e()}><span class="user__button__contents"><calcite-avatar scale=m class="user__button__avatar"></calcite-avatar><span class="user__button__text"><p class="user__button__username">${t?.signIn || ""}</p></span></span></calcite-button></div>`;
1244
1241
  }
1245
- function sn({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: a }) {
1246
- return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: m }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .active=${Ri(l, o, m)} @click=${(g) => e({ event: g, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
1242
+ function an({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: a }) {
1243
+ return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: h, newTab: f }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .target=${f ? "_blank" : void 0} .active=${Bi(l, o, h)} @click=${(p) => e({ event: p, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
1247
1244
  }
1248
- function cn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: a }) {
1245
+ function sn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: a }) {
1249
1246
  const s = r?.user;
1250
- return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: m, label: g, href: p, relativePath: _ }) => c`<calcite-dropdown-item .iconStart=${m} .href=${p} @keydown=${(A) => {
1251
- (A.key === "Enter" || A.key === " ") && i({ event: A, href: p, relativePath: _ });
1247
+ return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: h, label: f, href: p, relativePath: w }) => c`<calcite-dropdown-item .iconStart=${h} .href=${p} @keydown=${(A) => {
1248
+ (A.key === "Enter" || A.key === " ") && i({ event: A, href: p, relativePath: w });
1252
1249
  }} @click=${(A) => {
1253
- i({ event: A, href: p, relativePath: _ });
1254
- }}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
1250
+ i({ event: A, href: p, relativePath: w });
1251
+ }}>${f}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
1255
1252
  const d = Wt(l.target, "calcite-dropdown");
1256
1253
  d && (d.open = !1), n();
1257
1254
  }}>${t.switchAccounts}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=sign-out @calciteDropdownItemSelect=${() => o()}>${t.signOut}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></div>`;
1258
1255
  }
1259
- const Re = {
1256
+ const Ue = {
1260
1257
  community: "https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",
1261
1258
  myEsri: "https://my.esri.com"
1262
1259
  };
1263
- function ln({
1260
+ function cn({
1264
1261
  messages: e,
1265
1262
  userLinks: t
1266
1263
  }) {
@@ -1272,7 +1269,7 @@ function ln({
1272
1269
  i[n.group].options.push(n);
1273
1270
  }), i;
1274
1271
  }
1275
- function un({
1272
+ function ln({
1276
1273
  portal: e,
1277
1274
  messages: t,
1278
1275
  clientId: i
@@ -1282,10 +1279,10 @@ function un({
1282
1279
  account: { title: t?.account, options: [] },
1283
1280
  resources: { title: t?.account, options: [] }
1284
1281
  };
1285
- const n = hn(e), r = dn({ navLinkDictionary: n, messages: t, clientId: i });
1286
- return ln({ userLinks: r, messages: t });
1282
+ const n = pn(e), r = un({ navLinkDictionary: n, messages: t, clientId: i });
1283
+ return cn({ userLinks: r, messages: t });
1287
1284
  }
1288
- function dn({
1285
+ function un({
1289
1286
  navLinkDictionary: e,
1290
1287
  messages: t,
1291
1288
  clientId: i
@@ -1300,27 +1297,27 @@ function dn({
1300
1297
  "arcgisBlog",
1301
1298
  "help"
1302
1299
  ];
1303
- return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), Ge(i) && (n = []), pn(n, t, e);
1300
+ return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), dn(n, t, e);
1304
1301
  }
1305
- function pn(e, t, i) {
1302
+ function dn(e, t, i) {
1306
1303
  const n = [];
1307
1304
  return e.forEach((r) => {
1308
1305
  const o = i[r];
1309
1306
  if (o && (!("show" in o) || o.show)) {
1310
- const { href: a, newTab: s, icon: l, group: d, relativePath: m } = o;
1307
+ const { href: a, newTab: s, icon: l, group: d, relativePath: h } = o;
1311
1308
  n.push({
1312
1309
  label: t[r],
1313
1310
  group: d,
1314
1311
  href: a,
1315
1312
  newTab: s,
1316
- relativePath: m,
1313
+ relativePath: h,
1317
1314
  icon: l
1318
1315
  });
1319
1316
  }
1320
1317
  }), n;
1321
1318
  }
1322
- function hn(e) {
1323
- const t = O(e), i = mn(e), n = `user.html${window.location.pathname.includes("home/user.html") ? "?nav=1" : ""}`;
1319
+ function pn(e) {
1320
+ const t = O(e), i = hn(e), n = `user.html${window.location.pathname.includes("home/user.html") ? "?nav=1" : ""}`;
1324
1321
  return {
1325
1322
  myProfile: {
1326
1323
  href: `${t}${n}`,
@@ -1344,14 +1341,14 @@ function hn(e) {
1344
1341
  show: i,
1345
1342
  group: "resources",
1346
1343
  icon: "speech-bubbles",
1347
- href: Re.community,
1344
+ href: Ue.community,
1348
1345
  newTab: !0
1349
1346
  },
1350
1347
  myEsri: {
1351
1348
  show: i,
1352
1349
  group: "account",
1353
- icon: "globe",
1354
- href: gn(e),
1350
+ icon: "blank",
1351
+ href: fn(e),
1355
1352
  newTab: !0
1356
1353
  },
1357
1354
  arcgisBlog: {
@@ -1365,41 +1362,41 @@ function hn(e) {
1365
1362
  show: i,
1366
1363
  group: "resources",
1367
1364
  icon: "education",
1368
- href: fn(e),
1365
+ href: mn(e),
1369
1366
  newTab: !0
1370
1367
  },
1371
1368
  trialDownload: {
1372
1369
  group: "resources",
1373
1370
  icon: "download-to",
1374
- show: vn(e),
1371
+ show: bn(e),
1375
1372
  href: `${t}/home/user.html${window.location.pathname.includes("home/user.html") ? "?nav=1&tab=licenses" : "?tab=licenses"}#settings`
1376
1373
  }
1377
1374
  };
1378
1375
  }
1379
- function mn(e) {
1376
+ function hn(e) {
1380
1377
  return !e.isPortal && e?.user?.sourceJSON?.userType === "both";
1381
1378
  }
1382
- function fn(e) {
1383
- return Fe(
1379
+ function mn(e) {
1380
+ return Be(
1384
1381
  e,
1385
1382
  `${window.location.protocol}//www.esri.com/training/arcgis-online-training`
1386
1383
  );
1387
1384
  }
1388
- function gn(e) {
1389
- return Fe(e, Re.myEsri);
1385
+ function fn(e) {
1386
+ return Be(e, Ue.myEsri);
1390
1387
  }
1391
- function Fe(e, t) {
1392
- const i = de(e), n = bn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, a = `${r}LoginHandler/switchuser?`, s = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
1388
+ function Be(e, t) {
1389
+ const i = de(e), n = gn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, a = `${r}LoginHandler/switchuser?`, s = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
1393
1390
  return `${a}${s}`;
1394
1391
  }
1395
- function bn(e) {
1392
+ function gn(e) {
1396
1393
  const t = e.portalHostname;
1397
1394
  return t?.includes("dev") ? "dev" : t?.includes("qa") ? "qa" : "";
1398
1395
  }
1399
- function vn(e) {
1400
- return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON.subscriptionInfo?.type);
1396
+ function bn(e) {
1397
+ return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON?.subscriptionInfo?.type);
1401
1398
  }
1402
- function We(e) {
1399
+ function Fe(e) {
1403
1400
  switch (e) {
1404
1401
  case "360 VR":
1405
1402
  return {
@@ -1620,7 +1617,7 @@ function We(e) {
1620
1617
  };
1621
1618
  }
1622
1619
  }
1623
- function Ve({
1620
+ function Re({
1624
1621
  name: e,
1625
1622
  fileName: t,
1626
1623
  icon: i
@@ -1631,37 +1628,37 @@ function Ve({
1631
1628
  icon: ne(`assets/portal-navigation/apps/${i}.avif`)
1632
1629
  };
1633
1630
  }
1634
- function He({ portal: e, clientId: t }) {
1631
+ function We({ portal: e, clientId: t }) {
1635
1632
  return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : me(t) ? "GeoAnalytics Fabric" : he(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
1636
1633
  }
1637
- function _n(e) {
1638
- const t = He(e);
1639
- return Ve(We(t));
1634
+ function vn(e) {
1635
+ const t = We(e);
1636
+ return Re(Fe(t));
1640
1637
  }
1641
1638
  function xe(e) {
1642
- const t = e?.product === "Online" ? He(e) : e?.product;
1643
- return Ve(We(t));
1639
+ const t = e?.product === "Online" ? We(e) : e?.product;
1640
+ return Re(Fe(t));
1644
1641
  }
1645
- function wn() {
1646
- const e = Pt();
1642
+ function _n() {
1643
+ const e = St();
1647
1644
  ["item.html", "group.html"].some((t) => window.location.href.includes(t)) ? window.location.href = `./signin.html?locale=${e}&useLandingPage=false&returnUrl=${encodeURIComponent(
1648
1645
  window.location.href
1649
1646
  )}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
1650
1647
  }
1651
- function yn({ portal: e, clientId: t }) {
1648
+ function wn({ portal: e, clientId: t }) {
1652
1649
  const i = ce({ portal: e });
1653
1650
  if (e?.isPortal) {
1654
1651
  const n = e.access === "private" ? J("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? J("./index.html", e) : `${i}/index.html`;
1655
- An(e, n);
1652
+ $n(e, n);
1656
1653
  } else
1657
1654
  window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
1658
1655
  }
1659
- function $n() {
1660
- ci(Ae), li(Ae);
1656
+ function yn() {
1657
+ ci(ke), li(ke);
1661
1658
  }
1662
- function An(e, t = window.location.href) {
1663
- const i = window.location.href.startsWith("http://"), n = Ft(e);
1664
- Ht.destroyCredentials(), $n();
1659
+ function $n(e, t = window.location.href) {
1660
+ const i = window.location.href.startsWith("http://"), n = Rt(e);
1661
+ Ht.destroyCredentials(), yn();
1665
1662
  const r = new URL(J(`${de(e)}oauth2/signout`, e)), { searchParams: o } = r;
1666
1663
  o.append("client_id", "arcgisonline"), o.append("redirect_uri", t), n && i && (e.isPortal || e.user?.sourceJSON.provider === "enterprise") && o.append("token", n), window.location.href = r.href;
1667
1664
  }
@@ -1681,27 +1678,27 @@ function kn({
1681
1678
  }) {
1682
1679
  if (!t || !e)
1683
1680
  return;
1684
- const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((g, p) => g + 16 + z(p.label) + 16, 0) : 0, d = 40 + z(i) + 32 + 16 + 16 + 12, m = a ? Math.max(z(a?.username, "s"), z(a?.fullName)) : z(r?.signIn);
1681
+ const a = e.user, l = Q(t) && n?.length ? 24 + n.reduce((f, p) => f + 16 + z(p.label) + 16, 0) : 0, d = 40 + z(i) + 32 + 16 + 16 + 12, h = a ? Math.max(z(a?.username, "s"), z(a?.fullName)) : z(r?.signIn);
1685
1682
  return {
1686
1683
  actions: 192,
1687
1684
  project: i ? Math.min(d, 400) : 0,
1688
1685
  product: 64 + Math.max(z(o?.name), z(e.name, "s")) + 16,
1689
1686
  nav: l,
1690
- user: 64 + m + 16
1687
+ user: 64 + h + 16
1691
1688
  };
1692
1689
  }
1693
- function xn({
1690
+ function An({
1694
1691
  measurements: e,
1695
1692
  screenWidth: t
1696
1693
  }) {
1697
- const { actions: i, nav: n, product: r, project: o, user: a } = e, s = 64, l = t - i - s > n, d = t - i - (l ? n : 0) - o - s > Math.min(r, 400), m = t - n - o - i - r < Math.min(a, 320);
1694
+ const { actions: i, nav: n, product: r, project: o, user: a } = e, s = 64, l = t - i - s > n, d = t - i - (l ? n : 0) - o - s > Math.min(r, 400), h = t - n - o - i - r < Math.min(a, 320);
1698
1695
  return {
1699
1696
  nav: l,
1700
1697
  product: d,
1701
- user: m ? "avatar" : "full"
1698
+ user: h ? "avatar" : "full"
1702
1699
  };
1703
1700
  }
1704
- const qe = ' -type:"Code Attachment" -type:"Featured Items" -type:"Symbol Set" -type:"Color Set" -type:"Windows Viewer Add In" -type:"Windows Viewer Configuration" -type:"Map Area" -typekeywords:"MapAreaPackage" -type:"Indoors Map Configuration" -typekeywords:"SMX"';
1701
+ const Ve = ' -type:"Code Attachment" -type:"Featured Items" -type:"Symbol Set" -type:"Color Set" -type:"Windows Viewer Add In" -type:"Windows Viewer Configuration" -type:"Map Area" -typekeywords:"MapAreaPackage" -type:"Indoors Map Configuration" -typekeywords:"SMX"';
1705
1702
  async function Se({
1706
1703
  portal: e,
1707
1704
  searchTerm: t
@@ -1711,7 +1708,7 @@ async function Se({
1711
1708
  try {
1712
1709
  return (await e.queryItems({
1713
1710
  ...t ? { query: t } : {},
1714
- filter: `owner:${e.user.username}${qe}`,
1711
+ filter: `owner:${e.user.username}${Ve}`,
1715
1712
  num: 20,
1716
1713
  sortField: "modified",
1717
1714
  sortOrder: "desc"
@@ -1720,13 +1717,13 @@ async function Se({
1720
1717
  return [];
1721
1718
  }
1722
1719
  }
1723
- async function Sn({
1720
+ async function xn({
1724
1721
  portal: e,
1725
1722
  searchTerm: t
1726
1723
  }) {
1727
1724
  if (!e)
1728
1725
  return [];
1729
- const i = Jt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${qe}`, r = `${de(e)}search/suggest`;
1726
+ const i = Jt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${de(e)}search/suggest`;
1730
1727
  return (await B(r, { query: {
1731
1728
  suggest: i,
1732
1729
  filters: n,
@@ -1734,13 +1731,13 @@ async function Sn({
1734
1731
  f: "json"
1735
1732
  } }))?.result?.results || [];
1736
1733
  }
1737
- const In = St`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column;max-height:100%}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.platform__tabs{min-height:0;flex:1 1 auto;--calcite-tab-content-space-y: 0}.platform__tab{position:relative}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
1738
- function Pn({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
1734
+ const Sn = At`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
1735
+ function In({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
1739
1736
  return !e || i && !t?.user ? null : c`<calcite-action .label=${e.applicationMenu} text="app switcher" icon=app-launcher scale=l class="action" @click=${n} @focusin=${() => r(!1, !0)}></calcite-action>`;
1740
1737
  }
1741
- class Nn extends At {
1738
+ class Pn extends yt {
1742
1739
  constructor() {
1743
- super(...arguments), this.messages = kt({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
1740
+ super(...arguments), this.messages = $t({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
1744
1741
  const { portal: t, messages: i } = this;
1745
1742
  this.notifications = await _e({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
1746
1743
  }, this.deleteNotifications = async (t) => {
@@ -1750,13 +1747,13 @@ class Nn extends At {
1750
1747
  else {
1751
1748
  let n = 0;
1752
1749
  for await (const r of t)
1753
- await Le({ id: r, portal: i }), this.notificationDeleteProgress = Math.ceil(n++ / t.length * 100);
1750
+ await Me({ id: r, portal: i }), this.notificationDeleteProgress = Math.ceil(n++ / t.length * 100);
1754
1751
  }
1755
1752
  this.notificationDeleteProgress = void 0, this.refreshNotifications();
1756
1753
  }, this.navigate = (t) => {
1757
1754
  this.arcgisNavigate.emit(t), this.platformMenuOpen = !1, this.notificationsActive = !1, this.searchActive = !1;
1758
1755
  }, this.openPlatformMenu = () => {
1759
- this.platformMenuOpen = !0, this.searchActive = !1, T(this.portal) || (this.platformTab = "apps");
1756
+ this.platformMenuOpen = !0, this.searchActive = !1, C(this.portal) || (this.platformTab = "apps");
1760
1757
  }, this.projectMenuClick = (t) => {
1761
1758
  this.arcgisNavigationProjectMenuClick.emit(t);
1762
1759
  }, this.openProjectTitleEdit = () => {
@@ -1769,7 +1766,7 @@ class Nn extends At {
1769
1766
  });
1770
1767
  }, this.handleProjectTitleSave = async (t) => {
1771
1768
  this.projectTitleSaving = !0;
1772
- const n = await (this.projectTitleSave || Ki)(t);
1769
+ const n = await (this.projectTitleSave || Ji)(t);
1773
1770
  if (this.projectTitleSaving = !1, n.status === "success") {
1774
1771
  this.closeProjectTitleEdit();
1775
1772
  return;
@@ -1781,9 +1778,9 @@ class Nn extends At {
1781
1778
  this.editedProjectTitle = this.projectTitle, this.closeProjectTitleEdit();
1782
1779
  }, this.signOut = () => {
1783
1780
  const { portal: t, clientId: i } = this;
1784
- yn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
1781
+ wn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
1785
1782
  }, this.signIn = () => {
1786
- this.arcgisNavigationSignIn.emit(), wn();
1783
+ this.arcgisNavigationSignIn.emit(), _n();
1787
1784
  }, this.openAccountSwitcher = () => {
1788
1785
  this.accountSwitcherOpen = !0;
1789
1786
  }, this.handlePlatformClose = () => {
@@ -1793,7 +1790,7 @@ class Nn extends At {
1793
1790
  }, this.handleAppSave = async () => {
1794
1791
  const { hiddenApps: t, sortedApps: i, userProperties: n, portal: r } = this;
1795
1792
  this.apps = [...i], this.editingApplications = !1, this.appsLoading = !0;
1796
- const { result: o } = await Ei({ apps: i, hiddenApps: t, userProperties: n, portal: r });
1793
+ const { result: o } = await Li({ apps: i, hiddenApps: t, userProperties: n, portal: r });
1797
1794
  o?.success && (this.previousAppState = {
1798
1795
  apps: i,
1799
1796
  hiddenApps: t
@@ -1812,7 +1809,7 @@ class Nn extends At {
1812
1809
  }, this.debouncedItemSearch = be(async (t) => {
1813
1810
  this.recentContent = await Se({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1, t || (this.originalRecentContent = [...this.recentContent]);
1814
1811
  }, 1e3), this.debouncedSuggest = be(async (t) => {
1815
- this.suggestions = await Sn({ portal: this.portal, searchTerm: t });
1812
+ this.suggestions = await xn({ portal: this.portal, searchTerm: t });
1816
1813
  }, 1e3), this.handleSearch = (t) => {
1817
1814
  this.searchTerm = t, this.suggestions = void 0, this.debouncedSuggest(t);
1818
1815
  }, this.sizeSearchPopover = () => {
@@ -1833,13 +1830,13 @@ class Nn extends At {
1833
1830
  });
1834
1831
  }, this.handleSearchTypeChange = (t) => {
1835
1832
  this.searchType = t;
1836
- }, this.searchInput = F(), this.searchAction = F(), this.searchPopover = F(), this.projectTitleInputRef = F(), this.projectButtonRef = F(), this.initialDocumentOverflowStyle = document.documentElement.style.overflow, this.links = [], this.notifications = [], this.notificationsActive = !1, this.apps = [], this.hiddenApps = {}, this.sortedApps = [], this.appsSearchTerm = "", this.appsLoading = !0, this.editingApplications = !1, this.recentContent = [], this.recentContentSearchTerm = "", this.recentContentLoading = !0, this.platformMenuOpen = !1, this.platformTab = "apps", this.accountSwitcherOpen = !1, this.projectTitleEditing = !1, this.projectTitleSaving = !1, this.screenWidth = window.innerWidth, this.searchActive = !1, this.searchTerm = "", this.searchType = "keyword", this.projectMenuOptions = [], this.currentPathname = window.location.pathname, this.arcgisNavigate = q(), this.arcgisNavigationProjectMenuClick = q(), this.arcgisNavigationSignIn = q(), this.arcgisNavigationSignOut = q();
1833
+ }, this.searchInput = R(), this.searchAction = R(), this.searchPopover = R(), this.projectTitleInputRef = R(), this.projectButtonRef = R(), this.initialDocumentOverflowStyle = document.documentElement.style.overflow, this.links = [], this.notifications = [], this.notificationsActive = !1, this.apps = [], this.hiddenApps = {}, this.sortedApps = [], this.appsSearchTerm = "", this.appsLoading = !0, this.editingApplications = !1, this.recentContent = [], this.recentContentSearchTerm = "", this.recentContentLoading = !0, this.platformMenuOpen = !1, this.platformTab = "apps", this.accountSwitcherOpen = !1, this.projectTitleEditing = !1, this.projectTitleSaving = !1, this.screenWidth = window.innerWidth, this.searchActive = !1, this.searchTerm = "", this.searchType = "keyword", this.projectMenuOptions = [], this.currentPathname = window.location.pathname, this.arcgisNavigate = q(), this.arcgisNavigationProjectMenuClick = q(), this.arcgisNavigationSignIn = q(), this.arcgisNavigationSignOut = q();
1837
1834
  }
1838
1835
  static {
1839
- this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9 };
1836
+ this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9, showNotifications: 5 };
1840
1837
  }
1841
1838
  static {
1842
- this.styles = In;
1839
+ this.styles = Sn;
1843
1840
  }
1844
1841
  #e;
1845
1842
  connectedCallback() {
@@ -1863,19 +1860,19 @@ class Nn extends At {
1863
1860
  }
1864
1861
  async fetchData() {
1865
1862
  const { portal: t, messages: i, clientId: n, product: r } = this;
1866
- this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo = _n({ clientId: n, portal: t }), this.userLinks = un({ portal: t, messages: i.user, clientId: n }), this.notifications = await _e({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Se({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
1867
- const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await Oi({
1863
+ this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo = vn({ clientId: n, portal: t }), this.userLinks = ln({ portal: t, messages: i.user, clientId: n }), this.notifications = await _e({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Se({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
1864
+ const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await Mi({
1868
1865
  portal: t,
1869
1866
  trackViewerEnabled: !this.disableTrackViewer,
1870
1867
  notebookServerEnabled: !this.disableNotebookServer
1871
- }), m = await Et(t);
1872
- this.infoBanner = m?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links = Gi({
1868
+ }), h = await Lt(t);
1869
+ this.infoBanner = h?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links = zi({
1873
1870
  portal: t,
1874
1871
  messages: i.links,
1875
1872
  licenses: l,
1876
1873
  clientId: n,
1877
1874
  signInSettings: s
1878
- }), T(t) && (this.platformTab = "content"), this.calculateMeasurements();
1875
+ }), C(t) && (this.platformTab = "content"), this.calculateMeasurements();
1879
1876
  }
1880
1877
  calculateMeasurements() {
1881
1878
  const { links: t, messages: i, portal: n, product: r, productInfo: o, projectTitle: a } = this;
@@ -1894,18 +1891,18 @@ class Nn extends At {
1894
1891
  updateBreakpoints() {
1895
1892
  const { measurements: t, maxWidth: i } = this;
1896
1893
  if (t) {
1897
- const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r = xn({ measurements: t, screenWidth: n });
1894
+ const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r = An({ measurements: t, screenWidth: n });
1898
1895
  this.showProduct = r.product, this.showNav = r.nav, this.showUser = r.user;
1899
1896
  }
1900
1897
  }
1901
1898
  render() {
1902
- const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch: A, handleSearchTypeChange: w, hiddenApps: I, infoBanner: N, links: f, messages: h, navigate: u, notifications: v, notificationsActive: P, notificationDeleteProgress: y, openAccountSwitcher: x, platformInfo: k, portal: b, portalItem: j, product: L, productInfo: $, productHref: E, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: Je, handleProjectTitleCancel: Ke, handleToggleNotifications: fe, openProjectTitleEdit: Qe, openPlatformMenu: Xe, platformMenuOpen: Ye, projectTitleEditing: Z, projectTitleSaving: Ze, projectTitleErrorMessage: et, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: at, recentContent: st, recentContentSearchTerm: ct, recentContentLoading: lt, userLinks: ut, searchActive: R, searchTerm: dt, searchType: pt, searchInput: ht, searchAction: mt, searchPopover: ft, showNav: ee, showProduct: gt, showUser: bt, suggestions: vt } = this, _t = b?.user, wt = Q(L) && !f?.length || !this.measurements;
1903
- return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": wt })}>${Pn({ messages: h?.platform, portal: b, showNav: ee, openPlatformMenu: Xe, handleToggleSearch: A })}${gt && Kt({ navigate: u, portal: b, product: L, productInfo: $, productHref: E, messages: h?.logo, showNav: ee, searchActive: R, projectTitleEditing: Z }) || ""}${Zi({ navigate: u, portal: b, portalItem: j, messages: h?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: Je, openProjectTitleEdit: Qe, projectTitleErrorMessage: et, handleProjectTitleCancel: Ke, projectTitleEditing: Z, projectTitleSaving: Ze, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: at })}${ee && sn({ searchActive: R, navigate: u, portal: b, product: L, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || R}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: b, product: L, messages: h?.search, searchActive: R, searchType: pt, searchTerm: dt, suggestions: vt, handleSearch: _, handleToggleSearch: A, handleSearchTypeChange: w, searchInputRef: ht, searchActionRef: mt, searchPopoverRef: ft })}${_t ? c`<div class="border-start">${ri({ notifications: v, notificationsActive: P, messages: h?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${oi({ notificationsActive: P, notifications: v, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: h?.notifications, notificationDeleteProgress: y })}</div>${cn({ portal: b, userLinks: ut, openAccountSwitcher: b?.isPortal ? void 0 : x, signOut: this.signOut, messages: h?.user, textDisabled: bt === "avatar", navigate: u })}` : an({ messages: h.user, signIn: this.signIn })}</header>${Ji({ locale: h._t9nLocale, navigate: u, portal: b, product: L, platformInfo: k, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Ye, links: f, recentContent: st, recentContentSearchTerm: ct, recentContentLoading: lt, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (yt) => this.appsSearchTerm = yt, handleAppSave: m, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
1899
+ const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: h, handleItemSearch: f, handlePlatformClose: p, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, hiddenApps: _, infoBanner: P, links: b, messages: m, navigate: u, notifications: g, notificationsActive: N, notificationDeleteProgress: $, openAccountSwitcher: S, platformInfo: x, portal: v, portalItem: j, product: L, productInfo: k, productHref: E, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, handleProjectTitleCancel: qe, handleToggleNotifications: fe, openProjectTitleEdit: Je, openPlatformMenu: Ke, platformMenuOpen: Qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectTitleErrorMessage: Ye, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, userLinks: ct, searchActive: F, searchTerm: lt, searchType: ut, searchInput: dt, searchAction: pt, searchPopover: ht, showNav: ee, showProduct: mt, showUser: ft, suggestions: gt } = this, bt = v?.user, vt = Q(L) && !b?.length || !this.measurements;
1900
+ return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": F })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${P}></arcgis-portal-info-banner>${v?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": vt })}>${In({ messages: m?.platform, portal: v, showNav: ee, openPlatformMenu: Ke, handleToggleSearch: A })}${mt && Kt({ navigate: u, portal: v, product: L, productInfo: k, productHref: E, messages: m?.logo, showNav: ee, searchActive: F, projectTitleEditing: Z }) || ""}${Yi({ navigate: u, portal: v, portalItem: j, messages: m?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, openProjectTitleEdit: Je, projectTitleErrorMessage: Ye, handleProjectTitleCancel: qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt })}${ee && an({ searchActive: F, navigate: u, portal: v, product: L, messages: m?.links, links: b, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || F}><slot name=content-end></slot></div>${rn({ currentPathname: o, navigate: u, portal: v, product: L, messages: m?.search, searchActive: F, searchType: ut, searchTerm: lt, suggestions: gt, handleSearch: w, handleToggleSearch: A, handleSearchTypeChange: y, searchInputRef: dt, searchActionRef: pt, searchPopoverRef: ht })}${bt ? c`<div class="border-start">${this.showNotifications && c`${ri({ notifications: g, notificationsActive: N, messages: m?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${oi({ notificationsActive: N, notifications: g, navigate: u, portal: v, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: m?.notifications, notificationDeleteProgress: $ })}` || ""}</div>${sn({ portal: v, userLinks: ct, openAccountSwitcher: v?.isPortal ? void 0 : S, signOut: this.signOut, messages: m?.user, textDisabled: ft === "avatar", navigate: u })}` : on({ messages: m.user, signIn: this.signIn })}</header>${qi({ locale: m._t9nLocale, navigate: u, portal: v, product: L, platformInfo: x, messages: m?.platform, apps: i, appsLoading: n, hiddenApps: _, appsSearchTerm: r, editingApplications: this.editingApplications, open: Qe, links: b, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (_t) => this.appsSearchTerm = _t, handleAppSave: h, handleAppCancel: a, handleAppHide: l, handleItemSearch: f, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${v} @arcgisClose=${() => {
1904
1901
  this.accountSwitcherOpen = !1;
1905
1902
  }}></arcgis-portal-account-switcher>` || ""}</div>`;
1906
1903
  }
1907
1904
  }
1908
- $t("arcgis-portal-navigation", Nn);
1905
+ wt("arcgis-portal-navigation", Pn);
1909
1906
  export {
1910
- Nn as ArcGISPortalNavigation
1907
+ Pn as ArcGISPortalNavigation
1911
1908
  };