@arcgis/portal-components 5.2.0-next.7 → 5.2.0-next.70

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 (517) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/24L3PS2J.js +2 -0
  3. package/dist/cdn/26OYXJSF.js +2 -0
  4. package/dist/cdn/2BUE3JLM.js +2 -0
  5. package/dist/cdn/2GBRZSEC.js +2 -0
  6. package/dist/cdn/2RMN34M3.js +2 -0
  7. package/dist/cdn/2WI5FBDF.js +2 -0
  8. package/dist/cdn/3BKTFFIT.js +2 -0
  9. package/dist/cdn/3CGDAKQD.js +2 -0
  10. package/dist/cdn/{GQFWFZXP.js → 3OBIA66A.js} +1 -1
  11. package/dist/cdn/3VHKKQKD.js +2 -0
  12. package/dist/cdn/4JYY326A.js +2 -0
  13. package/dist/cdn/4Q6KHGPX.js +2 -0
  14. package/dist/cdn/4QA4AYHJ.js +3 -0
  15. package/dist/cdn/556LTKMV.js +2 -0
  16. package/dist/cdn/55FL7WQV.js +2 -0
  17. package/dist/cdn/5655BW4U.js +2 -0
  18. package/dist/cdn/56LBNVWI.js +2 -0
  19. package/dist/cdn/5GK4VL6E.js +2 -0
  20. package/dist/cdn/5KDFY5KE.js +2 -0
  21. package/dist/cdn/5YULDF4I.js +2 -0
  22. package/dist/cdn/{7WZHZP6U.js → 63THOLAY.js} +9 -3
  23. package/dist/cdn/{DHHSKOUY.js → 6BUBZ7WC.js} +1 -1
  24. package/dist/cdn/6DXCDYO4.js +2 -0
  25. package/dist/cdn/6KVA4AKM.js +2 -0
  26. package/dist/cdn/6TO2BYXU.js +2 -0
  27. package/dist/cdn/7FER4S6E.js +2 -0
  28. package/dist/cdn/7X4JEFCG.js +2 -0
  29. package/dist/cdn/7XINE67Y.js +2 -0
  30. package/dist/cdn/{WOZDQW3S.js → AAHGOYVY.js} +1 -1
  31. package/dist/cdn/{QNUYUNEY.js → AQLILDJK.js} +1 -1
  32. package/dist/cdn/{ZTHTFEYA.js → BGQ633WP.js} +1 -1
  33. package/dist/cdn/{DKBTJJMW.js → C7ZFXRPS.js} +1 -1
  34. package/dist/cdn/CFBSBZSS.js +2 -0
  35. package/dist/cdn/CSAR4TK7.js +2 -0
  36. package/dist/cdn/CZQEMMJG.js +2 -0
  37. package/dist/cdn/{GT26WGJS.js → D4VYYWA6.js} +1 -1
  38. package/dist/cdn/DALGPO36.js +2 -0
  39. package/dist/cdn/FH2SJYYU.js +2 -0
  40. package/dist/cdn/FL3NSFMY.js +2 -0
  41. package/dist/cdn/FLXTOBVV.js +2 -0
  42. package/dist/cdn/G2KWSRCG.js +2 -0
  43. package/dist/cdn/GIV4XNVY.js +2 -0
  44. package/dist/cdn/H2WZ3ZHI.js +2 -0
  45. package/dist/cdn/IJ3CLFAU.js +22 -0
  46. package/dist/cdn/IX2DKW34.js +2 -0
  47. package/dist/cdn/JTIPENXE.js +2 -0
  48. package/dist/cdn/JVGCIDQW.js +2 -0
  49. package/dist/cdn/{3PAHY5KA.js → KNRJ3WXR.js} +1 -1
  50. package/dist/cdn/L2BME3WC.js +2 -0
  51. package/dist/cdn/{F6V7MLPY.js → L6KBBJEC.js} +1 -1
  52. package/dist/cdn/LI7PX6XN.js +2 -0
  53. package/dist/cdn/LRADZ46B.js +2 -0
  54. package/dist/cdn/LUT4IGPP.js +2 -0
  55. package/dist/cdn/LVHP4FCZ.js +2 -0
  56. package/dist/cdn/M7DQVQO6.js +2 -0
  57. package/dist/cdn/MLBPMZ3Q.js +2 -0
  58. package/dist/cdn/MTAF2OG3.js +2 -0
  59. package/dist/cdn/NDMJK6MD.js +66 -0
  60. package/dist/cdn/NFGBWHVE.js +2 -0
  61. package/dist/cdn/NIGUPMVS.js +2 -0
  62. package/dist/cdn/OBBYT2AV.js +2 -0
  63. package/dist/cdn/{53MSUMA3.js → OT4PZJNB.js} +17 -1
  64. package/dist/cdn/PGCNY5GO.js +451 -0
  65. package/dist/cdn/PMRO7G6N.js +2 -0
  66. package/dist/cdn/PYMDLCLS.js +2 -0
  67. package/dist/cdn/QE4CNVDQ.js +34 -0
  68. package/dist/cdn/{AQWTJKUH.js → QKCV7CY2.js} +10 -8
  69. package/dist/cdn/QNA62UMC.js +2 -0
  70. package/dist/cdn/QS3GXAIH.js +2 -0
  71. package/dist/cdn/QZD2UBOW.js +2 -0
  72. package/dist/cdn/RMXAPW7B.js +2 -0
  73. package/dist/cdn/SLSCUAED.js +2 -0
  74. package/dist/cdn/SLTFLCVR.js +99 -0
  75. package/dist/cdn/TJMKZOE4.js +2 -0
  76. package/dist/cdn/{DXCPWJU4.js → TKCE4WYE.js} +1 -1
  77. package/dist/cdn/TQLHU3PC.js +2 -0
  78. package/dist/cdn/UC4LOAHI.js +2 -0
  79. package/dist/cdn/UZCHLKLO.js +2 -0
  80. package/dist/cdn/UZLQALHY.js +2 -0
  81. package/dist/cdn/V4EVETH3.js +2 -0
  82. package/dist/cdn/{RR4BIAPA.js → V4EYW3O6.js} +1 -1
  83. package/dist/cdn/VMQIDO4Z.js +2 -0
  84. package/dist/cdn/{74XFARCV.js → VW7DSKPH.js} +1 -1
  85. package/dist/cdn/W2SYL7IJ.js +71 -0
  86. package/dist/cdn/{LQ3DMZ3K.js → W3UBNVKL.js} +1 -1
  87. package/dist/cdn/{W6PSG4GX.js → W4FGRGLV.js} +10 -5
  88. package/dist/cdn/{SYJSVUUR.js → W4SAWMXS.js} +1 -1
  89. package/dist/cdn/W7DWQ34O.js +660 -0
  90. package/dist/cdn/WBZLQZYR.js +134 -0
  91. package/dist/cdn/WFBLVCZP.js +2 -0
  92. package/dist/cdn/WJORAGJA.js +2 -0
  93. package/dist/cdn/WO5XWXPJ.js +2 -0
  94. package/dist/cdn/WQGRTBPJ.js +2 -0
  95. package/dist/cdn/XBK3SKPG.js +2 -0
  96. package/dist/cdn/XDVSCHDD.js +2 -0
  97. package/dist/cdn/XEK22IDA.js +2 -0
  98. package/dist/cdn/{LAFNDBTQ.js → XLLMHJCE.js} +1 -1
  99. package/dist/cdn/XV3YTVJS.js +2 -0
  100. package/dist/cdn/Y2XRSYBB.js +2 -0
  101. package/dist/cdn/Y6LXW5X5.js +2 -0
  102. package/dist/cdn/YLXNYRQX.js +2 -0
  103. package/dist/cdn/YVKSTDL6.js +2 -0
  104. package/dist/cdn/ZIHVOT5D.js +2 -0
  105. package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -0
  106. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  107. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
  108. package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
  109. package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -0
  110. package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
  111. package/dist/cdn/assets/portal-item-badges/t9n/messages.en.json +1 -0
  112. package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -0
  113. package/dist/cdn/assets/portal-item-favorite/t9n/messages.en.json +1 -0
  114. package/dist/cdn/assets/portal-item-type/icons/applicationtheme16.svg +1 -0
  115. package/dist/cdn/assets/portal-item-type/icons/applicationtheme32.svg +1 -0
  116. package/dist/cdn/assets/portal-item-type/icons/layout16.svg +1 -0
  117. package/dist/cdn/assets/portal-item-type/icons/layout32.svg +1 -0
  118. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
  119. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
  120. package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
  121. package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
  122. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  123. package/dist/cdn/assets/portal-navigation/apps/api-for-python.avif +0 -0
  124. package/dist/cdn/assets/portal-navigation/apps/appstudio.avif +0 -0
  125. package/dist/cdn/assets/portal-navigation/apps/arcade.avif +0 -0
  126. package/dist/cdn/assets/portal-navigation/apps/arcgis-360-vr.avif +0 -0
  127. package/dist/cdn/assets/portal-navigation/apps/arcgis-earth.avif +0 -0
  128. package/dist/cdn/assets/portal-navigation/apps/arcgis-enterprise.avif +0 -0
  129. package/dist/cdn/assets/portal-navigation/apps/arcgis-experience-builder.avif +0 -0
  130. package/dist/cdn/assets/portal-navigation/apps/arcgis-geoanalytics.avif +0 -0
  131. package/dist/cdn/assets/portal-navigation/apps/arcgis-hub.avif +0 -0
  132. package/dist/cdn/assets/portal-navigation/apps/arcgis-online.avif +0 -0
  133. package/dist/cdn/assets/portal-navigation/apps/arcgis-pro.avif +0 -0
  134. package/dist/cdn/assets/portal-navigation/apps/arcgis-reality-studio.avif +0 -0
  135. package/dist/cdn/assets/portal-navigation/apps/arcgis-urban.avif +0 -0
  136. package/dist/cdn/assets/portal-navigation/apps/blank.avif +0 -0
  137. package/dist/cdn/assets/portal-navigation/apps/business-analyst.avif +0 -0
  138. package/dist/cdn/assets/portal-navigation/apps/city-engine.avif +0 -0
  139. package/dist/cdn/assets/portal-navigation/apps/collector.avif +0 -0
  140. package/dist/cdn/assets/portal-navigation/apps/community-analyst.avif +0 -0
  141. package/dist/cdn/assets/portal-navigation/apps/configurable-apps.avif +0 -0
  142. package/dist/cdn/assets/portal-navigation/apps/dashboards-beta.avif +0 -0
  143. package/dist/cdn/assets/portal-navigation/apps/dashboards-classic.avif +0 -0
  144. package/dist/cdn/assets/portal-navigation/apps/data-pipelines.avif +0 -0
  145. package/dist/cdn/assets/portal-navigation/apps/deeplearningstudio.avif +0 -0
  146. package/dist/cdn/assets/portal-navigation/apps/demographics.avif +0 -0
  147. package/dist/cdn/assets/portal-navigation/apps/drone2map.avif +0 -0
  148. package/dist/cdn/assets/portal-navigation/apps/esri-events.avif +0 -0
  149. package/dist/cdn/assets/portal-navigation/apps/essential-apps.avif +0 -0
  150. package/dist/cdn/assets/portal-navigation/apps/excalibur.avif +0 -0
  151. package/dist/cdn/assets/portal-navigation/apps/explorer.avif +0 -0
  152. package/dist/cdn/assets/portal-navigation/apps/field-apps.avif +0 -0
  153. package/dist/cdn/assets/portal-navigation/apps/fieldmaps-beta.avif +0 -0
  154. package/dist/cdn/assets/portal-navigation/apps/fieldmaps-ea.avif +0 -0
  155. package/dist/cdn/assets/portal-navigation/apps/fieldmaps.avif +0 -0
  156. package/dist/cdn/assets/portal-navigation/apps/generic-app.avif +0 -0
  157. package/dist/cdn/assets/portal-navigation/apps/geobim.avif +0 -0
  158. package/dist/cdn/assets/portal-navigation/apps/geoplanner.avif +0 -0
  159. package/dist/cdn/assets/portal-navigation/apps/grid-view-9.avif +0 -0
  160. package/dist/cdn/assets/portal-navigation/apps/indoor.avif +0 -0
  161. package/dist/cdn/assets/portal-navigation/apps/indoors.avif +0 -0
  162. package/dist/cdn/assets/portal-navigation/apps/insights.avif +0 -0
  163. package/dist/cdn/assets/portal-navigation/apps/instant-apps.avif +0 -0
  164. package/dist/cdn/assets/portal-navigation/apps/ips.avif +0 -0
  165. package/dist/cdn/assets/portal-navigation/apps/knowledge-studio.avif +0 -0
  166. package/dist/cdn/assets/portal-navigation/apps/living-atlas.avif +0 -0
  167. package/dist/cdn/assets/portal-navigation/apps/location-platform.avif +0 -0
  168. package/dist/cdn/assets/portal-navigation/apps/map-maker.avif +0 -0
  169. package/dist/cdn/assets/portal-navigation/apps/map-viewer-beta.avif +0 -0
  170. package/dist/cdn/assets/portal-navigation/apps/map-viewer-classic.avif +0 -0
  171. package/dist/cdn/assets/portal-navigation/apps/map-viewer.avif +0 -0
  172. package/dist/cdn/assets/portal-navigation/apps/maps-adobe-cloud.avif +0 -0
  173. package/dist/cdn/assets/portal-navigation/apps/maps-for-office.avif +0 -0
  174. package/dist/cdn/assets/portal-navigation/apps/maps-for-power-bi.avif +0 -0
  175. package/dist/cdn/assets/portal-navigation/apps/maps-for-sharepoint.avif +0 -0
  176. package/dist/cdn/assets/portal-navigation/apps/marketplace.avif +0 -0
  177. package/dist/cdn/assets/portal-navigation/apps/mission.avif +0 -0
  178. package/dist/cdn/assets/portal-navigation/apps/monitor.avif +0 -0
  179. package/dist/cdn/assets/portal-navigation/apps/navigator.avif +0 -0
  180. package/dist/cdn/assets/portal-navigation/apps/notebook.avif +0 -0
  181. package/dist/cdn/assets/portal-navigation/apps/office-apps.avif +0 -0
  182. package/dist/cdn/assets/portal-navigation/apps/open-data.avif +0 -0
  183. package/dist/cdn/assets/portal-navigation/apps/operations-dashboard.avif +0 -0
  184. package/dist/cdn/assets/portal-navigation/apps/ortho-maker.avif +0 -0
  185. package/dist/cdn/assets/portal-navigation/apps/pro-extension.avif +0 -0
  186. package/dist/cdn/assets/portal-navigation/apps/quick-capture.avif +0 -0
  187. package/dist/cdn/assets/portal-navigation/apps/redistricting.avif +0 -0
  188. package/dist/cdn/assets/portal-navigation/apps/runtime.avif +0 -0
  189. package/dist/cdn/assets/portal-navigation/apps/scene-viewer.avif +0 -0
  190. package/dist/cdn/assets/portal-navigation/apps/sites.avif +0 -0
  191. package/dist/cdn/assets/portal-navigation/apps/solutions.avif +0 -0
  192. package/dist/cdn/assets/portal-navigation/apps/story-maps.avif +0 -0
  193. package/dist/cdn/assets/portal-navigation/apps/streetmap-premium.avif +0 -0
  194. package/dist/cdn/assets/portal-navigation/apps/survey123.avif +0 -0
  195. package/dist/cdn/assets/portal-navigation/apps/svg-app-circle.svg +1 -0
  196. package/dist/cdn/assets/portal-navigation/apps/svg-app-icon.svg +1 -0
  197. package/dist/cdn/assets/portal-navigation/apps/track-viewer.avif +0 -0
  198. package/dist/cdn/assets/portal-navigation/apps/user-type-extension-online.avif +0 -0
  199. package/dist/cdn/assets/portal-navigation/apps/user-type-extension.avif +0 -0
  200. package/dist/cdn/assets/portal-navigation/apps/vector-tile-style-editor.avif +0 -0
  201. package/dist/cdn/assets/portal-navigation/apps/velocity.avif +0 -0
  202. package/dist/cdn/assets/portal-navigation/apps/web-app-builder.avif +0 -0
  203. package/dist/cdn/assets/portal-navigation/apps/web-editor.avif +0 -0
  204. package/dist/cdn/assets/portal-navigation/apps/web-mapping.avif +0 -0
  205. package/dist/cdn/assets/portal-navigation/apps/workflow-manager-beta.avif +0 -0
  206. package/dist/cdn/assets/portal-navigation/apps/workflow-manager.avif +0 -0
  207. package/dist/cdn/assets/portal-navigation/apps/workforce.avif +0 -0
  208. package/dist/cdn/assets/portal-navigation/product-logos/advanced-editing-user-type-extension-glyph-32.svg +1 -0
  209. package/dist/cdn/assets/portal-navigation/product-logos/arc-hydro-glyph-32.svg +1 -0
  210. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-360-vr-glyph-32.svg +1 -0
  211. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-api-for-python-glyph-32.svg +1 -0
  212. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-appstudio-glyph-32.svg +1 -0
  213. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-arcade-expression-language-glyph-32.svg +1 -0
  214. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-business-analyst-glyph-32.svg +1 -0
  215. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-cityengine-glyph-32.svg +1 -0
  216. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-collector-glyph-32.svg +1 -0
  217. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-community-analyst-glyph-32.svg +1 -0
  218. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-connectors-for-power-automate-glyph-32.svg +1 -0
  219. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-dashboards-glyph-32.svg +1 -0
  220. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-interoperability-glyph-32.svg +1 -0
  221. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-pipelines-glyph-32.svg +1 -0
  222. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-data-reviewer-glyph-32.svg +1 -0
  223. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-deep-learning-studio-glyph-32.svg +1 -0
  224. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-drone2map-glyph-32.svg +1 -0
  225. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-earth-glyph-32.svg +1 -0
  226. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-enterprise-glyph-32.svg +1 -0
  227. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-excalibur-glyph-32.svg +1 -0
  228. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-excalibur-gray-glyph-32.svg +1 -0
  229. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-experience-builder-glyph-32.svg +1 -0
  230. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-explorer-glyph-32.svg +1 -0
  231. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-field-maps-designer-ea-glyph-32.svg +1 -0
  232. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-field-maps-glyph-32.svg +1 -0
  233. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-flight-glyph-32.svg +1 -0
  234. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-autocad-glyph-32.svg +1 -0
  235. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-autodesk-forma-glyph-32.svg +1 -0
  236. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-developers-glyph-32.svg +1 -0
  237. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-excel-glyph-32.svg +1 -0
  238. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-microsoft-365-glyph-32.svg +1 -0
  239. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-power-apps-glyph-32.svg +1 -0
  240. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-for-teams-glyph-32.svg +1 -0
  241. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geoanalytics-engine-glyph-32.svg +1 -0
  242. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geobim-glyph-32.svg +1 -0
  243. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-geoplanner-glyph-32.svg +1 -0
  244. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-hub-glyph-32.svg +1 -0
  245. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-image-glyph-32.svg +1 -0
  246. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-indoors-glyph-32.svg +1 -0
  247. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-insights-glyph-32.svg +1 -0
  248. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-instant-apps-glyph-32.svg +1 -0
  249. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-knowledge-glyph-32.svg +1 -0
  250. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-living-atlas-of-the-world-glyph-32.svg +1 -0
  251. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-location-platform-glyph-32.svg +1 -0
  252. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-logo-glyph-32.svg +76 -0
  253. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-adobe-creative-cloud-glyph-32.svg +1 -0
  254. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-power-bi-glyph-32.svg +1 -0
  255. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-for-sharepoint-glyph-32.svg +1 -0
  256. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdk-for-javascript-glyph-32.svg +1 -0
  257. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdks-for-game-engines-glyph-32.svg +1 -0
  258. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maps-sdks-for-native-apps-glyph-32.svg +1 -0
  259. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-maritime-glyph-32.svg +1 -0
  260. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-marketplace-glyph-32.svg +1 -0
  261. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-mission-glyph-32.svg +1 -0
  262. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-monitor-glyph-32.svg +1 -0
  263. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-monitor-white-glyph-32.svg +1 -0
  264. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-navigator-glyph-32.svg +1 -0
  265. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-notebooks-glyph-32.svg +1 -0
  266. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-online-glyph-32.svg +1 -0
  267. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-open-data-glyph-32.svg +1 -0
  268. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-open-source-apps-glyph-32.svg +1 -0
  269. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-ortho-maker-glyph-32.svg +1 -0
  270. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-parcel-fabric-glyph-32.svg +1 -0
  271. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pipeline-referencing-glyph-32.svg +1 -0
  272. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pro-for-intelligence-glyph-32.svg +1 -0
  273. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-pro-glyph-32.svg +1 -0
  274. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-quickcapture-glyph-32.svg +1 -0
  275. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-reality-studio-glyph-32.svg +1 -0
  276. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-roads-and-highways-glyph-32.svg +1 -0
  277. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-sites-glyph-32.svg +1 -0
  278. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-solutions-glyph-32.svg +1 -0
  279. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-storymaps-glyph-32.svg +1 -0
  280. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-streetmap-premium-glyph-32.svg +1 -0
  281. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-survey123-connect-glyph-32.svg +1 -0
  282. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-survey123-glyph-32.svg +1 -0
  283. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-tracker-glyph-32.svg +1 -0
  284. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-urban-glyph-32.svg +1 -0
  285. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-utility-network-management-glyph-32.svg +1 -0
  286. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-velocity-glyph-32.svg +6 -0
  287. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-web-appbuilder-glyph-32.svg +1 -0
  288. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-web-editor-glyph-32.svg +1 -0
  289. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-workflow-manager-glyph-32.svg +1 -0
  290. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-workforce-glyph-32.svg +1 -0
  291. package/dist/cdn/assets/portal-navigation/product-logos/arcgis-world-geocoder-glyph-32.svg +1 -0
  292. package/dist/cdn/assets/portal-navigation/product-logos/calcite-design-system-glyph-32.svg +1 -0
  293. package/dist/cdn/assets/portal-navigation/product-logos/esri-community-glyph-32.svg +1 -0
  294. package/dist/cdn/assets/portal-navigation/product-logos/esri-demographics-glyph-32.svg +1 -0
  295. package/dist/cdn/assets/portal-navigation/product-logos/esri-events-glyph-32.svg +1 -0
  296. package/dist/cdn/assets/portal-navigation/product-logos/esri-offline-documentation-center--glyph-32.svg +1 -0
  297. package/dist/cdn/assets/portal-navigation/product-logos/esri-redistricting-glyph-32.svg +1 -0
  298. package/dist/cdn/assets/portal-navigation/product-logos/esri-reports-glyph-32.svg +1 -0
  299. package/dist/cdn/assets/portal-navigation/product-logos/esri-support-glyph-32.svg +1 -0
  300. package/dist/cdn/assets/portal-navigation/product-logos/map-viewer-glyph-32.svg +1 -0
  301. package/dist/cdn/assets/portal-navigation/product-logos/sceneviewer-glyph-32.svg +1 -0
  302. package/dist/cdn/assets/portal-navigation/product-logos/site-scan-for-arcgis-glyph-32.svg +1 -0
  303. package/dist/cdn/assets/portal-navigation/product-logos/site-scan-for-arcgis-le-glyph-32.svg +1 -0
  304. package/dist/cdn/assets/portal-navigation/product-logos/vector-tile-style-editor-glyph-32.svg +1 -0
  305. package/dist/cdn/assets/portal-navigation/product-logos/xr-viewer-glyph-32.svg +1 -0
  306. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -0
  307. package/dist/cdn/index.js +1 -1
  308. package/dist/cdn/main.css +1 -1
  309. package/dist/chunks/dom.js +41 -0
  310. package/dist/chunks/fieldAddDelete.js +1 -1
  311. package/dist/chunks/functionalities.js +6 -4
  312. package/dist/chunks/groups.js +13 -35
  313. package/dist/chunks/groups2.js +11 -0
  314. package/dist/chunks/icons.js +11 -0
  315. package/dist/chunks/info.js +179 -0
  316. package/dist/chunks/item.js +15 -15
  317. package/dist/chunks/item2.js +34 -0
  318. package/dist/chunks/items.js +16 -0
  319. package/dist/chunks/loadClassificationData.js +19 -19
  320. package/dist/chunks/portal-account-switcher.js +6 -0
  321. package/dist/chunks/portal-browser.js +220 -0
  322. package/dist/chunks/portal-item-badge.js +346 -0
  323. package/dist/chunks/portal.js +91 -8
  324. package/dist/chunks/portal2.js +59 -0
  325. package/dist/chunks/query.js +159 -0
  326. package/dist/chunks/request.js +87 -0
  327. package/dist/chunks/requests.js +92 -44
  328. package/dist/chunks/store.js +14 -0
  329. package/dist/chunks/string.js +36 -0
  330. package/dist/chunks/thumbnail.js +189 -0
  331. package/dist/chunks/ui.js +9 -0
  332. package/dist/chunks/url.js +17 -0
  333. package/dist/chunks/user.js +99 -4
  334. package/dist/chunks/user2.js +13 -107
  335. package/dist/chunks/users.js +7 -0
  336. package/dist/chunks/utils.js +88 -0
  337. package/dist/chunks/utils2.js +653 -0
  338. package/dist/chunks/verified.js +40 -0
  339. package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +99 -0
  340. package/dist/components/arcgis-portal-account-switcher/customElement.js +365 -0
  341. package/dist/components/arcgis-portal-account-switcher/index.d.ts +1 -0
  342. package/dist/components/arcgis-portal-account-switcher/index.js +11 -0
  343. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +100 -0
  344. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +31 -0
  345. package/dist/components/arcgis-portal-account-switcher-accounts/index.d.ts +1 -0
  346. package/dist/components/arcgis-portal-account-switcher-accounts/index.js +5 -0
  347. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +104 -0
  348. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +51 -0
  349. package/dist/components/arcgis-portal-account-switcher-list/index.d.ts +1 -0
  350. package/dist/components/arcgis-portal-account-switcher-list/index.js +7 -0
  351. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +62 -3
  352. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +59 -3
  353. package/dist/components/arcgis-portal-ai-assistant/customElement.js +1768 -592
  354. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +34 -0
  355. package/dist/components/arcgis-portal-browser/customElement.d.ts +243 -0
  356. package/dist/components/arcgis-portal-browser/customElement.js +16 -0
  357. package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
  358. package/dist/components/arcgis-portal-browser/index.js +6 -0
  359. package/dist/components/arcgis-portal-browser/utils/store.d.ts +35 -0
  360. package/dist/components/arcgis-portal-browser/utils/types.d.ts +24 -0
  361. package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +185 -0
  362. package/dist/components/arcgis-portal-browser-actions/customElement.js +73 -0
  363. package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
  364. package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
  365. package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
  366. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +193 -0
  367. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
  368. package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
  369. package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
  370. package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
  371. package/dist/components/arcgis-portal-browser-pagination/customElement.js +49 -0
  372. package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
  373. package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
  374. package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
  375. package/dist/components/arcgis-portal-browser-search/customElement.js +62 -0
  376. package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
  377. package/dist/components/arcgis-portal-browser-search/index.js +3 -0
  378. package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
  379. package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
  380. package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
  381. package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
  382. package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
  383. package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +190 -0
  384. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +50 -0
  385. package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
  386. package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
  387. package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
  388. package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
  389. package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
  390. package/dist/components/arcgis-portal-browser-view/index.js +5 -0
  391. package/dist/components/arcgis-portal-classification-config/customElement.js +7 -7
  392. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  393. package/dist/components/arcgis-portal-field-delete/customElement.js +2 -1
  394. package/dist/components/arcgis-portal-group-badges/customElement.d.ts +101 -0
  395. package/dist/components/arcgis-portal-group-badges/customElement.js +51 -0
  396. package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
  397. package/dist/components/arcgis-portal-group-badges/index.js +3 -0
  398. package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
  399. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +475 -0
  400. package/dist/components/arcgis-portal-group-browser/customElement.js +492 -0
  401. package/dist/components/arcgis-portal-group-browser/index.d.ts +1 -0
  402. package/dist/components/arcgis-portal-group-browser/index.js +6 -0
  403. package/dist/components/arcgis-portal-group-browser/types.d.ts +197 -0
  404. package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +225 -0
  405. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +150 -0
  406. package/dist/components/arcgis-portal-group-browser-preview/index.d.ts +1 -0
  407. package/dist/components/arcgis-portal-group-browser-preview/index.js +12 -0
  408. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +82 -0
  409. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +93 -0
  410. package/dist/components/arcgis-portal-group-browser-preview-card/index.d.ts +1 -0
  411. package/dist/components/arcgis-portal-group-browser-preview-card/index.js +6 -0
  412. package/dist/components/arcgis-portal-group-card/customElement.d.ts +169 -0
  413. package/dist/components/arcgis-portal-group-card/customElement.js +163 -0
  414. package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
  415. package/dist/components/arcgis-portal-group-card/index.js +8 -0
  416. package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
  417. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
  418. package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
  419. package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
  420. package/dist/components/arcgis-portal-info-banner/customElement.d.ts +14 -0
  421. package/dist/components/arcgis-portal-info-banner/customElement.js +31 -0
  422. package/dist/components/arcgis-portal-info-banner/index.d.ts +1 -0
  423. package/dist/components/arcgis-portal-info-banner/index.js +1 -0
  424. package/dist/components/arcgis-portal-item-actions/customElement.d.ts +74 -0
  425. package/dist/components/arcgis-portal-item-actions/customElement.js +89 -0
  426. package/dist/components/arcgis-portal-item-actions/index.d.ts +1 -0
  427. package/dist/components/arcgis-portal-item-actions/index.js +5 -0
  428. package/dist/components/arcgis-portal-item-badge/customElement.d.ts +260 -0
  429. package/dist/components/arcgis-portal-item-badge/customElement.js +9 -0
  430. package/dist/components/arcgis-portal-item-badge/index.d.ts +1 -0
  431. package/dist/components/arcgis-portal-item-badge/index.js +5 -0
  432. package/dist/components/arcgis-portal-item-badges/customElement.d.ts +48 -0
  433. package/dist/components/arcgis-portal-item-badges/customElement.js +35 -0
  434. package/dist/components/arcgis-portal-item-badges/index.d.ts +1 -0
  435. package/dist/components/arcgis-portal-item-badges/index.js +2 -0
  436. package/dist/components/arcgis-portal-item-badges/types.d.ts +1 -0
  437. package/dist/components/arcgis-portal-item-card/customElement.d.ts +215 -0
  438. package/dist/components/arcgis-portal-item-card/customElement.js +190 -0
  439. package/dist/components/arcgis-portal-item-card/index.d.ts +1 -0
  440. package/dist/components/arcgis-portal-item-card/index.js +10 -0
  441. package/dist/components/arcgis-portal-item-favorite/customElement.d.ts +36 -0
  442. package/dist/components/arcgis-portal-item-favorite/customElement.js +66 -0
  443. package/dist/components/arcgis-portal-item-favorite/index.d.ts +1 -0
  444. package/dist/components/arcgis-portal-item-favorite/index.js +3 -0
  445. package/dist/components/arcgis-portal-item-favorite/utils.d.ts +4 -0
  446. package/dist/components/arcgis-portal-item-type/customElement.d.ts +3 -1
  447. package/dist/components/arcgis-portal-item-type/customElement.js +22 -651
  448. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +40 -38
  449. package/dist/components/arcgis-portal-navigation/customElement.d.ts +528 -0
  450. package/dist/components/arcgis-portal-navigation/customElement.js +1852 -0
  451. package/dist/components/arcgis-portal-navigation/index.d.ts +1 -0
  452. package/dist/components/arcgis-portal-navigation/index.js +30 -0
  453. package/dist/components/arcgis-portal-navigation/types.d.ts +44 -0
  454. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -410
  455. package/dist/components/arcgis-portal-user-avatar/customElement.js +2 -2
  456. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +5 -2
  457. package/dist/components/arcgis-portal-user-popup/customElement.js +82 -141
  458. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  459. package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +14 -0
  460. package/dist/components/portal-browser/components/portal-browser-filter/index.js +3 -0
  461. package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +59 -0
  462. package/dist/components/portal-browser/components/portal-browser-filter-date/index.js +4 -0
  463. package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +11 -0
  464. package/dist/components/portal-browser/components/portal-browser-filters/index.js +2 -0
  465. package/dist/components/portal-group-browser-filters/customElement.js +129 -0
  466. package/dist/components/portal-group-browser-filters/index.js +5 -0
  467. package/dist/components/portal-group-browser-pagination/customElement.js +13 -0
  468. package/dist/components/portal-group-browser-pagination/index.js +2 -0
  469. package/dist/components/portal-group-browser-sort/customElement.js +16 -0
  470. package/dist/components/portal-group-browser-sort/index.js +2 -0
  471. package/dist/docs/api.json +1 -1
  472. package/dist/docs/docs.json +1 -1
  473. package/dist/docs/vscode.css-custom-data.json +1 -1
  474. package/dist/docs/vscode.html-custom-data.json +1 -1
  475. package/dist/docs/web-types.json +1 -1
  476. package/dist/index.d.ts +206 -2
  477. package/dist/loader.js +28 -4
  478. package/dist/types/app-switcher.d.ts +71 -0
  479. package/dist/types/group.d.ts +14 -16
  480. package/dist/types/item.d.ts +80 -1
  481. package/dist/types/lumina.d.ts +170 -1
  482. package/dist/types/portal.d.ts +6 -0
  483. package/dist/types/preact.d.ts +194 -1
  484. package/dist/types/react.d.ts +218 -1
  485. package/dist/types/search.d.ts +30 -0
  486. package/dist/types/stencil.d.ts +170 -1
  487. package/dist/types/user.d.ts +16 -3
  488. package/package.json +9 -10
  489. package/dist/cdn/35SKVD6F.js +0 -2
  490. package/dist/cdn/5VSDGPHH.js +0 -2
  491. package/dist/cdn/72N3KAXN.js +0 -2
  492. package/dist/cdn/ANPXRYLV.js +0 -5
  493. package/dist/cdn/B7633S2A.js +0 -422
  494. package/dist/cdn/BEHLBKKM.js +0 -2
  495. package/dist/cdn/EVDOPN3G.js +0 -54
  496. package/dist/cdn/G47ZZQYL.js +0 -2
  497. package/dist/cdn/G6QT6MYP.js +0 -65
  498. package/dist/cdn/GAHILDQF.js +0 -45
  499. package/dist/cdn/GHQ3ZW4U.js +0 -2
  500. package/dist/cdn/JNRN6DTV.js +0 -2
  501. package/dist/cdn/K3HS2LQ7.js +0 -2
  502. package/dist/cdn/KEKBRUUC.js +0 -2
  503. package/dist/cdn/L3BQK62N.js +0 -2
  504. package/dist/cdn/MX3F5ZCL.js +0 -2
  505. package/dist/cdn/O3KBWLGU.js +0 -2
  506. package/dist/cdn/OQDPULPD.js +0 -2
  507. package/dist/cdn/RNLVNDGG.js +0 -2
  508. package/dist/cdn/T25WZ6OL.js +0 -516
  509. package/dist/cdn/TMYTUOSS.js +0 -2
  510. package/dist/cdn/UPEVTVNZ.js +0 -2
  511. package/dist/cdn/V2EOXGK2.js +0 -2
  512. package/dist/cdn/X5NBQPTM.js +0 -2
  513. package/dist/cdn/YG5YYL6X.js +0 -2
  514. package/dist/cdn/YIMNOUTF.js +0 -2
  515. package/dist/cdn/YL7PGYWC.js +0 -5
  516. package/dist/cdn/YMPTDKT6.js +0 -2
  517. package/dist/cdn/YVJRXWM3.js +0 -3
