@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.
- package/dist/cdn/2QCYQYNA.js +2 -0
- package/dist/cdn/4NXBBNYR.js +2 -0
- package/dist/cdn/{5Q7A62C3.js → 7VNYKGBJ.js} +85 -81
- package/dist/cdn/{QH47GJCC.js → BL2ZND4S.js} +1 -1
- package/dist/cdn/{E7MAKHJ5.js → POQBF4N7.js} +1 -1
- package/dist/cdn/{SXBAVMP3.js → R77U3ROB.js} +1 -1
- package/dist/cdn/TBQ5W7VE.js +2 -0
- package/dist/cdn/assets/portal-item-badges/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/portal-item-badge.js +74 -71
- package/dist/chunks/utils2.js +28 -20
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +516 -491
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +15 -8
- package/dist/components/arcgis-portal-navigation/customElement.js +159 -156
- package/dist/components/arcgis-portal-navigation/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/K42KPAN7.js +0 -2
- package/dist/cdn/SKRCLDPZ.js +0 -2
- package/dist/cdn/YZNRN2K5.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import { safeStyleMap as xe, safeClassMap as
|
|
4
|
-
import { u as
|
|
5
|
-
import { nothing as L, html as
|
|
6
|
-
import { formatDate as It, substitute as
|
|
7
|
-
import { g as
|
|
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
|
|
18
|
-
import { e as
|
|
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
|
|
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:
|
|
30
|
-
const d = s && i === "Online" && !a || i !== "Online" &&
|
|
31
|
-
return !i || !t || !o || d ? null : r ?
|
|
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
|
|
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
|
|
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
|
-
|
|
71
|
+
Z[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
|
|
72
72
|
const r = Ne(n);
|
|
73
|
-
return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${
|
|
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 =
|
|
189
|
-
e.data.baseUrl = `${o}/home/`, r.text =
|
|
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 ?
|
|
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 :
|
|
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 ?
|
|
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 = `${
|
|
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">${
|
|
220
|
-
const d =
|
|
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>` :
|
|
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
|
|
448
|
+
function ki(e) {
|
|
449
449
|
return S("HubforArcGIS", e);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
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: () =>
|
|
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: () =>
|
|
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
|
|
551
|
+
function ne(e) {
|
|
552
552
|
return e.sourceJSON?.subscriptionInfo?.options?.includes("Developer");
|
|
553
553
|
}
|
|
554
554
|
function V(e) {
|
|
555
|
-
return
|
|
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:
|
|
600
|
+
notebookServerEnabled: l,
|
|
601
601
|
willQueryForItems: d,
|
|
602
602
|
approvedApps: m
|
|
603
603
|
}) {
|
|
604
|
-
const g = {}, p = {}, _ = Pi(i,
|
|
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 ||
|
|
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
|
|
614
|
-
if (_[
|
|
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" ||
|
|
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
|
|
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,
|
|
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
|
-
}),
|
|
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:
|
|
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 =
|
|
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((
|
|
745
|
-
const
|
|
746
|
-
|
|
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((
|
|
750
|
-
|
|
749
|
+
p?.appLauncher?.primary?.forEach((k) => {
|
|
750
|
+
k.label === "Map Viewer" && (k.uid = "Map Viewer");
|
|
751
751
|
}), h = p?.appLauncher.primary.reduce(
|
|
752
|
-
(
|
|
752
|
+
(k, A) => we({ apps: k, app: A, appDictionary: f, newAppDictionary: b, portal: e }),
|
|
753
753
|
[]
|
|
754
754
|
) || [], u = p?.appLauncher.secondary.reduce(
|
|
755
|
-
(
|
|
755
|
+
(k, A) => we({ apps: k, app: A, appDictionary: f, newAppDictionary: b, portal: e }),
|
|
756
756
|
[]
|
|
757
|
-
) || [], h =
|
|
758
|
-
for (const
|
|
759
|
-
b[
|
|
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
|
|
782
|
-
return s[
|
|
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
|
|
795
|
+
return c`<span class="list-item__logo list-item__logo-empty"></span>`;
|
|
796
796
|
const t = !e.image && e.abbr;
|
|
797
|
-
return
|
|
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:
|
|
803
|
-
return
|
|
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
|
|
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:
|
|
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 ?
|
|
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
|
-
|
|
824
|
-
}, handleAppDelete: d }))}</calcite-list>` :
|
|
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 ?
|
|
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",
|
|
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
|
|
834
|
+
return ue.GeoanalyticsEngine === e;
|
|
835
|
+
}
|
|
836
|
+
function pe(e) {
|
|
837
|
+
return ue.GeoanalyticsFabric === e;
|
|
838
838
|
}
|
|
839
839
|
function De(e) {
|
|
840
|
-
return
|
|
840
|
+
return ue.IndoorsOnline === e;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
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
|
-
}),
|
|
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:
|
|
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:
|
|
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
|
-
...
|
|
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
|
-
...(
|
|
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
996
|
-
return o ||
|
|
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:
|
|
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)),
|
|
1095
|
-
return
|
|
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
|
-
}}>${
|
|
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:
|
|
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:
|
|
1103
|
-
return
|
|
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 &&
|
|
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
|
|
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
|
|
1124
|
-
return
|
|
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 =
|
|
1129
|
-
return n && !r ? -1 : r && !n ? 1 : r && n ?
|
|
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 (!
|
|
1154
|
+
if (!oe(s)) {
|
|
1155
1155
|
o.push(s);
|
|
1156
1156
|
return;
|
|
1157
1157
|
}
|
|
1158
|
-
const { text:
|
|
1159
|
-
i[m].push({ text:
|
|
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:
|
|
1169
|
-
return
|
|
1170
|
-
if (
|
|
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
|
-
|
|
1175
|
-
}}>${d}${
|
|
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:
|
|
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
|
|
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 ?
|
|
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 &&
|
|
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 =
|
|
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
|
|
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
|
|
1214
|
-
const s = Ge({ portal: e, searchType: r, searchTerm: o }), a = `/${s}`,
|
|
1215
|
-
return
|
|
1216
|
-
n({ href:
|
|
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
|
|
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:
|
|
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 ?
|
|
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:
|
|
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
|
|
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 || !
|
|
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 :
|
|
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 &&
|
|
1246
|
-
const d = Ft(
|
|
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 (
|
|
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:
|
|
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:
|
|
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:
|
|
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 =
|
|
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:
|
|
1622
|
-
icon:
|
|
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" :
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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(`${
|
|
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
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
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
|
|
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 = `${
|
|
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 :
|
|
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
|
|
1732
|
+
class Nn extends kt {
|
|
1733
1733
|
constructor() {
|
|
1734
|
-
super(...arguments), this.messages =
|
|
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
|
|
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 =
|
|
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 =
|
|
1850
|
-
const { apps: o, hiddenApps: s, signInSettings: a, licenses:
|
|
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:
|
|
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 =
|
|
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:
|
|
1889
|
-
return
|
|
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
|
}
|