@arcgis/portal-components 5.2.0-next.6 → 5.2.0-next.60

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