@arcgis/portal-components 5.2.0-next.91 → 5.2.0-next.94

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.
@@ -1,10 +1,10 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { g as ee, c as $t } from "../../chunks/runtime.js";
3
- import { safeStyleMap as xe, safeClassMap as te, LitElement as At, createEvent as H } from "@arcgis/lumina";
4
- import { u as kt } from "../../chunks/useT9n.js";
5
- import { nothing as L, html as l, svg as xt, css as St } from "lit";
6
- import { formatDate as It, substitute as K, getLocale as Pt } from "@arcgis/core/intl.js";
7
- import { g as oe, b as Se } from "../../chunks/url.js";
2
+ import { g as te, c as $t } from "../../chunks/runtime.js";
3
+ import { safeStyleMap as xe, safeClassMap as ie, LitElement as kt, createEvent as H } from "@arcgis/lumina";
4
+ import { u as At } from "../../chunks/useT9n.js";
5
+ import { nothing as L, html as c, svg as xt, css as St } from "lit";
6
+ import { formatDate as It, substitute as Q, getLocale as Pt } from "@arcgis/core/intl.js";
7
+ import { g as se, b as Se } from "../../chunks/url.js";
8
8
  import { a as B } from "../../chunks/requests.js";
9
9
  import { repeat as U } from "lit/directives/repeat.js";
10
10
  import { m as Nt } from "../../chunks/icons.js";
@@ -14,8 +14,8 @@ import { c as jt, d as Dt, e as zt } from "../../chunks/user.js";
14
14
  import { i as Ie, a as Gt } from "../../chunks/utils2.js";
15
15
  import { g as Ut } from "../../chunks/request.js";
16
16
  import { g as Pe } from "../../chunks/item.js";
17
- import { keyed as se } from "lit/directives/keyed.js";
18
- import { e as ae, n as Bt, a as ce, f as q, g as Rt } from "../../chunks/portal.js";
17
+ import { keyed as ae } from "lit/directives/keyed.js";
18
+ import { e as ce, n as Bt, a as le, f as q, g as Rt } from "../../chunks/portal.js";
19
19
  import { ref as W, createRef as F } from "lit/directives/ref.js";
20
20
  import { c as Ft, g as Wt } from "../../chunks/dom.js";
21
21
  import { debounce as fe } from "@arcgis/toolkit/function";
@@ -24,15 +24,15 @@ import { t as Ht } from "../../chunks/functionalities.js";
24
24
  import { c as qt } from "../../chunks/string.js";
25
25
  function ge({ portal: e, productInfo: t }) {
26
26
  const { name: i, glyph: n } = t || {};
27
- return l`<img alt class="logo__glyph" src=${n ?? L}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && l`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
27
+ return c`<img alt class="logo__glyph" src=${n ?? L}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
28
28
  }
29
- function Jt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: s, showNav: a, projectTitleEditing: c }) {
30
- const d = s && i === "Online" && !a || i !== "Online" && c && window.innerWidth < 960;
31
- return !i || !t || !o || d ? null : r ? l`<a href=${r ?? L} @click=${(m) => {
29
+ function Jt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: s, showNav: a, projectTitleEditing: l }) {
30
+ const d = s && i === "Online" && !a || i !== "Online" && l && window.innerWidth < 960;
31
+ return !i || !t || !o || d || t?.portalProperties?.topNav?.brandVisibilityEnabled === !1 && !t?.user ? null : r ? c`<a href=${r ?? L} @click=${(m) => {
32
32
  e({ event: m, href: r });
33
- }} class="logo fade-in logo--link">${ge({ portal: t, productInfo: n })}</a>` : l`<div class="logo fade-in">${ge({ portal: t, productInfo: n })}</div>`;
33
+ }} class="logo logo--link">${ge({ portal: t, productInfo: n })}</a>` : c`<div class="logo ">${ge({ portal: t, productInfo: n })}</div>`;
34
34
  }
35
- const Y = {}, T = {
35
+ const Z = {}, T = {
36
36
  Month: 2628e3,
37
37
  Week: 604800,
38
38
  Day: 86400,
@@ -68,9 +68,9 @@ function Te({ locale: e, time: t, t9n: i }) {
68
68
  if (!e || !t)
69
69
  return "";
70
70
  const n = Ce(t);
71
- Y[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
71
+ Z[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
72
72
  const r = Ne(n);
73
- return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${Y[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : Y[e].format(r[0], r[1]) : "";
73
+ return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${Z[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : Z[e].format(r[0], r[1]) : "";
74
74
  }
75
75
  const Kt = {
76
76
  month: "long",
@@ -185,8 +185,8 @@ function ii({
185
185
  if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = ei(e.data.taskTitle)), e.type === "message_received")
186
186
  r.text = e.data.message || "";
187
187
  else if (n.types[e.type]) {
188
- const o = oe({ portal: t, usePortalHostname: !!t.user });
189
- e.data.baseUrl = `${o}/home/`, r.text = K(n.types[e.type], e.data);
188
+ const o = se({ portal: t, usePortalHostname: !!t.user });
189
+ e.data.baseUrl = `${o}/home/`, r.text = Q(n.types[e.type], e.data);
190
190
  }
191
191
  if (r.text)
192
192
  return r;
@@ -204,22 +204,22 @@ async function be({
204
204
  return r && console.error(r), n?.length ? n.map((s) => ii({ notification: s, portal: e, t9n: i, locale: t })).filter((s) => s) : [];
205
205
  }
206
206
  function ni({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
207
- return t ? l`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Oe} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
207
+ return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Oe} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
208
208
  }