@@ -0,0 +1,1852 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { g as te, c as gt } from "../../chunks/runtime.js";
3
+ import { safeStyleMap as Ae, safeClassMap as q, LitElement as bt, createEvent as H } from "@arcgis/lumina";
4
+ import { u as vt } from "../../chunks/useT9n.js";
5
+ import { nothing as L, html as c, svg as _t, css as wt } from "lit";
6
+ import { formatDate as yt, substitute as Q, getLocale as $t } from "@arcgis/core/intl.js";
7
+ import { g as oe, b as xe } from "../../chunks/url.js";
8
+ import { a as G } from "../../chunks/requests.js";
9
+ import { repeat as z } from "lit/directives/repeat.js";
10
+ import { m as kt } from "../../chunks/icons.js";
11
+ import { i as C, c as me, a as At } from "../../chunks/user2.js";
12
+ import "@arcgis/core/portal/Portal.js";
13
+ import { c as xt, d as St, e as It, f as Pt, h as Nt } from "../../chunks/portal2.js";
14
+ import { c as Tt, d as Ct, e as Mt } from "../../chunks/user.js";
15
+ import { i as Se, a as Lt } from "../../chunks/utils2.js";
16
+ import { g as Ot } from "../../chunks/request.js";
17
+ import { g as Ie } from "../../chunks/item2.js";
18
+ import { keyed as se } from "lit/directives/keyed.js";
19
+ import { e as ae, n as Et, g as ce, f as J, a as jt } from "../../chunks/portal.js";
20
+ import { ref as F, createRef as B } from "lit/directives/ref.js";
21
+ import { c as Dt, g as zt } from "../../chunks/dom.js";
22
+ import { debounce as fe } from "@arcgis/toolkit/function";
23
+ import Gt from "@arcgis/core/identity/IdentityManager.js";
24
+ import { t as Ut } from "../../chunks/functionalities.js";
25
+ import { c as Bt } from "../../chunks/string.js";
26
+ function ge({ portal: e, productInfo: t }) {
27
+ const { name: i, glyph: n } = t || {};
28
+ return c`<img alt class="logo__glyph" src=${n ?? L}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
29
+ }
30
+ function Ft({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: s, showNav: a, projectTitleEditing: l }) {
31
+ const d = s && i === "Online" && !a || i !== "Online" && l && window.innerWidth < 960;
32
+ return !i || !t || !o || d ? null : r ? c`<a href=${r ?? L} @click=${(h) => {
33
+ e({ event: h, href: r });
34
+ }} class="logo fade-in logo--link">${ge({ portal: t, productInfo: n })}</a>` : c`<div class="logo fade-in">${ge({ portal: t, productInfo: n })}</div>`;
35
+ }
36
+ const Z = {}, T = {
37
+ Month: 2628e3,
38
+ Week: 604800,
39
+ Day: 86400,
40
+ Hour: 3600,
41
+ Minute: 60,
42
+ Second: 1
43
+ };
44
+ function Pe(e) {
45
+ if (!e)
46
+ return null;
47
+ const t = Math.floor(e / 1e3), i = Math.abs(t), n = T.Day * 365;
48
+ switch (!0) {
49
+ case i < T.Minute:
50
+ return [Math.floor(t / T.Second), "second"];
51
+ case i < T.Hour:
52
+ return [Math.floor(t / T.Minute), "minute"];
53
+ case i < T.Day:
54
+ return [Math.floor(t / T.Hour), "hour"];
55
+ case i < T.Week:
56
+ return [Math.floor(t / T.Day), "day"];
57
+ case i < T.Month:
58
+ return [Math.floor(t / T.Week), "week"];
59
+ case i < n:
60
+ return [Math.floor(t / T.Month), "month"];
61
+ default:
62
+ return [Math.floor(t / n), "year"];
63
+ }
64
+ }
65
+ function Ne(e) {
66
+ return (typeof e == "number" ? e : e.getTime?.()) - (/* @__PURE__ */ new Date()).getTime();
67
+ }
68
+ function Te({ locale: e, time: t, t9n: i }) {
69
+ if (!e || !t)
70
+ return "";
71
+ const n = Ne(t);
72
+ Z[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
73
+ const r = Pe(n);
74
+ return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${Z[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : Z[e].format(r[0], r[1]) : "";
75
+ }
76
+ const Wt = {
77
+ month: "long",
78
+ day: "numeric",
79
+ year: "numeric"
80
+ }, Rt = {
81
+ month: "long",
82
+ day: "numeric"
83
+ };
84
+ function Vt({ locale: e, time: t }, i) {
85
+ if (!e || !t)
86
+ return "";
87
+ const n = new Date(t);
88
+ return yt(n, i ? Wt : Rt);
89
+ }
90
+ async function Ht({ portal: e }) {
91
+ if (!e?.user)
92
+ return { result: [] };
93
+ const t = `${e.restUrl}/community/users/${e.user.id}/notifications`, { result: i, error: n } = await G(t);
94
+ return n ? { error: n } : { result: i?.notifications };
95
+ }
96
+ async function qt(e, t) {
97
+ if (!e?.user)
98
+ return { success: !0 };
99
+ const i = t.map((o) => ({ portal: e, id: o })).map(Ce);
100
+ return { success: !((await Promise.allSettled(i))?.filter((o) => o.status === "rejected" || !o.value?.success)).length };
101
+ }
102
+ async function Ce({
103
+ portal: e,
104
+ id: t
105
+ }) {
106
+ const i = `${e.restUrl}/community/users/${e.user?.id}/notifications/${t}/delete`, { result: n } = await G(i, { method: "post" });
107
+ return n?.success ? { success: !0, id: t } : { success: !1, id: t };
108
+ }
109
+ const Me = "notifications-menu";
110
+ function Jt(e) {
111
+ try {
112
+ const t = decodeURIComponent(e);
113
+ return t !== e ? t : e;
114
+ } catch {
115
+ return e;
116
+ }
117
+ }
118
+ function Kt(e) {
119
+ switch (e) {
120
+ case "group_join_admin":
121
+ return "users";
122
+ case "group_application_accepted":
123
+ return "register";
124
+ case "group_join":
125
+ return "file-user";
126
+ case "group_application_declined":
127
+ return "user-risk";
128
+ case "user_invitation_declined":
129
+ return "group-x";
130
+ case "user_invitation_accepted":
131
+ return "user-plus";
132
+ case "user_invite":
133
+ return "envelope";
134
+ case "user_added_to_group":
135
+ return "user-plus";
136
+ case "collaboration_workspace_added":
137
+ case "collaboration_deleted":
138
+ case "collaboration_leaving":
139
+ case "collaboration_join":
140
+ case "collaboration_participant_workspace_join":
141
+ case "collaboration_participant_workspace_unjoin":
142
+ case "collaboration_participant_removed":
143
+ case "collaboration_peer_participant_removed":
144
+ case "collaboration_participant_access_changed":
145
+ return "collaboration";
146
+ case "collaboration_participant_join":
147
+ return "collaboration-user";
148
+ case "collaboration_content_store_disk_limit_reached":
149
+ return "gauge";
150
+ case "user_email_bounced":
151
+ return "speech-bubble-exclamation";
152
+ case "feature_layer_copy_over_failed":
153
+ case "feature_layer_one_way_shared_not_two_way":
154
+ case "feature_view_copy_over_failed":
155
+ case "webapp_not_copied":
156
+ case "webapp_not_copied_portal":
157
+ case "insights_item_not_copied":
158
+ return "collaboration";
159
+ case "scheduled_task_disabled":
160
+ return "date-time";
161
+ case "portal_certificate_about_to_expire":
162
+ case "portal_certificate_expired":
163
+ return "hourglass-expired";
164
+ case "notebook_runtime_deprecated":
165
+ return "notebook-server";
166
+ case "ingress_certificate_about_to_expire":
167
+ case "ingress_certificate_expired":
168
+ return "certificate";
169
+ default:
170
+ return "bell";
171
+ }
172
+ }
173
+ function Qt({
174
+ notification: e,
175
+ portal: t,
176
+ locale: i,
177
+ t9n: n
178
+ }) {
179
+ if (e?.received && e.id) {
180
+ const r = {
181
+ date: Te({ locale: i, time: e.received, t9n: n }),
182
+ id: e.id,
183
+ text: "",
184
+ icon: Kt(e.type)
185
+ };
186
+ if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = Jt(e.data.taskTitle)), e.type === "message_received")
187
+ r.text = e.data.message || "";
188
+ else if (n.types[e.type]) {
189
+ const o = oe({ portal: t, usePortalHostname: !!t.user });
190
+ e.data.baseUrl = `${o}/home/`, r.text = Q(n.types[e.type], e.data);
191
+ }
192
+ if (r.text)
193
+ return r;
194
+ }
195
+ return null;
196
+ }
197
+ async function be({
198
+ portal: e,
199
+ locale: t,
200
+ t9n: i
201
+ }) {
202
+ if (!i)
203
+ return [];
204
+ const { result: n, error: r } = await Ht({ portal: e });
205
+ return r && console.error(r), n?.length ? n.map((s) => Qt({ notification: s, portal: e, t9n: i, locale: t })).filter((s) => s) : [];
206
+ }
207
+ function Xt({ 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=${Me} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
209
+ }
210
+ 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>${_t`<path d=${kt[e] ?? L} 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
+ }
213
+ function Yt({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: s, notificationDeleteProgress: a }) {
214
+ return i ? c`<calcite-popover .referenceElement=${Me} @calcitePopoverClose=${() => s(!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 a == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${a}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${z(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 h = d.target, b = h.href;
216
+ if (h.nodeName === "CALCITE-LINK" && b) {
217
+ const p = `${oe({ portal: r, usePortalHostname: !!r.user })}/home/`;
218
+ n({ event: d, href: b, relativePath: b.replace(p, "") });
219
+ }
220
+ }}></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
+ const d = l.currentTarget?.parentElement;
222
+ await t(e?.map(({ id: h }) => h)), d.open = !1;
223
+ }}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${K({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
224
+ }
225
+ function Zt(e) {
226
+ return e.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
227
+ }
228
+ function ei(e, t, i, n) {
229
+ si(e, JSON.stringify(t), i);
230
+ }
231
+ function ti(e) {
232
+ return ri(e, !0);
233
+ }
234
+ function ii(e) {
235
+ try {
236
+ window.localStorage.removeItem(e);
237
+ } catch {
238
+ }
239
+ }
240
+ function ni(e) {
241
+ try {
242
+ window.sessionStorage.removeItem(e);
243
+ } catch {
244
+ }
245
+ }
246
+ function ri(e, t) {
247
+ const i = oi(e);
248
+ return i && t ? JSON.parse(i) : i;
249
+ }
250
+ function oi(e) {
251
+ const t = document.cookie, i = new RegExp(`(?:^|; )${Zt(e)}=([^;]*)`, "u"), n = t.match(i);
252
+ return n ? decodeURIComponent(n[1]) : "";
253
+ }
254
+ function si(e, t, i) {
255
+ i = i || {};
256
+ let n = i?.expires;
257
+ if (typeof n == "number") {
258
+ const o = /* @__PURE__ */ new Date(), s = n * 24 * 60 * 60 * 1e3;
259
+ o.setTime(Date.now() + s), n = o, i.expires = o;
260
+ }
261
+ typeof n != "string" && n?.toUTCString && (i.expires = n.toUTCString());
262
+ let r = `${e}=${encodeURIComponent(t)}`;
263
+ for (const o of Object.keys(i)) {
264
+ r += `; ${o}`;
265
+ const s = i[o];
266
+ s !== !0 && (r += `=${s}`);
267
+ }
268
+ document.cookie = r;
269
+ }
270
+ async function ai(e) {
271
+ const i = `owner:"${e.isPortal ? "esri" : "esri_config"}" AND title:"AppSwitcher Config" AND type:"Application Configuration"`, n = `${e.restUrl}/search`;
272
+ return await G(n, { query: {
273
+ num: 1,
274
+ start: 0,
275
+ sortField: "title",
276
+ sortOrder: "asc",
277
+ q: i
278
+ } });
279
+ }
280
+ async function ci(e) {
281
+ const t = { appSwitcher: { apps: [] } };
282
+ if (!e?.id || !e.user)
283
+ return t;
284
+ const { result: i } = await ai(e), n = i?.results?.[0];
285
+ if (!n)
286
+ return t;
287
+ const r = n.id;
288
+ return (await Ie(e, r)).result;
289
+ }
290
+ async function li(e, t, i) {
291
+ if (!t || !e?.length)
292
+ return { result: null };
293
+ const n = `${i.restUrl}/search`;
294
+ return await G(n, {
295
+ query: {
296
+ num: 100,
297
+ q: `id:(${e.map((r) => `"${r.itemId}"`).join(" OR ")})`
298
+ }
299
+ });
300
+ }
301
+ async function ui(e) {
302
+ const t = `${e.restUrl}/search`, i = {
303
+ num: 10,
304
+ start: 0,
305
+ sortField: "title",
306
+ sortOrder: "asc",
307
+ q: 'owner:"esri" AND title:"BlockedApps Config" AND type: "Application Configuration"'
308
+ }, { result: n } = await G(t, { query: i }), r = n?.results?.[0]?.id;
309
+ return r ? (await Ie(e, r))?.result?.blockedApps || [] : [];
310
+ }
311
+ function di(e, t) {
312
+ const i = e?.toLowerCase() || "", n = `${t.title || ""} ${t.label || ""}`;
313
+ return !i || n.toLowerCase().includes(i);
314
+ }
315
+ function pi() {
316
+ if (ti("APSW-query")?.expires > (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours()))
317
+ return !0;
318
+ const t = { expires: (/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 5) };
319
+ return ei(
320
+ "APSW-query",
321
+ t,
322
+ {
323
+ path: "/",
324
+ domain: window.location.hostname,
325
+ sameSite: "Strict"
326
+ }
327
+ ), !1;
328
+ }
329
+ function hi(e, t) {
330
+ const { landingPage: i } = t || {};
331
+ return {
332
+ image: "arcgis-online.png",
333
+ label: "ArcGIS Online",
334
+ title: "ArcGIS Online",
335
+ url: `${xe({ portal: e })}/${i?.url ? i.url : Se(e.user) ? "organization.html" : "index.html"}`
336
+ };
337
+ }
338
+ function ve(e) {
339
+ const i = [
340
+ "api-for-python",
341
+ "appstudio",
342
+ "arcade",
343
+ "arcgis-earth",
344
+ "arcgis-enterprise",
345
+ "arcgis-experience-builder",
346
+ "arcgis-geoanalytics",
347
+ "arcgis-hub",
348
+ "arcgis-online",
349
+ "arcgis-pro",
350
+ "arcgis-urban",
351
+ "blank",
352
+ "business-analyst",
353
+ "city-engine",
354
+ "collector",
355
+ "community-analyst",
356
+ "configurable-apps",
357
+ "dashboards-beta",
358
+ "dashboards-classic",
359
+ "data-pipelines",
360
+ "deeplearningstudio",
361
+ "demographics",
362
+ "drone2map",
363
+ "esri-events",
364
+ "essential-apps",
365
+ "excalibur",
366
+ "explorer",
367
+ "field-apps",
368
+ "fieldmaps-beta",
369
+ "fieldmaps-ea",
370
+ "fieldmaps",
371
+ "generic-app",
372
+ "geobim",
373
+ "geoplanner",
374
+ "grid-view-9",
375
+ "indoor",
376
+ "indoors",
377
+ "insights",
378
+ "instant-apps",
379
+ "ips",
380
+ "knowledge-studio",
381
+ "living-atlas",
382
+ "location-platform",
383
+ "map-maker",
384
+ "map-viewer-beta",
385
+ "map-viewer-classic",
386
+ "map-viewer",
387
+ "maps-adobe-cloud",
388
+ "maps-for-office",
389
+ "maps-for-power-bi",
390
+ "maps-for-sharepoint",
391
+ "marketplace",
392
+ "mission",
393
+ "monitor",
394
+ "navigator",
395
+ "notebook",
396
+ "office-apps",
397
+ "open-data",
398
+ "operations-dashboard",
399
+ "ortho-maker",
400
+ "pro-extension",
401
+ "quick-capture",
402
+ "redistricting",
403
+ "runtime",
404
+ "scene-viewer",
405
+ "sites",
406
+ "solutions",
407
+ "story-maps",
408
+ "streetmap-premium",
409
+ "survey123",
410
+ "track-viewer",
411
+ "user-type-extension-online",
412
+ "user-type-extension",
413
+ "vector-tile-style-editor",
414
+ "velocity",
415
+ "web-app-builder",
416
+ "web-editor",
417
+ "web-mapping",
418
+ "workflow-manager-beta",
419
+ "workflow-manager",
420
+ "workforce"
421
+ ].find((n) => e?.includes(n) && W(`${n}.png`) === e);
422
+ return i ? W(`${i}.avif`) : e;
423
+ }
424
+ function mi(e, t) {
425
+ const i = e?.blockedApps || [], n = [];
426
+ return !i.length && !e.blockBetaApps || !t?.length ? [] : (e.blockBetaApps && t.forEach((r) => {
427
+ r.isBeta && !i.includes(r.clientid) && i.push(r.clientid);
428
+ }), i.forEach((r) => {
429
+ const o = t.find((s) => s.clientid === r);
430
+ o && n.push(o);
431
+ }), n);
432
+ }
433
+ function I(e, t) {
434
+ return t && t[e.toLowerCase()]?.valid || !1;
435
+ }
436
+ function fi(e, t) {
437
+ return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : I("HubforArcGIS", t);
438
+ }
439
+ function gi(e, t) {
440
+ if (!e)
441
+ return !1;
442
+ const i = [
443
+ "portal:publisher:publishFeeds",
444
+ "portal:publisher:publishRealTimeAnalytics",
445
+ "portal:publisher:publishBigDataAnalytics"
446
+ ], r = (e?.privileges || []).some((s) => i.includes(s)), o = I("velocity", t);
447
+ return r && o;
448
+ }
449
+ function bi(e) {
450
+ return I("HubforArcGIS", e);
451
+ }
452
+ function vi(e, t) {
453
+ return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && I("arcgisWebApps", t);
454
+ }
455
+ function _i(e) {
456
+ return !!e.helperServices?.rasterAnalytics && !!e.helperServices.orthoMapping;
457
+ }
458
+ function wi(e, t, i) {
459
+ const n = i && (!e.isPortal || !!e.sourceJSON?.supportsHostedNotebooks), r = !!t?.privileges?.length && t.privileges.some((o) => o === "premium:publisher:createNotebooks");
460
+ return n && r;
461
+ }
462
+ function yi(e, t) {
463
+ return !!e.helperServices?.locationTracking && t;
464
+ }
465
+ function $i(e, t, i, n) {
466
+ const r = e?.user;
467
+ return {
468
+ "Open Data": {
469
+ hasAccess: () => fi(e, n)
470
+ },
471
+ AppStudio: {
472
+ hasAccess: () => I("arcgisWebApps", n)
473
+ },
474
+ "ArcGIS Velocity": {
475
+ hasAccess: () => e.isPortal || gi(r, n)
476
+ },
477
+ "ArcGIS Hub": {
478
+ hasAccess: () => I("HubforArcGIS", n)
479
+ },
480
+ "ArcGIS Enterprise Sites": {
481
+ hasAccess: () => bi(n)
482
+ },
483
+ "ArcGIS QuickCapture Web Designer": {
484
+ hasAccess: () => I("arcgisWebApps", n)
485
+ },
486
+ "ArcGIS Dashboards": {
487
+ hasAccess: () => I("dashboards", n)
488
+ },
489
+ "Map Viewer": {
490
+ hasAccess: () => vi(e, n)
491
+ },
492
+ "Map Viewer Classic": {
493
+ hasAccess: () => I("arcgisWebApps", n)
494
+ },
495
+ "Operations Dashboard for ArcGIS": {
496
+ hasAccess: () => I("opsdashboard", n)
497
+ },
498
+ "ArcGIS Dashboards Classic": {
499
+ hasAccess: () => I("opsdashboard", n)
500
+ },
501
+ "Ortho Maker": {
502
+ hasAccess: () => _i(e)
503
+ },
504
+ Notebook: {
505
+ hasAccess: () => wi(e, r, t)
506
+ },
507
+ "Scene Viewer": {
508
+ hasAccess: () => I("arcgisWebApps", n)
509
+ },
510
+ "Story Maps": {
511
+ hasAccess: () => I("arcgisWebApps", n)
512
+ },
513
+ Survey123: {
514
+ hasAccess: () => I("survey123", n)
515
+ },
516
+ "Track Viewer": {
517
+ hasAccess: () => yi(e, i)
518
+ },
519
+ "Instant Apps": {
520
+ // For Portal
521
+ hasAccess: () => I("arcgisWebApps", n)
522
+ },
523
+ "ArcGIS Maps for Adobe Creative Cloud": {
524
+ hasAccess: () => I("arcgisWebApps", n) && !e.isPortal
525
+ }
526
+ };
527
+ }
528
+ function ki(e) {
529
+ let t = {
530
+ opsdashboard: 1,
531
+ arcgisWebApps: 1,
532
+ Workforce: 1,
533
+ geoplanner: 1,
534
+ webappbuilder: 1,
535
+ HubforArcGIS: 1,
536
+ appstudio: 1,
537
+ survey123: 1,
538
+ storymaps: 1,
539
+ mapsForOffice: 1,
540
+ mapsForO365: 1,
541
+ mapsForSharePoint: 1,
542
+ mapsForCreativeCloud: 1,
543
+ indoorsweb: 1,
544
+ indoorskiosk: 1,
545
+ indoorsspaceplanner: 1,
546
+ locationplatformWebApps: 1,
547
+ // eslint-disable-next-line @typescript-eslint/naming-convention
548
+ communityanalyst_2: 1
549
+ };
550
+ return e.isPortal && (t = { ...t, arcgisonline: 1, arcgisUrban: 1, arcgisinstantapps: 1 }), t;
551
+ }
552
+ function ie(e) {
553
+ return e.sourceJSON?.subscriptionInfo?.options?.includes("Developer");
554
+ }
555
+ function W(e) {
556
+ return te(`assets/portal-navigation/apps/${e || ""}`);
557
+ }
558
+ function Le(e, t, i) {
559
+ 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}`;
560
+ }
561
+ function D(e, t, i) {
562
+ if (e.image ? e.image = W(e.image) : e.placeHolderIcon = `${W()}svg-app-icon.svg`, e.url?.startsWith("../")) {
563
+ const n = i.urlKey ? `${i.urlKey}.${i.customBaseUrl}` : i.portalHostname;
564
+ e.url = `${window.location.protocol}//${n}${e.url.substring(2, e.url.length)}`;
565
+ }
566
+ return delete e.isLicensed, delete e.privileges, e.itemId = t, e;
567
+ }
568
+ function Oe() {
569
+ return `${W()}svg-app-circle.svg`;
570
+ }
571
+ function Ai(e, t, i) {
572
+ const n = e.properties?.appSwitcher?.image || e.icon;
573
+ return {
574
+ abbr: e.properties?.appSwitcher?.abbr || e.abbreviation,
575
+ itemId: e.itemId,
576
+ canAccess: !0,
577
+ webMappingApp: !0,
578
+ image: n ? Le(e, t, i) : void 0,
579
+ label: e.title || e.label,
580
+ url: e.url,
581
+ placeHolderIcon: e.placeHolderIcon || Oe()
582
+ };
583
+ }
584
+ function xi(e, t, i) {
585
+ return e.appSwitcher?.image || e.icon ? e.image = Le(e, t, i) : e.placeHolderIcon = Oe(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
586
+ }
587
+ function _e(e, t) {
588
+ e.forEach((i) => {
589
+ 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"));
590
+ });
591
+ }
592
+ async function Si({
593
+ userApps: e,
594
+ servers: t,
595
+ portal: i,
596
+ licenses: n,
597
+ blockedApps: r,
598
+ provisionedListings: o,
599
+ orgCapabilities: s,
600
+ trackViewerEnabled: a,
601
+ notebookServerEnabled: l,
602
+ willQueryForItems: d,
603
+ approvedApps: h
604
+ }) {
605
+ const b = {}, p = {}, y = $i(i, l, a, n), x = ki(i), k = [], P = e.length;
606
+ for (let m = 0; m < P; m++) {
607
+ const u = e[m], _ = u.itemId || u.title;
608
+ let N = !0;
609
+ const g = !u.serverFunction || t?.some((S) => {
610
+ const V = (S.serverFunction?.split(",") || []).includes(u.serverFunction);
611
+ return V && u.serverFunction === "Velocity" && (u.url = S.url), V;
612
+ }), v = r?.some(
613
+ (S) => u.itemId && u.itemId === S.itemid || u.title && u.title === S.title
614
+ );
615
+ if (b[_] = 1, p[_] = u, v || ie(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
616
+ continue;
617
+ const A = u.title;
618
+ if (y[A] && !y[A]?.hasAccess())
619
+ continue;
620
+ const E = i.sourceJSON?.subscriptionInfo;
621
+ if (u.subscriptionType) {
622
+ E?.type === u.subscriptionType && (p[_].canAccess = !0, k.push(D(u, _, i)));
623
+ continue;
624
+ }
625
+ if (u.orgCapabilities) {
626
+ s?.length && s.some((M) => u.orgCapabilities?.includes(M.id)) && (p[_].canAccess = !0, k.push(D(u, _, i)));
627
+ continue;
628
+ }
629
+ if (!u.privileges?.length && !u.isLicensed && g && (u.label !== "ArcGIS Location Platform" || ie(i))) {
630
+ p[_].canAccess = !0, k.push(D(u, _, i));
631
+ continue;
632
+ }
633
+ if (i.user?.sourceJSON?.userLicenseTypeId?.toLowerCase() === "storytellerut" && u.label?.toLowerCase() === "storymaps") {
634
+ p[_].canAccess = !0, k.push(D(u, _, i));
635
+ continue;
636
+ }
637
+ if (u.privileges?.length && i.user?.privileges) {
638
+ for (let S = 0; S < u.privileges.length; S++)
639
+ if (!i.user.privileges.includes(u.privileges[S])) {
640
+ N = !1;
641
+ break;
642
+ }
643
+ if (!u.isLicensed && N && g) {
644
+ p[_].canAccess = !0, k.push(D(u, _, i));
645
+ continue;
646
+ }
647
+ }
648
+ if (u.isLicensed && N && g) {
649
+ for (let S = 0; S < o.length; S++)
650
+ if (_ === o[S].itemId || _ === o[S].title) {
651
+ p[_].canAccess = !0, k.push(D(u, _, i));
652
+ break;
653
+ }
654
+ }
655
+ }
656
+ const w = await Ot(i);
657
+ return o.forEach((m) => {
658
+ if (m.type === "Web Mapping Application" && !x[m.clientId] && !b[m.itemId] && m.url && m.title && !b[m.title] && !m.typeKeywords.includes("hideFromAppSwitcher")) {
659
+ const u = Ai(m, i, w);
660
+ p[m.itemId] = u, k.push(u);
661
+ }
662
+ }), {
663
+ apps: [
664
+ ...h.map((m) => {
665
+ const u = {
666
+ ...m.appProperties,
667
+ itemId: m.itemId,
668
+ webMappingApp: !0,
669
+ approvedApp: !0,
670
+ canAccess: !d
671
+ };
672
+ return p[m.itemId] = u, xi(u, i, w);
673
+ }),
674
+ ...k
675
+ ],
676
+ appDictionary: p
677
+ };
678
+ }
679
+ function ee(e, t) {
680
+ return e.filter((i) => !t?.some(
681
+ (r) => i.itemId && i.itemId === r.itemid || i.title && i.title === r.title
682
+ ));
683
+ }
684
+ function we({
685
+ apps: e,
686
+ app: t,
687
+ appDictionary: i,
688
+ newAppDictionary: n,
689
+ portal: r
690
+ }) {
691
+ let s = Object.keys(i).map((a) => i[a]).filter((a) => a.itemId === t.uid || a.title === t.uid).shift();
692
+ return s && !i[t.uid] && (t.uid = s.itemId || s.title || ""), s?.hasBeenPopulated || (s ? ((t.hasChanged || s.hasChanged || !s.canAccess && !s.ignoreNoAccess) && Se(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (s = t, s.canAccess = !1, s.itemId = t.uid, i[t.uid] = s), i[t.uid].hasBeenPopulated = !0, e.push(s)), e;
693
+ }
694
+ async function Ii({
695
+ portal: e,
696
+ trackViewerEnabled: t,
697
+ notebookServerEnabled: i
698
+ }) {
699
+ if (!e?.id || !e.user)
700
+ return { apps: [], hiddenApps: {} };
701
+ const n = pi(), [r, o, s, a, l, d, h] = await Promise.all([
702
+ ci(e),
703
+ Ct(e),
704
+ Mt(e),
705
+ xt(e),
706
+ St(e),
707
+ It(e),
708
+ ui(e)
709
+ ]), b = e.isPortal ? await Pt(e) : null, p = s?.result?.properties;
710
+ let y = r?.appSwitcher?.apps || [];
711
+ e.isPortal || (y = y.filter(
712
+ (g) => g.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
713
+ ), y.unshift(hi(e, p)));
714
+ const x = a?.result?.approvedApps?.filter((g) => !g.hideForNonPrivilegedMember) || [], k = {};
715
+ o?.forEach((g) => {
716
+ const v = g.clientId?.toLowerCase();
717
+ v && (k[v] = {
718
+ valid: !0,
719
+ itemId: g.itemId,
720
+ clientId: g.clientId
721
+ });
722
+ }), l?.forEach((g) => {
723
+ const v = g.id?.toLowerCase();
724
+ v && (k[v] = {
725
+ valid: !0,
726
+ clientId: g.id
727
+ });
728
+ });
729
+ const P = mi(d, h), { apps: w, appDictionary: f } = await Si({
730
+ userApps: y,
731
+ servers: b,
732
+ portal: e,
733
+ blockedApps: P,
734
+ provisionedListings: o,
735
+ orgCapabilities: l,
736
+ licenses: k,
737
+ trackViewerEnabled: t,
738
+ notebookServerEnabled: i,
739
+ willQueryForItems: n,
740
+ approvedApps: x
741
+ });
742
+ p?.appLauncher && (p?.appLauncher.primary && _e(p?.appLauncher.primary, e), p?.appLauncher.secondary && _e(p?.appLauncher.secondary, e));
743
+ let m = [], u = [];
744
+ if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
745
+ m = w.slice().sort((g, v) => (g.label || "") < (v.label || "") ? -1 : 1), m = ee(m, P), u = [];
746
+ else {
747
+ const { result: g } = await li(x, n, e);
748
+ g?.results?.length && g.results.forEach(($) => {
749
+ const A = f[$.id];
750
+ A.canAccess = !0, A.hasChanged = A.url !== $.url ? !!$.url : !1;
751
+ });
752
+ const v = { ...f };
753
+ p?.appLauncher?.primary?.forEach(($) => {
754
+ $.label === "Map Viewer" && ($.uid = "Map Viewer");
755
+ }), m = p?.appLauncher.primary.reduce(
756
+ ($, A) => we({ apps: $, app: A, appDictionary: f, newAppDictionary: v, portal: e }),
757
+ []
758
+ ) || [], u = p?.appLauncher.secondary.reduce(
759
+ ($, A) => we({ apps: $, app: A, appDictionary: f, newAppDictionary: v, portal: e }),
760
+ []
761
+ ) || [], m = ee(m, P), u = ee(u, P), ie(e) && (m = m.filter(($) => $.canAccess), u = u.filter(($) => $.canAccess));
762
+ for (const $ of Object.keys(v))
763
+ v[$].canAccess && (v[$].isNew = !0, f[$] = v[$], m.push(v[$]));
764
+ }
765
+ const _ = [...m, ...u], N = u.reduce((g, v) => (v.itemId && (g[v.itemId] = !0), g), {});
766
+ return {
767
+ apps: _,
768
+ hiddenApps: N,
769
+ signInSettings: d,
770
+ licenses: k,
771
+ userProperties: p
772
+ };
773
+ }
774
+ function Pi(e, t) {
775
+ return !e?.itemId || !t ? !1 : t[e.itemId];
776
+ }
777
+ async function Ni({
778
+ apps: e,
779
+ hiddenApps: t,
780
+ userProperties: i,
781
+ portal: n
782
+ }) {
783
+ const r = e.reduce(
784
+ (s, a) => {
785
+ const l = t[a.itemId];
786
+ return s[l ? "secondary" : "primary"].push({
787
+ label: a.label,
788
+ uid: a.itemId || a.title
789
+ }), s;
790
+ },
791
+ { primary: [], secondary: [] }
792
+ ), o = { ...i || {}, appLauncher: r };
793
+ return await Tt(o, n);
794
+ }
795
+ function Ee({ app: e }) {
796
+ if (!e)
797
+ return null;
798
+ if (!e.canAccess)
799
+ return c`<span class="list-item__logo list-item__logo-empty"></span>`;
800
+ const t = !e.image && e.abbr;
801
+ return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${ve(e.placeHolderIcon) ?? L} class="list-item__logo-bg" alt>` || ""}<span style=${Ae({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${ve(e.image) ?? L} class="list-item__logo" alt>` || ""}${e.isNew && c`<span class=${q({ "list-item__indicator": !0 })}></span>` || ""}`;
802
+ }
803
+ function Ti({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n }) {
804
+ if (!e || !i)
805
+ return null;
806
+ const r = Pi(e, t), { title: o, itemId: s, label: a } = e;
807
+ return c`<calcite-list-item .label=${o || a} class=${q(r ? "app--hidden" : "")}><span slot=content-start>${Ee({ app: e })}</span><calcite-action .text=${r ? i.show : i.hide} .icon=${r ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !r)}></calcite-action></calcite-list-item>`;
808
+ }
809
+ function Ci({ app: e, messages: t }) {
810
+ if (!e || !t)
811
+ return null;
812
+ const { title: i, itemId: n, label: r, url: o, isNew: s } = e, a = t?.descriptions?.[i] || t?.descriptions?.[r];
813
+ return c`<li class="list-item"><a class="list-item__link" href=${o ?? L} target=_blank id=${n ?? L} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${Ee({ app: e })}<span class="list-item__title">${i || r}</span>${s && c`<calcite-chip scale=s class="list-item__chip" icon=asterisk-small .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${a && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${a}</calcite-tooltip>` || ""}</li>`;
814
+ }
815
+ function Mi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: s, handleAppSave: a, handleAppHide: l, handleAppCancel: d, handleAppEdit: h, editingApplications: b, portal: p }) {
816
+ if (!e || !r)
817
+ return null;
818
+ const y = i?.length > 0, x = (e || []).filter((w) => w.itemId && (!n?.[w.itemId] || y) && di(i, w)), k = y ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable, P = y ? C(p) ? r.noAppsDescriptionPublic : r.noAppResultsDescriptionOrg : r.noAppsAvailable;
819
+ return b ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
820
+ d();
821
+ }}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
822
+ a();
823
+ }}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(w) => {
824
+ const { newIndex: f, oldIndex: m } = w.detail;
825
+ s({ newIndex: f, oldIndex: m });
826
+ }} .loading=${t}>${z(e, (w) => w.itemId, (w) => Ti({ app: w, hiddenApps: n, messages: r, toggleAppVisibility: (f, m) => {
827
+ l({ app: f, hidden: m });
828
+ } }))}</calcite-list>` : c`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} scale=m class="list__search" @calciteInputInput=${(w) => {
829
+ o(w.currentTarget.value);
830
+ }}></calcite-input><calcite-button appearance=transparent kind=neutral icon-start=reorder-cards .label=${r.reorder} @click=${() => h()} id=customize-apps></calcite-button><calcite-tooltip reference-element=customize-apps><span>${r.customizeApps}</span></calcite-tooltip></div>${x?.length > 0 ? c`<ul class="list">${z(x, (w) => w.itemId, (w) => Ci({ app: w, messages: r }))}</ul>` : K({ title: k, description: P, icon: i ? "search" : "apps" })}`;
831
+ }
832
+ const ye = "portalAppClientId", le = {
833
+ GeoanalyticsEngine: "geoanalyticsengine",
834
+ GeoanalyticsFabric: "geoanalyticsfabric",
835
+ IndoorsOnline: "indoorsonline"
836
+ };
837
+ function ue(e) {
838
+ return le.GeoanalyticsEngine === e;
839
+ }
840
+ function de(e) {
841
+ return le.GeoanalyticsFabric === e;
842
+ }
843
+ function je(e) {
844
+ return le.IndoorsOnline === e;
845
+ }
846
+ function pe(e) {
847
+ return ["Location Platform", "GeoAnalytics Fabric", "GeoAnalytics Engine", "Online", "Enterprise"].includes(e);
848
+ }
849
+ function Li({
850
+ portal: e,
851
+ messages: t,
852
+ licenses: i,
853
+ clientId: n,
854
+ signInSettings: r
855
+ }) {
856
+ if (!t || !e)
857
+ return [];
858
+ const o = e.sourceJSON?.subscriptionInfo, s = Di({ messages: t, portal: e });
859
+ if (!e.user)
860
+ return s;
861
+ if (!e || !s || e?.user && !i && !C(e))
862
+ return [];
863
+ const a = Gi({
864
+ portal: e,
865
+ licenses: i,
866
+ subscriptionInfo: o
867
+ });
868
+ return zi({ messages: t, portal: e, clientId: n, signInSettings: r, navLinkDictionary: a });
869
+ }
870
+ function Oi(e) {
871
+ const { id: t, access: i, isPortal: n } = e;
872
+ return !t && !i && !n;
873
+ }
874
+ function Ei(e, t) {
875
+ const i = new URL(e), n = t || window.location.pathname;
876
+ return i.pathname === n;
877
+ }
878
+ function De({
879
+ portal: e,
880
+ clientId: t,
881
+ signInSettings: i
882
+ }) {
883
+ const n = e.user, r = je(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), {
884
+ gallery: s = "all",
885
+ groups: a = "all",
886
+ map: l = "all",
887
+ notebook: d = "notebookCreators",
888
+ scene: h = "all"
889
+ } = e.portalProperties?.topNav || {};
890
+ let b = ["home"];
891
+ if (!n) {
892
+ if (!e.portalProperties?.topNav) {
893
+ const y = ["gallery", "map", "scene", "groups"], x = e.isPortal ? ["help"] : [];
894
+ return [...b, ...y, ...x];
895
+ }
896
+ return [
897
+ ...b,
898
+ ...s === "all" ? ["gallery"] : [],
899
+ ...l === "all" ? ["map"] : [],
900
+ ...h === "all" ? ["scene"] : [],
901
+ ...a === "all" ? ["groups"] : [],
902
+ ...e.isPortal ? ["help"] : []
903
+ ];
904
+ }
905
+ const p = n.orgId === e.id;
906
+ return !e.portalProperties?.topNav && C(e) ? b = ["ArcGIS", "overview", "pricing", "map", "scene", "groups", "myContent"] : b = [
907
+ ...b,
908
+ ...(s === "all" || s === "members" && p) && !r ? ["gallery"] : [],
909
+ ...(l === "all" || l === "members" && p || l === "mapCreators" && me(n)) && !r ? ["map"] : [],
910
+ ...(h === "all" || h === "members" && p || h === "sceneCreators" && me(n)) && !r ? ["scene"] : [],
911
+ ...!o && (!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (d === "members" && p || d === "notebookCreators" && At(n)) && !r ? ["notebook"] : [],
912
+ ...(a === "all" || a === "members" && p) && !r ? ["groups"] : [],
913
+ ...p && !r ? ["myContent", "organization"] : []
914
+ ], b;
915
+ }
916
+ function O(e) {
917
+ return `${xe({ portal: e })}/`;
918
+ }
919
+ function ji({
920
+ keys: e,
921
+ navLinkDictionary: t,
922
+ messages: i
923
+ }) {
924
+ const n = [];
925
+ return e.forEach((r) => {
926
+ const o = t[r];
927
+ if (o && (!("show" in o) || o.show)) {
928
+ const { href: s, newTab: a, icon: l, relativePath: d } = o;
929
+ n.push({
930
+ label: i[r],
931
+ href: s,
932
+ newTab: a,
933
+ relativePath: d,
934
+ icon: l
935
+ });
936
+ }
937
+ }), n;
938
+ }
939
+ function Di({
940
+ messages: e,
941
+ portal: t
942
+ }) {
943
+ if (!e || !t)
944
+ return [];
945
+ const i = O(t), n = {
946
+ overview: { label: e.overview, href: `${i}../features/features.html`, icon: "information" },
947
+ pricing: { label: e.pricing, href: `${i}../features/plans/pricing.html`, icon: "credit-card" },
948
+ map: { label: e.map, href: `${i}apps/mapviewer/index.html`, icon: "map" },
949
+ scene: { label: e.scene, href: `${i}webscene/viewer.html`, icon: "globe" },
950
+ help: { label: e.help, href: ae(t), newTab: !0, icon: "headset" },
951
+ home: { label: e.home, href: `${i}index.html`, relativePath: "index.html", icon: "home" },
952
+ gallery: { label: e.gallery, href: `${i}gallery.html`, relativePath: "gallery.html", icon: "gallery" },
953
+ groups: { label: e.groups, href: `${i}groups.html`, relativePath: "groups.html", icon: "group" }
954
+ };
955
+ return (Oi(t) ? ["overview", "pricing", "map", "scene", "help"] : De({ portal: t })).map((o) => n[o]);
956
+ }
957
+ function zi({
958
+ messages: e,
959
+ portal: t,
960
+ clientId: i,
961
+ signInSettings: n,
962
+ navLinkDictionary: r
963
+ }) {
964
+ const o = ue(i), s = De({ portal: t, clientId: i, signInSettings: n }), a = `${O(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
965
+ return o || de(i) ? [
966
+ {
967
+ // TODO: active calculations in the component need to account for hash for these options
968
+ href: `${a}#subscription`,
969
+ label: e.subscription
970
+ },
971
+ ...o ? [
972
+ {
973
+ href: `${a}#downloads`,
974
+ label: e.downloads
975
+ }
976
+ ] : [],
977
+ {
978
+ href: `${a}#credentials`,
979
+ label: e.developerCredentials
980
+ },
981
+ {
982
+ href: `${a}#account`,
983
+ label: e.account
984
+ }
985
+ ] : ji({ keys: s, messages: e, navLinkDictionary: r });
986
+ }
987
+ function Gi({
988
+ portal: e,
989
+ licenses: t,
990
+ subscriptionInfo: i
991
+ }) {
992
+ const n = e.user, r = O(e), o = i?.options?.includes("Developer"), s = I("arcgiswebapps", t) || o && I("locationplatformwebapps", t) || C(e);
993
+ return {
994
+ pricing: { href: `${r}../features/plans/pricing.html` },
995
+ overview: { href: `${r}../features/features.html` },
996
+ ArcGIS: {
997
+ href: `${r}${C(e) ? "index.html" : "../features/features.html"}`,
998
+ show: C(e) || !n
999
+ },
1000
+ groups: {
1001
+ href: `${r}groups.html`,
1002
+ relativePath: "groups.html",
1003
+ icon: "group"
1004
+ },
1005
+ myContent: {
1006
+ href: `${r}content.html`,
1007
+ relativePath: "content.html",
1008
+ icon: "files"
1009
+ },
1010
+ map: {
1011
+ show: s,
1012
+ href: `${r}apps/mapviewer/index.html`,
1013
+ icon: "map"
1014
+ },
1015
+ help: {
1016
+ href: ae(e),
1017
+ newTab: !0
1018
+ },
1019
+ gallery: {
1020
+ show: !!e.id && !o,
1021
+ href: `${r}gallery.html`,
1022
+ relativePath: "gallery.html",
1023
+ icon: "gallery"
1024
+ },
1025
+ home: {
1026
+ show: !C(e) && !o,
1027
+ href: `${r}index.html`,
1028
+ relativePath: "index.html",
1029
+ icon: "home"
1030
+ },
1031
+ scene: {
1032
+ show: s,
1033
+ href: `${r}webscene/viewer.html`,
1034
+ icon: "globe"
1035
+ },
1036
+ notebook: {
1037
+ show: Et(e),
1038
+ href: `${r}notebook/notebookhome.html`,
1039
+ relativePath: "notebook/notebookhome.html",
1040
+ icon: "notebook"
1041
+ },
1042
+ organization: {
1043
+ show: !C(e),
1044
+ href: `${r}organization.html`,
1045
+ relativePath: "organization.html",
1046
+ icon: "organization"
1047
+ },
1048
+ features: {
1049
+ show: C(e) && !e.isPortal,
1050
+ href: `${r}../features/features.html`,
1051
+ icon: "information"
1052
+ }
1053
+ };
1054
+ }
1055
+ function Ui({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
1056
+ if (!t || !i || !t.modified)
1057
+ return null;
1058
+ const o = t.modified, s = { lessThanOneMinute: i.lessThanOneMinute }, a = Pe(Ne(o)), l = a?.[1] === "year" || a?.[1] === "month" ? Vt({ locale: r, time: o }, a?.[1] === "year") : Te({ locale: r, time: o, t9n: s }), d = `item.html?id=${t.id}`, h = `${O(e)}${d}}`;
1059
+ return se(t.id, c`<li class="list-item"><a class="list-item__link" href=${h ?? L} @click=${(b) => {
1060
+ n({ event: b, href: h, relativePath: d });
1061
+ }}>${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">${Q(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
1062
+ }
1063
+ function Bi({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: s, appsSearchTerm: a, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: h, handleAppSave: b, handleAppHide: p, handleAppCancel: y, handleAppEdit: x, handleItemSearch: k, editingApplications: P, recentContent: w, recentContentLoading: f, recentContentSearchTerm: m, product: u, productInfo: _, links: N, messages: g }) {
1064
+ if (!u || !i || !g)
1065
+ return null;
1066
+ const { name: v, icon: $ } = _ || {};
1067
+ return c`<calcite-sheet class="platform" .label=${g.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} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${v}</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">${N.filter(({ icon: A }) => A).map(({ label: A, href: E, icon: R, relativePath: S }) => c`<calcite-tile .icon=${R} .description=${A} .href=${E} alignment=center scale=s @keydown=${(M) => {
1068
+ (M.key === "Enter" || M.key === " ") && t({ event: M, href: E, relativePath: S });
1069
+ }} @click=${(M) => {
1070
+ t({ event: M, href: E, relativePath: S });
1071
+ }}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center class="platform__tabs"><calcite-tab-nav slot=title-group>${!C(i) && c`<calcite-tab-title selected>${g.myApps}</calcite-tab-title>` || ""}<calcite-tab-title>${g.recentContent}</calcite-tab-title></calcite-tab-nav>${!C(i) && c`<calcite-tab selected class="platform__tab">${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${Mi({ apps: r, appsLoading: o, appsSearchTerm: a, hiddenApps: s, messages: g, handleAppsSearch: d, handleAppReorder: h, handleAppSave: b, handleAppHide: p, handleAppCancel: y, handleAppEdit: x, editingApplications: P, portal: i })}</calcite-tab>` || ""}<calcite-tab class="platform__tab"><div class="list__header"><calcite-input type=search icon .placeholder=${g.searchRecentContent} scale=m class="list__search" @calciteInputInput=${(A) => k(A.target.value)}></calcite-input></div>${f && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}<div class="list__container">${w?.length > 0 || f ? c`<ul class="list">${z(w, (A) => A.id, (A) => Ui({ portal: i, messages: g, navigate: t, item: A, locale: e }))}</ul>` : m?.length ? K({ title: Q(g.noAppResults, { term: m }), description: g.recentContentNoResultsDescription, icon: "search" }) : K({ title: g.noContent, description: g.noContentDescription, icon: "clock" })}</div></calcite-tab></calcite-tabs>` || ""}</div></calcite-panel></calcite-sheet>`;
1072
+ }
1073
+ const ne = [
1074
+ "new",
1075
+ "open",
1076
+ "rename",
1077
+ "save",
1078
+ "saveCopy",
1079
+ "share",
1080
+ "copyLink",
1081
+ "embed",
1082
+ "details"
1083
+ ];
1084
+ async function Fi(e) {
1085
+ return await Promise.resolve({ status: "success" });
1086
+ }
1087
+ function re(e) {
1088
+ return ne.includes(e.id);
1089
+ }
1090
+ function Wi(e) {
1091
+ return (e || [])?.toSorted((t, i) => {
1092
+ const n = re(t), r = re(i);
1093
+ return n && !r ? -1 : r && !n ? 1 : r && n ? ne.indexOf(t.id) - ne.indexOf(i.id) : -1;
1094
+ });
1095
+ }
1096
+ function Ri(e, t) {
1097
+ const i = {
1098
+ new: [],
1099
+ save: [],
1100
+ share: [],
1101
+ details: [],
1102
+ custom: []
1103
+ };
1104
+ if (!t || !e?.length)
1105
+ return i;
1106
+ const n = {
1107
+ new: { text: t.new, group: "new" },
1108
+ open: { text: t.open, group: "new" },
1109
+ rename: { text: t.rename, group: "save" },
1110
+ save: { text: t.save, group: "save" },
1111
+ saveCopy: { text: t.saveAsCopy, group: "save" },
1112
+ share: { text: t.manageSharing, group: "share" },
1113
+ copyLink: { text: t.copyLink, group: "share" },
1114
+ embed: { text: t.embed, group: "share" },
1115
+ details: { text: t.itemDetails, group: "details", external: !0 }
1116
+ }, r = Wi(e), o = [];
1117
+ return r.forEach((s) => {
1118
+ if (!re(s)) {
1119
+ o.push(s);
1120
+ return;
1121
+ }
1122
+ const { text: l, external: d, group: h } = n[s.id];
1123
+ i[h].push({ text: l, external: d, ...s });
1124
+ }), o.forEach((s) => {
1125
+ const a = s.group || "custom";
1126
+ i[a].push(s);
1127
+ }), i;
1128
+ }
1129
+ function Vi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: s }) {
1130
+ if (!t || !n || !i || i.id === "details" && !r)
1131
+ return null;
1132
+ const { external: a, id: l, text: d } = i, h = `${O(t)}item.html?id=${r?.id}`;
1133
+ return se(`${l}${d}`, c`<calcite-dropdown-item .iconEnd=${a ? "launch" : void 0} .href=${l === "details" ? h : i.href} .target=${a ? "_blank" : void 0} @calciteDropdownItemSelect=${(b) => {
1134
+ if (l === "rename") {
1135
+ o?.();
1136
+ return;
1137
+ }
1138
+ l === "details" && e({ event: b, href: h }), s?.({ type: l });
1139
+ }}>${d}${l === "save" && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
1140
+ }
1141
+ function Hi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: s, openProjectTitleEdit: a, portalItem: l, projectTitleEditing: d, projectTitleSaving: h, projectTitleErrorMessage: b, projectMenuIcon: p, projectMenuSaveIndicator: y, projectMenuClick: x, projectMenuOptions: k, projectTitleInputRef: P, projectButtonRef: w, messages: f }) {
1142
+ if (!t || !f || !k?.length && !i)
1143
+ return null;
1144
+ if (!k?.length)
1145
+ 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>${y && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
1146
+ const m = Ri(k, f), u = !!b;
1147
+ return d ? c`<form class="rename" @submit=${async (_) => {
1148
+ _.preventDefault(), await r?.(n);
1149
+ }} @keydown=${(_) => {
1150
+ _.key === "Escape" && s?.();
1151
+ }}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${f.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(_) => o?.(_.target.value)} ${F(P)}></calcite-input>${u && c`<calcite-popover open .label=${f.error} .referenceElement=${P?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${b}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${h} icon=check scale=l .text=${f?.saveRename} active class="rename__action" type=submit .loading=${h}></calcite-action><calcite-action .disabled=${h} icon=x scale=l .text=${f?.cancelRename} class="rename__action" @click=${() => s?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${F(w)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${y && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${z(Object.entries(m).filter(([_, N]) => N.length), ([_, N]) => _, ([_, N]) => c`<calcite-dropdown-group selection-mode=none>${N.map((g) => Vi({ menuItem: g, navigate: e, portal: t, messages: f, portalItem: l, openProjectTitleEdit: a, projectMenuClick: x }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
1152
+ }
1153
+ function qi(e) {
1154
+ return ["Location Platform", "Online", "Enterprise"].includes(e);
1155
+ }
1156
+ function ze({
1157
+ portal: e,
1158
+ searchType: t,
1159
+ searchTerm: i
1160
+ }) {
1161
+ const r = e?.sourceJSON?.vectorSearchEnabled ? `&mode=${t}` : "";
1162
+ return `search.html?q=${i}${r}`;
1163
+ }
1164
+ function Ji({ portal: e, item: t, messages: i, navigate: n }) {
1165
+ if (!t || !i)
1166
+ return null;
1167
+ const r = Q(i.by, {
1168
+ itemType: Lt(t),
1169
+ owner: t.owner
1170
+ }), o = `item.html?id=${t.id}`, s = `${O(e)}${o}`;
1171
+ return se(t.id, c`<li class="list-item"><a class="list-item__link" href=${s ?? L} @click=${(a) => n({ event: a, href: s, 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>`);
1172
+ }
1173
+ function Ki({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
1174
+ if (!i || !e || !o)
1175
+ return null;
1176
+ if (!t)
1177
+ return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
1178
+ const s = ze({ portal: e, searchType: r, searchTerm: o }), a = `/${s}`, l = `${O(e)}${s}`;
1179
+ return c`<ul class="list">${t.map((d) => Ji({ 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) => {
1180
+ n({ href: l, event: d, relativePath: a });
1181
+ }}>${i.viewAll}</calcite-button></div>`;
1182
+ }
1183
+ function Qi({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
1184
+ if (!t || !e?.sourceJSON?.vectorSearchEnabled)
1185
+ return null;
1186
+ const r = i === "keyword", o = t.searchType;
1187
+ 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>`;
1188
+ }
1189
+ function Xi({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: s, searchTerm: a, suggestions: l, searchInputRef: d, searchActionRef: h, searchPopoverRef: b, handleSearch: p, handleToggleSearch: y, handleSearchTypeChange: x }) {
1190
+ if (!qi(i) || !r || !n || e?.includes("search.html"))
1191
+ return null;
1192
+ const k = ze({ portal: n, searchType: s, searchTerm: a }), P = `/${k}`, w = `${O(n)}${k}`;
1193
+ 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=${s === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(f) => p(f.target.value)} @keydown=${(f) => {
1194
+ f.key === "Enter" && (t({ href: w, event: f, relativePath: P }), f.defaultPrevented || (window.location.href = w)), f.key === "Escape" && y(!1);
1195
+ }} ${F(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => y(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!a} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${F(b)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${Qi({ portal: n, messages: r, searchType: s, handleSearchTypeChange: x })}</div><div class="suggestions__results">${Ki({ portal: n, suggestions: l, navigate: t, messages: r, searchType: s, searchTerm: a })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action fade-in" @click=${() => y(!0)} ${F(h)}></calcite-action>`;
1196
+ }
1197
+ function Yi({ signIn: e, messages: t }) {
1198
+ return c`<calcite-menu slot=user .label=${t?.account || ""} class="border-start fade-in"><calcite-menu-item .label=${t?.signIn || ""} text-enabled .text=${t?.signIn || ""} @calciteMenuItemSelect=${() => e()}></calcite-menu-item></calcite-menu>`;
1199
+ }
1200
+ function Zi({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: s }) {
1201
+ return !i || !t || !r || !pe(i) || !n || s ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${z(n, ({ href: a }) => a, ({ label: a, href: l, relativePath: d }) => c`<calcite-menu-item .text=${a} text-enabled .label=${a} .href=${l} .active=${Ei(l, o)} @click=${(h) => e({ event: h, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
1202
+ }
1203
+ function en({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: s }) {
1204
+ const a = r?.user;
1205
+ return !a || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user fade-in"><calcite-dropdown .width=${s ? "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=${a} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!s && c`<span class="user__button__text"><h2 class="user__button__full user__full">${a.fullName}</h2><p class="user__button__username user__username">${a.username}</p></span>` || ""}</span></calcite-button>${s && c`<div class="user__top"><arcgis-portal-user-avatar .user=${a} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${a.fullName}</h2><p class="user__top__username user__username">${a.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: b, href: p, relativePath: y }) => c`<calcite-dropdown-item .iconStart=${h} .href=${p} @keydown=${(x) => {
1206
+ (x.key === "Enter" || x.key === " ") && i({ event: x, href: p, relativePath: y });
1207
+ }} @click=${(x) => {
1208
+ i({ event: x, href: p, relativePath: y });
1209
+ }}>${b}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
1210
+ const d = Dt(l.target, "calcite-dropdown");
1211
+ d && (d.open = !1), n();
1212
+ }}>${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>`;
1213
+ }
1214
+ const Ge = {
1215
+ community: "https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",
1216
+ myEsri: "https://my.esri.com"
1217
+ };
1218
+ function tn({
1219
+ messages: e,
1220
+ userLinks: t
1221
+ }) {
1222
+ const i = {
1223
+ account: { title: e.account, options: [] },
1224
+ resources: { title: e.resources, options: [] }
1225
+ };
1226
+ return t.forEach((n) => {
1227
+ i[n.group].options.push(n);
1228
+ }), i;
1229
+ }
1230
+ function nn({
1231
+ portal: e,
1232
+ messages: t,
1233
+ clientId: i
1234
+ }) {
1235
+ if (!e?.user || !t)
1236
+ return {
1237
+ account: { title: t?.account, options: [] },
1238
+ resources: { title: t?.account, options: [] }
1239
+ };
1240
+ const n = sn(e), r = rn({ navLinkDictionary: n, messages: t, clientId: i });
1241
+ return tn({ userLinks: r, messages: t });
1242
+ }
1243
+ function rn({
1244
+ navLinkDictionary: e,
1245
+ messages: t,
1246
+ clientId: i
1247
+ }) {
1248
+ let n = [
1249
+ "myProfile",
1250
+ "mySettings",
1251
+ "myEsri",
1252
+ "training",
1253
+ "trialDownload",
1254
+ "communityForums",
1255
+ "arcgisBlog",
1256
+ "help"
1257
+ ];
1258
+ return (ue(i) || de(i)) && (n = ["mySettings", "arcgisBlog", "help"]), je(i) && (n = []), on(n, t, e);
1259
+ }
1260
+ function on(e, t, i) {
1261
+ const n = [];
1262
+ return e.forEach((r) => {
1263
+ const o = i[r];
1264
+ if (o && (!("show" in o) || o.show)) {
1265
+ const { href: s, newTab: a, icon: l, group: d, relativePath: h } = o;
1266
+ n.push({
1267
+ label: t[r],
1268
+ group: d,
1269
+ href: s,
1270
+ newTab: a,
1271
+ relativePath: h,
1272
+ icon: l
1273
+ });
1274
+ }
1275
+ }), n;
1276
+ }
1277
+ function sn(e) {
1278
+ const t = O(e), i = an(e), n = `user.html${window.location.pathname.includes("home/user.html") ? "?nav=1" : ""}`;
1279
+ return {
1280
+ myProfile: {
1281
+ href: `${t}${n}`,
1282
+ relativePath: n,
1283
+ group: "account",
1284
+ icon: "user"
1285
+ },
1286
+ mySettings: {
1287
+ href: `${t}${n}#settings`,
1288
+ relativePath: `${n}#settings`,
1289
+ group: "account",
1290
+ icon: "gear"
1291
+ },
1292
+ help: {
1293
+ group: "resources",
1294
+ icon: "question",
1295
+ href: ae(e),
1296
+ newTab: !0
1297
+ },
1298
+ communityForums: {
1299
+ show: i,
1300
+ group: "resources",
1301
+ icon: "speech-bubbles",
1302
+ href: Ge.community,
1303
+ newTab: !0
1304
+ },
1305
+ myEsri: {
1306
+ show: i,
1307
+ group: "account",
1308
+ icon: "globe",
1309
+ href: ln(e),
1310
+ newTab: !0
1311
+ },
1312
+ arcgisBlog: {
1313
+ show: i,
1314
+ group: "resources",
1315
+ icon: "article",
1316
+ href: "https://www.esri.com/arcgis-blog/products/arcgis-online",
1317
+ newTab: !0
1318
+ },
1319
+ training: {
1320
+ show: i,
1321
+ group: "resources",
1322
+ icon: "education",
1323
+ href: cn(e),
1324
+ newTab: !0
1325
+ },
1326
+ trialDownload: {
1327
+ group: "resources",
1328
+ icon: "download-to",
1329
+ show: dn(e),
1330
+ href: `${t}/home/user.html${window.location.pathname.includes("home/user.html") ? "?nav=1&tab=licenses" : "?tab=licenses"}#settings`
1331
+ }
1332
+ };
1333
+ }
1334
+ function an(e) {
1335
+ return !e.isPortal && e?.user?.sourceJSON?.userType === "both";
1336
+ }
1337
+ function cn(e) {
1338
+ return Ue(
1339
+ e,
1340
+ `${window.location.protocol}//www.esri.com/training/arcgis-online-training`
1341
+ );
1342
+ }
1343
+ function ln(e) {
1344
+ return Ue(e, Ge.myEsri);
1345
+ }
1346
+ function Ue(e, t) {
1347
+ const i = ce(e), n = un(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, s = `${r}LoginHandler/switchuser?`, a = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
1348
+ return `${s}${a}`;
1349
+ }
1350
+ function un(e) {
1351
+ const t = e.portalHostname;
1352
+ return t?.includes("dev") ? "dev" : t?.includes("qa") ? "qa" : "";
1353
+ }
1354
+ function dn(e) {
1355
+ return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON.subscriptionInfo?.type);
1356
+ }
1357
+ function pn(e) {
1358
+ switch (e) {
1359
+ case "360 VR":
1360
+ return {
1361
+ name: "360 VR",
1362
+ fileName: "arcgis-360-vr",
1363
+ icon: "arcgis-360-vr"
1364
+ };
1365
+ case "Business Analyst":
1366
+ return {
1367
+ name: "ArcGIS Business Analyst",
1368
+ fileName: "arcgis-business-analyst",
1369
+ icon: "business-analyst"
1370
+ };
1371
+ case "Dashboards":
1372
+ return {
1373
+ name: "ArcGIS Dashboards",
1374
+ fileName: "arcgis-dashboards",
1375
+ icon: "operations-dashboard"
1376
+ };
1377
+ case "Data Pipelines":
1378
+ return {
1379
+ name: "ArcGIS Data Pipelines",
1380
+ fileName: "arcgis-data-pipelines",
1381
+ icon: "data-pipelines"
1382
+ };
1383
+ case "Deep Learning Studio":
1384
+ return {
1385
+ name: "Deep Learning Studio",
1386
+ fileName: "arcgis-deep-learning-studio",
1387
+ icon: "deeplearningstudio"
1388
+ };
1389
+ case "Enterprise":
1390
+ return {
1391
+ name: "ArcGIS Enterprise",
1392
+ fileName: "arcgis-enterprise",
1393
+ icon: "arcgis-enterprise"
1394
+ };
1395
+ case "Excalibur":
1396
+ return {
1397
+ name: "ArcGIS Excalibur",
1398
+ fileName: "arcgis-excalibur",
1399
+ icon: "excalibur"
1400
+ };
1401
+ case "Experience Builder":
1402
+ return {
1403
+ name: "ArcGIS Experience Builder",
1404
+ fileName: "arcgis-experience-builder",
1405
+ icon: "arcgis-experience-builder"
1406
+ };
1407
+ case "Field Maps":
1408
+ return {
1409
+ name: "Field Maps Designer",
1410
+ fileName: "arcgis-field-maps",
1411
+ icon: "fieldmaps"
1412
+ };
1413
+ case "Field Maps Designer EA":
1414
+ return {
1415
+ name: "Field Maps Designer (EA)",
1416
+ fileName: "arcgis-field-maps-designer-ea",
1417
+ icon: "fieldmaps"
1418
+ };
1419
+ case "GeoAnalytics Engine":
1420
+ case "GeoAnalytics Fabric":
1421
+ return {
1422
+ name: e,
1423
+ fileName: "arcgis-geoanalytics-engine",
1424
+ icon: "arcgis-geoanalytics"
1425
+ };
1426
+ case "GeoBIM":
1427
+ return {
1428
+ name: "ArcGIS GeoBIM",
1429
+ fileName: "arcgis-geobim",
1430
+ icon: "geobim"
1431
+ };
1432
+ case "Hub":
1433
+ return {
1434
+ name: "ArcGIS Hub",
1435
+ fileName: "arcgis-hub",
1436
+ icon: "arcgis-hub"
1437
+ };
1438
+ case "Instant Apps":
1439
+ return {
1440
+ name: "Instant Apps",
1441
+ fileName: "arcgis-instant-apps",
1442
+ icon: "instant-apps"
1443
+ };
1444
+ case "Knowledge":
1445
+ return {
1446
+ name: "ArcGIS Knowledge Studio",
1447
+ fileName: "arcgis-knowledge",
1448
+ icon: "knowledge-studio"
1449
+ };
1450
+ case "Location Platform":
1451
+ return {
1452
+ name: "Location Platform",
1453
+ fileName: "arcgis-location-platform",
1454
+ icon: "location-platform"
1455
+ };
1456
+ case "Map Viewer":
1457
+ return {
1458
+ name: "Map Viewer",
1459
+ fileName: "map-viewer",
1460
+ icon: "map-viewer"
1461
+ };
1462
+ case "Mission":
1463
+ return {
1464
+ name: "ArcGIS Mission Manager",
1465
+ fileName: "arcgis-mission",
1466
+ icon: "mission"
1467
+ };
1468
+ case "Monitor":
1469
+ return {
1470
+ name: "ArcGIS Monitor",
1471
+ fileName: "arcgis-monitor",
1472
+ icon: "monitor"
1473
+ };
1474
+ case "Notebooks":
1475
+ return {
1476
+ name: "ArcGIS Notebooks",
1477
+ fileName: "arcgis-notebooks",
1478
+ icon: "notebook"
1479
+ };
1480
+ case "Online":
1481
+ return {
1482
+ name: "ArcGIS Online",
1483
+ fileName: "arcgis-online",
1484
+ icon: "arcgis-online"
1485
+ };
1486
+ case "Ortho Maker":
1487
+ return {
1488
+ name: "Ortho Maker",
1489
+ fileName: "arcgis-ortho-maker",
1490
+ icon: "ortho-maker"
1491
+ };
1492
+ case "QuickCapture":
1493
+ return {
1494
+ name: "ArcGIS QuickCapture",
1495
+ fileName: "arcgis-quickcapture",
1496
+ icon: "quick-capture"
1497
+ };
1498
+ case "Reality Studio":
1499
+ return {
1500
+ name: "ArcGIS Reality Studio",
1501
+ fileName: "arcgis-reality-studio",
1502
+ icon: "arcgis-reality-studio"
1503
+ };
1504
+ case "Scene Viewer":
1505
+ return {
1506
+ name: "Scene Viewer",
1507
+ fileName: "sceneviewer",
1508
+ icon: "scene-viewer"
1509
+ };
1510
+ case "Solutions":
1511
+ return {
1512
+ name: "ArcGIS Solutions",
1513
+ fileName: "arcgis-solutions",
1514
+ icon: "solutions"
1515
+ };
1516
+ case "StoryMaps":
1517
+ return {
1518
+ name: "ArcGIS StoryMaps",
1519
+ fileName: "arcgis-storymaps",
1520
+ icon: "story-maps"
1521
+ };
1522
+ case "Survey123":
1523
+ return {
1524
+ name: "ArcGIS Survey123",
1525
+ fileName: "arcgis-survey123",
1526
+ icon: "survey123"
1527
+ };
1528
+ case "Tracker":
1529
+ return {
1530
+ name: "Track Viewer",
1531
+ fileName: "arcgis-tracker",
1532
+ icon: "track-viewer"
1533
+ };
1534
+ case "Urban":
1535
+ return {
1536
+ name: "ArcGIS Urban",
1537
+ fileName: "arcgis-urban",
1538
+ icon: "arcgis-urban"
1539
+ };
1540
+ case "Vector Tile Style Editor":
1541
+ return {
1542
+ name: "Vector Tile Style Editor",
1543
+ fileName: "vector-tile-style-editor",
1544
+ icon: "vector-tile-style-editor"
1545
+ };
1546
+ case "Velocity":
1547
+ return {
1548
+ name: "ArcGIS Velocity",
1549
+ fileName: "arcgis-velocity",
1550
+ icon: "velocity"
1551
+ };
1552
+ case "Web Editor":
1553
+ return {
1554
+ name: "Web Editor",
1555
+ fileName: "arcgis-web-editor",
1556
+ icon: "web-editor"
1557
+ };
1558
+ case "Workflow Manager":
1559
+ return {
1560
+ name: "ArcGIS Workflow Manager",
1561
+ fileName: "arcgis-workflow-manager",
1562
+ icon: "workflow-manager"
1563
+ };
1564
+ case "Workforce":
1565
+ return {
1566
+ name: "ArcGIS Workforce",
1567
+ fileName: "arcgis-workforce",
1568
+ icon: "workforce"
1569
+ };
1570
+ default:
1571
+ return {
1572
+ name: "ArcGIS Online",
1573
+ fileName: "arcgis-online",
1574
+ icon: "arcgis-online"
1575
+ };
1576
+ }
1577
+ }
1578
+ function hn({
1579
+ product: e,
1580
+ portal: t,
1581
+ clientId: i
1582
+ }) {
1583
+ return e !== "Online" ? e : t?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : de(i) ? "GeoAnalytics Fabric" : ue(i) ? "GeoAnalytics Engine" : t?.isPortal ? "Enterprise" : "Online";
1584
+ }
1585
+ function $e(e) {
1586
+ const t = hn(e), { name: i, fileName: n, icon: r } = pn(t);
1587
+ return {
1588
+ name: i,
1589
+ glyph: te(`assets/portal-navigation/product-logos/${n}-glyph-32.svg`),
1590
+ icon: te(`assets/portal-navigation/apps/${r}.avif`)
1591
+ };
1592
+ }
1593
+ function mn() {
1594
+ const e = $t();
1595
+ ["item.html", "group.html"].some((t) => window.location.href.includes(t)) ? window.location.href = `./signin.html?locale=${e}&useLandingPage=false&returnUrl=${encodeURIComponent(
1596
+ window.location.href
1597
+ )}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
1598
+ }
1599
+ function fn({ portal: e, clientId: t }) {
1600
+ const i = oe({ portal: e });
1601
+ if (e?.isPortal) {
1602
+ const n = e.access === "private" ? J("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? J("./index.html", e) : `${i}/index.html`;
1603
+ bn(e, n);
1604
+ } else
1605
+ window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
1606
+ }
1607
+ function gn() {
1608
+ ii(ye), ni(ye);
1609
+ }
1610
+ function bn(e, t = window.location.href) {
1611
+ const i = window.location.href.startsWith("http://"), n = jt(e);
1612
+ Gt.destroyCredentials(), gn();
1613
+ const r = new URL(J(`${ce(e)}oauth2/signout`, e)), { searchParams: o } = r;
1614
+ 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;
1615
+ }
1616
+ function j(e, t) {
1617
+ if (!e)
1618
+ return 0;
1619
+ const i = zt({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
1620
+ return Math.ceil(i);
1621
+ }
1622
+ function vn({
1623
+ portal: e,
1624
+ product: t,
1625
+ projectTitle: i,
1626
+ links: n,
1627
+ messages: r,
1628
+ productInfo: o
1629
+ }) {
1630
+ if (!t || !e)
1631
+ return;
1632
+ const s = e.user, l = pe(t) && n?.length ? 24 + n.reduce((b, p) => b + 16 + j(p.label) + 16, 0) : 0, d = 40 + j(i) + 32 + 16 + 16 + 12, h = s ? Math.max(j(s?.username, "s"), j(s?.fullName)) : j(r?.signIn);
1633
+ return {
1634
+ actions: 192,
1635
+ project: i ? Math.min(d, 400) : 0,
1636
+ product: 64 + Math.max(j(o?.name), j(e.name, "s")) + 16,
1637
+ nav: l,
1638
+ user: 64 + h + 16
1639
+ };
1640
+ }
1641
+ function _n({
1642
+ measurements: e,
1643
+ screenWidth: t
1644
+ }) {
1645
+ const { actions: i, nav: n, product: r, project: o, user: s } = e, a = 64, l = t - i - a > n, d = t - i - (l ? n : 0) - o - a > Math.min(r, 400), h = t - n - o - i - r < Math.min(s, 320);
1646
+ return {
1647
+ nav: l,
1648
+ product: d,
1649
+ user: h ? "avatar" : "full"
1650
+ };
1651
+ }
1652
+ const Be = ' -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"';
1653
+ async function ke({
1654
+ portal: e,
1655
+ searchTerm: t
1656
+ }) {
1657
+ if (!e?.user)
1658
+ return [];
1659
+ try {
1660
+ return (await e.queryItems({
1661
+ ...t ? { query: t } : {},
1662
+ filter: `owner:${e.user.username}${Be}`,
1663
+ num: 20,
1664
+ sortField: "modified",
1665
+ sortOrder: "desc"
1666
+ })).results;
1667
+ } catch {
1668
+ return [];
1669
+ }
1670
+ }
1671
+ async function wn({
1672
+ portal: e,
1673
+ searchTerm: t
1674
+ }) {
1675
+ if (!e)
1676
+ return [];
1677
+ const i = Bt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Be}`, r = `${ce(e)}search/suggest`;
1678
+ return (await G(r, { query: {
1679
+ suggest: i,
1680
+ filters: n,
1681
+ searchFields: "title",
1682
+ f: "json"
1683
+ } }))?.result?.results || [];
1684
+ }
1685
+ const yn = wt`: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-scrim-background: var(--calcite-color-transparent-scrim);--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}.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%);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%}.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start}.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}`;
1686
+ function $n({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
1687
+ 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>`;
1688
+ }
1689
+ class kn extends bt {
1690
+ constructor() {
1691
+ super(...arguments), this.messages = vt({ blocking: !0 }), this.refreshNotifications = async () => {
1692
+ const { portal: t, messages: i } = this;
1693
+ this.notifications = await be({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
1694
+ }, this.deleteNotifications = async (t) => {
1695
+ const { portal: i } = this;
1696
+ if (t?.length < 20)
1697
+ await qt(i, t);
1698
+ else {
1699
+ let n = 0;
1700
+ for await (const r of t)
1701
+ await Ce({ id: r, portal: i }), this.notificationDeleteProgress = Math.ceil(n++ / t.length * 100);
1702
+ }
1703
+ this.notificationDeleteProgress = void 0, this.refreshNotifications();
1704
+ }, this.navigate = (t) => {
1705
+ this.arcgisNavigate.emit(t), this.platformMenuOpen = !1, this.notificationsActive = !1, this.searchActive = !1;
1706
+ }, this.openPlatformMenu = () => {
1707
+ this.platformMenuOpen = !0, this.searchActive = !1;
1708
+ }, this.projectMenuClick = (t) => {
1709
+ this.arcgisNavigationProjectMenuClick.emit(t);
1710
+ }, this.openProjectTitleEdit = () => {
1711
+ this.projectTitleEditing = !0, this.editedProjectTitle = this.projectTitle, requestAnimationFrame(() => {
1712
+ this.projectTitleInputRef?.value?.setFocus();
1713
+ });
1714
+ }, this.closeProjectTitleEdit = () => {
1715
+ this.projectTitleEditing = !1, this.projectTitleErrorMessage = void 0, requestAnimationFrame(() => {
1716
+ this.projectButtonRef?.value?.focus();
1717
+ });
1718
+ }, this.handleProjectTitleSave = async (t) => {
1719
+ this.projectTitleSaving = !0;
1720
+ const n = await (this.projectTitleSave || Fi)(t);
1721
+ if (this.projectTitleSaving = !1, n.status === "success") {
1722
+ this.closeProjectTitleEdit();
1723
+ return;
1724
+ }
1725
+ n.message && (this.projectTitleErrorMessage = n.message);
1726
+ }, this.handleProjectTitleEdit = (t) => {
1727
+ this.editedProjectTitle = t;
1728
+ }, this.handleProjectTitleCancel = () => {
1729
+ this.editedProjectTitle = this.projectTitle, this.closeProjectTitleEdit();
1730
+ }, this.signOut = () => {
1731
+ const { portal: t, clientId: i } = this;
1732
+ fn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
1733
+ }, this.signIn = () => {
1734
+ this.arcgisNavigationSignIn.emit(), mn();
1735
+ }, this.openAccountSwitcher = () => {
1736
+ this.accountSwitcherOpen = !0;
1737
+ }, this.handlePlatformClose = () => {
1738
+ this.platformMenuOpen = !1, this.handleAppCancel();
1739
+ }, this.handleAppSave = async () => {
1740
+ const { hiddenApps: t, sortedApps: i, userProperties: n, portal: r } = this;
1741
+ this.apps = [...i], this.editingApplications = !1, this.appsLoading = !0;
1742
+ const { result: o } = await Ni({ apps: i, hiddenApps: t, userProperties: n, portal: r });
1743
+ o?.success && (this.previousAppState = {
1744
+ apps: i,
1745
+ hiddenApps: t
1746
+ }), await Ut(1e3), this.appsLoading = !1;
1747
+ }, this.handleAppCancel = () => {
1748
+ this.previousAppState && (this.apps = this.previousAppState.apps, this.hiddenApps = this.previousAppState.hiddenApps), this.editingApplications = !1;
1749
+ }, this.handleAppHide = ({ app: t, hidden: i }) => {
1750
+ !this.hiddenApps || !t || (this.hiddenApps = { ...this.hiddenApps || {}, [t]: i });
1751
+ }, this.handleAppReorder = ({ oldIndex: t, newIndex: i }) => {
1752
+ const n = [...this.sortedApps], r = n[t];
1753
+ n.splice(t, 1), n.splice(i, 0, r), this.sortedApps = n;
1754
+ }, this.handleItemSearch = (t) => {
1755
+ this.recentContentLoading = !0, this.recentContentSearchTerm = t, this.debouncedItemSearch(t);
1756
+ }, this.debouncedItemSearch = fe(async (t) => {
1757
+ this.recentContent = await ke({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1;
1758
+ }, 1e3), this.debouncedSuggest = fe(async (t) => {
1759
+ this.suggestions = await wn({ portal: this.portal, searchTerm: t });
1760
+ }, 1e3), this.handleSearch = (t) => {
1761
+ this.searchTerm = t, this.suggestions = void 0, this.debouncedSuggest(t);
1762
+ }, this.sizeSearchPopover = () => {
1763
+ const t = this.searchInput?.value, i = this.searchPopover?.value;
1764
+ if (!t || !i)
1765
+ return;
1766
+ const n = t.offsetWidth > 480 ? `${t.offsetWidth}px` : "80vw";
1767
+ i.style?.setProperty?.("--calcite-popover-max-size-x", n);
1768
+ }, this.handleToggleNotifications = (t) => {
1769
+ this.notificationsActive = t;
1770
+ }, this.handleToggleSearch = (t, i) => {
1771
+ this.searchActive = t, this.searchTerm = "", this.suggestions = void 0, document.documentElement.style.overflow = t ? "hidden" : this.initialDocumentOverflowStyle, !i && requestAnimationFrame(() => {
1772
+ if (t) {
1773
+ this.searchInput?.value?.setFocus(), this.sizeSearchPopover();
1774
+ return;
1775
+ }
1776
+ this.searchAction?.value?.setFocus();
1777
+ });
1778
+ }, this.handleSearchTypeChange = (t) => {
1779
+ this.searchType = t;
1780
+ }, this.searchInput = B(), this.searchAction = B(), this.searchPopover = B(), this.projectTitleInputRef = B(), this.projectButtonRef = B(), 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.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 = H(), this.arcgisNavigationProjectMenuClick = H(), this.arcgisNavigationSignIn = H(), this.arcgisNavigationSignOut = H();
1781
+ }
1782
+ static {
1783
+ 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, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 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 };
1784
+ }
1785
+ static {
1786
+ this.styles = yn;
1787
+ }
1788
+ #e;
1789
+ async loaded() {
1790
+ const { portal: t, messages: i, clientId: n, product: r } = this;
1791
+ this.calculateMeasurements(), this.productInfo = $e({ product: r, clientId: n, portal: t }), this.userLinks = nn({ portal: t, messages: i.user, clientId: n }), this.notifications = await be({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await ke({ portal: t }), this.recentContentLoading = !1;
1792
+ const { apps: o, hiddenApps: s, signInSettings: a, licenses: l, userProperties: d } = await Ii({
1793
+ portal: t,
1794
+ trackViewerEnabled: !this.disableTrackViewer,
1795
+ notebookServerEnabled: !this.disableNotebookServer
1796
+ }), h = await Nt(t);
1797
+ this.infoBanner = h?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = s, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: s }, this.appsLoading = !1, this.links = Li({
1798
+ portal: t,
1799
+ messages: i.links,
1800
+ licenses: l,
1801
+ clientId: n,
1802
+ signInSettings: a
1803
+ }), this.calculateMeasurements();
1804
+ }
1805
+ connectedCallback() {
1806
+ super.connectedCallback(), this.initialDocumentOverflowStyle = document.documentElement.style.overflow, !(typeof ResizeObserver > "u") && (this.#e = new ResizeObserver(() => {
1807
+ requestAnimationFrame(() => {
1808
+ this.screenWidth = window.innerWidth, this.updateBreakpoints(), this.sizeSearchPopover();
1809
+ });
1810
+ }));
1811
+ }
1812
+ firstUpdated() {
1813
+ this.el && this.#e && (this.#e.observe(this.el), this.screenWidth = window.innerWidth);
1814
+ }
1815
+ willUpdate(t) {
1816
+ (t.has("product") || t.has("clientId")) && this.hasUpdated && (this.productInfo = $e({ product: this.product, clientId: this.clientId, portal: this.portal }));
1817
+ }
1818
+ disconnectedCallback() {
1819
+ this.#e?.disconnect(), this.#e = void 0, document.documentElement.style.overflow = this.initialDocumentOverflowStyle, super.disconnectedCallback();
1820
+ }
1821
+ calculateMeasurements() {
1822
+ const { links: t, messages: i, portal: n, product: r, productInfo: o, projectTitle: s } = this;
1823
+ if (n) {
1824
+ const a = vn({
1825
+ portal: n,
1826
+ product: r,
1827
+ productInfo: o,
1828
+ links: t,
1829
+ messages: i.user,
1830
+ projectTitle: s
1831
+ });
1832
+ this.measurements = a, this.updateBreakpoints();
1833
+ }
1834
+ }
1835
+ updateBreakpoints() {
1836
+ const { measurements: t, maxWidth: i } = this;
1837
+ if (t) {
1838
+ const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r = _n({ measurements: t, screenWidth: n });
1839
+ this.showProduct = r.product, this.showNav = r.nav, this.showUser = r.user;
1840
+ }
1841
+ }
1842
+ render() {
1843
+ const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: s, handleAppHide: a, handleAppReorder: l, handleAppSave: d, handleItemSearch: h, handlePlatformClose: b, handleSearch: p, handleToggleSearch: y, handleSearchTypeChange: x, hiddenApps: k, infoBanner: P, links: w, messages: f, navigate: m, notifications: u, notificationsActive: _, notificationDeleteProgress: N, openAccountSwitcher: g, portal: v, portalItem: $, product: A, productInfo: E, productHref: R, projectTitle: S, editedProjectTitle: M, handleProjectTitleSave: V, handleProjectTitleEdit: Fe, handleProjectTitleCancel: We, handleToggleNotifications: he, openProjectTitleEdit: Re, openPlatformMenu: Ve, platformMenuOpen: He, projectTitleEditing: X, projectTitleSaving: qe, projectTitleErrorMessage: Je, projectMenuIcon: Ke, projectMenuSaveIndicator: Qe, projectMenuClick: Xe, projectMenuOptions: Ye, projectTitleInputRef: Ze, projectButtonRef: et, recentContent: tt, recentContentSearchTerm: it, recentContentLoading: nt, userLinks: rt, searchActive: U, searchTerm: ot, searchType: st, searchInput: at, searchAction: ct, searchPopover: lt, showNav: Y, showProduct: ut, showUser: dt, suggestions: pt } = this, ht = v?.user, mt = pe(A) && !w?.length || !this.measurements;
1844
+ return c`<calcite-scrim class=${q({ scrim: !0, "scrim--active": U })}></calcite-scrim><div class="wrapper" style=${Ae({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${P}></arcgis-portal-info-banner>${v?.isPortal && $?.loaded && c`<arcgis-portal-classification-banner .portalItem=${$}></arcgis-portal-classification-banner>` || ""}<header class=${q({ navigation: !0, "navigation--loading": mt })}>${$n({ messages: f?.platform, portal: v, showNav: Y, openPlatformMenu: Ve, handleToggleSearch: y })}${ut && Ft({ navigate: m, portal: v, product: A, productInfo: E, productHref: R, messages: f?.logo, showNav: Y, searchActive: U, projectTitleEditing: X }) || ""}${Hi({ navigate: m, portal: v, portalItem: $, messages: f?.project, projectTitle: S, editedProjectTitle: M, handleProjectTitleSave: V, handleProjectTitleEdit: Fe, openProjectTitleEdit: Re, projectTitleErrorMessage: Je, handleProjectTitleCancel: We, projectTitleEditing: X, projectTitleSaving: qe, projectMenuIcon: Ke, projectMenuSaveIndicator: Qe, projectMenuClick: Xe, projectMenuOptions: Ye, projectTitleInputRef: Ze, projectButtonRef: et })}${Y && Zi({ searchActive: U, navigate: m, portal: v, product: A, messages: f?.links, links: w, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${X || U}><slot name=content-end></slot></div>${Xi({ currentPathname: o, navigate: m, portal: v, product: A, messages: f?.search, searchActive: U, searchType: st, searchTerm: ot, suggestions: pt, handleSearch: p, handleToggleSearch: y, handleSearchTypeChange: x, searchInputRef: at, searchActionRef: ct, searchPopoverRef: lt })}${ht ? c`<div class="border-start fade-in">${Xt({ notifications: u, notificationsActive: _, messages: f?.notifications, handleToggleNotifications: he, handleToggleSearch: y })}${Yt({ notificationsActive: _, notifications: u, navigate: m, portal: v, deleteNotifications: this.deleteNotifications, handleToggleNotifications: he, messages: f?.notifications, notificationDeleteProgress: N })}</div>${en({ portal: v, userLinks: rt, openAccountSwitcher: v?.isPortal ? void 0 : g, signOut: this.signOut, messages: f?.user, textDisabled: dt === "avatar", navigate: m })}` : Yi({ messages: f.user, signIn: this.signIn })}</header>${Bi({ locale: f._t9nLocale, navigate: m, portal: v, product: A, productInfo: E, messages: f?.platform, apps: i, appsLoading: n, hiddenApps: k, appsSearchTerm: r, editingApplications: this.editingApplications, open: He, links: w, recentContent: tt, recentContentSearchTerm: it, recentContentLoading: nt, handlePlatformClose: b, handleAppReorder: l, handleAppEdit: () => this.editingApplications = !0, handleAppsSearch: (ft) => this.appsSearchTerm = ft, handleAppSave: d, handleAppCancel: s, handleAppHide: a, handleItemSearch: h })}${t && c`<arcgis-portal-account-switcher .portal=${v} @arcgisClose=${() => {
1845
+ this.accountSwitcherOpen = !1;
1846
+ }}></arcgis-portal-account-switcher>` || ""}</div>`;
1847
+ }
1848
+ }
1849
+ gt("arcgis-portal-navigation", kn);
1850
+ export {
1851
+ kn as ArcGISPortalNavigation
1852
+ };