@arcgis/portal-components 6.0.0-next.32 → 6.0.0-next.34
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/{Q2CCAKI4.js → 26KZUWNM.js} +1 -1
- package/dist/cdn/{JEVNGG2O.js → 2GZVUHL5.js} +1 -1
- package/dist/cdn/{FAZVQI4K.js → 324F5URQ.js} +1 -1
- package/dist/cdn/4DPS57A4.js +2 -0
- package/dist/cdn/{CVU6YKOA.js → 4YJGTINX.js} +1 -1
- package/dist/cdn/{TJANHZ25.js → 5E4EL6TF.js} +1 -1
- package/dist/cdn/{3DTSKTHB.js → 5S4JV6IY.js} +1 -1
- package/dist/cdn/{KTTPPUQ7.js → 6FFYU4NI.js} +1 -1
- package/dist/cdn/{BHZKSSVZ.js → A3OUZJ44.js} +1 -1
- package/dist/cdn/{NENAFJEC.js → ARAHDT2O.js} +1 -1
- package/dist/cdn/{3MUI6DF4.js → AUM2QTBQ.js} +1 -1
- package/dist/cdn/{UZW2KV4X.js → AYESDOK5.js} +1 -1
- package/dist/cdn/{MVC6LIQ6.js → CIRCDM5E.js} +1 -1
- package/dist/cdn/{IGOSZ2LL.js → GBG25IJ2.js} +1 -1
- package/dist/cdn/{FKOSVY5D.js → H25PBZPU.js} +1 -1
- package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
- package/dist/cdn/{QRHXMIMW.js → KTWSNYYZ.js} +1 -1
- package/dist/cdn/{SV6SGTR6.js → LRL2RJID.js} +1 -1
- package/dist/cdn/{WC3MDSMP.js → LSWV67YC.js} +1 -1
- package/dist/cdn/{IUIFCQQU.js → LUJGCYQY.js} +1 -1
- package/dist/cdn/{KHA6NJ4N.js → MHQ5BATZ.js} +1 -1
- package/dist/cdn/{HKHDBGNN.js → NJB24AIV.js} +1 -1
- package/dist/cdn/{WFPUAEJQ.js → O2GPTWGF.js} +1 -1
- package/dist/cdn/{TAZDV6DB.js → OEG4XCKY.js} +1 -1
- package/dist/cdn/{FOWOLUC3.js → OVAOMUO3.js} +1 -1
- package/dist/cdn/{22DNGXFY.js → OYTK2VF2.js} +1 -1
- package/dist/cdn/{ERBRAY5U.js → Q2LXJOVS.js} +1 -1
- package/dist/cdn/{Z5OZYZYV.js → QPBWKASC.js} +1 -1
- package/dist/cdn/{2CC4MNQP.js → WMKG3CBK.js} +1 -1
- package/dist/cdn/{XJNEK5Q7.js → WSQLSDQY.js} +1 -1
- package/dist/cdn/{7ZWYPQMW.js → X4R2NVDQ.js} +1 -1
- package/dist/cdn/{MJVKDAYF.js → X7C4PAJY.js} +1 -1
- package/dist/cdn/XI3ERUXD.js +93 -0
- package/dist/cdn/{H6OQOEHS.js → YNGFN7AY.js} +1 -1
- package/dist/cdn/{GBXFX37Y.js → ZQ6SGKLT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/createPortalTool.js +18 -0
- package/dist/chunks/portalEntitySelection.js +2 -2
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +622 -396
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +1 -1
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +33 -2
- package/dist/components/arcgis-portal-navigation/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-navigation/customElement.js +219 -221
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +43 -38
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +10 -10
- package/dist/cdn/HXR7GUM3.js +0 -91
- package/dist/cdn/XK3WIW4R.js +0 -2
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as ne, c as
|
|
3
|
-
import { safeStyleMap as Ie, safeClassMap as re, LitElement as
|
|
4
|
-
import { u as
|
|
5
|
-
import { nothing as M, html as c, svg as
|
|
6
|
-
import { formatDate as
|
|
7
|
-
import { b as ce, g as
|
|
2
|
+
import { g as ne, c as wt } from "../../chunks/runtime.js";
|
|
3
|
+
import { safeStyleMap as Ie, safeClassMap as re, LitElement as yt, createEvent as q } from "@arcgis/lumina";
|
|
4
|
+
import { u as $t } from "../../chunks/useT9n.js";
|
|
5
|
+
import { nothing as M, html as c, svg as kt, css as At } from "lit";
|
|
6
|
+
import { formatDate as xt, substitute as X, getLocale as St } from "@arcgis/core/intl.js";
|
|
7
|
+
import { b as ce, g as It } from "../../chunks/url.js";
|
|
8
8
|
import { c as B } from "../../chunks/requests.js";
|
|
9
9
|
import { repeat as U } from "lit/directives/repeat.js";
|
|
10
|
-
import { m as
|
|
11
|
-
import { i as T, c as ge, a as
|
|
12
|
-
import { b as
|
|
13
|
-
import { c as
|
|
14
|
-
import { i as
|
|
15
|
-
import { e as Ut, g as
|
|
10
|
+
import { m as Pt } from "../../chunks/icons.js";
|
|
11
|
+
import { i as T, c as ge, a as Nt } from "../../chunks/user2.js";
|
|
12
|
+
import { b as Tt, c as Ct, d as Mt, e as Ot, f as Lt } from "../../chunks/portal2.js";
|
|
13
|
+
import { c as Et, d as jt, e as Dt } from "../../chunks/user.js";
|
|
14
|
+
import { i as zt, a as Gt } from "../../chunks/utils4.js";
|
|
15
|
+
import { e as Ut, g as Pe } from "../../chunks/item2.js";
|
|
16
16
|
import { g as Bt } from "../../chunks/request.js";
|
|
17
17
|
import { keyed as le } from "lit/directives/keyed.js";
|
|
18
18
|
import { a as ue, n as Rt, g as de, e as J, b as Ft } from "../../chunks/portal.js";
|
|
@@ -28,7 +28,7 @@ function ve({ portal: e, productInfo: t }) {
|
|
|
28
28
|
}
|
|
29
29
|
function Kt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
|
|
30
30
|
const d = a && i === "Online" && !s || i !== "Online" && l && window.innerWidth < 960;
|
|
31
|
-
return !i || !t || !o || d ||
|
|
31
|
+
return !i || !t || !o || d || ["Online", "Enterprise"].includes(i) && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(m) => {
|
|
32
32
|
e({ event: m, href: r });
|
|
33
33
|
}} class="logo logo--link">${ve({ portal: t, productInfo: n })}</a>` : c`<div class="logo ">${ve({ portal: t, productInfo: n })}</div>`;
|
|
34
34
|
}
|
|
@@ -40,7 +40,7 @@ const te = {}, C = {
|
|
|
40
40
|
Minute: 60,
|
|
41
41
|
Second: 1
|
|
42
42
|
};
|
|
43
|
-
function
|
|
43
|
+
function Ne(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return null;
|
|
46
46
|
const t = Math.floor(e / 1e3), i = Math.abs(t), n = C.Day * 365;
|
|
@@ -61,15 +61,15 @@ function Ce(e) {
|
|
|
61
61
|
return [Math.floor(t / n), "year"];
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Te(e) {
|
|
65
65
|
return (typeof e == "number" ? e : e.getTime?.()) - (/* @__PURE__ */ new Date()).getTime();
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Ce({ locale: e, time: t, t9n: i }) {
|
|
68
68
|
if (!e || !t)
|
|
69
69
|
return "";
|
|
70
|
-
const n =
|
|
70
|
+
const n = Te(t);
|
|
71
71
|
te[e] ??= new Intl.RelativeTimeFormat(e, { style: "long" });
|
|
72
|
-
const r =
|
|
72
|
+
const r = Ne(n);
|
|
73
73
|
return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${te[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : te[e].format(r[0], r[1]) : "";
|
|
74
74
|
}
|
|
75
75
|
const Qt = {
|
|
@@ -84,7 +84,7 @@ function Yt({ locale: e, time: t }, i) {
|
|
|
84
84
|
if (!e || !t)
|
|
85
85
|
return "";
|
|
86
86
|
const n = new Date(t);
|
|
87
|
-
return
|
|
87
|
+
return xt(n, i ? Qt : Xt);
|
|
88
88
|
}
|
|
89
89
|
async function Zt({ portal: e }) {
|
|
90
90
|
if (!e?.user)
|
|
@@ -95,17 +95,17 @@ async function Zt({ portal: e }) {
|
|
|
95
95
|
async function ei(e, t) {
|
|
96
96
|
if (!e?.user)
|
|
97
97
|
return { success: !0 };
|
|
98
|
-
const i = t.map((o) => ({ portal: e, id: o })).map(
|
|
98
|
+
const i = t.map((o) => ({ portal: e, id: o })).map(Me);
|
|
99
99
|
return { success: !((await Promise.allSettled(i))?.filter((o) => o.status === "rejected" || !o.value?.success)).length };
|
|
100
100
|
}
|
|
101
|
-
async function
|
|
101
|
+
async function Me({
|
|
102
102
|
portal: e,
|
|
103
103
|
id: t
|
|
104
104
|
}) {
|
|
105
105
|
const i = `${e.restUrl}/community/users/${e.user?.id}/notifications/${t}/delete`, { result: n } = await B(i, { method: "post" });
|
|
106
106
|
return n?.success ? { success: !0, id: t } : { success: !1, id: t };
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const Oe = "notifications-menu";
|
|
109
109
|
function ti(e) {
|
|
110
110
|
try {
|
|
111
111
|
const t = decodeURIComponent(e);
|
|
@@ -177,7 +177,7 @@ function ni({
|
|
|
177
177
|
}) {
|
|
178
178
|
if (e?.received && e.id) {
|
|
179
179
|
const r = {
|
|
180
|
-
date:
|
|
180
|
+
date: Ce({ locale: i, time: e.received, t9n: n }),
|
|
181
181
|
id: e.id,
|
|
182
182
|
text: "",
|
|
183
183
|
icon: ii(e.type)
|
|
@@ -204,13 +204,13 @@ async function _e({
|
|
|
204
204
|
return r && console.error(r), n?.length ? n.map((a) => ni({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
|
|
205
205
|
}
|
|
206
206
|
function ri({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
|
|
207
|
-
return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${
|
|
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 K({ icon: e, title: t, description: i }) {
|
|
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>${
|
|
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>${kt`<path d=${Pt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
|
|
211
211
|
}
|
|
212
212
|
function oi({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
|
|
213
|
-
return i ? c`<calcite-popover .referenceElement=${
|
|
213
|
+
return i ? c`<calcite-popover .referenceElement=${Oe} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
|
|
214
214
|
const m = d.target, g = m.href;
|
|
215
215
|
if (m.nodeName === "CALCITE-LINK" && g) {
|
|
216
216
|
const p = `${ce({ portal: r, usePortalHostname: !!r.user })}/home/`;
|
|
@@ -281,7 +281,7 @@ async function mi(e) {
|
|
|
281
281
|
if (!n)
|
|
282
282
|
return t;
|
|
283
283
|
const r = n.id;
|
|
284
|
-
return (await
|
|
284
|
+
return (await Pe(e, r)).result;
|
|
285
285
|
}
|
|
286
286
|
async function fi(e, t, i) {
|
|
287
287
|
if (!t || !e?.length)
|
|
@@ -302,7 +302,7 @@ async function gi(e) {
|
|
|
302
302
|
sortOrder: "asc",
|
|
303
303
|
q: 'owner:"esri" AND title:"BlockedApps Config" AND type: "Application Configuration"'
|
|
304
304
|
}, { result: n } = await B(t, { query: i }), r = n?.results?.[0]?.id;
|
|
305
|
-
return r ? (await
|
|
305
|
+
return r ? (await Pe(e, r))?.result?.blockedApps || [] : [];
|
|
306
306
|
}
|
|
307
307
|
function bi(e, t) {
|
|
308
308
|
const i = e?.toLowerCase() || "", n = `${t.title || ""} ${t.label || ""}`;
|
|
@@ -322,15 +322,6 @@ function vi() {
|
|
|
322
322
|
}
|
|
323
323
|
), !1;
|
|
324
324
|
}
|
|
325
|
-
function _i(e, t) {
|
|
326
|
-
const { landingPage: i } = t || {};
|
|
327
|
-
return {
|
|
328
|
-
image: "arcgis-online.png",
|
|
329
|
-
label: "ArcGIS Online",
|
|
330
|
-
title: "ArcGIS Online",
|
|
331
|
-
url: `${Pe({ portal: e })}/${i?.url ? i.url : Ne(e.user) ? "organization.html" : "index.html"}`
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
325
|
function we(e) {
|
|
335
326
|
const i = [
|
|
336
327
|
"api-for-python",
|
|
@@ -417,7 +408,7 @@ function we(e) {
|
|
|
417
408
|
].find((n) => e?.includes(n) && V(`${n}.png`) === e);
|
|
418
409
|
return i ? V(`${i}.avif`) : e;
|
|
419
410
|
}
|
|
420
|
-
function
|
|
411
|
+
function _i(e, t) {
|
|
421
412
|
const i = e?.blockedApps || [], n = [];
|
|
422
413
|
return !i.length && !e.blockBetaApps || !t?.length ? [] : (e.blockBetaApps && t.forEach((r) => {
|
|
423
414
|
r.isBeta && !i.includes(r.clientid) && i.push(r.clientid);
|
|
@@ -429,10 +420,10 @@ function wi(e, t) {
|
|
|
429
420
|
function S(e, t) {
|
|
430
421
|
return t && t[e.toLowerCase()]?.valid || !1;
|
|
431
422
|
}
|
|
432
|
-
function
|
|
423
|
+
function wi(e, t) {
|
|
433
424
|
return e?.portalProperties && !e.portalProperties?.openData?.enabled ? !1 : S("HubforArcGIS", t);
|
|
434
425
|
}
|
|
435
|
-
function
|
|
426
|
+
function yi(e, t) {
|
|
436
427
|
if (!e)
|
|
437
428
|
return !1;
|
|
438
429
|
const i = [
|
|
@@ -442,39 +433,39 @@ function $i(e, t) {
|
|
|
442
433
|
], r = (e?.privileges || []).some((a) => i.includes(a)), o = S("velocity", t);
|
|
443
434
|
return r && o;
|
|
444
435
|
}
|
|
445
|
-
function
|
|
436
|
+
function $i(e) {
|
|
446
437
|
return S("HubforArcGIS", e);
|
|
447
438
|
}
|
|
448
439
|
function ki(e, t) {
|
|
449
440
|
return !(e.isPortal && e.portalProperties?.newMapViewerEnabled === !1) && S("arcgisWebApps", t);
|
|
450
441
|
}
|
|
451
|
-
function
|
|
442
|
+
function Ai(e) {
|
|
452
443
|
return !!e.helperServices?.rasterAnalytics && !!e.helperServices.orthoMapping;
|
|
453
444
|
}
|
|
454
|
-
function
|
|
445
|
+
function xi(e, t, i) {
|
|
455
446
|
const n = i && (!e.isPortal || !!e.sourceJSON?.supportsHostedNotebooks), r = !!t?.privileges?.length && t.privileges.some((o) => o === "premium:publisher:createNotebooks");
|
|
456
447
|
return n && r;
|
|
457
448
|
}
|
|
458
|
-
function
|
|
449
|
+
function Si(e, t) {
|
|
459
450
|
return !!e.helperServices?.locationTracking && t;
|
|
460
451
|
}
|
|
461
|
-
function
|
|
452
|
+
function Ii(e, t, i, n) {
|
|
462
453
|
const r = e?.user;
|
|
463
454
|
return {
|
|
464
455
|
"Open Data": {
|
|
465
|
-
hasAccess: () =>
|
|
456
|
+
hasAccess: () => wi(e, n)
|
|
466
457
|
},
|
|
467
458
|
AppStudio: {
|
|
468
459
|
hasAccess: () => S("arcgisWebApps", n)
|
|
469
460
|
},
|
|
470
461
|
"ArcGIS Velocity": {
|
|
471
|
-
hasAccess: () => e.isPortal ||
|
|
462
|
+
hasAccess: () => e.isPortal || yi(r, n)
|
|
472
463
|
},
|
|
473
464
|
"ArcGIS Hub": {
|
|
474
465
|
hasAccess: () => S("HubforArcGIS", n)
|
|
475
466
|
},
|
|
476
467
|
"ArcGIS Enterprise Sites": {
|
|
477
|
-
hasAccess: () =>
|
|
468
|
+
hasAccess: () => $i(n)
|
|
478
469
|
},
|
|
479
470
|
"ArcGIS QuickCapture Web Designer": {
|
|
480
471
|
hasAccess: () => S("arcgisWebApps", n)
|
|
@@ -495,10 +486,10 @@ function Pi(e, t, i, n) {
|
|
|
495
486
|
hasAccess: () => S("opsdashboard", n)
|
|
496
487
|
},
|
|
497
488
|
"Ortho Maker": {
|
|
498
|
-
hasAccess: () =>
|
|
489
|
+
hasAccess: () => Ai(e)
|
|
499
490
|
},
|
|
500
491
|
Notebook: {
|
|
501
|
-
hasAccess: () =>
|
|
492
|
+
hasAccess: () => xi(e, r, t)
|
|
502
493
|
},
|
|
503
494
|
"Scene Viewer": {
|
|
504
495
|
hasAccess: () => S("arcgisWebApps", n)
|
|
@@ -510,7 +501,7 @@ function Pi(e, t, i, n) {
|
|
|
510
501
|
hasAccess: () => S("survey123", n)
|
|
511
502
|
},
|
|
512
503
|
"Track Viewer": {
|
|
513
|
-
hasAccess: () =>
|
|
504
|
+
hasAccess: () => Si(e, i)
|
|
514
505
|
},
|
|
515
506
|
"Instant Apps": {
|
|
516
507
|
// For Portal
|
|
@@ -521,8 +512,9 @@ function Pi(e, t, i, n) {
|
|
|
521
512
|
}
|
|
522
513
|
};
|
|
523
514
|
}
|
|
524
|
-
function
|
|
515
|
+
function Pi(e) {
|
|
525
516
|
let t = {
|
|
517
|
+
arcgisonline: 1,
|
|
526
518
|
opsdashboard: 1,
|
|
527
519
|
arcgisWebApps: 1,
|
|
528
520
|
Workforce: 1,
|
|
@@ -551,7 +543,7 @@ function oe(e) {
|
|
|
551
543
|
function V(e) {
|
|
552
544
|
return ne(`assets/portal-navigation/apps/${e || ""}`);
|
|
553
545
|
}
|
|
554
|
-
function
|
|
546
|
+
function Le(e, t, i) {
|
|
555
547
|
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}`;
|
|
556
548
|
}
|
|
557
549
|
function G(e, t, i) {
|
|
@@ -561,31 +553,31 @@ function G(e, t, i) {
|
|
|
561
553
|
}
|
|
562
554
|
return e.title === "ArcGIS GeoBIM" && (e.label = "ArcGIS GeoBIM"), delete e.isLicensed, delete e.privileges, e.itemId = t, e;
|
|
563
555
|
}
|
|
564
|
-
function
|
|
556
|
+
function Ee() {
|
|
565
557
|
return `${V()}svg-app-circle.svg`;
|
|
566
558
|
}
|
|
567
|
-
function
|
|
559
|
+
function Ni(e, t, i) {
|
|
568
560
|
const n = e.properties?.appSwitcher?.image || e.icon;
|
|
569
561
|
return {
|
|
570
562
|
abbr: e.properties?.appSwitcher?.abbr || e.abbreviation,
|
|
571
563
|
itemId: e.itemId,
|
|
572
564
|
canAccess: !0,
|
|
573
565
|
webMappingApp: !0,
|
|
574
|
-
image: n ?
|
|
566
|
+
image: n ? Le(e, t, i) : void 0,
|
|
575
567
|
label: e.title || e.label,
|
|
576
568
|
url: e.url,
|
|
577
|
-
placeHolderIcon: e.placeHolderIcon ||
|
|
569
|
+
placeHolderIcon: e.placeHolderIcon || Ee()
|
|
578
570
|
};
|
|
579
571
|
}
|
|
580
|
-
function
|
|
581
|
-
return e.appSwitcher?.image || e.icon ? e.image =
|
|
572
|
+
function Ti(e, t, i) {
|
|
573
|
+
return e.appSwitcher?.image || e.icon ? e.image = Le(e, t, i) : e.placeHolderIcon = Ee(), e.abbr = e.appSwitcher?.abbr || e.abbreviation, delete e.abbreviation, delete e.appSwitcher, delete e.approvedApp, delete e.webMappingApp, e;
|
|
582
574
|
}
|
|
583
575
|
function ye(e, t) {
|
|
584
576
|
e.forEach((i) => {
|
|
585
577
|
i.uid === "Map Viewer Beta" && (i.uid = "Map Viewer"), t.isPortal && (i.uid === "Operations Dashboard for ArcGIS" ? i.uid = "ArcGIS Dashboards Classic" : i.uid === "Workforce for ArcGIS" && (i.uid = "ArcGIS Workforce"));
|
|
586
578
|
});
|
|
587
579
|
}
|
|
588
|
-
async function
|
|
580
|
+
async function Ci({
|
|
589
581
|
userApps: e,
|
|
590
582
|
servers: t,
|
|
591
583
|
portal: i,
|
|
@@ -598,7 +590,7 @@ async function Mi({
|
|
|
598
590
|
willQueryForItems: d,
|
|
599
591
|
approvedApps: m
|
|
600
592
|
}) {
|
|
601
|
-
const g = {}, p = {}, _ =
|
|
593
|
+
const g = {}, p = {}, _ = Ii(i, l, s, n), k = Pi(i), w = [], I = e.length;
|
|
602
594
|
for (let h = 0; h < I; h++) {
|
|
603
595
|
const u = e[h], v = u.itemId || u.title;
|
|
604
596
|
let P = !0;
|
|
@@ -648,8 +640,8 @@ async function Mi({
|
|
|
648
640
|
}
|
|
649
641
|
const N = await Bt(i);
|
|
650
642
|
return o.forEach((h) => {
|
|
651
|
-
if (h.type === "Web Mapping Application" && !
|
|
652
|
-
const u =
|
|
643
|
+
if (h.type === "Web Mapping Application" && !k[h.clientId] && !g[h.itemId] && h.url && h.title && !g[h.title] && !h.typeKeywords.includes("hideFromAppSwitcher")) {
|
|
644
|
+
const u = Ni(h, i, N);
|
|
653
645
|
p[h.itemId] = u, w.push(u);
|
|
654
646
|
}
|
|
655
647
|
}), {
|
|
@@ -662,7 +654,7 @@ async function Mi({
|
|
|
662
654
|
approvedApp: !0,
|
|
663
655
|
canAccess: !d
|
|
664
656
|
};
|
|
665
|
-
return p[h.itemId] = u,
|
|
657
|
+
return p[h.itemId] = u, Ti(u, i, N);
|
|
666
658
|
}),
|
|
667
659
|
...w
|
|
668
660
|
],
|
|
@@ -672,7 +664,7 @@ async function Mi({
|
|
|
672
664
|
function ie(e, t) {
|
|
673
665
|
return e.filter((i) => !t?.some(
|
|
674
666
|
(r) => i.itemId && i.itemId === r.itemid || i.title && i.title === r.title
|
|
675
|
-
));
|
|
667
|
+
) && i.itemId !== "ArcGIS Online");
|
|
676
668
|
}
|
|
677
669
|
function $e({
|
|
678
670
|
apps: e,
|
|
@@ -682,9 +674,9 @@ function $e({
|
|
|
682
674
|
portal: r
|
|
683
675
|
}) {
|
|
684
676
|
let a = Object.keys(i).map((s) => i[s]).filter((s) => s.itemId === t.uid || s.title === t.uid).shift();
|
|
685
|
-
return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) &&
|
|
677
|
+
return a && !i[t.uid] && (t.uid = a.itemId || a.title || ""), a?.hasBeenPopulated || (a ? ((t.hasChanged || a.hasChanged || !a.canAccess && !a.ignoreNoAccess) && zt(r.user) && (i[t.uid].hasChanged = !0, i[t.uid].ignoreNoAccess = t.ignoreNoAccess), t.isNew && (i[t.uid].isNew = !0), delete n[t.uid]) : (a = t, a.canAccess = !1, a.itemId = t.uid, i[t.uid] = a), i[t.uid].hasBeenPopulated = !0, e.push(a)), e;
|
|
686
678
|
}
|
|
687
|
-
async function
|
|
679
|
+
async function Mi({
|
|
688
680
|
portal: e,
|
|
689
681
|
trackViewerEnabled: t,
|
|
690
682
|
notebookServerEnabled: i
|
|
@@ -693,18 +685,18 @@ async function Oi({
|
|
|
693
685
|
return { apps: [], hiddenApps: {} };
|
|
694
686
|
const n = vi(), [r, o, a, s, l, d, m] = await Promise.all([
|
|
695
687
|
mi(e),
|
|
688
|
+
jt(e),
|
|
696
689
|
Dt(e),
|
|
697
|
-
|
|
690
|
+
Tt(e),
|
|
698
691
|
Ct(e),
|
|
699
692
|
Mt(e),
|
|
700
|
-
Ot(e),
|
|
701
693
|
gi(e)
|
|
702
|
-
]), g = e.isPortal ? await
|
|
694
|
+
]), g = e.isPortal ? await Ot(e) : null, p = a?.result?.properties;
|
|
703
695
|
let _ = r?.appSwitcher?.apps || [];
|
|
704
696
|
e.isPortal || (_ = _.filter(
|
|
705
697
|
(y) => y.title !== "Map Viewer Classic" || e.sourceJSON.created < /* @__PURE__ */ new Date("February 26 2025")
|
|
706
|
-
)
|
|
707
|
-
const
|
|
698
|
+
));
|
|
699
|
+
const k = s?.result?.approvedApps?.filter((y) => !y.hideForNonPrivilegedMember) || [], w = {};
|
|
708
700
|
o?.forEach((y) => {
|
|
709
701
|
const x = y.clientId?.toLowerCase();
|
|
710
702
|
x && (w[x] = {
|
|
@@ -719,7 +711,7 @@ async function Oi({
|
|
|
719
711
|
clientId: y.id
|
|
720
712
|
});
|
|
721
713
|
});
|
|
722
|
-
const I =
|
|
714
|
+
const I = _i(d, m), { apps: N, appDictionary: f } = await Ci({
|
|
723
715
|
userApps: _,
|
|
724
716
|
servers: g,
|
|
725
717
|
portal: e,
|
|
@@ -730,30 +722,30 @@ async function Oi({
|
|
|
730
722
|
trackViewerEnabled: t,
|
|
731
723
|
notebookServerEnabled: i,
|
|
732
724
|
willQueryForItems: n,
|
|
733
|
-
approvedApps:
|
|
725
|
+
approvedApps: k
|
|
734
726
|
});
|
|
735
727
|
p?.appLauncher && (p?.appLauncher.primary && ye(p?.appLauncher.primary, e), p?.appLauncher.secondary && ye(p?.appLauncher.secondary, e));
|
|
736
728
|
let h = [], u = [];
|
|
737
729
|
if (!p?.appLauncher?.primary || !p?.appLauncher.secondary)
|
|
738
730
|
h = N.slice().sort((y, x) => (y.label || "") < (x.label || "") ? -1 : 1), h = ie(h, I), u = [];
|
|
739
731
|
else {
|
|
740
|
-
const { result: y } = await fi(
|
|
741
|
-
y?.results?.length && y.results.forEach((
|
|
742
|
-
const b = f[
|
|
743
|
-
b.canAccess = !0, b.hasChanged = b.url !==
|
|
732
|
+
const { result: y } = await fi(k, n, e);
|
|
733
|
+
y?.results?.length && y.results.forEach((A) => {
|
|
734
|
+
const b = f[A.id];
|
|
735
|
+
b.canAccess = !0, b.hasChanged = b.url !== A.url ? !!A.url : !1;
|
|
744
736
|
});
|
|
745
737
|
const x = { ...f };
|
|
746
|
-
p?.appLauncher?.primary?.forEach((
|
|
747
|
-
|
|
738
|
+
p?.appLauncher?.primary?.forEach((A) => {
|
|
739
|
+
A.label === "Map Viewer" && (A.uid = "Map Viewer");
|
|
748
740
|
}), h = p?.appLauncher.primary.reduce(
|
|
749
|
-
(
|
|
741
|
+
(A, b) => $e({ apps: A, app: b, appDictionary: f, newAppDictionary: x, portal: e }),
|
|
750
742
|
[]
|
|
751
743
|
) || [], u = p?.appLauncher.secondary.reduce(
|
|
752
|
-
(
|
|
744
|
+
(A, b) => $e({ apps: A, app: b, appDictionary: f, newAppDictionary: x, portal: e }),
|
|
753
745
|
[]
|
|
754
|
-
) || [], h = ie(h, I), u = ie(u, I), oe(e) && (h = h.filter((
|
|
755
|
-
for (const
|
|
756
|
-
x[
|
|
746
|
+
) || [], h = ie(h, I), u = ie(u, I), oe(e) && (h = h.filter((A) => A.canAccess), u = u.filter((A) => A.canAccess));
|
|
747
|
+
for (const A of Object.keys(x))
|
|
748
|
+
x[A].canAccess && (x[A].isNew = !0, f[A] = x[A], h.push(x[A]));
|
|
757
749
|
}
|
|
758
750
|
const v = [...h, ...u], P = u.reduce((y, x) => (x.itemId && (y[x.itemId] = !0), y), {});
|
|
759
751
|
return {
|
|
@@ -764,10 +756,10 @@ async function Oi({
|
|
|
764
756
|
userProperties: p
|
|
765
757
|
};
|
|
766
758
|
}
|
|
767
|
-
function
|
|
759
|
+
function Oi(e, t) {
|
|
768
760
|
return !e?.itemId || !t ? !1 : t[e.itemId];
|
|
769
761
|
}
|
|
770
|
-
async function
|
|
762
|
+
async function Li({
|
|
771
763
|
apps: e,
|
|
772
764
|
hiddenApps: t,
|
|
773
765
|
userProperties: i,
|
|
@@ -783,9 +775,9 @@ async function Ei({
|
|
|
783
775
|
},
|
|
784
776
|
{ primary: [], secondary: [] }
|
|
785
777
|
), o = { ...i || {}, appLauncher: r };
|
|
786
|
-
return await
|
|
778
|
+
return await Et(o, n);
|
|
787
779
|
}
|
|
788
|
-
function
|
|
780
|
+
function je({ app: e }) {
|
|
789
781
|
if (!e)
|
|
790
782
|
return null;
|
|
791
783
|
if (!e.canAccess)
|
|
@@ -793,22 +785,22 @@ function ze({ app: e }) {
|
|
|
793
785
|
const t = !e.image && e.abbr;
|
|
794
786
|
return c`${t && c`<span class="list-item__logo">${e.placeHolderIcon && c`<img src=${we(e.placeHolderIcon) ?? M} class="list-item__logo-bg" alt>` || ""}<span style=${Ie({ fontSize: e.fontSize || "20px" })} class="list-item__abbr">${e.abbr}</span></span>` || ""}${e.image && c`<img src=${we(e.image) ?? M} class="list-item__logo" alt>` || ""}`;
|
|
795
787
|
}
|
|
796
|
-
function
|
|
788
|
+
function Ei({ app: e, hiddenApps: t, messages: i, toggleAppVisibility: n, handleAppDelete: r }) {
|
|
797
789
|
if (!e || !i)
|
|
798
790
|
return null;
|
|
799
|
-
const o =
|
|
800
|
-
return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${
|
|
791
|
+
const o = Oi(e, t), { title: a, itemId: s, label: l } = e;
|
|
792
|
+
return c`<calcite-list-item .label=${a || l} class=${re(o ? "app--hidden" : "")}><span slot=content-start>${je({ app: e })}</span>${e.canAccess ? c`<calcite-action .text=${o ? i.show : i.hide} .icon=${o ? "view-hide" : "view-visible"} slot=actions-end @click=${() => s && n(s, !o)}></calcite-action>` : c`<calcite-action .text=${i.delete} icon=x slot=actions-end @click=${() => s && r(s)}></calcite-action>`}</calcite-list-item>`;
|
|
801
793
|
}
|
|
802
|
-
function
|
|
794
|
+
function ji({ app: e, messages: t }) {
|
|
803
795
|
if (!e || !t)
|
|
804
796
|
return null;
|
|
805
797
|
const { title: i, itemId: n, label: r, url: o, isNew: a } = e, s = t?.descriptions?.[i] || t?.descriptions?.[r];
|
|
806
|
-
return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${
|
|
798
|
+
return c`<li class="list-item"><a class="list-item__link" href=${o ?? M} target=_blank id=${n ?? M} aria-describedby=${`${n}--tooltip`}>${c`<span class="list-item__container">${je({ app: e })}<span class="list-item__title">${r || i}</span>${a && c`<calcite-chip scale=s class="list-item__chip" .label=${t.new}>${t.new}</calcite-chip>` || ""}</span>`}</a>${s && c`<calcite-tooltip .referenceElement=${n} placement=trailing .id=${`${n}--tooltip`} role=tooltip>${s}</calcite-tooltip>` || ""}</li>`;
|
|
807
799
|
}
|
|
808
|
-
function
|
|
800
|
+
function Di({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, messages: r, handleAppsSearch: o, handleAppReorder: a, handleAppSave: s, handleAppHide: l, handleAppDelete: d, handleAppCancel: m, handleAppEdit: g, editingApplications: p, portal: _ }) {
|
|
809
801
|
if (!e || !r)
|
|
810
802
|
return null;
|
|
811
|
-
const
|
|
803
|
+
const k = i?.length > 0, w = (e || []).filter((f) => f.itemId && (!n?.[f.itemId] || k) && bi(i, f)), I = k ? r.noAppResults.replace("{term}", i) : r.noAppsAvailable, N = k ? T(_) ? r.noAppsDescriptionPublic : r.noAppResultsDescriptionOrg : r.noAppsAvailable;
|
|
812
804
|
return p ? c`<div class="list__header"><calcite-button appearance=outline width=half @click=${() => {
|
|
813
805
|
m();
|
|
814
806
|
}}>${r.cancel}</calcite-button><calcite-button width=half @click=${() => {
|
|
@@ -816,13 +808,13 @@ function zi({ apps: e, appsLoading: t, appsSearchTerm: i, hiddenApps: n, message
|
|
|
816
808
|
}}>${r.applyChanges}</calcite-button></div><calcite-list .label=${r.allMyApplications} drag-enabled @calciteListDragEnd=${(f) => {
|
|
817
809
|
const { newIndex: h, oldIndex: u } = f.detail;
|
|
818
810
|
a({ newIndex: h, oldIndex: u });
|
|
819
|
-
}} .loading=${t}>${U(e, (f) => f.itemId, (f) =>
|
|
811
|
+
}} .loading=${t}>${U(e, (f) => f.itemId, (f) => Ei({ app: f, hiddenApps: n, messages: r, toggleAppVisibility: (h, u) => {
|
|
820
812
|
l({ app: h, hidden: u });
|
|
821
813
|
}, 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) => {
|
|
822
814
|
o(f.currentTarget.value);
|
|
823
|
-
}}></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) =>
|
|
815
|
+
}}></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) => ji({ app: f, messages: r }))}</ul>` : K({ title: I, description: N, icon: i ? "search" : "apps" })}`;
|
|
824
816
|
}
|
|
825
|
-
const
|
|
817
|
+
const ke = "portalAppClientId", pe = {
|
|
826
818
|
GeoanalyticsEngine: "geoanalyticsengine",
|
|
827
819
|
GeoanalyticsFabric: "geoanalyticsfabric",
|
|
828
820
|
IndoorsOnline: "indoorsonline"
|
|
@@ -833,13 +825,13 @@ function he(e) {
|
|
|
833
825
|
function me(e) {
|
|
834
826
|
return pe.GeoanalyticsFabric === e;
|
|
835
827
|
}
|
|
836
|
-
function
|
|
828
|
+
function De(e) {
|
|
837
829
|
return pe.IndoorsOnline === e;
|
|
838
830
|
}
|
|
839
831
|
function Q(e) {
|
|
840
832
|
return ["Location Platform", "GeoAnalytics Fabric", "GeoAnalytics Engine", "Online", "Enterprise"].includes(e);
|
|
841
833
|
}
|
|
842
|
-
function
|
|
834
|
+
function zi({
|
|
843
835
|
portal: e,
|
|
844
836
|
messages: t,
|
|
845
837
|
licenses: i,
|
|
@@ -848,28 +840,28 @@ function Gi({
|
|
|
848
840
|
}) {
|
|
849
841
|
if (!t || !e)
|
|
850
842
|
return [];
|
|
851
|
-
const o = e.sourceJSON?.subscriptionInfo, a =
|
|
843
|
+
const o = e.sourceJSON?.subscriptionInfo, a = Fi({ messages: t, portal: e });
|
|
852
844
|
if (!e.user)
|
|
853
845
|
return a;
|
|
854
846
|
if (!e || !a || e?.user && !i && !T(e))
|
|
855
847
|
return [];
|
|
856
|
-
const s =
|
|
848
|
+
const s = Vi({
|
|
857
849
|
portal: e,
|
|
858
850
|
licenses: i,
|
|
859
851
|
subscriptionInfo: o
|
|
860
|
-
}), l =
|
|
852
|
+
}), l = Wi({
|
|
861
853
|
messages: t,
|
|
862
854
|
portal: e,
|
|
863
855
|
clientId: n,
|
|
864
856
|
signInSettings: r,
|
|
865
857
|
navLinkDictionary: s
|
|
866
858
|
});
|
|
867
|
-
return
|
|
859
|
+
return Gi({ links: l, portal: e });
|
|
868
860
|
}
|
|
869
|
-
function
|
|
861
|
+
function Ae(e, t) {
|
|
870
862
|
return t ? e.configName ? t.indexOf(e.configName) : t.length : 0;
|
|
871
863
|
}
|
|
872
|
-
function
|
|
864
|
+
function Gi({
|
|
873
865
|
links: e,
|
|
874
866
|
portal: t
|
|
875
867
|
}) {
|
|
@@ -877,24 +869,30 @@ function Ui({
|
|
|
877
869
|
if (!i)
|
|
878
870
|
return e;
|
|
879
871
|
const n = i.customPage;
|
|
880
|
-
return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({
|
|
881
|
-
|
|
882
|
-
|
|
872
|
+
return n?.enabled && (n.visibility !== "members" || t.user?.orgId === t.id) && e.push({
|
|
873
|
+
label: n.name,
|
|
874
|
+
href: n.url,
|
|
875
|
+
configName: "customPage",
|
|
876
|
+
icon: n.iconName ?? "link",
|
|
877
|
+
newTab: !0
|
|
878
|
+
}), i.order ? e.sort((r, o) => Ae(r, i.order) - Ae(o, i.order)) : e;
|
|
879
|
+
}
|
|
880
|
+
function Ui(e) {
|
|
883
881
|
const { id: t, access: i, isPortal: n } = e;
|
|
884
882
|
return !t && !i && !n;
|
|
885
883
|
}
|
|
886
|
-
function
|
|
884
|
+
function Bi(e, t, i) {
|
|
887
885
|
if (i === "customPage")
|
|
888
886
|
return !1;
|
|
889
887
|
const n = new URL(e), r = t || window.location.pathname;
|
|
890
888
|
return n.pathname === r;
|
|
891
889
|
}
|
|
892
|
-
function
|
|
890
|
+
function ze({
|
|
893
891
|
portal: e,
|
|
894
892
|
clientId: t,
|
|
895
893
|
signInSettings: i
|
|
896
894
|
}) {
|
|
897
|
-
const n = e.user, r =
|
|
895
|
+
const n = e.user, r = De(t), o = !!i?.blockedApps?.includes("arcgisnotebooks"), a = e.portalProperties, {
|
|
898
896
|
gallery: s = "all",
|
|
899
897
|
groups: l = "all",
|
|
900
898
|
map: d = "all",
|
|
@@ -904,8 +902,8 @@ function Ue({
|
|
|
904
902
|
let p = ["home"];
|
|
905
903
|
if (!n) {
|
|
906
904
|
if (!a?.topNav) {
|
|
907
|
-
const
|
|
908
|
-
return [...p, ...
|
|
905
|
+
const k = ["gallery", "map", "scene", "groups"], w = e.isPortal ? ["help"] : [];
|
|
906
|
+
return [...p, ...k, ...w];
|
|
909
907
|
}
|
|
910
908
|
return [
|
|
911
909
|
...p,
|
|
@@ -923,15 +921,15 @@ function Ue({
|
|
|
923
921
|
...(d === "all" || d === "members" && _ || d === "mapCreators" && ge(n)) && !r ? ["map"] : [],
|
|
924
922
|
...(g === "all" || g === "members" && _ || g === "sceneCreators" && ge(n)) && !r ? ["scene"] : [],
|
|
925
923
|
...!o && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
926
|
-
(!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (m === "members" && _ || m === "notebookCreators" &&
|
|
924
|
+
(!e.isPortal || e.sourceJSON.supportsHostedNotebooks) && (m === "members" && _ || m === "notebookCreators" && Nt(n)) && !r ? ["notebook"] : [],
|
|
927
925
|
...(l === "all" || l === "members" && _) && !r ? ["groups"] : [],
|
|
928
926
|
..._ && !r ? ["myContent", "organization"] : []
|
|
929
927
|
], p;
|
|
930
928
|
}
|
|
931
929
|
function O(e) {
|
|
932
|
-
return `${
|
|
930
|
+
return `${It({ portal: e })}/`;
|
|
933
931
|
}
|
|
934
|
-
function
|
|
932
|
+
function Ri({
|
|
935
933
|
keys: e,
|
|
936
934
|
navLinkDictionary: t,
|
|
937
935
|
messages: i
|
|
@@ -952,7 +950,7 @@ function Fi({
|
|
|
952
950
|
}
|
|
953
951
|
}), n;
|
|
954
952
|
}
|
|
955
|
-
function
|
|
953
|
+
function Fi({
|
|
956
954
|
messages: e,
|
|
957
955
|
portal: t
|
|
958
956
|
}) {
|
|
@@ -986,16 +984,16 @@ function Wi({
|
|
|
986
984
|
configName: "groups"
|
|
987
985
|
}
|
|
988
986
|
};
|
|
989
|
-
return (
|
|
987
|
+
return (Ui(t) ? ["overview", "pricing", "map", "scene", "help"] : ze({ portal: t })).map((o) => n[o]);
|
|
990
988
|
}
|
|
991
|
-
function
|
|
989
|
+
function Wi({
|
|
992
990
|
messages: e,
|
|
993
991
|
portal: t,
|
|
994
992
|
clientId: i,
|
|
995
993
|
signInSettings: n,
|
|
996
994
|
navLinkDictionary: r
|
|
997
995
|
}) {
|
|
998
|
-
const o = he(i), a =
|
|
996
|
+
const o = he(i), a = ze({ portal: t, clientId: i, signInSettings: n }), s = `${O(t)}geoanalytics${o ? "engine" : "fabric"}.html`;
|
|
999
997
|
return o || me(i) ? [
|
|
1000
998
|
{
|
|
1001
999
|
// TODO: active calculations in the component need to account for hash for these options
|
|
@@ -1016,9 +1014,9 @@ function Vi({
|
|
|
1016
1014
|
href: `${s}#account`,
|
|
1017
1015
|
label: e.account
|
|
1018
1016
|
}
|
|
1019
|
-
] :
|
|
1017
|
+
] : Ri({ keys: a, messages: e, navLinkDictionary: r });
|
|
1020
1018
|
}
|
|
1021
|
-
function
|
|
1019
|
+
function Vi({
|
|
1022
1020
|
portal: e,
|
|
1023
1021
|
licenses: t,
|
|
1024
1022
|
subscriptionInfo: i
|
|
@@ -1094,25 +1092,25 @@ function Hi({
|
|
|
1094
1092
|
}
|
|
1095
1093
|
};
|
|
1096
1094
|
}
|
|
1097
|
-
function
|
|
1095
|
+
function Hi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
|
|
1098
1096
|
if (!t || !i || !t.modified)
|
|
1099
1097
|
return null;
|
|
1100
|
-
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s =
|
|
1098
|
+
const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ne(Te(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Yt({ locale: r, time: o }, s?.[1] === "year") : Ce({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, m = `${O(e)}${d}}`;
|
|
1101
1099
|
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${m ?? M} @click=${(g) => {
|
|
1102
1100
|
n({ event: g, href: m, relativePath: d });
|
|
1103
1101
|
}}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${X(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
|
|
1104
1102
|
}
|
|
1105
|
-
function
|
|
1103
|
+
function qi({ locale: e, navigate: t, portal: i, open: n, apps: r, appsLoading: o, hiddenApps: a, appsSearchTerm: s, handlePlatformClose: l, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: k, handleAppEdit: w, handleItemSearch: I, handlePlatformTabUpdate: N, platformTab: f, editingApplications: h, recentContent: u, recentContentLoading: v, recentContentSearchTerm: P, product: y, platformInfo: x, links: A, messages: b }) {
|
|
1106
1104
|
if (!y || !i || !b)
|
|
1107
1105
|
return null;
|
|
1108
1106
|
const { name: j, icon: L } = x || {};
|
|
1109
|
-
return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${L ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__container"><div class="platform__tiles">${
|
|
1107
|
+
return c`<calcite-sheet class="platform" .label=${b.label} position=inline-start display-mode=overlay id=example-sheet .open=${n} @calciteSheetClose=${l}><calcite-panel class="platform__panel"><div slot=header-content class="platform__header"><img src=${L ?? M} class="platform__header-image"><div class="platform__header-text"><h2 class="platform__title">${j}</h2><p class="platform__subtitle">${i.name}</p></div><calcite-action icon=x text="Close menu" scale=l @click=${l}></calcite-action></div><div class="platform__container"><div class="platform__tiles">${A.filter(({ icon: $ }) => $).map(({ label: $, href: E, icon: Y, relativePath: H }) => c`<calcite-tile .icon=${Y} .description=${$} .href=${E} alignment=center scale=s @keydown=${(D) => {
|
|
1110
1108
|
(D.key === "Enter" || D.key === " ") && t({ event: D, href: E, relativePath: H });
|
|
1111
1109
|
}} @click=${(D) => {
|
|
1112
1110
|
t({ event: D, href: E, relativePath: H });
|
|
1113
1111
|
}}></calcite-tile>`)}</div>${i?.user && c`<calcite-tabs layout=center class="platform__tabs"><calcite-tab-nav slot=title-group @calciteTabChange=${($) => {
|
|
1114
1112
|
N($.target.selectedTitle?.dataset.id);
|
|
1115
|
-
}}>${!T(i) && c`<calcite-tab-title .selected=${f === "apps"}>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title .selected=${f === "content"}>${b.recentContent}</calcite-tab-title></calcite-tab-nav>${!T(i) && c`<calcite-tab .selected=${f === "apps"} class="platform__tab" data-id=apps>${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${
|
|
1113
|
+
}}>${!T(i) && c`<calcite-tab-title .selected=${f === "apps"}>${b.myApps}</calcite-tab-title>` || ""}<calcite-tab-title .selected=${f === "content"}>${b.recentContent}</calcite-tab-title></calcite-tab-nav>${!T(i) && c`<calcite-tab .selected=${f === "apps"} class="platform__tab" data-id=apps>${o && c`<calcite-scrim loading></calcite-scrim>` || ""}${Di({ apps: r, appsLoading: o, appsSearchTerm: s, hiddenApps: a, messages: b, handleAppsSearch: d, handleAppReorder: m, handleAppSave: g, handleAppDelete: p, handleAppHide: _, handleAppCancel: k, handleAppEdit: w, editingApplications: h, portal: i })}</calcite-tab>` || ""}<calcite-tab class="platform__tab" .selected=${f === "content"} data-id=content><div class="list__header"><calcite-input type=search icon .placeholder=${b.searchRecentContent} .value=${P} scale=m class="list__search" @calciteInputInput=${($) => I($.target.value)}></calcite-input></div>${v && !o && c`<calcite-scrim loading></calcite-scrim>` || ""}<div class="list__container">${u?.length > 0 || v ? c`<ul class="list">${U(u, ($) => $.id, ($) => Hi({ portal: i, messages: b, navigate: t, item: $, locale: e }))}</ul>` : P?.length ? K({ title: X(b.noAppResults, { term: P }), description: b.recentContentNoResultsDescription, icon: "search" }) : K({ title: b.noContent, description: b.noContentDescription, icon: "clock" })}</div></calcite-tab></calcite-tabs>` || ""}</div></calcite-panel></calcite-sheet>`;
|
|
1116
1114
|
}
|
|
1117
1115
|
const ae = [
|
|
1118
1116
|
"new",
|
|
@@ -1125,19 +1123,19 @@ const ae = [
|
|
|
1125
1123
|
"embed",
|
|
1126
1124
|
"details"
|
|
1127
1125
|
];
|
|
1128
|
-
async function
|
|
1126
|
+
async function Ji(e) {
|
|
1129
1127
|
return await Promise.resolve({ status: "success" });
|
|
1130
1128
|
}
|
|
1131
1129
|
function se(e) {
|
|
1132
1130
|
return ae.includes(e.id);
|
|
1133
1131
|
}
|
|
1134
|
-
function
|
|
1132
|
+
function Ki(e) {
|
|
1135
1133
|
return (e || [])?.toSorted((t, i) => {
|
|
1136
1134
|
const n = se(t), r = se(i);
|
|
1137
1135
|
return n && !r ? -1 : r && !n ? 1 : r && n ? ae.indexOf(t.id) - ae.indexOf(i.id) : -1;
|
|
1138
1136
|
});
|
|
1139
1137
|
}
|
|
1140
|
-
function
|
|
1138
|
+
function Qi(e, t) {
|
|
1141
1139
|
const i = {
|
|
1142
1140
|
new: [],
|
|
1143
1141
|
save: [],
|
|
@@ -1157,7 +1155,7 @@ function Xi(e, t) {
|
|
|
1157
1155
|
copyLink: { text: t.copyLink, group: "share" },
|
|
1158
1156
|
embed: { text: t.embed, group: "share" },
|
|
1159
1157
|
details: { text: t.itemDetails, group: "details", external: !0 }
|
|
1160
|
-
}, r =
|
|
1158
|
+
}, r = Ki(e), o = [];
|
|
1161
1159
|
return r.forEach((a) => {
|
|
1162
1160
|
if (!se(a)) {
|
|
1163
1161
|
o.push(a);
|
|
@@ -1170,7 +1168,7 @@ function Xi(e, t) {
|
|
|
1170
1168
|
i[s].push(a);
|
|
1171
1169
|
}), i;
|
|
1172
1170
|
}
|
|
1173
|
-
function
|
|
1171
|
+
function Xi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, openProjectTitleEdit: o, projectMenuClick: a }) {
|
|
1174
1172
|
if (!t || !n || !i || i.id === "details" && !r)
|
|
1175
1173
|
return null;
|
|
1176
1174
|
const { external: s, id: l, text: d } = i, m = `${O(t)}item.html?id=${r?.id}`;
|
|
@@ -1182,22 +1180,22 @@ function Yi({ navigate: e, portal: t, menuItem: i, messages: n, portalItem: r, o
|
|
|
1182
1180
|
l === "details" && e({ event: g, href: m }), a?.({ type: l });
|
|
1183
1181
|
}}>${d}${l === "save" && c`<calcite-icon icon=bullet-point-large class="project__indicator" scale=s></calcite-icon>` || ""}</calcite-dropdown-item>`);
|
|
1184
1182
|
}
|
|
1185
|
-
function
|
|
1183
|
+
function Yi({ navigate: e, portal: t, projectTitle: i, editedProjectTitle: n, handleProjectTitleSave: r, handleProjectTitleEdit: o, handleProjectTitleCancel: a, openProjectTitleEdit: s, portalItem: l, projectTitleEditing: d, projectTitleSaving: m, projectTitleErrorMessage: g, projectMenuIcon: p, projectMenuSaveIndicator: _, projectMenuClick: k, projectMenuOptions: w, projectTitleInputRef: I, projectButtonRef: N, messages: f }) {
|
|
1186
1184
|
if (!t || !f || !w?.length && !i)
|
|
1187
1185
|
return null;
|
|
1188
1186
|
if (!w?.length)
|
|
1189
1187
|
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>`;
|
|
1190
|
-
const h =
|
|
1188
|
+
const h = Qi(w, f), u = !!g;
|
|
1191
1189
|
return d ? c`<form class="rename" @submit=${async (v) => {
|
|
1192
1190
|
v.preventDefault(), await r?.(n);
|
|
1193
1191
|
}} @keydown=${(v) => {
|
|
1194
1192
|
v.key === "Escape" && a?.();
|
|
1195
|
-
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${f.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(v) => o?.(v.target.value)} ${W(I)}></calcite-input>${u && c`<calcite-popover open .label=${f.error} .referenceElement=${I?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${g}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${m} icon=check scale=l .text=${f?.saveRename} active class="rename__action" type=submit .loading=${m}></calcite-action><calcite-action .disabled=${m} icon=x scale=l .text=${f?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(N)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${_ && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(h).filter(([v, P]) => P.length), ([v, P]) => v, ([v, P]) => c`<calcite-dropdown-group selection-mode=none>${P.map((y) =>
|
|
1193
|
+
}}><calcite-input id=project-title-input type=text scale=l class="rename__input" .label=${f.title} .value=${n} .status=${u ? "invalid" : "idle"} @calciteInputInput=${(v) => o?.(v.target.value)} ${W(I)}></calcite-input>${u && c`<calcite-popover open .label=${f.error} .referenceElement=${I?.value || "project-title-input"} pointer-disabled placement=bottom-start><calcite-notice kind=danger open><div slot=message>${g}</div></calcite-notice></calcite-popover>` || ""}<calcite-action .disabled=${m} icon=check scale=l .text=${f?.saveRename} active class="rename__action" type=submit .loading=${m}></calcite-action><calcite-action .disabled=${m} icon=x scale=l .text=${f?.cancelRename} class="rename__action" @click=${() => a?.()}></calcite-action></form>` : c`<calcite-dropdown width=m class="fade-in project__dropdown"><button slot=trigger class="project" ${W(N)}>${p && c`<calcite-icon scale=s .icon=${p} class="project__menu-icon"></calcite-icon>` || ""}<span class="project__text">${i}</span>${_ && c`<calcite-icon scale=s icon=bullet-point-large class="project__indicator"></calcite-icon>` || ""}<calcite-icon scale=s icon=chevron-down></calcite-icon></button>${U(Object.entries(h).filter(([v, P]) => P.length), ([v, P]) => v, ([v, P]) => c`<calcite-dropdown-group selection-mode=none>${P.map((y) => Xi({ menuItem: y, navigate: e, portal: t, messages: f, portalItem: l, openProjectTitleEdit: s, projectMenuClick: k }))}</calcite-dropdown-group>`)}</calcite-dropdown>`;
|
|
1196
1194
|
}
|
|
1197
|
-
function
|
|
1195
|
+
function Zi(e) {
|
|
1198
1196
|
return ["Location Platform", "Online", "Enterprise"].includes(e);
|
|
1199
1197
|
}
|
|
1200
|
-
function
|
|
1198
|
+
function Ge({
|
|
1201
1199
|
portal: e,
|
|
1202
1200
|
searchType: t,
|
|
1203
1201
|
searchTerm: i
|
|
@@ -1205,7 +1203,7 @@ function Be({
|
|
|
1205
1203
|
const r = e?.sourceJSON?.vectorSearchEnabled ? `&mode=${t}` : "";
|
|
1206
1204
|
return `search.html?q=${i}${r}`;
|
|
1207
1205
|
}
|
|
1208
|
-
function
|
|
1206
|
+
function en({ portal: e, item: t, messages: i, navigate: n }) {
|
|
1209
1207
|
if (!t || !i)
|
|
1210
1208
|
return null;
|
|
1211
1209
|
const r = X(i.by, {
|
|
@@ -1214,52 +1212,52 @@ function tn({ portal: e, item: t, messages: i, navigate: n }) {
|
|
|
1214
1212
|
}), o = `item.html?id=${t.id}`, a = `${O(e)}${o}`;
|
|
1215
1213
|
return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${a ?? M} @click=${(s) => n({ event: s, href: a, 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>`);
|
|
1216
1214
|
}
|
|
1217
|
-
function
|
|
1215
|
+
function tn({ portal: e, suggestions: t, messages: i, navigate: n, searchType: r, searchTerm: o }) {
|
|
1218
1216
|
if (!i || !e || !o)
|
|
1219
1217
|
return null;
|
|
1220
1218
|
if (!t)
|
|
1221
1219
|
return c`<div><calcite-loader scale=l .label=${i.loadingResults}></calcite-loader></div>`;
|
|
1222
|
-
const a =
|
|
1223
|
-
return c`<ul class="list">${t.map((d) =>
|
|
1220
|
+
const a = Ge({ portal: e, searchType: r, searchTerm: o }), s = `/${a}`, l = `${O(e)}${a}`;
|
|
1221
|
+
return c`<ul class="list">${t.map((d) => en({ 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) => {
|
|
1224
1222
|
n({ href: l, event: d, relativePath: s });
|
|
1225
1223
|
}}>${i.viewAll}</calcite-button></div>`;
|
|
1226
1224
|
}
|
|
1227
|
-
function
|
|
1225
|
+
function nn({ portal: e, messages: t, searchType: i, handleSearchTypeChange: n }) {
|
|
1228
1226
|
if (!t || !e?.sourceJSON?.vectorSearchEnabled)
|
|
1229
1227
|
return null;
|
|
1230
1228
|
const r = i === "keyword", o = t.searchType;
|
|
1231
1229
|
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>`;
|
|
1232
1230
|
}
|
|
1233
|
-
function
|
|
1234
|
-
if (!
|
|
1231
|
+
function rn({ currentPathname: e, navigate: t, product: i, portal: n, messages: r, searchActive: o, searchType: a, searchTerm: s, suggestions: l, searchInputRef: d, searchActionRef: m, searchPopoverRef: g, handleSearch: p, handleToggleSearch: _, handleSearchTypeChange: k }) {
|
|
1232
|
+
if (!Zi(i) || !r || !n || e?.includes("search.html"))
|
|
1235
1233
|
return null;
|
|
1236
|
-
const w =
|
|
1234
|
+
const w = Ge({ portal: n, searchType: a, searchTerm: s }), I = `/${w}`, N = `${O(n)}${w}`;
|
|
1237
1235
|
return o ? c`<div class="search" id=search-reference-element><calcite-input type=search scale=l icon=search class="search__input" .ariaLabel=${r.label} .placeholder=${a === "vector" ? r.searchType.semanticPlaceholder : r.searchType.keywordPlaceholder} @calciteInputInput=${(f) => p(f.target.value)} @keydown=${(f) => {
|
|
1238
1236
|
f.key === "Enter" && (t({ href: N, event: f, relativePath: I }), f.defaultPrevented || (window.location.href = N)), f.key === "Escape" && _(!1);
|
|
1239
|
-
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => _(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(g)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${
|
|
1237
|
+
}} ${W(d)}></calcite-input><calcite-action icon=x scale=l .text=${r?.close} active class="search__action" @click=${() => _(!1)}></calcite-action><calcite-popover .label=${r.suggestions} reference-element=search-reference-element .open=${o && !!s} pointer-disabled placement=bottom-start trigger-disabled .focusTrapOptions=${{ initialFocus: !1 }} ${W(g)}><div class="suggestions__header"><h3 class="suggestions__title">${r.topResults}</h3>${nn({ portal: n, messages: r, searchType: a, handleSearchTypeChange: k })}</div><div class="suggestions__results">${tn({ portal: n, suggestions: l, navigate: t, messages: r, searchType: a, searchTerm: s })}</div></calcite-popover></div>` : c`<calcite-action icon=search scale=l text=search class="search__action" @click=${() => _(!0)} ${W(m)}></calcite-action>`;
|
|
1240
1238
|
}
|
|
1241
|
-
function
|
|
1239
|
+
function on({ signIn: e, messages: t }) {
|
|
1242
1240
|
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>`;
|
|
1243
1241
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: m }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .active=${
|
|
1242
|
+
function an({ navigate: e, portal: t, product: i, links: n, messages: r, currentPathname: o, searchActive: a }) {
|
|
1243
|
+
return Q(i) && n?.length === 0 && t ? c`<div slot=content-start class="site-nav skeleton">${["Overview", "Pricing", "Map", "Scene", "Help"].map((s) => c`<span class="skeleton-line" aria-hidden>${s}</span>`)}</div>` : !i || !t || !r || !Q(i) || !n || a ? null : c`<calcite-menu slot=content-start .label=${r.label} class="site-nav fade-in">${U(n, ({ href: s }) => s, ({ label: s, href: l, relativePath: d, configName: m, newTab: g }) => c`<calcite-menu-item .text=${s} text-enabled .label=${s} .href=${l} .target=${g ? "_blank" : void 0} .active=${Bi(l, o, m)} @click=${(p) => e({ event: p, href: l, relativePath: d })}></calcite-menu-item>`)}</calcite-menu>`;
|
|
1246
1244
|
}
|
|
1247
|
-
function
|
|
1245
|
+
function sn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, portal: r, signOut: o, textDisabled: a }) {
|
|
1248
1246
|
const s = r?.user;
|
|
1249
|
-
return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: m, label: g, href: p, relativePath: _ }) => c`<calcite-dropdown-item .iconStart=${m} .href=${p} @keydown=${(
|
|
1250
|
-
(
|
|
1251
|
-
}} @click=${(
|
|
1252
|
-
i({ event:
|
|
1247
|
+
return !s || !e || !t || e?.account?.options.length < 1 && e?.resources?.options.length < 1 ? null : c`<div class="user"><calcite-dropdown .width=${a ? "l" : "m"} class="user__dropdown"><calcite-button class="user__button" slot=trigger appearance=transparent kind=neutral><span class="user__button__contents"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__button__avatar"></arcgis-portal-user-avatar>${!a && c`<span class="user__button__text"><h2 class="user__button__full user__full">${s.fullName}</h2><p class="user__button__username user__username">${s.username}</p></span>` || ""}</span></calcite-button>${a && c`<div class="user__top"><arcgis-portal-user-avatar .user=${s} .portal=${r} scale=l class="user__avatar"></arcgis-portal-user-avatar><div class="user__top__text"><h2 class="user__top__full user__full">${s.fullName}</h2><p class="user__top__username user__username">${s.username}</p></div></div>` || ""}${Object.values(e).filter((l) => l.options.length).map(({ title: l, options: d }) => c`<calcite-dropdown-group selection-mode=none .groupTitle=${l}>${d.map(({ icon: m, label: g, href: p, relativePath: _ }) => c`<calcite-dropdown-item .iconStart=${m} .href=${p} @keydown=${(k) => {
|
|
1248
|
+
(k.key === "Enter" || k.key === " ") && i({ event: k, href: p, relativePath: _ });
|
|
1249
|
+
}} @click=${(k) => {
|
|
1250
|
+
i({ event: k, href: p, relativePath: _ });
|
|
1253
1251
|
}}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
|
|
1254
1252
|
const d = Wt(l.target, "calcite-dropdown");
|
|
1255
1253
|
d && (d.open = !1), n();
|
|
1256
1254
|
}}>${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>`;
|
|
1257
1255
|
}
|
|
1258
|
-
const
|
|
1256
|
+
const Ue = {
|
|
1259
1257
|
community: "https://community.esri.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fcommunity.esri.com%2F",
|
|
1260
1258
|
myEsri: "https://my.esri.com"
|
|
1261
1259
|
};
|
|
1262
|
-
function
|
|
1260
|
+
function cn({
|
|
1263
1261
|
messages: e,
|
|
1264
1262
|
userLinks: t
|
|
1265
1263
|
}) {
|
|
@@ -1271,7 +1269,7 @@ function ln({
|
|
|
1271
1269
|
i[n.group].options.push(n);
|
|
1272
1270
|
}), i;
|
|
1273
1271
|
}
|
|
1274
|
-
function
|
|
1272
|
+
function ln({
|
|
1275
1273
|
portal: e,
|
|
1276
1274
|
messages: t,
|
|
1277
1275
|
clientId: i
|
|
@@ -1281,10 +1279,10 @@ function un({
|
|
|
1281
1279
|
account: { title: t?.account, options: [] },
|
|
1282
1280
|
resources: { title: t?.account, options: [] }
|
|
1283
1281
|
};
|
|
1284
|
-
const n =
|
|
1285
|
-
return
|
|
1282
|
+
const n = pn(e), r = un({ navLinkDictionary: n, messages: t, clientId: i });
|
|
1283
|
+
return cn({ userLinks: r, messages: t });
|
|
1286
1284
|
}
|
|
1287
|
-
function
|
|
1285
|
+
function un({
|
|
1288
1286
|
navLinkDictionary: e,
|
|
1289
1287
|
messages: t,
|
|
1290
1288
|
clientId: i
|
|
@@ -1299,9 +1297,9 @@ function dn({
|
|
|
1299
1297
|
"arcgisBlog",
|
|
1300
1298
|
"help"
|
|
1301
1299
|
];
|
|
1302
|
-
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]),
|
|
1300
|
+
return (he(i) || me(i)) && (n = ["mySettings", "arcgisBlog", "help"]), De(i) && (n = []), dn(n, t, e);
|
|
1303
1301
|
}
|
|
1304
|
-
function
|
|
1302
|
+
function dn(e, t, i) {
|
|
1305
1303
|
const n = [];
|
|
1306
1304
|
return e.forEach((r) => {
|
|
1307
1305
|
const o = i[r];
|
|
@@ -1318,8 +1316,8 @@ function pn(e, t, i) {
|
|
|
1318
1316
|
}
|
|
1319
1317
|
}), n;
|
|
1320
1318
|
}
|
|
1321
|
-
function
|
|
1322
|
-
const t = O(e), i =
|
|
1319
|
+
function pn(e) {
|
|
1320
|
+
const t = O(e), i = hn(e), n = `user.html${window.location.pathname.includes("home/user.html") ? "?nav=1" : ""}`;
|
|
1323
1321
|
return {
|
|
1324
1322
|
myProfile: {
|
|
1325
1323
|
href: `${t}${n}`,
|
|
@@ -1343,14 +1341,14 @@ function hn(e) {
|
|
|
1343
1341
|
show: i,
|
|
1344
1342
|
group: "resources",
|
|
1345
1343
|
icon: "speech-bubbles",
|
|
1346
|
-
href:
|
|
1344
|
+
href: Ue.community,
|
|
1347
1345
|
newTab: !0
|
|
1348
1346
|
},
|
|
1349
1347
|
myEsri: {
|
|
1350
1348
|
show: i,
|
|
1351
1349
|
group: "account",
|
|
1352
1350
|
icon: "globe",
|
|
1353
|
-
href:
|
|
1351
|
+
href: fn(e),
|
|
1354
1352
|
newTab: !0
|
|
1355
1353
|
},
|
|
1356
1354
|
arcgisBlog: {
|
|
@@ -1364,41 +1362,41 @@ function hn(e) {
|
|
|
1364
1362
|
show: i,
|
|
1365
1363
|
group: "resources",
|
|
1366
1364
|
icon: "education",
|
|
1367
|
-
href:
|
|
1365
|
+
href: mn(e),
|
|
1368
1366
|
newTab: !0
|
|
1369
1367
|
},
|
|
1370
1368
|
trialDownload: {
|
|
1371
1369
|
group: "resources",
|
|
1372
1370
|
icon: "download-to",
|
|
1373
|
-
show:
|
|
1371
|
+
show: bn(e),
|
|
1374
1372
|
href: `${t}/home/user.html${window.location.pathname.includes("home/user.html") ? "?nav=1&tab=licenses" : "?tab=licenses"}#settings`
|
|
1375
1373
|
}
|
|
1376
1374
|
};
|
|
1377
1375
|
}
|
|
1378
|
-
function
|
|
1376
|
+
function hn(e) {
|
|
1379
1377
|
return !e.isPortal && e?.user?.sourceJSON?.userType === "both";
|
|
1380
1378
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1379
|
+
function mn(e) {
|
|
1380
|
+
return Be(
|
|
1383
1381
|
e,
|
|
1384
1382
|
`${window.location.protocol}//www.esri.com/training/arcgis-online-training`
|
|
1385
1383
|
);
|
|
1386
1384
|
}
|
|
1387
|
-
function
|
|
1388
|
-
return
|
|
1385
|
+
function fn(e) {
|
|
1386
|
+
return Be(e, Ue.myEsri);
|
|
1389
1387
|
}
|
|
1390
|
-
function
|
|
1391
|
-
const i = de(e), n =
|
|
1388
|
+
function Be(e, t) {
|
|
1389
|
+
const i = de(e), n = gn(e), r = `https://accounts${n ? n === "dev" ? "-dev" : "-stg" : ""}.esri.com/`, o = `&authBaseUrl=${J(i.replace("/sharing/rest/", ""), e)}`, a = `${r}LoginHandler/switchuser?`, s = `username=${e?.user?.username ?? ""}&redirect_uri=${t}${o}`;
|
|
1392
1390
|
return `${a}${s}`;
|
|
1393
1391
|
}
|
|
1394
|
-
function
|
|
1392
|
+
function gn(e) {
|
|
1395
1393
|
const t = e.portalHostname;
|
|
1396
1394
|
return t?.includes("dev") ? "dev" : t?.includes("qa") ? "qa" : "";
|
|
1397
1395
|
}
|
|
1398
|
-
function
|
|
1396
|
+
function bn(e) {
|
|
1399
1397
|
return !e?.isPortal && ["Trial", "Trial Press"].includes(e?.sourceJSON.subscriptionInfo?.type);
|
|
1400
1398
|
}
|
|
1401
|
-
function
|
|
1399
|
+
function Re(e) {
|
|
1402
1400
|
switch (e) {
|
|
1403
1401
|
case "360 VR":
|
|
1404
1402
|
return {
|
|
@@ -1619,7 +1617,7 @@ function We(e) {
|
|
|
1619
1617
|
};
|
|
1620
1618
|
}
|
|
1621
1619
|
}
|
|
1622
|
-
function
|
|
1620
|
+
function Fe({
|
|
1623
1621
|
name: e,
|
|
1624
1622
|
fileName: t,
|
|
1625
1623
|
icon: i
|
|
@@ -1630,37 +1628,37 @@ function Ve({
|
|
|
1630
1628
|
icon: ne(`assets/portal-navigation/apps/${i}.avif`)
|
|
1631
1629
|
};
|
|
1632
1630
|
}
|
|
1633
|
-
function
|
|
1631
|
+
function We({ portal: e, clientId: t }) {
|
|
1634
1632
|
return e?.sourceJSON?.subscriptionInfo?.options?.includes("Developer") ? "Location Platform" : me(t) ? "GeoAnalytics Fabric" : he(t) ? "GeoAnalytics Engine" : e?.isPortal ? "Enterprise" : "Online";
|
|
1635
1633
|
}
|
|
1636
|
-
function
|
|
1637
|
-
const t =
|
|
1638
|
-
return
|
|
1634
|
+
function vn(e) {
|
|
1635
|
+
const t = We(e);
|
|
1636
|
+
return Fe(Re(t));
|
|
1639
1637
|
}
|
|
1640
1638
|
function xe(e) {
|
|
1641
|
-
const t = e?.product === "Online" ?
|
|
1642
|
-
return
|
|
1639
|
+
const t = e?.product === "Online" ? We(e) : e?.product;
|
|
1640
|
+
return Fe(Re(t));
|
|
1643
1641
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const e =
|
|
1642
|
+
function _n() {
|
|
1643
|
+
const e = St();
|
|
1646
1644
|
["item.html", "group.html"].some((t) => window.location.href.includes(t)) ? window.location.href = `./signin.html?locale=${e}&useLandingPage=false&returnUrl=${encodeURIComponent(
|
|
1647
1645
|
window.location.href
|
|
1648
1646
|
)}` : window.location.href = `./signin.html?locale=${e}&useLandingPage=true`;
|
|
1649
1647
|
}
|
|
1650
|
-
function
|
|
1648
|
+
function wn({ portal: e, clientId: t }) {
|
|
1651
1649
|
const i = ce({ portal: e });
|
|
1652
1650
|
if (e?.isPortal) {
|
|
1653
1651
|
const n = e.access === "private" ? J("signin.html", e) : e.allSSL || window.location.protocol === "https:" ? J("./index.html", e) : `${i}/index.html`;
|
|
1654
|
-
|
|
1652
|
+
$n(e, n);
|
|
1655
1653
|
} else
|
|
1656
1654
|
window.location.href = `${i}/pages/Account/manage_accounts.html#client_id=${t}&signout=true`;
|
|
1657
1655
|
}
|
|
1658
|
-
function
|
|
1659
|
-
ci(
|
|
1656
|
+
function yn() {
|
|
1657
|
+
ci(ke), li(ke);
|
|
1660
1658
|
}
|
|
1661
|
-
function
|
|
1659
|
+
function $n(e, t = window.location.href) {
|
|
1662
1660
|
const i = window.location.href.startsWith("http://"), n = Ft(e);
|
|
1663
|
-
Ht.destroyCredentials(),
|
|
1661
|
+
Ht.destroyCredentials(), yn();
|
|
1664
1662
|
const r = new URL(J(`${de(e)}oauth2/signout`, e)), { searchParams: o } = r;
|
|
1665
1663
|
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;
|
|
1666
1664
|
}
|
|
@@ -1689,7 +1687,7 @@ function kn({
|
|
|
1689
1687
|
user: 64 + m + 16
|
|
1690
1688
|
};
|
|
1691
1689
|
}
|
|
1692
|
-
function
|
|
1690
|
+
function An({
|
|
1693
1691
|
measurements: e,
|
|
1694
1692
|
screenWidth: t
|
|
1695
1693
|
}) {
|
|
@@ -1700,7 +1698,7 @@ function xn({
|
|
|
1700
1698
|
user: m ? "avatar" : "full"
|
|
1701
1699
|
};
|
|
1702
1700
|
}
|
|
1703
|
-
const
|
|
1701
|
+
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"';
|
|
1704
1702
|
async function Se({
|
|
1705
1703
|
portal: e,
|
|
1706
1704
|
searchTerm: t
|
|
@@ -1710,7 +1708,7 @@ async function Se({
|
|
|
1710
1708
|
try {
|
|
1711
1709
|
return (await e.queryItems({
|
|
1712
1710
|
...t ? { query: t } : {},
|
|
1713
|
-
filter: `owner:${e.user.username}${
|
|
1711
|
+
filter: `owner:${e.user.username}${Ve}`,
|
|
1714
1712
|
num: 20,
|
|
1715
1713
|
sortField: "modified",
|
|
1716
1714
|
sortOrder: "desc"
|
|
@@ -1719,13 +1717,13 @@ async function Se({
|
|
|
1719
1717
|
return [];
|
|
1720
1718
|
}
|
|
1721
1719
|
}
|
|
1722
|
-
async function
|
|
1720
|
+
async function xn({
|
|
1723
1721
|
portal: e,
|
|
1724
1722
|
searchTerm: t
|
|
1725
1723
|
}) {
|
|
1726
1724
|
if (!e)
|
|
1727
1725
|
return [];
|
|
1728
|
-
const i = Jt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${
|
|
1726
|
+
const i = Jt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${Ve}`, r = `${de(e)}search/suggest`;
|
|
1729
1727
|
return (await B(r, { query: {
|
|
1730
1728
|
suggest: i,
|
|
1731
1729
|
filters: n,
|
|
@@ -1733,13 +1731,13 @@ async function Sn({
|
|
|
1733
1731
|
f: "json"
|
|
1734
1732
|
} }))?.result?.results || [];
|
|
1735
1733
|
}
|
|
1736
|
-
const In = St`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column;max-height:100%}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.platform__tabs{min-height:0;flex:1 1 auto;--calcite-tab-content-space-y: 0}.platform__tab{position:relative}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
|
|
1737
|
-
function
|
|
1734
|
+
const Sn = At`:host{display:block;--arcgis-portal-navigation-logo-max-width: 260px;--arcgis-portal-navigation-logo-text-display: flex;--arcgis-portal-navigation-user-max-width: 260px;--arcgis-portal-navigation-user-text-display: block;--arcgis-portal-navigation-project-max-width: auto}.scrim{z-index:100;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out;--calcite-scrim-background: rgba(0, 0, 0, .85)}.scrim--active{opacity:1}.wrapper{background:var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-border-3);position:relative;z-index:200}.navigation{width:100%;min-width:0;min-height:4rem;display:flex;align-items:stretch;max-width:var(--arcgis-portal-navigation-max-width);margin-inline:auto;overflow:hidden}.navigation--loading .fade-in{opacity:0}.fade-in{opacity:1;transition:opacity ease-in-out .15s}.content-end{margin-inline-start:auto;display:flex;align-items:center}.content-end[hidden]{display:none}.action{height:100%;--calcite-internal-action-spacing: 1.25rem}.border-start{border-inline-start:1px solid var(--calcite-color-border-3)}.platform{--calcite-sheet-width: 24rem}.platform__container{display:flex;flex-direction:column;max-height:100%}.platform__header{display:flex;align-items:center}.platform__header-image{width:48px;height:48px;margin-inline-end:1rem}.platform__header-text{flex:1 1 auto;line-height:1.375}.platform__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}.platform__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-2)}.platform__panel{border-inline-end:1px solid var(--calcite-color-border-3);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.platform__tiles{margin:.75rem .75rem 1.5rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));grid-gap:.5rem}.platform__tabs{min-height:0;flex:1 1 auto;--calcite-tab-content-space-y: 0}.platform__tab{position:relative}.list{list-style:none;margin:0;padding:0}.list__container{position:relative}.list__header{display:flex;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);position:sticky;top:0;z-index:701}.list__search{flex:1 1 auto;--calcite-color-border-input: var(--calcite-color-foreground-1)}.list-item__link{display:block;box-sizing:border-box;width:100%;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1);outline-color:transparent;text-decoration:none;outline-offset:0;transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out,outline-offset var(--calcite-internal-animation-timing-fast) ease-in-out}.list-item__link:hover{background-color:var(--calcite-color-transparent-hover)}.list-item__link:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus);outline-offset:-2px}.list-item:focus-within .list-item__container{border-bottom-color:transparent}.list-item__container{box-sizing:border-box;width:100%;padding-block:.5rem;padding-inline-start:0;padding-inline-end:.5rem;border-bottom:1px solid var(--calcite-color-border-3);display:flex;align-items:center;position:relative;pointer-events:none}.list-item__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.list-item__logo{width:48px;height:48px;flex:0 0 auto;box-sizing:border-box;margin-inline-end:.5rem;justify-content:center;align-items:center;position:relative;display:flex}.list-item__logo-bg{position:absolute}.list-item__indicator{position:absolute;width:.5rem;height:.5rem;border-radius:50%;background-color:var(--calcite-color-status-success);border:2px solid var(--calcite-color-foreground-1);z-index:50;top:.25rem;inset-inline-start:-.25rem}.list-item__abbr{color:#fff;font-weight:700;position:relative}.list-item__logo-empty{border:2px dashed var(--calcite-color-border-3);border-radius:8px}.list-item__logo--item-type{background-color:var(--calcite-color-background);display:flex;justify-content:center;align-items:center}.list-item__title{display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);font-weight:500;word-wrap:break-word}.list-item__title--regular{font-weight:400;padding-top:.25rem}.list-item__title--large{font-size:var(--calcite-font-size-0);line-height:1}.list-item__subtitle{display:block;font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3);font-weight:500;padding-top:.25rem;padding-bottom:.25rem}.list-item__subtitle--large{font-size:var(--calcite-font-size--1);font-weight:400;padding:0}.list-item__chip{margin-inline-start:auto;--calcite-chip-background-color: var(--calcite-color-foreground-current)}.app--hidden{--calcite-list-background-color: var(--calcite-color-background)}.app--hidden .list-item__logo{opacity:.4}.logo{border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-logo-max-width);display:flex;align-items:center}.logo--link{text-decoration:none}.logo--link:hover{background-color:var(--calcite-color-transparent-hover)}.logo--link:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.logo__glyph{width:32px;height:32px;padding-inline:1rem}.logo__text{display:var(--arcgis-portal-navigation-logo-text-display);flex-direction:column;overflow:hidden;white-space:nowrap;text-align:start;padding-inline:var(--calcite-internal-navigation-logo-padding-inline);padding-inline-end:1rem}.logo__title{margin:0;padding:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.25rem;text-overflow:ellipsis;overflow:hidden}.logo__subtitle{margin:0;padding:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);font-size:.875rem;line-height:1rem;text-overflow:ellipsis;overflow:hidden}.site-nav{margin-inline-start:1.5rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.skeleton{height:4rem;display:flex;align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.skeleton-line{width:auto;height:.75rem;color:transparent;background:var(--calcite-color-foreground-3);border-radius:.5rem;margin:0 1rem;line-height:1}.project{min-width:0;outline:none;border:none;border-inline-end:1px solid var(--calcite-color-border-3);cursor:pointer;background-color:var(--calcite-color-foreground-1);box-sizing:border-box;display:flex;user-select:none;appearance:none;align-items:center;justify-content:center;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));color:var(--calcite-color-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;inset-inline-end:.25rem;background:transparent;white-space:nowrap;padding:0 1.375rem;flex-grow:2}.project:hover{background-color:var(--calcite-color-transparent-hover)}.project:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.project__title{display:flex;justify-self:stretch;min-width:0;align-items:center;justify-content:center;padding:0 1.5rem;margin-inline-end:1.5rem;color:var(--calcite-color-text-1);border-inline-end:1px solid var(--calcite-color-border-3);max-width:var(--arcgis-portal-navigation-project-max-width, 60%)}.project__title__header{padding:0;margin:0;font-size:1rem;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project__dropdown{max-width:var(--arcgis-portal-navigation-project-max-width, 60%);--calcite-dropdown-max-height: calc(100vh - 110px) ;min-width:0;margin-inline-end:1.5rem}.project__indicator{margin-inline-end:.5rem;--calcite-ui-icon-color: var(--calcite-color-status-danger)}.project__menu-icon{margin-inline-end:.75rem}.project__text{font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;margin-inline-end:.75rem}.rename{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.rename__action{margin-inline-end:.5rem;display:flex;align-items:center}.rename__input{margin-inline-end:.5rem;display:block;width:100%}.search{width:100%;min-width:0;display:flex;flex:1 1 0;align-items:center;margin-inline-start:.5rem}.search__action{margin-inline-end:.5rem;display:flex;align-items:center}.search__input{margin-inline-end:.5rem;display:block;width:100%}.suggestions__header{display:flex;align-items:center;width:var(--calcite-popover-max-size-x);box-sizing:border-box;padding:.75rem 1rem;border-bottom:1px solid var(--calcite-color-border-3)}.suggestions__title{padding:0;margin:0;font-weight:500;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-1);flex:1 1 0}.suggestions__search-type{--calcite-popover-max-size-x: 320px}.suggestions__search-type__icon{vertical-align:-.2rem}.suggestions__footer{display:flex;align-items:center;justify-content:center;padding:1rem}.notifications{width:min(24rem,80vw)}.notifications--full:after{content:"";display:block;border-top:1px solid var(--calcite-color-border-3);margin-left:1rem}.notifications__list{max-height:min(18rem,80vh);overflow:auto;box-sizing:border-box;width:100%}.notifications--empty{padding:2rem}.empty{padding:1rem;text-align:center;color:var(--calcite-color-text-3);--calcite-icon-color: var(--calcite-color-status-success-hover)}.empty__header{margin:0;padding:.75rem 0 0;color:var(--calcite-color-text-1);font-weight:500;font-size:var(--calcite-font-size-1)}.empty__text{margin:0;padding:0;color:var(--calcite-color-text-3);font-weight:400;font-size:var(--calcite-font-size-0)}.notification{display:flex;flex-direction:column;padding:.5rem}.notification__message{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);--calcite-color-brand-underline: transparent}.notification__date{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-0)}.notifications__dismiss{margin-inline-start:auto;margin-inline-end:1rem;margin-block:.5rem}.user{display:flex;max-width:var(--arcgis-portal-navigation-user-max-width);--calcite-dropdown-item-text-color: var(--calcite-color-text-3);--calcite-dropdown-group-title-text-color: var(--calcite-color-text-2)}.user__dropdown{max-width:100%;--calcite-dropdown-max-height: calc(100vh - 110px) }.user__button{max-width:100%;--calcite-spacing-base: -2px}.user__button__contents{display:flex;text-align:start;align-items:center}.user__button__text{display:var(--arcgis-portal-navigation-user-text-display);flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375;overflow:hidden}.user__button__avatar{flex:0 0 auto}.user__button__full,.user__button__username{max-width:100%;overflow:hidden;text-overflow:ellipsis}.user__top{display:flex;padding:.75rem;border-bottom:1px solid var(--calcite-color-border-3)}.user__top__avatar{flex:0 0 auto}.user__top__text{box-sizing:border-box;word-wrap:break-word;flex:1 1 0;min-width:0;padding-inline-start:1rem;line-height:1.375}.user__full{font-size:1rem;font-weight:medium;color:var(--calcite-colot-text-1);line-height:1.25;padding:0;margin:0}.user__username{font-size:.875rem;line-height:1.25;color:var(--calcite-colot-text-2);padding:0;margin:0}`;
|
|
1735
|
+
function In({ messages: e, portal: t, showNav: i, openPlatformMenu: n, handleToggleSearch: r }) {
|
|
1738
1736
|
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>`;
|
|
1739
1737
|
}
|
|
1740
|
-
class
|
|
1738
|
+
class Pn extends yt {
|
|
1741
1739
|
constructor() {
|
|
1742
|
-
super(...arguments), this.messages =
|
|
1740
|
+
super(...arguments), this.messages = $t({ blocking: !0 }), this.originalRecentContent = [], this.refreshNotifications = async () => {
|
|
1743
1741
|
const { portal: t, messages: i } = this;
|
|
1744
1742
|
this.notifications = await _e({ portal: t, locale: i._t9nLocale, t9n: i.notifications });
|
|
1745
1743
|
}, this.deleteNotifications = async (t) => {
|
|
@@ -1749,7 +1747,7 @@ class Nn extends At {
|
|
|
1749
1747
|
else {
|
|
1750
1748
|
let n = 0;
|
|
1751
1749
|
for await (const r of t)
|
|
1752
|
-
await
|
|
1750
|
+
await Me({ id: r, portal: i }), this.notificationDeleteProgress = Math.ceil(n++ / t.length * 100);
|
|
1753
1751
|
}
|
|
1754
1752
|
this.notificationDeleteProgress = void 0, this.refreshNotifications();
|
|
1755
1753
|
}, this.navigate = (t) => {
|
|
@@ -1768,7 +1766,7 @@ class Nn extends At {
|
|
|
1768
1766
|
});
|
|
1769
1767
|
}, this.handleProjectTitleSave = async (t) => {
|
|
1770
1768
|
this.projectTitleSaving = !0;
|
|
1771
|
-
const n = await (this.projectTitleSave ||
|
|
1769
|
+
const n = await (this.projectTitleSave || Ji)(t);
|
|
1772
1770
|
if (this.projectTitleSaving = !1, n.status === "success") {
|
|
1773
1771
|
this.closeProjectTitleEdit();
|
|
1774
1772
|
return;
|
|
@@ -1780,9 +1778,9 @@ class Nn extends At {
|
|
|
1780
1778
|
this.editedProjectTitle = this.projectTitle, this.closeProjectTitleEdit();
|
|
1781
1779
|
}, this.signOut = () => {
|
|
1782
1780
|
const { portal: t, clientId: i } = this;
|
|
1783
|
-
|
|
1781
|
+
wn({ portal: t, clientId: i }), this.arcgisNavigationSignOut.emit();
|
|
1784
1782
|
}, this.signIn = () => {
|
|
1785
|
-
this.arcgisNavigationSignIn.emit(),
|
|
1783
|
+
this.arcgisNavigationSignIn.emit(), _n();
|
|
1786
1784
|
}, this.openAccountSwitcher = () => {
|
|
1787
1785
|
this.accountSwitcherOpen = !0;
|
|
1788
1786
|
}, this.handlePlatformClose = () => {
|
|
@@ -1792,7 +1790,7 @@ class Nn extends At {
|
|
|
1792
1790
|
}, this.handleAppSave = async () => {
|
|
1793
1791
|
const { hiddenApps: t, sortedApps: i, userProperties: n, portal: r } = this;
|
|
1794
1792
|
this.apps = [...i], this.editingApplications = !1, this.appsLoading = !0;
|
|
1795
|
-
const { result: o } = await
|
|
1793
|
+
const { result: o } = await Li({ apps: i, hiddenApps: t, userProperties: n, portal: r });
|
|
1796
1794
|
o?.success && (this.previousAppState = {
|
|
1797
1795
|
apps: i,
|
|
1798
1796
|
hiddenApps: t
|
|
@@ -1811,7 +1809,7 @@ class Nn extends At {
|
|
|
1811
1809
|
}, this.debouncedItemSearch = be(async (t) => {
|
|
1812
1810
|
this.recentContent = await Se({ portal: this.portal, searchTerm: t }), this.recentContentLoading = !1, t || (this.originalRecentContent = [...this.recentContent]);
|
|
1813
1811
|
}, 1e3), this.debouncedSuggest = be(async (t) => {
|
|
1814
|
-
this.suggestions = await
|
|
1812
|
+
this.suggestions = await xn({ portal: this.portal, searchTerm: t });
|
|
1815
1813
|
}, 1e3), this.handleSearch = (t) => {
|
|
1816
1814
|
this.searchTerm = t, this.suggestions = void 0, this.debouncedSuggest(t);
|
|
1817
1815
|
}, this.sizeSearchPopover = () => {
|
|
@@ -1835,10 +1833,10 @@ class Nn extends At {
|
|
|
1835
1833
|
}, this.searchInput = F(), this.searchAction = F(), this.searchPopover = F(), this.projectTitleInputRef = F(), this.projectButtonRef = F(), this.initialDocumentOverflowStyle = document.documentElement.style.overflow, this.links = [], this.notifications = [], this.notificationsActive = !1, this.apps = [], this.hiddenApps = {}, this.sortedApps = [], this.appsSearchTerm = "", this.appsLoading = !0, this.editingApplications = !1, this.recentContent = [], this.recentContentSearchTerm = "", this.recentContentLoading = !0, this.platformMenuOpen = !1, this.platformTab = "apps", this.accountSwitcherOpen = !1, this.projectTitleEditing = !1, this.projectTitleSaving = !1, this.screenWidth = window.innerWidth, this.searchActive = !1, this.searchTerm = "", this.searchType = "keyword", this.projectMenuOptions = [], this.currentPathname = window.location.pathname, this.arcgisNavigate = q(), this.arcgisNavigationProjectMenuClick = q(), this.arcgisNavigationSignIn = q(), this.arcgisNavigationSignOut = q();
|
|
1836
1834
|
}
|
|
1837
1835
|
static {
|
|
1838
|
-
this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9 };
|
|
1836
|
+
this.properties = { infoBanner: 16, links: 16, userLinks: 16, notifications: 16, notificationsActive: 16, apps: 16, hiddenApps: 16, sortedApps: 16, previousAppState: 16, appsSearchTerm: 16, appsLoading: 16, editingApplications: 16, recentContent: 16, recentContentSearchTerm: 16, recentContentLoading: 16, platformMenuOpen: 16, platformTab: 16, accountSwitcherOpen: 16, editedProjectTitle: 16, projectTitleEditing: 16, projectTitleSaving: 16, projectTitleErrorMessage: 16, productInfo: 16, platformInfo: 16, notificationDeleteProgress: 16, measurements: 16, screenWidth: 16, showProduct: 16, showNav: 16, showUser: 16, searchActive: 16, searchTerm: 16, suggestions: 16, searchType: 16, portal: 0, portalItem: 0, product: 1, productHref: 1, projectTitle: 1, projectTitleSave: 0, projectMenuIcon: 1, projectMenuSaveIndicator: 5, projectMenuOptions: 0, disableTrackViewer: 5, disableNotebookServer: 5, clientId: 1, currentPathname: 1, maxWidth: 9, showNotifications: 5 };
|
|
1839
1837
|
}
|
|
1840
1838
|
static {
|
|
1841
|
-
this.styles =
|
|
1839
|
+
this.styles = Sn;
|
|
1842
1840
|
}
|
|
1843
1841
|
#e;
|
|
1844
1842
|
connectedCallback() {
|
|
@@ -1862,13 +1860,13 @@ class Nn extends At {
|
|
|
1862
1860
|
}
|
|
1863
1861
|
async fetchData() {
|
|
1864
1862
|
const { portal: t, messages: i, clientId: n, product: r } = this;
|
|
1865
|
-
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo =
|
|
1866
|
-
const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await
|
|
1863
|
+
this.calculateMeasurements(), this.productInfo = xe({ product: r, clientId: n, portal: t }), this.platformInfo = vn({ clientId: n, portal: t }), this.userLinks = ln({ portal: t, messages: i.user, clientId: n }), this.notifications = await _e({ portal: t, locale: i._t9nLocale, t9n: i.notifications }), this.recentContent = await Se({ portal: t }), this.originalRecentContent = [...this.recentContent], this.recentContentLoading = !1;
|
|
1864
|
+
const { apps: o, hiddenApps: a, signInSettings: s, licenses: l, userProperties: d } = await Mi({
|
|
1867
1865
|
portal: t,
|
|
1868
1866
|
trackViewerEnabled: !this.disableTrackViewer,
|
|
1869
1867
|
notebookServerEnabled: !this.disableNotebookServer
|
|
1870
|
-
}), m = await
|
|
1871
|
-
this.infoBanner = m?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links =
|
|
1868
|
+
}), m = await Lt(t);
|
|
1869
|
+
this.infoBanner = m?.informationalBanner, this.userProperties = d, this.apps = o, this.hiddenApps = a, this.sortedApps = o, this.previousAppState = { apps: o, hiddenApps: a }, this.appsLoading = !1, this.links = zi({
|
|
1872
1870
|
portal: t,
|
|
1873
1871
|
messages: i.links,
|
|
1874
1872
|
licenses: l,
|
|
@@ -1893,18 +1891,18 @@ class Nn extends At {
|
|
|
1893
1891
|
updateBreakpoints() {
|
|
1894
1892
|
const { measurements: t, maxWidth: i } = this;
|
|
1895
1893
|
if (t) {
|
|
1896
|
-
const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r =
|
|
1894
|
+
const n = i ? Math.min(this.screenWidth, i) : this.screenWidth, r = An({ measurements: t, screenWidth: n });
|
|
1897
1895
|
this.showProduct = r.product, this.showNav = r.nav, this.showUser = r.user;
|
|
1898
1896
|
}
|
|
1899
1897
|
}
|
|
1900
1898
|
render() {
|
|
1901
|
-
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch:
|
|
1902
|
-
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading":
|
|
1899
|
+
const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch: k, handleSearchTypeChange: w, hiddenApps: I, infoBanner: N, links: f, messages: h, navigate: u, notifications: v, notificationsActive: P, notificationDeleteProgress: y, openAccountSwitcher: x, platformInfo: A, portal: b, portalItem: j, product: L, productInfo: $, productHref: E, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, handleProjectTitleCancel: qe, handleToggleNotifications: fe, openProjectTitleEdit: Je, openPlatformMenu: Ke, platformMenuOpen: Qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectTitleErrorMessage: Ye, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, userLinks: ct, searchActive: R, searchTerm: lt, searchType: ut, searchInput: dt, searchAction: pt, searchPopover: ht, showNav: ee, showProduct: mt, showUser: ft, suggestions: gt } = this, bt = b?.user, vt = Q(L) && !f?.length || !this.measurements;
|
|
1900
|
+
return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": vt })}>${In({ messages: h?.platform, portal: b, showNav: ee, openPlatformMenu: Ke, handleToggleSearch: k })}${mt && Kt({ navigate: u, portal: b, product: L, productInfo: $, productHref: E, messages: h?.logo, showNav: ee, searchActive: R, projectTitleEditing: Z }) || ""}${Yi({ navigate: u, portal: b, portalItem: j, messages: h?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: He, openProjectTitleEdit: Je, projectTitleErrorMessage: Ye, handleProjectTitleCancel: qe, projectTitleEditing: Z, projectTitleSaving: Xe, projectMenuIcon: Ze, projectMenuSaveIndicator: et, projectMenuClick: tt, projectMenuOptions: it, projectTitleInputRef: nt, projectButtonRef: rt })}${ee && an({ searchActive: R, navigate: u, portal: b, product: L, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || R}><slot name=content-end></slot></div>${rn({ currentPathname: o, navigate: u, portal: b, product: L, messages: h?.search, searchActive: R, searchType: ut, searchTerm: lt, suggestions: gt, handleSearch: _, handleToggleSearch: k, handleSearchTypeChange: w, searchInputRef: dt, searchActionRef: pt, searchPopoverRef: ht })}${bt ? c`<div class="border-start">${this.showNotifications && c`${ri({ notifications: v, notificationsActive: P, messages: h?.notifications, handleToggleNotifications: fe, handleToggleSearch: k })}${oi({ notificationsActive: P, notifications: v, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: h?.notifications, notificationDeleteProgress: y })}` || ""}</div>${sn({ portal: b, userLinks: ct, openAccountSwitcher: b?.isPortal ? void 0 : x, signOut: this.signOut, messages: h?.user, textDisabled: ft === "avatar", navigate: u })}` : on({ messages: h.user, signIn: this.signIn })}</header>${qi({ locale: h._t9nLocale, navigate: u, portal: b, product: L, platformInfo: A, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Qe, links: f, recentContent: ot, recentContentSearchTerm: at, recentContentLoading: st, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (_t) => this.appsSearchTerm = _t, handleAppSave: m, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
|
|
1903
1901
|
this.accountSwitcherOpen = !1;
|
|
1904
1902
|
}}></arcgis-portal-account-switcher>` || ""}</div>`;
|
|
1905
1903
|
}
|
|
1906
1904
|
}
|
|
1907
|
-
|
|
1905
|
+
wt("arcgis-portal-navigation", Pn);
|
|
1908
1906
|
export {
|
|
1909
|
-
|
|
1907
|
+
Pn as ArcGISPortalNavigation
|
|
1910
1908
|
};
|