209
209
  function J({ icon: e, title: t, description: i }) {
210
- return !t && !i ? null : l`<div class="empty">${e && l`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${xt`<path d=${Nt[e] ?? L} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && l`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && l`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
210
+ return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${xt`<path d=${Nt[e] ?? L} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
211
211
  }
212
212
  function ri({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: s, notificationDeleteProgress: a }) {
213
- return i ? l`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => s(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? l`<div class="notifications notifications--full">${typeof a == "number" && l`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${a}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (c) => c.id, (c) => l`<calcite-list-item closable @calciteListItemClose=${async () => await t([c.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${c.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${c.text ?? ""} @click=${(d) => {
213
+ return i ? c`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => s(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof a == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${a}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
214
214
  const m = d.target, g = m.href;
215
215
  if (m.nodeName === "CALCITE-LINK" && g) {
216
- const p = `${oe({ portal: r, usePortalHostname: !!r.user })}/home/`;
216
+ const p = `${se({ portal: r, usePortalHostname: !!r.user })}/home/`;
217
217
  n({ event: d, href: g, relativePath: g.replace(p, "") });
218
218
  }
219
- }}></div><div class="notification__date">${c.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async (c) => {
220
- const d = c.currentTarget?.parentElement;
219
+ }}></div><div class="notification__date">${l.date}</div></div></calcite-list-item>`)}</calcite-list></div><calcite-button class="notifications__dismiss" scale=l appearance=transparent @click=${async (l) => {
220
+ const d = l.currentTarget?.parentElement;
221
221
  await t(e?.map(({ id: m }) => m)), d.open = !1;
222
- }}>${i.dismissAllLabel}</calcite-button>` : l`<div class="notifications">${J({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
222
+ }}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${J({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
223
223
  }
224
224
  function oi(e) {
225
225
  return e.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
@@ -445,10 +445,10 @@ function $i(e, t) {
445
445
  ], r = (e?.privileges || []).some((s) => i.includes(s)), o = S("velocity", t);
446
446
  return r && o;
447
447
  }
448
- function Ai(e) {
448
+ function ki(e) {
449
449
  return S("HubforArcGIS", e);
450
450
  }
451
- function ki(e, t) {
451
+ function Ai(e, t) {
452
452
  return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && S("arcgisWebApps", t);
453
453
  }
454
454
  function xi(e) {
@@ -477,7 +477,7 @@ function Pi(e, t, i, n) {
477
477
  hasAccess: () => S("HubforArcGIS", n)
478
478
  },
479
479
  "ArcGIS Enterprise Sites": {
480
- hasAccess: () => Ai(n)
480
+ hasAccess: () => ki(n)
481
481
  },
482
482
  "ArcGIS QuickCapture Web Designer": {
483
483
  hasAccess: () => S("arcgisWebApps", n)
@@ -486,7 +486,7 @@ function Pi(e, t, i, n) {
486
486
  hasAccess: () => S("dashboards", n)
487
487
  },
488
488
  "Map Viewer": {
489
- hasAccess: () => ki(e, n)
489
+ hasAccess: () => Ai(e, n)
490
490
  },
491
491
  "Map Viewer Classic": {
492
492
  hasAccess: () => S("arcgisWebApps", n)
@@ -548,11 +548,11 @@ function Ni(e) {
548
548
  };
549
549
  return e.isPortal && (t = { ...t, arcgisonline: 1, arcgisUrban: 1, arcgisinstantapps: 1 }), t;
550
550
  }
551
- function ie(e) {
551
+ function ne(e) {
552
552
  return e.sourceJSON?.subscriptionInfo?.options?.includes("Developer");
553
553
  }
554
554
  function V(e) {
555
- return ee(`assets/portal-navigation/apps/${e || ""}`);
555
+ return te(`assets/portal-navigation/apps/${e || ""}`);
556
556
  }
557
557
  function Le(e, t, i) {
558
558
  return e.icon ? `${t.restUrl}/portals/self/resources/${e.icon}?token=${i}` : `${t.restUrl}/content/items/${e.itemId}/resources/${e.image || e.properties?.appSwitcher?.image}?token=${i}`;
@@ -597,21 +597,21 @@ async function Mi({
597
597
  provisionedListings: o,
598
598
  orgCapabilities: s,
599
599
  trackViewerEnabled: a,
600
- notebookServerEnabled: c,
600
+ notebookServerEnabled: l,
601
601
  willQueryForItems: d,
602
602
  approvedApps: m
603
603
  }) {
604
- const g = {}, p = {}, _ = Pi(i, c, a, n), $ = Ni(i), w = [], I = e.length;
604
+ const g = {}, p = {}, _ = Pi(i, l, a, n), $ = Ni(i), w = [], I = e.length;
605
605
  for (let h = 0; h < I; h++) {
606
606
  const u = e[h], v = u.itemId || u.title;
607
607
  let N = !0;
608
608
  const y = !u.serverFunction || t?.some((x) => (x.serverFunction?.split(",") || []).includes(u.serverFunction)), b = r?.some(
609
609
  (x) => u.itemId && u.itemId === x.itemid || u.title && u.title === x.title
610
610
  );
611
- if (g[v] = 1, p[v] = u, b || ie(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
611
+ if (g[v] = 1, p[v] = u, b || ne(i) && !u.showInLocationPlatform || i.sourceJSON?.portalDeploymentType === "ArcGISEnterpriseOnKubernetes" && u.supportsKubernetes === !1)
612
612
  continue;
613
- const k = u.title;
614
- if (_[k] && !_[k]?.hasAccess())
613
+ const A = u.title;
614
+ if (_[A] && !_[A]?.hasAccess())
615
615
  continue;
616
616
  const C = i.sourceJSON?.subscriptionInfo;
617
617
  if (u.subscriptionType) {
@@ -622,7 +622,7 @@ async function Mi({
622
622
  s?.length && s.some((j) => u.orgCapabilities?.includes(j.id)) && (p[v].canAccess = !0, w.push(G(u, v, i)));
623
623
  continue;
624
624
  }
625
- if (!u.privileges?.length && !u.isLicensed && y && (u.label !== "ArcGIS Location Platform" || ie(i))) {
625
+ if (!u.privileges?.length && !u.isLicensed && y && (u.label !== "ArcGIS Location Platform" || ne(i))) {
626
626
  p[v].canAccess = !0, w.push(G(u, v, i));
627
627
  continue;
628
628
  }
@@ -672,7 +672,7 @@ async function Mi({
672
672
  appDictionary: p
673
673
  };
674
674
  }
675
- function Z(e, t) {
675
+ function ee(e, t) {
676
676
  return e.filter((i) => !t?.some(
677
677
  (r) => i.itemId && i.itemId === r.itemid || i.title && i.title === r.title
678
678
  ));
@@ -694,7 +694,7 @@ async function Oi({
694
694
  }) {
695
695
  if (!e?.id || !e.user)
696
696
  return { apps: [], hiddenApps: {} };
697
- const n = vi(), [r, o, s, a, c, d, m] = await Promise.all([
697
+ const n = vi(), [r, o, s, a, l, d, m] = await Promise.all([
698
698
  mi(e),
699
699
  Dt(e),
700
700
  zt(e),
@@ -715,7 +715,7 @@ async function Oi({
715
715
  itemId: y.itemId,
716
716
  clientId: y.clientId
717
717
  });
718
- }), c?.forEach((y) => {
718
+ }), l?.forEach((y) => {
719
719
  const b = y.id?.toLowerCase();
720
720
  b && (w[b] = {
721
721
  valid: !0,
@@ -728,7 +728,7 @@ async function Oi({
728
728
  portal: e,
729
729
  blockedApps: I,
730
730
  provisionedListings: o,
731
- orgCapabilities: c,
731
+ orgCapabilities: l,
732
732
  licenses: w,
733
733
  trackViewerEnabled: t,
734
734
  notebookServerEnabled: i,
@@ -738,25 +738,25 @@ async function Oi({
738
738
  p?.appLauncher && (p?.appLauncher.primary && _e(p?.appLauncher.primary, e), p?.appLauncher.secondary && _e(p?.appLauncher.secondary, e));
739
739
  let h = [], u = [];
740
740
  if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
741
- h = P.slice().sort((y, b) => (y.label || "") < (b.label || "") ? -1 : 1), h = Z(h, I), u = [];
741
+ h = P.slice().sort((y, b) => (y.label || "") < (b.label || "") ? -1 : 1), h = ee(h, I), u = [];
742
742
  else {
743
743
  const { result: y } = await fi($, n, e);
744
- y?.results?.length && y.results.forEach((A) => {
745
- const k = f[A.id];
746
- k.canAccess = !0, k.hasChanged = k.url !== A.url ? !!A.url : !1;
744
+ y?.results?.length && y.results.forEach((k) => {
745
+ const A = f[k.id];
746
+ A.canAccess = !0, A.hasChanged = A.url !== k.url ? !!k.url : !1;
747
747
  });
748
748
  const b = { ...f };
749
- p?.appLauncher?.primary?.forEach((A) => {
750
- A.label === "Map Viewer" && (A.uid = "Map Viewer");
749
+ p?.appLauncher?.primary?.forEach((k) => {
750
+ k.label === "Map Viewer" && (k.uid = "Map Viewer");
751
751
  }), h = p?.appLauncher.primary.reduce(
752
- (A, k) => we({ apps: A, app: k, appDictionary: f, newAppDictionary: b, portal: e }),
752
+ (k, A) => we({ apps: k, app: A, appDictionary: f, newAppDictionary: b, portal: e }),
753
753
  []
754
754
  ) || [], u = p?.appLauncher.secondary.reduce(
755
- (A, k) => we({ apps: A, app: k, appDictionary: f, newAppDictionary: b, portal: e }),
755
+ (k, A) => we({ apps: k, app: A, appDictionary: f, newAppDictionary: b, portal: e }),
756
756
  []
757
- ) || [], h = Z(h, I), u = Z(u, I), ie(e) && (h = h.filter((A) => A.canAccess), u = u.filter((A) => A.canAccess));
758
- for (const A of Object.keys(b))
759
- b[A].canAccess && (b[A].isNew = !0, f[A] = b[A], h.push(b[A]));
757
+ ) || [], h = ee(h, I), u = ee(u, I), ne(e) && (h = h.filter((k) => k.canAccess), u = u.filter((k) => k.canAccess));
758
+ for (const k of Object.keys(b))
759
+ b[k].canAccess && (b[k].isNew = !0, f[k] = b[k], h.push(b[k]));
760
760
  }
761
761
  const v = [...h, ...u], N = u.reduce((y, b) => (b.itemId && (y[b.itemId] = !0), y), {});
762
762
  return {
@@ -778,8 +778,8 @@ async function Ei({
778
778
  }) {
779
779
  const r = e.reduce(
780
780
  (s, a) => {
781
- const c = t[a.itemId];
782
- return s[c ? "secondary" : "primary"].push({
781
+ const l = t[a.itemId];
782
+ return s[l ? "secondary" : "primary"].push({
783
783
  label: a.label,
784
784
  uid: a.itemId || a.title
785
785
  }), s;
@@ -792,27 +792,27 @@ function je({ app: e }) {
792
792
  if (!e)
793
793
  return null;
794
794
  if (!e.canAccess)
795
- return l`<span class="list-item__logo list-item__logo-empty"></span>`;
795
+ return c`<span class="list-item__logo list-item__logo-empty"></span>`;
796
796
  const t = !e.image && e.abbr;
797
- return l`${t && l`<span class="list-item__logo">${e.placeHolderIcon && l`<img src=${ve(e.placeHolderIcon) ?? L} class="list-item__logo-bg" alt>` || ""}<span style=${xe({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && l`<img src=${ve(e.image) ?? L} class="list-item__logo" alt>` || ""}`;
797
+ return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${ve(e.placeHolderIcon) ?? L} class="list-item__logo-bg" alt>` || ""}<span style=${xe({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${ve(e.image) ?? L} class="list-item__logo" alt>` || ""}`;
798
798
  }
799
799
  function ji({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
800
800
  if (!e || !i)
801
801
  return null;
802
- const o = Li(e, t), { title: s, itemId: a, label: c } = e;
803
- return l`<calcite-list-item .label=${s || c} class=${te(o ? "app--hidden" : "")}><span slot=content-start>${je({ app: e })}</span>${e.canAccess ? l`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => a && n(a, !o)}></calcite-action>` : l`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => a && r(a)}></calcite-action>`}</calcite-list-item>`;
802
+ const o = Li(e, t), { title: s, itemId: a, label: l } = e;
803
+ return c`<calcite-list-item .label=${s || l} class=${ie(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=${() => a && n(a, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => a && r(a)}></calcite-action>`}</calcite-list-item>`;
804
804
  }
805
805
  function Di({ app: e, messages: t }) {
806
806
  if (!e || !t)
807
807
  return null;
808
808
  const { title: i, itemId: n, label: r, url: o, isNew: s } = e, a = t?.descriptions?.[i] || t?.descriptions?.[r];
809
- return l`<li class="list-item"><a class="list-item__link" href=${o ?? L} target=_blank id=${n ?? L} aria-describedby=${`${n}--tooltip`}>${l`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${s && l`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${a && l`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${a}</calcite-tooltip>` || ""}</li>`;
809
+ return c`<li class="list-item"><a class="list-item__link" href=${o ?? L} target=_blank id=${n ?? L} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${s && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${a && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${a}</calcite-tooltip>` || ""}</li>`;
810
810
  }
811
- function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: s, handleAppSave: a, handleAppHide: c, handleAppDelete: d, handleAppCancel: m, handleAppEdit: g, editingApplications: p, portal: _ }) {
811
+ function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: s, handleAppSave: a, handleAppHide: l, handleAppDelete: d, handleAppCancel: m, handleAppEdit: g, editingApplications: p, portal: _ }) {
812
812
  if (!e || !r)
813
813
  return null;
814
814
  const $ = i?.length > 0, w = (e || []).filter((f) => f.itemId && (!n?.[f.itemId] || $) && bi(i, f)), I = $ ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable, P = $ ? M(_) ? r.noAppsDescriptionPublic : r.noAppResultsDescriptionOrg : r.noAppsAvailable;
815
- return p ? l`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
815
+ return p ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
816
816
  m();
817
817
  }}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
818
818
  a();
@@ -820,26 +820,26 @@ function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, message
820
820
  const { newIndex: h, oldIndex: u } = f.detail;
821
821
  s({ newIndex: h, oldIndex: u });
822
822
  }} .loading=${t}>${U(e, (f) => f.itemId, (f) => ji({ app: f, hiddenApps: n, messages: r, toggleAppVisibility: (h, u) => {
823
- c({ app: h, hidden: u });
824
- }, handleAppDelete: d }))}</calcite-list>` : l`<div class="list__header"><calcite-input type=search icon .placeholder=${r.searchMyApps} .value=${i} scale=m class="list__search" @calciteInputInput=${(f) => {
823
+ l({ app: h, hidden: u });
824
+ }, 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) => {
825
825
  o(f.currentTarget.value);
826
- }}></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 ? l`<ul class="list">${U(w, (f) => f.itemId, (f) => Di({ app: f, messages: r }))}</ul>` : J({ title: I, description: P, icon: i ? "search" : "apps" })}`;
826
+ }}></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>` : J({ title: I, description: P, icon: i ? "search" : "apps" })}`;
827
827
  }
828
- const ye = "portalAppClientId", le = {
828
+ const ye = "portalAppClientId", ue = {
829
829
  GeoanalyticsEngine: "geoanalyticsengine",
830
830
  GeoanalyticsFabric: "geoanalyticsfabric",
831
831
  IndoorsOnline: "indoorsonline"
832
832
  };
833
- function ue(e) {
834
- return le.GeoanalyticsEngine === e;
835
- }
836
833
  function de(e) {
837
- return le.GeoanalyticsFabric === e;
834
+ return ue.GeoanalyticsEngine === e;
835
+ }
836
+ function pe(e) {
837
+ return ue.GeoanalyticsFabric === e;
838
838
  }
839
839
  function De(e) {
840
- return le.IndoorsOnline === e;
840
+ return ue.IndoorsOnline === e;
841
841
  }
842
- function pe(e) {
842
+ function K(e) {
843
843
  return ["Location Platform", "GeoAnalytics Fabric", "GeoAnalytics Engine", "Online", "Enterprise"].includes(e);
844
844
  }
845
845
  function Gi({
@@ -860,14 +860,14 @@ function Gi({
860
860
  portal: e,
861
861
  licenses: i,
862
862
  subscriptionInfo: o
863
- }), c = Vi({
863
+ }), l = Vi({
864
864
  messages: t,
865
865
  portal: e,
866
866
  clientId: n,
867
867
  signInSettings: r,
868
868
  navLinkDictionary: a
869
869
  });
870
- return Ui({ links: c, portal: e });
870
+ return Ui({ links: l, portal: e });
871
871
  }
872
872
  function $e(e, t) {
873
873
  return t ? e.configName ? t.indexOf(e.configName) : t.length : 0;
@@ -899,7 +899,7 @@ function ze({
899
899
  }) {
900
900
  const n = e.user, r = De(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), s = e.portalProperties, {
901
901
  gallery: a = "all",
902
- groups: c = "all",
902
+ groups: l = "all",
903
903
  map: d = "all",
904
904
  notebook: m = "notebookCreators",
905
905
  scene: g = "all"
@@ -915,7 +915,7 @@ function ze({
915
915
  ...a === "all" ? ["gallery"] : [],
916
916
  ...d === "all" ? ["map"] : [],
917
917
  ...g === "all" ? ["scene"] : [],
918
- ...c === "all" ? ["groups"] : [],
918
+ ...l === "all" ? ["groups"] : [],
919
919
  ...e.isPortal ? ["help"] : []
920
920
  ];
921
921
  }
@@ -927,7 +927,7 @@ function ze({
927
927
  ...(g === "all" || g === "members" && _ || g === "sceneCreators" && me(n)) && !r ? ["scene"] : [],
928
928
  ...!o && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
929
929
  (!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (m === "members" && _ || m === "notebookCreators" && Ct(n)) && !r ? ["notebook"] : [],
930
- ...(c === "all" || c === "members" && _) && !r ? ["groups"] : [],
930
+ ...(l === "all" || l === "members" && _) && !r ? ["groups"] : [],
931
931
  ..._ && !r ? ["myContent", "organization"] : []
932
932
  ], p;
933
933
  }
@@ -943,14 +943,14 @@ function Fi({
943
943
  return e.forEach((r) => {
944
944
  const o = t[r];
945
945
  if (o && (!("show" in o) || o.show)) {
946
- const { href: s, newTab: a, icon: c, relativePath: d, configName: m } = o;
946
+ const { href: s, newTab: a, icon: l, relativePath: d, configName: m } = o;
947
947
  n.push({
948
948
  label: i[r],
949
949
  href: s,
950
950
  newTab: a,
951
951
  relativePath: d,
952
952
  configName: m,
953
- icon: c
953
+ icon: l
954
954
  });
955
955
  }
956
956
  }), n;
@@ -966,7 +966,7 @@ function Wi({
966
966
  pricing: { label: e.pricing, href: `${i}../features/plans/pricing.html`, icon: "credit-card" },
967
967
  map: { label: e.map, href: `${i}apps/mapviewer/index.html`, icon: "map", configName: "map" },
968
968
  scene: { label: e.scene, href: `${i}webscene/viewer.html`, icon: "globe", configName: "scene" },
969
- help: { label: e.help, href: ae(t), newTab: !0, icon: "headset" },
969
+ help: { label: e.help, href: ce(t), newTab: !0, icon: "headset" },
970
970
  home: { label: e.home, href: `${i}index.html`, relativePath: "index.html", icon: "home" },
971
971
  gallery: {
972
972
  label: e.gallery,
@@ -992,8 +992,8 @@ function Vi({
992
992
  signInSettings: n,
993
993
  navLinkDictionary: r
994
994
  }) {
995
- const o = ue(i), s = ze({ portal: t, clientId: i, signInSettings: n }), a = `${E(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
996
- return o || de(i) ? [
995
+ const o = de(i), s = ze({ portal: t, clientId: i, signInSettings: n }), a = `${E(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
996
+ return o || pe(i) ? [
997
997
  {
998
998
  // TODO: active calculations in the component need to account for hash for these options
999
999
  href: `${a}#subscription`,
@@ -1046,7 +1046,7 @@ function Hi({
1046
1046
  configName: "map"
1047
1047
  },
1048
1048
  help: {
1049
- href: ae(e),
1049
+ href: ce(e),
1050
1050
  newTab: !0
1051
1051
  },
1052
1052
  gallery: {
@@ -1091,22 +1091,22 @@ function Hi({
1091
1091
  function qi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
1092
1092
  if (!t || !i || !t.modified)
1093
1093
  return null;
1094
- const o = t.modified, s = { lessThanOneMinute: i.lessThanOneMinute }, a = Ne(Ce(o)), c = a?.[1] === "year" || a?.[1] === "month" ? Xt({ locale: r, time: o }, a?.[1] === "year") : Te({ locale: r, time: o, t9n: s }), d = `item.html?id=${t.id}`, m = `${E(e)}${d}}`;
1095
- return se(t.id, l`<li class="list-item"><a class="list-item__link" href=${m ?? L} @click=${(g) => {
1094
+ const o = t.modified, s = { lessThanOneMinute: i.lessThanOneMinute }, a = Ne(Ce(o)), l = a?.[1] === "year" || a?.[1] === "month" ? Xt({ locale: r, time: o }, a?.[1] === "year") : Te({ locale: r, time: o, t9n: s }), d = `item.html?id=${t.id}`, m = `${E(e)}${d}}`;
1095
+ return ae(t.id, c`<li class="list-item"><a class="list-item__link" href=${m ?? L} @click=${(g) => {
1096
1096
  n({ event: g, href: m, relativePath: d });
1097
- }}>${l`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${K(i.lastUpdated, { date: c })}</span></span></span>`}</a></li>`);
1097
+ }}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${Q(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
1098
1098
  }
1099
- function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: s, appsSearchTerm: a, handlePlatformClose: c, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: $, handleAppEdit: w, handleItemSearch: I, editingApplications: P, recentContent: f, recentContentLoading: h, recentContentSearchTerm: u, product: v, platformInfo: N, links: y, messages: b }) {
1099
+ function Ji({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: s, appsSearchTerm: a, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: $, handleAppEdit: w, handleItemSearch: I, editingApplications: P, recentContent: f, recentContentLoading: h, recentContentSearchTerm: u, product: v, platformInfo: N, links: y, messages: b }) {
1100
1100
  if (!v || !i || !b)
1101
1101
  return null;
1102
- const { name: A, icon: k } = N || {};
1103
- return l`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${c}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${k ?? L} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${A}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${c}></calcite-action></div><div class="platform__container"><div class="platform__tiles">${y.filter(({ icon: C }) => C).map(({ label: C, href: O, icon: x, relativePath: j }) => l`<calcite-tile .icon=${x} .description=${C} .href=${O} alignment=center scale=s @keydown=${(D) => {
1102
+ const { name: k, icon: A } = N || {};
1103
+ 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=${A ?? L} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${k}</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">${y.filter(({ icon: C }) => C).map(({ label: C, href: O, icon: x, relativePath: j }) => c`<calcite-tile .icon=${x} .description=${C} .href=${O} alignment=center scale=s @keydown=${(D) => {
1104
1104
  (D.key === "Enter" || D.key === " ") && t({ event: D, href: O, relativePath: j });
1105
1105
  }} @click=${(D) => {
1106
1106
  t({ event: D, href: O, relativePath: j });
1107
- }}></calcite-tile>`)}</div>${i?.user && l`<calcite-tabs layout=center class="platform__tabs"><calcite-tab-nav slot=title-group>${!M(i) && l`<calcite-tab-title selected>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title>${b.recentContent}</calcite-tab-title></calcite-tab-nav>${!M(i) && l`<calcite-tab selected class="platform__tab">${o && l`<calcite-scrim loading></calcite-scrim>` || ""}${zi({ apps: r, appsLoading: o, appsSearchTerm: a, hiddenApps: s, messages: b, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: $, handleAppEdit: w, editingApplications: P, portal: i })}</calcite-tab>` || ""}<calcite-tab class="platform__tab"><div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${u} scale=m class="list__search" @calciteInputInput=${(C) => I(C.target.value)}></calcite-input></div>${h && !o && l`<calcite-scrim loading></calcite-scrim>` || ""}<div class="list__container">${f?.length > 0 || h ? l`<ul class="list">${U(f, (C) => C.id, (C) => qi({ portal: i, messages: b, navigate: t, item: C, locale: e }))}</ul>` : u?.length ? J({ title: K(b.noAppResults, { term: u }), description: b.recentContentNoResultsDescription, icon: "search" }) : J({ title: b.noContent, description: b.noContentDescription, icon: "clock" })}</div></calcite-tab></calcite-tabs>` || ""}</div></calcite-panel></calcite-sheet>`;
1107
+ }}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center class="platform__tabs"><calcite-tab-nav slot=title-group>${!M(i) && c`<calcite-tab-title selected>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title>${b.recentContent}</calcite-tab-title></calcite-tab-nav>${!M(i) && c`<calcite-tab selected class="platform__tab">${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${zi({ apps: r, appsLoading: o, appsSearchTerm: a, hiddenApps: s, messages: b, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: $, handleAppEdit: w, editingApplications: P, portal: i })}</calcite-tab>` || ""}<calcite-tab class="platform__tab"><div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${u} scale=m class="list__search" @calciteInputInput=${(C) => I(C.target.value)}></calcite-input></div>${h && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}<div class="list__container">${f?.length > 0 || h ? c`<ul class="list">${U(f, (C) => C.id, (C) => qi({ portal: i, messages: b, navigate: t, item: C, locale: e }))}</ul>` : u?.length ? J({ title: Q(b.noAppResults, { term: u }), description: b.recentContentNoResultsDescription, icon: "search" }) : J({ title: b.noContent, description: b.noContentDescription, icon: "clock" })}</div></calcite-tab></calcite-tabs>` || ""}</div></calcite-panel></calcite-sheet>`;
1108
1108
  }
1109
- const ne = [
1109
+ const re = [
1110
1110
  "new",
1111
1111
  "open",
1112
1112
  "rename",
@@ -1120,13 +1120,13 @@ const ne = [
1120
1120
  async function Ki(e) {
1121
1121
  return await Promise.resolve({ status: "success" });
1122
1122
  }
1123
- function re(e) {
1124
- return ne.includes(e.id);
1123
+ function oe(e) {
1124
+ return re.includes(e.id);
1125
1125
  }
1126
1126
  function Qi(e) {
1127
1127
  return (e || [])?.toSorted((t, i) => {
1128
- const n = re(t), r = re(i);
1129
- return n && !r ? -1 : r && !n ? 1 : r && n ? ne.indexOf(t.id) - ne.indexOf(i.id) : -1;
1128
+ const n = oe(t), r = oe(i);
1129
+ return n && !r ? -1 : r && !n ? 1 : r && n ? re.indexOf(t.id) - re.indexOf(i.id) : -1;
1130
1130
  });
1131
1131
  }
1132
1132
  function Xi(e, t) {
@@ -1151,12 +1151,12 @@ function Xi(e, t) {
1151
1151
  details: { text: t.itemDetails, group: "details", external: !0 }
1152
1152
  }, r = Qi(e), o = [];
1153
1153
  return r.forEach((s) => {
1154
- if (!re(s)) {
1154
+ if (!oe(s)) {
1155
1155
  o.push(s);
1156
1156
  return;
1157
1157
  }
1158
- const { text: c, external: d, group: m } = n[s.id];
1159
- i[m].push({ text: c, external: d, ...s });
1158
+ const { text: l, external: d, group: m } = n[s.id];
1159
+ i[m].push({ text: l, external: d, ...s });
1160
1160
  }), o.forEach((s) => {
1161
1161
  const a = s.group || "custom";
1162
1162
  i[a].push(s);
@@ -1165,26 +1165,26 @@ function Xi(e, t) {
1165
1165
  function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: s }) {
1166
1166
  if (!t || !n || !i || i.id === "details" && !r)
1167
1167
  return null;
1168
- const { external: a, id: c, text: d } = i, m = `${E(t)}item.html?id=${r?.id}`;
1169
- return se(`${c}${d}`, l`<calcite-dropdown-item .iconEnd=${a ? "launch" : void 0} .href=${c === "details" ? m : i.href} .target=${a ? "_blank" : void 0} @calciteDropdownItemSelect=${(g) => {
1170
- if (c === "rename") {
1168
+ const { external: a, id: l, text: d } = i, m = `${E(t)}item.html?id=${r?.id}`;
1169
+ return ae(`${l}${d}`, c`<calcite-dropdown-item .iconEnd=${a ? "launch" : void 0} .href=${l === "details" ? m : i.href} .target=${a ? "_blank" : void 0} @calciteDropdownItemSelect=${(g) => {
1170
+ if (l === "rename") {
1171
1171
  o?.();
1172
1172
  return;
1173
1173
  }
1174
- c === "details" && e({ event: g, href: m }), s?.({ type: c });
1175
- }}>${d}${c === "save" && l`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
1174
+ l === "details" && e({ event: g, href: m }), s?.({ type: l });
1175
+ }}>${d}${l === "save" && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
1176
1176
  }
1177
- function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: s, openProjectTitleEdit: a, portalItem: c, projectTitleEditing: d, projectTitleSaving: m, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: _, projectMenuClick: $, projectMenuOptions: w, projectTitleInputRef: I, projectButtonRef: P, messages: f }) {
1177
+ function Zi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: s, openProjectTitleEdit: a, portalItem: l, projectTitleEditing: d, projectTitleSaving: m, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: _, projectMenuClick: $, projectMenuOptions: w, projectTitleInputRef: I, projectButtonRef: P, messages: f }) {
1178
1178
  if (!t || !f || !w?.length && !i)
1179
1179
  return null;
1180
1180
  if (!w?.length)
1181
- return l`<div class="project__title">${p && l`<calcite-icon .icon=${p} scale=s class="project__menu-icon"></calcite-icon>` || ""}<h1 class="project__title__header">${i}</h1>${_ && l`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}</div>`;
1181
+ 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>`;
1182
1182
  const h = Xi(w, f), u = !!g;
1183
- return d ? l`<form class="rename" @submit=${async (v) => {
1183
+ return d ? c`<form class="rename" @submit=${async (v) => {
1184
1184
  v.preventDefault(), await r?.(n);
1185
1185
  }} @keydown=${(v) => {
1186
1186
  v.key === "Escape" && s?.();
1187
- }}><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 && l`<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=${() => s?.()}></calcite-action></form>` : l`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(P)}>${p && l`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${_ && l`<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, N]) => N.length), ([v, N]) => v, ([v, N]) => l`<calcite-dropdown-group selection-mode=none>${N.map((y) => Yi({ menuItem: y, navigate: e, portal: t, messages: f, portalItem: c, openProjectTitleEdit: a, projectMenuClick: $ }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
1187
+ }}><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=${() => s?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(P)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${_ && 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, N]) => N.length), ([v, N]) => v, ([v, N]) => c`<calcite-dropdown-group selection-mode=none>${N.map((y) => Yi({ menuItem: y, navigate: e, portal: t, messages: f, portalItem: l, openProjectTitleEdit: a, projectMenuClick: $ }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
1188
1188
  }
1189
1189
  function en(e) {
1190
1190
  return ["Location Platform", "Online", "Enterprise"].includes(e);
@@ -1200,50 +1200,50 @@ function Ge({
1200
1200
  function tn({ portal: e, item: t, messages: i, navigate: n }) {
1201
1201
  if (!t || !i)
1202
1202
  return null;
1203
- const r = K(i.by, {
1203
+ const r = Q(i.by, {
1204
1204
  itemType: Gt(t),
1205
1205
  owner: t.owner
1206
1206
  }), o = `item.html?id=${t.id}`, s = `${E(e)}${o}`;
1207
- return se(t.id, l`<li class="list-item"><a class="list-item__link" href=${s ?? L} @click=${(a) => n({ event: a, href: s, relativePath: o })}>${l`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular list-item__title--large">${t.title}</span><span class="list-item__subtitle list-item__subtitle--large">${r}</span></span></span>`}</a></li>`);
1207
+ return ae(t.id, c`<li class="list-item"><a class="list-item__link" href=${s ?? L} @click=${(a) => n({ event: a, href: s, relativePath: o })}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular list-item__title--large">${t.title}</span><span class="list-item__subtitle list-item__subtitle--large">${r}</span></span></span>`}</a></li>`);
1208
1208
  }
1209
1209
  function nn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
1210
1210
  if (!i || !e || !o)
1211
1211
  return null;
1212
1212
  if (!t)
1213
- return l`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
1214
- const s = Ge({ portal: e, searchType: r, searchTerm: o }), a = `/${s}`, c = `${E(e)}${s}`;
1215
- return l`<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=${c} @click=${(d) => {
1216
- n({ href: c, event: d, relativePath: a });
1213
+ return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
1214
+ const s = Ge({ portal: e, searchType: r, searchTerm: o }), a = `/${s}`, l = `${E(e)}${s}`;
1215
+ 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) => {
1216
+ n({ href: l, event: d, relativePath: a });
1217
1217
  }}>${i.viewAll}</calcite-button></div>`;
1218
1218
  }
1219
1219
  function rn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
1220
1220
  if (!t || !e?.sourceJSON?.vectorSearchEnabled)
1221
1221
  return null;
1222
1222
  const r = i === "keyword", o = t.searchType;
1223
- return l`<calcite-chip .label=${o.label} .icon=${r ? "text" : "effects"} id=search-type-toggle appearance=solid kind=neutral><span>${r ? o.keywordTitle : o.semanticTitle}</span><calcite-icon icon=chevron-down scale=s class="suggestions__search-type__icon" aria-hidden=true></calcite-icon></calcite-chip><calcite-popover pointer-disabled .label=${t.searchType.label} reference-element=search-type-toggle placement=bottom-end class="suggestions__search-type"><div class="esri-header-search-type-popover-contents"><calcite-list .label=${t.searchType.label} interaction-mode=interactive display-mode=flat scale=m selection-mode=none><calcite-list-item @calciteListItemSelect=${() => n("keyword")} icon-start=text value=keyword .label=${o.keywordTitle} .description=${o.keywordDescription}></calcite-list-item><calcite-list-item @calciteListItemSelect=${() => n("vector")} icon-start=effects value=semantic .label=${o.semanticTitle} .description=${o.semanticDescription}></calcite-list-item></calcite-list></div></calcite-popover>`;
1223
+ 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>`;
1224
1224
  }
1225
- function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: s, searchTerm: a, suggestions: c, searchInputRef: d, searchActionRef: m, searchPopoverRef: g, handleSearch: p, handleToggleSearch: _, handleSearchTypeChange: $ }) {
1225
+ function on({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: s, searchTerm: a, suggestions: l, searchInputRef: d, searchActionRef: m, searchPopoverRef: g, handleSearch: p, handleToggleSearch: _, handleSearchTypeChange: $ }) {
1226
1226
  if (!en(i) || !r || !n || e?.includes("search.html"))
1227
1227
  return null;
1228
1228
  const w = Ge({ portal: n, searchType: s, searchTerm: a }), I = `/${w}`, P = `${E(n)}${w}`;
1229
- return o ? l`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${s === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(f) => p(f.target.value)} @keydown=${(f) => {
1229
+ return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${s === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(f) => p(f.target.value)} @keydown=${(f) => {
1230
1230
  f.key === "Enter" && (t({ href: P, event: f, relativePath: I }), f.defaultPrevented || (window.location.href = P)), f.key === "Escape" && _(!1);
1231
- }} ${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 && !!a} 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: s, handleSearchTypeChange: $ })}</div><div class="suggestions__results">${nn({ portal: n, suggestions: c, navigate: t, messages: r, searchType: s, searchTerm: a })}</div></calcite-popover></div>` : l`<calcite-action icon=search scale=l text=search class="search__action fade-in" @click=${() => _(!0)} ${W(m)}></calcite-action>`;
1231
+ }} ${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 && !!a} 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: s, handleSearchTypeChange: $ })}</div><div class="suggestions__results">${nn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: s, searchTerm: a })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => _(!0)} ${W(m)}></calcite-action>`;
1232
1232
  }
1233
1233
  function sn({ signIn: e, messages: t }) {
1234
- return l`<calcite-menu slot=user .label=${t?.account || ""} class="border-start fade-in"><calcite-menu-item .label=${t?.signIn || ""} text-enabled .text=${t?.signIn || ""} @calciteMenuItemSelect=${() => e()}></calcite-menu-item></calcite-menu>`;
1234
+ 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>`;
1235
1235
  }
1236
1236
  function an({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: s }) {
1237
- return !i || !t || !r || !pe(i) || !n || s ? null : l`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: a }) => a, ({ label: a, href: c, relativePath: d, configName: m }) => l`<calcite-menu-item .text=${a} text-enabled .label=${a} .href=${c} .active=${Ri(c, o, m)} @click=${(g) => e({ event: g, href: c, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
1237
+ return K(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((a) => c`<span class="skeleton-line" aria-hidden>${a}</span>`)}</div>` : !i || !t || !r || !K(i) || !n || s ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: a }) => a, ({ label: a, href: l, relativePath: d, configName: m }) => c`<calcite-menu-item .text=${a} text-enabled .label=${a} .href=${l} .active=${Ri(l, o, m)} @click=${(g) => e({ event: g, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
1238
1238
  }
1239
1239
  function cn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: s }) {
1240
1240
  const a = r?.user;
1241
- return !a || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : l`<div class="user fade-in"><calcite-dropdown .width=${s ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${a} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!s && l`<span class="user__button__text"><h2 class="user__button__full user__full">${a.fullName}</h2><p class="user__button__username user__username">${a.username}</p></span>` || ""}</span></calcite-button>${s && l`<div class="user__top"><arcgis-portal-user-avatar .user=${a} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${a.fullName}</h2><p class="user__top__username user__username">${a.username}</p></div></div>` || ""}${Object.values(e).filter((c) => c.options.length).map(({ title: c, options: d }) => l`<calcite-dropdown-group selection-mode=none .groupTitle=${c}>${d.map(({ icon: m, label: g, href: p, relativePath: _ }) => l`<calcite-dropdown-item .iconStart=${m} .href=${p} @keydown=${($) => {
1241
+ return !a || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${s ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${a} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!s && c`<span class="user__button__text"><h2 class="user__button__full user__full">${a.fullName}</h2><p class="user__button__username user__username">${a.username}</p></span>` || ""}</span></calcite-button>${s && c`<div class="user__top"><arcgis-portal-user-avatar .user=${a} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${a.fullName}</h2><p class="user__top__username user__username">${a.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: m, label: g, href: p, relativePath: _ }) => c`<calcite-dropdown-item .iconStart=${m} .href=${p} @keydown=${($) => {
1242
1242
  ($.key === "Enter" || $.key === " ") && i({ event: $, href: p, relativePath: _ });
1243
1243
  }} @click=${($) => {
1244
1244
  i({ event: $, href: p, relativePath: _ });
1245
- }}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && l`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(c) => {
1246
- const d = Ft(c.target, "calcite-dropdown");
1245
+ }}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
1246
+ const d = Ft(l.target, "calcite-dropdown");
1247
1247
  d && (d.open = !1), n();
1248
1248
  }}>${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>`;
1249
1249
  }
@@ -1291,21 +1291,21 @@ function dn({
1291
1291
  "arcgisBlog",
1292
1292
  "help"
1293
1293
  ];
1294
- return (ue(i) || de(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), pn(n, t, e);
1294
+ return (de(i) || pe(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), pn(n, t, e);
1295
1295
  }
1296
1296
  function pn(e, t, i) {
1297
1297
  const n = [];
1298
1298
  return e.forEach((r) => {
1299
1299
  const o = i[r];
1300
1300
  if (o && (!("show" in o) || o.show)) {
1301
- const { href: s, newTab: a, icon: c, group: d, relativePath: m } = o;
1301
+ const { href: s, newTab: a, icon: l, group: d, relativePath: m } = o;
1302
1302
  n.push({
1303
1303
  label: t[r],
1304
1304
  group: d,
1305
1305
  href: s,
1306
1306
  newTab: a,
1307
1307
  relativePath: m,
1308
- icon: c
1308
+ icon: l
1309
1309
  });
1310
1310
  }
1311
1311
  }), n;
@@ -1328,7 +1328,7 @@ function hn(e) {
1328
1328
  help: {
1329
1329
  group: "resources",
1330
1330
  icon: "question",
1331
- href: ae(e),
1331
+ href: ce(e),
1332
1332
  newTab: !0
1333
1333
  },
1334
1334
  communityForums: {
@@ -1380,7 +1380,7 @@ function gn(e) {
1380
1380
  return Be(e, Ue.myEsri);
1381
1381
  }
1382
1382
  function Be(e, t) {
1383
- const i = ce(e), n = bn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${q(i.replace("/sharing/rest/", ""), e)}`, s = `${r}LoginHandler/switchuser?`, a = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
1383
+ const i = le(e), n = bn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${q(i.replace("/sharing/rest/", ""), e)}`, s = `${r}LoginHandler/switchuser?`, a = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
1384
1384
  return `${s}${a}`;
1385
1385
  }
1386
1386
  function bn(e) {
@@ -1618,18 +1618,18 @@ function Fe({
1618
1618
  }) {
1619
1619
  return {
1620
1620
  name: e,
1621
- glyph: ee(`assets/portal-navigation/product-logos/${t}-glyph-32.svg`),
1622
- icon: ee(`assets/portal-navigation/apps/${i}.avif`)
1621
+ glyph: te(`assets/portal-navigation/product-logos/${t}-glyph-32.svg`),
1622
+ icon: te(`assets/portal-navigation/apps/${i}.avif`)
1623
1623
  };
1624
1624
  }
1625
1625
  function We({ portal: e, clientId: t }) {
1626
- return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : de(t) ? "GeoAnalytics Fabric" : ue(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
1626
+ return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : pe(t) ? "GeoAnalytics Fabric" : de(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
1627
1627
  }
1628
1628
  function _n(e) {
1629
1629
  const t = We(e);
1630
1630
  return Fe(Re(t));
1631
1631
  }
1632
- function Ae(e) {
1632
+ function ke(e) {
1633
1633
  const t = e?.product === "Online" ? We(e) : e?.product;
1634
1634
  return Fe(Re(t));
1635
1635
  }
@@ -1640,20 +1640,20 @@ function wn() {
1640
1640
  )}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
1641
1641
  }
1642
1642
  function yn({ portal: e, clientId: t }) {
1643
- const i = oe({ portal: e });
1643
+ const i = se({ portal: e });
1644
1644
  if (e?.isPortal) {
1645
1645
  const n = e.access === "private" ? q("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? q("./index.html", e) : `${i}/index.html`;
1646
- An(e, n);
1646
+ kn(e, n);
1647
1647
  } else
1648
1648
  window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
1649
1649
  }
1650
1650
  function $n() {
1651
1651
  ci(ye), li(ye);
1652
1652
  }
1653
- function An(e, t = window.location.href) {
1653
+ function kn(e, t = window.location.href) {
1654
1654
  const i = window.location.href.startsWith("http://"), n = Rt(e);
1655
1655
  Vt.destroyCredentials(), $n();
1656
- const r = new URL(q(`${ce(e)}oauth2/signout`, e)), { searchParams: o } = r;
1656
+ const r = new URL(q(`${le(e)}oauth2/signout`, e)), { searchParams: o } = r;
1657
1657
  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;
1658
1658
  }
1659
1659
  function z(e, t) {
@@ -1662,7 +1662,7 @@ function z(e, t) {
1662
1662
  const i = Wt({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
1663
1663
  return Math.ceil(i);
1664
1664
  }
1665
- function kn({
1665
+ function An({
1666
1666
  portal: e,
1667
1667
  product: t,
1668
1668
  projectTitle: i,
@@ -1672,12 +1672,12 @@ function kn({
1672
1672
  }) {
1673
1673
  if (!t || !e)
1674
1674
  return;
1675
- const s = e.user, c = pe(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 = s ? Math.max(z(s?.username, "s"), z(s?.fullName)) : z(r?.signIn);
1675
+ const s = e.user, l = K(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 = s ? Math.max(z(s?.username, "s"), z(s?.fullName)) : z(r?.signIn);
1676
1676
  return {
1677
1677
  actions: 192,
1678
1678
  project: i ? Math.min(d, 400) : 0,
1679
1679
  product: 64 + Math.max(z(o?.name), z(e.name, "s")) + 16,
1680
- nav: c,
1680
+ nav: l,
1681
1681
  user: 64 + m + 16
1682
1682
  };
1683
1683
  }
@@ -1685,15 +1685,15 @@ function xn({
1685
1685
  measurements: e,
1686
1686
  screenWidth: t
1687
1687
  }) {
1688
- const { actions: i, nav: n, product: r, project: o, user: s } = e, a = 64, c = t - i - a > n, d = t - i - (c ? n : 0) - o - a > Math.min(r, 400), m = t - n - o - i - r < Math.min(s, 320);
1688
+ const { actions: i, nav: n, product: r, project: o, user: s } = e, a = 64, l = t - i - a > n, d = t - i - (l ? n : 0) - o - a > Math.min(r, 400), m = t - n - o - i - r < Math.min(s, 320);
1689
1689
  return {
1690
- nav: c,
1690
+ nav: l,
1691
1691
  product: d,
1692
1692
  user: m ? "avatar" : "full"
1693
1693
  };
1694
1694
  }
1695
1695
  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"';
1696
- async function ke({
1696
+ async function Ae({
1697
1697
  portal: e,
1698
1698
  searchTerm: t
1699
1699
  }) {
@@ -1717,7 +1717,7 @@ async function Sn({
1717
1717
  }) {
1718
1718
  if (!e)
1719
1719
  return [];
1720
- const i = qt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${ce(e)}search/suggest`;
1720
+ const i = qt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${le(e)}search/suggest`;
1721
1721
  return (await B(r, { query: {
1722
1722
  suggest: i,
1723
1723
  filters: n,
@@ -1725,13 +1725,13 @@ async function Sn({
1725
1725
  f: "json"
1726
1726
  } }))?.result?.results || [];
1727
1727
  }
1728
- 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}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%}.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
1728
+ 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%);min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%}.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;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}`;
1729
1729
  function Pn({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
1730
- return !e || i && !t?.user ? null : l`<calcite-action .label=${e.applicationMenu} text="app switcher" icon=app-launcher scale=l class="action" @click=${n} @focusin=${() => r(!1, !0)}></calcite-action>`;
1730
+ 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>`;
1731
1731
  }
1732
- class Nn extends At {
1732
+ class Nn extends kt {
1733
1733
  constructor() {
1734
- super(...arguments), this.messages = kt({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
1734
+ super(...arguments), this.messages = At({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
1735
1735
  const { portal: t, messages: i } = this;
1736
1736
  this.notifications = await be({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
1737
1737
  }, this.deleteNotifications = async (t) => {
@@ -1799,7 +1799,7 @@ class Nn extends At {
1799
1799
  }, this.handleItemSearch = (t) => {
1800
1800
  this.recentContentLoading = !0, this.recentContentSearchTerm = t, this.debouncedItemSearch(t);
1801
1801
  }, this.debouncedItemSearch = fe(async (t) => {
1802
- this.recentContent = await ke({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1, t || (this.originalRecentContent = [...this.recentContent]);
1802
+ this.recentContent = await Ae({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1, t || (this.originalRecentContent = [...this.recentContent]);
1803
1803
  }, 1e3), this.debouncedSuggest = fe(async (t) => {
1804
1804
  this.suggestions = await Sn({ portal: this.portal, searchTerm: t });
1805
1805
  }, 1e3), this.handleSearch = (t) => {
@@ -1839,15 +1839,21 @@ class Nn extends At {
1839
1839
  }));
1840
1840
  }
1841
1841
  willUpdate(t) {
1842
- (t.has("product") || t.has("clientId")) && this.hasUpdated && (this.productInfo = Ae({ product: this.product, clientId: this.clientId, portal: this.portal }));
1842
+ (t.has("product") || t.has("clientId")) && this.hasUpdated && (this.productInfo = ke({ product: this.product, clientId: this.clientId, portal: this.portal }));
1843
1843
  }
1844
1844
  firstUpdated() {
1845
1845
  this.el && this.#e && (this.#e.observe(this.el), this.screenWidth = window.innerWidth);
1846
1846
  }
1847
1847
  async loaded() {
1848
+ this.fetchData();
1849
+ }
1850
+ disconnectedCallback() {
1851
+ this.#e?.disconnect(), this.#e = void 0, document.documentElement.style.overflow = this.initialDocumentOverflowStyle, super.disconnectedCallback();
1852
+ }
1853
+ async fetchData() {
1848
1854
  const { portal: t, messages: i, clientId: n, product: r } = this;
1849
- this.calculateMeasurements(), this.productInfo = Ae({ 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 be({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await ke({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
1850
- const { apps: o, hiddenApps: s, signInSettings: a, licenses: c, userProperties: d } = await Oi({
1855
+ this.calculateMeasurements(), this.productInfo = ke({ 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 be({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Ae({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
1856
+ const { apps: o, hiddenApps: s, signInSettings: a, licenses: l, userProperties: d } = await Oi({
1851
1857
  portal: t,
1852
1858
  trackViewerEnabled: !this.disableTrackViewer,
1853
1859
  notebookServerEnabled: !this.disableNotebookServer
@@ -1855,18 +1861,15 @@ class Nn extends At {
1855
1861
  this.infoBanner = m?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = s, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: s }, this.appsLoading = !1, this.links = Gi({
1856
1862
  portal: t,
1857
1863
  messages: i.links,
1858
- licenses: c,
1864
+ licenses: l,
1859
1865
  clientId: n,
1860
1866
  signInSettings: a
1861
1867
  }), this.calculateMeasurements();
1862
1868
  }
1863
- disconnectedCallback() {
1864
- this.#e?.disconnect(), this.#e = void 0, document.documentElement.style.overflow = this.initialDocumentOverflowStyle, super.disconnectedCallback();
1865
- }
1866
1869
  calculateMeasurements() {
1867
1870
  const { links: t, messages: i, portal: n, product: r, productInfo: o, projectTitle: s } = this;
1868
1871
  if (n) {
1869
- const a = kn({
1872
+ const a = An({
1870
1873
  portal: n,
1871
1874
  product: r,
1872
1875
  productInfo: o,
@@ -1885,8 +1888,8 @@ class Nn extends At {
1885
1888
  }
1886
1889
  }
1887
1890
  render() {
1888
- const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: s, handleAppDelete: a, handleAppHide: c, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch: $, handleSearchTypeChange: w, hiddenApps: I, infoBanner: P, links: f, messages: h, navigate: u, notifications: v, notificationsActive: N, notificationDeleteProgress: y, openAccountSwitcher: b, platformInfo: A, portal: k, portalItem: C, product: O, productInfo: x, productHref: j, projectTitle: D, editedProjectTitle: He, handleProjectTitleSave: qe, handleProjectTitleEdit: Je, handleProjectTitleCancel: Ke, handleToggleNotifications: he, openProjectTitleEdit: Qe, openPlatformMenu: Xe, platformMenuOpen: Ye, projectTitleEditing: Q, projectTitleSaving: Ze, projectTitleErrorMessage: et, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: st, recentContent: at, recentContentSearchTerm: ct, recentContentLoading: lt, userLinks: ut, searchActive: R, searchTerm: dt, searchType: pt, searchInput: ht, searchAction: mt, searchPopover: ft, showNav: X, showProduct: gt, showUser: bt, suggestions: vt } = this, _t = k?.user, wt = pe(O) && !f?.length || !this.measurements;
1889
- return l`<calcite-scrim class=${te({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${xe({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${P}></arcgis-portal-info-banner>${k?.isPortal && C?.loaded && l`<arcgis-portal-classification-banner .portalItem=${C}></arcgis-portal-classification-banner>` || ""}<header class=${te({ navigation: !0, "navigation--loading": wt })}>${Pn({ messages: h?.platform, portal: k, showNav: X, openPlatformMenu: Xe, handleToggleSearch: $ })}${gt && Jt({ navigate: u, portal: k, product: O, productInfo: x, productHref: j, messages: h?.logo, showNav: X, searchActive: R, projectTitleEditing: Q }) || ""}${Zi({ navigate: u, portal: k, portalItem: C, messages: h?.project, projectTitle: D, editedProjectTitle: He, handleProjectTitleSave: qe, handleProjectTitleEdit: Je, openProjectTitleEdit: Qe, projectTitleErrorMessage: et, handleProjectTitleCancel: Ke, projectTitleEditing: Q, projectTitleSaving: Ze, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: st })}${X && an({ searchActive: R, navigate: u, portal: k, product: O, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Q || R}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: k, product: O, messages: h?.search, searchActive: R, searchType: pt, searchTerm: dt, suggestions: vt, handleSearch: _, handleToggleSearch: $, handleSearchTypeChange: w, searchInputRef: ht, searchActionRef: mt, searchPopoverRef: ft })}${_t ? l`<div class="border-start fade-in">${ni({ notifications: v, notificationsActive: N, messages: h?.notifications, handleToggleNotifications: he, handleToggleSearch: $ })}${ri({ notificationsActive: N, notifications: v, navigate: u, portal: k, deleteNotifications: this.deleteNotifications, handleToggleNotifications: he, messages: h?.notifications, notificationDeleteProgress: y })}</div>${cn({ portal: k, userLinks: ut, openAccountSwitcher: k?.isPortal ? void 0 : b, signOut: this.signOut, messages: h?.user, textDisabled: bt === "avatar", navigate: u })}` : sn({ messages: h.user, signIn: this.signIn })}</header>${Ji({ locale: h._t9nLocale, navigate: u, portal: k, product: O, platformInfo: A, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Ye, links: f, recentContent: at, recentContentSearchTerm: ct, recentContentLoading: lt, handlePlatformClose: p, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: a, handleAppsSearch: (yt) => this.appsSearchTerm = yt, handleAppSave: m, handleAppCancel: s, handleAppHide: c, handleItemSearch: g })}${t && l`<arcgis-portal-account-switcher .portal=${k} @arcgisClose=${() => {
1891
+ const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: s, handleAppDelete: a, handleAppHide: l, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch: $, handleSearchTypeChange: w, hiddenApps: I, infoBanner: P, links: f, messages: h, navigate: u, notifications: v, notificationsActive: N, notificationDeleteProgress: y, openAccountSwitcher: b, platformInfo: k, portal: A, portalItem: C, product: O, productInfo: x, productHref: j, projectTitle: D, editedProjectTitle: He, handleProjectTitleSave: qe, handleProjectTitleEdit: Je, handleProjectTitleCancel: Ke, handleToggleNotifications: he, openProjectTitleEdit: Qe, openPlatformMenu: Xe, platformMenuOpen: Ye, projectTitleEditing: X, projectTitleSaving: Ze, projectTitleErrorMessage: et, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: st, recentContent: at, recentContentSearchTerm: ct, recentContentLoading: lt, userLinks: ut, searchActive: R, searchTerm: dt, searchType: pt, searchInput: ht, searchAction: mt, searchPopover: ft, showNav: Y, showProduct: gt, showUser: bt, suggestions: vt } = this, _t = A?.user, wt = K(O) && !f?.length || !this.measurements;
1892
+ return c`<calcite-scrim class=${ie({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${xe({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${P}></arcgis-portal-info-banner>${A?.isPortal && C?.loaded && c`<arcgis-portal-classification-banner .portalItem=${C}></arcgis-portal-classification-banner>` || ""}<header class=${ie({ navigation: !0, "navigation--loading": wt })}>${Pn({ messages: h?.platform, portal: A, showNav: Y, openPlatformMenu: Xe, handleToggleSearch: $ })}${gt && Jt({ navigate: u, portal: A, product: O, productInfo: x, productHref: j, messages: h?.logo, showNav: Y, searchActive: R, projectTitleEditing: X }) || ""}${Zi({ navigate: u, portal: A, portalItem: C, messages: h?.project, projectTitle: D, editedProjectTitle: He, handleProjectTitleSave: qe, handleProjectTitleEdit: Je, openProjectTitleEdit: Qe, projectTitleErrorMessage: et, handleProjectTitleCancel: Ke, projectTitleEditing: X, projectTitleSaving: Ze, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: st })}${Y && an({ searchActive: R, navigate: u, portal: A, product: O, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${X || R}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: A, product: O, messages: h?.search, searchActive: R, searchType: pt, searchTerm: dt, suggestions: vt, handleSearch: _, handleToggleSearch: $, handleSearchTypeChange: w, searchInputRef: ht, searchActionRef: mt, searchPopoverRef: ft })}${_t ? c`<div class="border-start">${ni({ notifications: v, notificationsActive: N, messages: h?.notifications, handleToggleNotifications: he, handleToggleSearch: $ })}${ri({ notificationsActive: N, notifications: v, navigate: u, portal: A, deleteNotifications: this.deleteNotifications, handleToggleNotifications: he, messages: h?.notifications, notificationDeleteProgress: y })}</div>${cn({ portal: A, userLinks: ut, openAccountSwitcher: A?.isPortal ? void 0 : b, signOut: this.signOut, messages: h?.user, textDisabled: bt === "avatar", navigate: u })}` : sn({ messages: h.user, signIn: this.signIn })}</header>${Ji({ locale: h._t9nLocale, navigate: u, portal: A, product: O, platformInfo: k, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Ye, links: f, recentContent: at, recentContentSearchTerm: ct, recentContentLoading: lt, handlePlatformClose: p, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: a, handleAppsSearch: (yt) => this.appsSearchTerm = yt, handleAppSave: m, handleAppCancel: s, handleAppHide: l, handleItemSearch: g })}${t && c`<arcgis-portal-account-switcher .portal=${A} @arcgisClose=${() => {
1890
1893
  this.accountSwitcherOpen = !1;
1891
1894
  }}></arcgis-portal-account-switcher>` || ""}</div>`;
1892
1895
  }