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

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